:root{--ink:#162035;--muted:#687287;--line:#e4e8ef;--blue:#2c6bed;--green:#168b65;--green-soft:#e9f8f1;--red:#e64b55;--red-soft:#fff0f1;--vacation:#3578e5;--vacation-soft:#eaf2ff;--bg:#f5f7fa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:236px;background:#121a2a;color:#fff;padding:28px 18px 22px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.brand,.login-brand{display:flex;align-items:center;gap:11px;font-size:20px;font-weight:750}.sidebar .brand{padding:0 10px 30px}.brand-mark{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:linear-gradient(145deg,#3978f0,#2557bd);font-weight:850;color:#fff}.sidebar nav{display:flex;flex-direction:column;gap:6px}.sidebar nav button{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:9px;padding:12px 13px;color:#8893a8;background:transparent;text-align:left}.sidebar nav button span{font-size:18px;width:20px;text-align:center}.sidebar nav button strong{font-size:14px;font-weight:600}.sidebar nav .nav-active{color:#fff;background:#22304a}.sidebar nav button:disabled{cursor:not-allowed;opacity:.55}.sidebar-bottom{display:flex;gap:10px;align-items:center;margin-top:auto;padding:17px 5px 0;border-top:1px solid #29334a}.sidebar-bottom>div{display:flex;flex:1;min-width:0;flex-direction:column}.sidebar-bottom strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-bottom small{color:#8791a4;font-size:11px;margin-top:3px}.sidebar-bottom>button{border:0;background:transparent;color:#8d98ab;font-size:20px}.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#345caa;font-size:12px;font-weight:800}.content{margin-left:236px;width:calc(100% - 236px);padding:35px 42px 86px}.topbar{display:flex;justify-content:space-between;align-items:center;max-width:1350px;margin:auto}.eyebrow{margin:0 0 5px;font-size:10px;font-weight:800;letter-spacing:.15em;color:#7a8497}h1{margin:0;font-size:28px;letter-spacing:-.035em}.top-actions{display:flex;align-items:center;gap:10px}.top-actions select{max-width:230px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 30px 10px 12px;color:#344157;font-size:12px;font-weight:650}.tenant-pill{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);box-shadow:0 2px 8px #19223a0a;border-radius:999px;padding:10px 15px;font-size:12px;color:#4c5870;font-weight:650}.pulse{width:8px;height:8px;background:#27a87b;border-radius:50%;box-shadow:0 0 0 4px #e4f7f0}.safe-banner{max-width:1350px;margin:27px auto 18px;display:flex;align-items:center;gap:13px;border:1px solid #d5e2fb;border-radius:11px;background:#f2f6ff;padding:12px 16px;color:#31578f}.safe-banner>span{display:grid;place-items:center;flex:none;width:23px;height:23px;border-radius:50%;color:#fff;background:#4e79cc;font-size:13px;font-weight:800}.safe-banner strong{font-size:13px}.safe-banner p{margin:2px 0 0;font-size:12px;color:#5f7392}.error-banner{max-width:1350px;margin:-6px auto 18px;border:1px solid #f1b9bd;border-radius:10px;background:#fff2f3;color:#a92e38;padding:11px 15px;font-size:12px;font-weight:650}.status-row{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:14px;max-width:1350px;margin:0 auto 22px}.status-card,.summary-card{border:1px solid var(--line);background:#fff;border-radius:13px;min-height:102px;padding:20px 21px;box-shadow:0 2px 10px #17223808}.status-card{display:flex;align-items:center;gap:16px}.status-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:13px;background:var(--green-soft);color:var(--green);font-size:15px}.status-card.is-closed .status-icon{background:var(--red-soft);color:var(--red)}.status-card div:last-child,.summary-card{display:flex;flex-direction:column}.status-card span,.summary-card span{font-size:9px;font-weight:800;color:#7c8698;letter-spacing:.11em}.status-card strong,.summary-card strong{margin-top:5px;font-size:20px}.status-card small,.summary-card small{margin-top:3px;color:#718096;font-size:12px}.tabs{display:flex;gap:22px;max-width:1350px;margin:0 auto;border-bottom:1px solid var(--line)}.tabs button{border:0;background:transparent;padding:13px 2px 12px;color:#6f798b;font-weight:650;font-size:13px;border-bottom:2px solid transparent}.tabs button.active{color:var(--blue);border-color:var(--blue)}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 15px #17223808}.weekly-panel,.audit-panel{max-width:1350px;margin:18px auto 0}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:21px 24px 18px;border-bottom:1px solid var(--line)}.panel-heading h2{margin:0;font-size:17px}.panel-heading p{margin:5px 0 0;color:var(--muted);font-size:12px}.legend{display:flex;gap:15px;color:#6e798a;font-size:11px}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:8px;height:8px;border-radius:50%;background:#c8ced8}.legend .open-dot{background:var(--green)}.legend .holiday-dot{background:var(--red)}.legend .vacation-dot{background:var(--vacation)}.day-row{display:grid;grid-template-columns:45px 130px minmax(0,1fr);align-items:center;min-height:76px;padding:12px 24px;border-bottom:1px solid #edf0f4}.day-row:last-child{border-bottom:0}.day-toggle{width:35px;height:20px;padding:2px;border:0;border-radius:999px;background:#cbd1da}.day-toggle span{display:block;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:.2s}.day-toggle.on{background:var(--blue)}.day-toggle.on span{transform:translateX(15px)}.day-name{display:flex;flex-direction:column}.day-name strong{font-size:13px}.day-name small{color:var(--green);font-size:10px;margin-top:3px}.disabled .day-name small{color:#9aa2af}.slots{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.slot{display:flex;align-items:center;gap:7px;background:#f7f8fa;border:1px solid #e1e5eb;border-radius:8px;padding:5px 7px}.slot input{width:87px;border:0;background:transparent;color:#263249;font-size:12px;font-weight:650;outline:none}.slot>span{color:#939aa7;font-size:11px}.remove{border:0;background:transparent;color:#a6adba;font-size:19px;padding:0 2px}.remove:hover{color:var(--red)}.add-slot{border:1px dashed #bdc8da;background:#fff;color:#5271a4;border-radius:8px;padding:8px 11px;font-size:11px;font-weight:650}.add-slot:disabled{opacity:.4}.closed-label{color:#9ca4b1;font-size:12px}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:16px;max-width:1350px;margin:18px auto 0;align-items:start}.calendar-panel{overflow:hidden}.year-heading{display:flex;align-items:center;gap:10px}.year-heading button{border:1px solid var(--line);background:#fff;border-radius:7px;width:27px;height:27px;color:#5a6680}.year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line)}.month-card{background:#fff;padding:18px;min-height:225px}.month-card h3{margin:0 0 11px;font-size:13px}.month-weekdays,.month-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.month-weekdays span{color:#9aa2ae;font-size:9px;font-weight:750;text-align:center;padding-bottom:4px}.date-cell,.empty-day{width:100%;aspect-ratio:1}.date-cell{display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#465066;font-size:10px}.date-cell:hover,.date-cell.selected{box-shadow:inset 0 0 0 2px #9dbbf1}.date-cell.holiday{color:#b42832;background:var(--red-soft);font-weight:800}.date-cell.vacation{color:#2861bb;background:var(--vacation-soft);font-weight:800}.date-editor{position:sticky;top:20px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:0 4px 15px #17223808}.date-editor h3{margin:5px 0 8px;font-size:17px;text-transform:capitalize}.date-editor>p:not(.eyebrow){color:var(--muted);font-size:12px;line-height:1.55;margin-bottom:19px}.mark,.clear-date{width:100%;border-radius:9px;padding:11px 12px;margin-top:8px;text-align:left;font-size:12px;font-weight:650}.mark{border:1px solid var(--line);background:#fff;color:#39445a}.mark span{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px}.mark.holiday span{background:var(--red)}.mark.vacation span{background:var(--vacation)}.mark.holiday.selected{border-color:#f0afb3;background:var(--red-soft)}.mark.vacation.selected{border-color:#a9c6f6;background:var(--vacation-soft)}.mark:disabled,.clear-date:disabled{opacity:.45;cursor:not-allowed}.clear-date{border:0;background:transparent;text-align:center;color:#7a8495}.audit-row{display:flex;gap:12px;align-items:center;padding:15px 22px;border-bottom:1px solid #edf0f4}.audit-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:12px;font-weight:900}.audit-row div{display:flex;flex-direction:column}.audit-row strong{font-size:13px}.audit-row small{margin-top:3px;color:var(--muted);font-size:11px}.empty-state{padding:30px;text-align:center;color:var(--muted);font-size:13px}.error-text{color:var(--red)}.actionbar{position:fixed;z-index:5;left:236px;right:0;bottom:0;display:flex;justify-content:space-between;align-items:center;height:68px;padding:0 42px;background:#fffc;backdrop-filter:blur(12px);border-top:1px solid var(--line);box-shadow:0 -5px 18px #1722380a}.actionbar p{color:#747f91;font-size:12px}.actionbar button{border:0;border-radius:9px;background:var(--blue);color:#fff;padding:11px 19px;font-size:12px;font-weight:700;box-shadow:0 3px 8px #2c6bed3b}.actionbar button:disabled{cursor:default;opacity:.58;box-shadow:none}
.safe-banner.pbx-ok{border-color:#bfe5d5;background:#f0faf6;color:#17694f}.safe-banner.pbx-ok>span{background:#228a68}.safe-banner.pbx-warning{border-color:#f0d6a5;background:#fff9ed;color:#775318}.safe-banner.pbx-warning>span{background:#c58a24}.safe-banner.pbx-error{border-color:#f1b9bd;background:#fff2f3;color:#9d3038}.safe-banner.pbx-error>span{background:#c94b54}.pbx-conditions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.pbx-conditions span{border:1px solid #dcc58f;border-radius:999px;background:#fff;padding:3px 8px;color:#73571f;font-size:10px;font-weight:700}.editor-locked{opacity:.78}.editor-locked button,.editor-locked input{cursor:not-allowed}.readonly-slot strong{min-width:47px;color:#263249;font-size:12px;text-align:center}
.login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 0,#e7efff 0,transparent 36%),#f4f6fa;padding:20px}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 22px 60px #17223818;padding:38px}.login-brand{margin-bottom:38px}.login-card h1{font-size:29px}.login-copy{color:var(--muted);font-size:14px;margin:9px 0 26px}.login-card form,.login-card label{display:flex;flex-direction:column}.login-card form{gap:16px}.login-card label{gap:7px;font-size:12px;font-weight:700;color:#4c5870}.login-card input,dialog input{border:1px solid #d9dee7;border-radius:9px;padding:12px 13px;outline:none}.login-card input:focus,dialog input:focus{border-color:#7aa2eb;box-shadow:0 0 0 3px #edf3ff}.login-card form>button{border:0;border-radius:9px;padding:12px;background:var(--blue);color:#fff;font-weight:750;margin-top:4px}.login-card form>button:disabled{opacity:.6}.login-card>small{display:block;text-align:center;color:#99a1ae;margin-top:24px;font-size:10px}.form-error{min-height:16px;margin:0;color:#ba343e;font-size:11px}dialog{border:0;border-radius:16px;padding:0;width:min(460px,calc(100% - 30px));box-shadow:0 24px 70px #10182838}dialog::backdrop{background:#10182888;backdrop-filter:blur(3px)}dialog form{padding:25px;display:flex;flex-direction:column;gap:16px}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start}.dialog-heading h2{margin:0}.dialog-heading button{border:0;background:transparent;color:#8a93a2;font-size:24px}dialog label{display:flex;flex-direction:column;gap:7px;color:#4f5a6d;font-size:12px;font-weight:700}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:5px}.dialog-actions button{border:1px solid var(--line);border-radius:8px;padding:10px 15px;background:#fff;color:#536075;font-weight:700;font-size:12px}.dialog-actions button[type=submit]{background:var(--blue);border-color:var(--blue);color:#fff}
@media(max-width:1000px){.sidebar{width:80px}.brand span:last-child,.sidebar nav strong,.sidebar-bottom>div{display:none}.sidebar nav button{justify-content:center}.content{margin-left:80px;width:calc(100% - 80px);padding:28px 22px 86px}.actionbar{left:80px;padding:0 22px}.status-row{grid-template-columns:1fr 1fr}.status-card{grid-column:1/-1}.year-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.sidebar{display:none}.content{margin-left:0;width:100%;padding:22px 14px 82px}.topbar{align-items:flex-start;gap:15px;flex-direction:column}.top-actions{width:100%;flex-wrap:wrap}.top-actions select{flex:1}.tenant-pill{font-size:10px;padding:8px 10px}.status-row{grid-template-columns:1fr}.status-card{grid-column:auto}.day-row{grid-template-columns:42px 90px 1fr;padding:12px}.slots{grid-column:2/-1;margin-top:10px}.calendar-layout{grid-template-columns:1fr}.date-editor{position:static;order:-1}.year-grid{grid-template-columns:1fr}.actionbar{left:0;padding:0 16px}.actionbar p{max-width:55%}.safe-banner p{line-height:1.4}}
.destinations-panel{max-width:1350px;margin:18px auto 0}.readonly-badge{border:1px solid #d8e1f1;border-radius:999px;background:#f3f6fb;color:#65738a;padding:5px 9px;font-size:10px;font-weight:750}.destination-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);align-items:center;gap:24px;min-height:82px;padding:16px 24px;border-bottom:1px solid #edf0f4}.destination-row:last-child{border-bottom:0}.destination-row>div:first-child{display:flex;flex-direction:column}.destination-row strong{font-size:13px}.destination-row small{margin-top:4px;color:var(--muted);font-size:11px}.destination-values{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px}.destination-chip{border:1px solid #c8d9f8;border-radius:8px;background:#f1f6ff;color:#315fba;padding:8px 12px;font-size:12px;font-weight:750}.destination-empty{color:#98a1af;font-size:12px}@media(max-width:720px){.tabs{gap:14px;overflow-x:auto}.tabs button{white-space:nowrap}.destination-row{grid-template-columns:1fr;gap:10px}.destination-values{justify-content:flex-start}}
