/* Homepage-only layout. No shell, Hero, order, inventory or modal overrides. */
.hd-home{--home-navy:#232f3e;--home-teal:#007f91;--home-line:#e1e6e9;color:var(--home-navy)}
.hd-home .hd-home-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin-bottom:18px;border:1px solid var(--home-line);border-radius:6px;background:#fff;overflow:hidden}
.hd-home .hd-home-kpi{padding:19px 22px;border:0;border-right:1px solid var(--home-line);border-radius:0;background:#fff;box-shadow:none;text-align:left;white-space:normal;display:block;min-width:0;transition:background .15s,box-shadow .15s}
.hd-home .hd-home-kpi:last-child{border-right:0}
.hd-home .hd-home-kpi:hover:not(:disabled){background:#f3f8f8;border-color:var(--home-line);box-shadow:inset 0 -3px #0095a6}
.hd-home .hd-home-kpi:focus-visible{outline:2px solid #007f91;outline-offset:-3px}
.hd-home .hd-home-kpi>span{display:block;font-size:12px;color:#516172;font-weight:500}
.hd-home .hd-home-kpi>strong{display:block;margin:11px 0;font-size:30px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;color:var(--home-navy)}
.hd-home .hd-home-kpi>small{display:block;font-size:10px;font-weight:400;line-height:1.5;color:#77838f}
.hd-home .hd-home-kpi.teal>strong{color:#007f91}.hd-home .hd-home-kpi.green>strong{color:#22704e}.hd-home .hd-home-kpi.amber>strong{color:#a9670b}.hd-home .hd-home-kpi.red>strong{color:#b33a32}
.hd-home .hd-home-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;align-items:stretch}
.hd-home .hd-home-card{border:1px solid var(--home-line);border-radius:5px;background:#fff;min-width:0;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.hd-home .hd-home-card:hover{border-color:#b8cbd0;box-shadow:0 3px 12px #232f3e0a}
.hd-home .hd-home-wide{grid-column:1/-1}
.hd-home .hd-home-heading{min-height:51px;padding:13px 18px;border-bottom:1px solid var(--home-line);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fafbfc}
.hd-home .hd-home-heading h3{margin:0;font-size:14px;font-weight:600;color:var(--home-navy)}
.hd-home .hd-home-link{padding:2px 0;border:0;border-radius:0;background:transparent;color:var(--home-teal);box-shadow:none;font-size:11px;line-height:1.6;font-weight:500;min-height:0;white-space:nowrap;text-decoration:none}
.hd-home .hd-home-link:hover{text-decoration:underline;background:transparent;border:0;box-shadow:none}
.hd-home .hd-home-note{font-size:10px;line-height:1.6;color:#71808b;white-space:nowrap}
.hd-home .hd-home-todos{max-height:260px;overflow-y:auto;scrollbar-width:thin}
.hd-home .hd-home-todo{display:flex;align-items:center;gap:16px;padding:12px 18px;border-bottom:1px solid #edf0f2;min-height:65px;transition:background .15s}
.hd-home .hd-home-todo:hover{background:#f5f9f9}
.hd-home .hd-home-todo:last-child{border-bottom:0}
.hd-home .hd-home-todo>div{flex:1;min-width:0}
.hd-home .hd-home-todo strong{font-size:12px;font-weight:600}
.hd-home .hd-home-todo p{margin:5px 0 0;color:#75818c;font-size:11px;line-height:1.5}
.hd-home .hd-home-todo-count{font-size:21px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;color:#98601a}
.hd-home .hd-home-todo-count small{font-size:10px;font-weight:400;color:#7c8792;margin-left:5px}
.hd-home .hd-home-clear{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:22px;text-align:center}
.hd-home .hd-home-clear-dot{width:9px;height:9px;border-radius:50%;background:#38876d;box-shadow:0 0 0 7px #edf6f1;margin-bottom:6px}
.hd-home .hd-home-clear strong{font-size:13px;font-weight:500}
.hd-home .hd-home-clear p{margin:0;color:#7b8791;font-size:11px}
.hd-home .hd-home-due{padding:20px 18px 16px;display:flex;align-items:center;gap:17px}
.hd-home .hd-home-due>strong{font-size:37px;line-height:1.1;font-weight:600;font-variant-numeric:tabular-nums}
.hd-home .hd-home-due>div{font-size:13px;font-weight:500}
.hd-home .hd-home-due span{display:block;margin-top:6px;font-size:10px;font-weight:400;color:#74818d}
.hd-home .hd-home-today-stats{padding:0 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hd-home .hd-home-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#516274}
.hd-home .hd-home-stat strong{font-size:19px;line-height:1.4;font-weight:600;color:var(--home-navy);font-variant-numeric:tabular-nums}
.hd-home .hd-home-today-stats .hd-home-stat{padding:8px 11px;border:1px solid #e7ebee;border-radius:4px;background:#fafbfc}
.hd-home .hd-home-stat.warning strong{color:#b33a32}
.hd-home .hd-home-deadline{margin:14px 18px 17px;font-size:11px;color:#73808b;line-height:1.6}
.hd-home .hd-home-deadline.has-overdue{padding:8px 10px;background:#fff8e5;border-left:3px solid #ffd814;color:#88591b}
.hd-home .hd-home-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;padding:6px 18px 14px}
.hd-home .hd-home-progress .hd-home-stat{padding:10px 0;border-bottom:1px solid #edf0f2}
.hd-home .hd-home-progress .hd-home-stat strong{font-size:19px;color:#007f91}
.hd-home .hd-home-inventory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 12px;padding:18px}
.hd-home .hd-home-inventory .hd-home-stat{display:block}
.hd-home .hd-home-inventory span{display:block;font-size:11px;color:#74818c}
.hd-home .hd-home-inventory strong{display:block;margin-top:7px;font-size:24px}
.hd-home .hd-home-footnote{margin:0 18px 12px;font-size:10px;line-height:1.6;color:#7a8791}
.hd-home .hd-home-inventory-mode{margin:0 18px 16px}
.hd-home .hd-home-inventory-mode .tag{font-size:10px}
.hd-home .hd-home-systems{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:0;padding:0}
.hd-home .hd-home-system{min-width:0;padding:19px 20px;border-right:1px solid #edf0f2;transition:background .15s}
.hd-home .hd-home-system:last-child{border-right:0}
.hd-home .hd-home-system:hover{background:#f7fafb}
.hd-home .hd-home-system-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-height:47px;margin-bottom:13px}
.hd-home .hd-home-system-title>div{min-width:0}
.hd-home .hd-home-system-title p{margin:0 0 6px;font-size:9px;letter-spacing:1px;color:#007f91;font-weight:500}
.hd-home .hd-home-system-title h4{margin:0;font-size:13px;font-weight:600;color:#232f3e;overflow-wrap:anywhere;line-height:1.5}
.hd-home .hd-home-system-title .tag{white-space:nowrap;font-size:10px}
.hd-home .hd-home-systems dl{margin:0}
.hd-home .hd-home-systems dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;border-bottom:1px solid #f0f2f4;font-size:11px;line-height:1.5}
.hd-home .hd-home-systems dl>div:last-child{border-bottom:0}
.hd-home .hd-home-systems dt{color:#74818c;white-space:nowrap}
.hd-home .hd-home-systems dd{margin:0;text-align:right;color:#405262;overflow-wrap:anywhere;min-width:0;font-variant-numeric:tabular-nums}
.hd-home .hd-home-system-caption{margin:0;padding:10px 20px;border-top:1px solid #edf0f2;background:#fafbfc;color:#7c8893;font-size:10px;line-height:1.6}
.hd-home .hd-home-tasks .table-scroll{margin:0;border-top:0;overflow-x:auto}
.hd-home .hd-home-tasks table{table-layout:fixed;min-width:640px;white-space:normal}
.hd-home .hd-home-tasks table th{padding:10px 18px;font-size:11px;height:38px}
.hd-home .hd-home-tasks table td{padding:10px 18px;font-size:11px;height:auto;overflow-wrap:anywhere}
.hd-home .hd-home-tasks table th:first-child{width:34%}
.hd-home .hd-home-tasks table th:nth-child(2){width:15%}
.hd-home .hd-home-tasks table th:nth-child(3){width:14%}
.hd-home .hd-home-tasks table th:nth-child(4){width:23%}
.hd-home .hd-home-tasks table th:last-child{width:14%}
.hd-home .hd-home-tasks table td:first-child{color:#344b5c;font-weight:500}
.hd-home .hd-home-tasks tbody tr:hover{background:#f3f8f8}
.hd-home .hd-home-tasks .tag{font-size:10px}
.hd-home .hd-home-tasks .quiet{padding:3px 8px;min-height:0}
.hd-home .hd-home-footer{display:flex;justify-content:space-between;gap:12px;margin-top:13px;font-size:10px;color:#83909a;line-height:1.7}
.hd-home .hd-home-loading{min-height:220px;display:flex;gap:12px;align-items:center;justify-content:center;color:#74818c;font-size:12px;border:1px solid var(--home-line);border-radius:5px;background:#fff}
.hd-home .hd-home-empty{padding:20px 18px;margin:0;font-size:12px;color:#74818c}
.hd-home .hd-home-error{padding:24px;color:#9a322b}.hd-home .hd-home-error p{font-size:12px;line-height:1.7}
@media(max-width:1100px){.hd-home .hd-home-kpi{padding:17px 14px}.hd-home .hd-home-note{display:none}}
@media(max-width:850px){.hd-home .hd-home-grid{grid-template-columns:1fr}.hd-home .hd-home-wide{grid-column:auto}.hd-home .hd-home-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.hd-home .hd-home-kpi{border-bottom:1px solid var(--home-line)}.hd-home .hd-home-kpi:nth-child(3){border-right:0}.hd-home .hd-home-kpi:nth-last-child(-n+2){border-bottom:0}}
@media(max-width:550px){.hd-home .hd-home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hd-home .hd-home-kpi:nth-child(3){border-right:1px solid var(--home-line)}.hd-home .hd-home-kpi:nth-child(even){border-right:0}.hd-home .hd-home-kpi:nth-last-child(2){border-bottom:1px solid var(--home-line)}.hd-home .hd-home-todo{gap:10px;padding:12px}.hd-home .hd-home-heading{padding:13px 12px}.hd-home .hd-home-systems{grid-template-columns:1fr}.hd-home .hd-home-system{border-right:0;border-bottom:1px solid #edf0f2}.hd-home .hd-home-system:last-child{border-bottom:0}}
@media(prefers-reduced-motion:reduce){.hd-home .hd-home-kpi,.hd-home .hd-home-card,.hd-home .hd-home-todo,.hd-home .hd-home-system{transition:none}}
