/* SI CARE LINK's own layer, loaded last.
   The screens are drawn by the shared base (recette.css) and by the operator console's design system (design.css):
   same tokens, same shell, same panels, tables, pills, buttons, fields and windows. This file only covers what the
   portal's own page has and the console has not. No colour is written here: every one is a token of design.css. */

/* 1. Sign-in: the portal's own words and Ophelia, on the console's sign-in page ------------------------------ */
.login-brand :is(.eyebrow,h1,p){position:relative;z-index:1}
.login-brand .intro{font-size:clamp(18px,2.1vw,25px);font-weight:700;line-height:1.2;letter-spacing:-.02em;opacity:1;margin-bottom:12px}
.login-brand .ophelia{position:absolute;right:-5%;bottom:0;width:50%;height:54%;object-fit:cover;object-position:top;opacity:.55;mask-image:linear-gradient(90deg,transparent,black 25%)}
.entry-links{margin:0}
#signup>p{font-size:13px;color:var(--muted);margin:0}
.login-card #signup-cancel{width:100%;min-height:38px}
.login-card .fine{font-size:11.5px;color:var(--muted);margin:14px 0 0}
@media(max-width:1000px){.login-brand .ophelia{display:none}}

/* 2. Shell: the residence selector sits between the brand and the menu ----------------------------------------- */
.sidebar .site-label{margin:0 8px 4px;font-size:11px;font-weight:600;color:var(--side-ink);opacity:.86}
.sidebar #site{width:auto;margin:0 6px 16px;flex:none;background:color-mix(in srgb,var(--side-accent) 9%,transparent);color:var(--side-ink);border-color:color-mix(in srgb,var(--side-accent) 45%,transparent);font-weight:600}
.sidebar #site:hover{border-color:var(--side-accent)}
.sidebar #site:focus-visible{outline-color:var(--side-accent)}
.sidebar #site option{background:var(--paper);color:var(--ink)}
/* a section this account sees but cannot open */
.sidebar nav .nav-unavailable{display:flex;align-items:center;gap:9px;min-height:34px;padding:8px 9px;border:1px solid transparent;font-size:12px;font-weight:600;line-height:1.3;color:var(--side-ink);opacity:.55}
.sidebar nav .nav-unavailable>span{display:inline-grid;place-items:center;flex:none;width:20px;font:600 15px/1 "Segoe UI Symbol",var(--font)}
.sidebar nav .nav-unavailable svg{width:17px;height:17px}
.sidebar nav .nav-unavailable small{margin-left:auto;font-size:10px;font-weight:400}
.page-heading .eyebrow{margin:0 0 4px}
.title-row{gap:10px;margin:0}
/* what the page just did: one reserved line, so nothing moves when it is written or cleared */
#workspace-message,#workspace-message:empty{display:block;min-height:19px;margin:0 0 8px;font-size:12.5px;font-weight:600;color:var(--accent)}
.message{font-size:12.5px;line-height:1.5;color:var(--accent);margin:0 0 8px;overflow-wrap:anywhere}
#site-summary:empty,#module-controls:empty{display:none}

/* 3. Above a list: the two views of the organisation, the filter, the button that adds --------------------------- */
:root .work-tabs>a{align-self:stretch;border-bottom:2px solid transparent;color:var(--muted);padding:10px 1px 8px;font-size:12.5px;font-weight:600;white-space:nowrap;text-decoration:none}
:root .work-tabs>a:hover{color:var(--ink)}
:root .work-tabs>a[aria-current=page]{color:var(--ink);border-bottom-color:var(--accent);font-weight:700}
#content>button{margin:0 0 12px}
/* the category tabs of Documents sit inside the padded panel: no second indent */
.native-documents>.tabs{padding:0 2px;margin:0 0 14px}
#content>.panel:last-child{margin-bottom:0}

/* 4. Lists ---------------------------------------------------------------------------------------------------- */
#content td{vertical-align:middle}
#content td button{white-space:nowrap}
.device-type{display:inline-flex;align-items:center;gap:7px}
.portal-devices{display:grid;gap:5px;max-width:260px}
.portal-devices .device-chip{margin:0;padding:5px 8px}
.device-chip [draggable=true]{cursor:grab}
tr.drop-target td{background:var(--hover)}
tr.drop-target td:first-child{box-shadow:inset 3px 0 0 var(--accent)}
/* "View details" opens the record's fields in its cell */
.console-details summary{width:max-content;border-radius:5px;padding:5px 4px;font-size:11.5px;font-weight:700;color:var(--accent);cursor:pointer}
.console-details summary:hover{background:var(--hover);color:var(--ink)}
.console-details dl{display:grid;grid-template-columns:minmax(90px,auto) minmax(0,1fr);gap:4px 12px;min-width:220px;margin:8px 0 2px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--paper);font-size:12px}
.console-details dt{color:var(--muted)}
.console-details dd{margin:0}
/* a resident's family media opens under the resident's line */
.family-row>td{padding:4px 12px 12px;background:var(--surface-raised)}
.family-row:hover{background:transparent}
.family-panel{border:1px solid var(--line);border-radius:var(--radius-m);background:var(--paper);padding:13px 15px}
.family-panel .note{margin:0 0 8px}
.family-table{margin-bottom:8px}
.family-actions{display:flex;flex-wrap:wrap;gap:5px}
.family-panel .card{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.family-panel .card button{margin:8px 6px 0 0}
/* a line that only carries a window (a confirmation opened from the line above) takes no room */
tr:has(>td>dialog.console-dialog)>td{padding:0;border:0}

/* 5. Cards ---------------------------------------------------------------------------------------------------- */
.dashboard-residences{max-width:1100px}
.client-card .hotel-photo-placeholder{display:grid;place-items:center}
.client-card .site-current{font-size:11px;font-weight:600;color:var(--muted)}
.reporting-metrics .metric-unavailable strong{font-size:15px;color:var(--muted)}
.u21-client{margin-top:13px}

/* 6. Settings and the invitation: sections of the page ---------------------------------------------------------- */
.profile{display:grid;grid-template-columns:minmax(120px,220px) minmax(0,1fr);margin-top:0;font-size:12.5px}
.profile :is(dt,dd){margin:0;padding:8px 0;border-bottom:1px solid var(--line)}
.profile :is(dt,dd):nth-last-child(-n+2){border-bottom:0}
.profile dt{color:var(--muted)}
.profile dd{font-weight:600;overflow-wrap:anywhere}
.profile-form,.invitation-card{max-width:620px}
.profile-form>.primary{margin-top:8px}
.invitation-card label{margin-top:10px}
.invitation-card button{margin:8px 6px 0 0}
.invitation-card .message:empty{display:none}
:is(.people-pending,.services-pending,.tasks-pending,.documents-pending) :is(button,label){margin:6px 6px 0 0}

/* 7. Windows -------------------------------------------------------------------------------------------------- */
dialog.console-dialog.wide{width:min(1000px,calc(100vw - 32px))}
.console-dialog form>label,.console-dialog .residence-edit-form>label{margin-bottom:8px}
.console-dialog form>p{font-size:12.5px;color:var(--muted)}
.console-dialog label:has(>input[type=checkbox]){display:flex;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:7px}
#residence-details-content>h3{font-size:15px;margin-bottom:8px}
#residence-details-content dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:0 0 10px;font-size:12.5px}
#residence-details-content :is(dt,dd){margin:0;padding:7px 0;border-bottom:1px solid var(--line)}
#residence-details-content dt{color:var(--muted)}
#residence-details-content dd{text-align:right;font-weight:600}
.residence-action-row{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:12px}
.residence-edit-form{margin-top:12px}
.residence-edit-form>.primary{margin-top:6px}
.residence-status button{margin:0 6px 8px 0}

/* 8. Appointments ----------------------------------------------------------------------------------------------- */
.booking-card{margin:0 0 13px}
.booking-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.booking-form .booking-wide{grid-column:1/-1}
.booking-action{margin:0 4px 4px 0}
@media(max-width:700px){.booking-form{grid-template-columns:1fr}.booking-form .booking-wide{grid-column:auto}}
/* Services: one tab per service, in the console's own layout; under the header of a service, what the catalogue and
   its booking settings say of it. */
.services-screen>.panel{margin:0}
.services-screen>.services-pending{margin:0 0 12px}
.service-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:5px 16px;margin:0;padding:12px 16px;border-bottom:1px solid var(--line);font-size:12.5px}
.service-facts dt{color:var(--muted)}
.service-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}

/* 9. Narrow windows --------------------------------------------------------------------------------------------- */
@media(max-width:650px){.profile{grid-template-columns:1fr}.profile dt{border-bottom:0;padding-bottom:0}.heading-tools{width:100%}}

/* Business (17 November 2026): the receptionist's calls under the figures of Reporting (business-ui.js). */
.business-report{margin-top:14px}
