:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#111827;background:#f7f9fb;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#f7f9fb}body{font-size:15px}.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#08233d 0%,#061b30 100%);color:#fff;padding:20px 13px}.brand{height:54px;display:flex;align-items:center;gap:10px;color:#f8fbff;text-decoration:none;font-size:1.8rem;font-weight:760;letter-spacing:-.04em;padding:0 15px;margin-bottom:18px}.brand-mark{width:35px;height:35px;display:grid;place-items:center;color:#12d4c6}.brand-mark svg{width:33px;height:33px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{display:flex;align-items:center;gap:16px;height:51px;color:#d9e4ef;text-decoration:none;padding:0 15px;border-radius:10px;font-size:1rem;font-weight:560;transition:background .15s,color .15s}.sidebar nav a:hover{background:#0b3d57;color:#fff}.sidebar nav a.active{background:linear-gradient(100deg,#087e82,#079d94);color:#fff;box-shadow:0 5px 14px #001c2e55}.sidebar svg,.topbar svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.shell>main{min-width:0}.topbar{height:55px;background:#fff;border-bottom:1px solid #e1e6ec;display:flex;align-items:center;justify-content:space-between;padding:0 26px;color:#111827}.topbar>strong{font-size:1rem}.top-actions{height:100%;display:flex;align-items:center;gap:11px}.top-icon{position:relative;display:grid;place-items:center;width:36px;height:36px;background:transparent!important;color:#344054!important;border:0!important;padding:0!important;border-radius:50%!important}.top-icon:hover{background:#f0f4f7!important}.top-icon i{position:absolute;top:5px;right:6px;width:7px;height:7px;background:#078b83;border:1px solid white;border-radius:50%}.top-divider{width:1px;height:27px;background:#d8dee6;margin:0 8px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#526176;color:#fff;font-size:.72rem;font-weight:750}.user-name{font-size:.78rem;color:#344054;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inline{display:inline}.signout{background:transparent!important;color:#64748b!important;padding:6px!important;font-size:.75rem!important}article{padding:23px 29px 28px;max-width:none;width:100%}h1,h2,h3{color:#101828}.lead{color:#667085;font-size:1.05rem}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;margin-top:28px}.cards a,.panel{background:#fff;border:1px solid #dfe5ec;border-radius:12px;box-shadow:0 3px 12px #17203308}.cards a{padding:24px;text-decoration:none;color:#153b5d;font-weight:680}pre{background:#fff;border:1px solid #dfe5ec;border-radius:10px;padding:20px;white-space:pre-wrap;overflow:auto}.error{background:#fff1f1!important;border-color:#e8b5b5!important;color:#8a2020!important}.panel{padding:22px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}label{display:grid;gap:5px;margin:12px 0;color:#475467;font-size:.86rem}input,select{padding:10px 12px;border:1px solid #cbd5df;border-radius:8px;background:#fff;color:#172033;font:inherit}input:focus,select:focus{outline:2px solid #0d948833;border-color:#0d9488}button{background:#078b83;color:#fff;border:0;border-radius:8px;padding:10px 14px;font:inherit;font-weight:680;cursor:pointer}button:disabled{opacity:.58;cursor:not-allowed}.secondary{background:#e9eef4;color:#173b5f}table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #dfe5ec}th,td{text-align:left;padding:13px;border-bottom:1px solid #e7ebf0}th{background:#eef3f7;color:#344054}.badge{background:#e1f5e9;color:#216a3a;padding:4px 8px;border-radius:999px}dl{display:grid;grid-template-columns:180px 1fr;gap:12px}dt{font-weight:680;color:#536273}dd{margin:0}@media(max-width:900px){.shell{grid-template-columns:80px minmax(0,1fr)}.brand span:last-child,.sidebar nav span{display:none}.brand{padding:0;justify-content:center}.sidebar nav a{justify-content:center;padding:0}.user-name{display:none}}@media(max-width:620px){.shell{display:block}.sidebar{position:static;width:100%;height:auto}.sidebar nav{display:flex;overflow:auto}.sidebar nav a{min-width:52px}.brand{display:none}article{padding:18px}.topbar{padding:0 15px}.topbar>strong{font-size:.86rem}}

/* Keep switch tracks usable in compact grids and flex rows throughout the Dashboard. */
input[type="checkbox"][role="switch"],
input[type="checkbox"].inventory-switch,
.toggle input[type="checkbox"],
.item-overview .field-Active input[type="checkbox"] {
    min-width: 40px;
    flex-shrink: 0;
}