:root {
  --canvas: #cfd2d4;
  --app: #ffffff;
  --sidebar: #f7f8f7;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --surface-warm: #fff8f2;
  --text: #17191b;
  --text-2: #555b61;
  --muted: #92989e;
  --line: #e6e8e8;
  --line-strong: #d8dbdc;
  --orange: #f47b35;
  --orange-dark: #d95f1f;
  --orange-soft: #fff0e5;
  --green: #ff7a21;
  --green-soft: #fff0e6;
  --red: #dc5260;
  --red-soft: #fcecef;
  --amber: #d99a2b;
  --shadow: 0 18px 50px rgba(30, 35, 39, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--text); background: var(--canvas); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--text); cursor: pointer; }
button:hover { border-color: #bfc3c5; background: var(--surface-soft); }
input, select, textarea { width: 100%; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; outline: none; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft); }
textarea { min-height: 82px; padding-top: 9px; resize: vertical; }
label { display: grid; gap: 6px; color: var(--text-2); font-size: 11px; font-weight: 600; }
h1, h2, h3, h4, p { margin: 0; letter-spacing: 0; }

/* Authentication */
.login-bg { min-height: 100vh; display: grid; place-items: center; padding: 38px; background: #cdd0d2; }
.login-card { width: min(920px, 100%); min-height: 590px; display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; border: 1px solid rgba(0,0,0,.08); border-radius: 2px; background: #fff; box-shadow: var(--shadow); }
.login-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; text-align: center; background: #f5f6f5; border-right: 1px solid var(--line); }
.shield-wrap { position: relative; width: 180px; height: 180px; display: grid; place-items: center; }
.shield { width: 122px; height: 138px; display: grid; place-items: center; clip-path: polygon(50% 0, 92% 20%, 92% 55%, 50% 100%, 8% 55%, 8% 20%); background: #202326; color: #fff; font-size: 45px; }
.float-lock, .float-check { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.08); font-weight: 800; }
.float-lock { left: 8px; bottom: 38px; color: var(--orange); }
.float-check { right: 16px; top: 20px; color: var(--green); }
.login-art h2 { font-size: 21px; }
.login-art p { max-width: 260px; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.brand-mark { display: flex; align-items: center; gap: 8px; margin-top: 18px; text-align: left; font-size: 11px; }
.brand-mark span { width: 42px; height: 30px; background: var(--orange); clip-path: polygon(50% 0, 100% 50%, 76% 50%, 50% 24%, 24% 50%, 0 50%); }
.login-art small { color: var(--muted); font-size: 10px; }
.login-form { display: flex; flex-direction: column; justify-content: center; gap: 17px; padding: 48px 58px; }
.signup-row { align-self: end; color: var(--muted); font-size: 11px; }
.signup-row button { min-height: 26px; margin-left: 6px; color: var(--orange-dark); }
.login-form h1 { max-width: 470px; font-size: 32px; line-height: 1.16; }
.login-form > p { color: var(--text-2); font-size: 12px; }
.password-field { position: relative; display: block; }
.password-field button { position: absolute; top: 2px; right: 3px; min-height: 27px; border: 0; background: transparent; color: var(--muted); }
.primary { border-color: var(--orange); background: var(--orange); color: #fff; font-weight: 700; }
.primary:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.primary.small { min-height: 30px; background: var(--orange); }
.divider { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--muted); font-size: 10px; }
.divider:before, .divider:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.socials { display: flex; justify-content: center; gap: 8px; }
.socials button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff !important; color: var(--text) !important; font-size: 11px; font-weight: 800; }

/* Application shell */
.workspace { min-height: 100vh; display: grid; grid-template-columns: 198px minmax(0, 1fr); background: var(--app); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: auto; border-right: 1px solid var(--line); background: var(--sidebar); }
.logo { min-height: 56px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.logo-badge { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; background: #202326; color: #fff; font-weight: 800; box-shadow: none; }
.logo h3 { font-size: 13px; }
.logo p { margin-top: 2px; color: var(--muted); font-size: 9px; }
nav { flex: 1; padding: 12px 8px; }
.nav-group { margin-bottom: 1px; }
.nav-button { width: 100%; display: grid; grid-template-columns: 20px 1fr 14px; align-items: center; min-height: 30px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: #4f555a; text-align: left; font-size: 11px; }
.nav-button:hover { background: #f0f1f0; }
.nav-button.active { background: transparent; color: #0c0d0e; font-weight: 700; }
.nav-button.active:before { content: ""; position: absolute; left: 0; width: 3px; height: 18px; border-radius: 0 2px 2px 0; background: var(--orange); }
.nav-button { position: relative; }
.nav-button .icon { color: #70767b; }
.nav-button.active .icon { color: var(--orange); }
.nav-arrow { width: 24px; height: 30px; display: grid; place-items: center; justify-self: end; margin-right: -6px; border-radius: 6px; }
.nav-arrow:hover { background: #e8ebe9; }
.nav-arrow .icon { transition: transform .18s ease; }
.nav-arrow.expanded .icon { transform: rotate(180deg); }
.subnav { width: calc(100% - 30px); margin: 0 0 6px 30px; padding: 2px 0 2px 12px; border-left: 1px solid var(--line-strong); }
.subnav button { position: relative; display: block; width: 100%; min-height: 30px; margin: 0; overflow: hidden; padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: #73797e; text-align: left; text-overflow: ellipsis; font-size: 10px; line-height: 1.25; white-space: nowrap; }
.subnav button.active { outline: 0; background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; }
.subnav button.active:before { content: ""; position: absolute; left: -13px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.collapse { min-height: 38px; margin: 8px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.collapse:hover { background: #f3f5f4; color: var(--text); }
.app-area { min-width: 0; background: #fff; }
.topbar { position: sticky; top: 0; z-index: 5; height: 56px; display: grid; grid-template-columns: minmax(240px, 500px) 36px max-content; gap: 10px; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.global-search { position: relative; }
.global-search .icon { position: absolute; left: 9px; top: 7px; color: var(--muted); }
.global-search input { height: 30px; padding-left: 31px; border-color: transparent; background: #f7f8f7; }
.notification { position: relative; min-width: 30px; padding: 0; border: 0; background: transparent; }
.notification:after { content: ""; position: absolute; right: 5px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.profile { display: grid; grid-template-columns: 30px 1fr 14px; grid-template-rows: auto auto; align-items: center; min-width: 168px; padding: 0 6px; border: 0; background: transparent; text-align: left; }
.profile span { grid-row: 1 / span 2; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); font-size: 10px; font-weight: 800; }
.profile b { font-size: 10px; }
.profile small { color: var(--muted); font-size: 9px; }
.profile .icon { grid-column: 3; grid-row: 1 / span 2; }
.content { max-width: 1600px; padding: 18px 14px 44px; }
.page-head { min-height: 42px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.page-head h1 { font-size: 18px; font-weight: 700; }
.page-head p { max-width: 720px; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* KPI strip */
.stats { display: grid; gap: 0; margin-bottom: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { min-height: 78px; padding: 10px 12px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #fff; overflow: hidden; }
.stat:last-child { border-right: 0; }
.stat:before { display: none; }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stat p { color: var(--text-2); font-size: 10px; }
.stat-value { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.stat h2 { font-size: 20px; line-height: 1; }
.stat small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.stat em { display: none; }
.kpi-flag { display: inline-flex; color: var(--green); font-size: 11px; font-style: normal; font-weight: 800; }
.stat.down .kpi-flag { color: var(--red); }
.stat.purple { background: #fff; }

/* Content surfaces */
.dashboard-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.panel { padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.panel.wide { grid-row: span 2; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.panel-title h4, .panel h4 { font-size: 12px; }
.panel-title button { min-height: 24px; border: 0; background: transparent; color: var(--text-2); font-size: 10px; }
.alert-row, .mini-row { margin-top: 0; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.alert-row:last-child, .mini-row:last-child { border-bottom: 0; }
.alert-row b, .mini-row b { font-size: 10px; }
.alert-row p, .mini-row p { margin-top: 3px; color: var(--text-2); font-size: 10px; }
.alert-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.mini-row { display: grid; grid-template-columns: 1fr auto; }
.mini-row p { grid-column: 1 / 3; }
.mini-row span { color: var(--muted); font-size: 9px; }
.mini-row strong { font-size: 10px; }
.pill, .badge { display: inline-flex; align-items: center; justify-content: center; min-height: 19px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--text-2); font-size: 8px; font-weight: 700; white-space: nowrap; text-transform: uppercase; }
.badge.green { border-color: #ccebd7; background: var(--green-soft); color: #258b52; }
.badge.amber { border-color: #f1dfbd; background: #fff8e8; color: #9d6c16; }
.badge.red { border-color: #f0cfd4; background: var(--red-soft); color: #b33e4b; }
.snapshot { display: grid; gap: 4px; }
.snapshot strong { font-size: 17px; }
.snapshot p { color: var(--muted); font-size: 9px; }

/* Filters and tables */
.filter-card { margin-bottom: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.filter-card.compact { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.filter-card.compact > * { width: auto; min-width: 125px; }
.filter-card.compact input { flex: 1; min-width: 210px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(135px, 1fr)); gap: 6px; }
.table-panel { margin-bottom: 10px; padding: 0; overflow: hidden; border-radius: 4px; }
.table-panel h4 { padding: 10px; border-bottom: 1px solid var(--line); font-size: 11px; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { height: 34px; padding: 7px 9px; border-bottom: 1px solid #f0f1f1; text-align: left; vertical-align: middle; font-size: 9px; }
th { background: #fbfbfb; color: var(--muted); font-size: 8px; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
td { color: #3f4448; }
tbody tr:hover { background: #fffaf6; }
.row-actions { display: flex; gap: 4px; }
.row-actions button { min-height: 23px; padding: 0 7px; font-size: 8px; }
.risk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; padding: 7px 9px; border: 1px solid var(--line); font-size: 9px; }
.risk span { color: var(--text-2); }
.split-panel { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 10px; }
.asset-list, .detail-pane { padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.toolbar { display: grid; grid-template-columns: 1fr 150px; gap: 6px; margin-bottom: 6px; }
.segments { display: flex; gap: 4px; margin-bottom: 6px; }
.segments button { min-height: 25px; font-size: 9px; }
.asset-card { width: 100%; min-height: 70px; display: grid; gap: 2px; margin-bottom: 4px; padding: 8px; border-color: var(--line); text-align: left; }
.asset-card.active { border-color: var(--orange); background: var(--surface-warm); }
.asset-card span, .asset-card small { color: var(--muted); font-size: 9px; }
.asset-card em { color: var(--orange-dark); font-size: 9px; font-style: normal; font-weight: 700; }
.detail-pane dl { display: grid; grid-template-columns: 120px 1fr; gap: 9px; margin-top: 16px; font-size: 10px; }
.detail-pane dt { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.span2 { grid-column: 1 / -1; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.bars { height: 150px; display: flex; align-items: end; gap: 14px; padding: 18px; border-radius: 3px; background: #fbfbfb; }
.bars span { flex: 1; border-radius: 1px 1px 0 0; background: var(--orange); }
.donut { position: relative; width: 130px; height: 130px; margin: 14px auto; border-radius: 50%; background: conic-gradient(var(--orange) 0 68%, #ffd6bd 68% 86%, #eceeee 86% 100%); }
.donut:after { content: ""; position: absolute; inset: 30px; border-radius: 50%; background: #fff; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.role-card span, .role-card p { color: var(--muted); font-size: 9px; }
.role-card b { display: block; margin: 6px 0 2px; font-size: 11px; }
.avatar { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 6px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); font-size: 8px; font-weight: 800; }
.current-fy { margin-bottom: 10px; padding: 14px; border: 1px solid #fac9aa; border-radius: 5px; background: var(--surface-warm); color: var(--text); }
.current-fy span { color: var(--orange-dark); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.current-fy h2 { margin-top: 4px; font-size: 23px; }
.current-fy p { margin: 3px 0 10px; color: var(--muted); font-size: 9px; }
.current-fy div { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10px; }

/* Dialogs */
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; background: rgba(31, 34, 36, .38); }
.modal { position: relative; width: min(540px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 18px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; box-shadow: 0 24px 65px rgba(0,0,0,.24); }
.modal.large { width: min(900px, 100%); }
.modal h2 { font-size: 17px; }
.modal > p { margin: 5px 0 12px; color: var(--muted); font-size: 10px; }
.modal-section { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.modal-section h3 { margin: 0 0 9px; font-size: 11px; }
.hint { min-height: 12px; color: var(--muted); font-size: 8px; font-weight: 500; }
.modal-close { position: absolute; top: 9px; right: 9px; width: 27px; min-height: 27px; padding: 0; border: 0; background: transparent; font-size: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.upload-modal { width: min(580px, 100%); }
.upload-zone { min-height: 190px; display: grid; place-items: center; gap: 7px; margin: 13px 0; padding: 18px; border: 1px dashed #cfd3d5; border-radius: 4px; background: #fbfbfb; text-align: center; }
.upload-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 5px; background: var(--orange-soft); color: var(--orange-dark); font-size: 25px; font-weight: 900; }
.upload-zone small { color: var(--muted); font-size: 9px; }
.upload-zone input { max-width: 300px; padding: 6px; background: #fff; }
.upload-help { padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.upload-help h4 { margin-bottom: 5px; font-size: 10px; }
.upload-help ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 9px; }
#toast { position: fixed; right: 14px; bottom: 14px; z-index: 30; transform: translateY(16px); opacity: 0; pointer-events: none; padding: 9px 12px; border-radius: 4px; background: #202326; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 10px; transition: .16s ease; }
#toast.show { transform: translateY(0); opacity: 1; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; min-width: 16px; }

.is-collapsed { grid-template-columns: 58px minmax(0, 1fr); }
.is-collapsed .logo div, .is-collapsed .nav-button span, .is-collapsed .subnav, .is-collapsed .collapse span { display: none; }
.is-collapsed .nav-button { grid-template-columns: 1fr; justify-items: center; }
.is-collapsed .collapse { width: 42px; justify-content: center; margin: 8px; padding: 0; border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .login-card { grid-template-columns: 1fr; }
  .login-art { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; max-height: 330px; }
  .topbar { height: auto; grid-template-columns: 1fr 34px; padding: 9px; }
  .profile { grid-column: 1 / -1; }
  .stats.four, .stats.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .report-grid, .role-grid, .split-panel { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .login-bg { padding: 0; }
  .login-card { min-height: 100vh; }
  .login-form, .login-art { padding: 28px 20px; }
  .shield-wrap { width: 150px; height: 150px; }
  .page-head { display: grid; }
  .actions { justify-content: start; }
  .stats.four, .stats.three, .filter-grid, .form-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .content { padding: 14px 9px 36px; }
}

/* Final shared shell and KPI rules */
.topbar { display: flex; justify-content: flex-end; }
.stat h2, .stat-value h2 { color: #111; font-weight: 800 !important; }
@media (max-width: 700px) {
  .topbar { grid-template-columns: 1fr 42px; }
}

/* Sequence-inspired orange and black system */
:root {
  --canvas: #e7eaee;
  --app: #fbfcfc;
  --sidebar: #f4f6f5;
  --surface-soft: #f6f8f7;
  --surface-warm: #fff5ed;
  --text: #111413;
  --text-2: #4f5753;
  --muted: #8d9591;
  --line: #e1e5e3;
  --line-strong: #d7dcda;
  --orange: #ff7a21;
  --orange-dark: #d85b0b;
  --orange-soft: #fff0e6;
  --green: #ff7a21;
  --green-soft: #fff0e6;
  --shadow: 0 2px 7px rgba(20, 27, 24, .045), 0 1px 2px rgba(20, 27, 24, .035);
  font-size: 14px;
}

body { background: var(--canvas); }
button { min-height: 34px; padding: 0 12px; border-radius: 8px; background: #fff; }
input, select, textarea { min-height: 36px; border-radius: 8px; background: #fff; }
label { font-size: 12px; }
.workspace { grid-template-columns: 246px minmax(0, 1fr); background: #fbfcfc; }
.sidebar { background: var(--sidebar); }
.logo { min-height: 72px; padding: 12px 18px; }
.logo-badge { width: 36px; height: 36px; border-radius: 10px; background: #171a18; }
.logo h3 { font-size: 16px; }
.logo p { font-size: 10px; }
nav { padding: 18px 12px; }
.nav-group { margin-bottom: 4px; }
.nav-button { min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: 12px; }
.nav-button.active { background: #fff; box-shadow: 0 2px 8px rgba(20,27,24,.07); }
.nav-button.active:before { left: 5px; width: 4px; height: 16px; border-radius: 4px; }
.subnav { margin-left: 30px; padding-left: 12px; }
.subnav button { min-height: 31px; border-radius: 7px; font-size: 11px; }
.collapse { margin: 12px; min-height: 38px; }
.topbar { height: 72px; grid-template-columns: minmax(280px, 520px) 40px max-content; padding: 0 22px; }
.global-search input { height: 40px; padding-left: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.global-search .icon { left: 11px; top: 11px; }
.profile { min-width: 182px; }
.profile span { width: 32px; height: 32px; background: var(--orange-soft); color: #171a18; }
.profile b { font-size: 12px; }
.profile small { font-size: 10px; }
.content { padding: 22px; }
.page-head { min-height: 52px; margin-bottom: 14px; }
.page-head h1 { font-size: 22px; }
.page-head p { font-size: 11px; }
.panel, .filter-card, .asset-list, .detail-pane, .table-panel { border-radius: 14px; box-shadow: var(--shadow); }
.panel { padding: 18px; }
.panel-title h4, .panel h4 { font-size: 14px; }
.filter-card { padding: 14px; }
.table-panel h4 { padding: 15px 18px; font-size: 13px; }
th, td { height: 42px; padding: 9px 12px; font-size: 10px; }
th { font-size: 9px; }
.row-actions button { min-height: 28px; border-radius: 7px; }
.badge { min-height: 22px; border-radius: 6px; }
.badge.green { border-color: #ffd2b5; background: var(--orange-soft); color: var(--orange-dark); }
.pill { border-color: #ffd2b5; background: var(--orange-soft); color: var(--orange-dark); }
.stats { gap: 12px; border: 0; background: transparent; }
.stat { min-height: 108px; padding: 15px; border: 1px solid var(--line) !important; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.stat h2 { margin-top: 6px; font-size: 25px; }
.stat p { font-size: 11px; }
.stat small { font-size: 10px; }
.kpi-flag { color: var(--orange); }
.stat.up .kpi-flag { color: var(--green); }
.current-fy { border-radius: 14px; box-shadow: var(--shadow); }
.bars span { background: #171a18; }
.donut { background: conic-gradient(var(--orange) 0 68%, #171a18 68% 86%, #e7ebe9 86% 100%); }
.modal { border-radius: 14px; box-shadow: 0 24px 70px rgba(17,20,19,.24); }
.modal-section { padding: 16px 2px 0; }
.upload-zone { border-radius: 12px; }
.upload-icon { border-radius: 10px; color: #171a18; }
.primary, .primary.small { border-color: var(--orange); background: var(--orange); color: #171a18; }
.primary:hover, .primary.small:hover { border-color: var(--orange-dark); background: var(--orange-dark); color: #fff; }
.login-bg { background: #e7eaee; }
.login-card { overflow: hidden; border: 1px solid rgba(17,20,19,.08); border-radius: 18px; box-shadow: 0 24px 70px rgba(17,20,19,.16); }
.login-art { border-right-color: #303532; background: #171a18; color: #fff; }
.login-art p, .login-art small { color: #b8bfbb; }
.shield { background: var(--orange); color: #171a18; }
.float-lock { color: #171a18; }
.float-check { color: var(--orange-dark); }
.brand-mark span { background: var(--orange); }
.login-form { background: #fff; }
.login-form h1 { font-size: 36px; font-weight: 600; }
.socials button { border-radius: 9px; }

/* Reference dashboard composition */
.dashboard-heading { min-height: 54px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.dashboard-heading h1 { font-size: 23px; }
.dashboard-heading p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.dashboard-filters { display: flex; gap: 7px; }
.dashboard-filters button { background: #fff; }
.insurance-banner { position: relative; min-height: 124px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; margin-bottom: 16px; padding: 24px 26px; border-radius: 16px; background: #171a18; color: #fff; box-shadow: 0 12px 24px rgba(17,20,19,.12); }
.insurance-banner:after { content: ""; position: absolute; width: 380px; height: 190px; right: -60px; top: -48px; border: 1px solid rgba(255,122,33,.2); border-radius: 44px; transform: rotate(-10deg); box-shadow: -55px 48px 0 -1px #171a18, -55px 48px 0 0 rgba(255,122,33,.14), -110px 94px 0 -1px #171a18, -110px 94px 0 0 rgba(255,122,33,.09); }
.insurance-banner > * { position: relative; z-index: 1; }
.insurance-banner small { color: #c9cecb; font-size: 12px; }
.banner-value { margin-top: 7px; font-size: 31px; font-weight: 500; }
.banner-value span { margin-left: 8px; color: var(--orange); font-size: 12px; }
.banner-actions { display: flex; gap: 8px; }
.banner-actions button { border-color: #3a403d; background: #2b302e; color: #fff; }
.banner-actions button.accent { border-color: var(--orange); background: var(--orange); color: #171a18; font-weight: 700; }
.flow-card { margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.flow-head h3 { font-size: 15px; }
.flow-head h3 span, .orange-text { color: var(--orange); }
.flow-head > div { display: flex; gap: 5px; }
.flow-head button { min-height: 30px; }
.flow-head button.active { border-color: #d2d7d4; background: #f4f6f5; box-shadow: inset 0 1px 2px rgba(0,0,0,.03); }
.flow-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 235px; }
.flow-chart { position: relative; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: 1fr 24px; padding-right: 26px; border-right: 1px solid var(--line); }
.chart-scale { grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 3px 0 18px; color: var(--muted); font-size: 9px; }
.bar-field { position: relative; grid-column: 2; display: flex; align-items: center; gap: 9px; padding: 10px 10px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0, transparent 24.8%, var(--line) 25%, transparent 25.2%); }
.bar-field:after { content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 1px; background: var(--line); }
.bar-pair { position: relative; z-index: 1; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.bar-pair i, .bar-pair b { display: block; width: 100%; min-width: 5px; max-height: 45%; border-radius: 4px 4px 1px 1px; background: #171a18; }
.bar-pair b { align-self: flex-start; border-radius: 1px 1px 4px 4px; background: var(--orange); }
.chart-labels { grid-column: 2; display: flex; justify-content: space-between; padding: 7px 8px 0; color: var(--muted); font-size: 9px; }
.flow-summary { display: grid; grid-template-rows: 1fr 1fr; padding-left: 28px; }
.flow-summary > div { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.flow-summary > div:last-child { border-bottom: 0; }
.metric-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; font-size: 18px; }
.metric-icon.dark { background: #171a18; color: #fff; }
.metric-icon.orange { background: var(--orange); color: #171a18; }
.flow-summary p { display: grid; grid-template-columns: auto auto; align-items: end; gap: 4px 10px; color: var(--text-2); font-size: 11px; }
.flow-summary strong { grid-column: 1; font-size: 22px; font-weight: 500; color: var(--text); }
.flow-summary small { color: var(--orange-dark); font-size: 10px; }
.flow-summary small.negative { color: var(--red); }
.summary-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.summary-cards article { min-height: 144px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; padding: 19px 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.summary-cards article > div { display: grid; grid-template-columns: 26px 1fr; align-items: center; }
.summary-cards article > div span { color: var(--orange); font-size: 18px; }
.summary-cards article > div b { font-size: 13px; }
.summary-cards article > div small { grid-column: 2; margin-top: 3px; color: var(--muted); font-size: 10px; }
.summary-cards article > strong { grid-column: 1; align-self: end; font-size: 24px; font-weight: 500; }
.summary-cards article > em { grid-column: 2; align-self: end; color: var(--orange-dark); font-size: 9px; font-style: normal; }
.dashboard-lower { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .9fr); gap: 14px; margin-bottom: 16px; }
.activity-panel { padding: 0; overflow: hidden; }
.activity-panel .panel-title { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.activity-panel .panel-title > div { display: flex; gap: 5px; }
.activity-row { display: grid; grid-template-columns: 34px 1fr 140px 82px; align-items: center; gap: 10px; min-height: 70px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); }
.activity-icon.dark { background: #171a18; color: #fff; }
.activity-row p, .activity-row strong { display: grid; gap: 3px; font-size: 11px; }
.activity-row small { color: var(--muted); font-size: 9px; font-weight: 400; }
.coverage-card { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.coverage-card .panel-title button { border: 1px solid var(--line); }
.coverage-visual { min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; margin: 16px 6px; padding: 22px; border-radius: 14px; background: #171a18; color: #fff; box-shadow: 0 12px 20px rgba(17,20,19,.13); }
.coverage-visual span { font-weight: 800; letter-spacing: .08em; }
.coverage-visual b { font-size: 26px; font-weight: 500; }
.coverage-visual small { color: #c9cecb; letter-spacing: .12em; }
.coverage-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coverage-meta p { display: grid; gap: 4px; color: var(--muted); font-size: 9px; }
.coverage-meta strong { color: var(--text); font-size: 14px; }
.dashboard-grid.secondary { grid-template-columns: 1fr 1fr; }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 210px minmax(0,1fr); }
  .flow-body { grid-template-columns: 1fr; }
  .flow-chart { border-right: 0; }
  .flow-summary { grid-template-columns: 1fr 1fr; grid-template-rows: auto; padding: 18px 0 0; }
  .flow-summary > div { min-height: 95px; padding: 0 16px; border-bottom: 0; border-right: 1px solid var(--line); }
  .flow-summary > div:last-child { border-right: 0; }
  .dashboard-lower { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; }
  .dashboard-heading, .insurance-banner { align-items: stretch; flex-direction: column; }
  .dashboard-filters, .banner-actions { flex-wrap: wrap; }
  .summary-cards, .dashboard-grid.secondary { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: 34px 1fr auto; }
  .activity-row > strong { display: none; }
  .flow-summary { grid-template-columns: 1fr; }
  .flow-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* JMS typography, icon and brand refinement */
button { gap: 6px; font-size: 11px; font-weight: 400; }
input, select, textarea { font-size: 11px; font-weight: 400; }
input::placeholder, textarea::placeholder { color: #a7ada9; font-size: 10px; font-weight: 400; opacity: 1; }
h3, h4, .panel-title h4, .panel h4, .modal-section h3, .flow-head h3 { font-weight: 500; }
.page-head h1, .dashboard-heading h1, .login-form h1 { font-weight: 600; }
.page-head p, .dashboard-heading p { font-weight: 400; }
.nav-button { font-weight: 400; }
.nav-button.active, .subnav button.active { font-weight: 500; }
.primary, .primary.small, .banner-actions button.accent { font-weight: 500; }
.panel-title button { font-weight: 400; }
th { font-weight: 500; }
.badge { font-weight: 500; }
.badge.green { border-color: #e7dfb8; background: #f5f3df; color: #77783d; }
.badge.green:before { content: ""; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #e3a63b; }
.logo { gap: 12px; }
.logo > img { width: 72px; height: auto; object-fit: contain; }
.logo h3 { font-size: 11px; font-weight: 500; }
.logo p { font-size: 9px; font-weight: 400; }
.brand-mark { width: 100%; justify-content: center; margin-top: 20px; }
.brand-mark img { width: min(250px, 88%); height: auto; object-fit: contain; }
.icon { width: 17px; min-width: 17px; height: 17px; }
.icon svg { width: 15px; height: 15px; stroke-width: 1.7; }
button:has(.button-icon), button:has(> .icon) { display: inline-flex; align-items: center; justify-content: center; }
.nav-button:has(> .icon) { display: grid; }
.button-icon { width: 14px; height: 14px; flex: 0 0 14px; }
.actions .button-icon, .row-actions .button-icon, .modal-actions .button-icon { width: 13px; height: 13px; }
.coverage-brand { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 7px; background: #fff; }
.coverage-brand img { width: 64px; height: auto; display: block; }
.stat p, .summary-cards article > div b, .activity-row p b { font-weight: 500; }
.summary-cards article > strong, .banner-value, .flow-summary strong { font-weight: 400; }
.modal h2 { font-weight: 600; }
.modal > p, .hint { font-weight: 400; }
.socials button, .signup-row button, .notification { font-weight: 400; }
.profile b { font-size: 11px; font-weight: 500; }
.profile small { font-weight: 400; }
.row-actions button, .actions button, .modal-actions button { font-weight: 400; }

/* Login banner and dropdown behavior */
.login-card { min-height: 680px; grid-template-columns: 1fr 1.08fr; }
.login-art { position: relative; justify-content: flex-end; padding: 26px; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.82) 100%), url("../assets/login-banner.png") center top / cover no-repeat; }
.login-art .shield-wrap, .login-art > h2, .login-art > p { display: none; }
.login-art .brand-mark { width: auto; margin-top: auto; padding: 7px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(0,0,0,.52); backdrop-filter: blur(8px); }
.login-art .brand-mark img { width: 122px; max-height: 34px; object-fit: contain; }
.login-art > small { margin-top: 8px; color: rgba(255,255,255,.62); font-size: 8px; }
.login-form { justify-content: center; }
.login-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.login-jms-logo { width: 104px; height: auto; object-fit: contain; }
.signup-row { align-self: auto; white-space: nowrap; }
button:disabled, .primary:disabled, .primary.small:disabled { border-color: #ffc79f; background: #ffe8d7; color: #aa4508; opacity: 1; box-shadow: none; }
select:not(.native-select-hidden) { appearance: none; padding-right: 38px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23545b57' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 15px; }
.filter-card.compact input[type="date"], .filter-grid .filter-date { order: -10; }
.filter-card.compact input[type="date"] { flex: 0 0 160px; min-width: 160px; }
.search-select { position: relative; width: 100%; min-width: 145px; }
.native-select-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 1px !important; overflow: hidden; opacity: 0; pointer-events: none; }
.search-select-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border-color: var(--line); background: #fff; color: var(--text-2); text-align: left; }
.search-select-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-select-trigger svg { width: 15px; height: 15px; flex: 0 0 15px; margin-left: auto; transition: transform .16s ease; }
.search-select.open .search-select-trigger { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft); }
.search-select.open .search-select-trigger svg { transform: rotate(180deg); }
.search-select-popover { position: absolute; left: 0; bottom: calc(100% + 7px); z-index: 30; width: max(100%, 210px); display: none; padding: 8px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; box-shadow: 0 16px 38px rgba(17,20,19,.14); }
.search-select.open .search-select-popover { display: block; }
.search-select-input { min-height: 32px; margin-bottom: 6px; padding-left: 10px; background: #f7f8f7; font-size: 10px; }
.search-select-options { max-height: 190px; overflow: auto; }
.search-select-option { width: 100%; min-height: 30px; display: flex; align-items: center; justify-content: flex-start; margin: 1px 0; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 10px; text-align: left; }
.search-select-option:hover { background: #f6f7f6; }
.search-select-option.selected { background: var(--orange-soft); color: var(--orange-dark); }
.empty-option { padding: 10px; color: var(--muted); font-size: 10px; text-align: center; }

@media (max-width: 760px) {
  .login-card { min-height: 100vh; grid-template-columns: 1fr; }
  .login-art { min-height: 540px; }
  .login-top-row { align-items: center; }
  .search-select-popover { top: calc(100% + 7px); bottom: auto; }
}

/* Data accuracy and corrected operational page structures */
.badge.green { border-color: #bfe5cd; background: #eaf7ef; color: #23824d; }
.badge.green:before { background: #36a764; }
.badge.red { border-color: #efc4ca; background: #fcecef; color: #b93b49; }
.badge.neutral { border-color: #dfe3e1; background: #f4f6f5; color: #68706c; }
.filter-leading-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-dark); }
.filter-leading-icon svg { width: 14px; height: 14px; }
.filter-leading-icon b { display: none; font-size: 14px; font-weight: 500; line-height: 1; transform: rotate(90deg); }
.filter-leading-icon:not(:has(svg)) b { display: block; }
.panel-title h4:has(.filter-leading-icon) { display: flex; align-items: center; gap: 8px; }
.filter-card.compact > .filter-leading-icon, .mapping-filters > .filter-leading-icon, .history-filter > .filter-leading-icon { width: 30px; min-width: 30px; align-self: end; }
.stats.five { grid-template-columns: repeat(5,minmax(0,1fr)); }

/* Change Tracker */
.tracker-layout { grid-template-columns: minmax(360px, 44%) minmax(420px, 1fr); align-items: start; }
.tracker-filter { display: grid; grid-template-columns: 30px minmax(150px,1fr) 160px auto; gap: 7px; padding: 8px; box-shadow: none; }
.tracker-filter .filter-leading-icon { align-self: center; }
.segments button.active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.result-count { margin: 8px 2px; color: var(--muted); font-size: 10px; }
.asset-card { position: relative; padding: 12px; }
.asset-card-head, .asset-tags { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.asset-card-head b { font-size: 12px; font-weight: 500; }
.asset-card .asset-tags { justify-content: flex-start; margin-top: 5px; }
.asset-tags i { padding: 3px 6px; border-radius: 5px; background: #f3f5f4; color: var(--text-2); font-size: 8px; font-style: normal; }
.asset-tags strong { margin-left: auto; font-size: 10px; font-weight: 500; }
.tracker-detail { position: sticky; top: 90px; min-height: 430px; }
.detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.detail-title small { color: var(--orange-dark); font-size: 9px; }
.detail-title h3 { margin-top: 3px; font-size: 18px; }
.asset-value { display: grid; gap: 4px; margin: 18px 0; padding: 15px; border-radius: 10px; background: #f7f8f7; }
.asset-value small { color: var(--muted); }
.asset-value strong { font-size: 24px; font-weight: 400; }
.handover-history { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.handover-history h4 { margin-bottom: 12px; }
.handover-history > div { display: grid; grid-template-columns: 12px 1fr; gap: 9px; padding: 7px 0; }
.handover-history > div > span { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--orange); }
.handover-history p { display: grid; gap: 2px; font-size: 10px; }
.handover-history small { color: var(--muted); }
.empty-state { padding: 35px 10px; color: var(--muted); text-align: center; }

/* Asset-policy mapping */
.mapping-filters { display: grid; grid-template-columns: 30px repeat(3,minmax(160px,1fr)) auto; gap: 10px; align-items: end; }
.mapping-filters label { gap: 5px; }
.mapping-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mapping-column { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.mapping-column-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border-bottom: 1px solid var(--line); }
.mapping-column-head h4 { font-size: 13px; font-weight: 500; }
.mapping-column-head p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.mapping-column-head input { max-width: 190px; }
.mapping-card-list { display: grid; gap: 8px; max-height: 650px; overflow: auto; padding: 12px; }
.mapping-card { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: grab; transition: border-color .16s, box-shadow .16s, transform .16s; }
.mapping-card:hover { border-color: #ffc49d; box-shadow: 0 7px 18px rgba(17,20,19,.07); transform: translateY(-1px); }
.mapping-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mapping-code { color: var(--orange-dark); font-size: 9px; font-weight: 500; }
.mapping-card h4 { margin-top: 8px; font-size: 12px; font-weight: 500; }
.mapping-card p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.mapping-card strong { display: block; margin-top: 7px; font-size: 10px; font-weight: 500; }
.mapping-card button { margin-top: 10px; min-height: 27px; }
.policy-drop { cursor: default; }
.policy-drop.drag-over { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 3px rgba(255,122,33,.13); }
.policy-drop.mapped { border-color: #9bd3b0; background: #f2faf5; }
.mapping-help { display: flex; gap: 12px; margin-top: 14px; padding: 15px; border: 1px solid #ffd5b9; border-radius: 12px; background: #fff8f3; }
.mapping-help .icon { color: var(--orange-dark); }
.mapping-help h4 { font-size: 12px; font-weight: 500; }
.mapping-help p { margin-top: 4px; color: var(--text-2); font-size: 10px; }

/* Coverage history */
.history-filter { display: grid; grid-template-columns: 30px auto minmax(150px,1fr) minmax(150px,1fr) minmax(180px,1.3fr) auto; gap: 10px; align-items: end; }
.view-switch { display: flex; gap: 4px; }
.view-switch button.active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.timeline-legend { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: -2px 0 12px; color: var(--muted); font-size: 9px; }
.timeline-legend span { width: 18px; height: 5px; border-radius: 4px; }
.timeline-legend .active { background: #36a764; }
.timeline-legend .expired { background: #c4cac7; }
.timeline-legend .gap { border: 1px dashed var(--red); background: #fff; }
.history-list { display: grid; gap: 12px; }
.history-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.history-life { padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.history-life h4 { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; }
.history-life h4 span { color: var(--orange-dark); font-size: 9px; }
.life-dates { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 10px 0; }
.life-dates p { display: grid; gap: 3px; color: var(--muted); font-size: 8px; }
.life-dates strong { color: var(--text-2); font-size: 10px; font-weight: 500; }
.life-progress { height: 6px; overflow: hidden; border-radius: 5px; background: #e7eae8; }
.life-progress i { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.history-life > small { display: block; margin-top: 5px; color: var(--muted); text-align: right; }
.history-asset-head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 15px 16px 6px; }
.history-asset-head h3 { font-size: 14px; font-weight: 500; }
.history-asset-head > div span { color: var(--orange-dark); font-size: 9px; }
.history-meta { padding: 0 16px; color: var(--muted); font-size: 9px; }
.coverage-timeline { position: relative; margin: 14px 16px 16px; padding: 11px; border-radius: 10px; background: #f8f9f8; }
.month-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.policy-period { width: 72%; display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 7px 10px; border-radius: 6px; font-size: 9px; }
.policy-period.active { margin-left: 24%; background: #eaf7ef; color: #23824d; }
.policy-period.expired { width: 32%; background: #ecefed; color: #6e7672; }
.policy-period b { font-weight: 500; }

/* Claim tracker */
.claim-tracker-list { display: grid; gap: 14px; }
.claim-tracker-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.claim-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.claim-card-head h3 { font-size: 15px; font-weight: 500; }
.claim-card-head p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.claim-card-head p strong { color: var(--text); font-weight: 500; }
.claim-progress { padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.claim-progress h4 { margin-bottom: 12px; font-size: 11px; font-weight: 500; }
.claim-progress > div { display: grid; grid-template-columns: repeat(4,1fr); }
.claim-progress span { position: relative; display: grid; justify-items: center; gap: 5px; color: var(--muted); font-size: 8px; text-align: center; }
.claim-progress span:before { content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: #dfe3e1; }
.claim-progress span:first-child:before { left: 50%; }
.claim-progress span:last-child:before { right: 50%; }
.claim-progress i { position: relative; z-index: 1; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #e7eae8; font-size: 8px; font-style: normal; }
.claim-progress span.done { color: var(--text-2); }
.claim-progress span.done:before, .claim-progress span.done i { background: var(--orange); color: #171a18; }
.claim-card-grid { display: grid; grid-template-columns: repeat(2,1fr); }
.claim-card-grid > section { min-height: 175px; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.claim-card-grid > section:nth-child(2n) { border-right: 0; }
.claim-card-grid > section:nth-last-child(-n+2) { border-bottom: 0; }
.claim-card-grid h4 { display: flex; justify-content: space-between; margin-bottom: 11px; font-size: 11px; font-weight: 500; }
.claim-card-grid h4 span { color: var(--orange-dark); font-size: 9px; }
.claim-card-grid dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px; margin: 0; font-size: 9px; }
.claim-card-grid dt { color: var(--muted); }
.claim-card-grid dd { margin: 0; color: var(--text-2); }
.doc-check { display: flex; grid-template-columns: none; align-items: center; gap: 7px; margin: 6px 0; font-size: 9px; font-weight: 400; }
.doc-check input { width: 14px; min-height: 14px; accent-color: var(--orange); }
.owner { display: flex; align-items: center; gap: 9px; }
.owner > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); font-size: 9px; }
.owner b { display: grid; gap: 2px; font-size: 10px; font-weight: 500; }
.owner small { color: var(--muted); font-weight: 400; }
.claim-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.communication { margin-bottom: 10px; padding: 10px; border-radius: 9px; background: #f7f8f7; }
.communication b { font-size: 10px; font-weight: 500; }
.communication p { margin: 5px 0; color: var(--text-2); font-size: 9px; }
.communication small { color: var(--muted); font-size: 8px; }

@media (max-width: 1100px) {
  .stats.five { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tracker-layout, .mapping-workspace { grid-template-columns: 1fr; }
  .tracker-detail { position: static; }
  .mapping-filters, .history-filter { grid-template-columns: 30px repeat(2,minmax(160px,1fr)); }
}

@media (max-width: 760px) {
  .stats.five { grid-template-columns: 1fr; }
  .tracker-filter, .mapping-filters, .history-filter { grid-template-columns: 1fr; }
  .mapping-column-head { align-items: stretch; flex-direction: column; }
  .mapping-column-head input { max-width: none; }
  .claim-card-grid { grid-template-columns: 1fr; }
  .claim-card-grid > section { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .claim-card-grid > section:last-child { border-bottom: 0 !important; }
}

/* KPI icons, drill-down pages and allocation workflows */
.stat-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-dark); }
.kpi-icon svg { width: 15px; height: 15px; }
th, td { white-space: nowrap; }
td { max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.table-wrap { overflow-x: auto; }
.detail-page-head { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 14px; margin-bottom: 16px; }
.detail-page-head > button:first-child { min-width: 82px; }
.detail-page-head small { color: var(--orange-dark); font-size: 9px; }
.detail-page-head h1 { margin-top: 3px; font-size: 22px; font-weight: 600; }
.detail-page-head p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.detail-dashboard { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(260px,.7fr); gap: 14px; margin-bottom: 14px; }
.detail-graph, .asset-summary { min-height: 250px; }
.value-bars { height: 185px; display: flex; align-items: end; justify-content: space-around; gap: 18px; padding: 20px 22px 0; border-bottom: 1px solid var(--line); }
.value-bars > div { height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 7px; }
.value-bars i { width: min(56px,70%); min-height: 18px; border-radius: 8px 8px 2px 2px; background: #171a18; }
.value-bars > div:nth-child(2) i { background: var(--orange); }
.value-bars > div:nth-child(3) i { background: #e6a66d; }
.value-bars span { color: var(--muted); font-size: 9px; }
.value-bars b { min-height: 20px; font-size: 10px; font-weight: 500; }
.asset-summary { display: grid; justify-items: center; align-content: start; text-align: center; }
.asset-summary h4 { justify-self: start; }
.asset-summary p { max-width: 220px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.radial-score { width: 130px; height: 130px; display: grid; place-items: center; margin: 22px 0 14px; border-radius: 50%; background: conic-gradient(var(--orange) 0 86%, #edf0ee 86% 100%); }
.radial-score:before { content: ""; position: absolute; width: 94px; height: 94px; border-radius: 50%; background: #fff; }
.radial-score { position: relative; }
.radial-score span { position: relative; z-index: 1; font-size: 23px; font-weight: 500; }
.detail-edit-form { padding: 20px; }
.detail-edit-form .panel-title { margin-bottom: 16px; }
.detail-edit-form .panel-title > span { color: var(--muted); font-size: 9px; }
.history-page { padding: 8px 22px; }
.history-record { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.history-record:last-child { border-bottom: 0; }
.history-record > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #f0f2f1; color: var(--text-2); font-size: 9px; }
.history-record.current > span { background: var(--orange); color: #171a18; }
.history-record h4 { font-size: 12px; font-weight: 500; }
.history-record p { margin: 4px 0; color: var(--text-2); font-size: 10px; }
.history-record small { color: var(--muted); font-size: 9px; }
.allocation-command { display: flex; justify-content: flex-end; margin-top: 12px; }
.danger-outline { border-color: #efc4ca; background: #fff; color: #b93b49; }
.danger-button { border-color: #c9404f; background: #c9404f; color: #fff; }
.allocation-form { margin-top: 16px; }
.handover-history > div { position: relative; }
.handover-history > div:not(:last-child):after { content: ""; position: absolute; left: 3px; top: 18px; bottom: -9px; width: 1px; background: var(--line-strong); }
.detail-info-grid, .detail-edit-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.detail-edit-form { padding: 0; }
.info-section { min-height: 220px; }
.info-section h3 { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.info-list { display: grid; gap: 0; margin: 0; }
.info-list > div { display: grid; grid-template-columns: minmax(100px,.8fr) 1.2fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eff1f0; }
.info-list dt { color: var(--muted); font-size: 9px; }
.info-list dd { margin: 0; color: var(--text); font-size: 10px; font-weight: 500; text-align: right; }
.detail-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin: 14px 0 4px; }
.status-switch { display: inline-flex; grid-template-columns: none; align-items: center; gap: 9px; width: fit-content; margin-top: 18px; cursor: pointer; }
.status-switch input { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; }
.status-switch > span { position: relative; width: 42px; height: 23px; border-radius: 20px; background: #cfd4d1; transition: background .18s; }
.status-switch > span:after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .18s; }
.status-switch input:checked + span { background: #35a662; }
.status-switch input:checked + span:after { transform: translateX(19px); }
.status-switch b { color: var(--text-2); font-size: 10px; font-weight: 500; }
.status-switch input:checked ~ b { color: #23824d; }
.status-switch.readonly { cursor: default; }
.empty-history { padding: 50px 20px; text-align: center; }
.empty-history h3 { font-size: 15px; font-weight: 500; }
.empty-history p { margin-top: 7px; color: var(--muted); font-size: 10px; }
.allocation-history { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.allocation-history h4 { margin-bottom: 10px; font-size: 12px; font-weight: 500; }
.allocation-history-cards { display: grid; gap: 9px; }
.allocation-history-card { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(17,20,19,.04); }
.allocation-history-person { display: flex; align-items: center; gap: 9px; }
.allocation-history-person p { min-width: 0; display: grid; gap: 2px; margin-right: auto; }
.allocation-history-person b { overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.allocation-history-person small { color: var(--muted); font-size: 8px; }
.history-avatar { width: 30px; height: 30px; display: inline-grid; place-items: center; flex: 0 0 30px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); font-size: 9px; font-weight: 600; }
.allocation-history-card dl { grid-template-columns: repeat(3,auto 1fr); gap: 5px 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #eff1f0; font-size: 8px; }
.allocation-history-card dd { margin: 0; color: var(--text-2); font-weight: 500; }
.history-reason { margin-top: 9px; padding: 7px 8px; border-radius: 6px; background: #f7f8f7; color: var(--muted); font-size: 8px; }
.empty-history-note { padding: 18px; border-radius: 8px; background: #f7f8f7; color: var(--muted); font-size: 9px; text-align: center; }

.people-picker-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; border-color: var(--line); background: #fff; color: var(--text-2); font-weight: 400; }
.people-picker-trigger svg { width: 14px; height: 14px; }
.selected-people { min-height: 36px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 7px; border: 1px dashed var(--line-strong); border-radius: 8px; background: #fafbfa; }
.selected-people span { padding: 4px 7px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); font-size: 8px; }
.selected-people span:only-child { background: transparent; color: var(--muted); }
.people-picker-backdrop { z-index: 40; background: rgba(31,34,36,.52); }
.people-picker-modal { width: min(440px,100%); overflow: hidden; }
.people-search { margin-bottom: 10px; }
.people-options { max-height: 310px; display: grid; gap: 5px; overflow-y: auto; padding-right: 4px; }
.people-options label { display: grid; grid-template-columns: 18px 30px 1fr; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.people-options label:hover { border-color: #ffc49d; background: #fffaf6; }
.people-options input { width: 15px; min-height: 15px; accent-color: var(--orange); }
.people-options b { font-size: 10px; font-weight: 500; }

.allocation-type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0 12px; padding: 0; border: 0; }
.allocation-type legend { grid-column: 1 / -1; margin-bottom: 7px; color: var(--text); font-size: 11px; font-weight: 500; }
.allocation-type label { display: flex; grid-template-columns: none; align-items: flex-start; gap: 9px; min-height: 62px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.allocation-type label:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 2px rgba(255,122,33,.1); }
.allocation-type input { width: 15px; min-height: 15px; margin-top: 2px; accent-color: var(--orange); }
.allocation-type span { display: grid; gap: 3px; }
.allocation-type b { font-size: 10px; font-weight: 500; }
.allocation-type small { color: var(--muted); font-size: 8px; }
.allocation-section { margin-top: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; }
.allocation-section h3 { margin-bottom: 11px; font-size: 11px; font-weight: 500; }
.allocation-common { margin-top: 10px; }

.expiry-filter-panel { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.expiry-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.expiry-filter-head h4 { font-size: 12px; font-weight: 500; }
.expiry-filter-head p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.expiry-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.expiry-legend span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 7px; background: #f5f6f5; color: var(--muted); font-size: 8px; }
.expiry-legend b { font-weight: 500; }
.expiry-legend .low b { color: #23824d; }
.expiry-legend .medium b { color: #8a6c12; }
.expiry-legend .high b { color: #c56a18; }
.expiry-legend .critical b { color: #b93b49; }
.expiry-tabs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }
.expiry-tabs button { min-height: 48px; display: grid; justify-items: start; gap: 2px; padding: 8px 10px; background: #fff; }
.expiry-tabs button.active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.expiry-tabs b { font-size: 10px; font-weight: 500; }
.expiry-tabs small { color: var(--muted); font-size: 8px; }

/* Policy repository and detail workflow */
.reset-filter { min-width: auto !important; margin-left: auto; border-color: #ffd2b5; background: var(--orange-soft); color: var(--orange-dark); }
.count-chip { width: 28px; min-width: 28px; min-height: 25px; padding: 0; border-color: #ffd2b5; border-radius: 7px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 600; }
.document-name { max-width: 160px; min-height: 25px; overflow: hidden; padding: 0 8px; border-color: #cbe7d5; border-radius: 7px; background: #eaf7ef; color: #23824d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.document-upload { width: 29px; min-width: 29px; min-height: 29px; padding: 0; border: 1px dashed #f2aa77; border-radius: 7px; background: #fff8f3; color: var(--orange-dark); }
.document-upload svg { width: 13px; height: 13px; }
.policy-items-modal ol { display: grid; gap: 7px; margin: 14px 0 2px; padding-left: 25px; }
.policy-items-modal li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfa; color: var(--text-2); font-size: 10px; }
.policy-info-grid, .policy-detail-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.policy-detail-form .info-section { min-height: auto; }
.policy-detail-form .detail-form-actions { grid-column: 1 / -1; }
.policy-coverage-editor { grid-column: 1 / -1; }
.policy-coverage-editor textarea { min-height: 110px; resize: vertical; }
.policy-coverage-list h3 { display: flex; align-items: center; justify-content: space-between; }
.policy-coverage-list h3 span { min-width: 25px; padding: 3px 7px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); font-size: 9px; text-align: center; }
.policy-coverage-list ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.policy-coverage-list li { padding: 8px 10px; border-radius: 8px; background: #f7f8f7; color: var(--text-2); font-size: 9px; }
.policy-info-grid .info-list dd { max-width: 240px; overflow-wrap: anywhere; }

.topbar { grid-template-columns: 1fr 46px max-content; }
.notification { justify-self: end; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.notification svg { width: 19px; height: 19px; }
.notification span { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; background: var(--orange); color: #fff; font-size: 9px; font-weight: 700; }
.notification:after { display: none; }
.stat h2, .stat-value h2 { color: #111; font-weight: 800 !important; }
.date-filter { min-width: 145px; font-size: 9px; }
.filter-grid { grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); }
.icon-only { width: 38px !important; min-width: 38px !important; min-height: 38px; padding: 0; display: inline-grid; place-items: center; }
.icon-only svg { width: 16px; height: 16px; }
.document-cell { display: flex; align-items: center; gap: 6px; }
.document-list { display: grid; gap: 8px; margin: 16px 0; }
.document-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfa; }
.document-list > div > span, .document-list > div > div { display: flex; align-items: center; gap: 8px; }
.document-list svg { width: 16px; height: 16px; color: var(--orange-dark); }
.repeat-editor { min-width: 0; }
.repeat-entry { display: grid; grid-template-columns: 1fr 38px; gap: 7px; }
.repeat-entry button, .repeat-list button { width: 38px; min-width: 38px; padding: 0; color: var(--orange-dark); }
.repeat-list { display: grid; gap: 6px; margin-top: 8px; }
.repeat-list > div { display: grid; grid-template-columns: 1fr 34px; align-items: center; gap: 8px; padding: 7px 8px 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #f7f8f7; color: var(--text-2); font-size: 11px; }
.repeat-list button { width: 30px; min-width: 30px; min-height: 28px; border: 0; background: transparent; color: var(--red); }
.policy-coverage-editor textarea { min-height: 70px; }
.row-check { width: 17px; min-height: 17px; accent-color: var(--orange); }
.batch-actions { display: flex; justify-content: flex-end; margin: 12px 0 18px; }

@media (max-width: 900px) {
  .detail-dashboard { grid-template-columns: 1fr; }
  .detail-info-grid, .detail-edit-form, .policy-info-grid, .policy-detail-form { grid-template-columns: 1fr; }
  .policy-coverage-editor { grid-column: auto; }
  .expiry-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .detail-page-head { grid-template-columns: 1fr; }
  .detail-page-head > button:first-child { width: fit-content; }
  .allocation-type, .expiry-tabs { grid-template-columns: 1fr 1fr; }
  .expiry-filter-head { align-items: flex-start; flex-direction: column; }
}

/* Comfortable application density - equivalent to the previous 125% browser view */
:root { font-size: 17px; }
button { min-height: 40px; padding: 0 15px; border-radius: 10px; font-size: 13px; }
input, select, textarea { min-height: 42px; padding-right: 14px; padding-left: 14px; border-radius: 10px; font-size: 13px; }
input::placeholder, textarea::placeholder { font-size: 12px; }
textarea { min-height: 105px; padding-top: 12px; }
label { gap: 7px; font-size: 13px; }

.workspace { grid-template-columns: 285px minmax(0,1fr); }
.is-collapsed { grid-template-columns: 70px minmax(0,1fr); }
.logo { min-height: 84px; gap: 14px; padding: 14px 20px; }
.logo > img { width: 88px; }
.logo h3 { font-size: 14px; }
.logo p { font-size: 11px; }
nav { padding: 20px 14px; }
.nav-group { margin-bottom: 5px; }
.nav-button { grid-template-columns: 24px minmax(0,1fr) 26px; min-height: 46px; padding: 0 14px; border-radius: 11px; font-size: 14px; }
.nav-arrow { width: 28px; height: 36px; }
.subnav { width: calc(100% - 35px); margin-left: 35px; padding: 4px 0 4px 14px; }
.subnav button { min-height: 39px; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.subnav button.active:before { top: 15px; }
.collapse { min-height: 46px; margin: 14px; font-size: 13px; }
.is-collapsed .collapse { width: 42px; margin: 12px 14px; }

.topbar { height: 82px; grid-template-columns: minmax(320px,650px) 46px max-content; gap: 14px; padding: 0 28px; }
.global-search input { height: 46px; padding-left: 44px; }
.global-search .icon { top: 14px; left: 15px; }
.notification { min-width: 40px; font-size: 13px; }
.profile { min-width: 220px; grid-template-columns: 42px 1fr 18px; padding: 0 8px; }
.profile span { width: 38px; height: 38px; font-size: 13px; }
.profile b { font-size: 14px; }
.profile small { font-size: 12px; }
.content { max-width: 1900px; padding: 28px 28px 58px; }

.page-head, .dashboard-heading { min-height: 65px; margin-bottom: 18px; }
.page-head h1, .dashboard-heading h1 { font-size: 28px; }
.page-head p, .dashboard-heading p { margin-top: 6px; font-size: 14px; }
.actions { gap: 9px; }

.stats { gap: 15px; margin-bottom: 20px; }
.stat { min-height: 132px; padding: 20px; border-radius: 15px; }
.stat-label { gap: 11px; }
.kpi-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
.kpi-icon svg { width: 19px; height: 19px; }
.stat p { font-size: 14px; }
.stat h2 { margin-top: 9px; font-size: 31px; }
.stat small { font-size: 12px; }
.kpi-flag { font-size: 15px; }

.panel, .filter-card, .asset-list, .detail-pane { padding: 22px; border-radius: 16px; }
.panel-title { gap: 13px; margin-bottom: 12px; }
.panel-title h4, .panel h4 { font-size: 16px; }
.panel-title button { min-height: 32px; font-size: 12px; }
.filter-card { margin-bottom: 15px; }
.filter-card.compact, .filter-grid { gap: 9px; }
.filter-card.compact > * { min-width: 155px; }
.filter-card.compact input { min-width: 250px; }
.filter-grid { grid-template-columns: repeat(4,minmax(170px,1fr)); }
.filter-leading-icon { width: 38px; height: 38px; flex-basis: 38px; }
.filter-card.compact > .filter-leading-icon, .mapping-filters > .filter-leading-icon, .history-filter > .filter-leading-icon { width: 38px; min-width: 38px; }

.table-panel { margin-bottom: 15px; border-radius: 16px; }
.table-panel h4 { padding: 19px 22px; font-size: 16px; }
table { min-width: 1025px; }
th, td { height: 52px; padding: 12px 15px; font-size: 12px; }
th { font-size: 11px; }
td { max-width: 310px; }
.row-actions { gap: 6px; }
.row-actions button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.pill, .badge { min-height: 27px; padding: 2px 9px; border-radius: 7px; font-size: 10px; }
.risk { gap: 13px; margin-bottom: 15px; padding: 11px 14px; border-radius: 10px; font-size: 12px; }

.modal { width: min(675px,100%); padding: 24px; }
.modal.large { width: min(1050px,100%); }
.modal h2 { font-size: 22px; }
.modal > p { margin: 7px 0 16px; font-size: 13px; }
.modal-section { margin-top: 17px; padding-top: 17px; }
.modal-section h3 { margin-bottom: 12px; font-size: 14px; }
.modal-actions { gap: 8px; margin-top: 18px; padding-top: 15px; }
.form-grid { gap: 13px; }

.split-panel { gap: 15px; }
.tracker-layout { grid-template-columns: minmax(430px,44%) minmax(500px,1fr); }
.asset-card { min-height: 92px; gap: 4px; margin-bottom: 7px; padding: 15px; }
.asset-card-head b { font-size: 14px; }
.asset-card span, .asset-card small { font-size: 11px; }
.asset-tags i { padding: 4px 8px; font-size: 10px; }
.asset-tags strong { font-size: 12px; }
.segments button { min-height: 34px; font-size: 11px; }
.result-count { font-size: 12px; }
.detail-pane dl { grid-template-columns: 155px 1fr; gap: 12px; font-size: 13px; }
.detail-title small, .detail-page-head small { font-size: 11px; }
.detail-title h3 { font-size: 22px; }
.asset-value small { font-size: 12px; }
.asset-value strong { font-size: 29px; }

.detail-page-head { gap: 18px; margin-bottom: 20px; }
.detail-page-head h1 { font-size: 27px; }
.detail-page-head p { font-size: 13px; }
.detail-dashboard { gap: 18px; margin-bottom: 18px; }
.detail-graph, .asset-summary { min-height: 310px; }
.value-bars { height: 230px; }
.value-bars span, .value-bars b { font-size: 12px; }
.asset-summary p { font-size: 13px; }
.info-section { min-height: 275px; }
.info-section h3 { margin-bottom: 17px; padding-bottom: 13px; font-size: 16px; }
.info-list > div { grid-template-columns: minmax(125px,.8fr) 1.2fr; gap: 13px; padding: 13px 0; }
.info-list dt { font-size: 12px; }
.info-list dd { font-size: 13px; }

.expiry-filter-panel { padding: 18px; }
.expiry-filter-head h4 { font-size: 15px; }
.expiry-filter-head p { font-size: 12px; }
.expiry-legend span { padding: 7px 9px; font-size: 10px; }
.expiry-tabs { gap: 9px; }
.expiry-tabs button { min-height: 60px; padding: 10px 13px; }
.expiry-tabs b { font-size: 13px; }
.expiry-tabs small { font-size: 10px; }

.login-card { width: min(1120px,100%); min-height: 720px; }
.login-form { gap: 21px; padding: 58px 70px; }
.login-form h1 { font-size: 42px; }
.login-form > p, .signup-row { font-size: 14px; }
.login-art > small, .divider { font-size: 12px; }
.socials button { width: 42px; height: 42px; font-size: 13px; }

.alert-row b, .mini-row b, .mini-row strong { font-size: 13px; }
.alert-row p, .mini-row p { font-size: 12px; }
.alert-row small, .mini-row span { font-size: 11px; }
.summary-cards article { min-height: 180px; padding: 24px 25px; }
.summary-cards article > div b { font-size: 16px; }
.summary-cards article > div small { font-size: 12px; }
.summary-cards article > strong { font-size: 30px; }
.summary-cards article > em { font-size: 11px; }
.activity-row { min-height: 86px; padding: 13px 20px; }
.activity-row p, .activity-row strong { font-size: 13px; }
.activity-row small { font-size: 11px; }
.coverage-meta p { font-size: 11px; }
.coverage-meta strong { font-size: 17px; }
.chart-scale, .chart-labels { font-size: 11px; }
.flow-summary p { font-size: 13px; }
.flow-summary small { font-size: 12px; }

.search-select-input, .search-select-option, .empty-option { font-size: 12px; }
.search-select-option { min-height: 38px; }
.search-select-options { max-height: 240px; }
.mapping-column-head h4, .mapping-help h4 { font-size: 15px; }
.mapping-column-head p, .mapping-card p { font-size: 12px; }
.mapping-code { font-size: 11px; }
.mapping-card h4 { font-size: 14px; }
.mapping-card strong, .mapping-help p { font-size: 12px; }
.mapping-card-list { gap: 10px; padding: 15px; }
.mapping-card { padding: 16px; }

.timeline-legend, .history-meta { font-size: 11px; }
.history-life h4 { font-size: 14px; }
.history-life h4 span, .history-asset-head > div span { font-size: 11px; }
.life-dates p, .month-row { font-size: 10px; }
.life-dates strong, .policy-period { font-size: 12px; }
.history-asset-head h3 { font-size: 17px; }

.claim-card-head h3 { font-size: 18px; }
.claim-card-head p { font-size: 12px; }
.claim-progress h4, .claim-card-grid h4 { font-size: 14px; }
.claim-progress span { font-size: 10px; }
.claim-progress i { width: 29px; height: 29px; font-size: 10px; }
.claim-card-grid dl, .doc-check { font-size: 12px; }
.claim-card-grid h4 span { font-size: 11px; }
.owner > span { width: 44px; height: 44px; font-size: 11px; }
.owner b, .communication b { font-size: 13px; }
.communication p { font-size: 12px; }
.communication small { font-size: 10px; }

.status-switch b, .history-record p, .allocation-history-person b, .people-options b, .allocation-type b, .allocation-section h3 { font-size: 13px; }
.history-record small, .allocation-history-person small, .allocation-type small, .history-reason, .empty-history-note, .selected-people span { font-size: 11px; }
.allocation-history-card dl { font-size: 11px; }
.history-avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 11px; }
.allocation-type legend { font-size: 14px; }
.allocation-type label { min-height: 78px; padding: 13px; }
.policy-items-modal li, .policy-coverage-list li { padding: 10px 13px; font-size: 12px; }
.policy-coverage-list h3 span { font-size: 11px; }
.document-name { max-width: 200px; min-height: 32px; font-size: 10px; }
.document-upload, .count-chip { width: 36px; min-width: 36px; min-height: 34px; }
#toast { padding: 12px 15px; border-radius: 8px; font-size: 12px; }

/* Scenario-aware asset-policy mapping */
.mapping-summary { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.mapping-summary.ready { border-color: #9bd3b0; background: #f3faf5; }
.mapping-summary > div { display: flex; align-items: center; gap: 13px; }
.mapping-summary-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 11px; background: #eef1ef; color: var(--text-2); font-size: 17px; }
.mapping-summary.ready .mapping-summary-icon { background: #dff3e6; color: #23824d; }
.mapping-summary p { display: grid; gap: 4px; }
.mapping-summary b { font-size: 15px; font-weight: 500; }
.mapping-summary small { color: var(--muted); font-size: 12px; }
.mapping-summary button { min-width: 165px; }
.mapping-card.selectable { position: relative; padding-right: 50px; cursor: pointer; }
.mapping-card[data-select-mapping-asset].selected { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 3px rgba(255,122,33,.14), 0 8px 20px rgba(17,20,19,.06); transform: translateY(-1px); }
.mapping-card[data-select-mapping-asset].selected:hover { border-color: var(--orange); background: var(--orange-soft); }
.mapping-card.policy-drop.selected { border-color: #35a662; background: #f2faf5; box-shadow: 0 0 0 3px rgba(53,166,98,.13), 0 8px 20px rgba(17,20,19,.06); transform: translateY(-1px); }
.mapping-card.policy-drop.selected:hover { border-color: #35a662; background: #f2faf5; }
.mapping-check { position: absolute; top: 13px; right: 13px; width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid #cfd5d2; border-radius: 7px; background: #fff; color: transparent; font-size: 14px; font-weight: 700; }
.mapping-card[data-select-mapping-asset].selected .mapping-check { border-color: var(--orange); background: var(--orange); color: #fff; }
.mapping-card.policy-drop.selected .mapping-check { border-color: #35a662; background: #35a662; color: #fff; }
.mapping-card.policy-drop.drag-over { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 4px rgba(255,122,33,.14); }
.mapping-count { min-width: 38px; min-height: 34px; padding: 0 10px; border-color: #ffd2b5; border-radius: 9px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 600; }
.mapping-name-link, .linked-name { width: auto; max-width: 100%; min-height: auto; justify-content: flex-start; padding: 0; border: 0; background: transparent; color: #286f9d; font-weight: 500; line-height: 1.35; text-align: left; white-space: normal; }
.mapping-name-link:hover, .linked-name:hover, .linked-name-text:hover { border: 0; background: transparent; color: var(--orange-dark); text-decoration: underline; }
.linked-name-text { cursor: pointer; color: #286f9d; }
.mapping-create-meta { min-height: auto; display: grid; grid-template-columns: minmax(280px,1fr) minmax(260px,1fr); align-items: end; gap: 20px; margin-bottom: 16px; }
.mapping-create-meta > div { display: grid; gap: 4px; padding-bottom: 4px; }
.mapping-create-meta b { font-size: 14px; font-weight: 500; }
.mapping-create-meta small { color: var(--muted); font-size: 11px; }
.mapping-detail-visual { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(300px,.7fr); gap: 18px; margin-bottom: 18px; }
.coverage-bars { display: grid; gap: 18px; padding: 22px 4px 6px; }
.coverage-bars > div { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; }
.coverage-bars > div:before { content: ""; grid-column: 1 / -1; grid-row: 1; height: 14px; border-radius: 8px; background: #edf0ee; }
.coverage-bars span { z-index: 1; grid-column: 1 / -1; grid-row: 1; height: 14px; border-radius: 8px; background: #35a662; }
.coverage-bars span.uninsured { background: var(--red); }
.coverage-bars span.expiry { background: var(--orange); }
.coverage-bars b { font-size: 13px; font-weight: 500; }
.coverage-bars small { color: var(--muted); font-size: 12px; }
.mapping-coverage-score { display: grid; justify-items: center; text-align: center; }
.mapping-coverage-score h4 { justify-self: start; }
.mapping-coverage-score p { color: var(--muted); font-size: 12px; }
.mapping-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.linked-section { margin-bottom: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.linked-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.linked-section-head h3 { font-size: 17px; font-weight: 500; }
.linked-section-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.linked-member-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.linked-member { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.linked-member.asset-member { border-left: 4px solid var(--orange); background: #fffaf6; }
.linked-member.policy-member { border-left: 4px solid #35a662; background: #f5fbf7; }
.linked-member > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.linked-member > div:last-child { justify-content: flex-start; margin-top: 13px; }
.linked-member > div > span:first-child { color: var(--orange-dark); font-size: 11px; font-weight: 500; }
.linked-member h4, .linked-member .linked-name { margin-top: 10px; font-size: 14px; font-weight: 500; }
.linked-member p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.linked-member .asset-expiry { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 12px; padding: 8px 9px; border-radius: 9px; }
.asset-expiry b { font-size: 11px; font-weight: 500; }
.expiry-flag { padding: 4px 7px; border-radius: 6px; font-size: 9px; font-weight: 600; text-transform: uppercase; }
.asset-expiry.low { background: #edf8f1; color: #23824d; }
.asset-expiry.low .expiry-flag { background: #d9f0e2; color: #23824d; }
.asset-expiry.medium { background: #fff9e8; color: #8a6c12; }
.asset-expiry.medium .expiry-flag { background: #f6e9b8; color: #8a6c12; }
.asset-expiry.high { background: #fff3e8; color: #b85d14; }
.asset-expiry.high .expiry-flag { background: #ffdfc2; color: #b85d14; }
.asset-expiry.critical { background: #fcecef; color: #b93b49; }
.asset-expiry.critical .expiry-flag { background: #f5d5da; color: #b93b49; }
.mapping-popup-list { display: grid; gap: 8px; max-height: 390px; overflow-y: auto; margin-top: 14px; }
.mapping-popup-list > div { display: grid; grid-template-columns: 125px 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; }
.mapping-popup-list > div > span { color: var(--orange-dark); font-size: 11px; font-weight: 500; }
.mapping-popup-list p { display: grid; gap: 3px; }
.mapping-popup-list b { font-size: 13px; font-weight: 500; }
.mapping-popup-list small { color: var(--muted); font-size: 11px; }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 245px minmax(0,1fr); }
  .is-collapsed { grid-template-columns: 70px minmax(0,1fr); }
  .content { padding: 24px 20px 48px; }
  .stats.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tracker-layout { grid-template-columns: 1fr; }
  .tracker-detail { position: static; }
  .linked-member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 980px) {
  .workspace, .is-collapsed { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; max-height: none; }
  .topbar { grid-template-columns: minmax(180px,1fr) 42px; }
  .profile { display: none; }
  .filter-grid { grid-template-columns: repeat(2,minmax(160px,1fr)); }
  .login-card { width: min(720px,100%); }
  .login-form { padding: 48px; }
  .mapping-summary { align-items: stretch; flex-direction: column; }
  .mapping-summary button { width: 100%; }
  .mapping-detail-visual, .mapping-meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { font-size: 16px; }
  .content { padding: 20px 14px 40px; }
  .topbar { height: 70px; padding: 0 14px; }
  .page-head h1, .dashboard-heading h1 { font-size: 24px; }
  .stats.four, .stats.three, .filter-grid { grid-template-columns: 1fr; }
  .stat { min-height: 116px; }
  .panel, .filter-card, .asset-list, .detail-pane { padding: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .login-bg { padding: 14px; }
  .login-form { padding: 32px 24px; }
  .login-form h1 { font-size: 32px; }
  .mapping-create-meta, .linked-member-grid { grid-template-columns: 1fr; }
  .linked-section-head { align-items: stretch; flex-direction: column; }
}

.topbar { display: flex; justify-content: flex-end; }
.stat h2, .stat-value h2 { color: #111; font-weight: 800 !important; }
@media (max-width: 980px) {
  .topbar { display: flex; justify-content: flex-end; }
}

/* Unified filter layout */
.filter-card.compact,
.filter-card.compact.tracker-filter,
.filter-card.history-filter,
.filter-card.mapping-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  gap: 12px;
  padding: 18px;
}
.compact-filter-head {
  grid-column: 1 / -1;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.compact-filter-head strong { font-size: 14px; font-weight: 600; }
.compact-filter-head .filter-leading-icon { align-self: center; }
.compact-filter-head .reset-filter { margin-left: auto; }
.filter-card.compact > .date-filter,
.filter-card.history-filter > .date-filter,
.filter-card.mapping-filters > .date-filter,
.filter-card.compact > .search-select,
.filter-card.history-filter > .search-select,
.filter-card.mapping-filters > .search-select,
.filter-card.mapping-filters > label { width: 100%; min-width: 0; margin: 0; }
.filter-card .search-select-trigger,
.filter-card input,
.filter-card select { min-width: 0; min-height: 42px; }
.filter-card .search-select { min-width: 0; }
.filter-card .search-select-popover { top: calc(100% + 7px); bottom: auto; }
.filter-card .view-switch { align-self: end; }
.filter-card .view-switch button { min-height: 42px; }
.filter-card .panel-title { align-items: center; margin-bottom: 14px; }
.filter-card .panel-title .reset-filter { margin-left: auto; }
.filter-grid { align-items: end; gap: 12px; }
.date-filter { display: grid; grid-template-rows: auto auto; align-content: end; gap: 6px; min-width: 0; }
.filter-card .date-filter input[type="date"] { order: initial !important; width: 100%; min-width: 0; }

/* Keep mapping register asset and policy names on one line. */
.table-panel .mapping-name-link {
  display: block;
  width: 100%;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .filter-card.compact,
  .filter-card.compact.tracker-filter,
  .filter-card.history-filter,
  .filter-card.mapping-filters { grid-template-columns: 1fr; }
}

/* Unified claim register and detail */
tr[data-claim-row] { cursor: pointer; }
tr[data-claim-row]:hover { background: var(--orange-soft); }
.claim-journey { margin-bottom: 18px; overflow: hidden; }
.claim-journey h3 { font-size: 17px; font-weight: 600; }
.claim-journey-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.claim-journey-head > span { padding: 6px 9px; border-radius: 7px; background: var(--orange-soft); color: var(--orange-dark); font-size: 10px; }
.claim-journey > div { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); }
.claim-journey button { position: relative; min-width: 0; min-height: 105px; display: grid; grid-template-rows: 32px minmax(34px,auto) 18px; justify-items: center; align-content: start; gap: 7px; padding: 0 5px; border: 0; background: transparent; color: var(--muted); text-align: center; white-space: normal; cursor: default; pointer-events: none; }
.claim-journey button:hover { border: 0; background: transparent; }
.claim-journey .button-icon { display: none; }
.claim-journey button:before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 3px; background: #dfe3e1; }
.claim-journey button:first-child:before { left: 50%; }
.claim-journey button:last-child:before { right: 50%; }
.claim-journey i { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e7eae8; font-size: 11px; font-style: normal; font-weight: 700; }
.claim-journey b { max-width: 130px; font-size: 11px; font-weight: 600; }
.claim-journey small { font-size: 10px; }
.claim-journey button.done { color: var(--text); }
.claim-journey button.done:before, .claim-journey button.done i { background: var(--orange); color: #fff; }
.claim-journey button.done.journey-green:before, .claim-journey button.done.journey-green i,
.claim-journey button.done.journey-red:before, .claim-journey button.done.journey-red i { background: var(--orange); color: #fff; }
.claim-journey button.journey-green b, .claim-journey button.journey-red b { color: var(--text); }
.claim-journey button.current { color: var(--text); opacity: 1; }
.claim-journey button.current:before { background: linear-gradient(to right,var(--orange) 0 50%,#dfe3e1 50% 100%); }
.claim-journey button.current i { border: 2px solid var(--orange); background: #fff; color: var(--orange-dark); box-shadow: 0 0 0 5px var(--orange-soft); }
.claim-journey button.current b, .claim-journey button.current small { color: var(--orange-dark); }
.claim-journey button.locked { opacity: .55; }
.claim-assets-modal { width: min(760px,100%); }
.claim-assets-modal table { min-width: 600px; }
.claim-risk { width: fit-content; display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; }
.claim-risk b { font-size: 10px; font-weight: 600; white-space: nowrap; }
.state-activity { display: grid; gap: 8px; max-height: 220px; overflow-y: auto; margin: 16px 0; }
.state-activity > div, .state-activity > p { padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfa; }
.state-activity p { margin-top: 5px; color: var(--text-2); font-size: 12px; }
.state-activity small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.claim-state-form { margin-top: 14px; }
.communication-list { display: grid; gap: 9px; max-height: 480px; overflow-y: auto; margin-top: 16px; }
.communication-list article { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; }
.communication-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.communication-list p { margin: 8px 0; color: var(--text-2); font-size: 12px; }
.communication-list strong { font-size: 11px; }
.communication-list em { display: block; margin-top: 7px; color: var(--orange-dark); font-size: 10px; font-style: normal; }

/* Multi-asset claim entry */
.claim-entry-modal { width: min(980px,100%); }
.claim-entry-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.claim-entry-heading > div:first-child p { margin-top: 6px; color: var(--muted); }
.claim-entry-totals { display: flex; gap: 10px; }
.claim-entry-totals span { min-width: 155px; display: grid; gap: 5px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; color: var(--muted); font-size: 10px; }
.claim-entry-totals b { color: #111; font-size: 17px; font-weight: 800; }
.claim-assets-builder-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.claim-assets-builder-head p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.claim-assets-builder { display: grid; gap: 12px; margin-top: 13px; }
.claim-entry-asset { padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 11px; background: #fffaf6; }
.claim-entry-asset.coverage-active { border-color: #a9dcbc; border-left-color: #35a662; background: #f1faf4; }
.claim-entry-asset.coverage-expired { border-color: #efc4ca; border-left-color: var(--red); background: #fff3f5; }
.claim-entry-asset.coverage-uninsured { border-color: #d5dad7; border-left-color: #8b938f; background: #f3f5f4; }
.claim-entry-asset.coverage-active .claim-asset-facts p { border-color: #d4ebdc; }
.claim-entry-asset.coverage-expired .claim-asset-facts p { border-color: #f1d8dc; }
.claim-entry-asset.coverage-uninsured .claim-asset-facts p { border-color: #dfe3e1; }
.claim-entry-asset-head { display: grid; grid-template-columns: minmax(260px,1fr) auto; align-items: end; gap: 12px; }
.claim-entry-asset-head .danger-outline { align-self: end; }
.claim-asset-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.claim-asset-facts p { min-width: 0; display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #eee7e2; border-radius: 8px; background: #fff; color: var(--muted); font-size: 10px; }
.claim-asset-facts b { overflow: hidden; color: var(--text); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.claim-asset-facts .badge { width: fit-content; }
.previous-claims { margin-top: 12px; padding-top: 11px; border-top: 1px solid #eadfd7; }
.previous-claims h4 { margin-bottom: 7px; font-size: 12px; }
.previous-claims > p { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0e8e3; }
.previous-claims > p:last-child { border-bottom: 0; }
.previous-claims span, .previous-claims small { color: var(--muted); font-size: 10px; }
.previous-claims em { font-style: normal; }
.previous-claims .mapping-name-link { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claim-asset-facts .mapping-name-link { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claim-register-backdrop { place-items: start center; overflow-y: auto; }
.claim-register-modal { width: min(1240px,100%); max-height: none; overflow: visible; }
.claim-register-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,.8fr); align-items: start; gap: 18px; margin-top: 18px; }
.claim-register-main, .claim-register-side { display: grid; gap: 16px; }
.claim-register-side { position: sticky; top: 0; }
.claim-form-card { overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.claim-form-card > h3, .claim-form-card .claim-assets-builder-head h3 { display: flex; align-items: center; gap: 9px; margin: -18px -18px 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fafbfc; font-size: 15px; font-weight: 600; }
.claim-form-card > h3 svg, .claim-form-card .claim-assets-builder-head h3 svg { width: 18px; color: var(--orange); }
.claim-form-card .claim-assets-builder-head { align-items: flex-start; }
.claim-form-card .claim-assets-builder-head > div { flex: 1; }
.claim-form-card .claim-assets-builder-head h3 { margin-bottom: 0; }
.claim-form-card .claim-assets-builder-head p { padding: 0 0 10px; }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.claim-file-button { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border: 2px dashed #cfd5da; border-radius: 10px; color: var(--text); cursor: pointer; }
.claim-file-button:hover { border-color: var(--orange); background: var(--orange-soft); }
.claim-file-button input { display: none; }
.file-help { margin: 10px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.claim-file-list { display: grid; gap: 7px; }
.claim-file-list > p { padding: 10px; border-radius: 8px; background: #fafbfa; color: var(--muted); text-align: center; font-size: 11px; }
.claim-file-list > div { display: grid; grid-template-columns: 26px 1fr 28px; align-items: center; gap: 6px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; }
.claim-file-list > div > span { display: grid; place-items: center; color: var(--orange-dark); }
.claim-file-list input { min-width: 0; }
.claim-file-list button { min-width: 28px; padding: 0; border: 0; color: var(--red); }
.claim-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; }
.claim-summary dt, .claim-summary dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.claim-summary dt { color: var(--muted); }
.claim-summary dd { color: var(--text); font-weight: 600; text-align: right; }
.quick-policy-list { display: grid; gap: 8px; }
.quick-policy-list button { min-height: 52px; display: grid; grid-template-columns: 20px 1fr 18px; align-items: center; gap: 8px; padding: 8px 10px; text-align: left; }
.quick-policy-list button > span { min-width: 0; display: grid; gap: 3px; font-weight: 600; }
.quick-policy-list small { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.claim-review-panel { margin-top: 18px; }
.claim-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.claim-review-head h3 { font-size: 15px; }
.claim-review-head p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.claim-review-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 12px; align-items: stretch; }
.claim-review-comment textarea { min-height: 132px; }
.claim-review-upload { min-height: 132px; display: grid; align-content: start; gap: 7px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; }
.claim-review-upload > label { gap: 5px; }
.claim-review-upload input[type="file"] { min-height: 34px; padding: 5px 7px; background: #fff; }
.claim-review-upload > small { color: var(--muted); font-size: 9px; }
.claim-review-upload .claim-file-list { max-height: 105px; overflow-y: auto; }
.claim-review-upload .claim-file-list > div { grid-template-columns: 22px 1fr 24px; padding: 5px; }
.claim-review-upload .claim-file-list input { min-height: 28px; font-size: 10px; }
.claim-decision-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.claim-decision-actions button { min-width: 125px; }
.claim-policy-popup { width: min(820px,100%); }
.link-button { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--orange-dark); font-weight: 700; text-decoration: underline; }
.cs-assets-modal { width: min(820px,100%); }
.cs-upload-modal { width: min(620px,100%); }
.cs-upload-box { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; background: #fafbfa; }
.cs-upload-box textarea, .cs-priority-comment textarea { min-height: 92px; }
.cs-upload-history { display: grid; gap: 8px; margin-top: 15px; }
.cs-upload-history h3 { font-size: 13px; }
.cs-upload-history article { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cs-upload-history b { display: block; font-size: 12px; }
.cs-upload-history span, .cs-upload-history p { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.cs-view-modal { width: min(1060px,100%); }
.csq-create-modal { width: min(780px,100%); }
.csq-create-modal textarea { min-height: 110px; }
.csq-type-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.csq-type-picker label { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfa; }
.csq-type-picker input { width: auto; min-height: auto; }
.csq-add-type { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; margin-top: 10px; }
.cs-quote-list { display: grid; gap: 12px; margin-top: 16px; }
.cs-quote-card { display: grid; grid-template-columns: minmax(210px,.9fr) 150px minmax(0,1.5fr); gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cs-quote-card.priority { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 10px 26px rgba(246, 125, 48, .14); }
.cs-quote-card.lowest:not(.priority) { border-color: #9bd7b6; background: #f0fbf5; }
.cs-quote-card label { display: flex; flex-direction: row; align-items: center; gap: 10px; margin: 0; }
.cs-quote-card label span { display: grid; gap: 4px; }
.cs-quote-card small { color: var(--muted); font-size: 10px; }
.cs-quote-price { display: grid; gap: 2px; color: var(--orange-dark); font-size: 18px; font-weight: 800; }
.cs-quote-card dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0; }
.cs-quote-card dt { color: var(--muted); font-size: 10px; }
.cs-quote-card dd { margin: 3px 0 0; color: var(--text); font-size: 12px; font-weight: 600; }
.cs-priority-comment { margin-top: 16px; }
.csq-detail-head { align-items: center; }
.csq-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.csq-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.csq-remarks { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; }
.csq-remarks b { display: block; margin-bottom: 7px; font-size: 12px; }
.csq-remarks p { min-height: 112px; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.csq-notes-panel { margin-bottom: 14px; }
.csq-note-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 12px; }
.csq-note-list { display: grid; gap: 8px; margin-top: 12px; }
.csq-note-list article { position: relative; padding: 10px 42px 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; }
.csq-note-list b { font-size: 12px; }
.csq-note-list span { margin-left: 8px; color: var(--muted); font-size: 10px; }
.csq-note-list p { margin-top: 5px; color: var(--text-2); font-size: 12px; }
.csq-note-delete { position: absolute; top: 8px; right: 8px; width: 26px; min-height: 26px; padding: 0; border-radius: 50%; color: #b42318; font-size: 16px; }
.csq-action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.csq-upload-history { margin-bottom: 14px; }
.csq-upload-list { display: grid; gap: 9px; margin-top: 12px; }
.csq-upload-list article { display: grid; grid-template-columns: 34px minmax(0,1fr) 170px; gap: 11px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfa; }
.csq-upload-list article > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); font-size: 12px; font-weight: 800; }
.csq-upload-list b { font-size: 12px; }
.csq-upload-list p { margin-top: 3px; color: var(--text-2); font-size: 11px; }
.csq-upload-list small { color: var(--muted); font-size: 10px; line-height: 1.45; text-align: right; }
.csq-table-panel { overflow: hidden; }
.csq-table-scroll { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.csq-matrix { min-width: 1180px; }
.csq-matrix th, .csq-matrix td { height: auto; min-width: 190px; padding: 12px 14px; white-space: normal; vertical-align: top; }
.csq-matrix thead th { position: sticky; top: 0; z-index: 1; background: #f7f8fa; }
.csq-matrix th:first-child, .csq-matrix td:first-child { position: sticky; left: 0; z-index: 2; min-width: 230px; background: #fff; color: var(--text); font-weight: 700; }
.csq-matrix thead th:first-child { z-index: 3; background: #f7f8fa; }
.csq-matrix th.l1, .csq-matrix td.l1 { background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.csq-matrix thead th label { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; margin: 0; }
.csq-matrix thead th b { width: fit-content; padding: 3px 7px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; }
@media (max-width: 760px) {
  .claim-entry-heading { flex-direction: column; }
  .claim-entry-totals { width: 100%; flex-direction: column; }
  .claim-entry-totals span { min-width: 0; }
  .claim-entry-asset-head, .claim-asset-facts { grid-template-columns: 1fr; }
  .claim-register-layout, .form-grid.three { grid-template-columns: 1fr; }
  .claim-review-grid { grid-template-columns: 1fr; }
  .cs-quote-card, .cs-quote-card dl { grid-template-columns: 1fr; }
  .csq-type-picker, .csq-add-type { grid-template-columns: 1fr; }
  .csq-info-grid, .csq-note-entry, .csq-upload-list article { grid-template-columns: 1fr; }
  .csq-head-actions { justify-content: flex-start; }
  .csq-upload-list small { text-align: left; }
  .claim-register-side { position: static; }
}
@media (min-width: 521px) {
  .claim-review-grid { grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr); }
}

/* Project-site inventory declarations */
.site-entry-bar { display: flex; justify-content: flex-start; margin-bottom: 10px; }
.site-entry-bar .primary { min-width: 110px; }
.site-entry-backdrop { place-items: stretch end; padding: 0; }
.site-entry-modal { width: min(590px,100%); height: 100vh; max-height: 100vh; padding: 28px; border-radius: 18px 0 0 18px; overflow-y: auto; }
.site-history-modal { width: min(900px,100%); }
.site-history-list { display: grid; gap: 8px; margin-top: 16px; }
.site-history-list article { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; }
.site-history-list article > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--orange-soft); color: var(--orange-dark); }
.site-history-list svg { width: 16px; height: 16px; }
.site-history-list b { font-size: 12px; font-weight: 600; }
.site-history-list p { margin-top: 5px; color: var(--text-2); font-size: 11px; }
.site-history-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.site-inventory-history { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; }
.site-inventory-history table { min-width: 760px; }
.site-inventory-history th { height: 48px; background: #f7f8fa; color: #687083; font-size: 10px; text-transform: none; }
.site-inventory-history td { height: 70px; color: #344054; font-size: 12px; white-space: normal; }
.site-inventory-history td:first-child { color: #202939; font-size: 13px; }
.inventory-status { width: fit-content; min-height: 25px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 14px; background: #050315; color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; }
.inventory-status svg { width: 12px; height: 12px; }
.inventory-status.damaged { background: #fff0f1; color: #d92d36; }
@media (max-width: 640px) {
  .site-entry-modal { border-radius: 0; }
}
