/* V5.1 — compact shell, dependable personal background, repair/calibration and cost matrix. */
body.custom-background-v50{background:transparent!important}.custom-background-v50 .workspace,.custom-background-v50 .content{background:transparent!important}.custom-background-v50 :is(.sidebar,.topbar,.panel,.legacy-chart,.legacy-cost-section,.daily-v45-scroll,.usage-year-scroll){background:rgba(255,255,255,.68)!important;-webkit-backdrop-filter:blur(22px) saturate(145%)!important;backdrop-filter:blur(22px) saturate(145%)!important}.custom-background-v50[data-mode=dark] :is(.sidebar,.topbar,.panel,.legacy-chart,.legacy-cost-section,.daily-v45-scroll,.usage-year-scroll){background:rgba(20,25,35,.72)!important}
.topbar{height:68px!important;padding:8px 14px 8px 18px!important;gap:10px}.topbar #breadcrumb{min-width:225px!important}.topbar #breadcrumb:before{font-size:22px!important;padding-left:9px!important}.topbar #breadcrumb:after{font-size:9px!important;margin:4px 0 0 13px!important}.topbar .actions{gap:5px!important;margin-left:auto}.legacy-clock{height:40px!important;padding:5px 9px!important;font-size:16px!important;border-radius:10px!important}.legacy-clock small{font-size:8px!important}.topbar select,.topbar button{height:34px!important;padding:5px 8px!important;font-size:11px!important}.topbar .who{min-height:40px!important;max-width:175px;padding:4px 8px 4px 41px!important;background-size:29px 29px!important;border-radius:12px!important}.topbar .who b{display:block;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.topbar .who small{font-size:9px}.topbar .icon-action{width:38px;padding:0!important}.topbar #logout{max-width:60px;line-height:1.05}
.usage-day-v49 .daily-v45-project{font-size:7px!important;font-weight:800;letter-spacing:-.05px}.legacy-device-image.is-error{box-shadow:0 0 0 2px #ef3f52,0 9px 22px rgba(220,38,65,.18)}.legacy-device-image.is-error .lamp{background:#ef233c;border-color:#ff6073;box-shadow:0 0 18px 7px #ef4055}.legacy-device-image.is-error .state{background:#fff0f2;color:#b41028}
.cal-v51-last,.cal-v51-cycle{white-space:nowrap}.cal-v51-due.overdue{color:#c51f39;font-weight:900}
.repair-v51-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.repair-v51-toolbar h2{margin:0;color:#163b86}.repair-v51-table td{vertical-align:top}.repair-v51-table small{display:block;margin-top:3px}.repair-v51-photo{width:54px;height:42px;object-fit:cover;border-radius:7px;border:1px solid var(--line)}.repair-v51-overdue{color:#c71934;font-weight:900}.repair-v51-empty{text-align:center;padding:28px;color:var(--muted)}.fault-overview-v51{border-left:4px solid #e33d55!important}.fault-overview-v51 h2{display:flex;justify-content:space-between;align-items:center;margin:0 0 9px}.fault-overview-v51 .fault-row{display:grid;grid-template-columns:110px 1fr auto;gap:10px;padding:7px 0;border-top:1px solid var(--line)}
.legacy-calendar table{min-width:max-content!important;table-layout:fixed}.legacy-calendar th:first-child,.legacy-calendar td:first-child{min-width:190px!important;width:190px!important}.legacy-calendar .legacy-week-head,.legacy-calendar tbody td:not(:first-child){min-width:68px!important;width:68px!important;max-width:68px!important}.legacy-calendar .legacy-month-group{font-size:12px!important;padding:6px 3px!important}.legacy-calendar .legacy-month-group.current{box-shadow:inset 0 0 0 1px #17bf68}.legacy-calendar th,.legacy-calendar td{padding-left:3px!important;padding-right:3px!important}.legacy-calendar{max-height:455px}
.cost-v51{display:grid;gap:8px}.cost-v51-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.cost-v51-head h2{margin:0;font-size:14px;color:#123881}.cost-v51-tabs{display:flex;gap:5px;padding:5px;border:1px solid var(--line);border-radius:11px}.cost-v51-tabs button.active{background:#173f94;color:#fff}.cost-v51-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cost-v51-tools input{width:220px}.cost-v51-table{overflow:auto;max-height:65vh;border:1px solid var(--line);border-radius:10px}.cost-v51-table table{min-width:max-content;font-size:10px}.cost-v51-table th,.cost-v51-table td{padding:6px 7px;border:1px solid #cbd6e7;text-align:center}.cost-v51-table th{background:#e8eef7;color:#092f81}.cost-v51-table td.device-meta{text-align:left;min-width:190px}.cost-v51-table .asset{min-width:90px}.cost-v51-table .usage-cell{min-width:72px}.cost-v51-table input[type=checkbox]{width:15px;height:15px}.cost-v51-table select{height:28px;padding:3px;font-size:10px}.cost-v51-factor{display:block;font-size:8px;color:#53627a}.cost-v51-summary{font-weight:900}.cost-v51-dept button{border:0;background:transparent;padding:1px;color:#173f94}.cost-v51-dept button.danger{color:#c71934}
@media(max-width:1350px){.topbar #breadcrumb{min-width:180px!important}.topbar #breadcrumb:before{font-size:19px!important}.topbar .who{max-width:145px}.topbar select{max-width:112px}.legacy-clock{font-size:14px!important}.cost-v51-table table{font-size:9px}}
@media(max-width:1100px){.topbar #breadcrumb{display:none}.topbar .who small{display:none}.topbar .who{width:44px;padding-left:40px!important;overflow:hidden}.topbar #logout{width:42px;font-size:0}.topbar #logout:before{content:'↪';font-size:16px}.legacy-calendar .legacy-week-head,.legacy-calendar tbody td:not(:first-child){min-width:62px!important;width:62px!important}}
