*{box-sizing:border-box}body{margin:0;background:#f2f5f8;color:#17212b;font:15px Arial,sans-serif}header{background:#123b55;color:white;padding:18px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px}h1{font-size:20px;margin:0}header p{margin:6px 0 0;color:#d5e6ef}main{max-width:1200px;margin:18px auto;padding:0 12px}.panel{background:white;border:1px solid #dce4ea;border-radius:10px;padding:16px;margin-bottom:16px;box-shadow:0 2px 8px #17384b0b}.narrow{max-width:420px;margin:35px auto}.hidden{display:none!important}label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:13px}input,select{width:100%;padding:11px;border:1px solid #bdcbd5;border-radius:6px;font:inherit;background:#fff}button{border:0;border-radius:7px;background:#087b68;color:white;padding:11px 16px;font-weight:700;cursor:pointer}button.secondary{background:#e7eef2;color:#19394b}.narrow button{width:100%;margin-top:12px}.formgrid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px;margin:14px 0}.summary{grid-template-columns:repeat(4,minmax(130px,1fr))}.tablewrap{overflow:auto;border:1px solid #dce4ea;border-radius:7px}table{border-collapse:collapse;min-width:1000px;width:100%;font-size:13px}th,td{border:1px solid #dce4ea;padding:5px;text-align:center}th{background:#eaf1f5;white-space:nowrap}td input{min-width:75px;padding:8px;border:0;background:#fbfcfd}td input[type=number]{min-width:70px}.actions{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.welcome{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.role{margin-left:10px;background:#e6f2ef;color:#087b68;padding:4px 9px;border-radius:20px;font-size:12px}.tabs{display:flex;gap:8px}.tabs button{background:#e7eef2;color:#19394b}.tabs button.active{background:#087b68;color:white}.msg{color:#a02b2b;min-height:18px}.report{border:1px solid #dce4ea;border-radius:8px;padding:12px;margin-top:10px;display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.report small{display:block;color:#61727e;margin-top:4px}footer{text-align:center;color:#71818c;padding:20px;font-size:12px}@media(max-width:700px){.formgrid,.summary{grid-template-columns:repeat(2,minmax(0,1fr))}header{align-items:flex-start}h1{font-size:17px}.welcome{align-items:flex-start}.tabs{width:100%}.tabs button{flex:1}}
.previous-day{margin:14px 0;padding:12px;background:#f8fbfc;border:1px solid #d7e0e5;border-radius:12px}
.previous-day h3{margin:0 0 8px}
.previous-combo{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #d7e0e5}
.previous-combo span{font-size:14px;overflow-wrap:anywhere}
.previous-combo button{flex:0 0 auto;padding:8px 14px}

.suggest-wrap{position:relative;min-width:78px}
.suggest-wrap>input{width:100%;min-width:78px}
.suggest-menu{position:absolute;z-index:1000;top:100%;left:0;right:0;max-height:190px;overflow:auto;background:#fff;border:1px solid #9aabb6;border-radius:6px;box-shadow:0 4px 12px #0002}
.suggest-menu.hidden{display:none}
.suggest-option{display:block;width:100%;text-align:left;border:0;border-radius:0;background:#fff;color:#17212b;padding:9px 10px;font-weight:400;border-bottom:1px solid #e7edf0}
.suggest-option:last-child{border-bottom:0}
.suggest-option:active,.suggest-option:hover{background:#eaf3f5}

/* Quantity cells accept arithmetic expressions. Invalid expressions are highlighted. */
td input.quantity-input{min-width:82px;font-variant-numeric:tabular-nums}
td input.quantity-invalid{outline:2px solid #c62828!important;background:#fff0f0!important}

.quantity-result{display:block;min-height:13px;margin-top:2px;color:#087b68;font-size:10px;font-weight:700;white-space:nowrap}
td .quantity-entry:has(input.quantity-invalid)+.quantity-result{color:#c62828}

.selected-summary{margin:14px 0;padding:14px;border:1px solid #cbd9e1;border-radius:9px;background:#f8fbfc}
.selected-summary h3{margin:0 0 5px}
.summary-period{margin:0 0 12px;color:#5c6f7a;font-size:13px}
.aggregate-table{min-width:760px}
.aggregate-table tfoot th{background:#dcebe8;color:#123b55;font-weight:800}
@media(max-width:700px){.selected-summary{padding:10px}.aggregate-table{font-size:12px}}

/* Compact + key beside the Android decimal keypad quantity input. */
.quantity-entry{display:flex;align-items:stretch;gap:4px;min-width:112px}
.quantity-entry .quantity-input{flex:1;width:1%;min-width:0}
.quantity-plus{flex:0 0 34px;min-width:34px;padding:4px 0!important;border-radius:8px!important;background:#087b68!important;color:#fff!important;font-size:22px!important;font-weight:800!important;line-height:1}
.quantity-plus:active{background:#065b50!important;transform:scale(.96)}
td .quantity-entry:has(input.quantity-invalid)+.quantity-result{color:#c62828}

/* In-app arithmetic keyboard, styled after the user's Gboard numeric layout. */
body.has-arithmetic-keypad{padding-bottom:270px}
.arithmetic-keypad{position:fixed;z-index:5000;left:0;right:0;bottom:0;background:#101010;color:#fff;padding:10px max(10px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));display:grid;grid-template-columns:62px 1fr;gap:8px;box-shadow:0 -5px 20px #0005}
.arithmetic-keypad.hidden{display:none}
.math-operators{display:grid;grid-template-rows:repeat(4,1fr);gap:6px}
.arithmetic-keypad button{border:0;border-radius:12px;background:#303030;color:#fff;font-size:24px;font-weight:600;min-height:48px;touch-action:manipulation}
.math-operators button{background:#171717;color:#f5f5f5;font-size:27px}
.math-number-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,1fr);gap:6px}
.math-number-grid button{min-height:48px}
.math-number-grid .math-secondary{background:#202020;font-size:21px}
.math-number-grid .math-enter{background:#80cbc4;color:#092b29;font-size:27px}
.arithmetic-keypad button:active{filter:brightness(1.25);transform:scale(.98)}
@media(max-width:420px){.arithmetic-keypad{grid-template-columns:54px 1fr;gap:6px;padding:8px}.arithmetic-keypad button{min-height:43px;font-size:21px}.math-operators button{font-size:24px}}


/* Modern colorful unsaved-report back-navigation warning. */
.back-warning{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(9,25,40,.68);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.back-warning.hidden{display:none!important}
.back-warning-card{position:relative;width:min(100%,410px);overflow:hidden;border:1px solid rgba(255,255,255,.75);border-radius:24px;padding:28px 24px 20px;background:linear-gradient(145deg,#fff 0%,#f3f8ff 58%,#fff4ed 100%);box-shadow:0 24px 70px rgba(0,0,0,.32);text-align:center;animation:backWarningIn .22s ease-out}
.back-warning-card:before{content:"";position:absolute;top:0;left:0;right:0;height:7px;background:linear-gradient(90deg,#ffb02e,#ff5b6e,#8b5cf6,#22b8a7)}
.back-warning-icon{display:grid;place-items:center;width:62px;height:62px;margin:4px auto 14px;border-radius:20px;background:linear-gradient(145deg,#fff0c7,#ffe0e5);color:#e45b43;font-size:38px;font-weight:900;box-shadow:0 8px 22px rgba(231,105,69,.18)}
.back-warning-kicker{color:#e46b43;font-size:11px;font-weight:900;letter-spacing:2px}
.back-warning-card h2{margin:8px 0 10px;color:#172d46;font-size:22px;line-height:1.2}
.back-warning-card p{margin:0 auto;color:#596b7d;font-size:14px;line-height:1.55;max-width:330px}
.back-warning-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:23px}
.back-warning-actions button{min-height:48px;padding:11px 10px;border-radius:13px;font-size:13px;font-weight:800}
.back-stay{background:linear-gradient(135deg,#087b68,#11a88e);color:#fff;box-shadow:0 6px 15px rgba(8,123,104,.22)}
.back-leave{background:linear-gradient(135deg,#ff9b45,#f05d63);color:#fff;box-shadow:0 6px 15px rgba(240,93,99,.2)}
.back-warning-foot{margin-top:17px;color:#738497;font-size:11px;font-weight:700}
.back-warning-foot span{color:#f2a33b;margin-right:4px}
@keyframes backWarningIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:380px){.back-warning-card{padding:25px 18px 18px;border-radius:20px}.back-warning-card h2{font-size:20px}.back-warning-actions{grid-template-columns:1fr}}


/* Per-report first-save and edit-save history group. */
.report-save-history{flex:1 0 100%;min-width:0;margin-top:4px;padding:10px 12px;border:1px solid #d8e5ed;border-radius:11px;background:linear-gradient(135deg,#f7fbff,#f5fbf8)}
.report-save-history>summary{cursor:pointer;color:#17465d;font-size:13px;font-weight:800;list-style:none;display:flex;align-items:center;gap:8px}
.report-save-history>summary::-webkit-details-marker{display:none}
.report-save-history>summary:before{content:"＋";display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#dceefa;color:#17628a;font-size:16px}
.report-save-history[open]>summary:before{content:"−"}
.save-history-list{margin:12px 0 2px 10px;padding:0 0 0 22px;border-left:2px solid #c7dce8;list-style:none}
.save-history-list li{position:relative;display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 12px;padding:0 0 12px 4px;font-size:13px}
.save-history-list li:last-child{padding-bottom:2px}
.save-history-list li:before{content:"";position:absolute;left:-29px;top:4px;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#0b9a83;box-shadow:0 0 0 2px #b8ded5}
.save-history-list strong{color:#17465d}
.save-history-list time{color:#5c7180;font-variant-numeric:tabular-nums}
.save-history-note{margin:10px 0 2px;color:#687987;font-size:12px;line-height:1.45}


/* V20: colourful upgrades are scoped to the dashboard and report history.
   The New report form, table, fields, row layout and mobile overflow remain V18 unchanged. */
header{background:linear-gradient(110deg,#243b78 0%,#5146b8 52%,#087f91 100%)}
.dashboard-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;overflow:hidden;margin:0 0 12px;padding:23px 25px;border-radius:18px;color:#fff;background:linear-gradient(115deg,#5146b8 0%,#7255c7 48%,#148e9b 100%);box-shadow:0 10px 26px #5146b826}
.dashboard-hero:after{content:"";position:absolute;width:190px;height:190px;right:50px;top:-115px;border:1px solid #ffffff35;border-radius:50%;box-shadow:0 0 0 22px #ffffff0c,0 0 0 44px #ffffff0a}
.dashboard-hero h2{position:relative;margin:8px 0 5px;font-size:23px}.dashboard-hero p{position:relative;margin:0;color:#eeedff;font-size:13px}.eyebrow{position:relative;font-size:10px;font-weight:800;letter-spacing:1.6px;color:#d9d4ff}.hero-mark{position:relative;z-index:1;font-size:54px;color:#ffe08a;text-shadow:0 5px 18px #25205c55}
.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:0 0 10px}.metric-card{min-width:0;padding:15px;border:1px solid #e6e8f4;border-radius:14px;background:#fff;box-shadow:0 5px 16px #25335b0a}.metric-card span{display:block;font-size:11px;font-weight:800;color:#68738b}.metric-card strong{display:block;margin:7px 0 3px;font-size:clamp(24px,3vw,31px);line-height:1.1;letter-spacing:-.7px}.metric-card small{font-size:10px;color:#8993a8}.metric-indigo{border-top:4px solid #6656d8}.metric-indigo strong{color:#5146b8}.metric-cyan{border-top:4px solid #17a5bd}.metric-cyan strong{color:#07869d}.metric-green{border-top:4px solid #25a879}.metric-green strong{color:#16865e}.metric-orange{border-top:4px solid #f0a23b}.metric-orange strong{color:#d47b20}.dashboard-note{display:flex;align-items:center;gap:9px;margin:0 0 15px;padding:9px 12px;border:1px solid #e5e9f3;border-radius:10px;background:#fff;color:#738099;font-size:11px}.dashboard-note span{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#1bb887;box-shadow:0 0 0 4px #1bb88720}.dashboard-note i{font-style:normal}
/* Colourful report history only; no selectors here target #newTab. */
#historyTab .report{border-color:#e3e6f2;border-left:5px solid #6555cf;border-radius:13px;background:linear-gradient(110deg,#fff,#f8f8ff);box-shadow:0 5px 15px #25335b0c;padding:14px}#historyTab .report:nth-of-type(4n+2){border-left-color:#16a0b4;background:linear-gradient(110deg,#fff,#f1fbfd)}#historyTab .report:nth-of-type(4n+3){border-left-color:#20a477;background:linear-gradient(110deg,#fff,#f2fbf6)}#historyTab .report:nth-of-type(4n+4){border-left-color:#e69a35;background:linear-gradient(110deg,#fff,#fff9ef)}#historyTab .report b{color:#26345b}#historyTab .report button{border-radius:8px}#historyTab .report button:not(.secondary){background:linear-gradient(135deg,#6254ce,#8870dc)}#historyTab .report button.secondary{background:#e9e8fb;color:#49409b}#historyTab .report-save-history{background:linear-gradient(120deg,#f6f5ff,#f1fbfa);border-color:#dedcf4}
#historyTab .selected-summary{border-color:#dedcf4;background:linear-gradient(135deg,#f8f7ff,#f1fbfc)}#historyTab .aggregate-table tfoot th{background:#5146b8;color:#fff}
footer{font-weight:700;letter-spacing:.8px}footer span{color:#8b72e6;margin:0 5px}
@media(max-width:760px){.dashboard-hero{padding:19px;border-radius:15px}.dashboard-hero h2{font-size:20px}.hero-mark{font-size:42px}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric-card{padding:12px}.metric-card strong{font-size:25px}}
@media(max-width:390px){.dashboard-hero p{font-size:12px}.hero-mark{font-size:34px}.metric-card strong{font-size:22px}}


/* V21 login controls + CKDL brand lockup. Reporting entry structure remains unchanged. */
.ckdl-brand{display:flex;flex-direction:column;align-items:center;gap:4px;margin:2px auto 18px;text-decoration:none;width:max-content;max-width:100%;color:#123b55}
.ckdl-brand-mark{font-size:35px;line-height:1;font-weight:900;letter-spacing:3px;color:#123b55;border:3px solid #123b55;border-radius:8px;padding:7px 13px;box-shadow:0 4px 0 rgba(18,59,85,.16)}
.ckdl-brand-caption{font-size:9px;letter-spacing:1px;font-weight:800;text-align:center;color:#506477}
.ckdl-brand:focus-visible{outline:3px solid #e3a42b;outline-offset:5px;border-radius:5px}
#loginPanel #login{background:linear-gradient(135deg,#064b35,#087b52)!important;color:#fff!important;box-shadow:0 6px 0 #033b2a,0 10px 18px rgba(3,59,42,.20)!important}
#loginPanel #forgotPassword{background:linear-gradient(135deg,#c62828,#e53935)!important;color:#fff!important;box-shadow:0 6px 0 #9f1d1d,0 10px 18px rgba(159,29,29,.18)!important}
/* Raised / floating feel for tappable controls, without changing their actions. */
button{transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;box-shadow:0 3px 0 rgba(20,35,45,.13),0 5px 12px rgba(20,35,45,.08)}
button:hover{transform:translateY(-2px);filter:brightness(1.04);box-shadow:0 5px 0 rgba(20,35,45,.12),0 9px 17px rgba(20,35,45,.13)}
button:active{transform:translateY(1px);box-shadow:0 1px 0 rgba(20,35,45,.12),0 2px 5px rgba(20,35,45,.08)}
#loginPanel #login:hover,#loginPanel #forgotPassword:hover{filter:brightness(1.08)!important}
@media(prefers-reduced-motion:reduce){button{transition:none}}

/* V22 — apparel-floor visual system: technical navy, active cobalt, safety orange and fabric teal. */
:root{--ink:#102b43;--navy:#073b67;--blue:#0876c9;--teal:#078b83;--orange:#f28a24;--lime:#b5d334;--mist:#edf4f8;--line:#d7e3eb}
body{background:linear-gradient(180deg,#eaf2f7 0,#f5f8fa 260px,#f4f7f9 100%);color:var(--ink);font-family:Inter,Arial,sans-serif}
header{background:linear-gradient(110deg,#062e50 0%,#07558b 58%,#078b83 100%);padding:14px max(16px,calc((100vw - 1200px)/2));min-height:78px;box-shadow:0 5px 18px #062e5028}
.header-brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;min-width:0}.header-brand-mark{display:grid;place-items:center;width:54px;height:42px;border:2px solid #fff;border-radius:7px;font-size:21px;font-weight:950;letter-spacing:1px;box-shadow:3px 3px 0 var(--lime)}.header-brand-copy{display:flex;flex-direction:column;gap:4px}.header-brand-copy b{font-size:15px;letter-spacing:1.1px}.header-brand-copy small{font-size:9px;letter-spacing:1.35px;color:#c9e8f5;font-weight:800}
main{max-width:1200px;margin:22px auto;padding:0 14px}.panel{border:1px solid #dce7ee;border-radius:16px;box-shadow:0 8px 24px #0b36500d}.narrow{border-radius:22px;padding:25px 22px;box-shadow:0 16px 42px #073b671c;position:relative;overflow:hidden}.narrow:before{content:"";position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,var(--blue),var(--teal),var(--lime),var(--orange))}.ckdl-brand{margin:6px auto 22px}.ckdl-brand-mark{color:var(--navy);border-color:var(--navy);border-radius:9px;box-shadow:4px 4px 0 var(--lime)}.ckdl-brand-caption{color:#597184}.section-kicker{display:block;text-align:center;color:#078b83;font-size:10px;letter-spacing:1.7px;font-weight:900;margin-bottom:5px}
button{border-radius:10px;background:linear-gradient(135deg,#086fc0,#07518e);padding:11px 16px;box-shadow:0 4px 0 #064575,0 8px 16px #06457520;color:#fff}button.secondary{background:#e7f0f5;color:#17415d;box-shadow:0 3px 0 #cadce7,0 7px 14px #17415d10}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f6a33b;outline-offset:2px}
#loginPanel #login{background:linear-gradient(135deg,#087d62,#04543f)!important;box-shadow:0 4px 0 #034331,0 8px 16px #03433128!important}#loginPanel #forgotPassword{background:linear-gradient(135deg,#ef5146,#c92531)!important;box-shadow:0 4px 0 #a91f2a,0 8px 16px #a91f2a24!important}
.welcome{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:#fff;border-top:3px solid var(--lime)}.user-identity{display:flex;flex-direction:column;gap:4px;min-width:0}.user-identity b{font-size:13px;overflow-wrap:anywhere}.role{color:#078b83;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.7px}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs button{background:#e9f1f6;color:#31536b;box-shadow:0 3px 0 #d3e0e8,0 6px 12px #0b36500c;border:1px solid #d6e4ed;padding:10px 15px}.tabs button.active{background:linear-gradient(135deg,#0876c9,#064d86);color:#fff;border-color:#07518e;box-shadow:0 4px 0 #063c68,0 8px 16px #07518e26}
.dashboard-hero{background:linear-gradient(115deg,#06375e 0%,#086db0 54%,#078b83 100%);border-radius:18px;box-shadow:0 12px 28px #073b6728;padding:26px 28px}.dashboard-hero:after{border-color:#ffffff3d}.eyebrow{color:#d7ed9a}.dashboard-hero h2{font-size:25px;letter-spacing:-.5px}.hero-mark{color:#d8ee76}.metric-card{border-radius:14px;box-shadow:0 7px 18px #0a36500c}.metric-indigo{border-top-color:#0876c9}.metric-indigo strong{color:#0876c9}.metric-cyan{border-top-color:#08a7a2}.metric-cyan strong{color:#078b83}.metric-green{border-top-color:#9cbd28}.metric-green strong{color:#688a10}.metric-orange{border-top-color:#f28a24}.metric-orange strong{color:#d76c12}
#newTab,#historyTab{border-top:4px solid var(--blue)}#newTab h2,#historyTab h2{color:#073b67}#newTab h3{color:#08776f}#newTab input,#newTab select,#historyTab input{border-radius:9px;border-color:#c8d9e3;background:#fbfdfe}#newTab input:focus,#newTab select:focus,#historyTab input:focus{border-color:#0876c9;box-shadow:0 0 0 3px #0876c91a;outline:0}#productionTable th{background:#e5f0f6;color:#143f5d}#productionTable tfoot th{background:#0b638f;color:#fff}
#newTab .actions button,#historyTab .actions button{min-height:44px}#addRow{background:linear-gradient(135deg,#078b83,#056d67);color:#fff;box-shadow:0 4px 0 #045650,0 8px 14px #04565020}#saveReport{background:linear-gradient(135deg,#f49a2f,#e66b1d);color:#fff;box-shadow:0 4px 0 #b84e14,0 8px 16px #b84e1424}#filterReports{background:linear-gradient(135deg,#0876c9,#064d86)}#viewSelectedDaysSummary{background:linear-gradient(135deg,#078b83,#056d67);color:#fff}
#historyTab .report{border-left-color:#0876c9;background:linear-gradient(110deg,#fff,#f2f8fc);border-radius:14px}#historyTab .report:nth-of-type(4n+2){border-left-color:#078b83;background:linear-gradient(110deg,#fff,#effaf8)}#historyTab .report:nth-of-type(4n+3){border-left-color:#a1bf2a;background:linear-gradient(110deg,#fff,#f8fbe9)}#historyTab .report:nth-of-type(4n+4){border-left-color:#f28a24;background:linear-gradient(110deg,#fff,#fff7ed)}#historyTab .aggregate-table tfoot th{background:#07558b;color:#fff}
footer{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:20px 12px;color:#668093;font-size:10px}.footer-brand{display:inline-flex;align-items:center;gap:6px;color:#07558b;text-decoration:none}.footer-brand b{font-size:15px;letter-spacing:1px;border:1px solid #07558b;border-radius:4px;padding:3px 5px}.footer-brand span{font-size:8px;letter-spacing:.5px}
@media(max-width:680px){header{padding:12px}.header-brand-mark{width:47px;height:38px;font-size:18px}.header-brand-copy b{font-size:12px}.header-brand-copy small{font-size:8px;letter-spacing:.8px}.welcome{align-items:stretch;flex-direction:column}.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tabs button{padding:10px 5px;font-size:12px;min-height:44px}.dashboard-hero{padding:20px}.dashboard-hero h2{font-size:21px}}

/* V22 — apparel-floor visual system: technical navy, active cobalt, safety orange and fabric teal. */
:root{--ink:#102b43;--navy:#073b67;--blue:#0876c9;--teal:#078b83;--orange:#f28a24;--lime:#b5d334;--mist:#edf4f8;--line:#d7e3eb}
body{background:linear-gradient(180deg,#eaf2f7 0,#f5f8fa 260px,#f4f7f9 100%);color:var(--ink);font-family:Inter,Arial,sans-serif}
header{background:linear-gradient(110deg,#062e50 0%,#07558b 58%,#078b83 100%);padding:14px max(16px,calc((100vw - 1200px)/2));min-height:78px;box-shadow:0 5px 18px #062e5028}
.header-brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;min-width:0}.header-brand-mark{display:grid;place-items:center;width:54px;height:42px;border:2px solid #fff;border-radius:7px;font-size:21px;font-weight:950;letter-spacing:1px;box-shadow:3px 3px 0 var(--lime)}.header-brand-copy{display:flex;flex-direction:column;gap:4px}.header-brand-copy b{font-size:15px;letter-spacing:1.1px}.header-brand-copy small{font-size:9px;letter-spacing:1.35px;color:#c9e8f5;font-weight:800}
main{max-width:1200px;margin:22px auto;padding:0 14px}.panel{border:1px solid #dce7ee;border-radius:16px;box-shadow:0 8px 24px #0b36500d}.narrow{border-radius:22px;padding:25px 22px;box-shadow:0 16px 42px #073b671c;position:relative;overflow:hidden}.narrow:before{content:"";position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,var(--blue),var(--teal),var(--lime),var(--orange))}.ckdl-brand{margin:6px auto 22px}.ckdl-brand-mark{color:var(--navy);border-color:var(--navy);border-radius:9px;box-shadow:4px 4px 0 var(--lime)}.ckdl-brand-caption{color:#597184}.section-kicker{display:block;text-align:center;color:#078b83;font-size:10px;letter-spacing:1.7px;font-weight:900;margin-bottom:5px}
button{border-radius:10px;background:linear-gradient(135deg,#086fc0,#07518e);padding:11px 16px;box-shadow:0 4px 0 #064575,0 8px 16px #06457520;color:#fff}button.secondary{background:#e7f0f5;color:#17415d;box-shadow:0 3px 0 #cadce7,0 7px 14px #17415d10}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f6a33b;outline-offset:2px}
#loginPanel #login{background:linear-gradient(135deg,#087d62,#04543f)!important;box-shadow:0 4px 0 #034331,0 8px 16px #03433128!important}#loginPanel #forgotPassword{background:linear-gradient(135deg,#ef5146,#c92531)!important;box-shadow:0 4px 0 #a91f2a,0 8px 16px #a91f2a24!important}
.welcome{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:#fff;border-top:3px solid var(--lime)}.user-identity{display:flex;flex-direction:column;gap:4px;min-width:0}.user-identity b{font-size:13px;overflow-wrap:anywhere}.role{color:#078b83;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.7px}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs button{background:#e9f1f6;color:#31536b;box-shadow:0 3px 0 #d3e0e8,0 6px 12px #0b36500c;border:1px solid #d6e4ed;padding:10px 15px}.tabs button.active{background:linear-gradient(135deg,#0876c9,#064d86);color:#fff;border-color:#07518e;box-shadow:0 4px 0 #063c68,0 8px 16px #07518e26}
.dashboard-hero{background:linear-gradient(115deg,#06375e 0%,#086db0 54%,#078b83 100%);border-radius:18px;box-shadow:0 12px 28px #073b6728;padding:26px 28px}.dashboard-hero:after{border-color:#ffffff3d}.eyebrow{color:#d7ed9a}.dashboard-hero h2{font-size:25px;letter-spacing:-.5px}.hero-mark{color:#d8ee76}.metric-card{border-radius:14px;box-shadow:0 7px 18px #0a36500c}.metric-indigo{border-top-color:#0876c9}.metric-indigo strong{color:#0876c9}.metric-cyan{border-top-color:#08a7a2}.metric-cyan strong{color:#078b83}.metric-green{border-top-color:#9cbd28}.metric-green strong{color:#688a10}.metric-orange{border-top-color:#f28a24}.metric-orange strong{color:#d76c12}
#newTab,#historyTab{border-top:4px solid var(--blue)}#newTab h2,#historyTab h2{color:#073b67}#newTab h3{color:#08776f}#newTab input,#newTab select,#historyTab input{border-radius:9px;border-color:#c8d9e3;background:#fbfdfe}#newTab input:focus,#newTab select:focus,#historyTab input:focus{border-color:#0876c9;box-shadow:0 0 0 3px #0876c91a;outline:0}#productionTable th{background:#e5f0f6;color:#143f5d}#productionTable tfoot th{background:#0b638f;color:#fff}
#newTab .actions button,#historyTab .actions button{min-height:44px}#addRow{background:linear-gradient(135deg,#078b83,#056d67);color:#fff;box-shadow:0 4px 0 #045650,0 8px 14px #04565020}#saveReport{background:linear-gradient(135deg,#f49a2f,#e66b1d);color:#fff;box-shadow:0 4px 0 #b84e14,0 8px 16px #b84e1424}#filterReports{background:linear-gradient(135deg,#0876c9,#064d86)}#viewSelectedDaysSummary{background:linear-gradient(135deg,#078b83,#056d67);color:#fff}
#historyTab .report{border-left-color:#0876c9;background:linear-gradient(110deg,#fff,#f2f8fc);border-radius:14px}#historyTab .report:nth-of-type(4n+2){border-left-color:#078b83;background:linear-gradient(110deg,#fff,#effaf8)}#historyTab .report:nth-of-type(4n+3){border-left-color:#a1bf2a;background:linear-gradient(110deg,#fff,#f8fbe9)}#historyTab .report:nth-of-type(4n+4){border-left-color:#f28a24;background:linear-gradient(110deg,#fff,#fff7ed)}#historyTab .aggregate-table tfoot th{background:#07558b;color:#fff}
footer{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:20px 12px;color:#668093;font-size:10px}.footer-brand{display:inline-flex;align-items:center;gap:6px;color:#07558b;text-decoration:none}.footer-brand b{font-size:15px;letter-spacing:1px;border:1px solid #07558b;border-radius:4px;padding:3px 5px}.footer-brand span{font-size:8px;letter-spacing:.5px}
@media(max-width:680px){header{padding:12px}.header-brand-mark{width:47px;height:38px;font-size:18px}.header-brand-copy b{font-size:12px}.header-brand-copy small{font-size:8px;letter-spacing:.8px}.welcome{align-items:stretch;flex-direction:column}.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tabs button{padding:10px 5px;font-size:12px;min-height:44px}.dashboard-hero{padding:20px}.dashboard-hero h2{font-size:21px}}

/* V23 dashboard summary and apparel reporting filters */
.dashboard-summary{margin-top:16px;padding:18px;background:linear-gradient(145deg,#fff 0%,#f2f8fb 100%);border-top:4px solid #078b83}
.summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.summary-heading h2{margin:4px 0;color:#073b67}.summary-heading p{margin:0;color:#698095;font-size:12px}.summary-heading .section-kicker{text-align:left;color:#078b83}
.summary-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:13px;border:1px solid #dce8ef;border-radius:12px;background:#f7fafc}.summary-controls label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:750;color:#31536b}.summary-controls input,.summary-controls select{width:100%;min-width:0;min-height:42px;border:1px solid #c8d9e3;border-radius:8px;padding:9px;background:#fff;color:#173b55}.summary-period{font-size:12px;color:#627b8d;margin:12px 0}.summary-result-section{margin-top:18px}.summary-result-section h3{margin:0 0 9px;color:#07558b;font-size:15px}.summary-result-section:nth-child(2) h3{color:#078b83}.summary-result-section:nth-child(3) h3{color:#9a7113}.summary-result-section .aggregate-table tfoot th{background:#07558b;color:#fff}.summary-result-section:nth-child(2) .aggregate-table tbody tr:nth-child(even){background:#eef9f6}.summary-result-section:nth-child(3) .aggregate-table tbody tr:nth-child(even){background:#f8fbe9}
@media(max-width:680px){.summary-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.summary-heading{align-items:flex-start;flex-direction:column}.summary-heading button{width:100%}}
@media(max-width:390px){.summary-controls{grid-template-columns:1fr}}


/* V25: dashboard data is intentionally gated behind the View Summary action. */
.date-range-label{grid-column:span 1}.date-range-fields{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:7px}.date-range-fields span{text-align:center;color:#708398;font-size:12px;font-weight:800}.date-range-fields input{min-width:0}.summary-hint{margin:12px 0;padding:11px 13px;border:1px dashed #d8b34a;border-radius:9px;background:#fff9df;color:#75590b;font-size:13px;font-weight:700}.aggregate-table tbody tr.style-grand-total td{background:#ffeb83!important;color:#473600!important;font-weight:900;border-top:2px solid #d6a900}.aggregate-table tfoot tr.overall-grand-total th{background:#ffd43b!important;color:#3d3000!important;font-weight:900;border-top:3px solid #b8860b}.summary-heading button{background:linear-gradient(135deg,#087b68,#11a88e);min-width:150px;box-shadow:0 5px 13px #087b6826}.summary-controls .date-range-fields input{padding:9px 6px}
@media(max-width:680px){.date-range-label{grid-column:1/-1}.date-range-fields{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}}
