*{box-sizing:border-box}:root{--navy:#0b2b50;--deep:#092443;--panel:#fff;--line:#cbd5e1;--white:#fff}
body{margin:0;background:#f4f7fb;color:#14263d;font:14px Arial,sans-serif}.header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 24px;background:var(--navy);color:#fff;border-bottom:3px solid #dbeafe}.header h1,h2,h3{margin:0 0 8px;font-size:18px}.header p{margin:0;color:#e2e8f0}#userbar{display:flex;gap:12px;align-items:center;color:#fff}.nav{display:flex;flex-wrap:wrap;gap:8px;padding:12px 2.5%;background:#e8eef6;border-bottom:1px solid var(--line)}main{width:95%;max-width:1600px;margin:auto;padding:20px 0}.panel,.stat,.equip{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px;margin:0 0 16px;box-shadow:0 1px 3px #0b2b5010}.actions{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.selected{background:#dbeafe!important;color:var(--navy)!important}button{background:#fff;color:var(--navy);border:1px solid #7891ad;border-radius:5px;padding:9px 14px;font-weight:700;cursor:pointer}button:hover{background:#edf4fc}button:disabled{opacity:.5}input,select,textarea{width:100%;padding:9px;border:1px solid #94a3b8;border-radius:5px;background:#fff;color:#14263d;font:inherit}label{display:flex;flex-direction:column;gap:6px;margin:9px 0;font-weight:700}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.stat strong{display:block;font-size:26px;margin-top:8px;color:var(--navy)}.equip{text-align:center;display:flex;flex-direction:column;align-items:center;gap:9px}.equip .symbol{width:42px;height:42px;border:1px solid var(--line);border-radius:6px;display:grid;place-items:center;font-size:20px;color:var(--navy)}table{width:100%;border-collapse:collapse;background:#fff;min-width:650px}th{background:var(--navy);color:#fff;text-align:left}td,th{border:1px solid var(--line);padding:9px;vertical-align:middle}.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:6px;margin:12px 0}.formgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px}.alert{padding:11px;border:1px solid var(--line);border-radius:6px;margin:12px 0}.error{background:#fee2e2;color:#991b1b}.success{background:#dcfce7;color:#166534}.muted{color:#64748b}.hidden{display:none!important}.question{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;padding:10px;border-bottom:1px solid var(--line)}.qr{background:white;padding:8px;border:1px solid var(--line)}.badge{padding:4px 8px;border:1px solid var(--line);border-radius:4px}.modal{position:fixed;inset:0;background:#0009;display:grid;place-items:center;padding:16px;z-index:9}.modalbox{width:min(700px,100%);max-height:90vh;overflow:auto;background:#fff;color:#14263d;border:1px solid var(--line);border-radius:8px;padding:18px}.modal video{width:100%;max-height:60vh;background:#000}footer{text-align:center;padding:18px;background:var(--deep);color:#fff;border-top:1px solid white;margin-top:25px}@media(max-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two{grid-template-columns:1fr}}@media(max-width:620px){.header{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.formgrid{grid-template-columns:1fr}.question{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}main{width:96%}}
/* More colourful, responsive maintenance interface */
.header{background:linear-gradient(115deg,#08294d,#14558b 72%,#1c6b9c)}
.nav{background:linear-gradient(90deg,#e5eef8,#f5f8fc)}
.nav button{border-color:#9bb4d0;box-shadow:0 2px 5px #173c5d12}
.panel{transition:box-shadow .18s ease,transform .18s ease}
.panel:hover{box-shadow:0 5px 18px #123b6415}
.stat{background:linear-gradient(145deg,#fff,#edf5ff);border-top:3px solid #2b78b8}
.equip{background:linear-gradient(145deg,#fff,#f2f7ff);border-color:#b8cbe0;transition:transform .15s ease,box-shadow .15s ease}
.equip:hover{transform:translateY(-2px);box-shadow:0 6px 16px #123b6420}
button{transition:background .15s ease,border-color .15s ease,transform .15s ease}
button:hover{border-color:#2878b8;transform:translateY(-1px)}
button.danger{background:#fff1f2;color:#b42332;border-color:#f3a2aa}
button.danger:hover{background:#ffe1e5}
button.secondary{background:#eef3f8;color:#29435e}
.upload-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 14px;border:1px dashed #5684b2;border-radius:6px;color:#124b7b;background:#edf6ff;cursor:pointer;font-weight:700}
.upload-button input{max-width:220px;font-weight:400}
.editor-question{grid-template-columns:2fr 1.25fr 1.5fr auto;align-items:end;background:#f7faff;border:1px solid #d7e4f2;border-radius:8px;margin:10px 0;padding:12px}
.storage-track{height:16px;background:#e4eaf1;border-radius:20px;overflow:hidden;margin:14px 0 8px}
.storage-fill{height:100%;background:linear-gradient(90deg,#16a36a,#62c98a);border-radius:20px;transition:width .35s ease}
.storage-fill.storage-danger{background:linear-gradient(90deg,#e6a027,#d92d20)}
@media(max-width:900px){.editor-question{grid-template-columns:1fr 1fr}.upload-button{width:100%;flex-wrap:wrap}}
@media(max-width:620px){.editor-question{grid-template-columns:1fr}.upload-button input{max-width:100%}}

.abnormal-value{color:#b42332;background:#fff1f2;padding:4px 7px;border-radius:5px;white-space:nowrap}.danger{color:#b42332}.question input,.question select{min-width:0}.storage-danger{background:linear-gradient(90deg,#e6a027,#d92d20)}

/* Abnormality alert and numeric trend presentation */
.category-alert{border:2px solid #dc2626!important;background:linear-gradient(145deg,#fff,#fff1f2)!important;color:#991b1b!important;box-shadow:0 0 0 2px #fecaca66!important}
.abnormal-category,.abnormal-category-pill{color:#b42332;background:#fff1f2;border:1px solid #fda4af;border-radius:6px;padding:5px 8px;font-weight:800}
.abnormal-category-pill{display:inline-block;margin:3px}
.abnormal-strip{border:2px solid #fca5a5;background:#fffafa}
.trend-chart{margin-top:18px;padding:12px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(180deg,#fff,#f4f8fd);overflow:auto}
.trend-chart svg{width:100%;min-width:520px;height:auto;display:block}
.trend-labels{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.trend-labels span{padding:5px 8px;border-radius:5px;background:#eaf2fb;color:#193b5c;font-size:12px}

/* PLTCM additions: compact equipment grouping, QR and mobile-first technician experience */
.equipment-group{border:1px solid #cbd9e8;border-radius:8px;margin:12px 0;background:#fbfdff;overflow:hidden}
.equipment-group summary{cursor:pointer;padding:13px 16px;background:#eaf2fb;color:#123b60;font-weight:800;list-style:disclosure-closed}
.equipment-group summary span{float:right;color:#52708d;font-weight:600}
.equipment-list{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.equipment-row{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #d6e2ef;border-radius:8px;background:#fff;flex-wrap:wrap}
.equipment-open{flex:1;text-align:left;display:flex;flex-direction:column;gap:4px;min-width:180px}
.equipment-open small{font-weight:400;color:#64748b}
.category-list-head{align-items:center;justify-content:space-between;background:#edf5ff;border-radius:8px;padding:10px 14px}
.qr-modal{text-align:center}.qr-large{display:flex;justify-content:center;margin:16px auto}
.breakdown-form textarea{min-height:80px}
@media(max-width:620px){body{font-size:15px}.header{padding:12px 14px}.header h1{font-size:17px}.nav{position:sticky;top:0;z-index:5;overflow-x:auto;flex-wrap:nowrap;padding:8px}.nav button{white-space:nowrap;min-height:42px}main{width:100%;padding:10px}.panel{padding:12px;border-radius:10px}.tablewrap{overflow-x:auto}table{min-width:680px}.formgrid{grid-template-columns:1fr}.equipment-row{align-items:stretch}.equipment-row button{min-height:42px}.equipment-open{flex-basis:100%}.stats{gap:8px}.stat{padding:12px}.stat strong{font-size:22px}}



/* Vivid category accents and multiple-signal trend cards */
.grid .equip:nth-child(8n+1){border-top:4px solid #2d8bd5}.grid .equip:nth-child(8n+2){border-top:4px solid #13a37a}.grid .equip:nth-child(8n+3){border-top:4px solid #e6a23c}.grid .equip:nth-child(8n+4){border-top:4px solid #7c5bd6}.grid .equip:nth-child(8n+5){border-top:4px solid #e15b87}.grid .equip:nth-child(8n+6){border-top:4px solid #00a7b7}.grid .equip:nth-child(8n+7){border-top:4px solid #6eaa3c}.grid .equip:nth-child(8n){border-top:4px solid #d85c36}
.trend-signal{border-left:5px solid #2d8bd5;background:linear-gradient(145deg,#fff,#f5f9ff)}.trend-signal:nth-child(6n+2){border-left-color:#e45d35}.trend-signal:nth-child(6n+3){border-left-color:#159b74}.trend-signal:nth-child(6n+4){border-left-color:#8a5bd6}.trend-signal:nth-child(6n+5){border-left-color:#d1a300}.trend-signal:nth-child(6n){border-left-color:#df3f83}.trend-signal-head{align-items:center;justify-content:space-between}.email-settings{border-top:4px solid #16a36a;background:linear-gradient(145deg,#fff,#f1fff8)}.qr-equipment-label{margin:10px 0 4px;color:#14558b}.primary{background:linear-gradient(110deg,#1269ad,#2d8bd5);border-color:#1269ad;color:#fff}.primary:hover{background:linear-gradient(110deg,#0c548e,#2378bb);color:#fff}

/* LASTFINAL colourful dashboard finish: distinct KPI colours with high contrast */
.stats .stat{color:#fff;border:0;border-radius:12px;min-height:108px;box-shadow:0 5px 16px #123b6420}
.stats .stat span{display:block;font-weight:800;font-size:13px;letter-spacing:.2px;color:#fff}
.stats .stat strong{color:#fff;font-size:30px}
.stats .stat:nth-child(4n+1){background:linear-gradient(135deg,#087f8c,#12a89a);border-top:4px solid #7ce8d7}
.stats .stat:nth-child(4n+2){background:linear-gradient(135deg,#2458b8,#3989e8);border-top:4px solid #a8d5ff}
.stats .stat:nth-child(4n+3){background:linear-gradient(135deg,#6741b7,#9563e8);border-top:4px solid #d9c4ff}
.stats .stat:nth-child(4n){background:linear-gradient(135deg,#c45b16,#ed9b26);border-top:4px solid #ffe0a3}
/* Category tiles are colour coded; labels stay dark and readable. */
.grid .equip{border-radius:12px;background:#fff;min-height:120px}
.grid .equip:nth-child(8n+1){background:linear-gradient(150deg,#fff,#e8f4ff);border-top:5px solid #2d8bd5}
.grid .equip:nth-child(8n+2){background:linear-gradient(150deg,#fff,#e7fbf2);border-top:5px solid #13a37a}
.grid .equip:nth-child(8n+3){background:linear-gradient(150deg,#fff,#fff4df);border-top:5px solid #e6a23c}
.grid .equip:nth-child(8n+4){background:linear-gradient(150deg,#fff,#f1eaff);border-top:5px solid #7c5bd6}
.grid .equip:nth-child(8n+5){background:linear-gradient(150deg,#fff,#fff0f5);border-top:5px solid #e15b87}
.grid .equip:nth-child(8n+6){background:linear-gradient(150deg,#fff,#e5fbff);border-top:5px solid #00a7b7}
.grid .equip:nth-child(8n+7){background:linear-gradient(150deg,#fff,#f1f9e7);border-top:5px solid #6eaa3c}
.grid .equip:nth-child(8n){background:linear-gradient(150deg,#fff,#fff0e8);border-top:5px solid #d85c36}
.stats .stat:hover{transform:translateY(-2px);box-shadow:0 8px 20px #123b6430}
@media(max-width:620px){.stats .stat strong{font-size:25px}.stats .stat{min-height:96px}}

/* Multi-signal trend comparison: one combined chart with a readable legend. */
.trend-combined{margin-top:18px;background:linear-gradient(145deg,#f8fbff,#eef6ff);border:1px solid #c9dced}
.trend-combined .trend-chart{overflow-x:auto}
.trend-combined svg{display:block;width:100%;min-width:640px;height:auto;max-height:460px}
.trend-legend{display:flex;flex-wrap:wrap;gap:10px 18px;padding:12px 4px}
.trend-legend-item{display:flex;align-items:flex-start;gap:8px;font-size:13px}
.trend-legend-swatch{display:inline-block;flex:0 0 18px;width:18px;height:4px;margin-top:7px;border-radius:3px}
.trend-legend-item small{color:#64748b}
.trend-signal .muted{margin:8px 0 0;font-size:12px;color:#64748b}

/* PLTCM Pulse professional layout refinements */
:root{--ui-radius:12px}
.panel{border-radius:var(--ui-radius)}
h1,h2,h3{font-weight:750;letter-spacing:-.015em}
button,.button{font-weight:650;letter-spacing:.005em}
label{font-weight:650}
input,select,textarea{font:inherit}
.trend-signal{margin:10px 0;padding:14px}
.trend-signal-head{align-items:center;justify-content:space-between}
.trend-combined{margin-top:16px}
.trend-chart{overflow-x:auto;min-height:120px}
.trend-chart svg{width:100%;min-width:620px;height:auto;display:block}
.trend-legend{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.trend-legend-item{display:flex;align-items:center;gap:7px;font-size:13px}
.trend-legend-swatch{display:inline-block;width:12px;height:12px;border-radius:3px;flex:0 0 12px}
button:disabled{opacity:.45;cursor:not-allowed}

/* Compact professional industrial interface — December 2026 */
:root{--ui-radius:7px}
body{font:12px Arial,sans-serif;line-height:1.4}
.header{min-height:54px;padding:9px 18px;border-bottom-width:2px}
.header h1{font-size:17px;margin:0 0 2px;line-height:1.2}
.header p{font-size:11px}
#userbar{font-size:11px}
.nav{gap:5px;padding:7px 2.5%;}
.nav button{font-size:11px;padding:6px 10px;min-height:30px;border-radius:5px;box-shadow:none}
main{padding:13px 0}
.panel,.stat,.equip{padding:12px;margin-bottom:11px;border-radius:7px;box-shadow:0 1px 2px #0b2b500d}
.panel:hover{box-shadow:0 2px 7px #123b6410;transform:none}
h1{font-size:18px}h2{font-size:15px;margin:0 0 7px}h3{font-size:13px;margin:0 0 6px}
p{margin:5px 0 9px}
button,.button{font-size:11px;font-weight:600;padding:6px 9px;border-radius:5px;letter-spacing:0;transition:background .12s ease,border-color .12s ease}
button:hover{transform:none}
input,select,textarea{font-size:12px;padding:7px 8px;border-radius:5px}
label{font-size:11px;gap:4px;margin:6px 0;font-weight:600}
.grid{gap:8px}.two{gap:10px}.stats{gap:8px;margin:10px 0}
.stat{min-height:76px;padding:10px;border-radius:7px}
.stats .stat{min-height:76px;border-radius:7px;box-shadow:0 2px 6px #123b6412}
.stats .stat span{font-size:10px;font-weight:600;letter-spacing:0}
.stats .stat strong,.stat strong{font-size:23px;margin-top:5px}
.equip{min-height:82px;padding:9px;gap:5px;border-radius:7px}
.equip .symbol{width:30px;height:30px;font-size:16px;border-radius:5px}
table{font-size:11px;min-width:580px}th{font-size:10px;font-weight:700}td,th{padding:7px 8px}
.tablewrap{margin:8px 0;border-radius:5px}
.formgrid{gap:6px 10px}
.badge{font-size:10px;padding:3px 6px}
.question{gap:7px;padding:8px;font-size:11px}
.actions{gap:6px;margin:8px 0}
.equipment-group{margin:8px 0;border-radius:6px}
.equipment-group>summary,.equipment-subgroup>summary{padding:8px 10px;font-size:12px;font-weight:700;list-style:disclosure-closed}
.equipment-group>summary{background:#eaf2fb}
.equipment-subgroup{margin:6px 8px;border:1px solid #dbe4ee;border-radius:5px;background:#f8fafc;overflow:hidden}
.equipment-subgroup>summary{background:#f1f5f9;color:#28445f;font-size:11px}
.equipment-group summary span{font-size:10px}
.equipment-list{gap:5px;margin:6px}
.equipment-row{padding:6px 8px;gap:6px;border-radius:5px}
.equipment-open{gap:2px;min-width:140px;padding:4px 7px}
.equipment-open b{font-size:11px}.equipment-open small{font-size:10px}
.equipment-select{margin:0;padding:0;display:flex;align-items:center}
.equipment-select input{width:14px;height:14px;margin:0;padding:0}
.category-list-head{padding:7px 9px}
.editor-question{padding:8px;margin:7px 0;border-radius:6px}
.email-settings{border-top-width:3px}
footer{padding:10px;font-size:10px;margin-top:16px}
@media(max-width:620px){body{font-size:12px}.header{padding:9px 12px}.header h1{font-size:16px}.nav{padding:6px;gap:4px}.nav button{font-size:10px;padding:6px 8px;min-height:29px}main{padding:8px}.panel{padding:10px}.stats .stat strong{font-size:21px}.equipment-row{align-items:center}.equipment-open{flex:1;flex-basis:auto}.equipment-row button{min-height:30px}.tablewrap{overflow-x:auto}}
/* Dashboard equipment category tiles are informational, not clickable. */
.equipment-category-stats .stat{min-height:82px;padding:12px;cursor:default;transition:none}
.equipment-category-stats .stat:hover{transform:none;box-shadow:0 5px 16px #123b6420}
.equipment-category-stats .stat span{font-size:14px}.equipment-category-stats .stat .category-symbol{font-size:16px;line-height:1;vertical-align:baseline}.equipment-category-stats .stat .category-name{font-size:14px}
.equipment-category-stats .stat strong{font-size:25px;margin-top:5px}
.equipment-readonly{display:flex;flex-direction:column;justify-content:center;gap:4px;flex:1;padding:8px 10px}
.equipment-readonly small{color:#64748b}

/* Full application colour refresh — consistent, readable colour across every module */
:root{--brand-blue:#1769aa;--brand-teal:#0f9b8e;--brand-violet:#7652bd;--brand-orange:#d97721;--brand-rose:#d94b78;--brand-green:#24845b}
body{background:linear-gradient(145deg,#edf4fb 0%,#f7f9fd 48%,#eef8f6 100%);color:#18324d}
.nav{background:linear-gradient(90deg,#dceaf8,#e9f4f5,#f3eafa);border-bottom:1px solid #c5d6e8}
.nav button{background:#fff;color:#214766;border:1px solid #b6cce0}
.nav button:nth-child(4n+1){border-bottom:3px solid #2879bd}.nav button:nth-child(4n+2){border-bottom:3px solid #159b8c}.nav button:nth-child(4n+3){border-bottom:3px solid #8059c5}.nav button:nth-child(4n){border-bottom:3px solid #df8a2c}
.nav button.selected{background:linear-gradient(120deg,#155e9c,#2585b9)!important;color:#fff!important;border-color:#155e9c!important}
.panel{background:linear-gradient(145deg,#fff,#f8fbff);border:1px solid #cfdeec;border-top:3px solid #4a91c6;box-shadow:0 3px 12px #153c5c0c}
.panel:nth-of-type(4n+2){border-top-color:#19a18f}.panel:nth-of-type(4n+3){border-top-color:#8b65c7}.panel:nth-of-type(4n){border-top-color:#e49a3c}
.panel h2{color:#174d78}.panel h3{color:#27658c}
button{background:linear-gradient(180deg,#fff,#f0f6fc);border-color:#9db8d1;color:#214d70}
button.primary{background:linear-gradient(115deg,#1769aa,#278fbd);border-color:#1769aa;color:#fff}
button.secondary{background:linear-gradient(115deg,#e8f1fb,#e6f6f3);border-color:#b6d0df;color:#245775}
button.danger{background:linear-gradient(115deg,#fff0f1,#ffe3e7);border-color:#e6a1aa;color:#a52a3b}
input,select,textarea{border-color:#aac1d6;background:#fff;box-shadow:inset 0 1px 2px #193b5c08}
input:focus,select:focus,textarea:focus{outline:2px solid #8cc6e8;outline-offset:1px;border-color:#287eb4}
th{background:linear-gradient(100deg,#174f7d,#236f9d);color:#fff}
tbody tr:nth-child(even){background:#f0f7fc}tbody tr:hover{background:#e6f4f5}
.alert{background:linear-gradient(120deg,#edf6ff,#f4f8ff);border-color:#b9d4e9}
.alert.error{background:linear-gradient(120deg,#fff0f0,#ffe4e8);border-color:#e9a4ad;color:#982b39}
.alert.success{background:linear-gradient(120deg,#e9fbf1,#dff6ed);border-color:#9bd7bb;color:#176b4a}
.badge{background:#e8f2fb;border-color:#b8cfe3;color:#245b83}
.equipment-group{border-color:#b7cfe2;background:linear-gradient(135deg,#fff,#f2f8ff)}
.equipment-group>summary{background:linear-gradient(100deg,#dcecfb,#e6f7f4);color:#164e75}
.equipment-subgroup{background:#fff;border-color:#c8dce9}
.equipment-subgroup>summary{background:linear-gradient(100deg,#f0eafe,#edf6ff);color:#4c4380}
.equipment-row{background:linear-gradient(110deg,#fff,#f7fbff);border-color:#d0e0ec}
.equipment-readonly b{color:#174f7d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.equipment-readonly small{white-space:nowrap}
.category-qr-actions{padding:5px 10px 0;display:flex;justify-content:flex-end}
.template-library{background:linear-gradient(145deg,#fff,#f5f0ff);border-top-color:#8059c5}
.template-library .tablewrap{border-color:#d6c9ed}
.template-library tbody tr:nth-child(odd){background:#faf7ff}
.template-library tbody tr:nth-child(even){background:#f0f7ff}
.template-create-inline{padding:8px 12px;margin:8px 0;background:linear-gradient(100deg,#eaf6ff,#effaf5);border:1px solid #c6dfeb;border-radius:8px}
.template-create-inline form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.template-create-inline label{flex:1;min-width:230px}
.template-create-inline button{margin-bottom:6px}
.template-library td:first-child{font-weight:700;color:#315a89;white-space:nowrap}
.question,.editor-question{background:linear-gradient(110deg,#f3f8ff,#f6f1ff);border-color:#d7d1eb}
.abnormal-strip{border-top-color:#d94b4b;background:linear-gradient(120deg,#fff8f1,#fff0f0)}
.abnormal-category-pill{background:#ffe1e1;color:#9e2c35;border:1px solid #efb2b2;border-radius:18px;padding:4px 10px;font-weight:700}
.trend-common-controls,.trend-signal{background:linear-gradient(130deg,#f2f8ff,#f4f0ff)}
.email-settings{background:linear-gradient(135deg,#edfbf4,#f4fffb);border-top-color:#1c9b69}
.storage-track{background:#dce9f2}.storage-fill{background:linear-gradient(90deg,#0c9b81,#43bf85)}
.qr-card{background:linear-gradient(145deg,#fff,#eff7ff);border-color:#a9c4db}
@media(max-width:700px){.template-create-inline form{display:block}.category-qr-actions{justify-content:stretch}.category-qr-actions button{width:100%}.equipment-readonly b,.equipment-readonly small{white-space:normal}}

/* Soft, colourful light theme applied consistently across every module */
:root{
 --soft-blue:#eaf4ff;--soft-teal:#e8f7f3;--soft-lilac:#f2edff;
 --soft-peach:#fff1e7;--soft-yellow:#fff8df;--soft-rose:#fff0f2;
 --ink:#28445f;--line:#d6e3ee;
}
body{background:linear-gradient(135deg,#f3f8ff 0%,#f8f6ff 48%,#f1faf7 100%);color:var(--ink)}
.header{background:linear-gradient(100deg,#e5f1ff,#e9f8f5 58%,#f3edff);color:#244d70;border-bottom:3px solid #a9c9e2}
.nav{background:linear-gradient(90deg,#e6f1fc,#eaf7f4,#f1edfb);border-color:#d2e0ec}
main{background:transparent}
.panel{background:linear-gradient(145deg,#fff 0%,#f8fbff 100%);border:1px solid #d5e2ee;border-top:3px solid #8bb8dc;box-shadow:0 3px 12px #244b6810}
.panel:nth-of-type(4n+2){border-top-color:#8bcdbd}.panel:nth-of-type(4n+3){border-top-color:#b6a2df}.panel:nth-of-type(4n){border-top-color:#e9bd8a}
.panel h2{color:#285b83}.panel h3{color:#47749a}
.stat{background:linear-gradient(145deg,#fff,#edf5ff);border:1px solid #d4e3ef;color:#2b526f}
.stats .stat:nth-child(4n+2){background:linear-gradient(145deg,#fff,#eaf8f4);border-color:#cce8de}
.stats .stat:nth-child(4n+3){background:linear-gradient(145deg,#fff,#f3efff);border-color:#ddd3f1}
.stats .stat:nth-child(4n){background:linear-gradient(145deg,#fff,#fff4e9);border-color:#f0ddc8}
.equip,.equipment-row{background:linear-gradient(110deg,#fff,#f4f9ff);border:1px solid #d5e3ee}
.equipment-group>summary{background:linear-gradient(100deg,#e6f2ff,#e9f8f4);border:1px solid #d1e3ee;color:#28577b}
.equipment-subgroup>summary{background:linear-gradient(100deg,#f1edff,#edf5ff);color:#554b83}
.template-library{background:linear-gradient(145deg,#fff,#f6f2ff);border-top-color:#b4a0df}
.template-library tbody tr:nth-child(odd){background:#fbf9ff}
.template-library tbody tr:nth-child(even){background:#eff7ff}
.tablewrap{border:1px solid #d7e3ed;background:#fff}
tbody tr:nth-child(even){background:#f0f7fd}tbody tr:hover{background:#e9f6f4}
th{background:linear-gradient(100deg,#3d7299,#538da9);color:#fff}
input,select,textarea{background:#fff;border:1px solid #c5d7e5;color:#28445f}
button{background:linear-gradient(180deg,#fff,#edf5fc);border:1px solid #b9cede;color:#315b7b}
button.primary{background:linear-gradient(110deg,#327fb0,#48a0b4);border-color:#327fb0;color:#fff}
button.danger{background:linear-gradient(110deg,#fff0f1,#ffe7e9);border-color:#e8b6bd;color:#9c3d4a}
.alert{background:linear-gradient(110deg,#edf6ff,#f1f5ff);border-color:#c8dced}
.alert.success{background:linear-gradient(110deg,#eaf8f0,#e4f6ee);border-color:#b8dfca}
.alert.error{background:linear-gradient(110deg,#fff1f1,#ffeaed);border-color:#edc0c5}
.question,.editor-question{background:linear-gradient(110deg,#f2f8ff,#f7f2ff);border-color:#dce0ef}
.camera-capture{background:linear-gradient(135deg,#eef7ff,#effaf6);border:1px solid #d0e4e5;border-radius:9px;padding:12px}
.email-settings{background:linear-gradient(135deg,#eaf8f0,#f3fbf8)}
.trend-common-controls,.trend-signal,.trend-combined{background:linear-gradient(130deg,#eff7ff,#f4f0ff);border-color:#d8e1ef}
.abnormal-strip{background:linear-gradient(120deg,#fff7ec,#fff0f1);border-top-color:#e3a1a5}
.storage-track{background:#e4edf4}.storage-fill{background:linear-gradient(90deg,#58b5a1,#85c995)}
footer{background:linear-gradient(90deg,#eaf2fb,#eef8f5);color:#55718a}

/* Sidebar workspace — balanced density, lightweight CSS-only layout */
:root{--sidebar-width:232px;--sidebar-ink:#294a66;--sidebar-muted:#7790a5;--sidebar-line:#dce7ef}
body{font-size:14px;background:#f4f8fc;color:#29445d}
.header{padding:13px 22px;background:linear-gradient(105deg,#e5f1ff,#eaf8f4 58%,#f2edff);color:#244d70;border-bottom:1px solid #cfdeeb;min-height:64px}
.header h1{font-size:19px;letter-spacing:.2px}.header p{color:#6d879e;font-size:12px}
#userbar{color:#315773}.user-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;background:#fff;border:1px solid #d5e3ed;border-radius:20px;color:#315773;font-size:12px;font-weight:700}.user-dot{width:8px;height:8px;border-radius:50%;background:#38a982;display:inline-block}
.workspace{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);min-height:calc(100vh - 118px);align-items:stretch}
.sidebar{background:linear-gradient(180deg,#fafdff,#f0f6fc);border-right:1px solid #d5e2ed;padding:15px 12px 14px;display:flex;flex-direction:column;gap:5px;min-height:calc(100vh - 118px)}
.sidebar-brand{display:flex;align-items:center;gap:10px;padding:7px 8px 17px;margin-bottom:5px;border-bottom:1px solid #dce7ef;color:#245679}.sidebar-brand-mark{width:34px;height:34px;border-radius:9px;background:linear-gradient(145deg,#cce6fb,#d9f2e9);display:grid;place-items:center;color:#23618c;font-size:19px;font-weight:800}.sidebar-brand strong{display:block;font-size:14px;letter-spacing:.4px}.sidebar-brand small{display:block;color:#7990a5;font-size:10px;margin-top:2px}
.sidebar-section-label{font-size:10px;font-weight:800;letter-spacing:1px;color:#91a4b5;padding:13px 10px 5px}.sidebar-link{width:100%;display:flex;align-items:center;gap:11px;text-align:left;border:1px solid transparent;border-radius:7px;background:transparent;color:#496780;padding:9px 10px;font-size:13px;font-weight:600;min-height:38px;box-shadow:none;transition:background .12s ease,color .12s ease,border-color .12s ease}.sidebar-link:hover{transform:none;background:#eaf3fb;border-color:#d6e6f2}.sidebar-link.selected{background:linear-gradient(100deg,#dceeff,#e4f5f1)!important;color:#1d5c83!important;border:1px solid #c6dfed!important;box-shadow:inset 3px 0 #4b9ac5!important}.sidebar-icon{width:20px;height:20px;display:grid;place-items:center;border-radius:6px;background:#eaf2fa;color:#4b7da1;font-size:14px;flex:0 0 20px}.sidebar-link.selected .sidebar-icon{background:#fff;color:#287aa8}.sidebar-admin-area{margin-top:auto}.sidebar-admin-action{background:#fff;border-color:#dce7ef}.sidebar-footnote{margin-top:auto;padding:14px 9px 3px;border-top:1px solid #dce7ef;color:#8a9eaf;font-size:10px;line-height:1.6}
.workspace-main{min-width:0}.page-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 24px;background:#fbfdff;border-bottom:1px solid #e0e9f0;color:#7890a5;font-size:11px}.page-context{font-weight:700;color:#66839b}.page-date{white-space:nowrap}main{width:auto;max-width:none;margin:0;padding:19px 22px 24px}.panel,.stat,.equip{padding:14px;margin-bottom:13px}.panel h2{font-size:17px}.panel h3{font-size:14px}.stats{gap:11px;margin:12px 0}.stat strong{font-size:24px}.tablewrap{margin:10px 0}td,th{padding:8px 9px}.actions{gap:7px;margin:10px 0}button{padding:8px 12px;font-size:12px}
footer{margin-top:0;padding:12px;background:#edf4fa;color:#71899e;border-top:1px solid #dce7ef}
@media(max-width:900px){:root{--sidebar-width:205px}.sidebar{padding:12px 9px}main{padding:15px}.page-topline{padding:10px 15px}}
@media(max-width:680px){.header{padding:10px 13px;align-items:center;flex-direction:row}.header h1{font-size:16px}.header p{font-size:10px}#userbar{font-size:10px}.workspace{display:flex;flex-direction:column}.sidebar{min-height:0;position:sticky;top:0;z-index:6;display:flex;flex-direction:row;align-items:center;gap:5px;overflow-x:auto;padding:7px;background:#f7fbff;border-right:0;border-bottom:1px solid #d5e2ed}.sidebar-brand,.sidebar-section-label,.sidebar-footnote{display:none}.sidebar-link{width:auto;flex:0 0 auto;white-space:nowrap;min-height:34px;padding:7px 9px;font-size:11px}.sidebar-icon{width:17px;height:17px;flex-basis:17px;font-size:12px}.sidebar-admin-area{margin-top:0}.workspace-main{width:100%}.page-topline{padding:8px 12px}main{width:100%;padding:11px}.panel{padding:11px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.tablewrap{overflow-x:auto}table{min-width:650px}}

/* Final agreed Output 3 design: higher contrast pastel UI, compact lists, +2px typography */
body{font-size:16px;line-height:1.45;color:#263f56;background:#f3f7fc}
.header h1{font-size:21px}.header p{font-size:13px}#userbar{font-size:13px}
.sidebar-brand strong{font-size:16px}.sidebar-brand small{font-size:12px}
.sidebar-section-label{font-size:12px}.sidebar-link{font-size:15px;min-height:40px;padding:9px 11px}.sidebar-icon{font-size:16px}
.page-topline{font-size:13px}main{padding:19px 22px 24px}
h1{font-size:20px}h2,.panel h2{font-size:19px}h3,.panel h3{font-size:16px}
p,.muted{font-size:14px}label{font-size:13px}
button,.button{font-size:14px;padding:8px 11px}
input,select,textarea{font-size:14px;padding:8px 10px}
table{font-size:13px}th{font-size:12px}td,th{padding:8px 9px}
.badge{font-size:12px}.question,.editor-question{font-size:13px}
/* Pastel cards retain dark text for clear contrast. */
.stats .stat{color:#263f56;box-shadow:0 2px 7px #254b6810}
.stats .stat span,.stats .stat strong,.stat span,.stat strong{color:#263f56!important}
.stats .stat span{font-size:13px;font-weight:750}
.stats .stat strong,.stat strong{font-size:26px}
.equipment-category-stats .stat:nth-child(8n+1){background:#e5f2ff;border-color:#b9d8f0}
.equipment-category-stats .stat:nth-child(8n+2){background:#e5f7ef;border-color:#b9e4d0}
.equipment-category-stats .stat:nth-child(8n+3){background:#f0eaff;border-color:#d7c8f2}
.equipment-category-stats .stat:nth-child(8n+4){background:#fff0e2;border-color:#f0d1b2}
.equipment-category-stats .stat:nth-child(8n+5){background:#fff0f1;border-color:#edc8ce}
.equipment-category-stats .stat:nth-child(8n+6){background:#e5f7f8;border-color:#bce2e4}
.equipment-category-stats .stat:nth-child(8n+7){background:#f4f3df;border-color:#e1dfb5}
.equipment-category-stats .stat:nth-child(8n){background:#edf1ff;border-color:#cbd5f4}
/* Remove unnecessary gaps between equipment rows while retaining clear separators. */
.equipment-group{margin:6px 0}
.equipment-subgroups{gap:0}
.equipment-subgroup{margin:0 8px 4px;border-radius:5px}
.equipment-list{display:flex;flex-direction:column;gap:0;margin:0;padding:0 7px 6px}
.equipment-row{margin:0;padding:7px 9px;gap:8px;border-radius:0;border-width:0 0 1px;border-color:#d7e3ed;min-height:42px}
.equipment-row:last-child{border-bottom:0}
.equipment-readonly{padding:3px 6px;gap:2px}.equipment-readonly b{font-size:13px}.equipment-readonly small{font-size:12px}
.equipment-group>summary,.equipment-subgroup>summary{font-size:14px;padding:8px 11px}
.equipment-subgroup>summary{font-size:13px}
/* Template accordion: each template expands independently, with no separate global expand controls. */
.template-list{display:flex;flex-direction:column;gap:0;border:1px solid #d3e1ec;border-radius:7px;overflow:hidden;background:#fff}
.template-accordion{margin:0;border:0;border-bottom:1px solid #d5e2ed;border-radius:0;background:#fff}
.template-accordion:last-child{border-bottom:0}
.template-accordion:nth-child(odd){background:#f7faff}
.template-accordion:nth-child(even){background:#f0f8ff}
.template-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;cursor:pointer;list-style:disclosure-closed;color:#285b83;font-size:14px;font-weight:750}
.template-accordion>summary:hover{background:#e7f3fb}
.template-accordion[open]>summary{background:#e5f2fb;border-bottom:1px solid #d3e3ef}
.template-accordion-name{min-width:180px}.template-accordion-meta{font-size:12px;font-weight:600;color:#5b758b;text-align:right}
.template-accordion-body{padding:10px 13px;background:#fff}
.template-details-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.template-details-grid span{display:flex;flex-direction:column;gap:3px;padding:8px 10px;border-radius:5px;background:#f0f6fc;color:#31546f;font-size:13px}
.template-details-grid b{font-size:11px;color:#71899d;text-transform:uppercase;letter-spacing:.35px}
.template-accordion-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
.template-library .actions{align-items:center}.template-library .muted{margin:3px 0}
@media(max-width:900px){.template-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.sidebar-link{font-size:13px}.template-accordion>summary{align-items:flex-start;flex-direction:column;gap:3px}.template-accordion-meta{text-align:left}.template-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.equipment-row{flex-wrap:wrap}.equipment-readonly{flex:1 1 100%}}

/* Output 3 reference palette: navy navigation, crisp blue headers, soft pastel data surfaces */
:root{--sidebar-width:232px;--sidebar-ink:#173b63;--sidebar-muted:#a9c0d8;--sidebar-line:#244b75}
body{background:#eef4fb;color:#183653;font-size:16px}
.header{background:linear-gradient(110deg,#062b55 0%,#0b4b83 58%,#12649a 100%);border-bottom:3px solid #8fc6ed}
.workspace{background:#eef4fb}
.sidebar{background:linear-gradient(180deg,#092f5d 0%,#073765 58%,#08294f 100%);border-right:1px solid #174d7b;color:#fff}
.sidebar-brand{color:#fff;border-bottom-color:#28547c}
.sidebar-brand small,.sidebar-section-label,.sidebar-footnote{color:#b7cbe0}
.sidebar-brand-mark{background:#d9edfc;color:#15558a}
.sidebar-link{color:#e5f0fb;background:transparent;border-color:transparent;font-size:15px}
.sidebar-link:hover{background:#174d7a;border-color:#3976a4;color:#fff}
.sidebar-link.selected{background:linear-gradient(100deg,#1477bd,#1c91ca)!important;color:#fff!important;border-color:#70bce8!important;box-shadow:inset 3px 0 #d7f0ff!important}
.sidebar-icon,.sidebar-link.selected .sidebar-icon{background:#164b76;color:#eaf6ff}
.sidebar-admin-action{background:#f8fbff;color:#173b63;border-color:#b9d0e3}
.page-topline{background:#f8fbff;border-bottom:1px solid #d2e1ef;color:#52718c}
main{color:#183653}
.panel,.stat,.equip{background:#fff;border-color:#c7d9e9;box-shadow:0 2px 7px #0c315014}
.panel h2,.panel h3{color:#164b78}
th{background:linear-gradient(90deg,#0b4779,#176b9c);color:#fff}
td{color:#244661}
tbody tr:nth-child(odd){background:#f8f6ff}
tbody tr:nth-child(even){background:#edf6ff}
button.primary,.primary{background:linear-gradient(100deg,#1268a8,#2089bd);color:#fff;border-color:#1268a8}
button.danger,.danger{background:#fff0f1;color:#a62e43;border-color:#e7aeb8}
button.success{background:#e5f7ed;color:#176b45;border-color:#9ed5b7}
.alert{background:#fff7e9;border-color:#e8c98f;color:#72501c}
.alert.success{background:#e5f7ed;color:#176b45;border-color:#a8d9bb}
.alert.error{background:#fff0f1;color:#a12d43;border-color:#e8b2bd}
.equipment-group>summary{background:linear-gradient(100deg,#dceeff,#dff5ef);color:#164e78}
.equipment-subgroup>summary{background:linear-gradient(100deg,#eee8ff,#e6f2ff);color:#4a4780}
.equipment-row{background:#fff;border-color:#d3e2ef}
.template-accordion:nth-child(odd){background:#f7faff}
.template-accordion:nth-child(even){background:#f1f7ff}
.template-accordion>summary{background:transparent;color:#174e7b;font-size:16px;min-height:48px}
.template-accordion[open]>summary{background:#deeffc;color:#104c78}
.template-accordion-meta{color:#55738d}
.template-toggle{flex:0 0 auto;min-width:82px;padding:6px 10px;background:#e3f1fb;color:#155783;border:1px solid #a9cce4;border-radius:5px;font-size:13px;font-weight:700}
.template-toggle:hover{background:#cfe7f8}
.template-accordion-body{background:#fff}
.stat:nth-child(4n+1){background:linear-gradient(145deg,#fff,#e5f5ed);border-top:3px solid #42a879}
.stat:nth-child(4n+2){background:linear-gradient(145deg,#fff,#e8f3ff);border-top:3px solid #3988c2}
.stat:nth-child(4n+3){background:linear-gradient(145deg,#fff,#f0eaff);border-top:3px solid #9275c7}
.stat:nth-child(4n){background:linear-gradient(145deg,#fff,#fff2e5);border-top:3px solid #d99a50}
@media(max-width:680px){.sidebar{background:#092f5d}.sidebar-link{font-size:13px}.template-accordion>summary{flex-wrap:wrap}.template-toggle{margin-left:auto}}


/* Output 3 inspired dashboard/storage and template interaction refinements */
.template-library .template-accordion{border:1px solid #c8d9ea;border-radius:0;margin:0;overflow:hidden;background:#f7fbff}
.template-library .template-accordion:nth-child(even){background:#eef6ff}
.template-library .template-accordion>summary{display:grid;grid-template-columns:minmax(250px,1fr) minmax(250px,1fr);align-items:center;gap:12px;cursor:pointer;list-style:none;padding:12px 14px;min-height:48px;color:#174c79;font-size:16px;font-weight:750}
.template-library .template-accordion>summary::-webkit-details-marker{display:none}
.template-library .template-accordion>summary::after{content:'＋';justify-self:end;color:#176da5;font-size:18px;font-weight:800}
.template-library .template-accordion[open]>summary::after{content:'−'}
.template-library .template-accordion-name{font-size:16px;color:#174c79}
.template-library .template-accordion-meta{font-size:13px;color:#456987;font-weight:650}
.template-accordion-body{padding:13px 15px;background:linear-gradient(110deg,#f1f8ff,#f3fbf7);border-top:1px solid #c9deee}
.storage-panel{background:linear-gradient(135deg,#f0f8ff 0%,#f4f0ff 52%,#effaf5 100%);border:1px solid #bfd7eb;border-top:4px solid #438fc1}
.storage-panel h2{color:#174c79}
.storage-metric{padding:13px;border-radius:9px;background:#e5f2ff;border:1px solid #bfd8ee;margin:10px 0}
.photo-storage-metric{background:#e8f7f0;border-color:#c0e5d4}
.storage-track{height:13px;border-radius:20px;background:#d7e4f0;overflow:hidden}
.storage-fill{height:100%;border-radius:20px;background:linear-gradient(90deg,#2585cf,#58b4e8)}
.photo-storage-fill{background:linear-gradient(90deg,#24a477,#8acb78)}
.storage-danger{background:linear-gradient(90deg,#e28b35,#d94848)}
.equipment-group>summary{background:#e6f2ff;color:#174c79;font-size:15px;padding:11px 13px}
.equipment-subgroup>summary{background:#f0eaff;color:#55418b;font-size:14px;padding:9px 12px}
.equipment-row{background:#f8fbff;border-bottom:1px solid #d8e5ef}
.equipment-row:nth-child(even){background:#edf6ff}
@media(max-width:700px){.template-library .template-accordion>summary{grid-template-columns:1fr auto;gap:4px}.template-library .template-accordion-meta{grid-column:1}.template-library .template-accordion>summary::after{grid-column:2;grid-row:1/3}}

/* Equipment category, template and category QR action share one compact row. */
.equipment-template-row{margin:7px 0;border:1px solid #b9d3e7;border-radius:8px;overflow:hidden;background:#fff}
.equipment-template-row>.equipment-one-line-summary{display:grid;grid-template-columns:minmax(190px,1.05fr) minmax(220px,1.35fr) auto;align-items:center;gap:14px;list-style:none;cursor:pointer;padding:9px 12px;background:linear-gradient(100deg,#e2f0ff 0%,#e8f7f1 52%,#f0eaff 100%);color:#174c79;font-size:14px;font-weight:800}
.equipment-template-row>.equipment-one-line-summary::-webkit-details-marker{display:none}
.equipment-template-row>.equipment-one-line-summary::marker{content:""}
.one-line-category,.one-line-template{min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.one-line-category small,.one-line-template small{font-size:12px;font-weight:700;color:#526b83;background:#ffffffb8;border:1px solid #c8d9e8;border-radius:12px;padding:3px 8px}
.one-line-template{color:#254f76}
.one-line-qr{white-space:nowrap;justify-self:end;padding:8px 12px}
.equipment-template-row[open]>.equipment-one-line-summary{border-bottom:1px solid #c6dceb}
.equipment-template-row .equipment-list{margin:0;padding:8px;background:#f8fbff;gap:5px}
.equipment-template-row .equipment-row{padding:7px 9px;border-radius:6px}
@media(max-width:850px){.equipment-template-row>.equipment-one-line-summary{grid-template-columns:1fr auto;gap:6px 10px}.one-line-category{grid-column:1}.one-line-template{grid-column:1}.one-line-qr{grid-column:2;grid-row:1/3}}
@media(max-width:560px){.equipment-template-row>.equipment-one-line-summary{grid-template-columns:1fr}.one-line-qr{grid-column:1;grid-row:auto;justify-self:start}}

/* Final readability + compact-spacing pass: typography +2px, dense layout, safe contrast */
body{font-size:18px;line-height:1.38;color:#183653}
.header{color:#173b5d;background:linear-gradient(100deg,#e5f1ff,#e9f8f5 58%,#f3edff)}
.header h1{font-size:19px}.header p{font-size:13px;color:#355a78}
#userbar{font-size:13px;color:#173b5d}
.page-topline{font-size:15px;color:#355a78}
.sidebar-link{font-size:17px}.sidebar-section-label{font-size:14px}.sidebar-brand strong{font-size:18px}.sidebar-brand small{font-size:14px}
main{padding:10px 14px 14px}
.panel,.stat,.equip{padding:9px;margin-bottom:8px}
h1{font-size:20px}h2,.panel h2{font-size:17px}h3,.panel h3{font-size:15px}
p,.muted{font-size:16px}label{font-size:13px}
button,.button{font-size:13px;padding:5px 8px}
input,select,textarea{font-size:14px;padding:6px 8px}
table{font-size:13px}th{font-size:12px}td,th{padding:5px 7px}
.badge{font-size:12px;padding:2px 6px}
.grid,.two,.stats{gap:7px}.stats{margin:7px 0}
.stat{padding:8px;min-height:68px}.stats .stat{min-height:68px}
.stats .stat span{font-size:13px}.stats .stat strong,.stat strong{font-size:25px;margin-top:3px}
.equipment-group{margin:5px 0}.equipment-group>summary,.equipment-subgroup>summary{padding:6px 9px;font-size:14px}
.equipment-list{gap:2px;margin:0;padding:0 5px 5px}
.equipment-row{padding:4px 6px;gap:4px;border-radius:4px}
.equipment-open{padding:3px 5px;gap:1px}.equipment-open b{font-size:13px}.equipment-open small{font-size:12px}
.template-library .template-accordion>summary{padding:7px 10px;min-height:40px;font-size:18px;grid-template-columns:minmax(250px,1fr) minmax(220px,1fr)}
.template-library .template-accordion-name{font-size:18px}
.template-library .template-accordion-meta{font-size:15px}
.template-accordion-body{padding:8px 10px}
.template-details-grid{gap:5px}.template-details-grid span{padding:6px 8px;font-size:14px}.template-details-grid b{font-size:13px}
.equipment-template-row{margin:4px 0}
.equipment-template-row>.equipment-one-line-summary{padding:6px 9px;gap:8px;font-size:16px}
.one-line-category small,.one-line-template small{font-size:14px;padding:2px 6px}
.category-list-head{padding:5px 8px}.actions{gap:5px;margin:5px 0}.tablewrap{margin:5px 0}
.question,.editor-question{padding:6px;gap:5px}.editor-question{margin:5px 0}
footer{padding:7px;margin-top:10px;font-size:12px}
/* Keep white lettering only on genuinely dark/high-contrast surfaces. */
.panel,.stat:not(.stats .stat),.equip,.equipment-row,.equipment-group,.equipment-template-row,.template-library,.template-accordion,.template-accordion-body,.template-details-grid span,.question,.editor-question,.alert,.tablewrap,tbody tr{color:#183653}
.header,.panel,.panel p,.panel label,.equipment-group>summary,.equipment-subgroup>summary,.template-library .template-accordion>summary,.template-accordion-meta,.equipment-open,.equipment-open small,.equipment-readonly,.equipment-readonly small{color:#183653}
.sidebar{color:#fff}.sidebar-link{color:#e5f0fb}.sidebar-link.selected{color:#fff!important}
th,.header[style*="background:#0"],button.primary,.nav button.selected,.stats .stat{color:#fff}
/* Light buttons and pastel surfaces must use dark text, never white-on-light. */
button:not(.primary):not(.selected),button.secondary,.badge,.upload-button{color:#214d70}
.alert.success{color:#176b4a}.alert.error,.danger,.abnormal-category,.abnormal-category-pill{color:#982b39}
@media(max-width:680px){body{font-size:16px}.sidebar-link{font-size:15px}.template-library .template-accordion>summary{font-size:16px;grid-template-columns:1fr auto}.template-library .template-accordion-name{font-size:16px}.template-library .template-accordion-meta{font-size:14px}main{padding:8px}.panel{padding:8px}}
/* KPI cards use pastel fills, therefore use dark text for readable contrast. */
.stats .stat,.stats .stat span,.stats .stat strong{color:#183653!important}

/* Compact template master: one accordion header controls the complete template list. */
.template-master-accordion{border:1px solid #c5d9eb;border-radius:7px;overflow:hidden;background:#f1f7ff}
.template-master-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:disclosure-closed;padding:8px 11px;background:#dcecf9;color:#174e7b;font-size:18px;font-weight:750;min-height:38px}
.template-master-accordion[open]>summary{background:#d3e8f8;border-bottom:1px solid #c5d9eb}
.template-master-hint{font-size:14px;font-weight:650;color:#365b79}
.template-master-content{padding:5px 7px;background:#fff}
.template-master-toolbar{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 5px}
.template-list{display:flex;flex-direction:column;gap:0;border:1px solid #d1dfeb;border-radius:5px;overflow:hidden}
.template-compact-row{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(150px,.8fr) auto;align-items:center;gap:8px;padding:5px 8px;min-height:32px;border-bottom:1px solid #d5e2ed;color:#183653}
.template-compact-row:last-child{border-bottom:0}
.template-compact-row:nth-child(odd){background:#f3f8fd}
.template-compact-row:nth-child(even){background:#eaf3fb}
.template-compact-name{font-size:16px;font-weight:700;color:#174e7b}
.template-compact-counts{font-size:14px;font-weight:600;color:#355b78}
.template-compact-actions{display:flex;gap:4px;align-items:center}
.template-compact-actions button{padding:4px 7px;font-size:13px}
.template-library .actions{margin:0}
@media(max-width:760px){.template-compact-row{grid-template-columns:1fr auto;gap:4px}.template-compact-counts{grid-column:1}.template-compact-actions{grid-column:2;grid-row:1/3;flex-wrap:wrap;justify-content:flex-end}.template-master-accordion>summary{font-size:16px}}

/* Dashboard order and lightweight rendering refinements */
.sidebar-link{color:#f4f8fc!important;text-shadow:0 1px 1px rgba(0,0,0,.18)}
.sidebar-link .sidebar-icon{color:#d9edff}
.sidebar-section-label{color:#c4d9eb}
.sidebar-link:hover{transition:none;transform:none}
*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* Final compact spacing + consistent section-header typography */
:root{--section-heading-size:18px}
.panel h2,.panel h3,h2,h3,.template-master-accordion>summary,.template-library .template-accordion>summary,.equipment-group>summary,.equipment-subgroup>summary,.category-list-head{font-size:var(--section-heading-size)!important;line-height:1.2;font-weight:750}
.panel,.stat,.equip{margin-bottom:5px;padding:7px}
main{padding:8px 10px 10px}
.grid,.two,.stats{gap:5px}
.stats{margin:5px 0}
.tablewrap,.actions{margin:4px 0}
.template-master-content{padding:3px 5px}
.template-list{gap:0}
.template-compact-row{padding:3px 7px;min-height:29px;gap:6px}
.template-library .template-accordion>summary{padding:5px 9px;min-height:34px}
.template-accordion-body{padding:5px 8px}
.equipment-template-row{margin:2px 0}
.equipment-template-row>.equipment-one-line-summary{padding:4px 8px;gap:6px}
.equipment-list{gap:1px;padding:0 4px 3px}
.equipment-row{padding:3px 5px;gap:3px}
.question,.editor-question{padding:4px;gap:4px}
.editor-question{margin:3px 0}


/* Final cross-page colour and legibility pass: static CSS only, no added scripts or animations. */
:root{--section-heading-size:18px}
body{background:#eef4f9;color:#183653}
.panel{background:#fff;border-color:#c8d9e8;border-left:3px solid #6da9d5;box-shadow:0 1px 3px #153b5c0d}
.panel:nth-of-type(3n+2){border-left-color:#63b99c;background:#fcfffd}
.panel:nth-of-type(3n){border-left-color:#9b87d2;background:#fdfcff}
.panel h2,.panel h3,h2,h3{color:#174e7b}
.tablewrap{background:#fff;border-color:#c4d7e8}
thead th,th{background:#14517f!important;color:#fff!important}
tbody tr:nth-child(odd){background:#f5f9fd}
tbody tr:nth-child(even){background:#eaf3fb}
td{color:#183653}
button.primary,.primary{background:#1269ad;color:#fff;border-color:#105b96}
button.primary:hover,.primary:hover{background:#0d548a;color:#fff}
button:not(.primary):not(.selected),button.secondary,.upload-button{background:#edf4fa;color:#214d70;border-color:#b5cadc}
button.danger,.danger{background:#fff0f1;color:#982b39;border-color:#e8aab2}
.template-compact-row:nth-child(odd){background:#f4f8fc}
.template-compact-row:nth-child(even){background:#e7f1fa}
.template-compact-name{font-size:16px;color:#174e7b}
.template-compact-counts{font-size:14px;color:#294f6d}
.template-compact-actions button{font-size:13px}
.one-line-template{font-size:15px;font-weight:750;color:#174e7b}
.one-line-template small{font-size:14px;font-weight:750;color:#174e7b;background:#dcebf7;border:1px solid #b8d0e3;border-radius:12px;padding:2px 7px}
/* White KPI text is reserved for saturated backgrounds, matching the supplied KPI reference. */
.stats .stat{color:#fff!important;box-shadow:none;border-radius:8px}
.stats .stat span,.stats .stat strong{color:#fff!important}
.stats .stat:nth-child(4n+1){background:#078b88!important}
.stats .stat:nth-child(4n+2){background:#1765a6!important}
.stats .stat:nth-child(4n+3){background:#654e9b!important}
.stats .stat:nth-child(4n){background:#a85b22!important}
/* All navigation labels remain white against the dark navy sidebar. */
.sidebar{background:#0b3158!important;color:#fff!important}
.sidebar-link,.sidebar-link:not(.selected){color:#fff!important;text-shadow:none}
.sidebar-section-label{color:#d5e6f5!important}
.sidebar-link.selected{background:#167fb5!important;color:#fff!important}
/* Consistent template row typography and compact rhythm. */
.template-compact-row{min-height:30px;padding:3px 7px;gap:5px}
.template-compact-name,.template-compact-counts,.template-compact-actions{line-height:1.25}

/* Equipment section only: improve template label and equipment-count visibility.
   Do not alter Checklist Templates & Questions typography. */
.equipment-master .equipment-template-row>.equipment-one-line-summary .one-line-template{font-size:17px!important;line-height:1.25;font-weight:750}
.equipment-master .equipment-template-row>.equipment-one-line-summary .one-line-template small{font-size:16px!important;line-height:1.2;padding:3px 8px}

/* OPTION 2 — PASTEL ENTERPRISE THEME (consistent across every page) */
:root{
  --pe-lavender:#f2eaff;--pe-lavender-strong:#e8dafa;--pe-purple:#7845b8;
  --pe-blue:#e8f2ff;--pe-mint:#e5f6ed;--pe-peach:#fff0df;
  --pe-ink:#24344d;--pe-muted:#65758b;--pe-border:#d9d0e9;
}
html,body{background:#fbf9ff!important;color:var(--pe-ink)!important;font-family:Arial,Helvetica,sans-serif}
.header{background:linear-gradient(100deg,#f1eaff,#e9f3ff)!important;color:#27364e!important;border-bottom:1px solid #d9cbea!important}
.header h1,.header h2,.header h3,#userbar{color:#27364e!important}
.header p{color:#68768c!important}
.nav{background:linear-gradient(90deg,#f0e8fb,#edf4ff,#effaf5)!important;border-color:#ded4ed!important}
.nav button{background:#fff!important;color:#35435b!important;border:1px solid #d8cbe9!important}
.nav button.selected,.nav button[aria-current="page"]{background:#7845b8!important;color:#fff!important;border-color:#7845b8!important}
.workspace{background:#fbf9ff!important}
.sidebar{background:linear-gradient(180deg,#f4edff,#eee8fa)!important;color:#2e3650!important;border-right:1px solid #d9cbea!important}
.sidebar-brand,.sidebar-brand strong{color:#4d3474!important}
.sidebar-brand-mark{background:#7845b8!important;color:#fff!important}
.sidebar-brand small{color:#74658e!important}
.sidebar-section-label{color:#78668f!important}
.sidebar-link,.sidebar-link:not(.selected){color:#35415a!important;background:transparent!important}
.sidebar-link:hover{background:#e7dcf7!important;border-color:#d7c7ec!important}
.sidebar-link.selected{background:#7845b8!important;color:#fff!important;border-color:#7845b8!important;box-shadow:inset 3px 0 #bca0e4!important}
.sidebar-icon{background:#e4d8f4!important;color:#67429a!important}
.sidebar-link.selected .sidebar-icon{background:#fff!important;color:#7845b8!important}
.sidebar-admin-action{background:#fff!important;color:#4b3b67!important;border-color:#d9cbea!important}
.sidebar-footnote{color:#786b8d!important;border-color:#d9cbea!important}
.page-topline{background:#fbf9ff!important;border-color:#e5dcef!important;color:#7b6b91!important}
.page-context{color:#65468d!important}
main{background:transparent!important}
.panel,.stat,.equip,.modalbox{border-color:#ddd3ec!important}
.panel{background:#fff!important;box-shadow:0 1px 3px rgba(80,54,120,.07)!important;border-left:3px solid #b79bdc!important}
.panel:nth-of-type(3n+2){background:#fcfaff!important;border-left-color:#9dcfba!important}
.panel:nth-of-type(3n){background:#fffaf5!important;border-left-color:#efc49a!important}
.panel h2,.panel h3,h2,h3{color:#3f3560!important}
.stats .stat{border:1px solid transparent!important;color:#fff!important}
.stats .stat:nth-child(4n+1){background:#2688cf!important}
.stats .stat:nth-child(4n+2){background:#299b70!important}
.stats .stat:nth-child(4n+3){background:#df812d!important}
.stats .stat:nth-child(4n){background:#8555bd!important}
.stats .stat span,.stats .stat strong{color:#fff!important}
.stat:not(.stats .stat){background:#fff!important;color:#35415a!important}
.grid>.equip:nth-child(4n+1){background:#edf5ff!important;border-color:#cbdcf4!important}
.grid>.equip:nth-child(4n+2){background:#ecf8f1!important;border-color:#c9e7d5!important}
.grid>.equip:nth-child(4n+3){background:#f4effb!important;border-color:#ded1f0!important}
.grid>.equip:nth-child(4n){background:#fff4e9!important;border-color:#f0d9c1!important}
.tablewrap{background:#fff!important;border-color:#ded4ed!important}
table{background:#fff!important;color:#29364e!important}
thead th,th{background:#e7dcf7!important;color:#3d3159!important;border-color:#d8cbea!important}
tbody tr:nth-child(odd){background:#fbf8ff!important}
tbody tr:nth-child(even){background:#eff5ff!important}
tbody td{color:#29364e!important;border-color:#e0d9eb!important}
button{background:#fff!important;color:#4d3a6e!important;border:1px solid #cfc1e2!important;box-shadow:none!important}
button.primary,.primary{background:#7845b8!important;color:#fff!important;border-color:#7845b8!important}
button.secondary,.secondary{background:#eaf2ff!important;color:#345a83!important;border-color:#cbdcf2!important}
button.danger,.danger{background:#fff0f1!important;color:#9c3546!important;border-color:#edc1c7!important}
.upload-button{background:#f0e9fb!important;color:#62418c!important;border-color:#cdbce4!important}
input,select,textarea{background:#fff!important;color:#29364e!important;border-color:#d2c7e1!important}
.badge{background:#f1eafb!important;color:#584174!important;border-color:#d8cbea!important}
.alert{background:#f7f2ff!important;border-color:#ded2ef!important;color:#3d3655!important}
.alert.success{background:#e8f7ed!important;color:#236044!important;border-color:#c4e5d0!important}
.alert.error{background:#fff0f1!important;color:#913646!important;border-color:#efc3ca!important}
.template-library{background:linear-gradient(145deg,#fff,#f7f1ff)!important;border-top-color:#b99cdd!important}
.template-library tbody tr:nth-child(odd),.template-accordion:nth-child(odd){background:#fbf8ff!important}
.template-library tbody tr:nth-child(even),.template-accordion:nth-child(even){background:#eff5ff!important}
.template-accordion>summary{color:#493765!important}
.template-accordion>summary:hover,.template-accordion[open]>summary{background:#eee5fa!important}
.template-accordion-body{background:#fff!important}
.template-details-grid span{background:#f2edfa!important;color:#44375e!important}
footer{background:#eee7f7!important;color:#514568!important;border-color:#ded4eb!important}
/* Keep rendering light: no motion, animated gradients, or hover transforms. */
*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
button:hover{transform:none!important;filter:brightness(.98)}
@media(max-width:680px){.sidebar{background:#f2eaff!important}.sidebar-link,.sidebar-link:not(.selected){color:#35415a!important}.sidebar-link.selected{color:#fff!important}}


/* Dashboard refinement: paired overview/category panels and clearer KPI labels. */
.dashboard-top-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:12px;align-items:start}
.dashboard-top-grid>.panel{min-width:0;margin:0}
.dashboard-overview>.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}
.dashboard-overview .stats .stat{min-width:0;min-height:82px;padding:10px}
.dashboard-overview .stats .stat span{font-size:15px!important;line-height:1.2}
.dashboard-overview .stats .stat strong{font-size:27px!important;margin-top:5px}
.dashboard-equipment-categories .equipment-category-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.dashboard-equipment-categories .equipment-category-stats .stat{min-width:0;min-height:82px;padding:10px}
@media(max-width:1100px){.dashboard-top-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:680px){.dashboard-overview>.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-equipment-categories .equipment-category-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Dashboard balance: prioritize Maintenance Operations Overview and compact category tiles */
.dashboard-top-grid{
  grid-template-columns:minmax(0,1.85fr) minmax(285px,.9fr) !important;
  gap:10px !important;
  align-items:stretch !important;
}
.dashboard-overview{min-height:0;padding:10px !important}
.dashboard-overview>.formgrid{grid-template-columns:minmax(180px,.8fr) minmax(180px,.8fr) !important;gap:6px 10px !important}
.dashboard-overview>.formgrid label{margin:3px 0 !important;gap:3px !important}
.dashboard-overview>.stats{gap:7px !important;margin:7px 0 !important}
.dashboard-overview>.stats .stat{min-height:66px !important;padding:8px !important}
.dashboard-overview .two{gap:8px !important}
.dashboard-overview .two>.panel{padding:8px !important;margin:0 !important;min-width:0}
.dashboard-overview .two .tablewrap{margin:5px 0 !important}
.dashboard-overview .two td,.dashboard-overview .two th{padding:5px 6px !important}
.dashboard-equipment-categories{padding:10px !important;min-width:0}
.dashboard-equipment-categories .equipment-category-stats{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:6px !important;
  margin:7px 0 0 !important;
}
.dashboard-equipment-categories .equipment-category-stats .stat{
  min-height:57px !important;
  height:57px !important;
  padding:6px 8px !important;
  margin:0 !important;
  border-radius:7px !important;
  box-shadow:none !important;
}
.dashboard-equipment-categories .equipment-category-stats .stat span{font-size:12px !important;line-height:1.1 !important}
.dashboard-equipment-categories .equipment-category-stats .stat .category-name{font-size:12px !important}
.dashboard-equipment-categories .equipment-category-stats .stat .category-symbol{font-size:14px !important}
.dashboard-equipment-categories .equipment-category-stats .stat strong{font-size:21px !important;margin-top:2px !important}
@media(max-width:1100px){.dashboard-top-grid{grid-template-columns:minmax(0,1fr) !important}.dashboard-equipment-categories .equipment-category-stats .stat{height:auto !important;min-height:57px !important}}
@media(max-width:680px){.dashboard-overview>.formgrid{grid-template-columns:1fr !important}.dashboard-overview .two{grid-template-columns:1fr !important}}

/* FINAL DASHBOARD LAYOUT: 75/25 split, equal-height panels, compact square-style category tiles. */
.dashboard-top-grid{
  display:grid !important;
  grid-template-columns:minmax(0,3fr) minmax(250px,1fr) !important;
  gap:10px !important;
  align-items:stretch !important;
}
.dashboard-top-grid > .panel{
  height:100% !important;
  min-height:0 !important;
  box-sizing:border-box !important;
  margin:0 !important;
}
.dashboard-overview{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
}
.dashboard-overview .two{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  align-items:stretch !important;
  min-width:0 !important;
}
.dashboard-overview .two > .panel{min-width:0 !important;}
.dashboard-overview .two .tablewrap{min-width:0 !important;overflow-x:hidden !important;}
.dashboard-overview .two table{width:100% !important;min-width:0 !important;table-layout:fixed !important;}
.dashboard-overview .two th,
.dashboard-overview .two td{white-space:normal !important;overflow-wrap:anywhere !important;padding:5px 6px !important;}
.dashboard-equipment-categories{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
}
.dashboard-equipment-categories .equipment-category-stats{
  flex:1 1 auto !important;
  min-height:0 !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-template-rows:repeat(4,minmax(0,1fr)) !important;
  gap:7px !important;
  margin:7px 0 0 !important;
}
.dashboard-equipment-categories .equipment-category-stats .stat{
  width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  gap:3px !important;
  padding:7px 8px !important;
  margin:0 !important;
  border-radius:8px !important;
}
.dashboard-equipment-categories .equipment-category-stats .stat .category-symbol{font-size:15px !important;line-height:1 !important;}
.dashboard-equipment-categories .equipment-category-stats .stat .category-name{font-size:11px !important;line-height:1.12 !important;overflow-wrap:anywhere !important;}
.dashboard-equipment-categories .equipment-category-stats .stat span{font-size:11px !important;line-height:1.12 !important;}
.dashboard-equipment-categories .equipment-category-stats .stat strong{font-size:21px !important;line-height:1.05 !important;margin-top:2px !important;}
@media(max-width:1100px){
  .dashboard-top-grid{grid-template-columns:minmax(0,1fr) !important;}
  .dashboard-top-grid>.panel{height:auto !important;}
  .dashboard-equipment-categories .equipment-category-stats{grid-template-rows:none !important;grid-auto-rows:minmax(68px,auto) !important;}
}
@media(max-width:680px){
  .dashboard-overview .two{grid-template-columns:minmax(0,1fr) !important;}
  .dashboard-equipment-categories .equipment-category-stats{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}


/* PLTCM Pulse — lightweight pastel enterprise refresh */
:root{
 --ink:#26334a;--muted:#68758b;--line:#e2e5f0;--surface:#ffffff;
 --lavender:#f1edfb;--lavender-strong:#6b55a3;--blue-soft:#eaf2ff;
 --mint-soft:#e8f5ef;--peach-soft:#fff1e8;--navy:#44376d;--deep:#33294f;
 --shadow:0 5px 18px rgba(57,48,89,.055);
}
html{background:#f7f6fb}
body{background:#f7f6fb;color:var(--ink);font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
.header{background:#fff;color:var(--ink);border-bottom:1px solid var(--line);box-shadow:0 2px 10px rgba(46,39,72,.035);padding:13px clamp(16px,2.5vw,30px)}
.header h1{color:#493d70;font-size:18px;letter-spacing:.035em;font-weight:750}
.header p,#userbar{color:#6c6680}
.nav{background:#f0edf8;border-bottom:1px solid #e5e0f1;padding:9px clamp(12px,2.5vw,30px)}
main{max-width:1680px;width:96%;padding:18px 0}
.panel,.stat,.equip{border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:15px;background:#fff}
.panel{margin-bottom:14px}
h1,h2,h3,h4{font-family:inherit;color:#38314f;letter-spacing:-.012em}
h2{font-size:17px;font-weight:720;margin-bottom:10px}
h3{font-size:14px;font-weight:700}
p{line-height:1.5}
.muted{color:var(--muted)}
button{border:1px solid #d8d4e6;border-radius:8px;padding:8px 12px;background:#fff;color:#4a4165;font-weight:650;font-size:13px;transition:background .12s ease,border-color .12s ease}
button:hover{background:#f5f2fb;border-color:#bdb2dc;transform:none}
button.primary,.primary{background:#66528f;border-color:#66528f;color:#fff}
button.primary:hover,.primary:hover{background:#57447e}
button.danger{background:#fff0f0;border-color:#f1cccc;color:#a33d4a}
input,select,textarea{border:1px solid #d9dce8;border-radius:8px;padding:9px 10px;color:#29354b;background:#fff;font:inherit;font-size:13px;min-height:37px}
input:focus,select:focus,textarea:focus{outline:2px solid #dcd4f2;outline-offset:1px;border-color:#9d8bc8}
label{font-size:12px;font-weight:650;color:#4c5367;gap:5px}
.stats{gap:10px}
.stat{background:#fff}
.stat strong{font-size:24px;color:#51427b}
.stat:nth-child(4n+1){border-top:3px solid #b7a9df}
.stat:nth-child(4n+2){border-top:3px solid #a9c6ed}
.stat:nth-child(4n+3){border-top:3px solid #a9d7c1}
.stat:nth-child(4n+4){border-top:3px solid #f0c5a9}
.equip{background:#fff}
.equip:hover,.panel:hover{box-shadow:0 7px 22px rgba(57,48,89,.075)}
.equip .symbol{border-radius:10px;background:#f4f1fb;color:#66528f;border:0}
.tablewrap{border:1px solid var(--line);border-radius:10px;box-shadow:none}
table{font-size:12px;min-width:620px}
th{background:#f0edf8;color:#51466f;font-weight:700}
td,th{border-color:#e9e7ef;padding:9px 10px}
tbody tr:nth-child(even){background:#fbfaff}
tbody tr:hover{background:#f6f3fc}
.badge{border-radius:999px;background:#f1edfb;color:#5d4b87;border-color:#e3ddf1;font-size:11px}
.alert{border-radius:9px;padding:10px 12px}
.success{background:var(--mint-soft);color:#27684b;border-color:#cde8d9}
.error{background:#fff0f0;color:#9c3542;border-color:#f0c9ce}
.modalbox{border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 60px rgba(25,22,43,.18)}
footer{background:#f0edf8;color:#6c6680;border-top:1px solid #e4dfef;font-size:12px}
.sidebar{background:#f0edf8;border-right:1px solid #e3deef}
.sidebar-link{border:0;background:transparent;color:#554d6e;border-radius:8px}
.sidebar-link.selected{background:#ded6f1!important;color:#493773!important}
.sidebar-brand-mark{background:#66528f;border-radius:10px}
.template-master-accordion,.equipment-group{border-radius:11px;border-color:#e4e0ed}
.template-master-accordion>summary,.equipment-group summary{background:#f3f0fa;color:#51436f}
.template-master-content{background:#fff}
.editor-question{background:#faf9fd;border-color:#e8e4f0;border-radius:10px}
.upload-button{border-radius:8px;background:#f5f2fb;border-color:#c8bee2;color:#58477e}
.storage-track{background:#eeedf3}
@media(max-width:900px){main{width:96%}.panel{padding:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}


/* Dashboard equipment category tiles: increase all category typography by 2px */
.dashboard-equipment-categories .equipment-category-stats .stat span{font-size:13px!important}
.dashboard-equipment-categories .equipment-category-stats .stat .category-name{font-size:13px!important}
.dashboard-equipment-categories .equipment-category-stats .stat .category-symbol{font-size:17px!important}
.dashboard-equipment-categories .equipment-category-stats .stat strong{font-size:23px!important}

/* Dashboard category labels: keep symbol and name side by side; enlarge typography */
.dashboard-equipment-categories .equipment-category-stats .stat > span:first-child{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  min-width:0 !important;
}
.dashboard-equipment-categories .equipment-category-stats .stat .category-name{
  font-size:15px !important;
  line-height:1.15 !important;
}
.dashboard-equipment-categories .equipment-category-stats .stat .category-symbol{
  font-size:21px !important;
  line-height:1 !important;
  flex:0 0 auto !important;
}

/* THEME 2 — EMERALD GREEN (Modern & Clean). Visual-only override; preserves app logic and data. */
:root{
  --eg-deep:#063f32;--eg-deeper:#032f27;--eg-green:#087653;--eg-mid:#15966c;
  --eg-mint:#e8f7ef;--eg-pale:#f3fbf6;--eg-line:#c9e3d4;--eg-ink:#183b30;--eg-muted:#60796d;
}
html,body{background:#f2faf5!important;color:var(--eg-ink)!important}
.header{background:linear-gradient(105deg,var(--eg-deeper),var(--eg-deep) 58%,#0b7654)!important;color:#fff!important;border-bottom:3px solid #9ad9b8!important}
.header h1,.header h2,.header h3,#userbar{color:#fff!important}
.header p{color:#d4f0df!important}
.nav{background:#e4f3e9!important;border-bottom:1px solid var(--eg-line)!important}
.nav button{background:#f8fdf9!important;color:#245b45!important;border-color:#c4dfce!important}
.nav button.selected,.nav button[aria-current="page"]{background:var(--eg-green)!important;color:#fff!important;border-color:var(--eg-green)!important}
.sidebar{background:linear-gradient(180deg,#064b39,#03382d)!important;color:#fff!important;border-right:1px solid #0c684b!important}
.sidebar-brand,.sidebar-brand strong{color:#fff!important}
.sidebar-brand-mark{background:#16a36f!important;color:#fff!important}
.sidebar-brand small{color:#c9ead7!important}
.sidebar-section-label{color:#a9dbc0!important}
.sidebar-link,.sidebar-link:not(.selected){color:#f1fff6!important;background:transparent!important}
.sidebar-link:hover{background:#0c6248!important;border-color:#268463!important}
.sidebar-link.selected{background:#15966c!important;color:#fff!important;border-color:#5bc59a!important;box-shadow:inset 3px 0 #b5f0d0!important}
.sidebar-icon{background:#145f48!important;color:#c8f2da!important}
.sidebar-link.selected .sidebar-icon{background:#fff!important;color:#087653!important}
.sidebar-admin-action{background:#0b5a43!important;color:#f2fff7!important;border-color:#24785b!important}
.sidebar-footnote{color:#b8dfca!important;border-color:#28664f!important}
main{background:transparent!important}
.panel,.stat,.equip{background:#fff!important;border-color:var(--eg-line)!important;color:var(--eg-ink)!important;box-shadow:0 2px 8px #064b3910!important}
.panel{border-left-color:#55b889!important}
.panel:nth-of-type(3n+2){background:#fbfefc!important;border-left-color:#8acda8!important}
.panel:nth-of-type(3n){background:#f7fcf8!important;border-left-color:#299b70!important}
.panel h2,.panel h3,h2,h3{color:#155b42!important}
.stat{background:linear-gradient(145deg,#fff,#effaf3)!important;border-top-color:#49ad7d!important}
.equip{background:linear-gradient(145deg,#fff,#f0faf4)!important;border-color:#c7e5d2!important}
.equip .symbol{color:#087653!important;border-color:#b9dfc8!important;background:#effaf3!important}
button.primary,.primary{background:linear-gradient(110deg,#087653,#15966c)!important;color:#fff!important;border-color:#087653!important}
button.primary:hover,.primary:hover{background:linear-gradient(110deg,#065d42,#0d805b)!important;color:#fff!important}
button:not(.primary):not(.selected),button.secondary,.upload-button{background:#edf8f1!important;color:#245b45!important;border-color:#bfdfcb!important}
button:not(.primary):not(.selected):hover,button.secondary:hover,.upload-button:hover{background:#dff2e6!important;border-color:#83c49e!important}
button.danger,.danger{background:#fff0ef!important;color:#a52d2d!important;border-color:#efb6b2!important}
thead th,th{background:#0b6046!important;color:#fff!important}
tbody tr:nth-child(odd){background:#f7fcf8!important}
tbody tr:nth-child(even){background:#eaf6ee!important}
td{color:#234738!important}
.template-master-accordion{background:#eff9f2!important;border-color:#c3e2ce!important}
.template-master-accordion>summary,.template-master-accordion[open]>summary{background:#dff2e5!important;color:#155b42!important;border-color:#c3e2ce!important}
.template-master-hint,.template-compact-name,.one-line-template{color:#176247!important}
.template-master-content{background:#fbfefc!important}
.template-list{border-color:#c9e3d4!important}
.template-compact-row:nth-child(odd){background:#f7fcf8!important}
.template-compact-row:nth-child(even){background:#eaf6ee!important}
.template-compact-counts{color:#416b56!important}
.equipment-group{border-color:#c5e2cf!important;background:#fbfefc!important}
.equipment-group summary{background:#e3f4e9!important;color:#155b42!important}
.category-list-head{background:#e6f5eb!important;color:#155b42!important}
.editor-question{background:#f4fbf6!important;border-color:#cfe7d7!important}
.email-settings{border-top-color:#15966c!important;background:linear-gradient(145deg,#fff,#effaf3)!important}
.storage-track{background:#dcefe3!important}
.storage-fill{background:linear-gradient(90deg,#087653,#4dc28b)!important}
.trend-chart,.trend-combined{background:linear-gradient(180deg,#fff,#f0faf4)!important;border-color:#c9e3d4!important}
.trend-labels span{background:#e5f5eb!important;color:#245b45!important}
footer{background:#063f32!important;color:#e4f6eb!important;border-top:1px solid #24785b!important}
.alert.success,.success{background:#e3f7e9!important;color:#17613f!important;border-color:#a8d9b8!important}
@media(max-width:680px){.sidebar{background:linear-gradient(180deg,#064b39,#03382d)!important}.sidebar-link,.sidebar-link:not(.selected){color:#f1fff6!important}.sidebar-link.selected{color:#fff!important}}

/* PLTCM Pulse branded emerald header inspired by the supplied reference banner */
.pulse-header{min-height:66px!important;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:9px clamp(14px,2vw,28px)!important;background:linear-gradient(105deg,#032f27 0%,#064735 54%,#075b42 100%)!important;color:#fff!important;border-bottom:1px solid #2d8b68!important;box-shadow:0 2px 8px rgba(0,35,25,.16)}
.pulse-header-brand{display:flex;align-items:center;min-width:0;gap:15px}
.jsw-brand-logo{display:block;width:155px;height:40px;object-fit:contain;object-position:left center;flex:0 0 auto}
.header-divider{height:34px;width:1px;background:rgba(224,255,237,.58);flex:0 0 1px}
.pulse-wave{display:flex;align-items:center;flex:0 0 auto}
.pulse-wave svg{width:43px;height:30px;fill:none;stroke:#72e6a8;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px rgba(85,235,158,.24))}
.pulse-title{display:flex;align-items:center;gap:17px;min-width:0;color:#fff}
.pulse-title strong{font-size:clamp(20px,2vw,27px);font-style:italic;font-weight:800;letter-spacing:-.5px;white-space:nowrap;color:#fff}
.pulse-title span{font-size:clamp(11px,1.1vw,15px);font-weight:600;white-space:nowrap;color:#e5f8ed}
.pulse-header-right{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.header-date-chip{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid rgba(223,255,238,.48);border-radius:9px;background:rgba(255,255,255,.96);color:#183c2d;font-size:13px;font-weight:800;white-space:nowrap}
.header-date-chip>span:first-child{font-size:17px;color:#087653}
.pulse-header #userbar{display:flex;align-items:center}
.pulse-header .user-chip{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid rgba(225,255,239,.65);border-radius:9px;background:rgba(255,255,255,.08);color:#fff!important;font-weight:750;white-space:nowrap}
.pulse-header .user-dot{width:8px;height:8px;border-radius:50%;background:#78e6aa;box-shadow:0 0 0 3px rgba(120,230,170,.16)}
@media(max-width:850px){.pulse-header{align-items:flex-start;flex-wrap:wrap}.pulse-header-brand{flex:1 1 100%}.pulse-header-right{width:100%;justify-content:flex-end}.pulse-title{flex-wrap:wrap;gap:2px 12px}.pulse-title span{white-space:normal}}
@media(max-width:520px){.pulse-header{gap:8px;padding:9px 11px!important}.jsw-brand-logo{width:112px;height:31px}.header-divider{height:28px}.pulse-wave svg{width:30px}.pulse-title strong{font-size:18px}.pulse-title span{font-size:10px;flex-basis:100%}.pulse-header-right{justify-content:space-between}.header-date-chip,.pulse-header .user-chip{font-size:10px;padding:6px 8px}}

/* JSW Steel Tarapur site identity */
.pulse-header-brand .jsw-brand-lockup{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;flex:0 0 155px;min-width:0}
.pulse-header-brand .jsw-brand-logo{width:155px;height:34px;object-fit:contain;object-position:center center}
.jsw-site-name{display:block;margin-top:-1px;color:#e6fff0;font-size:10px;line-height:1.1;font-weight:850;letter-spacing:2.7px;text-align:center;white-space:nowrap}
@media(max-width:520px){.pulse-header-brand .jsw-brand-lockup{flex-basis:112px}.pulse-header-brand .jsw-brand-logo{width:112px;height:27px}.jsw-site-name{font-size:8px;letter-spacing:2px}}
