:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#172033;background:#f4f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}.sidebar{width:245px;background:#101c32;color:#e8eef9;padding:24px 15px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:11px;padding:4px 9px 32px}.brandmark{background:#2476d3;color:white;font-size:22px;font-weight:800;border-radius:11px;width:42px;height:42px;display:grid;place-items:center}.brand b{display:block;font-size:15px}.brand small{font-size:9px;letter-spacing:2px;color:#8ca1c1}.sidebar nav{display:grid;gap:6px}.nav{border:0;background:transparent;color:#b4c1d7;text-align:left;padding:12px 13px;border-radius:9px;font-size:13px;cursor:pointer}.nav:hover,.nav.active{background:#203454;color:#fff}.nav.active{box-shadow:inset 3px 0 #4d9cff}.sidebar-foot{margin-top:auto;font-size:11px;color:#aab8ce;padding:20px 10px 4px;line-height:1.8}.sidebar-foot span{color:#7185a5}main{min-width:0;flex:1;padding:27px clamp(18px,3vw,42px) 18px;max-width:1800px;margin:0 auto}header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}h1{font-size:27px;margin:4px 0 0;letter-spacing:-.8px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:#66809f;font-weight:800}.userpill{font-size:12px;background:white;border:1px solid #e2e8f1;border-radius:30px;padding:10px 13px;white-space:nowrap}.dot{display:inline-block;width:7px;height:7px;background:#26b47b;border-radius:50%;margin-right:7px}.welcome{background:linear-gradient(115deg,#15345d,#176fc1);border-radius:16px;padding:30px 34px;color:white;display:flex;align-items:center;justify-content:space-between;min-height:200px;overflow:hidden}.light{color:#b5d9ff}.welcome h2{font-size:29px;letter-spacing:-.7px;line-height:1.2;margin:10px 0}.welcome p{color:#d0e5fb;font-size:13px;margin-bottom:0}.hero-icon{font-size:95px;color:#91c6ff;opacity:.55;padding:0 30px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:18px 0}.stats article,.panel{background:white;border:1px solid #e3e9f2;border-radius:13px;padding:20px}.stats article span,.stats article small{display:block;color:#738197;font-size:12px}.stats article strong{font-size:30px;display:block;margin:9px 0 5px;letter-spacing:-1px}.panel{margin-bottom:18px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.panel h3,.panel-head h3{margin:0;font-size:16px}.panel-head p,.muted{font-size:12px;color:#7b8799;margin:6px 0 0}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.quick{border:1px solid #e1e8f1;background:white;border-radius:10px;padding:15px;display:flex;gap:12px;align-items:center;text-align:left;cursor:pointer;color:#1b2b42}.quick>b,.excel-card>b{display:grid;place-items:center;width:36px;height:36px;background:#eaf3ff;color:#1769b0;border-radius:9px;font-size:21px;flex-shrink:0}.quick span{flex:1;min-width:0}.quick strong,.quick small{display:block}.quick strong{font-size:12px}.quick small{font-size:10px;color:#8390a3;margin-top:5px}.quick:hover{border-color:#75a9e5}.toolbar{display:flex;gap:9px;margin-bottom:15px;flex-wrap:wrap}.toolbar input{flex:1;min-width:220px}input,select{font:inherit;border:1px solid #dce4ef;border-radius:8px;padding:10px 11px;background:white;color:#1d2a3d;min-width:0}label{display:grid;gap:7px;font-size:12px;color:#536177}button{font:inherit;border:1px solid #dbe3ed;background:white;color:#304056;padding:10px 13px;border-radius:8px;font-size:12px;cursor:pointer}button:hover{background:#f5f8fc}.primary{background:#176dc1;border-color:#176dc1;color:white}.primary:hover{background:#125da6}.hidden{display:none!important}.formgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.check{display:flex;align-items:center;display:flex;gap:8px;margin-bottom:15px}.check input{min-width:auto}.actions{display:flex;justify-content:flex-end;gap:8px}.table-panel{padding:0;overflow:hidden}.table-panel .panel-head{padding:20px 20px 0}.count{font-size:11px;color:#7a8798;background:#f1f5fa;padding:6px 9px;border-radius:20px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th{text-align:left;background:#f7f9fc;color:#718097;font-size:10px;letter-spacing:.4px;font-weight:700}th,td{padding:13px 16px;border-bottom:1px solid #edf1f6}td{color:#35445b}tbody tr:last-child td{border-bottom:0}.badge{display:inline-block;border-radius:20px;padding:5px 8px;background:#e5f7ef;color:#16784d;font-size:10px}.inline-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:20px}.inline-form label{flex:1;min-width:200px}.session-list{display:grid;gap:10px}.session{border:1px solid #e4eaf2;border-radius:9px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:10px}.session strong,.session small{display:block}.session small{font-size:11px;color:#7a8798;margin-top:5px}.excel-card{border:1px solid #e4eaf2;border-radius:10px;padding:18px}.excel-card h4{font-size:13px;margin:13px 0 5px}.excel-card p{font-size:11px;color:#7a8798;min-height:32px}.excel-card button{font-size:11px}.inline-status{font-size:12px;margin-left:12px;color:#18744d}footer{display:flex;justify-content:space-between;gap:12px;padding:15px 2px;color:#8b97a8;font-size:10px}#toast{position:fixed;right:24px;bottom:24px;background:#14263e;color:white;padding:12px 17px;border-radius:9px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:80vw}#toast.show{opacity:1}@media(max-width:850px){.sidebar{width:190px}.quick-grid{grid-template-columns:1fr}.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-icon{padding:0;font-size:65px}}@media(max-width:600px){body{display:block}.sidebar{width:100%;padding:12px}.brand{padding:2px 5px 12px}.sidebar nav{display:flex;overflow:auto}.nav{white-space:nowrap;padding:10px}.sidebar-foot{display:none}main{padding:18px 12px}header{align-items:flex-start}.userpill{font-size:10px}.welcome{padding:23px 20px}.welcome h2{font-size:25px}.hero-icon{display:none}.stats{gap:7px}.stats article{padding:12px}.stats article strong{font-size:23px}.stats article span,.stats article small{font-size:10px}.formgrid{grid-template-columns:1fr}.inline-form{display:grid}.inline-form label{width:100%}footer{display:block}footer span{display:block;margin-top:5px}}

/* Takaful Asset Management visual refresh */
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#172a3a;background:#f4f7f8}
body{background:#f4f7f8}
.sidebar{background:#112638;width:250px;padding:22px 14px}
.brandmark{background:#0f766e;border-radius:12px;box-shadow:0 5px 16px #0f766e22}
.brandmark-text{font-size:16px;letter-spacing:-.6px}
.brand b{font-size:16px;letter-spacing:-.3px}
.brand small{letter-spacing:1.6px;color:#9cb5c1}
.nav{transition:background .18s ease,color .18s ease,transform .18s ease}
.nav:hover{background:#1b3a4a;transform:translateX(2px)}
.nav.active{background:#1c4050;box-shadow:inset 3px 0 #2dd4bf}
.master-toggle{display:flex;align-items:center;justify-content:space-between}
.master-toggle .chevron{margin-left:auto;transition:transform .2s ease}
.master-toggle.expanded .chevron{transform:rotate(180deg)}
.masters-subnav{display:grid;gap:4px;overflow:hidden;max-height:260px;opacity:1;transition:max-height .24s ease,opacity .2s ease}
.masters-subnav.collapsed{max-height:0;opacity:0;pointer-events:none}
.nav.subnav{margin-left:12px;padding:10px 12px;font-size:12px;border-left:1px solid #345363;border-radius:0 8px 8px 0}
.nav.subnav.active{border-left:2px solid #2dd4bf}
.sidebar-foot{border-top:1px solid #294454;margin-top:auto;padding-top:18px;color:#d1e0e6;font-weight:700;letter-spacing:1.4px}
.sidebar-foot span{font-weight:400;letter-spacing:.3px;color:#91aeb9}
main{padding-top:25px}
.eyebrow{color:#0f766e;letter-spacing:1.5px}
.welcome{background:linear-gradient(115deg,#123044,#155e63);border-radius:16px;box-shadow:0 12px 32px #12304412;min-height:178px;transition:transform .25s ease,box-shadow .25s ease}
.welcome:hover{transform:translateY(-2px);box-shadow:0 16px 34px #1230441c}
.welcome .light{color:#99e7dc}
.welcome p{color:#d4e7e8;max-width:620px;line-height:1.65}
.hero-icon{color:#99e7dc}
.stats{grid-template-columns:minmax(240px,330px)}
.stats article,.panel{border-color:#e0e8e9;box-shadow:0 3px 12px #193b4a06}
.dashboard-stats article{padding:24px 26px}
.dashboard-stats article strong{font-size:38px;color:#123044}
.primary,.primary:hover{background:#0f766e;border-color:#0f766e;color:white}
button{transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease}
button:hover{border-color:#b8cecf}
button.primary:hover{background:#115e59;box-shadow:0 5px 14px #0f766e24;transform:translateY(-1px)}
input:focus,select:focus{outline:3px solid #0f766e1a;border-color:#0f766e}
.quick:hover{border-color:#75b9b2;box-shadow:0 7px 18px #1230440b;transform:translateY(-2px);transition:all .18s ease}
.quick>b,.excel-card>b{background:#e0f2f1;color:#0f766e}
th{background:#f1f6f6;color:#587079}
.badge{background:#dff5ee;color:#116b53}
.danger{border-color:#f0c5c2;color:#a83d36;background:#fffafa}
.danger:hover{background:#fff0ee;border-color:#dfaaa5}
.form-panel{background:#f7faf9;border:1px solid #dce9e6;border-radius:10px;padding:16px;margin-bottom:16px}
.empty-cell{text-align:center;padding:24px;color:#819197}
.table-wrap{overflow:auto}
#toast{background:#123044;border-left:3px solid #2dd4bf;box-shadow:0 10px 28px #12304424}
@media(max-width:850px){.sidebar{width:210px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.master-upload-row{display:flex;align-items:end;gap:12px;margin-top:14px;flex-wrap:wrap}
.master-upload-row label{flex:1;min-width:240px}
.master-upload-row input[type=file]{width:100%;padding:8px}
@media(max-width:600px){.master-upload-row{display:grid}.master-upload-row label{width:100%}}

/* Takaful Asset Management — high-contrast navy and teal theme */
:root {
  color: #172b42;
  background: #f3f6fa;
  font-synthesis: none;
}

body {
  background: #f3f6fa;
  color: #172b42;
}

.sidebar {
  background: #101d32;
  color: #edf3fb;
}

.brand small {
  color: #a9bdd5;
}

.nav {
  color: #c6d4e7;
}

.nav:hover,
.nav.active {
  background: #1d3553;
  color: #ffffff;
}

.nav.active {
  box-shadow: inset 4px 0 #0d9488;
}

.nav.subnav.active {
  border-left: 3px solid #0d9488;
}

.sidebar-foot {
  color: #d6e2f0;
  border-top-color: #2a4059;
}

.sidebar-foot span {
  color: #a9bdd5;
}

main {
  color: #172b42;
}

.eyebrow {
  color: #0f766e;
}

.welcome {
  background: linear-gradient(115deg, #10243c, #075e59);
  color: #ffffff;
  box-shadow: 0 12px 28px #10243c20;
}

.welcome .light,
.hero-icon {
  color: #79e0d0;
}

.welcome p {
  color: #e0eeef;
}

.panel,
.stats article,
.quick,
.excel-card {
  background: #ffffff;
  border-color: #d5dfeb;
  box-shadow: 0 3px 12px #10243c0a;
}

.stats article span,
.stats article small,
.muted {
  color: #53677f;
}

.stats article strong {
  color: #142a43;
}

button.primary,
.primary,
.primary:hover {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
}

button.primary:hover,
.primary:hover {
  background: #0f766e;
  border-color: #0f766e;
}

button {
  transition: background .16s ease, border-color .16s ease,
    transform .16s ease, box-shadow .16s ease;
}

button:hover {
  border-color: #91aaaF;
}

input,
select,
textarea {
  background: #ffffff;
  color: #172b42;
  border-color: #cbd7e5;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #0d94881f;
  border-color: #0d9488;
}

th {
  background: #eaf0f6;
  color: #344c66;
}

td {
  color: #293f57;
}

.quick:hover {
  border-color: #0d9488;
  box-shadow: 0 7px 18px #10243c12;
}

.quick > b,
.excel-card > b {
  background: #d7f3ee;
  color: #086e66;
}

.badge {
  background: #d7f3e8;
  color: #126443;
}

.danger {
  background: #fff7f6;
  color: #a52f2a;
  border-color: #edc4c0;
}

#toast {
  background: #101d32;
  color: #ffffff;
  border-left: 4px solid #0d9488;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Official Takaful Oman sidebar logo */
.official-brand {
  justify-content: center;
  align-items: center;
  padding: 8px 8px 26px;
}
.official-logo {
  display: block;
  width: 108px;
  height: 108px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
}


/* Accessible, encoding-safe interface icons */
.ui-icon{display:inline-flex;align-items:center;justify-content:center;width:19px;min-width:19px;margin-right:7px;font-size:16px;line-height:1;color:currentColor;font-family:system-ui,sans-serif;font-weight:700;vertical-align:-1px}
.ui-chevron{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;font-size:17px;line-height:1;transition:transform .2s ease}
.master-toggle.expanded .ui-chevron{transform:rotate(180deg)}
.quick-arrow{color:#0f766e;font-size:18px;margin-left:8px}
.quick-icon-symbol{font-size:22px;line-height:1}
.nav .ui-icon{opacity:.9}
@media(max-width:600px){.nav .ui-icon{margin-right:4px}}

/* Reliable inline SVG icon system: independent of font/emoji encoding. */
.icon-svg{display:inline-block;width:1em;height:1em;vertical-align:-0.16em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.ui-icon .icon-svg,.ui-icon>.icon-svg{width:1.05em;height:1.05em}.hero-icon .icon-svg{width:1.4em;height:1.4em}.quick-icon-symbol .icon-svg{width:1.25em;height:1.25em}.quick-arrow .icon-svg{width:1em;height:1em}.chevron .icon-svg{width:.9em;height:.9em}


/* Takaful Oman blue theme + readability pass */
:root {
  --takaful-blue: #1769c2;
  --takaful-blue-dark: #124f94;
  --takaful-blue-light: #e8f2ff;
  --takaful-accent: #3b8eea;
  --takaful-ink: #172b45;
  --takaful-muted: #5f7188;
  --takaful-border: #d6e2f0;
  color: var(--takaful-ink);
  background: #f3f7fc;
}
body { font-size: 15px; color: var(--takaful-ink); background: #f3f7fc; }
.sidebar { background: #102b4c; }
.brandmark { background: var(--takaful-blue); }
.nav { font-size: 14px; padding: 13px 14px; }
.nav:hover, .nav.active { background: #1c416b; color: #fff; }
.nav.active { box-shadow: inset 3px 0 #64b0ff; }
.sidebar-foot { font-size: 12px; }
main { font-size: 15px; }
h1 { font-size: clamp(25px, 2.1vw, 31px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p, label, .muted, .help, .hint { font-size: 14px; }
small, .small, .meta, .sidebar-foot span { font-size: 12px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea { font-size: 14px; }
table { font-size: 14px; }
th { font-size: 12px; }
td { font-size: 14px; }
.badge, .pill { font-size: 12px; }
.primary, button.primary, .btn-primary {
  background: var(--takaful-blue);
  border-color: var(--takaful-blue);
  color: #fff;
}
.primary:hover, button.primary:hover, .btn-primary:hover {
  background: var(--takaful-blue-dark);
  border-color: var(--takaful-blue-dark);
}
a { color: var(--takaful-blue); }
:focus-visible { outline: 3px solid #83bdff; outline-offset: 2px; }


/* Authentication styles merged into the current Takaful blue layout */
.login-screen { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #edf4fb 0%, #f8fafc 55%, #e5eef8 100%); }
.login-card { width: min(100%, 430px); padding: 34px; background: #fff; border: 1px solid #dbe5f0; border-radius: 18px; box-shadow: 0 24px 70px rgba(16,43,76,.16); display: flex; flex-direction: column; gap: 16px; }
.login-brand { display:flex; align-items:center; gap:12px; color:#102b4c; margin-bottom:8px; }
.login-brand .brandmark { display:grid; place-items:center; width:46px; height:46px; border-radius:12px; background:#1769c2; color:#fff; font-size:25px; font-weight:800; }
.login-brand strong,.login-brand small { display:block; letter-spacing:.8px; }
.login-brand small { color:#64748b; font-size:10px; margin-top:3px; }
.login-card h1 { margin:0; color:#102b4c; font-size:28px; }
.login-card p { margin:-10px 0 2px; color:#64748b; }
.login-card label { display:flex; flex-direction:column; gap:7px; font-weight:600; color:#334155; }
.login-card input:not([type=checkbox]) { width:100%; box-sizing:border-box; min-height:44px; border:1px solid #cbd5e1; border-radius:8px; padding:10px 12px; font-size:15px; }
.login-card .remember-row { flex-direction:row; align-items:center; font-weight:400; font-size:13px; }
.login-submit { min-height:46px; width:100%; }
.login-error { color:#b91c1c; font-size:13px; min-height:0; }
.login-foot { color:#64748b; text-align:center; line-height:1.5; }
.header-user { display:flex; align-items:center; gap:12px; }
.header-user button { border:1px solid #cbd5e1; border-radius:8px; padding:8px 12px; background:#fff; color:#334155; }
body:not(.authenticated) > aside, body:not(.authenticated) > main, body:not(.authenticated) #toast { display:none !important; }
body.view-only .admin-only { display:none !important; }
body.view-only button[onclick*="edit"], body.view-only button[onclick*="delete"], body.view-only button.primary, body.view-only #number-settings button { display:none !important; }
.login-screen.hidden { display:none !important; }


/* Targeted fixes: report cards and header alignment */
#page-reports .panel-head { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
#page-reports #report-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
#page-reports #report-actions.hidden { display:none !important; }
#page-reports #report-summary-cards.stats { display:grid; grid-template-columns:repeat(3,minmax(220px,1fr)); gap:16px; align-items:stretch; }
#page-reports #report-summary-cards.stats.hidden { display:none !important; }
#page-reports #report-summary-cards article { min-width:0; width:auto; box-sizing:border-box; }
@media(max-width:900px) { #page-reports #report-summary-cards.stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { #page-reports #report-summary-cards.stats { grid-template-columns:1fr; } }


/* Consolidated usability fixes: action dialogs and asset toolbar */
.dashboard-kpis{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}
.bulk-asset-toolbar{position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 16px;margin:0;background:#f7fafc;border:1px solid #dbe6f2;border-radius:12px}
.bulk-asset-toolbar>label{display:flex;align-items:center;gap:8px;white-space:nowrap}
.bulk-asset-toolbar>label input{min-width:auto;width:18px;height:18px}
.bulk-asset-toolbar>span{font-weight:600;color:#314b68;flex:1;text-align:center}
.bulk-asset-toolbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.action-modal-backdrop{position:fixed;inset:0;z-index:10000;background:rgba(13,29,48,.58);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(3px)}
.action-modal{width:min(760px,100%);max-height:min(85vh,850px);overflow:auto;background:#fff;border:1px solid #dbe5f1;border-radius:18px;box-shadow:0 24px 80px rgba(10,28,50,.28);color:#172b42}
.action-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px 26px 18px;border-bottom:1px solid #e8eef5}
.action-modal-head h2{font-size:23px;margin:6px 0 5px;letter-spacing:-.4px}
.action-modal-head p{margin:0;color:#718197;font-size:13px}
.action-modal-head>button{font-size:24px;line-height:1;padding:6px 11px;border:0;background:#f1f5f9;border-radius:10px}
.action-modal-content{padding:20px 26px;max-height:55vh;overflow:auto}
.action-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.action-form-grid label{display:grid;gap:7px;font-size:12px;font-weight:650;color:#40536c}
.action-form-grid input,.action-form-grid textarea{width:100%;font:inherit;font-weight:400;padding:11px 12px;border:1px solid #d5e0ed;border-radius:9px;background:#fbfdff}
.action-form-grid .full{grid-column:1/-1}
.action-selected-assets{max-height:150px;overflow:auto;border:1px solid #e2eaf3;border-radius:10px;margin-bottom:18px}
.action-selected-assets>div{display:flex;gap:12px;align-items:center;padding:9px 12px;border-bottom:1px solid #eef2f7;font-size:12px}
.action-selected-assets>div:last-child{border-bottom:0}
.action-selected-assets strong{color:#164e89;min-width:100px}
.action-selected-assets span{color:#60718a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.action-modal-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 26px 22px;border-top:1px solid #e8eef5}
.action-modal-footer>span{font-size:12px;color:#b45309;overflow-wrap:anywhere}
.action-modal-footer>div{display:flex;gap:8px;margin-left:auto}
.action-modal-footer button{padding:10px 15px;font-size:13px}
.action-modal-footer button:disabled{opacity:.55;cursor:wait}
.history-table-wrap{overflow:auto;border:1px solid #e2eaf3;border-radius:10px}
.history-table-wrap table{white-space:normal;min-width:600px}
.history-table-wrap th,.history-table-wrap td{padding:11px 12px;font-size:12px}
.action-error{padding:14px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;line-height:1.6}
.action-error p{margin-bottom:0}
@media(max-width:1000px){.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.bulk-asset-toolbar>span{text-align:left}}
@media(max-width:650px){.action-modal-head,.action-modal-content{padding:18px}.action-modal-footer{padding:14px 18px;align-items:flex-start;flex-direction:column}.action-modal-footer>div{margin-left:0;width:100%;justify-content:flex-end}.action-form-grid{grid-template-columns:1fr}.action-form-grid .full{grid-column:auto}.bulk-asset-toolbar>div{width:100%}.bulk-asset-toolbar>div button{flex:1}}


/* Consolidated UI refinements: compact status donut, responsive warranty cards, aligned check-in dialog */
.dashboard-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.dashboard-chart-panel{min-width:0}
.status-chart-layout{display:flex;align-items:center;justify-content:center;gap:28px;min-height:220px;padding:10px 8px}
.status-donut{position:relative;flex:0 0 190px;width:190px;height:190px;border-radius:50%;display:grid;place-items:center;background:#e7edf4;box-shadow:inset 0 0 0 1px #e4eaf1}
.status-donut::before{content:"";position:absolute;inset:27%;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #edf1f5}
.status-donut span{position:relative;z-index:1;font-size:29px;font-weight:750;letter-spacing:-.8px;color:#16324f}
.chart-legend{display:grid;gap:12px;min-width:145px;flex:1}
.legend-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:9px;font-size:12px;color:#53677f}
.legend-dot{width:9px;height:9px;border-radius:50%;display:block}
.legend-row b{font-size:13px;color:#16324f}
.warranty-summary-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:14px 0 18px!important}
.warranty-summary-grid article{min-width:0;padding:14px 16px!important}
.warranty-summary-grid article strong{font-size:27px!important;margin:6px 0 3px!important}
#page-warranty .panel{padding:18px}
#page-warranty .panel-head{margin-bottom:12px}
.asset-created-meta{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 15px;margin-bottom:14px;border:1px solid #dce8f4;border-radius:10px;background:#f5f9fd;font-size:12px}
.asset-created-meta span{color:#6d7e92}.asset-created-meta strong{color:#163b60;text-align:right}
.bulk-modal-backdrop{position:fixed;inset:0;z-index:10010;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(12,29,49,.58);backdrop-filter:blur(3px)}
.bulk-modal{width:min(760px,100%);max-height:min(88vh,850px);display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dce6f1;border-radius:18px;box-shadow:0 24px 80px rgba(10,28,50,.3);color:#172b42}
.bulk-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 24px 16px;border-bottom:1px solid #e8eef5}
.bulk-modal-head h2{margin:5px 0;font-size:22px;letter-spacing:-.5px}.bulk-modal-head p{margin:0;color:#718197;font-size:13px}.bulk-modal-head>button{font-size:24px;line-height:1;padding:5px 10px;border:0;background:#f1f5f9;border-radius:9px}
.bulk-modal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 24px;background:#f7fafd;border-bottom:1px solid #e7eef6}
.bulk-modal-toolbar label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:650;color:#3f536b}.bulk-modal-toolbar input,.bulk-checkin-item input{min-width:17px;width:17px;height:17px;padding:0;accent-color:#176dc1;flex:0 0 auto}.bulk-modal-toolbar span{font-size:12px;color:#60738b;font-weight:650}
.bulk-modal-list{padding:8px 20px;overflow:auto;min-height:90px;max-height:42vh;display:grid;gap:7px}
.bulk-checkin-item{display:flex;align-items:center;gap:13px;padding:12px 13px;border:1px solid #e0e8f1;border-radius:11px;background:#fff;cursor:pointer;min-width:0}
.bulk-checkin-item:hover{border-color:#a8c8e9;background:#f8fbff}.bulk-checkin-copy{display:grid;gap:4px;flex:1;min-width:0}.bulk-checkin-copy strong{font-size:13px;color:#183b60;overflow-wrap:anywhere}.bulk-checkin-copy small{font-size:11px;color:#708198;line-height:1.4;white-space:normal}.bulk-checkin-copy small i{font-style:normal;padding:0 4px;color:#9aa9ba}.bulk-checkin-state{flex:0 0 auto;border-radius:20px;padding:5px 8px;background:#fff1dd;color:#9a5a08;font-size:10px;font-weight:700}
.bulk-notes-label{display:grid;gap:7px;padding:0 24px 16px;font-size:12px;font-weight:650;color:#40536c}.bulk-notes-label label{display:block;font-size:12px;font-weight:650;color:#40536c}.bulk-notes-label label span{font-weight:400;color:#8391a3}.bulk-notes-label textarea{width:100%;resize:vertical;min-height:56px;max-height:110px;padding:10px 12px;border:1px solid #d5e0ed;border-radius:9px;background:#fbfdff;font:inherit;font-weight:400}
.bulk-modal-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px 18px;border-top:1px solid #e8eef5;background:#fff}.bulk-modal-actions>span{font-size:11px;color:#b45309;line-height:1.4;overflow-wrap:anywhere;max-width:55%}.bulk-modal-actions>div{display:flex;gap:8px;margin-left:auto}.bulk-modal-actions button{padding:10px 14px}.bulk-modal-actions button:disabled{opacity:.6;cursor:wait}
.bulk-asset-toolbar{margin-top:8px;margin-bottom:10px;padding:9px 12px;position:relative;top:auto}.bulk-asset-toolbar>div button{padding:9px 12px}
@media(max-width:1100px){.status-chart-layout{gap:18px}.status-donut{flex-basis:155px;width:155px;height:155px}.warranty-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:800px){.dashboard-panels{grid-template-columns:1fr}.status-chart-layout{justify-content:flex-start}.warranty-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.status-chart-layout{flex-direction:column}.chart-legend{width:100%}.bulk-modal-backdrop{padding:8px}.bulk-modal-head,.bulk-modal-toolbar{padding-left:16px;padding-right:16px}.bulk-modal-list{padding:8px 12px}.bulk-notes-label{padding:0 16px 14px}.bulk-modal-actions{padding:12px 16px;align-items:stretch;flex-direction:column}.bulk-modal-actions>span{max-width:none}.bulk-modal-actions>div{width:100%;justify-content:flex-end}.bulk-checkin-state{display:none}.warranty-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* Technowave product attribution with the customer logo retained. */
.official-brand{flex-direction:column;gap:10px;padding:8px 8px 26px}
.official-brand-caption{max-width:190px;text-align:center;color:#d8e7f5;font-size:12px;font-weight:650;line-height:1.4;letter-spacing:.2px}
.login-brand{gap:11px}
.login-brand small{letter-spacing:.7px}
.dashboard-chart-panel .chart-legend{max-height:250px;overflow:auto;padding-right:4px}
.dashboard-chart-panel .legend-row{grid-template-columns:10px minmax(0,1fr) auto;gap:8px}
.dashboard-chart-panel .legend-row span{overflow-wrap:anywhere;line-height:1.35}
.category-donut{flex-basis:175px;width:175px;height:175px}
@media(max-width:1100px){.category-donut{flex-basis:150px;width:150px;height:150px}}
@media(max-width:600px){.official-brand{flex-direction:row;justify-content:flex-start;padding:2px 5px 12px}.official-logo{width:58px;height:58px}.official-brand-caption{max-width:130px;text-align:left}.dashboard-chart-panel .chart-legend{max-height:none}}

.branding-preview{display:flex;align-items:center;gap:18px;padding:16px;border:1px solid #dfe7f1;border-radius:12px;margin:8px 0 18px;background:#f8fafc}.branding-preview img{width:92px;height:92px;object-fit:contain;background:#fff;border-radius:10px;padding:8px;border:1px solid #e1e8f0}.branding-preview p{margin:6px 0;color:#5f7086}.superuser-only.hidden{display:none!important}.dashboard-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}.status-chart-layout{display:flex;align-items:center;justify-content:center;gap:24px;min-height:220px;padding:10px 8px}.status-donut{flex:0 0 210px;width:210px;height:210px;border-radius:50%;position:relative;display:grid;place-items:center}.status-donut:after{content:"";position:absolute;width:92px;height:92px;background:#fff;border-radius:50%}.status-donut>span{z-index:1;font-size:26px;font-weight:700}.chart-legend{flex:1;min-width:0}.legend-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px;font-size:12px;margin:10px 0}.legend-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-dot{width:9px;height:9px;border-radius:50%}.warranty-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.warranty-summary-grid article{min-width:0}@media(max-width:1000px){.warranty-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.status-chart-layout{flex-direction:column}.status-donut{flex-basis:180px;width:180px;height:180px}}@media(max-width:700px){.dashboard-panels{grid-template-columns:1fr}.warranty-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.asset-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;border-top:1px solid #edf1f6;color:#64748b;font-size:12px}.asset-pagination>div{display:flex;align-items:center;gap:10px}.asset-pagination button{padding:7px 10px}.asset-pagination button:disabled{opacity:.4;cursor:not-allowed}.asset-actions{white-space:nowrap}.asset-actions button{padding:5px 8px;margin-right:4px;font-size:11px}.location-pill{display:inline-block;background:#f1f5f9;padding:3px 8px;border-radius:4px}.serial-cell{font-size:11px;color:#64748b}.table-scroll table{table-layout:auto}.table-scroll th,.table-scroll td{padding:10px 11px}.table-scroll{overflow-x:auto}.table-scroll table{min-width:100%;width:max-content}@media(min-width:1100px){.table-scroll table{width:100%;table-layout:auto}.table-scroll th,.table-scroll td{padding:10px 9px}.asset-actions button{padding:4px 6px;margin-right:2px}}

/* Branded application dialogs replace browser alert/confirm/prompt popups. */
.app-dialog-backdrop{position:fixed;inset:0;z-index:20000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(8,25,45,.58);backdrop-filter:blur(4px)}
.app-dialog-backdrop.hidden{display:none!important}.app-dialog{width:min(440px,100%);padding:25px 26px 20px;border:1px solid #dce6f1;border-radius:18px;background:#fff;color:#173451;box-shadow:0 24px 80px rgba(6,24,45,.32);animation:appDialogIn .16s ease-out}.app-dialog-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e8f3ff;color:#176dc1;font-weight:800;font-size:19px;margin-bottom:15px}.app-dialog h2{font-size:20px;line-height:1.3;margin:0 0 9px;color:#153553}.app-dialog p{font-size:14px;line-height:1.6;color:#5c7086;margin:0 0 20px;white-space:pre-line;overflow-wrap:anywhere}.app-dialog label{display:grid;gap:7px;margin:0 0 16px;font-size:12px;font-weight:650;color:#405670}.app-dialog label.hidden{display:none}.app-dialog input{width:100%;padding:11px 12px;border:1px solid #cdd9e7;border-radius:9px;font:inherit;color:#173451;outline:none}.app-dialog input:focus{border-color:#3687d9;box-shadow:0 0 0 3px rgba(54,135,217,.14)}.app-dialog footer{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.app-dialog footer button{padding:10px 16px;border-radius:9px;border:1px solid #d4deea;background:#fff;color:#294863;font-weight:650;cursor:pointer}.app-dialog footer button.primary{background:#176dc1;border-color:#176dc1;color:#fff}.app-dialog footer button.danger{background:#b42318;border-color:#b42318;color:#fff}.app-dialog footer button.hidden{display:none}.app-dialog-error{font-size:12px;color:#b42318}@keyframes appDialogIn{from{opacity:0;transform:translateY(5px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
