/* LUNE PMS · header Ardesia (variante C), marchio SAFA, Tableau compatto e componenti nuovi.
   Solo presentazione: dati e logica restano nei moduli del PMS. */
:root,[data-ui-theme="light"]{
 --lune-h1:#e1e6ec;--lune-h2:#eaeef3;--lune-on:#d6dde6;--lune-line:#cbd3dd;--lune-ring:#c1cad6;
 --lune-text:#1f2a37;--lune-muted:#566476;--lune-gold:#93804f;
 --lune-noshow:#eceff3;--lune-noshow-text:#5b6573;--lune-noshow-line:#8a94a3;
}
:root[data-ui-theme="dark"]{
 --lune-h1:#151a21;--lune-h2:#1a2029;--lune-on:#242c37;--lune-line:#2a3340;--lune-ring:#323c4a;
 --lune-text:#e3e8ee;--lune-muted:#9aa5b3;--lune-gold:#a89466;
 --lune-noshow:#2a313b;--lune-noshow-text:#aab4c0;--lune-noshow-line:#6d7887;
}
/* Header a due righe */
html[data-ui-theme] body>header{display:block!important;height:auto!important;min-height:0!important;padding:0!important;gap:0!important;background:var(--lune-h1)!important;border-bottom:1px solid var(--lune-line)!important;box-shadow:none!important;color:var(--lune-text)}
html[data-ui-theme] body>header .lune-top{display:flex;align-items:center;gap:12px;padding:10px 22px;background:var(--lune-h1)}
html[data-ui-theme] body>header .lune-spacer{flex:1}
html[data-ui-theme] body>header .lune-brand{display:flex;align-items:center;gap:12px;color:var(--lune-text)!important;font-weight:600!important;font-size:15px!important;white-space:nowrap}
html .lune-disc{width:44px;height:44px;border-radius:50%;background:#fff;display:grid;place-items:center;flex:none;box-shadow:0 0 0 1px var(--lune-ring);overflow:hidden}
html .lune-disc img{width:34px;height:auto;display:block}
html[data-ui-theme] .lune-client{display:block;color:var(--lune-text);font-size:15px;letter-spacing:.01em}
html[data-ui-theme] .lune-powered{display:flex!important;align-items:center;gap:5px;margin-top:2px!important;color:var(--lune-muted)!important;font-size:10.5px!important;font-weight:600!important;letter-spacing:.07em!important;text-transform:uppercase!important}
html[data-ui-theme] .lune-powered svg{width:11px;height:11px;fill:var(--lune-gold);display:block}
html[data-ui-theme] body>header .connected-user{text-align:right;color:var(--lune-text)}
html[data-ui-theme] body>header .connected-user small{color:var(--lune-muted)!important}
html[data-ui-theme] body>header :is(#themeToggle,#changePasswordButton,#logoutButton){background:transparent!important;border:1px solid var(--lune-ring)!important;color:var(--lune-text)!important}
html[data-ui-theme] body>header :is(#themeToggle,#changePasswordButton,#logoutButton):hover{background:var(--lune-on)!important}
html[data-ui-theme] body>header nav{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between;gap:0!important;padding:0 12px!important;background:var(--lune-h2);border-top:1px solid var(--lune-line);overflow-x:auto;scrollbar-width:thin;order:initial!important;flex-basis:auto!important}
html[data-ui-theme] body>header nav .nav{flex:0 0 auto;gap:6px!important;padding:10px 8px 8px!important;border-radius:6px 6px 0 0!important;border-bottom:2px solid transparent!important;color:var(--lune-muted)!important;font-size:11px!important;font-weight:600!important;letter-spacing:.05em!important;text-transform:uppercase!important;white-space:nowrap}
html[data-ui-theme] body>header nav .nav .nav-label{text-transform:uppercase!important;letter-spacing:.05em!important}
html[data-ui-theme] body>header nav .nav-icon{width:14px!important;height:14px!important;flex-basis:14px!important}
html[data-ui-theme] body>header nav .nav:hover{background:var(--lune-on)!important;color:var(--lune-text)!important}
html[data-ui-theme] body>header nav .nav.active{background:var(--lune-on)!important;color:var(--lune-text)!important;border-bottom-color:var(--lune-gold)!important}
html[data-ui-theme] body>header nav .nav:focus-visible{outline:2px solid var(--lune-gold);outline-offset:-2px}
@media(max-width:700px){html[data-ui-theme] body>header .lune-top{flex-wrap:wrap;padding:10px 12px}html[data-ui-theme] body>header .connected-user{display:none}html[data-ui-theme] body>header nav{justify-content:flex-start}}
/* Tableau: aree comprimibili e numero camera */
html[data-ui-theme] .calendar .section-row td{cursor:pointer;user-select:none}
html[data-ui-theme] .lune-area-toggle{display:inline-flex;align-items:center;gap:8px;background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
html[data-ui-theme] .lune-area-toggle .lune-chev{display:inline-block;width:12px;transition:transform .15s}
html[data-ui-theme] .lune-area-toggle[aria-expanded="false"] .lune-chev{transform:rotate(-90deg)}
html[data-ui-theme] .calendar tr.lune-hidden{display:none}
html[data-ui-theme] .room-mini-number{letter-spacing:.02em}
/* Barra prenotazione: pulsante info */
html[data-ui-theme] .res .lune-info{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:17px;height:17px;border-radius:50%;border:1px solid currentColor;background:var(--ui-surface);color:inherit;font:italic 700 10px/15px Georgia,serif;text-align:center;padding:0;cursor:pointer;opacity:.85;z-index:4}
html[data-ui-theme] .res .lune-info:hover,html[data-ui-theme] .res .lune-info:focus-visible{opacity:1;outline:2px solid var(--lune-gold);outline-offset:1px}
html[data-ui-theme] .res{padding-right:24px!important}
html[data-ui-theme] #luneInfo{position:fixed;z-index:60;width:310px;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:10px;box-shadow:0 10px 30px var(--ui-shadow);padding:14px 16px;font-size:13px}
html[data-ui-theme] #luneInfo h3{margin:0 0 8px;font-size:14px}
html[data-ui-theme] #luneInfo dl{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;margin:0}
html[data-ui-theme] #luneInfo dt{color:var(--ui-muted)}
html[data-ui-theme] #luneInfo dd{margin:0;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
html[data-ui-theme] #luneInfo .lune-due{border-top:1px solid var(--ui-border);padding-top:6px;margin-top:2px}
html[data-ui-theme] #luneInfo .lune-x{position:absolute;right:8px;top:6px;border:0;background:none;color:var(--ui-muted);font-size:16px;cursor:pointer}
/* No show sul Tableau: tono spento e riga obliqua */
html[data-ui-theme] .res.lune-noshow{background:repeating-linear-gradient(135deg,var(--lune-noshow) 0 6px,transparent 6px 12px),var(--lune-noshow)!important;border:1px dashed var(--lune-noshow-line)!important;color:var(--lune-noshow-text)!important}
html[data-ui-theme] .res .lune-noshow-tag{font-size:10px;font-weight:700;letter-spacing:.05em;margin-right:5px}
/* Menu tasto destro: tre voci fisse */
html[data-ui-theme] #pmsOps78 #pmsOps78Action{display:none!important}
html[data-ui-theme] #pmsOps78 button[disabled]{opacity:.45;cursor:not-allowed}
/* Scheda prenotazione: stato operativo */
html[data-ui-theme] .lune-ops{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 14px}
html[data-ui-theme] .lune-ops .btn{padding:6px 11px!important;font-size:12px!important}
html[data-ui-theme] .lune-ops .lune-noshow-btn{margin-left:auto}
html[data-ui-theme] #modalBack .lune-fiscal-moved{display:none!important}
/* Finestra di conferma interna */
html[data-ui-theme] #luneConfirm{position:fixed;inset:0;z-index:2000;background:var(--ui-overlay);display:grid;place-items:center;padding:16px}
html[data-ui-theme] #luneConfirm[hidden]{display:none}
html[data-ui-theme] #luneConfirm .lune-box{background:var(--ui-surface);color:var(--ui-text);border-radius:12px;max-width:440px;width:100%;padding:20px 22px;box-shadow:0 20px 50px var(--ui-shadow)}
html[data-ui-theme] #luneConfirm h2{margin:0 0 8px;font-size:17px}
html[data-ui-theme] #luneConfirm p{margin:0 0 16px;color:var(--ui-muted)}
html[data-ui-theme] #luneConfirm .lune-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
/* Elenchi in finestra (gruppi, no show) */
html[data-ui-theme] .lune-list{display:grid;gap:0;border:1px solid var(--ui-border);border-radius:8px;overflow:hidden}
html[data-ui-theme] .lune-list>div{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;padding:10px 12px;border-top:1px solid var(--ui-border)}
html[data-ui-theme] .lune-list>div:first-child{border-top:0}
html[data-ui-theme] .lune-list .lune-grow{flex:1;min-width:200px}
html[data-ui-theme] .lune-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--ui-selection);font-size:11px;font-weight:700;margin-left:6px}
/* Allotment per aree */
html[data-ui-theme] .lune-area-pick{display:flex;flex-wrap:wrap;gap:10px}
html[data-ui-theme] .lune-area-pick label{display:flex;align-items:center;gap:8px;border:1px solid var(--ui-border);border-radius:8px;padding:9px 12px;cursor:pointer;background:var(--ui-surface)}
html[data-ui-theme] .lune-area-pick label:has(input:checked){border-color:var(--ui-primary);background:var(--ui-selection)}
html[data-ui-theme] .lune-area-pick label.lune-busy{border-color:var(--ui-red-text)}
html[data-ui-theme] .lune-area-pick small{color:var(--ui-muted)}
html[data-ui-theme] #allotmentBusy{color:var(--ui-red-text);font-weight:600}
/* Piani tariffari */
html[data-ui-theme] #luneRates table{width:100%;border-collapse:collapse}
html[data-ui-theme] #luneRates th,html[data-ui-theme] #luneRates td{padding:7px 8px;border-bottom:1px solid var(--ui-border);text-align:left;vertical-align:middle}
html[data-ui-theme] #luneRates td.num,html[data-ui-theme] #luneRates th.num{text-align:right;font-variant-numeric:tabular-nums}
html[data-ui-theme] #luneRates input.input,html[data-ui-theme] #luneRates select.input{min-width:0}
html[data-ui-theme] #luneRates .lune-error{color:var(--ui-red-text);font-weight:600;white-space:pre-line}
html[data-ui-theme] #luneRates .lune-ok{color:var(--ui-green-text);font-weight:600}
html[data-ui-theme] #luneRates .lune-scroll{overflow-x:auto}
html[data-ui-theme] .lune-rate-hint{font-size:12px;color:var(--ui-muted);margin-top:4px}
html[data-ui-theme] .lune-rate-hint.err{color:var(--ui-red-text);font-weight:600}
/* Conto: riepilogo prenotazione */
html[data-ui-theme] #pmsAccountBack .lune-acc-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px 16px;padding:12px 14px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-soft);margin:0 0 18px;font-size:12px}
html[data-ui-theme] #pmsAccountBack .lune-acc-summary span{display:block;color:var(--ui-muted);font-size:11px}
html[data-ui-theme] #pmsAccountBack .lune-acc-summary b{font-size:13px}
/* Accesso e pagine per i clienti */
html[data-ui-theme] .lune-login-brand{display:grid!important;justify-items:center;gap:8px;text-align:center}
html[data-ui-theme] .lune-login-logo{width:min(300px,80vw);height:auto;background:#fff;border-radius:14px;padding:10px 16px;box-shadow:0 0 0 1px var(--ui-border)}
html[data-ui-theme] .lune-login-brand .lune-powered{justify-content:center}
html .lune-portal-brand{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:15px}
html .lune-portal-foot{display:flex;align-items:center;justify-content:center;gap:5px;margin:28px 0 10px;color:var(--ui-muted);font-size:10.5px;letter-spacing:.07em;text-transform:uppercase}
html .lune-portal-foot svg{width:11px;height:11px;fill:var(--lune-gold)}
/* Barra Tableau */
html[data-ui-theme] #luneTools{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
@media(min-width:1050px){html[data-ui-theme] #planning>.toolbar>#luneTools{grid-row:1;grid-column:5;justify-self:end}}
html[data-ui-theme] #luneTools .btn{white-space:nowrap}
html[data-ui-theme] body>header .lune-brand .lune-client{color:var(--lune-text)!important;font-weight:650!important}
/* Prenotazione gruppo: modo di riserva e scelta camere */
html[data-ui-theme] #groupRoomsList[hidden],html[data-ui-theme] #addGroupRoom[hidden],html[data-ui-theme] .lune-allot [hidden]{display:none!important}
html[data-ui-theme] .lune-allot>label:first-child{display:flex;align-items:center;gap:10px;text-transform:none!important}
html[data-ui-theme] .lune-allot :is(.lune-pick-mode,.lune-area-pick,.lune-room-pick) input{width:auto!important;min-width:0!important;height:auto!important;margin:0;flex:none}
html[data-ui-theme] .lune-allot>label:first-child input{width:auto!important;flex:none}
html[data-ui-theme] .lune-pick-mode{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:6px 0 4px}
html[data-ui-theme] .lune-pick-mode label,html[data-ui-theme] .lune-area-pick label{display:grid!important;grid-template-columns:auto 1fr;column-gap:10px;row-gap:2px;align-items:center;text-transform:none!important;border:1px solid var(--ui-border);border-radius:8px;padding:10px 12px;cursor:pointer;background:var(--ui-surface)}
html[data-ui-theme] .lune-pick-mode label small,html[data-ui-theme] .lune-area-pick label small{grid-column:2;color:var(--ui-muted);font-size:11.5px}
html[data-ui-theme] .lune-pick-mode label:has(input:checked){border-color:var(--ui-primary);background:var(--ui-selection)}
html[data-ui-theme] .lune-area-pick{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
html[data-ui-theme] .lune-pick-note{text-transform:none!important;color:var(--ui-muted);font-size:12px;margin:4px 0 10px}
html[data-ui-theme] .lune-room-group{margin:8px 0}
html[data-ui-theme] .lune-room-group small{color:var(--ui-muted)}
html[data-ui-theme] .lune-room-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-top:6px}
html[data-ui-theme] .lune-room-pick label{display:grid!important;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;border:1px solid var(--ui-border);border-radius:8px;padding:8px 10px;cursor:pointer;background:var(--ui-surface);text-transform:none!important}
html[data-ui-theme] .lune-room-pick label span{font-weight:700}
html[data-ui-theme] .lune-room-pick label small{grid-column:2;font-size:11px;color:var(--ui-muted)}
html[data-ui-theme] .lune-room-pick label:has(input:checked){border-color:var(--ui-primary);background:var(--ui-selection)}
html[data-ui-theme] .lune-room-pick label.lune-taken{opacity:.5;cursor:not-allowed}
html[data-ui-theme] #allotmentCount{text-transform:none!important;font-weight:600}
/* ===== Rifinitura grafica: tema chiaro più caldo, titoli maiuscoli, accenti oro e argento ===== */
:root[data-ui-theme="light"]{
 --ui-bg:#f2f0eb;--ui-surface:#fbfaf7;--ui-soft:#f5f3ee;--ui-border:#e1dcd2;--ui-selection:#e9ebec;--ui-grey:#ebe8e2;
 --bg:var(--ui-bg);--panel:var(--ui-surface);--line:var(--ui-border);--border:var(--ui-border);--a:var(--ui-surface);--b:var(--ui-soft);
 --lune-h1:#e3e4e2;--lune-h2:#ebebe7;--lune-on:#dcdcd6;--lune-line:#d2cfc7;--lune-ring:#c8c6bf;
 --lune-silver:#b7bcc2;--lune-gold-soft:#93804f55;
}
:root[data-ui-theme="dark"]{--lune-silver:#5f6975;--lune-gold-soft:#a8946644}
/* Titoli di pagina e di finestra in maiuscolo, con un filo oro sotto il titolo di pagina */
html[data-ui-theme] body main h1,html[data-ui-theme] body .view>.toolbar>h1{text-transform:uppercase!important;letter-spacing:.06em!important;font-size:21px!important;font-weight:650!important}
html[data-ui-theme] body main .view>.toolbar>h1::after,html[data-ui-theme] body main .view>h1::after{content:"";display:block;width:38px;height:2px;margin-top:7px;background:var(--lune-gold);border-radius:1px}
html[data-ui-theme] body :is(.modal,.card,.op-panel)>h2,html[data-ui-theme] body .modal h2:first-child,html[data-ui-theme] body .gp h1{text-transform:uppercase!important;letter-spacing:.05em!important;font-size:16px!important}
/* Finestre: filo oro in alto; schede: filo argento */
html[data-ui-theme] .modal-back>.modal{border-top:2px solid var(--lune-gold)!important}
html[data-ui-theme] main .card{border-top:2px solid var(--lune-silver)!important}
/* Sezioni della scheda prenotazione */
html[data-ui-theme] .modal .section-title{text-transform:uppercase!important;letter-spacing:.06em!important;font-size:11.5px!important;padding-left:10px!important;border-left:2px solid var(--lune-gold)!important}
/* Tableau: righe area con filo oro a sinistra, oggi e periodo attivo con filo oro */
html[data-ui-theme] .calendar .section-row td{box-shadow:inset 3px 0 0 var(--lune-gold)}
html[data-ui-theme] .lune-area-toggle{text-transform:uppercase!important;letter-spacing:.05em!important;font-size:11.5px}
html[data-ui-theme] .calendar th.day.today{box-shadow:inset 0 2px 0 var(--lune-gold)}
html[data-ui-theme] #planning>.toolbar .range button.active{box-shadow:inset 0 -2px 0 var(--lune-gold)!important}
html[data-ui-theme] .calendar thead th{border-bottom-color:var(--lune-silver)!important}
/* Menu sempre su una riga: senza barra di scorrimento visibile, icone nascoste se lo spazio è poco */
html[data-ui-theme] body>header nav{scrollbar-width:none}
html[data-ui-theme] body>header nav::-webkit-scrollbar{display:none}
@media(max-width:1700px){html[data-ui-theme] body>header nav .nav-icon{display:none!important}html[data-ui-theme] body>header nav .nav{padding:10px 7px 8px!important}}
@media(max-width:1280px){html[data-ui-theme] body>header nav .nav{font-size:10.5px!important;letter-spacing:.03em!important;padding:10px 5px 8px!important}}
/* Barra prenotazione: "i" piccola nell'angolo in basso a destra, il testo usa tutta la barra */
html[data-ui-theme] .res{padding-right:8px!important}
html[data-ui-theme] .res .lune-info{right:2px;bottom:2px;top:auto;transform:none;width:12px;height:12px;font-size:8px;line-height:10px;border-width:1px}
html[data-ui-theme] #allotmentGuestsField[hidden]{display:none!important}
/* Marchio solo testuale: Casa Alpina SAFA · Challand-Saint-Anselme · Powered by LUNE PMS */
html[data-ui-theme] body>header .lune-brand .lune-client{font-size:16px!important;letter-spacing:.01em}
html .lune-place{font-weight:400;color:var(--lune-muted);font-size:13px;margin-left:8px;padding-left:9px;border-left:1px solid var(--lune-gold)}
html[data-ui-theme] .lune-powered{text-transform:none!important;letter-spacing:.03em!important;font-size:11px!important}
html .lune-portal-foot{text-transform:none!important;letter-spacing:.03em!important}
html .lune-portal-brand{gap:0!important;align-items:baseline!important}
/* Marchio su una riga: Casa Alpina SAFA (grassetto) · Challand Saint-Anselme (oro) · Powered by LUNE PMS (piccolo, sottolineato) */
html .lune-line{display:flex!important;align-items:baseline!important;flex-wrap:wrap;gap:4px 12px!important;white-space:normal}
html .lune-line .lune-client{font-weight:700!important;font-size:16px!important;color:var(--lune-text)!important}
html .lune-line .lune-place{color:var(--lune-gold)!important;font-weight:600!important;font-size:14px!important;border:0!important;margin:0!important;padding:0!important}
html .lune-line .lune-powered{display:inline!important;margin:0!important;font-size:11px!important;font-weight:500!important;color:var(--lune-muted)!important;text-decoration:underline;text-decoration-color:var(--lune-gold);text-underline-offset:3px;text-transform:none!important;letter-spacing:.02em!important}
html[data-ui-theme] body>header .lune-line .lune-place,html .lune-portal-brand.lune-line .lune-place{color:var(--lune-gold)!important}
/* Assistenza */
html[data-ui-theme] body>header .lune-support-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px!important;background:transparent!important;border:1px solid var(--lune-ring)!important;color:var(--lune-text)!important;border-radius:8px;font-size:12px!important;font-weight:600!important;position:relative}
html[data-ui-theme] body>header .lune-support-btn:hover{background:var(--lune-on)!important}
html[data-ui-theme] .lune-support-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[data-ui-theme] .lune-support-count,html[data-ui-theme] .ls-count{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--lune-gold);color:#fff;font-size:11px;font-weight:700;line-height:1}
html[data-ui-theme] .lune-support-count[hidden]{display:none}
html[data-ui-theme] .lune-support{width:min(760px,calc(100% - 24px))}
html[data-ui-theme] .lune-support .ls-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:6px}
html[data-ui-theme] .lune-support .ls-head h2{margin:0}
html[data-ui-theme] .ls-list{margin:12px 0}
html[data-ui-theme] .ls-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:var(--ui-surface);border:0;border-top:1px solid var(--ui-border);padding:11px 12px;cursor:pointer;color:var(--ui-text);font:inherit}
html[data-ui-theme] .ls-row:first-child{border-top:0}
html[data-ui-theme] .ls-row:hover{background:var(--ui-soft)}
html[data-ui-theme] .ls-grow{flex:1;display:grid;gap:2px;min-width:0}
html[data-ui-theme] .ls-grow small{color:var(--ui-muted)}
html[data-ui-theme] .ls-dot{font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--lune-gold);border:1px solid var(--lune-gold);border-radius:10px;padding:1px 7px}
html[data-ui-theme] .ls-kinds{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
html[data-ui-theme] .ls-kinds label{display:flex;align-items:center;gap:8px;border:1px solid var(--ui-border);border-radius:8px;padding:9px 12px;cursor:pointer;text-transform:none!important}
html[data-ui-theme] .ls-kinds label:has(input:checked){border-color:var(--lune-gold);background:var(--ui-selection)}
html[data-ui-theme] .ls-kinds input{width:auto!important;margin:0}
html[data-ui-theme] .lune-support textarea.input{width:100%;resize:vertical;font:inherit}
html[data-ui-theme] .ls-chat{display:grid;gap:10px;max-height:46vh;overflow:auto;padding:12px;margin:10px 0;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-soft)}
html[data-ui-theme] .ls-msg{display:grid;gap:3px;max-width:80%}
html[data-ui-theme] .ls-msg.mine{justify-self:end;text-align:right}
html[data-ui-theme] .ls-bubble{padding:9px 12px;border-radius:12px;background:var(--ui-surface);border:1px solid var(--ui-border);text-align:left;white-space:normal;overflow-wrap:anywhere}
html[data-ui-theme] .ls-msg.mine .ls-bubble{border-color:var(--lune-gold);box-shadow:inset 3px 0 0 var(--lune-gold)}
html[data-ui-theme] .ls-msg small{color:var(--ui-muted);font-size:11px}
/* Pagina Collaudo ritirata: il pannello di collaudo Alloggiati resta in Schedine */
html[data-ui-theme] #collaudo{display:none!important}
html[data-ui-theme] #accountingIVA[hidden]{display:none!important}
html[data-ui-theme] #accountingIVA #report-iva{display:block!important}
html[data-ui-theme] body main :is(#planning,#anagrafiche,#notifiche,#revenue,#accounting,#report-tassa,#report-istat,#report-iva,#operativita,#config,#users) h1{text-transform:uppercase!important;letter-spacing:.06em!important;font-size:21px!important;font-weight:650!important}
/* REPORT: una voce di menu, due schede */
html[data-ui-theme] body>header nav .nav.lune-hidden-nav{display:none!important}
html[data-ui-theme] .lune-report-tabs{display:flex;gap:8px;margin-left:14px}
html[data-ui-theme] .lune-report-tabs[hidden]{display:none}
html[data-ui-theme] body>#privacySecurityPanel{display:none!important}
/* Tableau: la riga delle date resta sempre visibile. Il calendario scorre dentro il proprio riquadro,
   alto quanto lo schermo, con intestazione e colonna camere fisse. */
html[data-ui-theme]:not(.tableau-expanded) #planning>.table-wrap{overflow:auto!important}
html[data-ui-theme] #calendar thead th{position:sticky!important;top:0!important;z-index:12!important;box-shadow:0 1px 0 var(--lune-silver)}
html[data-ui-theme] #calendar thead th.roomhead{left:0!important;z-index:14!important}
/* CRM */
html[data-ui-theme] #luneCrm .crm-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:4px 0 6px}
html[data-ui-theme] #luneCrm #crmSearch{flex:1;min-width:220px;max-width:360px}
html[data-ui-theme] #luneCrm .crm-filters{display:flex;flex-wrap:wrap;gap:6px}
html[data-ui-theme] .crm-list{display:grid;border:1px solid var(--ui-border);border-radius:10px;overflow:hidden;background:var(--ui-surface)}
html[data-ui-theme] .crm-row{display:grid;grid-template-columns:minmax(200px,1fr) repeat(3,minmax(90px,130px)) 90px;gap:10px;align-items:center;width:100%;text-align:left;border:0;border-top:1px solid var(--ui-border);background:none;padding:10px 14px;cursor:pointer;color:var(--ui-text);font:inherit}
html[data-ui-theme] .crm-row:first-child{border-top:0}
html[data-ui-theme] .crm-row:hover{background:var(--ui-soft)}
html[data-ui-theme] .crm-row small{display:block;color:var(--ui-muted);font-size:11.5px;font-weight:400}
html[data-ui-theme] .crm-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
html[data-ui-theme] .crm-num{font-variant-numeric:tabular-nums}
html[data-ui-theme] .crm-consent{font-size:11px;color:var(--ui-muted);text-align:center}
html[data-ui-theme] .crm-consent.on{color:var(--lune-gold);font-weight:700;border:1px solid var(--lune-gold);border-radius:10px;padding:2px 6px}
@media(max-width:800px){html[data-ui-theme] .crm-row{grid-template-columns:1fr 1fr}}
html[data-ui-theme] .crm-modal{width:min(820px,calc(100% - 24px))}
html[data-ui-theme] .crm-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:6px 0 14px}
html[data-ui-theme] .crm-kpi div{border:1px solid var(--ui-border);border-radius:10px;padding:10px 12px;background:var(--ui-soft)}
html[data-ui-theme] .crm-kpi span{display:block;font-size:11px;color:var(--ui-muted)}
html[data-ui-theme] .crm-kpi b{font-size:17px;font-variant-numeric:tabular-nums}
html[data-ui-theme] .crm-dl{display:grid;grid-template-columns:150px 1fr;gap:4px 12px;margin:0}
html[data-ui-theme] .crm-dl dt{color:var(--ui-muted)}html[data-ui-theme] .crm-dl dd{margin:0}
html[data-ui-theme] .crm-check{display:flex;align-items:center;gap:8px;margin:4px 0 8px;text-transform:none!important}
html[data-ui-theme] .crm-check input{width:auto!important;margin:0}
html[data-ui-theme] .crm-stays{display:grid;border:1px solid var(--ui-border);border-radius:10px;overflow:hidden}
html[data-ui-theme] .crm-stays>div{display:flex;align-items:center;gap:10px;padding:9px 12px;border-top:1px solid var(--ui-border)}
html[data-ui-theme] .crm-stays>div:first-child{border-top:0}
html[data-ui-theme] .crm-stays small{display:block;color:var(--ui-muted)}
html[data-ui-theme] .crm-grow{flex:1;min-width:0}
/* Email automatiche */
html[data-ui-theme] #luneMail .ml-status{border:1px solid var(--ui-border);border-left:3px solid var(--ui-amber-text);border-radius:8px;padding:10px 12px;background:var(--ui-soft);margin:8px 0}
html[data-ui-theme] #luneMail .ml-status.ok{border-left-color:var(--ui-green-text)}
html[data-ui-theme] #luneMail .ml-modes{display:flex;flex-wrap:wrap;gap:10px}
html[data-ui-theme] #luneMail .ml-modes label{display:flex;align-items:center;gap:8px;border:1px solid var(--ui-border);border-radius:8px;padding:9px 12px;cursor:pointer;text-transform:none!important}
html[data-ui-theme] #luneMail .ml-modes label:has(input:checked){border-color:var(--lune-gold);background:var(--ui-selection)}
html[data-ui-theme] #luneMail :is(.ml-modes,.ml-check) input{width:auto!important;margin:0}
html[data-ui-theme] #luneMail .ml-check{display:flex;align-items:center;gap:8px;margin:4px 0 8px;text-transform:none!important}
html[data-ui-theme] #luneMail .ml-days{display:flex;align-items:center;gap:8px}html[data-ui-theme] #luneMail .ml-days input{width:80px!important}
html[data-ui-theme] #luneMail textarea{width:100%;font:inherit;resize:vertical}
html[data-ui-theme] #luneMail .ml-preview{border:1px solid var(--ui-border);border-radius:8px;padding:12px;background:var(--ui-soft);margin:10px 0}
html[data-ui-theme] #luneMail .ml-preview pre{white-space:pre-wrap;font:inherit;margin:8px 0 0}
html[data-ui-theme] #luneMail code{background:var(--ui-soft);border:1px solid var(--ui-border);border-radius:4px;padding:0 4px}
/* Housekeeping */
html[data-ui-theme] #luneHk[hidden],html[data-ui-theme] #reportContent[hidden],html[data-ui-theme] #reportSection .report-period[hidden]{display:none!important}
html[data-ui-theme] .hk-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0 16px}
html[data-ui-theme] .hk-tools input{width:auto!important}
html[data-ui-theme] .hk-tools #hkPrint{margin-left:auto}
html[data-ui-theme] .hk-title h2{margin:0 0 4px;text-transform:none!important;font-size:18px!important}
html[data-ui-theme] .hk-title p{margin:0 0 14px;color:var(--ui-muted)}
html[data-ui-theme] .hk-block{margin:0 0 18px;border:1px solid var(--ui-border);border-left:3px solid var(--lune-silver);border-radius:10px;padding:12px 14px;background:var(--ui-surface)}
html[data-ui-theme] .hk-block.hk-turnover{border-left-color:var(--ui-red-text)}html[data-ui-theme] .hk-block.hk-departure{border-left-color:var(--lune-gold)}html[data-ui-theme] .hk-block.hk-arrival{border-left-color:var(--ui-primary)}
html[data-ui-theme] .hk-block h3{margin:0;display:flex;align-items:center;gap:8px;font-size:15px}
html[data-ui-theme] .hk-block h3 span{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:11px;background:var(--ui-selection);font-size:12px}
html[data-ui-theme] .hk-block .hint{margin:2px 0 8px}
html[data-ui-theme] .hk-table{width:100%}html[data-ui-theme] .hk-table td,html[data-ui-theme] .hk-table th{padding:7px 8px}
html[data-ui-theme] .hk-done{width:54px;text-align:center}html[data-ui-theme] .hk-box{display:inline-block;width:16px;height:16px;border:1.5px solid var(--ui-text);border-radius:3px}
html[data-ui-theme] .hk-none{margin:4px 0;color:var(--ui-muted)}
html[data-ui-theme] .hk-sign{margin-top:20px;color:var(--ui-muted)}
@media print{
 html.lune-print-hk body>*:not(main){display:none!important}
 html.lune-print-hk main>*:not(.view.active){display:none!important}
 html.lune-print-hk #reportSection>*:not(#luneHk){display:none!important}
 html.lune-print-hk .hk-tools{display:none!important}
 html.lune-print-hk body,html.lune-print-hk main,html.lune-print-hk .hk-block{background:#fff!important;color:#000!important;box-shadow:none!important}
 html.lune-print-hk .hk-block{break-inside:avoid;border-color:#999!important}
 html.lune-print-hk .hk-table th,html.lune-print-hk .hk-table td{color:#000!important;border-color:#bbb!important}
 html.lune-print-hk main{padding:0!important}
}
/* Menu riordinabile */
html[data-ui-theme] body>header nav .nav[draggable="true"]{cursor:grab}
html[data-ui-theme] body>header nav .nav.lune-dragging{opacity:.45}
html[data-ui-theme] body>header nav .nav.lune-drop-before{box-shadow:inset 2px 0 0 var(--lune-gold)}
html[data-ui-theme] body>header nav .nav.lune-drop-after{box-shadow:inset -2px 0 0 var(--lune-gold)}
/* TARIFFE: calendario prezzi */
html[data-ui-theme] .tf-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:10px}
html[data-ui-theme] .tf-seg{display:inline-flex;border:1px solid var(--ui-border);border-radius:9px;overflow:hidden}
html[data-ui-theme] .tf-seg .btn{border:0!important;border-radius:0!important;margin:0!important}
html[data-ui-theme] .tf-bar select.input{width:auto!important}
html[data-ui-theme] .tf-month{display:flex;align-items:center;gap:8px;margin-left:auto}
html[data-ui-theme] .tf-month b{min-width:150px;text-align:center;text-transform:capitalize}
html[data-ui-theme] .tf-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--ui-border);border-radius:10px;overflow:hidden;background:var(--ui-border);gap:1px}
html[data-ui-theme] .tf-head{background:var(--ui-soft);padding:9px 10px;font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--ui-muted)}
html[data-ui-theme] .tf-blank{background:var(--ui-soft)}
html[data-ui-theme] .tf-cell{background:var(--ui-surface);padding:9px 10px 10px;display:grid;gap:3px;min-width:0}
html[data-ui-theme] .tf-cell.tf-adhoc{box-shadow:inset 0 2px 0 var(--lune-silver)}
html[data-ui-theme] .tf-cell.tf-over{background:color-mix(in srgb,var(--lune-gold) 14%,var(--ui-surface));box-shadow:inset 0 2px 0 var(--lune-gold)}
html[data-ui-theme] .tf-cell.tf-past{opacity:.5}
html[data-ui-theme] .tf-day{font-weight:700;font-size:15px}
html[data-ui-theme] .tf-src{font-size:11px;color:var(--ui-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-ui-theme] .tf-calc{font-size:11.5px;color:var(--ui-muted)}html[data-ui-theme] .tf-calc b{color:var(--ui-text)}
html[data-ui-theme] .tf-input{width:100%!important;min-width:0!important;margin-top:4px;font-variant-numeric:tabular-nums}
html[data-ui-theme] .tf-bulk{margin:14px 0 4px}
html[data-ui-theme] .tf-bulk-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:10px}
html[data-ui-theme] .tf-bulk-row label{display:flex;align-items:center;gap:6px;text-transform:none!important}
html[data-ui-theme] .tf-bulk-row input.input{width:auto!important}
html[data-ui-theme] .tf-wd{display:flex;gap:6px;flex-wrap:wrap}html[data-ui-theme] .tf-wd input{width:auto!important;margin:0}
@media(max-width:900px){html[data-ui-theme] .tf-grid{grid-template-columns:repeat(7,minmax(90px,1fr));overflow-x:auto}}
/* TARIFFE v2: celle compatte e selezione a trascinamento */
html[data-ui-theme] .tf-grid .tf-cell{appearance:none;border:0;text-align:left;font:inherit;color:var(--ui-text);cursor:pointer;padding:6px 8px;gap:1px;min-height:0;user-select:none;touch-action:none}
html[data-ui-theme] .tf-grid .tf-cell .tf-day{font-size:12px;font-weight:700;color:var(--ui-muted)}
html[data-ui-theme] .tf-grid .tf-cell .tf-price{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
html[data-ui-theme] .tf-grid .tf-cell .tf-src{font-size:10.5px}
html[data-ui-theme] .tf-grid .tf-cell:hover:not([disabled]){background:var(--ui-soft)}
html[data-ui-theme] .tf-grid .tf-cell.tf-sel{background:var(--ui-selection)!important;box-shadow:inset 0 0 0 2px var(--ui-primary)!important}
html[data-ui-theme] .tf-grid .tf-cell[disabled]{cursor:default}
html[data-ui-theme] .tf-head{padding:6px 8px}
html[data-ui-theme] .tf-panel{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:10px 0;padding:10px 12px;border:1px solid var(--lune-gold);border-radius:10px;background:var(--ui-soft)}
html[data-ui-theme] .tf-panel.tf-empty{border-color:var(--ui-border);color:var(--ui-muted)}
html[data-ui-theme] .tf-panel .tf-act{display:inline-flex;gap:6px;align-items:center}
html[data-ui-theme] .tf-panel select.input,html[data-ui-theme] .tf-panel input.input{width:auto!important}
html[data-ui-theme] .tf-legend{display:flex;gap:14px;align-items:center;font-size:11.5px;color:var(--ui-muted);margin:4px 0}
html[data-ui-theme] .tf-k{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid var(--ui-border);margin:0 5px 0 10px;vertical-align:-2px}
html[data-ui-theme] .tf-k-std{background:var(--ui-surface)}html[data-ui-theme] .tf-k-adhoc{background:var(--ui-surface);box-shadow:inset 0 2px 0 var(--lune-silver)}html[data-ui-theme] .tf-k-over{background:color-mix(in srgb,var(--lune-gold) 14%,var(--ui-surface));box-shadow:inset 0 2px 0 var(--lune-gold)}
html[data-ui-theme] .tf-grid .tf-cell.tf-adhoc{background:color-mix(in srgb,var(--lune-silver) 16%,var(--ui-surface))}
html[data-ui-theme] .tf-grid .tf-cell{display:grid!important;grid-template-columns:auto 1fr;column-gap:8px;row-gap:0;align-items:baseline;padding:5px 8px!important}
html[data-ui-theme] .tf-grid .tf-cell .tf-price{text-align:right;font-size:13.5px}
html[data-ui-theme] .tf-grid .tf-cell .tf-src{grid-column:1/-1;line-height:1.3}
/* Tableau: notti selezionate trascinando il mouse per una nuova prenotazione */
html[data-ui-theme] #calendar .slot-half.lune-tb-sel{background:color-mix(in srgb,var(--lune-gold,#c9a227) 35%,var(--ui-surface))!important}
html[data-ui-theme] #calendar{user-select:none}
html[data-ui-theme] .tf-inactive-banner{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:10px 12px;margin:0 0 10px;border:1px solid var(--ui-amber-text);border-left:3px solid var(--ui-amber-text);border-radius:8px;background:var(--ui-amber);color:var(--ui-amber-text)}
html[data-ui-theme] .tf-grid.tf-off .tf-price{color:var(--ui-muted);font-weight:500}
/* ===== Colori «Oro e ghiaccio» (proposta B, 4 novembre 2026): oro come colore principale,
   grigio ghiaccio nel tema chiaro e antracite nel tema scuro. Ultimo blocco: prevale sui precedenti. ===== */
:root[data-ui-theme="light"]{
 --ui-bg:#eef1f4;--ui-surface:#fcfcfd;--ui-soft:#f2f4f6;--ui-border:#d9dfe4;--ui-text:#262c31;--ui-muted:#5f6a73;
 --ui-primary:#2f353b;--ui-on-primary:#ffffff;--ui-selection:#f3e8cf;--ui-grey:#e6eaee;
 --bg:var(--ui-bg);--panel:var(--ui-surface);--line:var(--ui-border);--border:var(--ui-border);--text:var(--ui-text);--muted:var(--ui-muted);--accent:var(--ui-primary);--a:var(--ui-surface);--b:var(--ui-soft);--d:var(--ui-selection);
 --lune-h1:#e3e8ec;--lune-h2:#2f353b;--lune-line:#c4ccd3;--lune-ring:#c4ccd3;--lune-text:#20262b;--lune-muted:#5c6770;--lune-on:#d6dde3;
 --lune-gold:#c39a3e;--lune-gold-strong:#9a7629;--lune-gold-text:#1f1a10;--lune-silver:#b7bfc6;
 --lune-nav-text:#cfd5da;--lune-nav-hover:#3b4249;--lune-nav-on-bg:#c39a3e;--lune-nav-on-text:#1f1a10;
 --lune-section:#f3e8cf;--lune-sec-btn:#2f353b;--lune-sec-btn-text:#f3f5f7;
 --lune-bk-confirmed:#a3d9ae;--lune-bk-confirmed-text:#0f3a1b;--lune-bk-ci-mark:#1f7a3a;--lune-bk-checkout:#d3d8dc;--lune-bk-checkout-text:#4f5961;--lune-bk-option:#f5da5f;--lune-bk-option-text:#3a2e00;--lune-bk-pending-line:#a98a10;
 --lune-ch-direct:#ffffff;--lune-ch-direct-text:#20262b;--lune-ch-direct-line:#8f9aa3;--lune-ch-booking:#1f5fbf;--lune-ch-booking-text:#ffffff;--lune-web-mark:#c39a3e;--lune-web-mark-text:#1f1a10;
}
:root[data-ui-theme="dark"]{
 --ui-bg:#181b1e;--ui-surface:#22262a;--ui-soft:#262a2f;--ui-border:#33393f;--ui-text:#e4e7ea;--ui-muted:#a0a8ae;
 --ui-primary:#d6b05a;--ui-on-primary:#1d1910;--ui-selection:#3a3222;--ui-grey:#2c3136;
 --bg:var(--ui-bg);--panel:var(--ui-surface);--line:var(--ui-border);--border:var(--ui-border);--text:var(--ui-text);--muted:var(--ui-muted);--accent:var(--ui-primary);--a:var(--ui-surface);--b:var(--ui-soft);--d:var(--ui-selection);
 --lune-h1:#1f2327;--lune-h2:#2a2f34;--lune-line:#3a4046;--lune-ring:#3a4046;--lune-text:#eceff1;--lune-muted:#a3abb2;--lune-on:#30353b;
 --lune-gold:#d6b05a;--lune-gold-strong:#957637;--lune-gold-text:#1d1910;--lune-silver:#4a5158;
 --lune-nav-text:#a3abb2;--lune-nav-hover:#343a40;--lune-nav-on-bg:#d6b05a;--lune-nav-on-text:#1d1910;
 --lune-section:#3a3222;--lune-sec-btn:#3b4148;--lune-sec-btn-text:#f0f2f4;
 --lune-bk-confirmed:#2e7d46;--lune-bk-confirmed-text:#effff3;--lune-bk-ci-mark:#b9f2c8;--lune-bk-checkout:#3a4046;--lune-bk-checkout-text:#c4cbd1;--lune-bk-option:#c9a722;--lune-bk-option-text:#1d1700;--lune-bk-pending-line:#f0d466;
 --lune-ch-direct:#f4f6f8;--lune-ch-direct-text:#1d2226;--lune-ch-direct-line:#f4f6f8;--lune-ch-booking:#3b7fe0;--lune-ch-booking-text:#ffffff;--lune-web-mark:#d6b05a;--lune-web-mark-text:#1d1910;
}
/* Barra del menu antracite, pagina attiva su fondo oro */
html[data-ui-theme] body>header{border-bottom:0!important}
html[data-ui-theme] body>header nav{background:var(--lune-h2)!important;border-top:0!important;box-shadow:inset 0 -3px 0 var(--lune-gold)}
html[data-ui-theme] body>header nav .nav{color:var(--lune-nav-text)!important;border-bottom:0!important;border-radius:0!important;padding-bottom:10px!important}
html[data-ui-theme] body>header nav .nav:hover{background:var(--lune-nav-hover)!important;color:#fff!important}
html[data-ui-theme] body>header nav .nav.active{background:var(--lune-nav-on-bg)!important;color:var(--lune-nav-on-text)!important}
/* Pulsanti più incisivi: principale oro pieno con ombra, standard in grassetto, «pericolo» rosso pieno al passaggio */
html[data-ui-theme] :is(.btn,.op-tab,.account-tab,.report-tab,.invoice-tab,.accounting-tab){font-weight:650!important;border-color:var(--ui-border)!important}
html[data-ui-theme] :is(.btn.primary,.btn.active,.op-tab.active,.account-tab.active,.report-tab.active,.invoice-tab.active,.accounting-tab.active){background:var(--lune-gold)!important;border-color:var(--lune-gold)!important;color:var(--lune-gold-text)!important;font-weight:700!important;box-shadow:0 2px 0 var(--lune-gold-strong)!important}
html[data-ui-theme] .btn.primary:hover{filter:brightness(1.06)}
html[data-ui-theme] .btn.primary:active{transform:translateY(1px);box-shadow:0 1px 0 var(--lune-gold-strong)!important}
html[data-ui-theme] .btn.primary[disabled]{filter:saturate(.4);opacity:.6;box-shadow:none!important}
html[data-ui-theme] :is(#newGroupBooking,#openAccountFromBooking,#luneCheckout){background:var(--lune-sec-btn)!important;border-color:var(--lune-sec-btn)!important;color:var(--lune-sec-btn-text)!important}
html[data-ui-theme] .btn.danger:hover{background:var(--ui-red-text)!important;border-color:var(--ui-red-text)!important;color:#fff!important}
html[data-ui-theme] .lune-count,html[data-ui-theme] .lune-support-count{background:var(--lune-gold)!important;color:var(--lune-gold-text)!important}
/* Tableau: fasce oro tenui sulle aree. Per stato: confermata verde, opzione gialla, da confermare / in attesa gialla
   tratteggiata, check-in verde con freccia, check-out grigia. Per canale: dirette e sito bianche, Booking.com blu.
   Spunta oro sulle prenotazioni arrivate dal sito (in entrambe le viste). */
html[data-ui-theme] #calendar .section-row td,html[data-ui-theme] #calendar tr.section-row>td{background:var(--lune-section)!important;box-shadow:inset 4px 0 0 var(--lune-gold)!important}
html[data-ui-theme] #calendar :is(.res.status-confirmed,.res.status-checkin){background:var(--lune-bk-confirmed)!important;color:var(--lune-bk-confirmed-text)!important;border-color:transparent!important}
html[data-ui-theme] #calendar .res.status-option{background:var(--lune-bk-option)!important;color:var(--lune-bk-option-text)!important;border-color:transparent!important}
html[data-ui-theme] #calendar .res.status-pending{background:var(--lune-bk-option)!important;color:var(--lune-bk-option-text)!important;border:1px dashed var(--lune-bk-pending-line)!important}
html[data-ui-theme] #calendar .res.status-checkout{background:var(--lune-bk-checkout)!important;color:var(--lune-bk-checkout-text)!important;border-color:transparent!important}
html[data-ui-theme] #calendar .res.status-checkin,html[data-ui-theme] #calendar .res.lune-ci.status-confirmed{box-shadow:inset 4px 0 0 var(--lune-bk-ci-mark)!important}
html[data-ui-theme] #calendar :is(.res.channel-direct,.res.channel-other.lune-web){background:var(--lune-ch-direct)!important;color:var(--lune-ch-direct-text)!important;border:1px solid var(--lune-ch-direct-line)!important}
html[data-ui-theme] #calendar .res.channel-booking{background:var(--lune-ch-booking)!important;color:var(--lune-ch-booking-text)!important;border-color:transparent!important}
html[data-ui-theme] .res .lune-ci-tag{font-weight:800;margin-right:4px}
html[data-ui-theme] .res.status-checkin .lune-ci-tag,html[data-ui-theme] .res.status-confirmed .lune-ci-tag{color:var(--lune-bk-ci-mark)}
html[data-ui-theme] .res .lune-web-tag{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;background:var(--lune-web-mark);color:var(--lune-web-mark-text);font-size:10px;font-weight:800;line-height:1;margin-right:4px;vertical-align:-2px;flex:none}
html[data-ui-theme] .calendar th.day.today{box-shadow:inset 0 3px 0 var(--lune-gold)!important}
/* Riquadri: filo oro in alto */
html[data-ui-theme] main .card{border-top:3px solid var(--lune-gold)!important}
html[data-ui-theme] #calendar .res .lune-info{background:transparent!important;color:inherit!important;border-color:currentColor!important}
