
:root{--ink:#183454;--muted:#63758b;--green:#20559f;--border:#dce4ef;--paper:#fff;--bg:#f5f7fb;--lime:#e8effb;--soft:#edf3fa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;justify-content:center;align-items:center;border:1px solid #cedbeb;background:#fff;color:var(--ink);border-radius:8px;padding:10px 15px;font-weight:600;cursor:pointer;line-height:1.35;gap:8px}button:hover,.button:hover{background:#edf3fb;text-decoration:none}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary:hover{background:#17427f;color:white}button:disabled{opacity:.5;cursor:default}input,select,textarea{width:100%;border:1px solid #cfdaea;border-radius:7px;background:#fff;padding:10px 11px;color:var(--ink);min-height:41px}input:focus,select:focus,textarea:focus{outline:2px solid #6d91cc;outline-offset:1px}input:disabled{background:#f0f3f8;color:var(--muted)}label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#536780;margin-bottom:16px}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,"Times New Roman",serif;font-size:42px;line-height:1.15;font-weight:400;letter-spacing:-1.2px;margin-bottom:12px}h2{font-size:18px;font-weight:600;letter-spacing:-.3px}h3{font-size:13px;color:#7192bd;display:flex;gap:14px;margin:0}h3 span{font-size:16px;color:var(--ink);font-weight:600}.muted,p{color:var(--muted)}small{font-size:12px}.layout{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}aside{position:sticky;top:0;height:100vh;background:#ffffff;border-right:1px solid var(--border);padding:33px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:650;font-size:15px;line-height:1.25}.brand small{display:block;font-size:9px;font-weight:500;letter-spacing:1.4px;margin-top:7px;color:#6780a1}.brand-icon{background:#264f40;color:#e5edc6;width:36px;height:40px;border-radius:10px;display:flex;justify-content:center;align-items:center;font-family:Georgia,serif;font-size:24px;font-style:italic;font-weight:400}.workspace-label{margin:54px 12px 16px;font-size:9px;letter-spacing:1.8px;color:#75869d}nav{display:grid;gap:6px}nav a{display:flex;align-items:center;gap:10px;padding:13px 12px;border-radius:7px;color:#516982;font-size:13px}nav a.active{background:#eaf1fc;color:#20559f;font-weight:650}nav a:hover{background:#f1f5fb;text-decoration:none}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--border);padding:24px 10px 0;display:grid;grid-template-columns:36px 1fr;column-gap:10px;align-items:center}.avatar{grid-row:span 2;background:#e9f0fb;border-radius:50%;width:34px;height:34px;display:grid;place-items:center}.sidebar-bottom strong{font-size:12px}.sidebar-bottom small{color:var(--muted);font-size:10px}.sidebar-bottom form{grid-column:1/-1;margin-top:12px}.text-button{border:0;background:none;padding:6px 0;color:var(--muted);font-size:12px}.content{padding:0 42px 20px;min-width:0;max-width:1800px;width:100%;margin:auto}.topline{height:79px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;font-size:12px}.secure{color:#327d43;font-size:11px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:37px 0 26px}.page-heading p{margin:0;font-size:12px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2px;color:#4c6fa1;margin-bottom:14px}.page-heading h1 .badge{font-family:"Segoe UI",sans-serif;vertical-align:middle;letter-spacing:0;margin-left:12px}.dot{margin:0 8px;color:#a7b5c9}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat{border:1px solid var(--border);border-radius:12px;background:#fff;padding:22px 23px}.stat>span{font-size:9px;letter-spacing:1.2px;color:#667d99;font-weight:600}.stat>strong{display:block;font-size:32px;font-weight:550;letter-spacing:-1px;line-height:1.3;margin:11px 0 8px;white-space:nowrap}.stat strong small{font-size:13px;color:#7185a1;font-weight:400;letter-spacing:0}.stat p{font-size:10px;margin:0}.stat.accent{background:#edf5eb;border-color:#d6e8d0}.month-controls{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:26px 0 20px}.toolbar{display:flex;gap:12px;align-items:end}.toolbar label{margin:0;min-width:145px}.toolbar input,.toolbar select{background:transparent}.panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:26px;margin-bottom:20px}.table-panel{padding:0;overflow:auto}.table-heading{display:flex;justify-content:space-between;align-items:center;padding:23px 25px}.table-heading h2{font-size:15px;margin:0}.table-heading span{font-size:11px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{padding:12px 18px;background:#f8faff;color:#647c9a;font-size:10px;font-weight:600;white-space:nowrap;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}td{padding:13px 18px;border-bottom:1px solid #eaf0f7;vertical-align:middle}tr:last-child td{border-bottom:0}tr.nonstandard{background:#f8faff}tr.today{background:#eff5fd}.date-cell{display:flex;align-items:center;gap:12px;min-width:85px}.date-cell>strong{font-size:18px;font-weight:500}.date-cell>span{font-size:11px;color:#627a99}.date-cell small{display:block;color:#20559f;font-size:10px;max-width:150px}.subtext{display:block;color:#6b809a;font-size:10px;margin-top:4px}.nowrap{white-space:nowrap}.client-cell{max-width:230px;overflow-wrap:anywhere}.badge{display:inline-block;font-size:10px;font-weight:500;border-radius:5px;background:#edf2f9;color:#526b8c;padding:4px 8px;white-space:nowrap}.badge.saved,.badge.closed{background:#edf7ec;color:#347d3d}.badge.missing{background:#f8f1df;color:#9b8250}.badge.rest{background:#edf2f8;color:#687e9b}.edit-link{white-space:nowrap;font-size:11px;font-weight:600}.table-footer{display:flex;gap:30px;flex-wrap:wrap;padding:18px 25px;border-top:1px solid var(--border);font-size:11px;color:#657993}.table-footer strong{color:var(--ink);margin-left:6px}.footnote{font-size:11px;max-width:850px}.page-footer{display:flex;justify-content:space-between;font-size:10px;color:#788ba3;padding-top:30px}.notice{padding:14px 18px;border-radius:8px;background:#edf7ec;color:#347d3d;margin:18px 0}.notice.error{background:#f9e7e1;color:#8a3524}.day-editor{border-color:#92b2e0;box-shadow:0 6px 25px #20559f10;scroll-margin-top:15px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:14px 0 22px}.section-heading h2{margin:0}.section-heading .eyebrow{margin-bottom:7px}.section-heading button{font-size:11px;padding:8px 11px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.times{grid-template-columns:repeat(4,minmax(0,1fr))}.day-type{max-width:230px}.day-total{display:flex;justify-content:space-between;padding:13px 16px;background:#f0f5fc;border-radius:7px;color:#617897;margin-bottom:30px}.day-total strong{color:var(--green)}.repeat-row{display:grid;gap:12px;align-items:end}.client-row{grid-template-columns:1fr 2fr 34px}.trip-row{grid-template-columns:1.1fr 1.7fr .65fr .65fr 34px}.remove{padding:8px;font-size:18px;margin-bottom:16px;background:#f7f9fc}.empty-help{font-size:11px}fieldset{margin:0;padding:0;border:0;min-width:0}.form-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);padding-top:20px;gap:20px}.form-footer span{font-size:11px;color:var(--muted)}.user-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.user-grid .panel{margin:0}details{margin-top:12px}summary{cursor:pointer;font-size:12px;color:var(--green);padding:8px 0}pre{white-space:pre-wrap;word-break:break-word;max-width:500px;max-height:350px;overflow:auto;font-size:11px}.check{flex-direction:row;align-items:center}.check input{width:18px;min-height:18px}.narrow{max-width:620px}.auth{max-width:490px;margin:7vh auto;padding:20px}.auth>.brand{margin-bottom:38px;justify-content:center}.auth-panel{padding:35px}.auth-panel h1{font-size:36px}.auth-panel form>.primary{width:100%;margin-top:4px}.auth-panel p{font-size:12px}.auth-footer{text-align:center;font-size:11px}.secret{display:block;overflow-wrap:anywhere;background:#edf3fb;padding:16px;margin:18px 0;font-size:17px;letter-spacing:1px}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #20559f;outline-offset:3px}@media(min-width:1500px){.content{padding:0 58px 24px}}@media(max-width:1150px){.layout{grid-template-columns:200px minmax(0,1fr)}aside{padding:25px 14px}.content{padding:0 24px 20px}.stats{gap:10px}.stat{padding:18px 15px}.stat>strong{font-size:27px}td,th{padding:12px}.trip-row{grid-template-columns:1fr 1fr}.trip-row .remove{grid-column:2;justify-self:end}}@media(max-width:800px){.layout{display:block}aside{position:static;width:100%;height:auto;padding:18px 20px;border-bottom:1px solid var(--border);border-right:0}.brand{font-size:13px}.brand-icon{width:30px;height:34px}nav{display:flex;overflow:auto;margin-top:18px;gap:5px}nav a{padding:9px 12px;white-space:nowrap;font-size:11px}.workspace-label,.sidebar-bottom{display:none}.content{padding:0 18px 20px}.topline{height:55px}.secure{font-size:9px}.page-heading{padding:26px 0 20px;align-items:start;flex-wrap:wrap}h1{font-size:35px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat>strong{font-size:29px}.stat p{font-size:9px}.month-controls{flex-wrap:wrap}.toolbar{flex-wrap:wrap}.toolbar label{min-width:130px}.table-heading{padding:18px;gap:10px;align-items:start}.table-heading span{max-width:130px;text-align:right}.table-footer{gap:12px}.times{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:20px}.table-panel{padding:0}.client-row{grid-template-columns:1fr 1fr 30px}.user-grid{grid-template-columns:1fr}.page-footer{gap:20px}.page-footer span{text-align:right}.form-footer{align-items:start}.form-footer span{max-width:150px}.section-heading h2 .badge{display:block;margin-top:8px}.auth{margin-top:3vh}.auth-panel{padding:25px}}@media print{aside,.topline,.month-controls,.edit-link,.day-editor,.page-heading>.button,.page-footer{display:none}.layout{display:block}.content{padding:0}.stats{grid-template-columns:repeat(4,1fr)}.table-scroll{overflow:visible}.table-panel{border:0}.month-table{font-size:9px}.month-table td,.month-table th{padding:5px}.page-heading{padding:10px 0}.date-cell>strong{font-size:12px}.badge{font-size:8px}.table-heading{padding:10px 0}}

/* Identità Swievo: logo originale e blu #20559F del sito aziendale. */
:root{--brand-blue:#20559f;--brand-green:#519e51}
.brand{display:block}.brand-logo{display:block;width:174px;max-width:100%;height:auto;object-fit:contain}
.auth>.brand{width:205px;margin-left:auto;margin-right:auto}.auth .brand-logo{width:205px}
h1{font-family:"Segoe UI",Arial,sans-serif;font-size:36px;font-weight:700;letter-spacing:-1px;color:var(--brand-blue)}
h2,h3 span{color:var(--brand-blue)}.stat>strong{color:var(--brand-blue)}
.stat.accent{background:#edf5eb;border-color:#d6e8d0}.stat.accent>strong{color:#347d3d}
.badge.saved,.badge.closed{background:#edf7ec;color:#347d3d}.primary{box-shadow:0 2px 4px #20559f12}
.workspace-label{margin-top:38px}nav a.active{box-shadow:inset 3px 0 0 #20559f}
.auth-panel{border-top:3px solid var(--brand-blue)}
@media(max-width:800px){.brand-logo{width:150px}h1{font-size:30px}.auth-panel h1{font-size:31px}}

/* Calendario presenze e richieste ferie */
.presence-legend,.action-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0}.presence-table{min-width:1400px}.presence-table th,.presence-table td{padding:9px 5px;text-align:center}.presence-table th:first-child{position:sticky;left:0;z-index:1;background:white;min-width:170px;text-align:left}.presence-cell{display:inline-block;border-radius:6px;padding:7px;min-width:28px;font-size:12px;font-weight:600;text-align:center}.presence-work{background:#e9f2ff;color:#20559f}.presence-sick{background:#fce8e8;color:#9a3434}.presence-leave{background:#e8f5e6;color:#347d3d}.presence-permission{background:#eee9ff;color:#624093}.presence-pending{background:#fff3cd;color:#806311}.presence-empty{color:#738092}.presence-rest{background:#f3f5f9}.requests-list{display:grid;gap:18px}.leave-card{border:1px solid #d8e2ee;border-radius:12px;padding:20px}.permission-field{max-width:280px}.clock-input{font-size:20px;font-variant-numeric:tabular-nums;letter-spacing:1px}.leave-card .section-heading{align-items:flex-start}.leave-card h3{margin:0}

/* Giorni del calendario: la festività prevale sul fine settimana. */
.calendar-legend{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0;font-size:12px}.calendar-legend span{padding:7px 12px;border:1px solid #ccd5e1;border-radius:6px;color:#183454}
.calendar-legend .day-standard,.presence-table .day-standard,.month-table tr.day-standard>td{background:#fff}
.calendar-legend .day-saturday,.presence-table .day-saturday,.month-table tr.day-saturday>td{background:#dcecff}
.calendar-legend .day-sunday,.presence-table .day-sunday,.month-table tr.day-sunday>td{background:#eae0f7}
.calendar-legend .day-holiday,.presence-table .day-holiday,.month-table tr.day-holiday>td{background:#ffe0c2}
.month-table tr.day-saturday .date-cell>strong{color:#174e87}.month-table tr.day-sunday .date-cell>strong{color:#674387}.month-table tr.day-holiday .date-cell>strong,.month-table tr.day-holiday .date-cell small{color:#843e0a}
.month-table tr.today>td:first-child{box-shadow:inset 4px 0 #20559f}.presence-table th.day-holiday{color:#843e0a}.presence-table th.day-sunday{color:#674387}.presence-table th.day-saturday{color:#174e87}
@media print{.month-table td,.presence-table td,.presence-table th{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Navigazione mensile con un clic, mantenendo il selettore. */
.month-picker{display:flex;flex-direction:column;gap:6px}.month-picker-label{font-size:12px;font-weight:600;color:#536780}.month-picker-controls{display:flex;align-items:center;gap:7px}.month-picker-controls input{width:155px;min-width:0}.month-arrow{width:40px;min-height:42px;padding:3px 10px;font-size:26px;line-height:1;font-weight:500;color:#20559f;flex-shrink:0}.month-arrow.disabled{opacity:.35;cursor:default}.month-arrow:focus-visible{outline:2px solid #20559f;outline-offset:2px}

/* Richieste e notifiche. */
#request-end[hidden],#request-duration[hidden]{display:none!important}
label.check{flex-direction:row;align-items:center;gap:10px;font-size:14px}
label.check input{width:18px;min-height:18px;height:18px;flex:0 0 18px}
input[readonly]{background:#f2f5fa;color:#536780}

.client-row{grid-template-columns:minmax(150px,1.2fr) minmax(120px,.8fr) 110px minmax(180px,1.5fr) 40px;align-items:end}.allocation-summary{display:flex;flex-wrap:wrap;gap:20px;background:#edf3fa;padding:16px;border-radius:8px;margin:14px 0}.allocation-summary strong{display:block;font-size:20px}.allocation-over{background:#fce8e8;color:#9a3434}@media(max-width:1100px){.client-row{grid-template-columns:1fr 1fr}.client-row .remove{justify-self:end}}@media(max-width:600px){.client-row{grid-template-columns:1fr}.allocation-summary{gap:14px}}
