:root{font-family:Segoe UI,system-ui,sans-serif;color:#183039;background:#f4f7f7;font-size:14px}*{box-sizing:border-box}body{margin:0}aside{width:235px;position:fixed;inset:0 auto 0 0;background:#102f34;color:#e7f3ef;padding:34px 24px;display:flex;flex-direction:column}.brand{font-weight:800;font-size:24px;display:flex;gap:12px;align-items:center}.brand:first-letter{color:#b4df74}.brand span{font-size:21px}aside .muted{font-size:10px;letter-spacing:1.5px;color:#8eafa9;margin:28px 0 18px}nav{display:grid;gap:8px}button,.button{border:0;border-radius:8px;padding:11px 17px;background:#17796a;color:white;font:600 14px Segoe UI,sans-serif;cursor:pointer;text-align:center}button:hover,.button:hover{filter:brightness(.94)}button:disabled{opacity:.5;cursor:wait}nav button{text-align:left;background:transparent;color:#bdd0cc;padding:14px}nav button.active{background:#2a4a4d;color:#dbf2bb}footer{margin-top:auto;font-size:12px;line-height:1.7;color:#95b5af}main{margin-left:235px;padding:38px 42px;max-width:1700px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.eyebrow{letter-spacing:2px;color:#4e8277;font-size:11px;font-weight:700}h1{font-size:32px;font-weight:650;letter-spacing:-1px;margin:8px 0}header p{color:#75878b}h2{font-size:18px;margin:0 0 16px}.secondary{background:#fff;color:#254d4d;border:1px solid #cfddda}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0 30px}.stat{background:white;padding:21px;border:1px solid #dde5e3;border-radius:12px}.stat strong{display:block;font-size:30px;margin-top:10px}.muted,small{color:#73858a}.toolbar{display:flex;align-items:center;gap:14px;margin:20px 0}.toolbar input{max-width:480px;flex:1}.toolbar select{width:auto}.toolbar h2{margin:0;flex:1}.table-wrap{overflow:auto;border:1px solid #dce5e2;border-radius:12px;background:#fff}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:11px;letter-spacing:.6px;text-transform:uppercase;background:#edf3f1;color:#698079;padding:17px 20px}td{padding:18px 20px;border-top:1px solid #edf0ef}td small{display:block;margin-top:5px;max-width:350px;overflow:hidden;text-overflow:ellipsis}.badge{font-size:11px;background:#e7f4e9;color:#39714a;border-radius:5px;padding:5px 9px;display:inline-block}.badge.neutral{background:#edf0f2;color:#6b7983}.panel,.job{background:white;border:1px solid #dce5e2;border-radius:12px;padding:25px}.split{display:grid;grid-template-columns:1fr 1.3fr;gap:24px}.panel p{line-height:1.6}label{display:block;margin-bottom:16px;font-weight:600;font-size:13px}input,select,textarea{width:100%;margin-top:6px;padding:11px 12px;border:1px solid #ccd9d5;border-radius:7px;background:#fff;color:#183039;font:14px Segoe UI,sans-serif}input:focus,select:focus,textarea:focus{outline:2px solid #7dc6ac;outline-offset:1px}.toolbar input,.toolbar select{margin-top:0}.cards{display:grid;gap:14px}.job{display:flex;justify-content:space-between;align-items:center;gap:20px}.job h3{margin:6px 0}.job p{margin:6px 0}.job .notes{white-space:pre-wrap}.rule{border-bottom:1px solid #e5ece9;padding:12px 0;display:flex;gap:15px;justify-content:space-between;align-items:center}.rule p{margin:4px 0}hr{border:0;border-top:1px solid #e0e8e4;margin:24px 0}.empty{padding:35px;color:#718680;text-align:center}#notice:not(:empty){padding:14px 18px;border-radius:8px;background:#e1f1e7;border:1px solid #bad8c4}#notice.error{background:#fff0e8;color:#963d21;border-color:#efc8b8}dialog{border:1px solid #d1deda;border-radius:16px;width:520px;max-width:95vw;max-height:92vh;padding:28px;color:#183039}dialog::backdrop{background:#0e272a80}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.dialog-head h2{margin:0}#form-error{color:#ac3d24}#preview-result{max-height:340px;overflow:auto;line-height:1.7;margin:18px 0}[hidden]{display:none!important}@media(max-width:950px){aside{width:180px;padding:25px 16px}main{margin-left:180px;padding:25px}.stats{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}}@media(max-width:650px){aside{position:static;width:auto;padding:18px}.brand{font-size:18px}aside .muted,footer{display:none}nav{display:flex;margin-top:14px;gap:5px}nav button{padding:9px}main{margin:0;padding:20px}header{align-items:flex-start}h1{font-size:26px}.toolbar{flex-wrap:wrap}.toolbar input{min-width:100%}.stat{padding:15px}.job{align-items:flex-start;flex-direction:column}}

.brand{flex-direction:column;gap:10px;align-items:flex-start}.brand img{width:160px;height:100px;max-width:100%;object-fit:contain}.brand span{font-size:25px}.language-label{font-size:12px;color:#bdd0cc}.language-label select{padding:8px}.toolbar{flex-wrap:wrap}td:last-child{white-space:normal;min-width:180px}td:last-child button{margin:3px}#machine-details{width:760px}#machine-data dl{display:grid;grid-template-columns:1fr 2fr;margin:0}#machine-data dt,#machine-data dd{margin:0;padding:10px;border-bottom:1px solid #e0e8e4;overflow-wrap:anywhere}#machine-data dt{font-weight:600}
@media(max-width:1100px){.table-wrap table,.table-wrap tbody{display:block;white-space:normal}.table-wrap thead{display:none}.table-wrap tr{display:grid;grid-template-columns:1fr 1fr;gap:4px;border-bottom:1px solid #dce5e2;padding:16px}.table-wrap td{display:block;border:0;padding:6px;min-width:0;overflow-wrap:anywhere}.table-wrap td small{white-space:normal}.table-wrap td:last-child{grid-column:1/-1;display:flex;flex-wrap:wrap;min-width:0}.table-wrap td.empty{grid-column:1/-1}.table-wrap{overflow:hidden}}
@media(max-width:650px){.brand{flex-direction:row;align-items:center}.brand img{width:75px;height:50px}.language-label{max-width:150px;margin-top:12px}.header-actions .button{white-space:nowrap}header{flex-wrap:wrap}.table-wrap tr{grid-template-columns:1fr}.table-wrap td{grid-column:1/-1}}
.language-label{margin:0 0 20px}.language-label>span{display:block;margin-bottom:8px;font-size:11px;color:#a9c3bf}
.lang-switcher{display:flex;gap:6px}
.lang-option{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;max-width:78px;min-height:38px;padding:8px 10px;border:1px solid #a5c5be33;border-radius:8px;background:transparent;color:#a9c3bf;transition:background .15s,border-color .15s,color .15s}
.lang-option:hover{background:#ffffff0d;filter:none;color:#f1f7f4}.lang-option[aria-pressed=true]{background:#2a4a4d;border-color:#80b4a78c;color:#e7f3ef}.lang-option:focus-visible{outline:2px solid #9bcec0;outline-offset:3px}
.lang-code{font-size:11px;font-weight:700;letter-spacing:.03em;color:inherit}.lang-flag{display:inline-block;width:20px;height:20px;border-radius:50%;border:1px solid #ffffff40;flex:0 0 auto;overflow:hidden;background-size:cover;background-position:center}
.lang-flag-it{background-image:url('/flag-it.svg')}.lang-flag-gb{background-image:url('/flag-uk.svg')}
.installation-date strong{font-weight:700;color:#183039}.utilities-panel{max-width:760px}.utilities-panel .button{display:inline-block;margin-top:8px}
.machine-location-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:10px}.machine-location-actions button{padding:6px 10px;font-size:12px}.maps-link{display:inline-block;color:#17796a;font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}.maps-link:hover{color:#105b4f}.maps-link:focus-visible{outline:2px solid #17796a;outline-offset:3px;border-radius:2px}.planner-machine .maps-link{margin-top:5px;font-size:10px}.planner-detail-table .maps-link{margin-top:6px}#location-machine{overflow-wrap:anywhere}#location-help,#location-clear-help{font-size:12px;line-height:1.5}#location-error{color:#ac3d24}
@media(max-width:650px){.language-label{margin:16px 0 0;max-width:180px}}

/* Monthly machine/day maintenance planner. */
.planner-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin:10px 0 12px}.planner-navigation{display:flex;align-items:center;gap:8px}.planner-navigation>strong{font-size:22px;min-width:185px;text-align:center;text-transform:capitalize}.planner-navigation>button{min-height:40px}.planner-navigation>button:first-child,.planner-navigation>button:nth-of-type(2){width:40px;padding:6px;font-size:25px;line-height:1}.planner-toolbar>input{max-width:360px;margin:0}.planner-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:12px 0}.planner-summary .stat{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px}.planner-summary .stat strong{font-size:25px;margin:0}.planner-summary .stat>span{font-size:12px}
.planner-date-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#fbf4e3;border:1px solid #e8d8ad;border-radius:10px;color:#7c6328;font-size:13px}.planner-date-notice button{font-size:12px;padding:8px 12px}.planner-help{font-size:12px}.planner-legend{display:flex;gap:16px;flex-wrap:wrap;margin:14px 0 8px;font-size:12px}.planner-legend>span:before{content:'';display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:6px;background:var(--plan-color)}
.planned{--plan-color:#378d80;--plan-bg:#e5f3ef;--plan-text:#226456}.overdue{--plan-color:#c65d57;--plan-bg:#fbece9;--plan-text:#a03e39}.open{--plan-color:#4b86bd;--plan-bg:#e8f1fb;--plan-text:#2c679e}.progress{--plan-color:#bd8a35;--plan-bg:#fff4dc;--plan-text:#966b23}.completed{--plan-color:#5b9d60;--plan-bg:#e8f3e4;--plan-text:#447448}
.planner-board{overflow:auto;max-height:520px;border:1px solid #cfddda;border-radius:12px;background:white;scrollbar-color:#adc8c0 #edf3f1}.planner-table{--planner-machine-width:250px;--planner-day-width:38px;table-layout:fixed;width:max(100%,calc(var(--planner-machine-width) + var(--planner-days,31)*var(--planner-day-width)));min-width:calc(var(--planner-machine-width) + var(--planner-days,31)*var(--planner-day-width));white-space:normal;border-collapse:separate;border-spacing:0}.planner-table th,.planner-table td{padding:0;border:0;border-right:1px solid #dfe9e5;border-bottom:1px solid #dfe9e5;text-align:center;width:auto;min-width:0}.planner-table thead th{position:sticky;top:0;background:#e8f0ed;z-index:3;height:58px}.planner-table thead th:first-child{width:var(--planner-machine-width);text-align:left;padding:16px 18px;left:0;z-index:5}.planner-table thead button{width:100%;height:58px;padding:7px 2px;background:transparent;border:0;border-radius:0;color:#58746a;font-weight:700;text-transform:capitalize}.planner-table thead button>span{display:block;font-size:13px}.planner-table thead button>small{display:block;margin-top:4px;color:#81968c;font-size:9px;font-weight:500;letter-spacing:0}.planner-table thead th.weekend{background:#e0eae6}.planner-table thead th.today{background:#d9eadd}.planner-table thead th.today button>span{color:#226456;text-decoration:underline;text-underline-offset:4px}.planner-table thead th.selected-day{background:#cce4da}.planner-table thead button[aria-pressed=true]{box-shadow:inset 0 -3px #17796a;color:#164f42}.planner-table tbody th{position:sticky;left:0;width:var(--planner-machine-width);background:#fff;z-index:2;text-align:left;text-transform:none;letter-spacing:0}.planner-machine{display:flex;align-items:center;gap:8px;min-height:64px;padding:9px 11px}.planner-coordinate{font:600 10px Consolas,monospace;color:#87a296;min-width:22px}.planner-machine>div{min-width:0}.planner-machine strong{display:block;font-size:12px;font-weight:650;color:#25483e;line-height:1.4}.planner-machine small{display:block;font-size:10px;font-weight:400;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.planner-date-link{padding:0;margin-top:5px;background:transparent;color:#9c733b;border:0;border-radius:0;font-size:10px;font-weight:500;text-decoration:underline;text-underline-offset:2px}
.planner-table td{background:#fcfefd}.planner-table td.weekend{background:#f4f8f5}.planner-table td.today{background:#f0f8f0}.planner-table td.selected-day{background:#edf6f1}.planner-table tr.selected-machine>th{background:#eaf5ef;box-shadow:inset 3px 0 #17796a}.planner-table td.selected-cell{background:#dcefe5}.planner-sea{color:#b9cfc4;font-size:18px}.planner-cell,.planner-table td.planner-sea{padding:3px!important}.planner-slot,.planner-empty{display:flex;align-items:center;justify-content:center;gap:2px;width:100%;min-height:36px;padding:4px 1px;border-radius:6px;font-size:15px;line-height:1}.planner-slot{background:var(--plan-bg);color:var(--plan-text);border:1px solid color-mix(in srgb,var(--plan-color) 45%,transparent);box-shadow:inset 0 2px var(--plan-color)}.planner-slot strong{font-size:13px;font-weight:750;line-height:1}.planner-slot span{font-size:15px;line-height:1}.planner-empty{background:transparent;border:1px solid transparent;color:#b9cfc4;font-weight:400}.planner-table td:last-child{min-width:0;white-space:normal}.planner-table td:last-child button{margin:0}.planner-slot:hover{filter:brightness(.96);outline:1px solid var(--plan-color)}.planner-empty:hover{background:#e3f0e9;border-color:#a2c6b4;filter:none}.planner-table td.selected-cell>button{outline:2px solid #176d5e;outline-offset:-2px;box-shadow:0 0 0 1px white}.planner-slot:focus-visible,.planner-empty:focus-visible,.planner-table thead button:focus-visible{outline:2px solid #25483e;outline-offset:-3px}
.planner-month{margin-top:24px;padding:24px;scroll-margin-top:20px}.planner-month-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:space-between}.planner-month-head h2{text-transform:capitalize;margin:0}.planner-month-head p{margin:7px 0}.planner-selection{font-size:13px;font-weight:600;color:#326653;margin:14px 0}.planner-selection:empty{display:none}.planner-generation-note{font-size:12px;margin:16px 0}.planner-detail-scroll{overflow:auto}.planner-detail-table{min-width:650px;white-space:normal}.planner-detail-table td{font-size:13px}.planner-detail-table td small{font-size:11px}.planner-status{display:inline-block;padding:5px 8px;border-radius:5px;background:var(--plan-bg);color:var(--plan-text);font-size:11px;white-space:nowrap}
@media(max-width:650px){.planner-summary{grid-template-columns:1fr;gap:8px}.planner-toolbar>input{max-width:none}.planner-navigation{gap:6px;flex-wrap:wrap}.planner-navigation>strong{font-size:19px;min-width:160px}.planner-navigation>button:last-child{font-size:12px}.planner-date-notice{align-items:flex-start;flex-direction:column}.planner-table{--planner-machine-width:210px;--planner-day-width:36px}.planner-machine small{max-width:140px}.planner-month-head{align-items:stretch;flex-direction:column}nav{flex-wrap:wrap}.planner-board{max-height:440px}}
