/* Extensions to the approved stylesheet; its tokens and rules are kept intact. */
/* The approved sheet gives an accent to admin, reception and operators only: Omnia's superadmin and the warehouse tablet
   take the admin's, or the cabin numbers, the active menu mark and the buttons' hover lose their colour. */
body.role-superadmin,body.role-warehouse { --role-accent:var(--theme-18447b3a512c, #a7648e); --role-soft:var(--theme-dbe4f49eff3b, rgba(219, 182, 205, .33)); }
a { color:inherit; text-decoration:none; } a.button { display:inline-flex; } .nav-item { text-decoration:none; }
.crm-form { display:grid; gap:16px; } .crm-form label { display:grid; gap:7px; font-size:0.8744rem; font-weight:600; }
.crm-form input,.crm-form textarea,.crm-form select,.inline-form input { width:100%; min-height:43px; padding:11px 13px; border:1px solid var(--line); border-radius:12px; background:var(--theme-395a60f1d004, rgba(255,255,255,.65)); }
.crm-form textarea { resize:vertical; } .grid-form { grid-template-columns:repeat(2,minmax(0,1fr)); } .form-actions { align-self:end; }
.crm-card-content { padding:24px; } .crm-card-content > h2 { margin-bottom:14px; } .crm-card-content > p { color:var(--muted); font-size:0.9096rem; line-height:1.7; }
.view > .panel,.view > .integration-grid,.view > .package-grid,.view > .clients-layout,.view > .tablet-grid { margin-bottom:22px; }
.inline-form { display:flex; align-items:center; gap:8px; } .inline-form button { white-space:nowrap; }
.table-scroll { overflow:auto; } .crm-table { width:100%; border-collapse:collapse; font-size:0.8895rem; text-align:left; } .crm-table th { font-size:0.8092rem; text-transform:uppercase; color:var(--muted); letter-spacing:.06em; } .crm-table td,.crm-table th { padding:17px 21px; border-bottom:1px solid var(--line); } .crm-table tbody tr:last-child td { border-bottom:0; }
.crm-table td a:not(.button):hover { text-decoration:underline; } .block { display:block; margin-top:5px; }
.notice { padding:16px 20px; margin-bottom:20px; background:var(--sage-pale); border:1px solid var(--line); border-radius:16px; font-size:0.8996rem; } .notice p:last-child { margin-bottom:0; } .notice.error { background:var(--coral-pale); }
.empty-state { padding:36px 24px; text-align:center; color:var(--muted); } .empty-state h3 { font-size:1.6rem; margin:12px 0; color:var(--ink); } .empty-state p { font-size:0.8996rem; line-height:1.6; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:24px; } .login-panel { max-width:460px; width:100%; padding:32px; } .login-panel .brand-lockup { padding:0; margin-bottom:30px; }.login-panel .page-heading { margin:0 0 25px; }.login-note { display:block; margin-top:24px; font-size:0.8594rem; }
.content-entry { padding:24px; border-top:1px solid var(--line); } .content-entry h3 { margin:12px 0; } .content-entry p { font-size:0.8996rem; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; } .content-entry small { font-size:0.8242rem; }.content-entry .card-actions { margin-top:18px; }
.package-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; } details { margin-top:22px; } summary { cursor:pointer; font-size:0.8996rem; margin-bottom:12px; }
.messages-layout { display:grid; grid-template-columns:minmax(240px, .8fr) minmax(0,1.4fr); gap:22px; }.messages-thread { min-height:300px; max-height:480px; overflow:auto; padding:12px 0; }.message-bubble { max-width:85%; border-radius:16px; padding:14px; background:var(--paper); margin:10px 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:0.8996rem; }.message-bubble.mine { margin-left:auto; background:var(--plum-pale); }.conversation-row { width:100%; padding:20px; text-align:left; display:grid; gap:7px; background:transparent; border-bottom:1px solid var(--line); }.conversation-row:hover,.conversation-row.is-active { background:var(--blue-pale); }.conversation-row small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.remote-results { font-size:0.8996rem; line-height:1.7; }.muted { color:var(--muted); }.tablet-product .crm-form { grid-column:1 / -1; }.cabin-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }.cabin-grid h3 { margin-top:12px; }.rhythm-block { overflow:hidden; }.rhythm-lanes { overflow-x:auto; }.topbar-actions form { margin:0; }
@media(max-width:900px) { .clients-layout,.integration-grid,.messages-layout,.package-grid { grid-template-columns:1fr; }.cabin-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .grid-form,.cabin-grid { grid-template-columns:1fr; }.crm-card-content { padding:20px; }.crm-form input,.crm-form select,.crm-form textarea { font-size:16px; }.crm-table td,.crm-table th { padding:14px; }.page-heading .inline-form { width:100%; }.card-actions { flex-wrap:wrap; }.login-panel { padding:24px; } }
.brand-lockup,.sidebar-footer { flex-shrink:0; }.primary-nav { flex:1; min-height:0; }
.day-ruler { grid-template-columns:repeat(12,minmax(0,1fr)); }
.rhythm-track { background-size:auto; background-image:repeating-linear-gradient(90deg,transparent,transparent calc(8.333% - 1px),var(--line) calc(8.333% - 1px),var(--line) 8.333%); }
.rhythm-block { left:calc(var(--start) * 8.333%); width:calc(var(--span) * 8.333%); }
.clients-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr); gap:22px; }
@media(max-width:900px) { .clients-layout { grid-template-columns:1fr; } }
.calendar-shell { margin-bottom:22px; }.calendar-column-head { min-width:0; }.calendar-event { min-height:0; scroll-margin-top:100px; }
.calendar-slot-layer { position:absolute; top:var(--top); height:var(--height); inset-inline:0; width:100%; border:0; background:transparent; cursor:crosshair; z-index:0; }
.calendar-slot-layer:hover,.calendar-slot-layer:focus-visible { background:var(--theme-6528c9baccb2, rgba(228,189,204,.22)); outline:2px solid var(--plum); outline-offset:-2px; }
.calendar-lane .calendar-event { z-index:1; }
.booking-selection { margin:-4px 0 18px; color:var(--plum); font-size:0.8744rem; font-weight:600; }
.attention-panel { align-self:start; }
.attention-panel > .panel-header { padding:22px 20px 0; }
.attention-panel > .empty-state { min-height:0; padding:24px 20px 28px; }
.client-quivis-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:16px 0 20px; }
.csv-import-section { margin-top:22px; }.csv-columns { margin:8px 0 16px; }.csv-columns code { font-size:0.8895rem; overflow-wrap:anywhere; }
.csv-upload { grid-template-columns:minmax(0,1fr) auto; align-items:end; }.csv-preview { margin-top:20px; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--theme-fcd0a2584e89, rgba(255,255,255,.46)); }.csv-preview > strong { display:block; margin-bottom:12px; }.csv-confirm { margin-top:14px; }
.client-quivis-activity { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:18px 0 4px; }
.client-quivis-activity > div { border:1px solid var(--line); border-radius:14px; padding:12px; background:var(--theme-954eda273527, rgba(255,255,255,.48)); }
.client-quivis-activity span { display:block; color:var(--muted); font-size:0.8795rem; margin-bottom:6px; }
.client-quivis-activity strong { font-size:1.1rem; }
.client-activity-caption { color:var(--muted); font-size:0.8895rem; margin:2px 0 18px; }
.crm-inline-note { font-size:0.9096rem; margin:8px 0; color:var(--theme-8eda88e23563, #9c5b55); }
.brand-logo { width:42px; height:42px; object-fit:contain; flex:none; border-radius:12px; }
.settings-page > .panel { margin-bottom:22px; }
.settings-logo-preview { display:flex; align-items:center; gap:18px; }.settings-logo-preview img { max-width:160px; max-height:70px; object-fit:contain; }.settings-logo-preview label { display:flex; align-items:center; gap:8px; }.settings-logo-preview input { width:auto; min-height:0; }
/* «Posta e assistenza»: under each field what an empty one gives and where the value in use comes from; the test
   email sits right under the sender it checks. */
.crm-form label .field-note { color:var(--muted); font-size:0.8393rem; font-weight:400; line-height:1.5; }.crm-form label .field-note strong { color:var(--ink); font-weight:600; }
.mail-settings-form label,.mail-test-form label { align-content:start; }.mail-test-form { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }.mail-settings-form + .mail-test-form .form-actions { align-self:start; margin-top:24px; }
.theme-color-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.theme-color-row { display:grid; grid-template-columns:minmax(0,1fr) 85px auto; align-items:end; gap:8px; padding:10px; border:1px solid var(--line); border-radius:12px; background:var(--theme-5596a8e94c0b, rgba(255,255,255,.42)); }
.theme-color-row > label:first-child { grid-template-columns:55px minmax(0,1fr); align-items:center; }
.theme-color-row > label:first-child small { grid-column:2; grid-row:1; overflow-wrap:anywhere; }
.theme-color-row input[type=color] { width:48px; min-height:36px; padding:2px; grid-column:1; grid-row:1; }
.theme-color-row input[type=number] { min-height:36px; }.theme-color-row button { min-height:36px; }
.theme-color-details { padding-top:8px; border-top:1px solid var(--line); }.theme-color-details summary { font-weight:700; }.theme-search-label { margin:0 0 12px; }
.feature-flag-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.feature-flag { display:flex!important; flex-direction:row; align-items:center; gap:12px; padding:15px; border:1px solid var(--line); border-radius:14px; }.feature-flag input { width:19px; min-height:19px; }.feature-flag span { display:grid; gap:3px; }.feature-flag small { color:var(--muted); }
.mapping-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }.mapping-grid > div { display:grid; align-content:start; gap:12px; }.mapping-grid h3 { margin-bottom:2px; }
.support-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px; margin-bottom:22px; }.support-ticket-list { display:grid; gap:9px; }.support-ticket-row { display:grid; gap:5px; padding:14px 16px; border:1px solid var(--line); border-radius:13px; background:var(--theme-fcd0a2584e89, rgba(255,255,255,.46)); font-size:0.8895rem; }.support-ticket-row small { color:var(--muted); }.support-messages { display:grid; gap:10px; margin:16px 0 24px; }.support-messages .message-bubble { max-width:100%; margin:0; }.support-messages p { margin:8px 0; white-space:pre-wrap; }
@media(max-width:900px){.theme-color-grid,.feature-flag-list { grid-template-columns:1fr; }}
@media(max-width:900px){.mapping-grid,.support-grid { grid-template-columns:1fr; }}
@media(max-width:600px){.theme-color-row { grid-template-columns:minmax(0,1fr) 70px; }.theme-color-row button { grid-column:1 / -1; }}
@media(max-width:600px){.csv-upload { grid-template-columns:1fr; }}
@media(max-width:600px){.client-quivis-activity { grid-template-columns:repeat(2,minmax(0,1fr)); }}
.quick-client-toggle { margin:12px 0 18px; }
.quick-client-panel { margin:0 0 22px; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--theme-5596a8e94c0b, rgba(255,255,255,.42)); }
.quick-client-panel h3 { margin-bottom:12px; font-size:0.9498rem; }
.client-detail > p { font-size:0.8744rem; color:var(--muted); margin-top:24px; }.view > .client-layout { margin-bottom:22px; }
@media(max-width:600px) { .calendar-toolbar { flex-wrap:wrap; }.resource-health { flex-wrap:wrap; }.client-layout { grid-template-columns:minmax(0,1fr); }.client-profile-head h2 { overflow-wrap:anywhere; } }

.panel:not(.agenda-panel):not(.next-panel):not(.attention-panel):not(.crm-card-content) > .panel-header { padding:24px; }
.crm-card-content > .panel-header { padding:0 0 20px; }
.content-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }.content-layout { grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); }
@media(max-width:900px){.content-layout { grid-template-columns:minmax(0,1fr); }}
@media(max-width:600px){.content-metrics { grid-template-columns:minmax(0,1fr); }}

.post-preview,.post-thumbnail { display:block; max-width:100%; max-height:250px; object-fit:contain; border-radius:14px; margin:12px 0; }.post-thumbnail { max-height:160px; }
.ai-composer { display:grid; gap:12px; padding:18px; margin:0 0 20px; border:1px solid var(--line); border-radius:17px; background:linear-gradient(135deg,var(--plum-pale),var(--theme-e0888e602199, rgba(255,255,255,.55))); }
.ai-composer > div:first-child { display:flex; align-items:center; gap:8px; color:var(--plum); font-size:0.9096rem; }.ai-composer > div:first-child svg { width:18px; }
.ai-composer label,.story-editor-tools label { display:grid; gap:7px; font-size:0.8594rem; font-weight:600; }.ai-composer textarea,.ai-composer select,.story-editor-tools input,.story-editor-tools select { width:100%; min-height:42px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--theme-3abf49ec81cd, rgba(255,255,255,.7)); }
.ai-composer button { justify-self:start; }.ai-status { color:var(--muted); font-size:0.8594rem; line-height:1.5; }
.post-live-preview { display:grid; gap:9px; padding:22px; border:1px solid var(--line); border-radius:18px; background:var(--theme-b42fe74b2ccf, rgba(255,255,255,.56)); overflow-wrap:anywhere; }.post-live-preview small { color:var(--plum); text-transform:uppercase; letter-spacing:.1em; }.post-live-preview strong { font-family:"Instrument Serif",Georgia,serif; font-size:1.5rem; }.post-live-preview p { white-space:pre-wrap; line-height:1.6; font-size:0.8996rem; }.post-live-preview img { max-width:100%; max-height:250px; object-fit:cover; border-radius:12px; }
.story-editor-tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(130px,.45fr); gap:12px; }.story-editor-tools input { min-width:0; }#story-canvas { display:block; width:min(260px,100%); height:auto; margin:0 auto; border-radius:18px; box-shadow:var(--shadow-soft); }
@media(max-width:600px){.story-editor-tools { grid-template-columns:1fr; }}

.remote-booking { padding:18px 22px; border-top:1px solid var(--line); display:grid; gap:7px; }.remote-booking small { color:var(--muted); }.remote-booking .card-actions { display:flex; gap:8px; margin-top:8px; }

.story-layout { display:grid; grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr); gap:30px; }.story-list { display:grid; gap:15px; }.story-card { display:grid; grid-template-columns:90px 1fr; gap:16px; padding:14px; background:var(--theme-954eda273527, rgba(255,255,255,.48)); border:1px solid var(--line); border-radius:16px; }.story-card img { width:90px; height:150px; object-fit:cover; border-radius:10px; }.story-card h3 { margin:12px 0 6px; }.story-card .card-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }.story-preview { width:min(220px,100%); height:300px; object-fit:cover; border-radius:12px; }.story-section { margin-top:22px; }
@media(max-width:900px){.story-layout { grid-template-columns:1fr; }}

.giftcards-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }.giftcards-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin-bottom:22px; }.giftcards-columns > .panel { min-width:0; }.giftcards-list { display:grid; gap:12px; }.gift-card-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 18px; border:1px solid var(--line); border-radius:16px; background:var(--theme-954eda273527, rgba(255,255,255,.48)); }.gift-card-detail { display:grid; gap:5px; font-size:0.9146rem; overflow-wrap:anywhere; }.gift-card-detail span { color:var(--plum); font-weight:650; }.gift-card-detail small { color:var(--muted); }.gift-feedback { margin-top:16px; font-size:0.8895rem; line-height:1.6; }.giftcards-columns #gift-lookup-result { margin:20px 0; }.giftcards-columns #gift-redeem-form:not([hidden]) { padding-top:16px; border-top:1px solid var(--line); }
@media(max-width:900px){.giftcards-columns { grid-template-columns:minmax(0,1fr); }}
@media(max-width:600px){.giftcards-summary { grid-template-columns:minmax(0,1fr); }.gift-card-row { align-items:flex-start; flex-direction:column; }}

/* Team colors are distinct from shift-band colors and follow the approved prototype. */
.avatar-rose { color:var(--theme-1e87ff7ffa12, #905a78); background:var(--theme-a369d94251a9, #f7eaf1); }
.calendar-event.amber,.rhythm-block.staff-amber,.calendar-event.is-windowed.amber .event-part { color:var(--theme-c95c7b8afa3a, #885c19); background:var(--theme-1f61d57178ec, #fbf2df); border-left:3px solid var(--theme-5d04c6673c5e, #b89459); }
.calendar-event.sage,.rhythm-block.staff-sage,.calendar-event.is-windowed.sage .event-part { color:var(--theme-4da9d52db94e, #315a4d); background:var(--theme-885c22201f78, #deece7); border-left:3px solid var(--theme-d4a8f74e2724, #83a396); }
.calendar-event.plum,.rhythm-block.staff-plum,.calendar-event.is-windowed.plum .event-part { color:var(--theme-cac9a2945123, #5a4360); background:var(--theme-255f1ed2eae4, #eee7f2); border-left:3px solid var(--theme-7bd0736b73ff, #927a9b); }
.calendar-event.blush,.rhythm-block.staff-blush,.calendar-event.is-windowed.blush .event-part { color:var(--theme-d3bd5e9fba2a, #824b5d); background:var(--theme-0fa06bf6c2db, #f4e6ea); border-left:3px solid var(--theme-ac6e987311e2, #bc8096); }
.calendar-event.blue,.rhythm-block.staff-blue,.calendar-event.is-windowed.blue .event-part { color:var(--theme-9fa47613041b, #076689); background:var(--theme-47583bb01700, #e1f4fb); border-left:3px solid var(--theme-f8cdfb12e3c8, #7cb1c4); }
.calendar-event.rose,.rhythm-block.staff-rose,.calendar-event.is-windowed.rose .event-part { color:var(--theme-1e87ff7ffa12, #905a78); background:var(--theme-a369d94251a9, #f7eaf1); border-left:3px solid var(--theme-a0c2f741083d, #ba87a4); }
.shift-cell.long { color:var(--theme-1e87ff7ffa12, #905a78); background:var(--theme-a369d94251a9, #f7eaf1); }.shift-legend i.long { background:var(--theme-a0c2f741083d, #ba87a4); }.shift-cell.custom { color:var(--plum); background:var(--plum-pale); }
.team-edit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:20px 0; }.team-edit-grid details { margin:0; }.team-edit-grid summary { display:flex; align-items:center; gap:8px; }.team-shift-form { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }.team-shift-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.team-shift-grid > div { display:grid; grid-template-columns:60px 1fr 1fr; gap:8px; align-items:center; }.team-shift-grid > div > strong { font-size:0.8594rem; }.team-shift-grid label { font-size:0.8242rem; }
.assistant-panel { max-width:860px; }.assistant-log { max-height:490px; min-height:220px; overflow:auto; display:grid; align-content:start; gap:12px; padding:18px; background:var(--theme-8e2d6ca7b073, rgba(255,255,255,.45)); border:1px solid var(--line); border-radius:16px; margin-bottom:16px; }.assistant-message { width:min(85%,650px); padding:14px 17px; background:var(--plum-pale); border-radius:15px; font-size:0.9096rem; line-height:1.55; }.assistant-message.is-user { justify-self:end; background:var(--sage-pale); }.assistant-message p { margin:7px 0; white-space:pre-wrap; }.assistant-message a { margin-top:8px; }.assistant-compose { display:flex; gap:10px; }.assistant-compose input { flex:1; }.assistant-suggestions { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }.assistant-suggestions button { padding:8px 13px; border-radius:30px; border:1px solid var(--line); background:var(--paper); color:var(--plum); cursor:pointer; }
.insights-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin-bottom:22px; }.insight-result { min-height:115px; margin-top:18px; padding:17px; border-radius:14px; background:var(--plum-pale); font-size:0.9096rem; line-height:1.6; white-space:pre-wrap; }.insight-result p { margin:8px 0 15px; }.opportunity-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.opportunity-card { padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--theme-aeceb004b4ec, rgba(255,255,255,.5)); }.opportunity-card small { color:var(--plum); text-transform:uppercase; letter-spacing:.07em; }.opportunity-card h3 { margin:7px 0; }.opportunity-card p { color:var(--muted); font-size:0.8744rem; }.opportunity-card .card-actions { display:flex; align-items:center; gap:12px; margin-top:16px; }
[data-inventory-row][hidden] { display:none!important; }.inventory-panel .panel-tools { display:flex; gap:9px; align-items:center; }.inventory-panel .panel-tools select { border:1px solid var(--line); border-radius:10px; padding:9px; background:var(--paper); }.inventory-table { width:100%; }.inventory-table th,.inventory-table td { padding:15px 12px; }.inventory-table td { font-size:0.8694rem; }.tablet-toolbar { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:20px; }.tablet-toolbar .tablet-search { flex:1; }.inventory-table td:last-child { white-space:nowrap; }
@media(max-width:900px){.team-edit-grid,.insights-layout,.opportunity-list { grid-template-columns:1fr; }}
.insights-layout .ai-off { display:flex; align-items:flex-start; gap:8px; margin:0 0 16px; padding:12px 14px; border-radius:12px; background:var(--amber-pale); color:var(--ink-soft); font-size:0.8996rem; line-height:1.5; } .insights-layout .ai-off svg { flex:none; width:16px; margin-top:2px; }
.insights-layout .insight-meta { display:block; margin:10px 0 0; color:var(--muted); font-size:0.8795rem; line-height:1.5; }
.insights-layout .privacy-note { display:flex; align-items:flex-start; gap:7px; margin:14px 0 0; color:var(--ink-soft); font-size:0.8795rem; line-height:1.5; } .insights-layout .privacy-note svg { flex:none; width:15px; margin-top:2px; color:var(--sage); }
.insights-layout .crm-form label .field-note { font-size:0.8795rem; }
.upsell-target { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; margin:0; padding:10px 12px; border-radius:10px; background:var(--plum-pale); font-size:0.8996rem; line-height:1.5; }
.insight-result textarea { display:block; width:100%; margin:6px 0 0; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--theme-e08de713877c, #fff); font-size:0.9397rem; line-height:1.55; resize:vertical; }
.insight-result .card-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:12px; }
/* No opportunity: one compact line across the whole list, not the prototype's tall empty state in its first column. */
.opportunity-list > .empty-state { grid-column:1 / -1; min-height:0; padding:22px 20px; border:1px dashed var(--line); border-radius:16px; } .opportunity-list > .empty-state p { max-width:none; margin:0; color:var(--ink-soft); font-size:0.9498rem; }
@media(max-width:600px){.team-shift-grid { grid-template-columns:1fr; }.inventory-panel .panel-tools,.tablet-toolbar { flex-wrap:wrap; }.assistant-compose { flex-direction:column; }}
.credit-balance-strip { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin:20px 0 26px; }.credit-balance-strip > * { display:grid; gap:8px; padding:20px; border-radius:16px; background:var(--plum-pale); }.credit-balance-strip small { color:var(--plum); text-transform:uppercase; letter-spacing:.08em; }.credit-balance-strip strong { font-size:1.45rem; }.credit-balance-strip span { font-size:0.8694rem; color:var(--muted); }.credit-package-list { display:grid; gap:12px; margin:15px 0 25px; }.credit-package-row { display:grid; grid-template-columns:1.4fr .7fr .7fr .8fr .8fr auto; gap:9px; align-items:end; padding:15px; border:1px solid var(--line); border-radius:14px; }.credit-package-row label { min-width:0; }.credit-package-row small { color:var(--muted); }.credit-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }.credit-card { display:grid; gap:8px; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--theme-954eda273527, rgba(255,255,255,.48)); }.credit-card > small { color:var(--plum); }.credit-card h3 { font-size:1.1rem; }.credit-card p { font-size:0.8996rem; }.credit-request-list { display:grid; gap:10px; }.credit-request-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px; border:1px solid var(--line); border-radius:13px; }.credit-request-row > div { display:grid; gap:5px; }.credit-request-row small { color:var(--muted); }.credit-request-row .inline-form input { width:auto; max-width:160px; }
@media(max-width:1050px){.credit-package-row { grid-template-columns:repeat(3,minmax(0,1fr)); }.credit-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }}
@media(max-width:600px){.credit-balance-strip,.credit-cards,.credit-package-row { grid-template-columns:1fr; }}
.crm-form input[type=checkbox] { width:20px; min-height:20px; margin-right:8px; vertical-align:middle; }.campaign-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr); gap:22px; margin-bottom:22px; }.campaign-audience { padding:13px 16px; border-radius:12px; background:var(--sage-pale); color:var(--ink); font-size:0.8996rem; }.campaign-steps { display:grid; gap:12px; margin-bottom:20px; }.campaign-steps p { font-size:0.8996rem; line-height:1.6; }.campaign-list { display:grid; gap:14px; }.campaign-card { display:flex; justify-content:space-between; align-items:start; gap:20px; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--theme-aeceb004b4ec, rgba(255,255,255,.5)); }.campaign-card > div { max-width:70%; }.campaign-card small { color:var(--plum); text-transform:uppercase; letter-spacing:.07em; }.campaign-card h3 { margin:6px 0; }.campaign-card p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:0.8895rem; line-height:1.5; }.campaign-approve { min-width:200px; }.campaign-approve label { display:block; font-size:0.8594rem; font-weight:400; }
@media(max-width:900px){.campaign-grid { grid-template-columns:1fr; }}
@media(max-width:600px){.campaign-card { flex-direction:column; }.campaign-card > div { max-width:100%; }}
.inventory-tablet-mode { background:var(--theme-3f83848300a4, #edf1ef); }.inventory-tablet-mode .sidebar,.inventory-tablet-mode .topbar { display:none; }.inventory-tablet-mode .workspace { margin-left:0; }.inventory-tablet-mode main { padding:0 0 32px; }.inventory-tablet { max-width:none; }.inventory-tablet > .page-heading,.inventory-tablet > .tablet-toolbar,.inventory-tablet > .tablet-grid,.inventory-tablet > .tablet-feed,.inventory-tablet > .crm-card-content { max-width:1380px; margin-left:auto; margin-right:auto; }.inventory-tablet > .page-heading { padding:30px 30px 0; }.inventory-tablet > .tablet-toolbar,.inventory-tablet > .tablet-grid,.inventory-tablet > .tablet-feed,.inventory-tablet > .crm-card-content { width:calc(100% - 60px); }.inventory-tablet .tablet-header { position:sticky; top:0; z-index:20; }.inventory-tablet .page-heading h1 { font-size:clamp(2.7rem,5vw,4.2rem); }.inventory-tablet .tablet-search { min-width:min(330px,100%); }
.inventory-summary article small { font-size:0.8594rem; }.inventory-summary article strong { font-size:0.9749rem; }.inventory-tabs button { font-size:0.8594rem; }.inventory-table th { font-size:0.8393rem; }.inventory-table td { font-size:0.8895rem; }.inventory-table .product-cell strong { font-size:0.8996rem; }.inventory-table .product-cell small,.inventory-table .category-tag,.inventory-table .stock-state { font-size:0.8343rem; }.weekly-shifts th { font-size:0.8242rem; }.weekly-shifts td { font-size:0.8493rem; }.weekly-shifts .shift-cell { font-size:0.8292rem; }.weekly-shifts .role-pill { font-size:0.8242rem; }
@media(max-width:700px){.inventory-tablet > .page-heading { padding:22px 15px 0; }.inventory-tablet > .tablet-toolbar,.inventory-tablet > .tablet-grid,.inventory-tablet > .tablet-feed,.inventory-tablet > .crm-card-content { width:calc(100% - 30px); }.inventory-tablet .tablet-header { padding:0 15px; }.inventory-tablet .page-actions > :not(.guide-help-button) { display:none; }.inventory-tablet .tablet-toolbar { flex-direction:column; align-items:stretch; }.inventory-tablet .tablet-search { width:100%; }.inventory-tablet .tablet-grid { grid-template-columns:1fr; }}
.inventory-tablet .tablet-header { width:calc(100% - 56px); max-width:1380px; margin:22px auto 12px; top:12px; border-radius:30px; box-shadow:var(--shadow-soft); overflow:hidden; }
.inventory-tablet .tablet-header .brand-mark { border-radius:22px; }
.inventory-tablet .tablet-exit { border-radius:18px; }
.inventory-tablet > .page-heading { padding-top:24px; }
@media(max-width:700px){.inventory-tablet .tablet-header { width:calc(100% - 30px); margin:15px auto 8px; top:8px; border-radius:24px; }.inventory-tablet .tablet-header .brand-mark { border-radius:17px; }.inventory-tablet .tablet-exit { border-radius:15px; }.inventory-tablet > .page-heading { padding-top:20px; }}
.inventory-tablet .tablet-toolbar { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; margin-top:30px; margin-bottom:24px; }
.inventory-tablet .tablet-search { width:100%; height:58px; border-radius:18px; padding-inline:20px; }
.inventory-tablet .tablet-search input { font-size:0.9297rem; }
.inventory-tablet .tablet-filter { width:100%; min-height:58px; justify-content:flex-start; align-items:center; gap:8px; padding:6px; border-radius:18px; }
.inventory-tablet .tablet-filter button { min-height:46px; padding-inline:24px; border-radius:13px; font-size:0.8795rem; }
@media(max-width:700px){.inventory-tablet .tablet-toolbar { gap:14px; margin-top:24px; }.inventory-tablet .tablet-filter button { padding-inline:16px; }}
.inventory-movement-toggle { display:block; margin:8px 0 0 46px; padding:0; border:0; background:transparent; cursor:pointer; font-size:0.8493rem; white-space:nowrap; }
.inventory-panel .panel-tools { flex-wrap:wrap; }
.inventory-panel .panel-tools .input-with-icon { flex:1 1 190px; }
.treatment-panel .panel-tools { flex-wrap:wrap; align-items:center; justify-content:flex-end; }
.treatment-panel .panel-tools .input-with-icon { flex:1 1 190px; }
#inventory-export { min-height:42px; white-space:nowrap; }
.inventory-table td:nth-child(5) { white-space:normal; min-width:135px; max-width:170px; line-height:1.4; }
.inventory-movement-toggle[aria-expanded="true"] { color:var(--ink); text-decoration:underline; text-underline-offset:5px; }
.inventory-movement-row[hidden] { display:none; }
.inventory-movement-row > td { padding:0 12px 18px!important; border-bottom:1px solid var(--line); }
.inventory-movement-panel { display:grid; gap:18px; padding:22px; border:1px solid var(--line); border-radius:20px; background:var(--plum-pale); }
.inventory-movement-panel h3 { margin:5px 0; font-size:1rem; }
.inventory-movement-panel small { color:var(--muted); font-size:0.8594rem; }
.inventory-movement-form { display:grid; grid-template-columns:110px minmax(180px,470px); gap:12px; align-items:end; }
.inventory-movement-form label { display:grid; gap:7px; font-size:0.8493rem; font-weight:600; }
.inventory-movement-form input { width:100%; min-height:42px; padding:9px 12px; border:1px solid var(--line); border-radius:11px; background:var(--paper); font:inherit; }
.inventory-movement-actions { display:flex; grid-column:1/-1; gap:8px; }
.inventory-movement-actions .button { min-height:42px; white-space:nowrap; }
@media(max-width:750px){.inventory-movement-form { grid-template-columns:90px minmax(160px,1fr); }.inventory-movement-panel { min-width:560px; }}
.stock-log-panel { margin:22px 0; scroll-margin-top:100px; }
.inventory-tablet .stock-log-panel { width:calc(100% - 60px); max-width:1380px; margin:24px auto; }
.stock-log-filters { display:grid; grid-template-columns:repeat(4,minmax(115px,1fr)) auto auto; gap:10px; align-items:end; margin:5px 0 22px; }
.stock-log-filters label { display:grid; gap:7px; min-width:0; font-size:0.8493rem; font-weight:600; }
.stock-log-filters input,.stock-log-filters select { width:100%; min-height:42px; padding:8px 11px; border:1px solid var(--line); border-radius:11px; background:var(--paper); font:inherit; }
.stock-log-filters .button { min-height:42px; white-space:nowrap; }
.stock-log-table { width:100%; border-collapse:collapse; font-size:0.8795rem; }
.stock-log-table th,.stock-log-table td { padding:14px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; white-space:nowrap; }
.stock-log-table th { color:var(--muted); font-size:0.8242rem; text-transform:uppercase; letter-spacing:.08em; }
.stock-log-table td:nth-child(5) { min-width:180px; white-space:normal; line-height:1.45; }
.stock-log-direction { display:inline-block; padding:5px 9px; border-radius:999px; font-size:0.8393rem; font-weight:700; }
.stock-log-direction.in { color:var(--sage); background:var(--sage-pale); }
.stock-log-direction.out { color:var(--plum); background:var(--plum-pale); }
.stock-log-pages { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:18px; font-size:0.8594rem; }
@media(max-width:1100px){.stock-log-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.stock-log-filters .button { justify-content:center; }}
@media(max-width:700px){.inventory-tablet .stock-log-panel { width:calc(100% - 30px); }.stock-log-filters { grid-template-columns:1fr 1fr; }.stock-log-filters label:first-child { grid-column:1/-1; }.stock-log-table { min-width:720px; }}
/* Shared agenda (meeting decision): operators see every colleague, unlike the prototype's personal view. */
/* Oggi names everyone on shift, however many: the legend wraps instead of running off a phone. */
.agenda-legend { flex-wrap:wrap; row-gap:8px; }
body.role-operator .agenda-legend > span:not([data-current-operator]) { display:inline-flex; }
body.role-operator .rhythm-row:not([data-current-operator]) { display:grid; }
body.role-operator .calendar-filters > :not([data-current-operator]) { display:flex; }
body.role-operator .shift-person:not([data-current-operator]) { display:flex; }
body.role-operator .calendar-column-head:not([data-current-operator]) { display:grid; }
body.role-operator .calendar-lane:not([data-current-operator]) { display:block; }
@media(min-width:1221px){.shift-roster,body.role-operator .shift-roster { grid-template-columns:minmax(180px,1.4fr) repeat(var(--roster-cols,6),minmax(92px,1fr)); }}
@media(max-width:1220px) and (min-width:681px){body.role-operator .shift-roster { grid-template-columns:repeat(3,1fr); }}
@media(max-width:680px){body.role-operator .shift-roster { grid-template-columns:1fr 1fr; }}
[data-staff-column][hidden] { display:none!important; }
.calendar-column-head[data-current-operator] strong::after,.shift-person[data-current-operator] strong::after { content:" · tu"; color:var(--muted); font-weight:500; }
.segmented-control a { padding:7px 10px; color:var(--muted); border-radius:7px; font-size:0.8092rem; font-weight:600; }
.segmented-control a.is-active { color:var(--ink); background:var(--theme-5d1cc971f5cf, rgba(255,255,255,.82)); box-shadow:0 2px 5px var(--theme-e8037c1a3144, rgba(23,37,50,.08)); }
.calendar-toolbar { flex-wrap:wrap; }
.hours-toggle { white-space:nowrap; text-decoration:none; }.hours-toggle.is-active { color:var(--plum); border-color:var(--plum); background:var(--theme-6528c9baccb2, rgba(228,189,204,.22)); }
.calendar-date-form input { min-height:42px; padding:9px 12px; border:1px solid var(--line); border-radius:12px; background:var(--theme-395a60f1d004, rgba(255,255,255,.65)); font:inherit; font-size:0.8594rem; }
.calendar-event { text-align:left; cursor:pointer; overflow:hidden; }
.calendar-event em { margin-top:4px; font-size:0.7388rem; font-style:normal; font-weight:700; opacity:.8; }
.calendar-event.is-passive { border-right:2px dashed currentColor; }
.calendar-event.is-closed { opacity:.55; }
.calendar-event .event-state { position:absolute; top:9px; right:9px; width:7px; height:7px; border-radius:50%; background:var(--coral); }
.calendar-event:focus-visible { outline:2px solid var(--plum); outline-offset:2px; }
.calendar-lane.is-off { background-color:var(--theme-6a0e724209fe, rgba(107,76,96,.035)); }
.shift-shade { position:absolute; inset-inline:0; top:var(--top); height:var(--height); background:repeating-linear-gradient(135deg,var(--theme-283b7844e71c, rgba(107,76,96,.05)) 0 6px,transparent 6px 12px); pointer-events:none; }
.room-head { grid-template-columns:32px 1fr; }
.week-board { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px; margin-bottom:22px; }
.week-day { padding:16px; align-self:start; }
.week-day.is-today { box-shadow:0 0 0 2px var(--role-soft,var(--plum-pale)),var(--shadow-soft); }
.week-day-head { display:flex; align-items:center; justify-content:space-between; }
.week-day-head > span:first-child { display:flex; flex-direction:column; }
.week-day-head small { color:var(--muted); font-size:0.774rem; text-transform:uppercase; letter-spacing:.08em; }
.week-day-head strong { font-family:var(--font-display); font-size:1.35rem; font-weight:400; }
.week-day-meta { margin:4px 0 10px; color:var(--muted); font-size:0.774rem; }
.week-item { width:100%; display:grid; grid-template-columns:8px 38px 1fr; align-items:center; gap:8px; padding:9px 0; border-top:1px solid var(--line); background:transparent; text-align:left; }
.week-item time { font-size:0.7891rem; font-weight:700; }
.week-item > span:last-child { display:flex; flex-direction:column; min-width:0; }
.week-item strong { font-size:0.8092rem; }
.week-item small { margin-top:2px; color:var(--muted); font-size:0.7489rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.week-item:hover strong { text-decoration:underline; }
.week-empty { padding:10px 0; color:var(--muted); font-size:0.779rem; border-top:1px solid var(--line); }
.staff-dot-amber { background:var(--amber); }.staff-dot-sage { background:var(--sage); }.staff-dot-plum { background:var(--plum); }.staff-dot-blush { background:var(--blush); }.staff-dot-blue { background:var(--blue); }.staff-dot-rose { background:var(--theme-a0c2f741083d, #ba87a4); }
/* Appointment detail modal */
.appointment-detail > .status-pill { margin:12px 0; }
.appointment-detail .treatment-line { margin-bottom:6px; }
.small-print { font-size:0.779rem; margin:8px 0; }
.appointment-note { display:grid; gap:4px; margin:10px 0; padding:10px; border-radius:9px; background:var(--sage-pale); font-size:0.7891rem; line-height:1.5; white-space:pre-wrap; }
.appointment-start { margin-top:14px; }
.appointment-secondary-actions { display:flex; flex-wrap:wrap; gap:16px; margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.appointment-secondary-actions form { margin:0; }
.text-button.danger { color:var(--coral); }
.appointment-move { margin-top:14px; }
.appointment-move summary { font-weight:700; font-size:0.8092rem; }
.modal .quick-client-toggle { margin-top:14px; }
.modal .quick-client-panel { margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.modal .quick-client-panel h3 { margin-bottom:10px; font-size:0.8996rem; }
.modal-wide { width:min(760px,100%); }
.modal .booking-selection { margin:-6px 0 14px; }
/* Topbar: user menu and command palette */
.location-name { display:block; font-size:0.8594rem; font-weight:700; }
.user-menu-wrap { position:relative; }
.user-menu-panel { position:absolute; right:0; top:calc(100% + 10px); z-index:120; min-width:240px; padding:8px; border:1px solid var(--theme-bf4d2367b169, rgba(255,255,255,.86)); border-radius:14px; background:var(--theme-b2fe726054ed, rgba(255,252,254,.96)); box-shadow:0 20px 50px var(--theme-ce01029fa5d9, rgba(67,45,59,.18)); backdrop-filter:blur(20px); }
.user-menu-panel p { display:flex; flex-direction:column; gap:3px; margin:0 0 6px; padding:8px 10px 10px; border-bottom:1px solid var(--line); }
.user-menu-panel p strong { font-size:0.8393rem; }.user-menu-panel p small { color:var(--muted); font-size:0.774rem; }
.user-menu-panel a,.user-menu-panel button { width:100%; display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:9px; background:transparent; font-size:0.8192rem; text-align:left; }
.user-menu-panel a:hover,.user-menu-panel button:hover { background:var(--plum-pale); }
.user-menu-panel svg { width:15px; color:var(--blue-deep); }
.user-menu-panel form { margin:0; }
.command-results { max-height:min(60vh,460px); overflow-y:auto; }
.command-results a.command-item { width:100%; display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:8px; padding:9px 10px; border-radius:10px; }
.command-results a.command-item:hover,.command-results a.command-item.is-active { background:var(--theme-33de467cefc1, #f3f6f5); }
.command-results a.command-item > svg { width:17px; color:var(--blue-deep); }
.command-results a.command-item > span { display:flex; flex-direction:column; }
.command-empty { padding:18px 12px; color:var(--muted); font-size:0.8092rem; }
@media(max-width:700px){.week-board { grid-template-columns:1fr; }.user-menu-panel { right:-8px; }}
/* Dashboard */
.rhythm-track { background-image:repeating-linear-gradient(90deg,transparent,transparent calc(var(--hour,8.333%) - 1px),var(--line) calc(var(--hour,8.333%) - 1px),var(--line) var(--hour,8.333%)); }
.rhythm-block { cursor:pointer; text-align:left; }
.attention-list > a { width:100%; display:grid; grid-template-columns:36px 1fr 16px; align-items:center; gap:10px; padding:13px 0; border-bottom:1px solid var(--line); }
.attention-list > a:last-of-type { border-bottom:0; }
.attention-list > a > span:nth-child(2) { display:flex; flex-direction:column; }
.attention-list > a > svg { width:14px; color:var(--muted); }
.attention-list > .empty-state { padding:18px 0 4px; }
.mini-task { display:grid; grid-template-columns:17px 1fr auto; align-items:center; gap:7px; padding:8px 0; border-bottom:1px solid var(--theme-29bccd636dcf, #edf0f0); font-size:0.784rem; }
.mini-task:last-child { border:0; }
.mini-task svg { width:13px; color:var(--blue-deep); }
.mini-task small { font-size:0.7489rem; color:var(--muted); white-space:nowrap; }
.mini-task:hover span { text-decoration:underline; }
.next-panel .empty-state { border-bottom:1px solid var(--line); }
/* Clients */
.client-tabs a { display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border-radius:8px; color:var(--muted); font-size:0.7991rem; font-weight:600; }
.client-tabs a.is-active { color:var(--ink); background:var(--theme-5d1cc971f5cf, rgba(255,255,255,.82)); box-shadow:0 2px 5px var(--theme-e8037c1a3144, rgba(23,37,50,.08)); }
.client-tabs a span { font-size:0.7589rem; opacity:.75; }
.client-detail .client-quivis-actions { margin:14px 0 0; }
.client-detail .client-quivis-actions small { font-size:0.779rem; color:var(--muted); }
.client-clinical-notes,.client-welcome-notes { margin:10px 0 0; padding-top:10px; border-top:1px solid var(--theme-05691188a892, #e4e9e7); color:var(--ink-soft); font-size:0.779rem; line-height:1.55; white-space:pre-wrap; }
.detail-card a strong:hover { text-decoration:underline; }
.path-card { margin-bottom:12px; }
.path-card .table-progress > i { width:120px; }
.panel-subtitle { margin:22px 0 12px; font-size:0.8594rem; }
.measure-history { margin-top:16px; }
.card-actions.single { grid-template-columns:auto; justify-content:start; }
.client-detail .empty-state .button { margin-top:12px; }
.permission-denied { flex-direction:column; align-items:flex-start; gap:6px; }
.permission-denied p { margin:0; color:var(--muted); font-size:0.774rem; line-height:1.5; }
.modal-form .check-row { flex-direction:row; align-items:center; gap:8px; }
.modal-form .check-row input { width:auto; min-height:0; }
.import-options { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:6px; }
.import-options form { margin:0; }
.modal .csv-import-section { margin:14px 0 0; padding:0; box-shadow:none; border:0; background:transparent; }
.client-tabs { overflow-x:auto; scrollbar-width:none; }
.client-tabs a { white-space:nowrap; flex:none; }
/* Packages */
.package-grid { grid-template-columns:minmax(0,1.7fr) minmax(260px,.75fr); align-items:start; }
.mode-tag { display:inline-block; padding:2px 7px; border-radius:10px; font-size:0.7489rem; font-weight:700; }
.mode-tag.active { color:var(--theme-bec28fcd0da9, #437a66); background:var(--sage-pale); }
.mode-tag.passive { color:var(--blue-deep); background:var(--blue-pale); }
.ledger-panel { padding:20px; }
.package-payment { margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
.modal .session-visual + .session-dots { margin-bottom:6px; }
.wide-table-panel .table-person:hover strong { text-decoration:underline; }
/* The course's name and kind may wrap: at 1280px the row's arrow («Gestisci») stayed cut behind the table's scroll. */
#package-rows td:nth-child(2) { white-space:normal; min-width:130px; }
@media(max-width:1100px){.package-grid { grid-template-columns:1fr; }}
/* Catalog */
.cabin-panel,.treatment-panel { padding:22px; }
.cabin-panel .panel-header { flex-wrap:wrap; gap:10px; }
.cabin-card.is-inactive,.treatment-table tr.is-inactive { opacity:.55; }
.cabin-card footer { align-items:center; }
.cabin-card footer .cabin-count { color:var(--muted); background:transparent; padding-left:0; }
.cabin-card footer .text-button { margin-left:auto; font-size:0.774rem; }
.treatment-table td { vertical-align:middle; }
.room-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:0; padding:10px; border:1px solid var(--line); border-radius:9px; }
.room-picker legend { padding:0 4px; color:var(--muted); font-size:0.764rem; font-weight:600; }
.room-picker label { flex-direction:row; align-items:center; gap:6px; color:var(--ink-soft); font-size:0.774rem; }
.room-picker input { width:auto; min-height:0; }
.modal-form label[hidden] { display:none; }
@media(max-width:600px){.room-picker { grid-template-columns:1fr 1fr; }}
/* Team */
.team-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; margin-bottom:22px; }
.team-members article.is-inactive,.weekly-shifts tr.is-inactive { opacity:.55; }
.shift-cell.off { color:var(--muted); background:transparent; }
.shift-legend .mid { background:var(--theme-fe53c54df50f, #e8f0ec); }
.setup-link-panel { display:grid; grid-template-columns:36px 1fr; gap:14px; padding:20px; margin-bottom:22px; }
.setup-link-panel strong { font-size:0.8493rem; }
.setup-link-panel p { margin:4px 0 10px; color:var(--muted); font-size:0.7991rem; }
.setup-link-row { display:flex; gap:8px; }
.setup-link-row input { flex:1; min-width:0; min-height:38px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; font-size:0.7991rem; background:var(--theme-e08de713877c, #fff); }
.team-shift-form h3,.team-pin-form h3 { font-size:0.8594rem; margin:0; }
.team-pin-form { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.audit-row.is-sensitive .avatar { box-shadow:0 0 0 2px var(--coral-pale); }
.audit-panel { max-height:560px; overflow-y:auto; }
@media(max-width:1000px){.team-grid { grid-template-columns:1fr; }}
/* Inventory PIN signature */
.signer-bar { display:grid; grid-template-columns:52px minmax(0,1fr) auto; align-items:center; gap:14px; padding:16px 20px; margin-bottom:18px; }
.signer-bar > span:nth-child(2) { display:flex; flex-direction:column; gap:2px; }
.signer-bar small { color:var(--muted); font-size:0.774rem; text-transform:uppercase; letter-spacing:.08em; }
.signer-bar strong { font-size:0.9498rem; }
.signer-bar em { color:var(--muted); font-size:0.7891rem; font-style:normal; }
.signer-bar.is-signed { background:linear-gradient(120deg,var(--theme-018aaa8fac1a, rgba(232,240,236,.8)),var(--theme-84c75447cecf, rgba(255,255,255,.6))); }
.signer-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:14px; color:var(--blue-deep); background:var(--blue-pale); }
.signer-form { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:end; gap:12px; }
.signer-people { display:flex; flex-wrap:wrap; gap:8px; flex:1 1 100%; }
.signer-people label { position:relative; display:flex; align-items:center; gap:8px; padding:6px 12px 6px 6px; border:1px solid var(--line); border-radius:30px; background:var(--theme-3abf49ec81cd, rgba(255,255,255,.7)); cursor:pointer; font-size:0.8292rem; font-weight:600; min-height:44px; }
.signer-people input { position:absolute; opacity:0; pointer-events:none; }
.signer-people label:has(input:checked) { border-color:var(--plum); box-shadow:0 0 0 2px var(--plum-pale); }
.signer-people label:has(input:focus-visible) { outline:2px solid var(--plum); outline-offset:2px; }
.signer-pin { display:grid; gap:6px; font-size:0.7991rem; font-weight:600; }
.signer-pin input { width:140px; min-height:46px; padding:8px 12px; border:1px solid var(--line); border-radius:12px; font-size:1.2rem; letter-spacing:.5em; text-align:center; }
.signer-form .button { min-height:46px; }
.inventory-tablet > .signer-bar { width:calc(100% - 60px); max-width:1380px; margin:0 auto 20px; }
@media(max-width:700px){.signer-bar { grid-template-columns:44px 1fr; }.signer-bar > form:last-child { grid-column:1/-1; }.inventory-tablet > .signer-bar { width:calc(100% - 30px); }}
/* Messages: prototype three-column shell over the Quivis chat */
.messages-shell .conversation-row { display:grid; grid-template-columns:34px 1fr 8px; gap:9px; align-items:center; padding:14px; border-bottom:1px solid var(--theme-17270f473503, #edf0ef); }
.messages-shell .conversation-row:hover,.messages-shell .conversation-row.is-active { background:var(--blue-pale); }
.messages-shell .conversation-row > span:nth-child(2) { min-width:0; display:flex; flex-direction:column; }
.conversation-index { display:flex; flex-direction:column; min-width:0; }
.conversation-index #conversations { flex:1; overflow-y:auto; max-height:600px; }
.conversation-pages { padding:10px 14px; margin:0; }
.message-thread { max-height:520px; }
.message-thread > #messages-more { display:block; margin:0 auto 14px; }
.message.sent { margin-left:auto; background:var(--plum-pale); border-radius:12px 4px 12px 12px; }
.message p { white-space:pre-wrap; overflow-wrap:anywhere; }
.composer-spacer { width:34px; }
.composer-status { margin:4px 0 0; font-size:0.7489rem; color:var(--muted); }
.conversation-side .side-fact:first-child { padding-top:0; }
.match-person > div a { padding:4px 6px; border-radius:10px; background:var(--theme-41ba9c9ea44f, #f2f5f4); color:var(--ink-soft); font-size:0.7188rem; }
.match-person > div a:hover { text-decoration:underline; }
.donut { position:relative; }
.donut.is-empty { background:var(--line); }
.dormant-panel .small-print { margin-top:14px; }
/* Integration */
.api-summary { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:16px 0 12px; }
.api-summary div { display:flex; flex-direction:column; gap:3px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--theme-aeceb004b4ec, rgba(255,255,255,.5)); }
.api-summary dt { color:var(--muted); font-size:0.7489rem; }
.api-summary dd { margin:0; font-size:0.8092rem; font-weight:700; overflow-wrap:anywhere; }
.api-config code,.integration-queue code { font-size:0.7589rem; }
.integration-queue { padding:20px; margin-top:18px; }
.queue-row { display:grid; grid-template-columns:1fr auto 16px; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid var(--line); font-size:0.8092rem; }
.queue-row svg { width:14px; color:var(--muted); }
.queue-row:hover span { text-decoration:underline; }
/* Stock count */
.count-banner { display:grid; grid-template-columns:36px 1fr 16px; align-items:center; gap:12px; padding:14px 18px; margin-bottom:18px; }
.count-banner > span:nth-child(2) { display:flex; flex-direction:column; gap:2px; }
.count-banner strong { font-size:0.8393rem; }.count-banner small { color:var(--muted); font-size:0.779rem; }
.count-banner > svg { width:14px; color:var(--muted); }
.count-panel { padding:20px; margin-bottom:18px; }
.count-input { width:96px; min-height:42px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; font-size:0.8996rem; text-align:center; background:var(--theme-e08de713877c, #fff); }
.count-panel tr.has-difference td { background:var(--theme-4a13fc02d037, rgba(247,239,223,.45)); }
.count-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:16px; }
.count-review { display:grid; grid-template-columns:1fr auto; align-items:center; gap:18px; padding:20px; }
.count-review h2 { margin:4px 0 6px; }
.order-actions { display:flex; justify-content:flex-end; margin-top:14px; }
.inventory-edit { margin-left:10px; }
@media(max-width:700px){.count-review { grid-template-columns:1fr; }}
.agenda-panel .segmented-control button { cursor:pointer; }
.agenda-panel .rhythm-lanes.client-tab-panel { padding-top:0; }
.agenda-panel .rhythm-lanes.client-tab-panel.is-active { display:flex; }
.agenda-panel .rhythm-name .cabin-number { flex:none; }
.package-grid > *,.team-grid > *,.integration-grid > * { min-width:0; }
.wide-table-panel .table-wrap { overflow-x:auto; }
.candidate-chip { padding:4px 8px; border:1px solid var(--line); border-radius:10px; background:var(--theme-e08de713877c, #fff); color:var(--ink-soft); font-size:0.7288rem; font-weight:600; cursor:pointer; }
.candidate-chip:hover { border-color:var(--plum); color:var(--plum); }
.invite-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
/* Booking policy */
.policy-panel { padding:22px; margin-bottom:18px; }
.policy-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0 10px; }
.policy-grid article { display:grid; grid-template-columns:42px 1fr; align-items:center; gap:12px; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--theme-aeceb004b4ec, rgba(255,255,255,.5)); }
.policy-grid article > div { display:flex; flex-direction:column; gap:2px; }
.policy-grid small { color:var(--muted); font-size:0.7489rem; }
.policy-grid strong { font-family:var(--font-display); font-size:1.3rem; font-weight:400; }
.policy-grid span:not(.pulse-icon) { color:var(--muted); font-size:0.7489rem; line-height:1.4; }
.policy-grid.is-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:900px){.policy-grid,.policy-grid.is-pair { grid-template-columns:1fr; }}
.late-warning { display:flex; gap:8px; margin-top:14px; padding:10px; border-radius:9px; color:var(--theme-ce31e3e977ae, #8b621f); background:var(--amber-pale); font-size:0.779rem; line-height:1.45; }
.late-warning svg { width:15px; flex:none; }
/* Waitlist */
.waitlist-panel { padding:20px; }
.reactivation-layout + .waitlist-panel { margin-top:18px; }
.waitlist-panel > .empty-state { min-height:0; padding:22px 20px 10px; }
.waitlist-panel .panel-tools { display:flex; align-items:center; gap:10px; }
.waitlist-card { grid-template-columns:28px 42px 1fr auto; }
.waitlist-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; }
.waitlist-actions form { gap:10px; }
.slot-found { color:var(--theme-bec28fcd0da9, #437a66)!important; background:var(--sage-pale)!important; font-weight:700; }
@media(max-width:700px){.waitlist-card { grid-template-columns:42px 1fr; }.waitlist-card .match-rank { display:none; }.waitlist-actions { grid-column:1/-1; justify-content:flex-start; }}
/* Barcode scan */
.page-actions .tablet-scan { min-height:44px; }
.scan-video { width:100%; aspect-ratio:4/3; border-radius:14px; background:var(--theme-faa6f36fc85e, #2f2430); object-fit:cover; }
.scan-box .modal-form { margin-top:12px; }
.scan-link { padding-top:12px; border-top:1px solid var(--line); }
.scan-hit { outline:3px solid var(--sage); outline-offset:2px; transition:outline-color .4s; }
/* Privacy */
.privacy-block { padding:14px 0; }
.privacy-block h3 { margin-bottom:6px; font-size:0.8744rem; }
.danger-zone { margin-top:10px; padding-top:16px; border-top:1px solid var(--line); }
.danger-button { color:var(--theme-e08de713877c, #fff); background:var(--coral); border-color:var(--coral); }
/* Account */
.account-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.account-grid > * { min-width:0; }
.otp-setup { display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin:14px 0; }
.otp-qr { width:220px; height:220px; padding:8px; border-radius:14px; background:var(--theme-e08de713877c, #fff); }
.otp-qr svg { width:100%; height:100%; }
.otp-secret { display:block; margin-top:6px; font-size:0.8996rem; letter-spacing:.08em; overflow-wrap:anywhere; }
.recovery-codes { display:grid; grid-template-columns:repeat(2,max-content); gap:6px 18px; margin:6px 0 0; padding:0; list-style:none; }
.recovery-codes code { font-size:0.8594rem; }
@media(max-width:900px){.account-grid { grid-template-columns:1fr; }}
.review-row { grid-template-columns:1fr auto; }
.review-row form { gap:12px; }
.account-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.account-actions form { margin:0; }
.conflict-badge { background:var(--amber-pale)!important; }
/* Absences */
.absence-panel { padding:20px; margin-bottom:18px; }
.absence-row { grid-template-columns:1fr auto; }
.absence-row form { margin:0; }
.absence-shade { position:absolute; inset-inline:0; top:var(--top); height:var(--height); z-index:2; display:flex; align-items:flex-start; justify-content:center; padding-top:8px; background:repeating-linear-gradient(135deg,var(--theme-68137d71f9a5, rgba(189,110,120,.10)) 0 6px,var(--theme-e709634a7cfb, rgba(189,110,120,.04)) 6px 12px); border-top:1px dashed var(--theme-4cf78d703a74, rgba(189,110,120,.4)); pointer-events:none; }
.absence-shade em { padding:3px 8px; border-radius:10px; background:var(--theme-901db7354cbc, rgba(255,255,255,.85)); color:var(--coral); font-size:0.7489rem; font-style:normal; font-weight:700; }
.closure-notice { background:var(--coral-pale); }
.week-absence { margin:0 0 6px; padding:4px 8px; border-radius:8px; background:var(--coral-pale); color:var(--theme-64d3882ac2aa, #8e4e4a); font-size:0.7489rem; font-weight:600; }
/* Coded stock movements */
.inventory-movement-form { grid-template-columns:minmax(150px,200px) 110px minmax(130px,170px) minmax(180px,1fr); }
.inventory-movement-form select { width:100%; min-height:42px; padding:9px 12px; border:1px solid var(--line); border-radius:11px; background:var(--paper); font:inherit; }
.inventory-movement-form label[hidden] { display:none; }
.movement-preview { align-self:center; margin-right:auto; color:var(--muted); font-size:0.8092rem; font-weight:700; }
.movement-preview.is-negative { color:var(--coral); }
.tablet-kinds { display:flex; flex-wrap:wrap; gap:8px; width:calc(100% - 60px); max-width:1380px; margin:0 auto 14px; }
.tablet-kinds button { min-height:44px; padding:0 16px; border:1px solid var(--line); border-radius:22px; background:var(--theme-3abf49ec81cd, rgba(255,255,255,.7)); font-size:0.8493rem; font-weight:700; }
.tablet-kinds button.is-active { color:var(--theme-e08de713877c, #fff); background:var(--plum); border-color:var(--plum); }
.reverse-box { margin:0; }
.reverse-box summary { margin:0; font-size:0.8092rem; color:var(--coral); }
.reverse-box form { margin-top:6px; }
.opening-balance { margin:4px 0 0; padding:12px 14px; border:1px dashed var(--line); border-radius:14px; }
.opening-balance summary { display:flex; align-items:center; gap:8px; margin:0; font-size:0.8594rem; font-weight:700; color:var(--plum); }
.opening-balance summary svg { width:16px; height:16px; }
.opening-balance > small { display:block; font-size:0.8092rem; line-height:1.5; }
.opening-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:12px 0 8px; }
.payment-history { display:grid; gap:6px; margin:0 0 16px; padding:0; list-style:none; }
.payment-history li { display:grid; grid-template-columns:86px 90px 1fr; gap:10px; align-items:baseline; padding:8px 10px; border-radius:10px; background:var(--theme-e0888e602199, rgba(255,255,255,.55)); font-size:0.8594rem; }
.payment-history small { color:var(--muted); overflow-wrap:anywhere; }
@media(max-width:600px){.opening-fields { grid-template-columns:1fr; }.payment-history li { grid-template-columns:1fr 1fr; }.payment-history small { grid-column:1 / -1; }}
div.queue-row:hover span { text-decoration:none; }
.reconcile-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; padding:12px 0; border-bottom:1px solid var(--line); }
.reconcile-what { display:grid; gap:3px; min-width:0; font-size:0.8393rem; }
.reconcile-what small { color:var(--muted); }
.reconcile-what em { font-style:normal; font-size:0.8092rem; font-weight:700; }
.reconcile-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; }
.reconcile-actions select { width:auto; max-width:280px; min-height:36px; padding:6px 10px; border:1px solid var(--line); border-radius:10px; background:var(--theme-395a60f1d004, rgba(255,255,255,.65)); font-size:0.8292rem; }
.calendar-event .event-sync { position:absolute; right:8px; bottom:8px; display:grid; place-items:center; width:18px; height:18px; border-radius:50%; color:var(--theme-e08de713877c, #fff); background:var(--coral); }
.calendar-event .event-sync svg { width:11px; height:11px; }
.sync-alert { color:var(--coral); }
.sync-alert a { margin-left:6px; font-weight:700; text-decoration:underline; }
.conflict-badge a { margin-left:6px; font-weight:700; text-decoration:underline; }
@media(max-width:600px){.reconcile-actions select { max-width:100%; width:100%; }}
.remote-change { display:flex; align-items:flex-start; gap:8px; margin:0; padding:10px 12px; border-radius:12px; color:var(--plum); background:var(--plum-pale); font-size:0.8393rem; line-height:1.5; }
.remote-change svg { flex:none; width:15px; height:15px; margin-top:1px; }
@media(max-width:900px){.inventory-movement-form { grid-template-columns:1fr 1fr; }}
@media(max-width:700px){.tablet-kinds { width:calc(100% - 30px); }}
/* === Esercizio === */
.error-panel .brand-lockup { margin-bottom:18px; }
.error-code { margin:0 0 6px; font-family:var(--font-display); font-size:clamp(3.4rem,11vw,5rem); font-weight:400; line-height:1; color:var(--blue); opacity:.5; letter-spacing:.02em; }
.error-actions { display:flex; flex-wrap:wrap; gap:8px; }
@media(max-width:600px){.error-actions .button { flex:1 1 100%; }}
.attention-list > .attention-system { width:100%; display:grid; grid-template-columns:36px 1fr auto; align-items:center; gap:10px; padding:13px 0; border-bottom:1px solid var(--line); }
.attention-list > .attention-system > span:nth-child(2) { display:flex; flex-direction:column; min-width:0; }
.attention-list > .attention-system small a { color:var(--blue-deep); text-decoration:underline; text-underline-offset:2px; }
.attention-list > .attention-system .text-button { white-space:nowrap; font-size:0.7991rem; }
.system-alerts { margin-bottom:18px; }
.system-alerts .reconcile-what em { font-style:normal; }
@media(max-width:600px){.attention-list > .attention-system { grid-template-columns:36px 1fr; }.attention-list > .attention-system form { grid-column:2; }}
.sync-warning { margin-top:10px; }
.sync-warning span { display:grid; gap:2px; }
.sync-warning a { font-weight:700; text-decoration:underline; }
.reminder-outcome { display:flex; align-items:flex-start; gap:6px; }
.reminder-outcome svg { flex:none; width:13px; height:13px; margin-top:1px; }
.reminder-error { word-break:break-word; }
/* === Registro === */
.audit-panel .panel-header .text-button { margin-left:auto; margin-right:10px; }
.audit-log-panel { margin-bottom:22px; }
.audit-log-filters { display:grid; grid-template-columns:repeat(3,minmax(150px,1fr)) repeat(2,minmax(130px,.8fr)); gap:10px 12px; align-items:end; margin:5px 0 22px; }
.audit-log-filters label { display:grid; gap:7px; min-width:0; font-size:0.8493rem; font-weight:600; }
.audit-log-filters input:not([type=checkbox]),.audit-log-filters select { width:100%; min-width:0; min-height:42px; padding:8px 11px; border:1px solid var(--line); border-radius:11px; background:var(--paper); font:inherit; }
.audit-log-filters > label:nth-child(6),.audit-log-buttons { grid-column:span 2; }
.audit-log-filters .audit-log-check { display:flex; align-items:center; gap:8px; min-height:42px; font-weight:500; }
.audit-log-check input { width:18px; height:18px; margin:0; accent-color:var(--plum); }
.audit-log-buttons { display:flex; justify-content:flex-end; gap:8px; }
.audit-log-buttons .button { min-height:42px; white-space:nowrap; }
.audit-log-table { width:100%; border-collapse:collapse; font-size:0.8795rem; }
.audit-log-table th,.audit-log-table td { padding:14px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.audit-log-table th { color:var(--muted); font-size:0.8242rem; text-transform:uppercase; letter-spacing:.08em; white-space:nowrap; }
.audit-log-table td:not(:nth-child(5)) { white-space:nowrap; }
.audit-log-table td:nth-child(5) { min-width:260px; }
.audit-log-table tr.is-sensitive td:first-child { box-shadow:inset 3px 0 0 var(--coral); }
.audit-log-table td a { text-decoration:underline; }
.audit-log-flag { color:var(--coral); font-weight:700; }
.audit-log-changes { display:grid; gap:5px; margin:0; padding:0; list-style:none; line-height:1.45; }
.audit-log-changes li { overflow-wrap:anywhere; }
.audit-log-changes span { margin-right:6px; color:var(--muted); font-size:0.8393rem; font-weight:600; }
.audit-log-changes del { color:var(--muted); text-decoration-color:var(--coral); }
.audit-log-changes ins { font-weight:700; text-decoration:none; }
.audit-log-changes i,.audit-log-changes em { font-style:normal; }
.audit-log-changes i { margin:0 6px; color:var(--muted); }
.audit-log-pages { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:18px; font-size:0.8594rem; }
.audit-log-note { display:flex; align-items:flex-start; gap:8px; margin:18px 0 0; font-size:0.8393rem; line-height:1.5; }
.audit-log-note svg { flex:none; width:15px; height:15px; margin-top:1px; }
@media(max-width:1100px){.audit-log-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.audit-log-filters > label:nth-child(6),.audit-log-buttons { grid-column:auto; }.audit-log-buttons .button { flex:1; justify-content:center; }}
@media(max-width:700px){.audit-log-filters > label:first-child,.audit-log-filters > label:nth-child(6),.audit-log-filters .audit-log-check,.audit-log-buttons { grid-column:1/-1; }.audit-log-filters input:not([type=checkbox]),.audit-log-filters select { font-size:16px; }.audit-log-table { min-width:760px; }}
/* === Clienti === */
.duplicate-warning { display:grid; gap:8px; padding:12px 14px; border-radius:12px; color:var(--theme-ce31e3e977ae, #8b621f); background:var(--amber-pale); font-size:0.7991rem; line-height:1.45; }
.duplicate-warning p { display:flex; align-items:center; gap:7px; margin:0; }
.duplicate-warning p svg { flex:none; width:15px; height:15px; }
.duplicate-warning ul { display:grid; gap:4px; margin:0; padding:0 0 0 22px; }
.duplicate-warning a { color:inherit; font-weight:700; text-decoration:underline; }
.duplicate-warning small { opacity:.8; }
.modal-form .duplicate-warning .check-row { color:var(--ink); }
.client-picker-field { position:relative; display:block; }
.client-picker-results { position:absolute; z-index:6; top:calc(100% + 4px); left:0; right:0; display:grid; gap:2px; max-height:264px; overflow-y:auto; padding:6px; border:1px solid var(--line); border-radius:12px; background:var(--theme-e08de713877c, #fff); box-shadow:0 18px 40px var(--theme-d2669951b2a1, rgba(23,37,50,.16)); }
.client-picker-results[hidden] { display:none; }
.client-picker-option { display:flex; flex-direction:column; gap:2px; padding:8px 10px; border-radius:9px; color:var(--ink); cursor:pointer; }
.client-picker-option:hover,.client-picker-option.is-active { background:var(--theme-33de467cefc1, #f3f6f5); }
.client-picker-option strong { font-size:0.8041rem; }
.client-picker-option small { color:var(--muted); font-size:0.7439rem; font-weight:500; }
.client-picker-status { color:var(--muted); font-size:0.7489rem; font-weight:500; }
.client-picker-status:empty { display:none; }
.client-pages { display:flex; align-items:center; justify-content:center; gap:12px; padding:10px 14px 16px; color:var(--muted); font-size:0.774rem; }
.quick-client-duplicates { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.quick-client-duplicates[hidden] { display:none; }
.recall-more { padding:14px 4px 0; }
.recall-more a { font-weight:700; text-decoration:underline; }
/* === Group 2 · Agenda === */
.calendar-column-head.is-retired { opacity:.78; }
.calendar-column-head.is-retired small { color:var(--coral); }
.calendar-event.is-pending { border-left-style:dashed; }
.calendar-event .session-timer-inline.is-over, .session-timer.is-over strong { color:var(--coral); }
.session-timer { padding:10px 12px; border-radius:12px; background:var(--sage-pale); }
.session-timer.is-over .progress i { background:var(--coral); }
.quivis-booking-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; }
.quivis-booking-actions form { margin:0; }
.remote-change.app-pending { align-items:center; flex-wrap:wrap; }
.remote-change.app-pending form { margin-left:auto; }
/* Notes outside a .modal-form (app booking detail, "Assegna" banner) look like the form notes. */
.appointment-detail > .modal-note, .app-booking-note { display:flex; gap:7px; padding:10px; color:var(--theme-959e4b148aa7, #4e7568); background:var(--sage-pale); border-radius:9px; font-size:0.7589rem; line-height:1.45; }
.appointment-detail > .modal-note svg, .app-booking-note svg { flex:none; width:14px; }
.app-booking-note { margin-bottom:12px; }
.session-restore form { margin-top:10px; }
/* === Invii incerti (group 3) === */
.delivery-row .reconcile-what { flex:1 1 320px; }
.delivery-kind { display:flex; align-items:center; gap:7px; min-width:0; }
.delivery-kind svg { flex:none; width:14px; height:14px; color:var(--plum); }
.reconcile-actions .inline-form input.delivery-remote { width:170px; min-height:36px; padding:6px 10px; border-radius:10px; font-size:0.8292rem; }
.delivery-found { flex-basis:100%; display:flex; align-items:flex-start; gap:8px; margin:0; padding:10px 12px; border-radius:12px; color:var(--plum); background:var(--plum-pale); font-size:0.8292rem; line-height:1.5; }
.delivery-found svg { flex:none; width:15px; height:15px; margin-top:1px; }
.delivery-stories { flex-basis:100%; display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.delivery-story { display:grid; gap:7px; align-content:start; padding:10px; border:1px solid var(--line); border-radius:14px; background:var(--theme-e0888e602199, rgba(255,255,255,.55)); font-size:0.8092rem; }
.delivery-story img { width:100%; aspect-ratio:9/16; object-fit:cover; border-radius:10px; background:var(--plum-pale); }
.delivery-story.is-local { margin:0; border-style:dashed; }
.delivery-story small { color:var(--muted); }
.delivery-story label { display:flex; align-items:center; gap:6px; font-weight:700; }
.delivery-story input[type="checkbox"] { width:auto; min-height:0; }
.delivery-log { margin-top:14px; }
.delivery-log summary { font-size:0.8292rem; font-weight:700; color:var(--plum); cursor:pointer; }
.delivery-log .queue-row small { color:var(--muted); }
@media(max-width:600px){.reconcile-actions .inline-form input.delivery-remote { width:100%; }.delivery-row .inline-form { flex-wrap:wrap; }}
/* === Fix registro === */
.audit-log-note + .audit-log-note { margin-top:8px; }
/* === Fix clienti === */
/* Percorsi & incassi: server-side search next to the title, full width on phones. */
.package-search { margin:0; }
@media(max-width:600px){.package-search, .package-search .compact-input { width:100%; }}
/* === Fix invii === */
.gift-pending { margin:0 0 22px; }
.gift-waiting { margin:0; padding:10px 14px; max-width:360px; font-size:0.8594rem; line-height:1.5; }
.gift-waiting a { color:var(--plum); font-weight:700; }
.giftcards-columns #gift-lookup-result .gift-waiting { margin-top:12px; }
@media(max-width:600px){.gift-waiting { max-width:none; }}
/* === Fix2 clienti === */
/* Integrazione: the Quivis contact with its two answers wraps instead of widening the row on phones. */
.reconcile-candidate { flex-wrap:wrap; }
.csv-skipped { margin:6px 0 10px; }
/* === Catalogo WP-B === */
/* Agenda, cabins view: sessions sharing a cabin (more places, or an overlap to fix) sit side by side in lanes. */
.calendar-lane .calendar-event.in-lane { left:calc(6px + (100% - 12px) * var(--lane) / var(--lanes)); right:auto; width:calc((100% - 12px) / var(--lanes) - 3px); padding-inline:7px; }
.calendar-event.in-lane strong, .calendar-event.in-lane span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Booking modal: packages that do not cover the chosen service stay listed, greyed out. */
#booking-package option:disabled { color:var(--muted); }
/* === Differenze con Quivis (docs/discrepancy-design.md §7.2–7.3) === */
.discrepancy-status { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; margin:6px 0 4px; font-size:0.8192rem; }
.discrepancy-status > span { display:inline-flex; align-items:center; gap:6px; }
.discrepancy-status svg { flex:none; width:14px; height:14px; }
.discrepancy-status .inline-form { width:auto; }
.discrepancy-group .panel-subtitle { display:flex; align-items:center; gap:8px; margin:22px 0 2px; }
.discrepancy-group .panel-subtitle.is-urgent { color:var(--coral); }
.discrepancy-group .panel-subtitle .count-badge { min-width:24px; padding:3px 7px; color:var(--coral); background:var(--coral-pale); font-size:0.7991rem; }
.discrepancy-group > .small-print a { font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.discrepancy-row { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:start; gap:10px 16px; }
.discrepancy-row.is-history { grid-template-columns:minmax(0,1fr) auto; }
.discrepancy-row > .attention-icon { margin-top:1px; }
.discrepancy-row .reconcile-what em { font-weight:500; line-height:1.45; }
.discrepancy-row .reconcile-what em b { font-weight:700; }
.discrepancy-row .reconcile-what small { line-height:1.45; }
.discrepancy-row .reconcile-actions { justify-content:flex-end; max-width:360px; }
.discrepancy-chips { display:flex; flex-wrap:wrap; gap:5px; margin-top:3px; }
.discrepancy-chips .tag { padding:3px 8px; font-size:0.779rem; font-weight:600; white-space:normal; }
.discrepancy-chips .tag:first-child { color:var(--muted); background:var(--theme-3abf49ec81cd, rgba(255,255,255,.7)); border:1px solid var(--line); }
.discrepancy-chips a.tag { text-decoration:underline; text-underline-offset:2px; }
.discrepancy-check summary { list-style:none; cursor:pointer; }
.discrepancy-check summary::-webkit-details-marker { display:none; }
.discrepancy-check[open] { flex:1 1 100%; }
.discrepancy-link { flex-wrap:wrap; }
.discrepancy-link select { flex:1 1 200px; min-width:0; }
.discrepancy-check form { display:grid; gap:8px; width:100%; max-width:340px; margin-top:10px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--theme-3abf49ec81cd, rgba(255,255,255,.7)); }
.discrepancy-check label { display:grid; gap:5px; font-size:0.8092rem; font-weight:600; }
.discrepancy-check textarea { width:100%; min-height:62px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:var(--theme-bfe36491dcf5, rgba(255,255,255,.8)); font:inherit; font-size:0.8292rem; resize:vertical; }
.discrepancy-check small { color:var(--muted); font-size:0.7891rem; }
.discrepancy-check .button { justify-self:start; }
.discrepancy-footer { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:14px 0 2px; }
.discrepancy-footer small { font-size:0.7891rem; }
.discrepancy-empty { display:flex; align-items:center; gap:8px; margin:16px 0 4px; color:var(--theme-c7668fa6bae5, #3d8970); font-size:0.8393rem; font-weight:600; }
.discrepancy-empty svg { flex:none; width:16px; height:16px; }
.discrepancy-history .discrepancy-row { padding:10px 0; }
.sync-map-row { grid-template-columns:130px minmax(0,1fr) 150px 9px; }
.sync-map-note { display:flex; align-items:flex-start; gap:8px; margin:14px 0 0; line-height:1.5; }
.sync-map-note svg { flex:none; width:14px; height:14px; margin-top:1px; color:var(--blue-deep); }
/* Sidebar card and badge for the owner and Omnia: Quivis refusing the CRM (coral), urgent differences (amber). */
a.sync-card { border-radius:14px; transition:background .15s ease; }
a.sync-card:hover { background:var(--theme-e0888e602199, rgba(255,255,255,.55)); }
.sync-card.coral .sync-icon { color:var(--coral); background:var(--coral-pale); }
.sync-card.coral strong { color:var(--theme-891496e12e56, #98504b); }
.sync-card.amber .sync-icon { color:var(--theme-887694a34e51, #9a6a20); background:var(--amber-pale); }
.nav-badge.coral { color:var(--theme-e08de713877c, #fff); background:var(--coral); }
/* The approved sheet coloured the sage and amber badges for the dark sidebar: on the light one their number vanished. */
.nav-badge.sage { color:var(--theme-bec28fcd0da9, #437a66); background:var(--sage-pale); } .nav-badge.amber { color:var(--theme-ce31e3e977ae, #8b621f); background:var(--amber-pale); }
@media(max-width:900px){
    .discrepancy-row { grid-template-columns:34px minmax(0,1fr); }
    .discrepancy-row .reconcile-actions { grid-column:2; max-width:none; justify-content:flex-start; }
    .discrepancy-row.is-history { grid-template-columns:minmax(0,1fr); }
    .discrepancy-row.is-history .reconcile-actions { grid-column:1; }
}
/* Clients: in the one-column layout a tap in the list lands on the card below it (docs/alpha-status.md D7). */
.client-anchor { display:none; scroll-margin-top:96px; }
@media(max-width:920px){.client-anchor { display:block; }}
/* Warehouse tablet: no live dot while it is locked (docs/alpha-status.md D10). */
.sync-live.is-locked { color:var(--theme-aeceb004b4ec, rgba(255,255,255,.5)); }.sync-live.is-locked i { background:var(--theme-aeceb004b4ec, rgba(255,255,255,.5)); box-shadow:none; }
/* Phone, 680 px and below (docs/alpha-status.md D1–D5). Page actions wrap two by two instead of pushing the page
   sideways, wide banners stack; the edit buttons the prototype hid on phones are back (they are the only way to
   change a card or a person); form fields use 16 px text, so iOS does not zoom in at every tap (important: it must
   win over each component's own size). */
@media(max-width:680px){
    .page-actions { flex-wrap:wrap; }
    .page-actions > *,.page-actions > .button,.page-actions > .catalog-menu { flex:1 1 calc(50% - 5px); min-width:0; }
    .page-actions > form > .button,.page-actions > form > button { width:100%; }
    .page-actions > .hours-form { order:1; flex-basis:100%; }
    .page-actions .tablet-scan { gap:9px; padding:10px 13px; }
    .page-actions .tablet-scan small { display:none; }
    .inventory-summary { grid-template-columns:minmax(0,1fr); }
    .opportunity-banner { grid-template-columns:minmax(0,1fr) auto; gap:14px 18px; padding:20px; }
    .opportunity-banner > div:nth-child(2) { grid-column:1 / -1; grid-row:2; }
    .opportunity-banner .opportunity-clock { width:125px; }
    .opportunity-banner h2 { font-size:1.6rem; }
    .signer-bar > p { grid-column:1 / -1; margin:0; }
    .client-profile-head { flex-wrap:wrap; }
    .client-profile-head .profile-actions { flex-wrap:wrap; }
    .client-profile-head .profile-actions .button { display:inline-flex; }
    .team-members article { grid-template-columns:40px minmax(0,1fr) 44px; }
    .team-members article > .avatar { grid-row:1 / span 2; }
    .team-members article .role-pill { grid-column:2; justify-self:start; }
    .team-members article .icon-button { display:grid; grid-column:3; grid-row:1 / span 2; width:44px; height:44px; }
    input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select,textarea { font-size:16px !important; }
}
/* Touch screens (docs/alpha-status.md D9): view switches, day arrows, tabs, filters and the stock text buttons get a
   44 px target, as the rest of the CRM. Only the hit area grows: type and spacing stay the prototype's. */
@media(pointer:coarse){
    .segmented-control a,.segmented-control button { min-height:44px; display:inline-flex; align-items:center; }
    .date-nav .icon-button,.date-nav .button { min-width:44px; min-height:44px; }
    .client-tabs a,.client-tabs button,.inventory-tabs button,.detail-tabs button,.calendar-filters .filter-chip { min-height:44px; }
    .profile-actions .icon-button,.list-toolbar .icon-button { width:44px; height:44px; }
    .inventory-panel .text-button,.inventory-summary .text-button,.attention-system .text-button,.detail-card-head .text-button { padding-block:15px; margin-block:-15px; }
    /* The two buttons under a product are 17 px apart: grown hit areas would overlap and «Modifica» took the taps on
       the start of «Registra movimento». They sit side by side instead, each a real 44 px box. */
    .inventory-panel .inventory-movement-toggle,.inventory-panel .inventory-edit { display:inline-flex; align-items:center; min-height:44px; padding-block:0; margin-block:4px 0; }
    .inventory-panel .inventory-edit { margin-left:18px; }
    .button.small { min-height:44px; }
    /* «La cliente» or «Il centro» decides the session and the email, and the two rows sat 16 px tall and touching: each
       row of the appointment and booking forms is a 44 px target of its own. */
    .modal-form .check-row { min-height:44px; }
}
/* The client card's windows (Modifica, Anamnesi, Misure, Documenti, Preferenze, Registra seduta, Privacy) sit inside
   its panel: the glass blur made the panel their containing block, so they opened inside it, cut at the bottom of the
   screen and unscrollable. Without the blur they cover the whole page like every other window. */
.client-detail { backdrop-filter:none; }
/* Guida (/guide): tutorials per role, each step with its screenshot (crm:guide-shots). On a phone a wide screenshot
   shows the parts around the outlined controls, enlarged so their labels read (Guide::crop); a tap opens it whole. */
.guide-help-button { flex:0 0 auto; width:40px; height:40px; color:var(--blue-deep); }
.guide-help-button svg { width:19px; }
.guide-help-list { display:grid; gap:4px; margin:0; padding:0; list-style:none; }
.guide-help-list a,.guide-card { display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px; border-radius:14px; color:var(--ink); }
.guide-help-list a:hover,.guide-card:hover { background:var(--theme-3abf49ec81cd, rgba(255,255,255,.7)); }
.guide-help-list a > span > strong,.guide-card > span > strong { display:block; font-size:0.8895rem; }
.guide-help-list small,.guide-card small { display:block; margin-top:3px; font-size:0.8192rem; line-height:1.45; }
.guide-help-list a > svg,.guide-card > svg { width:15px; color:var(--muted); }
.modal .guide-help-list + .form-actions,.modal .guide-help-empty + .form-actions { display:flex; justify-content:flex-end; margin-top:16px; }
.guide-help-empty { margin:0; font-size:0.8895rem; line-height:1.6; }
.guide-area-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:11px; color:var(--blue-deep); background:var(--blue-pale); }
.guide-area-icon svg { width:17px; }
.guide-label { font-weight:700; color:var(--ink); white-space:normal; }
.guide-search { display:flex; gap:10px; align-items:center; padding:12px; margin-bottom:22px; }
.guide-search .input-with-icon { flex:1; height:44px; }
.guide-search input { font-size:0.8996rem; }
.guide-result-line { margin:-8px 0 18px; font-size:0.8744rem; color:var(--muted); }
.guide-result-line a { color:var(--blue-deep); font-weight:700; }
.guide-areas { columns:2 400px; column-gap:18px; }
.guide-area { padding:18px; margin-bottom:18px; break-inside:avoid; }
.guide-area-head { display:grid; grid-template-columns:36px 1fr auto; align-items:center; gap:12px; padding:0 4px 10px; border-bottom:1px solid var(--line); margin-bottom:6px; }
.guide-area-head h2 { font-size:1.1rem; }
.guide-list { display:grid; gap:2px; }
.guide-card { grid-template-columns:minmax(0,1fr) auto 16px; }
.guide-card-meta { display:inline-flex; align-items:center; gap:5px; font-size:0.7991rem; font-weight:700; color:var(--muted); white-space:nowrap; }
.guide-card-meta svg { width:13px; }
.guide-empty { margin-top:18px; }
.guide-tutorial { max-width:1180px; }
.guide-breadcrumb { display:flex; align-items:center; gap:8px; margin-bottom:14px; font-size:0.8493rem; color:var(--muted); }
.guide-breadcrumb a { display:inline-flex; align-items:center; gap:6px; color:var(--blue-deep); font-weight:700; }
.guide-breadcrumb svg { width:14px; }
.guide-where { display:flex; align-items:center; gap:14px; padding:16px 18px; margin:0 0 22px; font-size:0.9096rem; line-height:1.5; }
.guide-where > span:last-child { display:flex; flex-direction:column; gap:2px; }
.guide-where small { font-size:0.7991rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.guide-steps { display:grid; gap:18px; margin:0 0 22px; padding:0; list-style:none; }
.guide-step { padding:20px; }
.guide-step-text { display:grid; grid-template-columns:34px minmax(0,1fr); gap:14px; align-items:start; }
.guide-step-text p { margin:5px 0 0; max-width:760px; font-size:0.9297rem; line-height:1.65; }
.guide-step-number { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; color:var(--theme-e08de713877c, #fff); background:var(--role-accent,var(--blue-deep)); font-weight:700; font-size:0.9096rem; }
.guide-shot { margin:16px 0 0; }
.guide-shot-frame { display:block; width:100%; padding:0; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--theme-e08de713877c, #fff); box-shadow:var(--shadow-soft); cursor:zoom-in; }
.guide-shot img { display:block; width:100%; height:auto; }
/* A computer shows the screenshot whole, once: the other windows are for a phone. */
.guide-shot-frame + .guide-shot-frame { display:none; }
.guide-shot.is-phone { max-width:330px; }
.guide-shot.is-phone .guide-shot-frame { border-radius:26px; }
.guide-shot figcaption { display:flex; align-items:center; gap:6px; margin-top:8px; font-size:0.8092rem; color:var(--muted); }
.guide-shot figcaption svg { width:13px; }
.guide-tips { padding:20px 22px; margin-bottom:22px; }
.guide-tips h2 { display:flex; align-items:center; gap:9px; margin-bottom:12px; font-size:1.05rem; }
.guide-tips h2 svg { color:var(--theme-6fa0401a20e7, #a87a2a); }
.guide-tips ul { display:grid; gap:10px; margin:0; padding-left:20px; }
.guide-tips li { font-size:0.8996rem; line-height:1.6; }
.guide-related { margin-bottom:22px; }
.guide-related h2 { margin:0 0 10px; font-size:1rem; }
.guide-related .guide-list { padding:8px; }
.guide-lightbox { position:fixed; inset:0; z-index:500; background:var(--theme-900ad0674bbc, rgba(40,26,36,.86)); }
.guide-lightbox-scroll { width:100%; height:100%; overflow:auto; overscroll-behavior:contain; }
.guide-lightbox img { display:block; width:auto; max-width:none; margin:0 auto; cursor:zoom-out; }
.guide-lightbox img.is-phone { width:min(100%,420px); }
.guide-lightbox-close { position:fixed; top:14px; right:14px; width:44px; height:44px; border-radius:50%; }
@media(min-width:681px){.guide-lightbox img { max-width:min(100%,1600px); margin:24px auto; }}
@media(max-width:680px){
    .page-actions > .guide-help-button { flex:0 0 44px; width:44px; height:44px; }
    .guide-search { padding:10px; }
    .guide-search .button { display:none; }
    .guide-area { padding:12px; }
    .guide-card { grid-template-columns:minmax(0,1fr) 16px; padding:12px 8px; }
    .guide-card-meta { display:none; }
    .guide-step { padding:16px 14px; }
    .guide-step-text { grid-template-columns:30px minmax(0,1fr); gap:10px; }
    .guide-step-number { width:30px; height:30px; }
    .guide-step-text p { margin-top:3px; font-size:0.9196rem; }
    .guide-where { align-items:flex-start; padding:14px; }
    .guide-shot.is-phone { max-width:none; margin-inline:auto; }
    /* The parts around the outlines, a window each, one under the other: sizes and offsets from Guide::crop(). */
    .guide-shot.is-cropped { display:grid; gap:10px; }
    .guide-shot.is-cropped .guide-shot-frame { display:block; position:relative; aspect-ratio:var(--crop-ratio,4 / 3); }
    .guide-shot.is-cropped img { position:absolute; width:var(--crop-width); max-width:none; left:var(--crop-left); top:var(--crop-top); }
    .guide-shot.is-cropped figcaption { margin-top:0; }
}
/* Readable sizes (scripts/font-floor.php): a <small> with no size of its own takes the browser's «smaller» and would
   fall under the minimum; long labels in the page actions and table buttons stay on one line. */
small { font-size:max(.83em, .72rem); }
.page-actions .button,.crm-table .button { white-space:nowrap; }
/* With labels on one line the page actions wrap onto a second row, aligned right, instead of leaving the page. Only
   while title and actions sit side by side: from 680 px down the approved sheet stacks them in a column, where a flex
   basis would become a height. */
@media (min-width:681px){
.heading-with-actions > :first-child { flex:1 1 320px; min-width:0; }
.heading-with-actions > .page-actions { flex:0 1 auto; min-width:0; flex-wrap:wrap; justify-content:flex-end; }
}
/* The approved sheet spans the last box of a strip across the row, made for three boxes: with four it left a hole. */
.metric-strip article:nth-child(even):last-child,.inventory-summary article:nth-child(even):last-child,.integration-notes > div:nth-child(even):last-child,.catalog-summary article:nth-child(even):last-child { grid-column:auto; }
/* A free half hour in Oggi's lanes is about 50 px wide: at the readable size «30 min» fits only without the icon. */
.rhythm-gap { justify-content:center; padding-inline:4px; white-space:nowrap; }
.rhythm-gap svg { display:none; }
/* A form refused by the server keeps its window open, with the errors inside (12/10): the list at the top of the window,
   the message under each field it names (crm.js) and the field outlined. */
.modal-errors { display:grid; gap:5px; margin:0 0 14px; padding:10px 12px; color:var(--ink); background:var(--coral-pale); border-radius:9px; font-size:0.8092rem; line-height:1.45; }
.modal-errors strong { display:flex; align-items:center; gap:7px; }
.modal-errors strong svg { flex:none; width:15px; height:15px; color:var(--coral); }
.modal-errors ul { display:grid; gap:3px; margin:0; padding:0 0 0 22px; }
.field-error { margin:2px 0 0; color:var(--coral); font-size:0.7489rem; font-weight:600; }
.modal [aria-invalid="true"] { border-color:var(--coral); box-shadow:0 0 0 1px var(--coral); }
/* A group of boxes marked wrong (cabins, «Chi chiede…»): the whole group is outlined, its message under it. */
.modal fieldset[aria-invalid="true"],.modal [role="radiogroup"][aria-invalid="true"] { border-radius:9px; }
.modal [role="radiogroup"][aria-invalid="true"] { padding:4px 8px; }
.modal-form label .field-note { font-weight:400; line-height:1.45; }
/* The access link: whether the email left (12/10). */
.setup-link-panel .setup-link-mail { display:flex; align-items:flex-start; gap:7px; margin:6px 0 2px; font-weight:700; }
.setup-link-panel .setup-link-mail svg { flex:none; width:15px; height:15px; }
.setup-link-panel .setup-link-mail.is-sent { color:var(--theme-9e7be137d565, #367960); }
.setup-link-panel .setup-link-mail.is-failed { color:var(--theme-ce31e3e977ae, #8b621f); }
/* «Registro email» (12/10): the header that answers why the emails do not leave, then every email with its outcome. */
.status-pill.failed { color:var(--coral); background:var(--coral-pale); }
.status-pill.failed i { background:var(--coral); }
.mail-health { margin-bottom:22px; }
.mail-health-verdict { display:flex; gap:8px; margin:0 0 16px; padding:12px 14px; border-radius:12px; font-size:0.8594rem; font-weight:600; line-height:1.45; }
.mail-health-verdict svg { flex:none; width:17px; height:17px; margin-top:1px; }
.mail-health.is-ok .mail-health-verdict { color:var(--theme-9e7be137d565, #367960); background:var(--sage-pale); }
.mail-health.is-warn .mail-health-verdict { color:var(--theme-ce31e3e977ae, #8b621f); background:var(--amber-pale); }
.mail-health.is-bad .mail-health-verdict { color:var(--ink); background:var(--coral-pale); }
.mail-health-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0; }
.mail-health-grid div { padding:12px; background:var(--white); border:1px solid var(--line); border-radius:12px; }
.mail-health-grid div.is-bad { border-color:var(--coral); box-shadow:inset 3px 0 0 var(--coral); }
.mail-health-grid dt { color:var(--muted); font-size:0.8092rem; font-weight:600; }
.mail-health-grid dd { margin:4px 0 0; font-size:0.8694rem; font-weight:700; overflow-wrap:anywhere; }
.mail-log-filters { grid-template-columns:repeat(2,minmax(150px,1fr)) minmax(200px,1.5fr) auto; }
.mail-log-filters .audit-log-buttons { grid-column:auto; }
/* «Perché» is what the page is opened for: it keeps the room (about 300 px at a 1280 px laptop width), the subject
   goes under the kind, and kind and recipient wrap (words whole; an address anywhere). */
.mail-log-table td:nth-child(2),.mail-log-table td:nth-child(5) { white-space:normal; overflow-wrap:break-word; }
.mail-log-table td:nth-child(2) { min-width:150px; }
.mail-log-table td:nth-child(3) { min-width:130px; white-space:normal; overflow-wrap:anywhere; }
.mail-log-table td:nth-child(4) { min-width:0; white-space:nowrap; }
.mail-log-table td:nth-child(5) { min-width:240px; }
.mail-log-table tr.is-failed td:first-child { box-shadow:inset 3px 0 0 var(--coral); }
@media(max-width:1100px){.mail-health-grid,.mail-log-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.mail-log-filters .audit-log-buttons { grid-column:1/-1; }}
@media(max-width:700px){.mail-health-grid { grid-template-columns:1fr; }.mail-log-filters > label { grid-column:1/-1; }}
/* «Appuntamenti fissi» (14/10): «Ripeti» in the booking window with the dates it would book, the series' badge and
   place in the agenda, the appointment and the client's card, and «Da sistemare» on Oggi. */
.booking-repeat { display:grid; grid-template-columns:1fr 1fr; gap:10px 12px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--theme-5596a8e94c0b, rgba(255,255,255,.42)); }
.booking-repeat[hidden],.booking-repeat-end[hidden],.booking-repeat-note[hidden],.booking-repeat-preview[hidden] { display:none; }
.booking-repeat-end { grid-column:1 / -1; display:grid; gap:6px; }
.booking-repeat-end .small-print { margin:0; }
.modal-form .booking-repeat-end .check-row { flex-wrap:wrap; color:var(--ink); font-size:0.7991rem; }
.modal-form .booking-repeat-end .check-row input[type=date] { width:auto; min-height:34px; padding:5px 8px; }
.modal-form .booking-repeat-end .check-row input[type=number] { width:72px; min-height:34px; padding:5px 8px; }
.booking-repeat-end small { color:var(--muted); font-weight:500; }
.modal-form .booking-repeat-end #booking-repeat-package { flex-wrap:nowrap; align-items:flex-start; }
.modal-form .booking-repeat-end #booking-repeat-package > span { flex:1 1 auto; min-width:0; }
.booking-repeat-note { grid-column:1 / -1; margin:0; color:var(--muted); line-height:1.45; }
.booking-repeat-preview { grid-column:1 / -1; }
.booking-repeat-preview[aria-busy=true] { opacity:.55; }
.booking-repeat-summary { margin:0 0 6px; color:var(--ink); font-size:0.7991rem; font-weight:700; line-height:1.45; }
.booking-repeat-summary.is-error { color:var(--theme-ce31e3e977ae, #8b621f); }
.booking-repeat-dates { display:grid; gap:4px; max-height:190px; overflow:auto; margin:0; padding:0; list-style:none; }
.booking-repeat-dates li { display:flex; justify-content:space-between; gap:10px; padding:6px 9px; border-radius:8px; background:var(--sage-pale); font-size:0.779rem; }
.booking-repeat-dates li strong { white-space:nowrap; }
.booking-repeat-dates li small { color:var(--muted); text-align:right; }
.booking-repeat-dates li.is-skip { background:var(--amber-pale); }
.booking-repeat-dates li.is-skip small { color:var(--theme-ce31e3e977ae, #8b621f); font-weight:700; }
.booking-repeat-dates li.is-booked { background:var(--plum-pale); }
.calendar-event .event-series,.week-item .event-series { display:inline-flex; align-items:center; gap:3px; margin:0 0 0 3px; padding:0 5px; border-radius:8px; background:var(--theme-84c75447cecf, rgba(255,255,255,.6)); font-size:inherit; font-weight:700; opacity:1; }
.week-item .event-series { margin:0 4px 0 0; color:var(--plum); background:var(--plum-pale); }
.calendar-event .event-series svg,.week-item .event-series svg { width:10px; height:10px; }
.timeline-list p.timeline-more { border-left-style:dashed; }
.series-skip-note { display:flex; gap:7px; margin-bottom:12px; padding:10px; color:var(--theme-ce31e3e977ae, #8b621f); background:var(--amber-pale); border-radius:9px; font-size:0.7589rem; line-height:1.45; }
.series-skip-note svg { flex:none; width:14px; }
.visually-hidden { position:absolute; top:0; left:0; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.series-line { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:10px 0 0; font-size:0.7991rem; }
.series-line small { color:var(--muted); }
.series-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:20px; color:var(--plum); background:var(--plum-pale); font-weight:700; }
.series-badge svg,.series-note svg,.series-summary svg { flex:none; width:12px; height:12px; }
.series-note { display:flex; align-items:center; gap:4px; margin-top:3px; color:var(--plum); }
.series-summary { display:flex; gap:8px; margin:0 0 12px; padding:10px 12px; border-radius:12px; color:var(--plum); background:var(--plum-pale); font-size:0.8393rem; }
.series-summary span { display:flex; flex-direction:column; gap:2px; }
.series-summary small { color:var(--ink-soft); }
.series-skip-actions { display:flex; align-items:center; gap:8px; }
.series-skip-actions form { margin:0; }
@media(max-width:680px){.booking-repeat { grid-template-columns:1fr; }.attention-list > .series-skip { grid-template-columns:36px 1fr; }.series-skip-actions { grid-column:2; }}
/* How an appointment is paid (the centre, 14/10): on its block's first line, after the time and the treatment (16/10), the
   carnet's sign and session («4/10»), «Da pagare» or «Senza carnet» (in a narrow block only the sign: its title says it
   whole); the same in the week; in its window the badge and why; and «Usa il carnet della cliente» in «Ripeti». */
.calendar-event .event-payment,.week-item .event-payment { display:inline-flex; align-items:center; gap:3px; margin:0 0 0 3px; padding:0 5px; border-radius:8px; color:inherit; background:var(--theme-84c75447cecf, rgba(255,255,255,.6)); font-size:inherit; font-weight:700; line-height:1.15; opacity:1; }
.calendar-event .event-payment.is-carnet,.week-item .event-payment.is-carnet { color:var(--theme-4da9d52db94e, #315a4d); background:var(--sage-pale); }
.calendar-event .event-payment.is-due,.week-item .event-payment.is-due { color:var(--theme-ce31e3e977ae, #8b621f); background:var(--amber-pale); }
.week-item .event-payment { margin:0 4px 0 0; }
.week-item .event-payment:not(.is-carnet):not(.is-due) { background:var(--line); }
.calendar-event .event-payment svg,.week-item .event-payment svg { flex:none; width:10px; height:10px; }
.calendar-lane .calendar-event { container-type:size; }
.payment-line { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:10px 0 0; font-size:0.7991rem; }
.payment-line small { color:var(--muted); }
.payment-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:20px; color:var(--theme-4da9d52db94e, #315a4d); background:var(--sage-pale); font-weight:700; }
.payment-badge.is-due { color:var(--theme-ce31e3e977ae, #8b621f); background:var(--amber-pale); }
.payment-badge svg { flex:none; width:12px; height:12px; }
.booking-repeat-carnet { grid-column:1 / -1; display:grid; gap:6px; }
.booking-repeat-carnet[hidden],.booking-repeat-carnet [hidden] { display:none; }
.modal-form .booking-repeat-carnet .check-row { color:var(--ink); font-size:0.7991rem; }
.booking-repeat-carnet .small-print { margin:0; color:var(--muted); line-height:1.45; }
/* «Fuori turno» (the centre, 14/10): booked outside the operator's shift. Outlined in the agenda and on Oggi, its sign on
   the block's first line (which a short session still shows) and in the week, and a line in its window. */
.calendar-event.is-off-shift,.rhythm-block.is-off-shift { outline:1.5px dashed var(--theme-64d3882ac2aa, #8e4e4a); outline-offset:-1.5px; }
.calendar-event .event-off-shift,.week-item .event-off-shift { display:inline-flex; align-items:center; gap:3px; margin:0 0 0 3px; padding:0 5px; border-radius:8px; color:var(--theme-64d3882ac2aa, #8e4e4a); background:var(--coral-pale); font-size:inherit; font-weight:700; line-height:1.15; opacity:1; }
.calendar-event .event-off-shift svg,.week-item .event-off-shift svg { flex:none; width:10px; height:10px; }
.off-shift-line { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:10px 0 0; font-size:0.7991rem; }
.off-shift-line small { color:var(--muted); }
.off-shift-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:20px; color:var(--theme-64d3882ac2aa, #8e4e4a); background:var(--coral-pale); font-weight:700; }
.off-shift-badge svg { flex:none; width:12px; height:12px; }
/* «Doppio trattamento» (the centre, 14/10): two treatments one after the other for the same client. In the booking window
   «Aggiungi un trattamento di seguito» opens the second one's fields; in the agenda its place on the block's first line,
   in its window a line with the other treatment. */
.booking-double { display:grid; gap:8px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--theme-5596a8e94c0b, rgba(255,255,255,.42)); }
.booking-double[hidden],.booking-double [hidden] { display:none; }
.modal-form .booking-double .check-row { color:var(--ink); font-size:0.7991rem; }
.booking-double .small-print { margin:0; color:var(--muted); line-height:1.45; }
.booking-double-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px 12px; }
.booking-repeat-double { align-self:end; margin:0 0 8px; color:var(--muted); line-height:1.45; }
.booking-repeat-double[hidden] { display:none; }
.calendar-event .event-double,.week-item .event-double { display:inline-flex; align-items:center; gap:3px; margin:0 0 0 3px; padding:0 5px; border-radius:8px; color:var(--blue-deep); background:var(--blue-pale); font-size:inherit; font-weight:700; line-height:1.15; opacity:1; }
.week-item .event-double { margin:0 4px 0 0; }
.calendar-event .event-double svg,.week-item .event-double svg { flex:none; width:10px; height:10px; }
.double-line { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:10px 0 0; font-size:0.7991rem; }
.double-line small { color:var(--muted); }
.double-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:20px; color:var(--blue-deep); background:var(--blue-pale); font-weight:700; }
.double-badge svg { flex:none; width:12px; height:12px; }
@media(max-width:680px){.booking-double-fields { grid-template-columns:1fr; }}
/* «Colonna nell’agenda delle operatrici» (the centre, 14/10): in the day view, after the staff, the cabins of the machines
   (Dome, Reshape, Slim up) with their sessions to the end of the clean-up, whoever runs them; a tinted head and lane tell
   them from the staff columns. */
.calendar-column-head.cabin-column-head { background:var(--blue-pale); }
.calendar-column-head.cabin-column-head > span:nth-child(2) { min-width:0; }
.calendar-column-head.cabin-column-head strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.calendar-column-head.cabin-column-head small { color:var(--blue-deep); }
.calendar-lane.cabin-lane { background-color:var(--theme-d348fe1682b5, rgba(243,229,238,.32)); }
/* The day grid scrolls sideways when its columns do not fit (six operators, then the cabins' columns; 14/10): the hours
   stay in view, and «Colonne delle cabine» scrolls to the cabins (shown only when they are out of view). */
.calendar-shell { overflow-x:auto; overflow-y:hidden; min-width:0; }
.calendar-shell > .calendar-corner,.calendar-shell > .time-column { position:sticky; left:0; z-index:3; background:var(--theme-9d7bf5e38b19, #fbfcfc); }
.resource-health .cabin-jump { display:inline-flex; align-items:center; gap:5px; padding:0; color:var(--blue-deep); background:transparent; font:inherit; font-weight:700; white-space:nowrap; cursor:pointer; }
.resource-health .cabin-jump[hidden] { display:none; }
.resource-health .cabin-jump svg { width:13px; height:13px; }
/* An agenda block reads without opening it (Laura, 16/10): its first line is the time and the treatment and nothing else,
   so the treatment has the whole width; a block tall enough (60′ or more) lets a long name go on to a second line, a
   shorter one ends it in «…». Then the client in bold with the signs after her name, then, when it still fits, a third
   line (the cabin, or the operator in a cabin's column). The length is the block's height (and in its title). */
.calendar-event .event-head { display:block; width:100%; min-width:0; margin:0; overflow:hidden; opacity:1; font-size:0.7439rem; line-height:1.25; white-space:nowrap; text-overflow:ellipsis; }
.calendar-event .event-service,.week-item .event-service { margin:0 0 0 .25em; font-size:inherit; font-weight:700; opacity:1; }
/* (The block's height less its padding: 60′ and more, or 55′ held with the clean-up in a cabin's column.) */
@container (min-height:48px) { .calendar-event .event-head { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; white-space:normal; } }
/* The client's line: her name keeps its start (at least five letters or so) and ends in «…»; the signs follow, as many as
   fit in what the name leaves, those that do not give way whole, the first ones last: «+N′» of a longer session (placed
   first, 20/10), then how it stands and how it is paid. */
.calendar-event .event-who,.week-item .event-who { display:flex; align-items:center; gap:3px; width:100%; min-width:0; margin:0; opacity:1; font-size:0.7991rem; line-height:1.25; white-space:nowrap; }
.calendar-event .event-who strong,.week-item .event-who strong { flex:0 1 auto; min-width:min(72px,52%); margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calendar-event .event-signs,.week-item .event-signs { display:flex; flex:0 0 auto; flex-wrap:wrap; align-items:center; gap:2px; row-gap:40px; min-width:0; max-width:calc(100% - min(72px,52%) - 3px); height:1.25em; margin:0; overflow:hidden; font-size:0.7439rem; opacity:1; }
.event-signs:not(:has(> *)) { display:none; }
:is(.calendar-event,.week-item) .event-signs > * { flex:none; margin:0; }
:is(.calendar-event,.week-item) .event-signs span:not(.visually-hidden) { margin:0; font-size:inherit; opacity:1; }
.calendar-event .event-more { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calendar-event .event-status,.week-item .event-status { display:inline-flex; align-items:center; gap:3px; padding:0 5px; border-radius:8px; color:inherit; background:var(--theme-84c75447cecf, rgba(255,255,255,.6)); font-weight:700; line-height:1.15; opacity:1; }
.calendar-event .event-status.is-running,.week-item .event-status.is-running { color:var(--theme-e08de713877c, #fff); background:var(--plum); }
.calendar-event .event-status svg,.week-item .event-status svg { flex:none; width:10px; height:10px; }
/* Lines keep their height and never shrink away: what does not fit in the block's height (the third line, the session's
   timer, «Passivo · libera dalle …») moves into a second column outside the block, so a line is shown whole or not at all,
   never cut in half; the client's line always fits (a block of two lines is 40′ or more, calendar.blade.php). */
.calendar-lane .calendar-event[data-open-modal]:not(.is-short) { flex-wrap:wrap; align-content:flex-start; column-gap:60px; padding-block:5px; }
.calendar-lane .calendar-event[data-open-modal]:not(.in-lane) { padding-inline:8px; }
.calendar-event[data-open-modal]:not(.is-short) > :not(.event-state,.event-sync) { flex-shrink:0; width:100%; max-width:100%; }
/* A cabin's column is narrower (14/10): its blocks take a little more of it, so «Reshape» or «Slim up» stays whole. */
.cabin-lane .calendar-event:not(.in-lane) { left:5px; right:5px; padding-inline:7px; }
.calendar-lane .calendar-event:not(.is-short) > .event-more { margin-top:1px; }
/* In a cabin's column the block runs to the end of the clean-up: that part is its hatched foot, whatever its height. */
.calendar-event.has-cleanup::after { content:""; position:absolute; z-index:-1; left:0; right:0; bottom:0; height:var(--cleanup); border-top:1px dashed currentColor; background:repeating-linear-gradient(135deg,transparent 0 4px,currentColor 4px 5.5px); opacity:.28; pointer-events:none; }
/* A session under 40′ is one line: «HH:MM trattamento · cliente», each of the two cut but always begun, then its signs as
   bare icons (no words, no numbers), which always fit. */
.calendar-lane .calendar-event.is-short { flex-direction:row; align-items:center; gap:3px; min-height:20px; padding:2px 7px; white-space:nowrap; }
.calendar-event.is-short time,.calendar-event.is-short .event-dot { flex:none; margin:0; font-size:0.7439rem; }
.calendar-event.is-short .event-service { flex:0 1 auto; min-width:3.4em; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:0.7439rem; }
.calendar-event.is-short strong { flex:0 1.6 auto; min-width:2.4em; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:0.7991rem; }
.calendar-event.is-short .event-signs { flex:none; gap:2px; height:auto; overflow:visible; }
.calendar-event.is-short .event-signs > * { gap:0; padding:1px 2px; }
.calendar-event.is-short :is(.event-place,.event-payment-text,.event-double-text,.event-off-shift-text,.event-status-text) { display:none; }
.calendar-event.is-short em { display:none; }
/* The week: the same first line (the treatment may take two) and the client with the signs, then operator and cabin, in a
   list instead of a grid. */
.week-item { grid-template-columns:8px minmax(0,1fr); align-items:start; container-type:inline-size; }
.week-item .legend-dot { margin-top:.45em; }
.week-item .event-head { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; min-width:0; overflow:hidden; font-size:0.7891rem; line-height:1.3; }
.week-item .event-who { margin-top:1px; }
.week-item .event-signs { font-size:0.7489rem; }
/* The words of the signs («Da pagare», «Fuori turno», «Doppio ·», «In corso») only in a wide block; the carnet's session
   always (the centre, 14/10: «Carnet · N di M» on every appointment), the places in a series or a double («2 di 5») where
   there is room for them after the name (the week), else in the sign's title. */
@container (max-width:239px) {
    :is(.calendar-event,.week-item) :is(.event-payment-text,.event-double-text,.event-off-shift-text,.event-status-text) { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
    :is(.calendar-event,.week-item) .event-signs > * { gap:2px; padding:0 3px; }
    .calendar-event .event-extra svg { display:none; }
}
@container (max-width:199px) { :is(.calendar-event,.week-item) :is(.event-series,.event-double) .event-place { display:none; } }
/* «Cabina compatibile» (Laura, 16/10): with no compatible cabin free at that time the select gives way to this line. */
.modal-form select[hidden] { display:none; }
.modal-form .room-none { display:flex; align-items:center; min-height:40px; padding:8px 10px; border-radius:9px; color:var(--theme-ce31e3e977ae, #8b621f); background:var(--amber-pale); font-size:0.779rem; font-weight:600; line-height:1.4; }
.modal-form .room-none[hidden] { display:none; }
/* While the window asks which cabins are free (a fraction of a second after a change), the list or its line is faded. */
.modal-form select[aria-busy],.modal-form .room-none[aria-busy] { opacity:.55; }
/* Passive windows in an operator's column (decisions 10 and 11 of 20/10, Luca's answer 3; sections.partials.windowed-event).
   A passive session with her minutes set covers the whole treatment: solid where she is held (the setup and the unhook,
   in her colour, as a block), light where the machine works, hatched while the client waits for her; each part from its
   real time. The free parts book; every other part opens the appointment. The label on top lets a click through to the
   part under it (review of 20/10: it covered most of the free part beside a short setup), so it opens the appointment
   only from the keyboard; the setup under it does from the mouse. */
.calendar-lane .calendar-event.is-windowed { display:block; padding:0; background:transparent; border-left:0; pointer-events:none; }
.calendar-event.is-windowed > * { pointer-events:auto; }
.calendar-event.is-windowed > .event-label { pointer-events:none; }
.calendar-event.is-windowed .event-part { position:absolute; inset-inline:0; top:var(--part-top); height:var(--part-height); min-height:2px; display:flex; align-items:flex-end; margin:0; padding:2px 8px; border-radius:0; text-align:left; cursor:pointer; opacity:1; }
.calendar-event.is-windowed .event-part:is(.is-free,.is-machine) { border-left-style:dashed; background-image:linear-gradient(var(--theme-bfe36491dcf5, rgba(255,255,255,.8)),var(--theme-bfe36491dcf5, rgba(255,255,255,.8))); }
.calendar-event.is-windowed .event-part.is-machine { background-image:linear-gradient(var(--theme-8f48d9ac577c, rgba(255,255,255,.9)),var(--theme-8f48d9ac577c, rgba(255,255,255,.9))); }
.calendar-event.is-windowed .event-part.is-wait { border-left-style:dashed; background-image:repeating-linear-gradient(135deg,var(--theme-54e001f5fead, rgba(255,255,255,.78)) 0 4px,transparent 4px 6px); }
.calendar-event.is-windowed .event-part.is-free { cursor:crosshair; }
.calendar-event.is-windowed .event-part.is-free:hover,.calendar-event.is-windowed .event-part.is-free:focus-visible { background-image:linear-gradient(var(--theme-d079426f12aa, rgba(228,189,204,.42)),var(--theme-d079426f12aa, rgba(228,189,204,.42))); outline:2px solid var(--plum); outline-offset:-2px; }
.calendar-event.is-windowed .part-label { margin:0; overflow:hidden; font-size:0.7388rem; font-weight:700; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; opacity:.85; }
.calendar-event.is-windowed .event-label { position:absolute; z-index:1; top:0; left:0; display:flex; flex-direction:column; align-items:flex-start; width:auto; max-width:100%; margin:0; padding:5px 8px 3px 11px; border:0; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.calendar-event.is-windowed .event-label > :not(.event-state,.event-sync) { max-width:100%; }
.calendar-event.is-windowed.is-short .event-label { flex-direction:row; align-items:center; gap:3px; padding:2px 7px 2px 10px; white-space:nowrap; }
.calendar-event.is-windowed .event-label:focus-visible { outline:2px solid var(--plum); outline-offset:-2px; }
/* A session she books in a passive's free time, on top of the passive block (Luca's answer 3 of 20/10): inset from the
   left (--shift, a share of the column; further in on a passive on top of a passive), its own colour and a shadow. Each
   column stacks its own blocks, so one on top however deep stays under the hours when the agenda scrolls sideways. */
.calendar-lane { isolation:isolate; }
.calendar-lane .calendar-event.is-overlay { z-index:calc(1 + var(--depth,1)); left:calc(8px + (100% - 16px) * var(--shift,.3)); right:8px; box-shadow:0 0 0 2px var(--theme-e08de713877c, #fff),0 4px 12px var(--theme-1fe98c7852f2, rgba(46,31,41,.22)); }
.calendar-lane .calendar-event.in-lane.is-overlay { left:calc(6px + (100% - 12px) * (var(--lane) + var(--shift,.3)) / var(--lanes)); width:calc((100% - 12px) * (1 - var(--shift,.3)) / var(--lanes) - 3px); }
/* «+5′» (20/10): a session its operator leaves for a passive client's setup or unhook lasts longer; even a short block
   shows it, the whole «+5′ sgancio Reshape di Anna» in its title. First among the signs (review of 20/10), so a narrow
   block (on top of a passive, side by side, a cabin's column) keeps it and the others give way; there it loses its icon,
   so «+20′» fits. The week's says it in its title only. */
.calendar-event .event-extra { display:inline-flex; align-items:center; gap:2px; order:-1; margin:0 0 0 3px; padding:0 5px; border-radius:8px; color:var(--theme-ce31e3e977ae, #8b621f); background:var(--amber-pale); font-size:inherit; font-weight:700; line-height:1.15; opacity:1; }
.calendar-event .event-extra svg { flex:none; width:10px; height:10px; }
.week-item .event-extra { display:none; }
/* The booking window and «Sposta»: what her day does with the session (crm.js, from «Cabina compatibile»'s answer). */
.operator-line { display:grid; gap:3px; margin:-4px 0 0; color:var(--ink-soft); font-size:0.7589rem; line-height:1.45; }
.operator-line[hidden] { display:none; }
.operator-line .is-warning { color:var(--theme-ce31e3e977ae, #8b621f); font-weight:700; }
.operator-line .is-refusal { color:var(--theme-64d3882ac2aa, #8e4e4a); font-weight:700; }
/* Another client's session the action would carry past her shift (owner's answer 1 of 20/10): the choice, in the form. */
.extend-warning { display:grid; gap:8px; padding:12px 14px; border-radius:12px; color:var(--theme-ce31e3e977ae, #8b621f); background:var(--amber-pale); font-size:0.7991rem; line-height:1.45; }
.extend-warning strong { display:flex; align-items:flex-start; gap:6px; }
.extend-warning svg { flex:none; width:15px; }
.extend-warning ul { margin:0; padding-left:18px; }
.extend-warning .form-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin:0; }
.extend-warning .button { height:auto; min-height:40px; padding-block:8px; white-space:normal; text-align:center; }
/* The appointment's window: when she is held, why the session ends later, the sessions it lengthens. */
.extension-line { display:flex; gap:7px; margin:0; padding:9px 10px; color:var(--theme-ce31e3e977ae, #8b621f); background:var(--amber-pale); border-radius:9px; font-size:0.7589rem; line-height:1.45; }
.extension-line svg { flex:none; width:14px; }
.extension-line.is-cause { color:var(--ink-soft); background:var(--theme-aeafdd38c473, rgba(243,229,238,.55)); }
/* Oggi, «Operatrici» (20/10, §5.6): sessions of hers at the same time in rows of their own, the track growing with them;
   a passive one with her minutes set solid at its ends and light in the middle (an inline gradient from its parts). */
.rhythm-track.has-lanes { height:calc(var(--row,49px) * var(--lanes)); }
.rhythm-track.has-lanes :is(.rhythm-block,.rhythm-gap) { top:calc(5px + var(--lane,0) * var(--row,49px)); bottom:auto; height:calc(var(--row,49px) - 10px); }
@media (max-width:680px) { .rhythm-track { --row:56px; } }
/* «Senza operatrice» (Laura, 21/10): the passives booked without an operator, after the staff and before the cabins, as
   the cabins' lanes draw them; dashed, since nobody is on them. Oggi lists the ones to set up and to take off. */
.calendar-column-head.no-operator-head { background:var(--line); }
.calendar-column-head.no-operator-head > span:nth-child(2) { min-width:0; }
.calendar-column-head.no-operator-head strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.avatar.avatar-none { color:var(--ink-soft); background:var(--theme-e08de713877c, #fff); border:1px dashed var(--muted); }
.avatar.avatar-none svg { width:15px; height:15px; }
.calendar-lane.no-operator-lane { background-color:var(--theme-1daa071e7a53, rgba(46,31,41,.025)); }
.no-operator-lane .calendar-event:not(.in-lane) { left:5px; right:5px; padding-inline:7px; }
.calendar-event.is-unassigned { border-left-style:dashed; }
.week-item.is-unassigned .week-service { font-style:italic; }
.loose-passives { margin-bottom:18px; }
.loose-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:8px; }
.loose-item { display:flex; align-items:flex-start; gap:8px; padding:10px 12px; border:1px dashed var(--line); border-radius:12px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.loose-item svg { flex:none; width:15px; margin-top:1px; color:var(--muted); }
.loose-item > span { display:flex; flex-direction:column; min-width:0; }
.loose-item strong { font-size:0.8092rem; }
.loose-item small { color:var(--muted); font-size:0.7589rem; }
.loose-item.is-due { border-style:solid; border-color:var(--theme-5d04c6673c5e, #b89459); background:var(--amber-pale); }
.loose-item.is-due svg { color:var(--theme-c95c7b8afa3a, #885c19); }
