/* Claymorphism layer for every panel (and the doctor/centre pages of signed-in users).
   Soft clay: thick translucent rim + inner shade + soft drop shadow, puffy buttons, pressed-in inputs.
   Palette stays blue / turquoise / teal-green, solid fills only (no gradients). Delete this file + its <link> to undo. */
body:is(.has-side, .theme-panel) {
    --clay-rim: rgba(255, 255, 255, .78);
    --clay-shade: rgba(18, 48, 110, .14);
    --clay-shadow: inset -3px -3px 7px rgba(18, 48, 110, .09), inset 3px 3px 6px rgba(255, 255, 255, .85), 7px 9px 16px -4px rgba(18, 48, 110, .2);
    --clay-shadow-sm: inset -2px -2px 5px rgba(18, 48, 110, .08), inset 2px 2px 4px rgba(255, 255, 255, .8), 4px 5px 10px -3px rgba(18, 48, 110, .2);
    --clay-press: inset 3px 3px 7px rgba(18, 48, 110, .22), inset -2px -2px 4px rgba(255, 255, 255, .5), 1px 2px 3px rgba(18, 48, 110, .12);
    --clay-pit: inset 3px 3px 7px rgba(18, 48, 110, .13), inset -2px -2px 5px rgba(255, 255, 255, .9);
    --clay-r: 18px;
    background: #dde8f6;
}

/* surfaces */
body:is(.has-side, .theme-panel) :is(.card, .ap-card, .hl-card, .adm-card, .mt-card, .hx, .rx, .pf-card, .dp-card, .sv-block, .ax-card, .nf-item a, .tw-visit, .notice-board, .hl-table, .hi-item, .tk, .pp-panel, .empty, .tw, .dr-card, .dr-filters__box, .kpi, .adm-tile, .pf-tile, .hl-tile, .rm-add, .chl, .portal-head) {
    background: #f1f6fd; border: 4px solid var(--clay-rim); border-radius: var(--clay-r); box-shadow: var(--clay-shadow);
}
body:is(.has-side, .theme-panel) :is(.dr-card, .ap-card, .rx, .hi-item, .tw-visit, .nf-item a) { transition: transform .2s ease-out, box-shadow .2s ease-out; }
body:is(.has-side, .theme-panel) :is(.dr-card, .ap-card, .rx, .hi-item, .nf-item a, .adm-tile, .pf-tile, .hl-tile):hover { transform: translateY(-2px); }
/* the old coloured top/side edges become a thick coloured rim on the leading side */
body:is(.has-side, .theme-panel) :is(.adm-card, .hl-card, .pf-card, .dp-card, .pp-panel, .mt-card) { border-top: 4px solid var(--clay-rim); }
body:is(.has-side, .theme-panel) :is(.dr-card--center, .dr-card--doctor, .ap-card, .hx) { border-inline-start: 4px solid var(--clay-rim); }
body:is(.has-side, .theme-panel) .dr-card--doctor { box-shadow: var(--clay-shadow), inset 6px 0 0 -2px var(--blue); }
body:is(.has-side, .theme-panel) .dr-card--center { box-shadow: var(--clay-shadow), inset 6px 0 0 -2px var(--teal); }
/* solid KPI / hero blocks keep their colour but get the clay rim and shading */
body:is(.has-side, .theme-panel) :is(.kpi, .portal-head.pp-top) { border: 4px solid rgba(255, 255, 255, .45); }
body.has-side .topbar__in { border: 3px solid var(--clay-rim); border-radius: 20px; box-shadow: var(--clay-shadow-sm); }
body.has-side .side { border: 4px solid rgba(255, 255, 255, .18); border-radius: 22px; box-shadow: inset -3px -3px 8px rgba(0, 0, 0, .25), inset 3px 3px 6px rgba(255, 255, 255, .12), 8px 10px 20px -6px rgba(18, 48, 110, .45); }
body.has-side .side__a { border-radius: 14px; }
body.has-side .side__a.is-on { box-shadow: inset -2px -2px 5px rgba(0, 0, 0, .25), inset 2px 2px 4px rgba(255, 255, 255, .3), 3px 4px 8px -2px rgba(0, 0, 0, .4); }

/* buttons: puffy, thick rim, soft press */
body:is(.has-side, .theme-panel) .btn { border: 3px solid rgba(255, 255, 255, .6); border-radius: 14px; font-weight: 700; box-shadow: var(--clay-shadow-sm); transition: transform .2s ease-out, box-shadow .2s ease-out, background .2s; }
body:is(.has-side, .theme-panel) .btn:hover { transform: scale(1.03); }
body:is(.has-side, .theme-panel) .btn:active { transform: scale(.97); box-shadow: var(--clay-press); }
body:is(.has-side, .theme-panel) .btn--solid { background: var(--blue); color: #fff; }
body:is(.has-side, .theme-panel) .btn--solid:hover { background: var(--blue-d); }
body:is(.has-side, .theme-panel) :is(.btn--line, .btn--quiet, .btn--ghost) { background: #e6eefa; color: var(--blue-d); }
body:is(.has-side, .theme-panel) :is(.btn:focus-visible, .input:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible) { outline: 3px solid #12306e; outline-offset: 3px; }

/* inputs: pressed into the clay */
body:is(.has-side, .theme-panel) :is(input.input, select.input, textarea.input, .input) { background-color: #e9f1fb; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: var(--clay-pit); }
body:is(.has-side, .theme-panel) .input:focus { background-color: #fff; border-color: #fff; }

/* chips, tabs, badges: little clay pills */
body:is(.has-side, .theme-panel) :is(.dr-tabs, .hl-tabs, .adm-chips, .ap-tabs) { border-radius: 16px; box-shadow: var(--clay-pit); }
body:is(.has-side, .theme-panel) :is(.dr-tabs a, .hl-tabs a, .hl-tabs button, .ap-tabs a, .adm-chips a, .adm-chips button) { border-radius: 13px; }
body:is(.has-side, .theme-panel) :is(.dr-tabs a.is-active, .hl-tabs .is-on, .ap-tabs .is-on, .adm-chips .is-on) { box-shadow: var(--clay-shadow-sm); border: 2px solid var(--clay-rim); }
body:is(.has-side, .theme-panel) :is(.dr-chip span, .rm-add__kinds label > span) { border: 2px solid var(--clay-rim); border-radius: 14px; box-shadow: var(--clay-shadow-sm); }
body:is(.has-side, .theme-panel) :is(.dr-chip input:checked + span, .rm-add__kinds input:checked + span) { box-shadow: var(--clay-press); }
body:is(.has-side, .theme-panel) .badge { border: 2px solid rgba(255, 255, 255, .7); border-radius: 12px; box-shadow: inset -1px -1px 3px rgba(18, 48, 110, .1); }

/* icon bubbles */
body:is(.has-side, .theme-panel) :is(.hd__ico, .dr-card__av, .pf-ph) { border: 3px solid rgba(255, 255, 255, .7); box-shadow: var(--clay-shadow-sm); }

/* tables: soft rounded block */
body:is(.has-side, .theme-panel) .table-wrap { border-radius: var(--clay-r); box-shadow: var(--clay-shadow); border: 4px solid var(--clay-rim); background: #f1f6fd; }
body:is(.has-side, .theme-panel) .mt-tbl th:first-child { border-start-start-radius: 12px; } body:is(.has-side, .theme-panel) .mt-tbl th:last-child { border-start-end-radius: 12px; }

/* bottom nav on phones */
@media (max-width: 900px) {
    body:is(.has-side, .theme-panel) .nav { border: 3px solid var(--clay-rim); border-radius: 22px; box-shadow: var(--clay-shadow); }
    body:is(.has-side, .theme-panel) .nav > a.is-active, body:is(.has-side, .theme-panel) .nav > .is-active { box-shadow: var(--clay-press); border-radius: 16px; }
    body:is(.has-side, .theme-panel) .msheet { border: 3px solid var(--clay-rim); border-radius: 22px; box-shadow: var(--clay-shadow); }
    body:is(.has-side, .theme-panel) .msheet a { border: 2px solid var(--clay-rim); box-shadow: var(--clay-shadow-sm); }
}
/* nested sections inside the opened medical file stay slim and flat, but get a soft clay pillow */
.hl-pane__in .hx-list { box-shadow: var(--clay-pit); }
.hl-pane__in .hx-list > details.hx { box-shadow: var(--clay-shadow-sm) !important; border: 2px solid var(--clay-rim) !important; }
@media (prefers-reduced-motion: reduce) { body:is(.has-side, .theme-panel) * { transition: none !important; } }
/* need chips: always exactly two lines (2 + 3) */
body:is(.has-side, .theme-panel) .dr-need { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px !important; border: 0; padding: 0; margin: 0; min-width: 0; }
body:is(.has-side, .theme-panel) .dr-need > legend { grid-column: 1 / -1; }
body:is(.has-side, .theme-panel) .dr-need > .dr-chip { grid-column: span 2; min-width: 0; display: block; }
body:is(.has-side, .theme-panel) .dr-need > .dr-chip:nth-of-type(2) { grid-column: span 4; }
body:is(.has-side, .theme-panel) .dr-need .dr-chip > span { display: flex; width: 100%; justify-content: center; align-items: center; gap: 3px; padding: 5px 4px; font-size: .72rem; white-space: nowrap; border-width: 1px; box-sizing: border-box; }
body:is(.has-side, .theme-panel) .dr-need .dr-chip .ico { width: 12px; height: 12px; flex: none; }
/* inputs & selects: 10px inner padding on the right (start side), arrow room on the left for selects */
body:is(.has-side, .theme-panel) :is(input.input, select.input, textarea.input, .field select, .dr-filters select) { padding-inline-start: 10px !important; padding-inline-end: 10px; }
body:is(.has-side, .theme-panel) :is(select.input, .field select, .dr-filters select) { padding-inline-end: 34px !important; background-position: left 10px center; }
/* doctor KPI tiles: centred text; one slim line on phones */
body:is(.has-side, .theme-panel) .kpis--links .kpi { text-align: center; }
@media (max-width: 700px) {
    body:is(.has-side, .theme-panel) .kpis--links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    body:is(.has-side, .theme-panel) .kpis--links .kpi { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; min-height: 0; flex-wrap: nowrap; white-space: nowrap; }
    body:is(.has-side, .theme-panel) .kpis--links .kpi b { font-size: 1rem !important; line-height: 1.3 !important; margin: 0; }
    body:is(.has-side, .theme-panel) .kpis--links .kpi span { font-size: .72rem; display: inline; margin: 0; overflow: hidden; text-overflow: ellipsis; }
    body:is(.has-side, .theme-panel) .kpis--links .kpi small { font-size: .6rem; }
}
/* top bar: user dropdown (photo + chevron) with profile / support / logout */
.who-dd { position: relative; }
.who-dd > summary { list-style: none; cursor: pointer; } .who-dd > summary::-webkit-details-marker { display: none; }
.who__chev { flex: none; color: var(--ink-2, #405276); transition: transform .2s; } .who-dd[open] .who__chev { transform: rotate(180deg); }
.who-dd__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 200px; display: grid; gap: 6px; padding: 8px; border-radius: 16px; background: #f1f6fd; border: 3px solid rgba(255, 255, 255, .8); box-shadow: 7px 9px 18px -4px rgba(18, 48, 110, .3); }
.who-dd__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #10244f; text-decoration: none; font-weight: 600; background: #e6eefa; }
.who-dd__menu a .ico { width: 18px; height: 18px; color: #2563eb; }
.who-dd__menu a:hover { background: #d8e5f8; }
.who-dd__menu a.is-out { background: #e5384f; color: #fff; } .who-dd__menu a.is-out .ico { color: #fff; }
/* phones: the top bar is back in panels (brand + user dropdown); the bell lives in the bottom bar */
@media (max-width: 900px) {
    body.in-panel .topbar { height: auto; min-height: 0; padding: 6px 8px 0; background: transparent; }
    body.in-panel .topbar__in { height: auto; min-height: 56px; padding: 6px 12px; background: #f1f6fd; border: 3px solid rgba(255, 255, 255, .8); border-radius: 18px; box-shadow: 7px 9px 16px -6px rgba(18, 48, 110, .2); overflow: visible; display: flex; align-items: center; justify-content: space-between; }
    body.in-panel .topbar__in > .brand, body.in-panel .topbar__in > .topbar__end { display: flex; }
    body.in-panel .topbar__end .bell { display: none; }
    body.in-panel .topbar__end { gap: 8px; align-items: center; }
    .who__txt { display: grid; } .who__txt b { font-size: .8rem; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .who__txt small { font-size: .66rem; }
    .who { padding: 3px 8px 3px 4px; gap: 8px; }
    .who-dd__menu { position: fixed; top: 70px; inset-inline: 12px; min-width: 0; }
}
/* in-person booking dialog + balanced row actions */
.dlg--book { width: min(560px, calc(100vw - 24px)); max-height: 90dvh; overflow: auto; }
.dlg--book .days { display: grid; gap: 10px; } .dlg--book .slots { display: flex; flex-wrap: wrap; gap: 6px; }
.dlg--book .visit-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 700px) {
    .table td .btn--sm { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; white-space: nowrap; padding-inline: 6px; }
    .table td:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
    .table td:last-child > form.inline { flex: 1 1 0; display: flex; } .table td:last-child > form.inline .btn { flex: 1; }
}
.dlg--book > .btn--quiet { width: 100%; margin-top: 8px; }
/* appointment list on phones: one balanced card per appointment (no sideways scroll) */
@media (max-width: 700px) {
    .table-wrap--cards { overflow: visible; background: transparent; border: 0; box-shadow: none; }
    .table--cards, .table--cards tbody { display: block; width: 100%; min-width: 0; } .table--cards thead { display: none; }
    .table--cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 10px; padding: 10px; border-radius: 18px; background: #f1f6fd; border: 4px solid rgba(255, 255, 255, .78); box-shadow: var(--clay-shadow, 0 6px 14px rgba(18, 48, 110, .15)); }
    .table--cards td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; min-width: 0; }
    .table--cards td:nth-child(3) { grid-column: 1 / -1; }
    .table--cards td:nth-child(5) { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; padding-top: 6px !important; }
    .table--cards td:nth-child(5) > form.inline, .table--cards td:nth-child(5) > button, .table--cards td:nth-child(5) > .btn { display: flex; width: 100%; } .table--cards td:nth-child(5) .btn { flex: 1; justify-content: center; white-space: nowrap; font-size: .74rem; padding-inline: 4px; }
}
@media (max-width: 700px) {
    .table--cards td:nth-child(5) { grid-template-columns: 1fr 1fr !important; }
    .table--cards td:nth-child(5) .btn { min-height: 38px; font-size: .78rem; width: 100%; }
    .table--cards td:nth-child(3):has(> :only-child), .table--cards td:nth-child(3) { font-size: .82rem; }
}

.cc { position: relative; } .cc .cb__box { position: relative; } .cc__new { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 14px; background: #e6eefa; } .cc__new[hidden] { display: none; }
.cb__add { padding: 10px 12px; cursor: pointer; color: #1d4ed8; } .cb__add[hidden] { display: none; }

/* my patients: 5px breathing room around the status tabs; add buttons */
.pt-chips { margin-block: 5px !important; }
.pt-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 5px 0 10px; } .pt-add .btn { flex: 1 1 0; min-width: 150px; justify-content: center; }
/* patient row: photo + name on the right, four icon+value items in front of it (same on every screen) */
.pt-row--v2 { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
.pt-row--v2 .pt-id { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; width: 96px; text-decoration: none; text-align: center; }
.pt-row--v2 .pt-id .pt-name { font-size: .84rem; font-weight: 700; line-height: 1.35; color: #10244f; }
.pt-row--v2 .pt-id .count { position: absolute; }
.pt-row--v2 .pt-stats { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.pt-stat { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 8px; border-radius: 14px; background: #e6eefa; box-shadow: inset 2px 2px 5px rgba(18, 48, 110, .1), inset -2px -2px 4px rgba(255, 255, 255, .8); font-size: .8rem; text-decoration: none; color: #10244f; white-space: nowrap; overflow: hidden; }
.pt-stat .hd__ico { width: 26px; height: 26px; flex: none; } .pt-stat .hd__ico .ico { width: 14px; height: 14px; } .pt-stat b { overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.pt-stat .badge { font-size: .7rem; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pt-stat--go { background: #2563eb; color: #fff; justify-content: center; box-shadow: var(--clay-shadow-sm); } .pt-stat--go b { color: #fff; }
@media (max-width: 700px) {
    .pt-row--v2 { align-items: flex-start; padding: 10px; gap: 10px; }
    .pt-row--v2 .pt-id { width: 76px; align-items: center; }
    .pt-row--v2 .pt-av { width: 56px; height: 56px; }
    .pt-row--v2 .pt-stats { grid-template-columns: 1fr 1fr; gap: 6px; }
    .pt-stat { padding: 6px; font-size: .74rem; gap: 4px; } .pt-stat .hd__ico { width: 24px; height: 24px; }
    .pt-stat--go b { font-size: .72rem; }
}
.pt-row--v2 .pt-av--txt { display: grid; place-items: center; background: #cfe0f8; color: #1d4ed8; font-size: 1.5rem; font-weight: 800; }

/* treatment status: one slim row per visit (photo, doctor, status tag, action on the left) */
.tw-visit { display: flex !important; align-items: center; gap: 8px !important; padding: 6px 10px !important; flex-wrap: nowrap; }
.tw-visit__av { width: 36px !important; height: 36px !important; border-radius: 12px; flex: none; }
.tw-visit__who { flex: 1; min-width: 0; } .tw-visit__who b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-visit .badge { flex: none; font-size: .7rem; padding: 2px 8px; }
.tw-visit .btn--sm, .tw-visit form .btn { flex: none; padding: 5px 12px; font-size: .76rem; min-height: 0; white-space: nowrap; margin-inline-start: auto; }
.tw-visit form { margin: 0; flex: none; }
@media (max-width: 700px) { .tw-visit { gap: 6px !important; padding: 6px 8px !important; } .tw-visit .btn--sm, .tw-visit form .btn { padding: 4px 8px; font-size: .7rem; } .tw-visit .badge { font-size: .64rem; } }
/* directory top tiles on phones: icon beside the title, slim */
@media (max-width: 700px) {
    .dr-mine-boxes .dr-mbox { flex-direction: row !important; align-items: center !important; gap: 8px !important; padding: 8px 10px !important; min-height: 0; }
    .dr-mine-boxes .dr-mbox .hd__ico { width: 30px; height: 30px; flex: none; } .dr-mine-boxes .dr-mbox .hd__ico .ico { width: 16px; height: 16px; }
    .dr-mine-boxes .dr-mbox b { font-size: .84rem; line-height: 1.3; } .dr-mine-boxes .dr-mbox small { display: none; }
}
@media (max-width: 900px) {
    body.theme-panel .topbar { height: auto; padding: 6px 8px 0; background: transparent; }
    body.theme-panel .topbar__in { min-height: 56px; padding: 6px 12px; background: #f1f6fd; border: 3px solid rgba(255, 255, 255, .8); border-radius: 18px; box-shadow: 7px 9px 16px -6px rgba(18, 48, 110, .2); display: flex; align-items: center; justify-content: space-between; overflow: visible; }
    body.theme-panel .topbar__end .bell, body.in-panel .topbar__end .bell { display: none; }
    body:is(.in-panel, .theme-panel) .topbar .brand { white-space: nowrap; flex: none; } body:is(.in-panel, .theme-panel) .topbar .brand__name { white-space: nowrap; }
    body:is(.in-panel, .theme-panel) .topbar__end { min-width: 0; }
    body:is(.in-panel, .theme-panel) .nav > a, body:is(.in-panel, .theme-panel) .nav > .m-only { position: relative; }
    body:is(.in-panel, .theme-panel) .nav .count { position: absolute; top: 2px; inset-inline-start: calc(50% + 4px); min-width: 16px; height: 16px; padding: 0 4px; font-size: .62rem; line-height: 16px; border-radius: 10px; background: #e5384f; color: #fff; text-align: center; }
}
@media (max-width: 900px) {
    body.has-side .topbar { height: auto; min-height: 0; padding: 6px 8px 0; background: transparent; }
    body.has-side .topbar__in { height: auto; min-height: 56px; padding: 6px 12px; background: #f1f6fd; border: 3px solid rgba(255, 255, 255, .8); border-radius: 18px; box-shadow: 7px 9px 16px -6px rgba(18, 48, 110, .2); display: flex; align-items: center; justify-content: space-between; overflow: visible; }
    body.has-side .topbar__in > .brand, body.has-side .topbar__in > .topbar__end { display: flex; }
    body.has-side .topbar__end .bell { display: none; }
    body.has-side .topbar .brand, body.has-side .topbar .brand__name { white-space: nowrap; flex: none; }
    body.has-side .nav > a, body.has-side .nav > .m-only { position: relative; }
    body.has-side .nav .count { position: absolute; top: 2px; inset-inline-start: calc(50% + 4px); min-width: 16px; height: 16px; padding: 0 4px; font-size: .62rem; line-height: 16px; border-radius: 10px; background: #e5384f; color: #fff; text-align: center; }
}
/* phones: patients get no top bar anywhere, only the bottom bar */
@media (max-width: 900px) {
    /* the bottom bar lives inside the header: collapse the header box, hide only its brand and user area */
    body.role-patient .topbar, body.role-patient .topbar__in { position: static !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; backdrop-filter: none !important; transform: none !important; overflow: visible !important; }
    body.role-patient .topbar__in > .brand, body.role-patient .topbar__in > .topbar__end { display: none !important; }
}

/* appointments page: segmented tabs, action row, user dropdown */
.cx-tabs--apt { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 680px; margin-bottom: 14px; padding: 6px !important; border-radius: 20px; background: #d6e3f4; box-shadow: inset 3px 3px 7px rgba(18, 48, 110, .14), inset -2px -2px 5px rgba(255, 255, 255, .85); }
.cx-tabs--apt a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 15px; font-weight: 700; font-size: .88rem; color: #34507a; text-decoration: none; background: transparent; transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.cx-tabs--apt a .ico { width: 17px; height: 17px; flex: none; }
.cx-tabs--apt a:hover { background: rgba(255, 255, 255, .55); }
.cx-tabs--apt a.is-active { background: #2563eb; color: #fff; box-shadow: 3px 4px 9px -2px rgba(18, 48, 110, .4), inset -2px -2px 4px rgba(0, 0, 0, .15), inset 2px 2px 4px rgba(255, 255, 255, .3); }
@media (max-width: 700px) { .cx-tabs--apt a { flex-direction: column; gap: 3px; font-size: .74rem; padding: 8px 4px; } }
[data-ajax-tabs].is-loading { opacity: .55; transition: opacity .15s; pointer-events: none; }
.apt-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.who-dd__menu { position: absolute !important; top: calc(100% + 8px); inset-inline-end: auto !important; inset-inline-start: auto !important; left: 0 !important; right: auto !important; width: 200px !important; min-width: 0 !important; inset-inline: auto !important; }
@media (max-width: 900px) { .who-dd__menu { position: fixed !important; top: 72px !important; left: 12px !important; } }

/* appointments action row: cancel + in-person booking side by side, full width on phones, on the left on desktop */
.apt-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.apt-actions .btn { white-space: nowrap; }
@media (max-width: 700px) { .apt-actions { display: grid; grid-template-columns: 1fr 1fr; } .apt-actions .btn { width: 100%; justify-content: center; padding-inline: 6px; font-size: .74rem; } }
/* my patients: one filter dropdown + excel, no box around it */
.pt-filter { display: flex; align-items: center; gap: 8px; margin: 5px 0 10px; padding: 0; border: 0; background: none; box-shadow: none; }
.pt-filter .input { flex: 1; min-width: 0; }
.pt-filter__x { flex: none; white-space: nowrap; }
/* patient panel header: small account dropdown (user icon + chevron) */
.pp-dd { position: relative; margin-inline-start: auto; flex: none; }
.pp-dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 12px; background: rgba(255, 255, 255, .92); border: 2px solid rgba(255, 255, 255, .6); box-shadow: 3px 4px 8px -2px rgba(18, 48, 110, .35); color: #0b6f67; }
.pp-dd > summary::-webkit-details-marker { display: none; }
.pp-dd > summary .ico { width: 18px; height: 18px; } .pp-dd__chev { transition: transform .2s; } .pp-dd[open] .pp-dd__chev { transform: rotate(180deg); }
.pp-dd__menu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: 170px; display: grid; gap: 4px; padding: 6px; border-radius: 14px; background: #f1f6fd; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 6px 8px 16px -4px rgba(18, 48, 110, .35); }
.pp-dd__menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: .84rem; font-weight: 600; color: #10244f !important; text-decoration: none; background: #e6eefa; }
.pp-dd__menu a .ico { width: 16px; height: 16px; color: #2563eb !important; stroke: #2563eb; }
.pp-dd__menu a.is-out { background: #e5384f; color: #fff !important; } .pp-dd__menu a.is-out .ico { color: #fff !important; stroke: #fff; }
body.has-side .portal-head.pp-top .pp-dd__menu a span { color: inherit; }
/* the little "i" in the patient header: readable */
body.has-side .portal-head.pp-top .ti { background: #fff; color: #0b6f67; }

.pt-filter { flex-wrap: nowrap; } .pt-filter__x .sm { display: none; }
@media (max-width: 700px) { .pt-filter { gap: 6px; } .pt-filter .input { flex: 1 1 0; min-width: 0; } .pt-filter__x { padding-inline: 8px; font-size: .74rem; gap: 4px; } .pt-filter__x .lg { display: none; } .pt-filter__x .sm { display: inline; } }
