:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --line: #dfe4e8;
  --text: #17202a;
  --muted: #66727f;
  --nav: #0b223d;
  --nav-soft: #173a60;
  --green: #12355b;
  --green-soft: #e8eff7;
  --success: #087f5b;
  --success-soft: #e8f5f0;
  --blue: #2563a9;
  --blue-soft: #eaf2fb;
  --amber: #a35c00;
  --amber-soft: #fff4df;
  --red: #b42318;
  --red-soft: #fff0ef;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: Inter, system-ui, sans-serif; color: var(--text); background: var(--bg); scroll-padding-top: 96px; }
body { margin: 0; font-size: 14px; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; flex: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--nav); color: #dce4ea; display: flex; flex-direction: column; padding: 18px 14px 14px; z-index: 40; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-logo { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; }
.brand-logo.large { width: 56px; height: 56px; }
.brand strong { display: block; color: white; font-size: 15px; }
.brand small { display: block; color: #96a4af; margin-top: 2px; font-size: 11px; }
.nav-list { flex: 1; overflow-y: auto; padding-top: 15px; }
.nav-list p { color: #71818d; font-size: 10px; font-weight: 700; margin: 20px 10px 7px; }
.nav-list a { height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border-radius: 5px; color: #b9c5ce; margin: 2px 0; font-weight: 500; }
.nav-list a:hover { background: var(--nav-soft); color: white; }
.nav-list a.active { color: white; background: var(--green); }
.nav-submenu { margin: 2px 0 8px 17px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.14); }
.nav-submenu a { height: 30px; gap: 8px; padding: 0 9px; font-size: 11px; }
.nav-submenu a svg { width: 14px; height: 14px; }
.sidebar-user { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 4px 0; display: grid; grid-template-columns: 34px 1fr 34px; gap: 9px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #dbe9f7; color: var(--blue); font-weight: 700; }
.user-copy { min-width: 0; }
.user-copy strong, .user-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-copy strong { color: white; font-size: 12px; }
.user-copy small { color: #81909b; font-size: 10px; margin-top: 3px; }
.sidebar .icon-button { color: #aab6bf; }

.app-main { min-width: 0; }
.topbar { height: 72px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.topbar h1 { margin: 2px 0 0; font-size: 19px; line-height: 1.2; }
.crumb { color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.topbar-date { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.mobile-menu { display: none; }
.content { padding: 24px 28px 40px; max-width: 1600px; }

.page-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-actions-end { justify-content: flex-end; }
.page-actions p { margin: 0; color: var(--muted); }
.action-group { display: flex; gap: 8px; flex-wrap: wrap; }
.button, .icon-button { border: 1px solid transparent; border-radius: 5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; transition: .15s ease; }
.button { min-height: 38px; padding: 8px 13px; white-space: nowrap; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: #066c4d; }
.button.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: #aeb8c0; }
.button.danger { background: var(--red-soft); color: var(--red); border-color: #f5c2be; }
.button.small { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.button.full { width: 100%; }
.icon-button { width: 34px; height: 34px; background: var(--surface); border-color: var(--line); padding: 0; }
.icon-button:hover { border-color: #aeb8c0; }
.icon-button.ghost { background: transparent; border-color: transparent; }

.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 22px; }
.dashboard-value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.dashboard-summary-panel .dashboard-value-grid { margin-bottom: 0; }
.value-card { min-height: 142px; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.value-card::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
.value-card.actual::after { background: var(--green); }
.value-card.adjustment::after { background: var(--amber); }
.value-card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.value-card.actual .value-card-icon { background: var(--green-soft); color: var(--green); }
.value-card.adjustment .value-card-icon { background: var(--amber-soft); color: var(--amber); }
.value-card-icon svg { width: 24px; height: 24px; }
.value-card-label { display: block; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.value-card strong { display: block; margin: 7px 0 6px; font-size: clamp(22px, 2.2vw, 31px); line-height: 1; }
.value-card small { color: var(--muted); font-size: 11px; }
.purchase-chart-panel { margin-bottom: 20px; }
.chart-period { padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 10px; font-weight: 600; }
.purchase-chart { min-height: 265px; display: grid; grid-template-columns: repeat(12, minmax(42px, 1fr)); gap: 9px; align-items: end; overflow-x: auto; padding: 10px 2px 0; }
.chart-column { height: 240px; min-width: 42px; display: grid; grid-template-rows: 22px 1fr 24px; gap: 5px; text-align: center; }
.chart-value { align-self: center; color: var(--muted); font-size: 9px; font-weight: 600; }
.chart-track { height: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); background: linear-gradient(to top, rgba(223,228,232,.45) 1px, transparent 1px); background-size: 100% 25%; }
.chart-bar { width: min(72%, 42px); min-height: 2px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #285a8e, var(--green)); transition: opacity .15s ease; }
.chart-column:hover .chart-bar { opacity: .78; }
.chart-bar.empty { background: #dce3e7; }
.chart-label { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.stat-item { min-height: 132px; padding: 18px; border-right: 1px solid var(--line); display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 15px; align-items: center; }
.stat-item:last-child { border-right: 0; }
.stat-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 7px; background: var(--green-soft); color: var(--green); }
.stat-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.amber { background: var(--amber-soft); color: var(--amber); }
.stat-item strong { display: block; font-size: 25px; line-height: 1.1; }
.stat-item > div > span { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.stat-item small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.dashboard-guide { overflow: hidden; }
.dashboard-guide > .panel-header > svg { color: var(--blue); }
.dashboard-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-guide-section { min-width: 0; display: flex; flex-direction: column; padding: 18px; border-right: 1px solid var(--line); }
.dashboard-guide-section:last-child { border-right: 0; }
.dashboard-guide-section > header { min-height: 45px; display: flex; align-items: flex-start; gap: 10px; }
.dashboard-guide-section > header > span { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 5px; background: var(--blue-soft); color: var(--blue); }
.dashboard-guide-section h3 { margin: 1px 0 0; font-size: 13px; }
.dashboard-guide-section header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.dashboard-equation { min-height: 64px; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin: 15px 0; padding: 12px; border-left: 3px solid var(--green); background: var(--surface-2); }
.dashboard-equation strong { color: var(--green); font-size: 23px; line-height: 1; }
.dashboard-equation span { color: var(--muted); font-size: 10px; }
.dashboard-equation b { margin: 0 3px; color: var(--text); }
.dashboard-equation em { color: #3f4c57; font-size: 10px; font-style: normal; font-weight: 600; }
.dashboard-room-total { min-height: 64px; display: flex; align-items: baseline; gap: 7px; margin: 15px 0; padding: 12px; border-left: 3px solid var(--blue); background: var(--surface-2); }
.dashboard-room-total strong { color: var(--blue); font-size: 23px; line-height: 1; }
.dashboard-room-total span { color: var(--muted); font-size: 10px; }
.dashboard-definitions { margin: 0; }
.dashboard-definitions > div { padding: 10px 0; border-top: 1px solid #edf0f2; }
.dashboard-definitions > div:first-child { padding-top: 0; border-top: 0; }
.dashboard-definitions dt { font-size: 10px; font-weight: 700; }
.dashboard-definitions dd { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.dashboard-breakdown { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.dashboard-breakdown span { display: inline-flex; align-items: center; gap: 4px; min-height: 25px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 9px; }
.dashboard-breakdown strong { color: var(--text); }
.dashboard-guide-note { margin: 10px 0 0; padding: 9px; color: var(--muted); background: var(--amber-soft); font-size: 9px; line-height: 1.45; }
.dashboard-guide-note strong { color: var(--amber); }
.dashboard-guide-link { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: auto; padding-top: 14px; color: var(--green); font-size: 10px; font-weight: 700; }
.dashboard-guide-link:hover { text-decoration: underline; }
.dashboard-guide-link svg { width: 14px; height: 14px; }
.dashboard-data-flow { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: #fbfcfd; color: var(--muted); font-size: 9px; }
.dashboard-data-flow span { display: inline-flex; align-items: center; gap: 5px; }
.dashboard-data-flow span > svg { color: var(--blue); }
.dashboard-data-flow > svg { width: 14px; color: #98a4ae; }
.dashboard-data-flow b { color: var(--text); font-size: 9px; }
.dashboard-visualization-action { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dashboard-visualization-title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.dashboard-visualization-title > span { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 6px; background: var(--green-soft); color: var(--green); }
.dashboard-visualization-title strong, .dashboard-visualization-title small { display: block; }
.dashboard-visualization-title strong { font-size: 14px; }
.dashboard-visualization-title small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.panel-header { min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-header h2 { font-size: 14px; margin: 0; }
.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 18px; }
.panel-body.flush { padding: 0; overflow-x: auto; }
.panel-body.flush.table-host { overflow: hidden; }
.table-scroll { width: 100%; overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th { background: var(--surface-2); color: #52606d; font-size: 10px; text-transform: uppercase; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid #edf0f2; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfd; }
.purchase-category-row td { background: var(--category-row, #f8fafc); }
.purchase-category-row td:first-child { box-shadow: inset 4px 0 var(--category-accent, #94a3b8); }
.purchase-category-row:hover td { filter: brightness(.98); }
.purchase-category-row[data-category="WIFI"], .category-badge[data-category="WIFI"] { --category-row: #eff8ff; --category-accent: #2583d8; }
.purchase-category-row[data-category="SSD"], .category-badge[data-category="SSD"] { --category-row: #eefbf4; --category-accent: #159669; }
.purchase-category-row[data-category="COMBO"], .category-badge[data-category="COMBO"] { --category-row: #fff7e8; --category-accent: #d97706; }
.purchase-category-row[data-category="NETWORKING"], .category-badge[data-category="NETWORKING"] { --category-row: #eefafa; --category-accent: #0f9292; }
.purchase-category-row[data-category="HDMI"], .category-badge[data-category="HDMI"] { --category-row: #f5f0ff; --category-accent: #7c4dcc; }
.purchase-category-row[data-category="SOFTWARE"], .category-badge[data-category="SOFTWARE"] { --category-row: #fdf0fa; --category-accent: #c24193; }
.purchase-category-row[data-category="RAM"], .category-badge[data-category="RAM"] { --category-row: #fff1f2; --category-accent: #e24b5f; }
.purchase-category-row[data-category="CPU"], .category-badge[data-category="CPU"] { --category-row: #fff4ed; --category-accent: #e25d24; }
.purchase-category-row[data-category="MB"], .category-badge[data-category="MB"] { --category-row: #f1f4ff; --category-accent: #5067d6; }
.purchase-category-row[data-category="MOUSE"], .category-badge[data-category="MOUSE"] { --category-row: #f3faec; --category-accent: #65a530; }
.purchase-category-row[data-category="KEYBOARD"], .category-badge[data-category="KEYBOARD"] { --category-row: #fffbe7; --category-accent: #b99500; }
.purchase-category-row[data-category="OTHER"], .category-badge[data-category="OTHER"] { --category-row: #f4f5f7; --category-accent: #7b8794; }
.category-badge { background: var(--category-row); color: var(--category-accent); border: 1px solid color-mix(in srgb, var(--category-accent) 28%, transparent); }
.number-column, .row-number { width: 58px; text-align: center !important; color: var(--muted); font-variant-numeric: tabular-nums; }
.data-table-panel { overflow: hidden; }
.table-toolbar, .table-footer { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; background: var(--surface); }
.table-toolbar { border-bottom: 1px solid var(--line); }
.table-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.table-heading strong, .table-heading span { display: block; }
.table-heading strong { font-size: 13px; }
.table-heading span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.table-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 1; }
.page-size-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 500; }
.page-size-label select { width: 66px; min-height: 32px; padding: 5px 8px; }
.table-search { position: relative; width: min(100%, 390px); }
.table-search > svg { position: absolute; left: 11px; top: 10px; width: 16px; color: var(--muted); pointer-events: none; }
.table-search input { padding-left: 35px; padding-right: 38px; }
.table-search .icon-button { position: absolute; right: 2px; top: 2px; color: var(--muted); }
.sort-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; text-transform: inherit; cursor: pointer; }
.sort-button svg { width: 13px; height: 13px; opacity: .5; }
.sort-button:hover, .sort-button[data-direction] { color: var(--green); }
.sort-button[data-direction] svg { opacity: 1; }
.sort-button[data-direction="asc"] svg { transform: rotate(180deg); }
.pagination { display: flex; align-items: center; gap: 9px; }
.pagination .icon-button { width: 32px; height: 32px; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.table-empty { border-bottom: 0; }
.table-host > .table-empty { padding: 32px 20px; }
.cell-title { font-weight: 600; color: var(--text); }
.cell-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.purchase-product { display: flex; align-items: center; gap: 10px; min-width: 330px; }
.purchase-product-image { position: relative; width: 72px; height: 72px; flex: 0 0 72px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; }
.purchase-product-image img { width: 100%; height: 100%; object-fit: cover; }
.purchase-product-image span { position: absolute; right: 3px; bottom: 3px; left: 3px; padding: 2px 3px; border-radius: 3px; background: rgba(8, 39, 73, .84); color: #fff; font-size: 8px; line-height: 1.2; text-align: center; }
.cell-actions { display: flex; gap: 5px; justify-content: flex-end; }
.assignee-form { min-width: 230px; }
.assignee-select { min-height: 34px; padding: 6px 30px 6px 9px; font-size: 11px; cursor: pointer; }
.assignee-select:hover { border-color: #9eabb5; }
.asset-value-cell { min-width: 150px; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.asset-value-cell .cell-title { font-variant-numeric: tabular-nums; }
.asset-value-cell .icon-button { width: 30px; height: 30px; }
.source-edit-button { max-width: 215px; display: flex; align-items: center; gap: 5px; margin-top: 3px; padding: 0; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 11px; text-align: left; }
.source-edit-button:hover { text-decoration: underline; }
.source-edit-button svg { width: 12px; height: 12px; }
.allocation-docs { display: flex; align-items: center; gap: 6px; min-width: 110px; }
.allocation-thumb { width: 36px; height: 36px; flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); }
.allocation-thumb img { width: 100%; height: 100%; object-fit: cover; }
.allocation-thumb svg { width: 17px; color: var(--muted); }
.stock-level { width: 150px; }
.stock-level-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.stock-level-copy strong { font-size: 12px; }
.stock-level-copy span, .stock-level small { color: var(--muted); font-size: 10px; }
.stock-level small { display: block; margin-top: 4px; }
.stock-level .good { color: var(--success); }
.stock-level .medium { color: var(--blue); }
.stock-level .low { color: var(--amber); }
.stock-level .critical, .stock-level .empty { color: var(--red); }
.stock-meter { height: 6px; margin-top: 5px; overflow: hidden; border-radius: 4px; background: #e9edf0; }
.stock-meter span { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.availability-form { width: 150px; display: grid; grid-template-columns: 1fr 14px 34px; gap: 5px; align-items: center; margin-top: 7px; }
.availability-form label { min-width: 0; }
.availability-form input { min-height: 34px; margin: 0; padding: 6px 8px; }
.availability-form > span { color: var(--muted); font-size: 11px; }
.availability-form .icon-button { width: 34px; height: 34px; }
.availability-form.with-room { width: 245px; }
.availability-room { grid-column: 1 / -1; min-height: 34px; font-size: 11px; }
.availability-history-form { width: 245px; display: grid; gap: 6px; margin-top: 8px; }
.availability-history-form select { min-height: 34px; font-size: 11px; }
.availability-history-form .button { justify-self: start; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.modal-dialog { width: min(440px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 8px; color: var(--text); background: var(--surface); box-shadow: 0 22px 60px rgba(17, 31, 42, .24); }
.modal-dialog::backdrop { background: rgba(17, 31, 42, .52); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 14px; }
.modal-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.modal-body { padding: 18px 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.purchase-product-list { display: grid; gap: 5px; min-width: 240px; }
.purchase-product-list > span { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.purchase-product-list strong { font-size: 12px; font-weight: 600; }
.purchase-product-list small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.purchase-product-list:hover strong { color: var(--green); }
.spec-summary { display: grid; gap: 3px; min-width: 210px; font-size: 10px; line-height: 1.35; }
.spec-summary span { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 5px; }
.spec-summary b { color: var(--muted); font-size: 9px; }
.spec-summary .missing { color: var(--amber); }
.text-right { text-align: right !important; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty-state svg { width: 32px; height: 32px; color: #aab4bc; margin-bottom: 7px; }
.empty-state p { margin: 0 0 13px; }

.badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 700; white-space: nowrap; background: #eef1f3; color: #53616d; }
.badge.AKTIF, .badge.AVAILABLE, .badge.COMPLETED, .badge.success { background: var(--success-soft); color: var(--success); }
.badge.ALLOCATED, .badge.ACTIVE, .badge.PEMBELIAN { background: var(--blue-soft); color: var(--blue); }
.badge.BELUM_LENGKAP, .badge.MAINTENANCE, .badge.DRAFT, .badge.EXISTING { background: var(--amber-soft); color: var(--amber); }
.badge.RUSAK, .badge.DAMAGED, .badge.CANCELLED, .badge.DIHAPUS { background: var(--red-soft); color: var(--red); }
.badge.HABIS_PAKAI { background: var(--amber-soft); color: var(--amber); }
.badge.UNIT_UTUH { background: var(--blue-soft); color: var(--blue); }
.badge.COMPUTER { background: var(--blue-soft); color: var(--blue); }
.badge.MONITOR { background: #e0f2fe; color: #0369a1; }
.badge.TABLET { background: #e4f7f5; color: #087f73; }
.badge.CAMERA { background: var(--amber-soft); color: var(--amber); }
.badge.MOBILE_PHONE { background: #f1ebff; color: #6f42c1; }
.badge.PRINTER { background: var(--green-soft); color: var(--green); }
.badge.SMART_TV, .badge.PROJECTOR { background: #f1ebff; color: #6f42c1; }
.badge.SWITCH { background: #e4f7f5; color: #087f73; }
.badge.ROUTER { background: var(--amber-soft); color: var(--amber); }
.badge.ACCESS_POINT { background: #eef1f5; color: #4b5563; }
.badge.NAS { background: var(--blue-soft); color: var(--blue); }
.badge.SOFTWARE { background: #f1ebff; color: #6f42c1; }

.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-wrap { position: relative; min-width: 250px; }
.search-wrap svg { position: absolute; left: 11px; top: 10px; width: 16px; color: var(--muted); }
.search-wrap input { padding-left: 35px; }
input, select, textarea { width: 100%; border: 1px solid #cfd6dc; border-radius: 5px; background: white; color: var(--text); min-height: 38px; padding: 8px 10px; outline: none; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,53,91,.14); }
label { display: block; font-size: 12px; font-weight: 600; color: #34414d; }
label input, label select, label textarea { margin-top: 6px; font-weight: 400; }
.required::after { content: ' *'; color: var(--red); }
.help { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-span-2 { grid-column: span 2; }
.field-span-3 { grid-column: span 3; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.form-stack { display: grid; gap: 15px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.checkbox-label input { width: 16px; min-height: 16px; margin: 0; }
.unit-picker { min-width: 0; }
.unit-picker-header, .unit-picker-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.unit-picker-header strong { color: var(--green); font-size: 11px; }
.unit-picker-actions { justify-content: flex-start; margin: 8px 0; }
.unit-checklist { max-height: 310px; overflow-y: auto; border: 1px solid #cfd6dc; border-radius: 5px; background: var(--surface); }
.unit-check-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.unit-check-row:last-of-type { border-bottom: 0; }
.unit-check-row:hover { background: var(--surface-2); }
.unit-check-row:has(input:checked) { background: var(--green-soft); }
.unit-check-row input { width: 16px; min-height: 16px; margin: 0; }
.unit-check-row strong, .unit-check-row small { display: block; }
.unit-check-row strong { font-size: 12px; }
.unit-check-row small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
.unit-picker-empty { padding: 22px; margin: 0; text-align: center; color: var(--muted); }
.error-text { color: var(--red) !important; }

.alert { display: grid; grid-template-columns: 20px 1fr 32px; gap: 9px; align-items: center; border: 1px solid; border-radius: 5px; padding: 10px 11px; margin-bottom: 16px; }
.alert.success { background: var(--success-soft); border-color: #a9ddc9; color: #086547; }
.alert.error { background: var(--red-soft); border-color: #f1bbb6; color: var(--red); }
.alert .icon-button { color: currentColor; }

.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.detail-header > .detail-title { flex: 1; min-width: 0; }
.detail-header .detail-title > div { min-width: 0; }
.detail-header .detail-title h2 { overflow-wrap: anywhere; }
.detail-header > .action-group { flex: none; flex-wrap: nowrap; }
.page-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 26px 0 12px; }
.page-section-heading h2 { margin: 0; font-size: 16px; }
.page-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.room-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.room-stat-strip > div { min-height: 86px; padding: 15px 17px; border-right: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; grid-template-rows: 1fr 1fr; column-gap: 10px; align-items: center; }
.room-stat-strip > div:nth-child(4n) { border-right: 0; }
.room-stat-strip > div:nth-child(n+5) { border-top: 1px solid var(--line); }
.room-stat-strip svg { grid-row: 1 / 3; width: 21px; height: 21px; color: var(--blue); }
.room-stat-strip strong { align-self: end; font-size: 21px; line-height: 1; }
.room-stat-strip > div:nth-last-child(-n+2) strong { font-size: 17px; }
.room-stat-strip span { align-self: start; margin-top: 4px; color: var(--muted); font-size: 10px; }
.room-stat-strip .needs-attention svg, .room-stat-strip .needs-attention strong { color: var(--amber); }

.room-visual-panel { overflow: hidden; }
.room-visual { padding: 0 18px 18px; background: #f7f9fa; }
.room-visual-title { min-height: 78px; margin: 0 -18px 18px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; color: white; background: #20313f; border-bottom: 4px solid var(--green); }
.room-visual-title > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; }
.room-visual-title strong, .room-visual-title small { display: block; }
.room-visual-title strong { font-size: 16px; }
.room-visual-title small { margin-top: 4px; color: #c6d1d9; font-size: 10px; }
.room-zone { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-top: 1px solid var(--line); background: var(--surface); }
.room-zone:last-child { border-bottom: 1px solid var(--line); }
.room-zone > header { padding: 17px; display: flex; gap: 11px; align-items: flex-start; border-left: 4px solid var(--blue); border-right: 1px solid var(--line); }
.room-zone-infrastructure > header { border-left-color: var(--green); }
.room-zone-software > header { border-left-color: #6f42c1; }
.room-zone-supplies > header { border-left-color: var(--amber); }
.room-zone-parts > header { border-left-color: #52606d; }
.room-zone > header svg { margin-top: 1px; color: var(--blue); }
.room-zone-infrastructure > header svg { color: var(--green); }
.room-zone-software > header svg { color: #6f42c1; }
.room-zone-supplies > header svg { color: var(--amber); }
.room-zone-parts > header svg { color: #52606d; }
.room-zone h3 { margin: 0; font-size: 12px; }
.room-zone header span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.room-item-grid { min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.room-item { min-height: 104px; padding: 14px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: start; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.room-item:hover { background: var(--surface-2); }
.room-item-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 5px; color: var(--blue); background: var(--blue-soft); }
.room-item-copy { min-width: 0; }
.room-item-copy strong, .room-item-copy small, .room-item-copy em { display: block; }
.room-item-copy strong { overflow-wrap: anywhere; font-size: 11px; line-height: 1.4; }
.room-item-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.room-item-copy em { margin-top: 9px; color: #3f4c57; font-size: 10px; font-style: normal; line-height: 1.35; }
.room-item-copy em svg { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; color: var(--green); }
.room-item-copy .room-item-price { margin-top: 5px; color: var(--green); font-weight: 600; }
.room-item-copy .room-item-price svg { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }
.room-item > .badge { max-width: 95px; overflow: hidden; text-overflow: ellipsis; }

.all-room-actions { align-items: stretch; }
.room-overview-filters { flex: 1; display: grid; grid-template-columns: minmax(280px, 1.5fr) minmax(150px, .5fr) minmax(190px, .7fr); gap: 9px; }
.room-overview-filters .search-wrap { min-width: 0; }
.room-overview-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.room-overview-stats > div { min-height: 82px; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: 1fr 1fr; column-gap: 9px; align-items: center; padding: 14px; border-right: 1px solid var(--line); }
.room-overview-stats > div:last-child { border-right: 0; }
.room-overview-stats svg { grid-row: 1 / 3; color: var(--blue); }
.room-overview-stats strong { align-self: end; font-size: 20px; line-height: 1; }
.room-overview-stats span { align-self: start; margin-top: 4px; color: var(--muted); font-size: 10px; }
.room-overview-stats .needs-attention svg, .room-overview-stats .needs-attention strong { color: var(--amber); }
.all-room-result { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.all-room-result strong { color: var(--text); }
.all-room-visualizations { display: grid; gap: 14px; }
.all-room-block { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.all-room-header { min-height: 68px; display: grid; grid-template-columns: minmax(260px, 1fr) auto 34px; gap: 16px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.all-room-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.all-room-identity > span { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 5px; background: var(--green-soft); color: var(--green); }
.all-room-identity h2 { margin: 0; font-size: 13px; }
.all-room-identity p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.all-room-budget { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.all-room-budget > svg { width: 15px; height: 15px; color: var(--green); }
.all-room-budget strong { color: var(--green); font-size: 13px; }
.all-room-budget small { padding-left: 6px; border-left: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.all-room-counts { display: flex; align-items: center; gap: 18px; }
.all-room-counts span { color: var(--muted); font-size: 9px; text-align: center; }
.all-room-counts strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 15px; }
.all-room-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.all-room-zone { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.all-room-zone > header { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.all-room-zone > header > svg { color: var(--blue); }
.all-room-zone > header span, .all-room-zone > header strong, .all-room-zone > header small { display: block; }
.all-room-zone > header strong { font-size: 10px; }
.all-room-zone > header small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.all-room-items { max-height: 295px; overflow-y: auto; }
.all-room-item { min-height: 56px; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 11px; border-bottom: 1px solid #edf0f2; }
.all-room-item:last-child { border-bottom: 0; }
.all-room-item:hover { background: #fafcfd; }
.all-room-item > svg { color: var(--green); }
.all-room-item > span { min-width: 0; }
.all-room-item strong, .all-room-item small { display: block; }
.all-room-item strong { overflow: hidden; text-overflow: ellipsis; font-size: 10px; white-space: nowrap; }
.all-room-item small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.all-room-price { display: flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--green); font-size: 9px; font-style: normal; font-weight: 700; }
.all-room-price svg { width: 12px; height: 12px; }
.all-room-item > .badge { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.all-room-empty { min-height: 88px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 11px; }
.detail-title { display: flex; gap: 13px; align-items: center; }
.detail-title .asset-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border-radius: 6px; }
.detail-title h2 { margin: 0 0 4px; font-size: 20px; }
.detail-title p { margin: 0; color: var(--muted); }
.definition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.definition-grid div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 72px; }
.definition-grid div:nth-child(3n) { border-right: 0; }
.definition-grid dt { color: var(--muted); font-size: 10px; text-transform: uppercase; margin-bottom: 6px; }
.definition-grid dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.asset-value-detail-form { display: flex; align-items: center; gap: 7px; max-width: 230px; }
.asset-value-detail-form input:not([type="hidden"]) { min-height: 34px; margin: 0; font-weight: 600; }
.asset-value-detail-form .icon-button { flex: none; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 23px; border-left: 1px solid var(--line); margin-left: 5px; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 2px solid white; }
.timeline strong { display: block; font-size: 12px; }
.timeline span { color: var(--muted); font-size: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-item { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--surface-2); position: relative; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item a { display: grid; place-items: center; height: 100%; color: var(--blue); }
.asset-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 230px)); gap: 14px; }
.asset-photo { margin: 0; min-width: 0; }
.asset-photo figcaption { padding-top: 7px; }
.asset-photo figcaption strong, .asset-photo figcaption span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-photo figcaption strong { font-size: 11px; }
.asset-photo figcaption span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.asset-upload-form { display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(240px, 1fr) auto; gap: 12px; align-items: end; max-width: 900px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.required-mark { color: var(--red); }

.purchase-item-row { display: grid; grid-template-columns: minmax(135px, .7fr) minmax(210px, 1.5fr) 80px minmax(130px, .7fr) minmax(220px, 1.25fr) 36px; gap: 10px; align-items: start; margin-bottom: 10px; }
.purchase-item-row > .remove-item { margin-top: 24px; }
.new-product-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; }
.new-product-fields[hidden] { display: none; }
.device-item-fields, .software-item-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; padding: 12px; background: var(--blue-soft); border: 1px solid #cbdced; border-radius: 5px; }
.device-item-fields[hidden], .software-item-fields[hidden] { display: none; }
.device-item-fields p, .software-item-fields p { margin: 0 0 10px; color: #36536e; font-size: 11px; }
.software-edit-fields { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.convert-device { position: relative; }
.convert-device > summary { list-style: none; }
.convert-device > summary::-webkit-details-marker { display: none; }
.convert-device > form { position: absolute; z-index: 8; right: 0; width: 290px; margin-top: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 10px 28px rgba(17,31,42,.16); }
.purchase-summary { margin-left: auto; width: min(100%, 390px); display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; }
.purchase-summary span:nth-child(even) { text-align: right; font-weight: 600; }
.purchase-summary .total { font-size: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.checkout-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0 auto; width: min(100%, 540px); padding: 10px 12px; border-left: 3px solid var(--blue); background: var(--blue-soft); color: #36536e; font-size: 11px; line-height: 1.5; }
.checkout-note svg { width: 16px; height: 16px; margin-top: 1px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.report-option { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; border: 1px solid var(--line); padding: 16px; border-radius: 6px; }
.report-option > span:first-child { width: 44px; height: 44px; border-radius: 5px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.report-option h3 { margin: 0 0 4px; font-size: 14px; }
.report-option p { margin: 0; color: var(--muted); font-size: 11px; }

.auth-page { height: 100dvh; display: grid; place-items: center; overflow: hidden; padding: clamp(22px, 5vw, 68px); background: #e9edf2; }
.auth-shell { width: min(100%, 1120px); }
.login-panel { height: 650px; max-height: calc(100dvh - 44px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); overflow: hidden; background: white; border: 1px solid #d8e0e6; border-radius: 8px; box-shadow: 0 28px 75px rgba(31, 47, 61, .16); }
.login-visual { min-width: 0; min-height: 0; position: relative; overflow: hidden; background: #dce8f0; }
.login-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 43, 57, .12), transparent 30%, rgba(12, 35, 46, .1)); pointer-events: none; }
.login-visual > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.login-form-side { display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 5vw, 74px); }
.login-brand { display: flex; justify-content: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.login-brand-logo { width: min(100%, 300px); height: 66px; display: block; object-fit: cover; object-position: center; }
.login-copy { padding: 34px 0 25px; }
.login-copy > span { display: block; margin-bottom: 9px; color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.login-copy h1 { margin: 0 0 8px; font-size: 25px; }
.login-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.login-form { display: grid; gap: 17px; }
.login-form label { color: #394853; font-size: 10px; font-weight: 700; }
.login-form label > input, .login-form .password-field { margin-top: 7px; }
.login-form input { min-height: 45px; padding: 10px 13px; font-size: 11px; }
.login-form .button { min-height: 45px; margin-top: 3px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 45px; }
.password-field button { position: absolute; top: 0; right: 0; width: 43px; height: 45px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.password-field button:hover { color: var(--green); }
.password-field button svg { width: 16px; height: 16px; }
.login-security { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 11px 12px; color: var(--muted); background: var(--surface-2); border-left: 3px solid var(--green); font-size: 9px; }
.login-security svg { width: 15px; color: var(--green); }
.login-foot { margin: 27px 0 0; color: var(--muted); font-size: 9px; text-align: center; }

@media (max-width: 1100px) {
  .login-panel { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3) { border-right: 0; }
  .stat-item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .split-grid { grid-template-columns: 1fr; }
  .dashboard-guide-grid { grid-template-columns: 1fr; }
  .dashboard-guide-section { border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-guide-section:last-child { border-bottom: 0; }
  .form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-span-3 { grid-column: span 2; }
  .room-stat-strip { grid-template-columns: repeat(3, 1fr); }
  .room-stat-strip > div:nth-child(4n) { border-right: 1px solid var(--line); }
  .room-stat-strip > div:nth-child(3n) { border-right: 0; }
  .room-stat-strip > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .room-zone { grid-template-columns: 160px minmax(0, 1fr); }
  .room-overview-stats { grid-template-columns: repeat(3, 1fr); }
  .room-overview-stats > div:nth-child(3) { border-right: 0; }
  .room-overview-stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .all-room-header { grid-template-columns: minmax(230px, 1fr) auto 34px; }
}

@media (max-width: 760px) {
  .auth-page { min-height: 100dvh; height: auto; overflow: auto; padding: 0; background: white; }
  .auth-shell { width: 100%; }
  .login-panel { min-height: 100vh; height: auto; max-height: none; display: block; border: 0; border-radius: 0; box-shadow: none; }
  .login-visual { height: 285px; }
  .login-visual > img { object-position: center 37%; }
  .login-form-side { padding: 32px 24px 38px; }
  .login-brand { padding-bottom: 20px; }
  .login-copy { padding: 27px 0 21px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -250px; width: 240px; transition: left .2s ease; }
  .sidebar.open { left: 0; }
  .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(12,20,27,.48); z-index: 30; }
  .sidebar-backdrop.show { display: block; }
  .mobile-menu { display: inline-flex; margin-right: 10px; }
  .topbar { height: 64px; padding: 0 14px; justify-content: flex-start; }
  .topbar-date { margin-left: auto; }
  .topbar-date span { display: none; }
  .content { padding: 16px 14px 30px; }
  .page-actions { align-items: flex-start; flex-direction: column; }
  .page-actions .action-group, .page-actions .button { width: 100%; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .table-search { width: 100%; }
  .filter-bar { width: 100%; }
  .search-wrap { min-width: 100%; }
  .filter-bar select { flex: 1; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-value-grid { grid-template-columns: 1fr; gap: 12px; }
  .value-card { min-height: 118px; padding: 17px; }
  .stat-item { min-height: 92px; padding: 13px; }
  .stat-item:nth-child(2n) { border-right: 0; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--line); }
  .stat-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-item strong { font-size: 21px; }
  .dashboard-visualization-action { align-items: stretch; flex-direction: column; }
  .dashboard-visualization-action .button { width: 100%; }
  .dashboard-data-flow { align-items: flex-start; flex-direction: column; }
  .dashboard-data-flow > svg { margin-left: 7px; transform: rotate(90deg); }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .field-span-2, .field-span-3 { grid-column: span 1; }
  .definition-grid { grid-template-columns: 1fr 1fr; }
  .definition-grid div:nth-child(3n) { border-right: 1px solid var(--line); }
  .definition-grid div:nth-child(2n) { border-right: 0; }
  .purchase-item-row { grid-template-columns: 1fr 85px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; }
  .purchase-item-row > label:nth-child(2), .purchase-item-row > label:nth-child(5) { grid-column: span 2; }
  .new-product-fields { grid-template-columns: 1fr 1fr; }
  .device-item-fields, .software-item-fields { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .table-footer { align-items: flex-start; flex-direction: column; }
  .pagination { width: 100%; justify-content: space-between; }
  .detail-header { flex-direction: column; }
  .detail-header .action-group { width: 100%; }
  .asset-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-upload-form { grid-template-columns: 1fr; }
  .asset-upload-form .button { width: 100%; }
  .page-section-heading { align-items: stretch; flex-direction: column; }
  .page-section-heading .button { width: 100%; }
  .room-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .room-stat-strip > div { border-top: 1px solid var(--line); }
  .room-stat-strip > div:nth-child(-n+2) { border-top: 0; }
  .room-stat-strip > div:nth-child(2n) { border-right: 0; }
  .room-stat-strip > div:nth-child(3) { border-right: 1px solid var(--line); }
  .room-zone { display: block; }
  .room-zone > header { border-right: 0; border-bottom: 1px solid var(--line); }
  .room-item-grid { grid-template-columns: 1fr; }
  .room-item { border-right: 0; }
}

@media (max-width: 430px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: 0 !important; border-top: 1px solid var(--line); }
  .stat-item:first-child { border-top: 0; }
  .definition-grid { grid-template-columns: 1fr; }
  .definition-grid div { border-right: 0 !important; }
  .login-visual { height: 235px; }
  .new-product-fields { grid-template-columns: 1fr; }
  .room-stat-strip { grid-template-columns: 1fr; }
  .room-stat-strip > div { border-right: 0 !important; border-top: 1px solid var(--line) !important; }
  .room-stat-strip > div:first-child { border-top: 0 !important; }
  .room-item { grid-template-columns: 34px minmax(0, 1fr); }
  .room-item > .badge { grid-column: 2; justify-self: start; }
  .all-room-actions { width: 100%; }
  .all-room-actions > .button { width: 100%; }
  .room-overview-filters { width: 100%; grid-template-columns: 1fr; }
  .room-overview-stats { grid-template-columns: repeat(2, 1fr); }
  .room-overview-stats > div { border-top: 1px solid var(--line); }
  .room-overview-stats > div:nth-child(-n+2) { border-top: 0; }
  .room-overview-stats > div:nth-child(2n) { border-right: 0; }
  .room-overview-stats > div:nth-child(3) { border-right: 1px solid var(--line); }
  .all-room-header { grid-template-columns: minmax(0, 1fr) 34px; }
  .all-room-budget { align-items: flex-start; flex-wrap: wrap; }
  .all-room-budget small { flex-basis: 100%; margin-left: 21px; padding-left: 0; border-left: 0; }
  .all-room-counts { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
  .all-room-zones { grid-template-columns: 1fr; }
  .all-room-zone { border-right: 0; }
}

@media (max-width: 430px) {
  .room-overview-stats { grid-template-columns: 1fr; }
  .room-overview-stats > div { border-right: 0 !important; border-top: 1px solid var(--line) !important; }
  .room-overview-stats > div:first-child { border-top: 0 !important; }
  .all-room-counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .all-room-item { grid-template-columns: 24px minmax(0, 1fr); }
  .all-room-item > .badge { grid-column: 2; justify-self: start; }
}
