@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{--ink:#17243a;--muted:#6e7b90;--line:#e4eaf2;--paper:#f3f6fb;--white:#fff;--navy:#112747;--blue:#2457c5;--blue2:#3478ed;--teal:#0d9488;--green:#147d4a;--red:#b42332;--amber:#a15c07;--shadow:0 14px 40px rgba(26,48,84,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at top left,rgba(52,120,237,.07),transparent 38%),var(--paper);color:var(--ink);font:15px/1.55 'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}h1,h2,h3{font-family:Manrope,'DM Sans',sans-serif;letter-spacing:-.035em;color:var(--navy)}h1{font-size:clamp(30px,4vw,42px);line-height:1.12;margin:6px 0 9px;font-weight:800}h2{font-size:23px;line-height:1.25;margin:0 0 7px;font-weight:800}h3{font-size:17px;margin:0 0 6px}.wrap{width:min(1180px,calc(100% - 36px));margin:0 auto}.narrow{max-width:540px;padding-top:8vh}.install-wrap{max-width:760px;padding:5vh 0}.site-header{position:relative;overflow:hidden;background:linear-gradient(120deg,#102746 0%,#173e75 62%,#2457a6 100%);padding:35px 0 39px;margin-bottom:30px;color:#fff;border-bottom:4px solid #28b6a6}.site-header:after{content:"";position:absolute;width:340px;height:340px;border:1px solid rgba(255,255,255,.1);border-radius:50%;right:-70px;top:-190px;box-shadow:0 0 0 35px rgba(255,255,255,.035),0 0 0 75px rgba(255,255,255,.025);pointer-events:none}.site-header h1,.site-header h2,.site-header h3{color:#fff}.header-row,.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;position:relative;z-index:1}.header-row .muted{color:#d2def0}.eyebrow{font-size:11px;letter-spacing:.17em;font-weight:800;color:#63dfd0;text-transform:uppercase}.site-header .eyebrow{color:#73e4d6}.muted,.small{color:var(--muted)}.small{font-size:13px}.panel{background:var(--white);border:1px solid rgba(216,225,238,.95);border-radius:18px;padding:26px;margin-bottom:23px;box-shadow:var(--shadow)}.section-heading{margin-bottom:17px}.section-heading p{margin-bottom:0}.badge{white-space:nowrap;background:#eaf1ff;color:#214fae;border-radius:99px;padding:7px 12px;font-weight:800;font-size:12px;border:1px solid #d9e5ff}.filters{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0 17px}.filters a,.text-link{color:var(--blue);text-decoration:none;font-weight:700}.filters a{padding:9px 15px;border:1px solid var(--line);border-radius:99px;background:#f9fbff;transition:all .18s ease}.filters a:hover{border-color:#9eb9f4;transform:translateY(-1px)}.filters a.active{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 5px 13px rgba(36,87,197,.22)}.table-scroll{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:13px}table{border-collapse:separate;border-spacing:0;width:100%;min-width:660px;background:#fff}th,td{text-align:left;padding:15px 15px;border-bottom:1px solid #eaf0f6;vertical-align:middle}th{font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:#64748b;background:#f5f8fc;font-weight:800}tbody tr{transition:background .15s}tbody tr:hover{background:#f8fbff}tbody tr:last-child td{border-bottom:0}td strong{font-weight:800;color:#1c2d48}.quantity{font-weight:800;white-space:nowrap;color:#183c7b;font-size:16px}.status{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:6px 10px;font-size:11px;font-weight:800;white-space:nowrap}.status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.status.ok{color:#137548;background:#e8f8ef}.status.low{color:#a32b35;background:#fff0f0}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:0;border-radius:10px;background:linear-gradient(135deg,var(--blue),var(--blue2));color:#fff;padding:12px 17px;font-weight:800;font-size:13px;text-decoration:none;cursor:pointer;box-shadow:0 5px 12px rgba(36,87,197,.15);transition:transform .15s,box-shadow .15s,filter .15s}.button:hover{filter:brightness(1.04);transform:translateY(-1px);box-shadow:0 8px 17px rgba(36,87,197,.2)}.button.secondary{background:#fff;color:#24436f;border:1px solid #d7e1f0;box-shadow:none}.button.secondary:hover{background:#f3f7ff;border-color:#a9bee2}.button.danger{background:#fff1f1;color:var(--red);border:1px solid #ffd8dc;box-shadow:none}.button.danger:hover{background:#ffe5e7}.small-button{padding:8px 11px;font-size:12px}.last-updated{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:4px 5px 18px}.last-updated>div{background:#eaf8f6;border:1px solid #d1efea;border-radius:14px;padding:16px 19px;min-width:250px}.last-updated h3{color:#146d68}.last-updated p{margin-bottom:0}.last-updated .small{max-width:390px}footer{padding:21px 0 38px;color:#8390a4;font-size:12px;border-top:1px solid #e2e9f2;margin-top:10px}label{display:block;font-weight:750;font-size:13px;color:#31425d;margin-bottom:16px}input,select,textarea{display:block;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #ccd7e6;border-radius:10px;background:#fff;color:var(--ink);font:inherit;transition:border .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{outline:0;border-color:#5b8ce8;box-shadow:0 0 0 4px rgba(52,120,237,.13)}textarea{resize:vertical}form .button{margin-top:4px}.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.grid-form .full{grid-column:1/-1}.notice{border-radius:12px;padding:14px 17px;margin:0 0 19px;font-weight:600}.notice.success{background:#e8f8ef;color:#12623c;border:1px solid #c9eed8}.notice.error{background:#fff0f0;color:#8f202b;border:1px solid #ffd7db}.notice h2{margin-top:0}.install-wrap .panel{padding:clamp(22px,4vw,38px)}code{background:#edf2f8;padding:3px 6px;border-radius:5px;color:#24436f}.row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.row-actions form{display:inline}.narrow .panel{padding:30px}.narrow .text-link{display:inline-block;margin-bottom:22px}.narrow .eyebrow{margin-bottom:5px}.narrow h1{font-size:32px}.narrow form{margin-top:24px}.narrow .button{width:100%;margin-top:10px}.panel>p:last-child{margin-bottom:0}.actions{display:flex;gap:9px;flex-wrap:wrap}.install-wrap form h2{margin:18px 0 15px}.install-wrap form h2:first-of-type{margin-top:5px}.install-wrap .button{margin-top:10px}
@media(max-width:720px){.wrap{width:min(100% - 24px,1180px)}.site-header{padding:27px 0 30px;margin-bottom:18px}.header-row,.section-heading,.last-updated{align-items:flex-start;flex-direction:column}.header-row .button{align-self:flex-start}.panel{padding:18px;border-radius:15px;margin-bottom:16px}.section-heading{gap:9px}.grid-form{grid-template-columns:1fr}.grid-form .full{grid-column:auto}.actions{width:100%}.actions .button{flex:1}.last-updated{gap:10px}.last-updated>div{width:100%;min-width:0}.last-updated .small{max-width:none}.filters{gap:7px}.filters a{padding:8px 12px;font-size:13px}th,td{padding:12px}.narrow .panel{padding:23px}.install-wrap{padding:2vh 0}}


/* NTSK branding */
.brand-lockup{display:flex;align-items:center;gap:18px;min-width:0}
.brand-logo{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center}
.brand-logo img{display:block;width:92px;height:92px;object-fit:contain;border-radius:50%;background:#fff;box-shadow:0 5px 18px rgba(17,39,71,.13)}
.admin-logo img{width:76px;height:76px}
.website-link{display:inline-block;color:var(--blue);font-weight:750;text-decoration:none;font-size:14px;margin-top:2px}
.website-link:hover,.text-link:hover{text-decoration:underline}
.login-panel{text-align:left}
.login-logo{display:block;text-align:center;margin:4px auto 18px}
.login-logo img{width:124px;height:124px;object-fit:contain;border-radius:50%;background:#fff;box-shadow:0 6px 22px rgba(17,39,71,.13)}
.login-footer{text-align:center;margin:20px 0 0}
@media(max-width:700px){
  .brand-lockup{gap:12px}
  .brand-logo img{width:66px;height:66px}
  .admin-logo img{width:58px;height:58px}
  .brand-lockup .eyebrow{font-size:10px}
}


/* Public inventory dashboard */
.dashboard-page{background:#f3f6fb;background-image:radial-gradient(ellipse at top right,rgba(55,111,218,.08),transparent 35%)}
.dashboard-header{padding:22px 0 24px;background:rgba(255,255,255,.96)}
.dashboard-header .brand-logo img{width:104px;height:104px}
.dashboard-header h1{font-size:clamp(28px,3vw,36px);letter-spacing:-.035em}
.dashboard-main{padding-bottom:24px}
.welcome-row{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:12px 2px 22px}
.welcome-row h2{font-size:clamp(24px,3vw,31px);letter-spacing:-.035em;margin:0 0 5px}
.welcome-row p{margin-bottom:0}
.last-sync{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 15px;font-size:13px;color:var(--muted);box-shadow:0 4px 16px rgba(20,35,60,.03)}
.last-sync strong{color:var(--ink)}
.sync-dot{width:9px;height:9px;display:block;flex:0 0 auto;background:#18a66a;border-radius:50%;box-shadow:0 0 0 4px #e2f8ed}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}
.stat-card{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px;min-height:160px;box-shadow:0 5px 22px rgba(20,35,60,.035)}
.stat-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:#edf3ff;font-size:20px;margin-bottom:13px}
.stat-label{font-size:13px;font-weight:700;color:var(--muted)}
.stat-number{font-size:34px;line-height:1.15;font-weight:850;letter-spacing:-.04em;margin:4px 0 7px}
.stat-foot{font-size:12px;color:var(--muted)}
.stat-primary{background:linear-gradient(135deg,#173f91,#245fc0);border-color:#245fc0;color:#fff}
.stat-primary .stat-icon{background:rgba(255,255,255,.15)}
.stat-primary .stat-label,.stat-primary .stat-foot{color:rgba(255,255,255,.8)}
.stat-alert .stat-icon{background:#fff0e8}.stat-alert .stat-number{color:#b34b15}
.stat-good .stat-icon{background:#e7f7ee}.stat-good .stat-number{color:#147d4a}
.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}
.category-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:126px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:14px;text-decoration:none;color:var(--ink);transition:border-color .15s,transform .15s,box-shadow .15s}
.category-card:hover{transform:translateY(-2px);border-color:#a8bee7;box-shadow:0 8px 20px rgba(20,35,60,.06)}
.category-card.selected{border:2px solid var(--blue);padding:15px;background:#f7faff}
.category-emoji{font-size:23px;line-height:1.2;margin-bottom:4px}
.category-name{font-weight:800;font-size:14px}
.category-meta{font-size:12px;color:var(--muted)}
.mini-alert{font-size:11px;font-weight:750;color:#a32929;background:#fff0f0;border-radius:6px;padding:3px 6px;margin-top:3px}
.inventory-panel{padding:0;overflow:hidden}
.inventory-panel .section-heading,.recent-panel .section-heading{padding:22px 24px 12px}
.inventory-panel table{min-width:720px}
.inventory-panel th:first-child,.inventory-panel td:first-child{padding-left:24px}
.inventory-panel th:last-child,.inventory-panel td:last-child{padding-right:24px}
.category-pill{display:inline-block;border:1px solid var(--line);background:#f8faff;padding:4px 8px;border-radius:8px;font-size:12px;white-space:nowrap}
.empty-state{text-align:center;padding:40px 16px!important;color:var(--muted)}
.empty-state span{display:block;font-size:30px;margin-bottom:8px}.empty-state strong{color:var(--ink)}.empty-state p{margin:5px 0 0}
.recent-panel{padding:0;overflow:hidden}
.recent-list{padding:0 24px 14px}
.recent-row{display:flex;gap:12px;padding:13px 0;border-top:1px solid var(--line)}
.recent-marker{display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex:0 0 auto;border-radius:9px;background:#edf3ff;color:var(--blue);font-size:20px;font-weight:800}
.recent-content{min-width:0}.recent-content strong{font-size:14px}.recent-content .small{margin-top:2px;overflow-wrap:anywhere}
.dashboard-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 2px 30px;font-size:12px;color:var(--muted)}
.footer-brand{display:flex;align-items:center;gap:10px}.footer-brand img{width:40px;height:40px;object-fit:contain}.footer-brand strong{color:var(--ink)}.footer-brand a{color:var(--blue);text-decoration:none;font-weight:700}
@media(max-width:900px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.dashboard-header .brand-logo img{width:68px;height:68px}.dashboard-header .header-row{align-items:flex-start}.dashboard-header .admin-button{font-size:12px;padding:9px 10px}.welcome-row{align-items:flex-start;flex-direction:column}.last-sync{width:100%}.stats-grid{gap:9px}.stat-card{padding:13px;min-height:145px}.stat-number{font-size:29px}.stat-foot{font-size:11px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.category-card{min-height:112px;padding:12px}.category-card.selected{padding:11px}.inventory-panel .section-heading,.recent-panel .section-heading{padding:18px 16px 10px}.inventory-panel th:first-child,.inventory-panel td:first-child{padding-left:16px}.inventory-panel th:last-child,.inventory-panel td:last-child{padding-right:16px}.recent-list{padding:0 16px 10px}.dashboard-footer{align-items:flex-start;flex-direction:column;gap:12px}}


/* Updated modern navy theme */
:root{--ink:#101c33;--muted:#75829a;--line:#dbe3ef;--paper:#edf2f9;--blue:#173f91;--blue-dark:#0e2c68;--green:#147d4a;--red:#a32929}
body{background:#edf2f9;color:#101c33}
.dashboard-page{background:linear-gradient(180deg,#e8eef8 0,#f3f6fb 360px,#f3f6fb 100%);background-image:radial-gradient(ellipse at 95% 0,rgba(28,67,139,.12),transparent 38%)}
.site-header,.dashboard-header{background:#102a5c;color:#fff;border-bottom:1px solid #23447d;box-shadow:0 8px 24px rgba(7,25,62,.12)}
.dashboard-header .eyebrow{color:#a9c8ff}
.dashboard-header h1{color:#fff}
.dashboard-header .muted{color:#c2cee3}
.dashboard-header .website-link{color:#b9d4ff}
.dashboard-header .brand-logo img{box-shadow:0 4px 18px rgba(0,0,0,.22);border:2px solid rgba(255,255,255,.7)}
.dashboard-header .button.secondary{background:#23447d;color:#fff;border:1px solid #3d5e98}
.dashboard-header .button.secondary:hover{background:#31558f}
.stat-card,.category-card,.panel,.last-sync{border-color:#d7e0ed;box-shadow:0 8px 24px rgba(13,37,82,.055)}
.stat-card{background:linear-gradient(145deg,#fff,#f8faff)}
.stat-primary{background:linear-gradient(140deg,#102a5c,#1d4c9b);border-color:#1d4c9b;color:#fff}
.stat-primary .stat-icon{background:rgba(255,255,255,.14)}
.stat-icon{background:#e8effb;color:#173f91}
.category-card{background:#fff}
.category-card:hover{border-color:#8da9d7;box-shadow:0 12px 25px rgba(13,37,82,.1)}
.category-card.selected{background:#eaf1ff;border-color:#214f9a}
.category-emoji{color:#173f91}
.inventory-panel,.recent-panel{background:#fff}
.inventory-panel th{background:#f1f5fb;color:#53627d}
.inventory-panel td,.recent-row{border-color:#e5eaf2}
.category-pill{background:#f0f4fb;border-color:#dce5f2;color:#223b67}
.status.ok{background:#e5f5ed;color:#176342}
.status.low{background:#fff0e8;color:#9e471d}
.dashboard-footer{border-top:1px solid #dce4ef;margin-top:4px}
.footer-brand img{filter:drop-shadow(0 2px 5px rgba(13,37,82,.1))}
@media(min-width:700px){.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* Darker navy look – less white, more contrast */
:root{--ink:#e7edf8;--muted:#aab8d0;--line:#304565;--paper:#0b1426;--blue:#5b8ee8;--blue-dark:#3c72cf;--green:#54c69a;--red:#ff9b88}
html,body{background:#0b1426;color:#e7edf8}
.dashboard-page{background:radial-gradient(ellipse at 88% -5%,rgba(42,91,173,.25),transparent 38%),linear-gradient(180deg,#0b1426 0,#101d33 100%)}
.dashboard-header,.site-header{background:#081326;color:#f6f8ff;border-bottom:1px solid #253a5d;box-shadow:0 10px 30px rgba(0,0,0,.24)}
.dashboard-header .eyebrow{color:#8fb8ff}.dashboard-header h1{color:#f6f8ff}.dashboard-header .muted{color:#aab8d0}.dashboard-header .website-link{color:#a9caff}
.dashboard-header .brand-logo img{background:#fff;border-color:#d9e4f5}
.dashboard-header .button.secondary{background:#1b2c49;color:#e7edf8;border:1px solid #38547d}.dashboard-header .button.secondary:hover{background:#263d62}
.panel,.stat-card,.category-card,.last-sync{background:#14223a;border-color:#2c4264;color:#e7edf8;box-shadow:0 10px 28px rgba(0,0,0,.16)}
.stat-card{background:linear-gradient(145deg,#172944,#111e34)}
.stat-primary{background:linear-gradient(140deg,#173d7d,#2459a6);border-color:#376ab4;color:#fff}
.stat-primary .stat-label,.stat-primary .stat-foot{color:#d1e0fb}
.stat-icon{background:#203657;color:#c3d9ff}
.category-card{color:#e7edf8}.category-card:hover{background:#1a2d4a;border-color:#5a82bf;box-shadow:0 12px 28px rgba(0,0,0,.25)}
.category-card.selected{background:#1a3154;border:2px solid #6798ed;padding:15px}
.category-name{color:#f0f5ff}.category-meta{color:#aab8d0}
.inventory-panel th{background:#1b2c47;color:#b8c8e1}
.inventory-panel td,.recent-row{border-color:#2a3d5b}
.category-pill{background:#1b2d49;border-color:#385071;color:#d7e5ff}
.status.ok{background:#173d35;color:#8ce0bc}.status.low{background:#4b2a25;color:#ffc0b1}
.last-sync{color:#b7c5dc}.last-sync strong{color:#f0f5ff}.sync-dot{background:#54c69a;box-shadow:0 0 0 4px #1b3c39}
.badge{background:#203a61;color:#c5dcff}
.empty-state{color:#aab8d0}.empty-state strong{color:#e7edf8}
.recent-marker{background:#203a61;color:#c5dcff}
.dashboard-footer{border-top-color:#2b3f5d;color:#9eafc9}
.footer-brand strong{color:#e7edf8}.footer-brand a{color:#9fc4ff}
a.text-link{color:#9fc4ff}
input,select,textarea{background:#0e1a2e;color:#e7edf8;border-color:#3a5071}
input::placeholder,textarea::placeholder{color:#8395b2}
.notice.success{background:#16392f;color:#a6e9cd}.notice.error{background:#472525;color:#ffc1c1}
.filters a{border-color:#344b6d;color:#c5d5ee}.filters a.active{background:#315fa7;border-color:#5b8ee8;color:#fff}
.button{background:#315fa7}.button:hover{background:#3d72c2}
.button.secondary{background:#233753;color:#e7edf8}.button.secondary:hover{background:#304969}
.button.danger{background:#482a30;color:#ffc3c3}.button.danger:hover{background:#60343b}
footer{color:#9eafc9}
@media(max-width:700px){.category-card.selected{padding:11px}}


/* Dark table panels and readable section headers */
.inventory-panel,.recent-panel,.panel{background:#111e33!important;color:#e7edf8;border-color:#2d4262}
.inventory-panel .section-heading,.recent-panel .section-heading{background:#162743!important;border-bottom:1px solid #2d4262}
.inventory-panel th,.recent-panel th{background:#1b2e4d!important;color:#c5d5ee!important}
.inventory-panel td,.recent-panel td{background:#111e33;color:#e7edf8;border-bottom-color:#2b3f5d}
.inventory-panel tbody tr:hover td,.recent-panel tbody tr:hover td{background:#172944}
.inventory-panel .muted,.recent-panel .muted,.inventory-panel .small,.recent-panel .small{color:#aabbd4!important}
.inventory-panel h2,.recent-panel h2,.panel h2{color:#f1f5ff}
.inventory-panel .badge,.recent-panel .badge{background:#24416c;color:#d5e5ff}
.inventory-panel table{min-width:580px}
.recent-panel .recent-row{background:transparent;border-top-color:#2b3f5d}
.recent-content strong{color:#f0f5ff}
.recent-content .muted{color:#aabbd4!important}
.admin table{min-width:unset}


/* Layout repair: consistent dark navy UI, aligned grids and readable tables */
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#0b1426!important;color:#e7edf8!important}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
.wrap{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.site-header,.dashboard-header{background:#081326!important;color:#f6f8ff!important;border-bottom:1px solid #2a4165!important}
.dashboard-header{padding:22px 0}
.header-row{display:flex;justify-content:space-between;align-items:center;gap:24px}
.brand-lockup{display:flex;align-items:center;gap:18px;min-width:0}
.brand-lockup>div{min-width:0}
.brand-logo img{display:block;width:88px;height:88px;object-fit:contain;background:#fff;border-radius:50%;border:2px solid #d5e2f5}
.dashboard-header h1{margin:2px 0 4px;font-size:clamp(26px,3vw,36px);line-height:1.2;color:#fff}
.dashboard-header .eyebrow{color:#9ec1ff}
.dashboard-header .muted{color:#afbed6}
.website-link,.text-link{color:#a9caff!important;text-decoration:none;font-weight:750}
.dashboard-main{padding-top:24px;padding-bottom:28px}
.welcome-row{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:22px}
.welcome-row h2{margin:0 0 6px;font-size:clamp(23px,2.6vw,31px);line-height:1.25;color:#f2f6ff}
.welcome-row p{margin-bottom:0}
.last-sync{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:13px 16px;background:#14223a!important;border:1px solid #304666;border-radius:12px;color:#c1cde0;font-size:13px}
.last-sync strong{color:#f2f6ff}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}
.stat-card{min-width:0;padding:20px;background:#14223a!important;border:1px solid #304666;border-radius:15px;color:#e7edf8;box-shadow:0 8px 22px rgba(0,0,0,.16)}
.stat-primary{background:linear-gradient(135deg,#173d7d,#2459a6)!important;border-color:#386ab0}
.stat-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;margin-bottom:13px;border-radius:11px;background:#203657;color:#c8dcff}
.stat-label{font-size:13px;font-weight:700;color:#b8c7de}
.stat-number{font-size:clamp(28px,3vw,36px);font-weight:850;line-height:1.2;margin:5px 0;color:#f4f7ff;overflow-wrap:anywhere}
.stat-foot{font-size:12px;color:#afbed6}
.stat-primary .stat-label,.stat-primary .stat-foot{color:#d5e4ff}
.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}
.category-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;min-height:120px;padding:15px;background:#14223a!important;border:1px solid #304666;border-radius:13px;color:#e7edf8!important;text-decoration:none}
.category-card.selected{padding:14px;background:#1a3154!important;border:2px solid #6798ed}
.category-card:hover{background:#1a2d49!important;border-color:#6287c2}
.category-name{font-weight:800;color:#f2f6ff}.category-meta{font-size:12px;color:#b4c3da;overflow-wrap:anywhere}
.panel,.inventory-panel,.recent-panel{margin:0 0 20px;background:#111e33!important;border:1px solid #2d4262!important;border-radius:15px;overflow:hidden;color:#e7edf8!important;box-shadow:0 9px 24px rgba(0,0,0,.17)}
.inventory-panel .section-heading,.recent-panel .section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:21px 22px 16px;background:#162743!important;border-bottom:1px solid #2d4262}
.panel h2,.inventory-panel h2,.recent-panel h2{color:#f2f6ff;font-size:21px;line-height:1.3;margin:0 0 5px}
.panel .muted,.inventory-panel .muted,.recent-panel .muted{color:#afbed6!important}
.table-scroll{width:100%;overflow-x:auto}
table{width:100%;border-collapse:collapse;table-layout:auto;min-width:0!important}
th,td{padding:13px 16px;text-align:left;vertical-align:middle;border-bottom:1px solid #2a3e5c;overflow-wrap:anywhere}
th{background:#1b2e4d!important;color:#cbd9ee!important;font-size:12px;font-weight:800;letter-spacing:.045em;text-transform:uppercase}
td{background:#111e33!important;color:#e1e9f6!important;font-size:14px}
tbody tr:hover td{background:#172944!important}
tbody tr:last-child td{border-bottom:0}
td strong{color:#f3f6ff}
.quantity{font-weight:850;white-space:nowrap}
.category-pill{display:inline-block;padding:5px 9px;background:#1b2d49!important;border:1px solid #385071;border-radius:8px;color:#d7e5ff!important;font-size:12px;white-space:nowrap}
.status{display:inline-block;border-radius:99px;padding:5px 9px;font-size:12px;font-weight:750;white-space:nowrap}
.status.ok{background:#173d35!important;color:#8ce0bc!important}
.status.low{background:#4b2a25!important;color:#ffc0b1!important}
.badge{flex:0 0 auto;padding:6px 11px;border-radius:99px;background:#24416c!important;color:#d5e5ff!important;font-size:12px;font-weight:800;white-space:nowrap}
.empty-state{text-align:center!important;padding:34px 14px!important;color:#b4c3da!important}
.empty-state span{display:block;font-size:27px;margin-bottom:8px}.empty-state strong{color:#f2f6ff}.empty-state p{margin:5px 0 0}
.recent-list{padding:0 22px 12px}
.recent-row{display:flex;align-items:flex-start;gap:12px;padding:14px 0;background:transparent!important;border-top:1px solid #2b3f5d}
.recent-marker{flex:0 0 32px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:#203a61;color:#c5dcff;font-size:20px;font-weight:800}
.recent-content{flex:1;min-width:0}.recent-content strong{display:block;color:#f0f5ff;font-size:14px;overflow-wrap:anywhere}.recent-content .small{margin-top:3px;color:#afbed6!important;overflow-wrap:anywhere}
.dashboard-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 2px 28px;border-top:1px solid #2b3f5d;color:#aabbd4;font-size:12px}
.footer-brand{display:flex;align-items:center;gap:10px}.footer-brand img{width:42px;height:42px;object-fit:contain;background:#fff;border-radius:50%}.footer-brand strong{color:#e7edf8}.footer-brand a{color:#a9caff}
.button{border:0;border-radius:9px;background:#315fa7;color:#fff;padding:10px 15px;font-weight:750;text-decoration:none;cursor:pointer}
.button.secondary{background:#233753!important;color:#e7edf8!important;border:1px solid #3a5275}.button.danger{background:#482a30!important;color:#ffc3c3!important}
.admin table{min-width:0!important}
.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.grid-form .full{grid-column:1/-1}
label{display:block;margin-bottom:15px;color:#dce6f5;font-weight:650;font-size:14px}
input,select,textarea{width:100%;display:block;margin-top:6px;padding:11px 12px;border:1px solid #3a5071;border-radius:9px;background:#0e1a2e;color:#e7edf8;font:inherit}
@media(max-width:850px){.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.welcome-row{align-items:flex-start;flex-direction:column}.last-sync{width:100%}}
@media(max-width:600px){.wrap{width:calc(100% - 24px)}.dashboard-header .brand-logo img{width:62px;height:62px}.brand-lockup{gap:11px}.header-row{align-items:flex-start;flex-direction:column}.dashboard-header .admin-button{align-self:flex-start}.stats-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card{padding:13px}.stat-number{font-size:28px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.category-card{padding:12px;min-height:105px}.category-card.selected{padding:11px}.inventory-panel .section-heading,.recent-panel .section-heading{padding:16px;align-items:flex-start}.inventory-panel table{min-width:570px!important}.recent-list{padding:0 16px 10px}.dashboard-footer{align-items:flex-start;flex-direction:column}.grid-form{grid-template-columns:1fr}.grid-form .full{grid-column:auto}th,td{padding:11px 12px}}
