:root {
  --brand: #7e22ce;
  --brand-dark: #4c1d95;
  --brand-deeper: #2e1065;
  --brand-soft: #f3e8ff;
  --teal: #0f766e;
  --teal-soft: #ccfbf1;
  --blue: #0369a1;
  --blue-soft: #e0f2fe;
  --green: #047857;
  --green-soft: #d1fae5;
  --amber: #a16207;
  --amber-soft: #fef3c7;
  --red: #b91c1c;
  --red-soft: #fee2e2;
  --ink: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --canvas: #f5f6f8;
  --surface: #ffffff;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.login-shell { position: relative; min-height: 100vh; min-height: 100dvh; padding: 88px 6% 48px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: center; background-color: #f1edf7; background-image: linear-gradient(90deg, rgba(40,21,63,.15), rgba(246,239,253,.12)), url("/brand/login-office-background.webp"); background-size: cover; background-position: center; }
.login-card { position: relative; width: 370px; max-width: 100%; min-width: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: var(--surface, white); box-shadow: 0 18px 55px rgba(38,21,55,.18); animation: login-card-enter .45s cubic-bezier(.2,.7,.3,1) both; }
.login-form-panel { min-width: 0; padding: 38px 32px 34px; }
.brand-mark img { display: block; max-width: 100%; }
.login-card form { margin-top: 38px; }
.login-field + .login-field { margin-top: 21px; }
.login-field label { margin-bottom: 9px; font-size: 12px; font-weight: 600; color: var(--ink-secondary, #42344f); }
.login-input-wrap { position: relative; }
.login-field input { height: 48px; padding: 0 42px; border: 1px solid var(--line-strong, #e3dce9); border-radius: 9px; background: var(--surface-subtle, #faf9fc); color: var(--ink, #21152f); font-size: 14px; transition: border-color .16s, box-shadow .16s, background .16s; }
.login-field input::placeholder { color: var(--muted, #796a84); }
.login-field input:hover { border-color: var(--brand-border, #c8b8dc); }
.login-field input:focus { border-color: #a178d0; background: var(--surface, #fff); box-shadow: 0 0 0 4px rgba(126,34,206,.075); }
.login-field-icon { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; color: var(--muted, #9a8aaa); pointer-events: none; }
.login-input-wrap:focus-within .login-field-icon { color: var(--brand-text, #7c3aed); }
.login-password-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted, #8b7a9b); }
.login-password-toggle svg { width: 18px; height: 18px; }
.login-password-toggle:hover { color: var(--brand-text, #6d28d9); background: var(--brand-soft, #f0e9f9); }
.login-password-toggle:focus-visible { outline: 2px solid #7c3aed; outline-offset: 1px; }
.login-password-toggle .login-eye-slash { display: none; }
.login-password-toggle[aria-pressed="true"] .login-eye-slash { display: block; }
.login-card .login-submit { min-height: 48px; margin-top: 28px; border-radius: 9px; background: linear-gradient(105deg, #813ee1, #6323b2); box-shadow: 0 6px 16px rgba(109,40,217,.16); font-size: 14px; font-weight: 650; gap: 13px; transition: background .16s, box-shadow .16s; }
.login-card .login-submit svg { width: 18px; height: 18px; }
.login-card .login-submit:hover:not(:disabled) { background: linear-gradient(105deg, #6d28d9, #59209f); box-shadow: 0 8px 20px rgba(109,40,217,.24); }
.login-card .login-submit:focus-visible { outline: 3px solid var(--brand-border, #c4b5fd); outline-offset: 3px; }
.login-submit-arrow { transition: transform .18s ease; }
.login-submit:hover:not(:disabled) .login-submit-arrow { transform: translateX(3px); }
.login-submit-spinner { display: none; width: 18px; height: 18px; flex-shrink: 0; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.login-card.is-signing-in .login-submit { opacity: 1; cursor: wait; }
.is-signing-in .login-submit-arrow { display: none; }
.is-signing-in .login-submit-spinner { display: block; animation: login-spinner .8s linear infinite; }
.is-signing-in .login-field input { cursor: wait; }
.login-password-toggle:disabled { cursor: wait; }
.login-progress { position: absolute; top: 0; left: 16px; right: 16px; height: 4px; overflow: hidden; border-radius: 0 0 4px 4px; background: var(--brand-soft); }
.login-progress > span { display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--brand-text, var(--brand)); animation: login-progress-travel 1.25s ease-in-out infinite; }
.app-layout.login-arrival { animation: login-console-enter .3s ease-out; }
@keyframes login-card-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes login-console-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes login-spinner { to { transform: rotate(360deg); } }
@keyframes login-progress-travel { from { transform: translateX(-110%); } to { transform: translateX(330%); } }
.login-card .form-message:not(:empty) { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--red-border, #fecaca); border-radius: 9px; background: var(--red-soft, #fff5f5); line-height: 1.5; }
.login-card .form-message:empty { display: none; }
@media (max-width: 640px) {
  .login-shell { justify-items: center; padding: 84px 20px 35px; }
  .login-form-panel { padding: 34px 25px 30px; }
  .login-field input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-card, .app-layout.login-arrival, .login-progress > span, .is-signing-in .login-submit-spinner { animation: none; }
  .login-field input, .login-card .login-submit, .login-submit-arrow { transition: none; }
  .login-submit:hover:not(:disabled) .login-submit-arrow { transform: none; }
  .login-progress > span { width: 100%; }
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.brand-dark { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #e9ddfb; border-radius: 11px; background: #faf7ff; box-shadow: 0 7px 17px rgba(15,23,42,.15); }
/* Frame the selected artwork without changing its original transparent PNG. */
.deviceiq-wordmark { position: relative; display: block; flex-shrink: 0; width: 184px; aspect-ratio: 1712 / 370; overflow: hidden; }
.deviceiq-wordmark img { position: absolute; display: block; width: 113.4346%; max-width: none; height: auto; left: -6.7757%; top: -55.1351%; }
.deviceiq-brand { display: grid; justify-items: center; gap: 5px; flex-shrink: 0; }
.deviceiq-company { display: block; color: var(--muted, #655573); font-size: 11px; line-height: 1.2; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.login-brand .deviceiq-wordmark { width: min(236px, 100%); }
.login-brand .deviceiq-company { margin-top: 3px; font-size: 12px; letter-spacing: .06em; }
.brand small, .brand strong { display: block; }
.brand small { margin-bottom: 2px; color: #d8b4fe; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.brand-dark small { color: var(--brand-text, var(--brand)); }
.brand strong { font-size: 16px; letter-spacing: -.02em; }

.app-layout { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; z-index: 30; height: 100vh; min-height: 620px; padding: 20px 15px 16px; display: flex; flex-direction: column; background: linear-gradient(180deg, #3b0764 0%, #250744 100%); color: white; box-shadow: 4px 0 18px rgba(15,23,42,.08); }
.sidebar-brand-row { min-height: 46px; padding: 0 7px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-close { display: none !important; color: white !important; }
.nav-label { color: #c4b5fd; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.primary-nav { margin-top: 28px; }
.primary-nav > .nav-label { padding: 0 11px 8px; }
.nav-item { width: 100%; min-height: 44px; margin: 2px 0; padding: 0 11px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #ddd6fe; font-size: 14px; font-weight: 700; text-align: left; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.nav-item > svg { width: 18px; height: 18px; }
.nav-item:hover { background: rgba(255,255,255,.08); color: white; }
.nav-item.selected { border-color: rgba(216,180,254,.2); background: rgba(255,255,255,.13); color: white; box-shadow: inset 3px 0 0 #c084fc; }
.nav-count { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.12); color: #e9d5ff; font-size: 11px; font-weight: 850; text-align: center; }
.sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.app-version-row { min-height: 32px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #c4b5fd; font-size: 10px; }
.app-version-row strong { color: #f3e8ff; font-size: 10px; font-weight: 800; }
.server-state-row { min-height: 36px; padding: 0 9px; display: flex; align-items: center; gap: 8px; color: #d8b4fe; font-size: 11px; font-weight: 700; }
.server-state-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.12); }
.server-state-dot.failed { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.13); }
.lock-button { width: 100%; height: 38px; padding: 0 9px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; background: transparent; color: #d8b4fe; font-size: 12px; font-weight: 750; }
.lock-button:hover { background: rgba(255,255,255,.08); color: white; }
.lock-button svg { width: 15px; height: 15px; }

.main-shell { min-width: 0; }
.app-topbar { min-height: 76px; padding: 12px 28px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.signed-in-user { max-width: 170px; padding: 0 8px; }
.signed-in-user strong, .signed-in-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signed-in-user strong { color: var(--ink-secondary, #334155); font-size: 11px; }
.signed-in-user span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.topbar-actions .button svg { width: 15px; height: 15px; }
.global-equipment-search { position: relative; width: min(560px, 48vw); min-width: 230px; flex: 1 1 420px; }
.global-equipment-search > .global-search-icon { position: absolute; z-index: 2; top: 50%; left: 12px; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted, #64748b); pointer-events: none; }
.global-equipment-search > input { height: 40px; padding: 0 42px 0 38px; border: 1px solid var(--line-strong, #cbd5e1); border-radius: 10px; background: var(--surface-subtle, #f8fafc); color: var(--ink); font-size: 13px; box-shadow: 0 1px 2px rgba(15,23,42,.025); }
.global-equipment-search > input::placeholder { color: var(--muted, #64748b); opacity: 1; }
.global-equipment-search > input:focus { border-color: #a855f7; outline: 3px solid rgba(126,34,206,.13); background: var(--surface, white); }
.global-search-clear { position: absolute; z-index: 3; top: 5px; right: 5px; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted, #64748b); }
.global-search-clear:hover, .global-search-clear:focus-visible { outline: 0; background: var(--surface-hover, #ede9fe); color: var(--brand-strong, var(--brand-dark)); }
.global-search-clear svg { width: 15px; height: 15px; }
.global-search-menu { position: absolute; z-index: 60; top: calc(100% + 9px); left: 0; width: min(620px, calc(100vw - 48px)); overflow: hidden; border: 1px solid var(--brand-border, #ddd6fe); border-radius: 12px; background: var(--surface, white); box-shadow: 0 18px 48px rgba(46,16,101,.17), 0 4px 14px rgba(15,23,42,.08); }
.global-search-menu-heading { min-height: 38px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: var(--brand-soft, #faf7ff); color: var(--brand-strong, var(--brand-dark)); }
.global-search-menu-heading span { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.global-search-menu-heading small { color: var(--muted, #7c6f92); font-size: 10px; font-weight: 700; }
.global-search-status { padding: 14px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.global-search-results { max-height: min(468px, calc(100vh - 170px)); margin: 0; padding: 5px; overflow-y: auto; list-style: none; }
.global-search-result { margin: 0; }
.global-search-result-button { width: 100%; min-height: 58px; padding: 9px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 0; border-radius: 8px; background: var(--surface, white); color: var(--ink); text-align: left; }
.global-search-result-button:hover, .global-search-result.active .global-search-result-button { background: var(--brand-soft); }
.global-search-result-button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.global-search-result-identity { min-width: 0; }
.global-search-result-identity strong, .global-search-result-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result-identity strong { color: var(--brand-strong, #2e1065); font-size: 13px; font-weight: 850; }
.global-search-result-identity span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.global-search-result-address { padding: 4px 7px; border: 1px solid var(--brand-border, #d8b4fe); border-radius: 6px; background: var(--surface, white); color: var(--brand-strong, var(--brand-dark)); font: 750 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: nowrap; }
.global-search-view-all { width: 100%; min-height: 40px; padding: 0 14px; border: 0; border-top: 1px solid var(--line); background: var(--brand-soft, #faf7ff); color: var(--brand-strong, var(--brand-dark)); font-size: 11px; font-weight: 850; text-align: left; }
.global-search-view-all:hover, .global-search-view-all:focus-visible { outline: 0; background: var(--surface-hover, #ede9fe); }
.mobile-menu { display: none !important; }
.icon-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line-strong, #d7dee8); border-radius: 9px; background: var(--surface, white); color: var(--ink-secondary, #475569); }
.icon-button:hover { border-color: var(--brand-border, #c4b5fd); background: var(--brand-soft); color: var(--brand-strong, var(--brand-dark)); }
.icon-button svg { width: 18px; height: 18px; }
.icon-button.sidebar-close { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: white !important; }
.icon-button.sidebar-close:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.14); color: white; }

.content-shell { width: 100%; max-width: none; padding: 28px 30px 52px; }
.view-heading { min-height: 62px; margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.view-heading > div:first-child { min-width: 0; }
.view-heading h1 { margin-top: 2px; font-size: 25px; letter-spacing: -.035em; }
.view-heading .muted { margin-top: 5px; font-size: 13px; }
.eyebrow { color: var(--brand-text, var(--brand)); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); line-height: 1.5; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.summary-card { min-height: 112px; padding: 18px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface, white); box-shadow: 0 7px 20px rgba(15,23,42,.035); }
.summary-icon { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; }
.summary-icon svg { width: 20px; height: 20px; }
.summary-icon.purple { background: var(--brand-soft); color: var(--brand-text, var(--brand)); }
.summary-icon.green { background: var(--green-soft); color: var(--green); }
.summary-icon.blue { background: var(--blue-soft); color: var(--blue); }
.summary-icon.amber { background: var(--amber-soft); color: var(--amber); }
.summary-icon.red { background: var(--red-soft); color: var(--red); }
.summary-card > div > span, .summary-card small { display: block; }
.summary-card > div > span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.summary-card strong { display: block; margin-top: 4px; font-size: 22px; line-height: 1; letter-spacing: -.03em; }
.summary-card small { margin-top: 5px; color: var(--muted, #94a3b8); font-size: 10px; }

.panel { border: 1px solid var(--line); border-radius: 13px; background: var(--surface, white); box-shadow: 0 7px 20px rgba(15,23,42,.035); }
.panel-heading { min-height: 72px; padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin-top: 3px; font-size: 18px; letter-spacing: -.02em; }
.panel-heading .muted { margin-top: 5px; font-size: 12px; }
.overview-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; margin-top: 14px; }
.equipment-attention-panel { min-width: 0; }
.equipment-attention-panel .panel-heading, .equipment-errors-panel .panel-heading { flex-wrap: wrap; }
.attention-message { padding: 22px 20px; color: var(--muted); }
.attention-message .button { margin-left: 10px; }
.attention-chart { margin: 0; padding: 20px; }
.attention-row { display: block; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; font: inherit; }
.attention-row:hover:not(:disabled) { border-color: var(--brand-border, #ddd6fe); background: var(--brand-soft, #faf7ff); }
.attention-row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.attention-row + .attention-row { margin-top: 22px; }
.attention-row-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.attention-row-label { font-size: 14px; font-weight: 750; }
.attention-row-heading strong { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.attention-percent { margin-left: 10px; color: var(--muted); font-size: 12px; }
.attention-track { display: block; height: 16px; margin-top: 8px; overflow: hidden; border-radius: 5px; background: var(--canvas); }
.attention-bar { display: block; height: 100%; width: 0; border-radius: inherit; }
.attention-bar.black { background: #334155; }
.attention-bar.cyan { background: #06b6d4; }
.attention-bar.magenta { background: #db2777; }
.attention-bar.yellow { background: #eab308; }
.attention-bar.other { background: #64748b; }
.attention-bar.alerts { background: var(--red); }
.attention-bar.warnings { background: var(--amber); }
.attention-supply-rows { display: grid; grid-template-columns: 1fr; gap: 8px; }
.equipment-attention-panel .attention-chart { padding: 16px; }
.equipment-attention-panel .attention-supply-row { padding: 10px 12px; border-color: var(--line); background: var(--surface-subtle, #fcfcfd); }
.equipment-attention-panel .attention-supply-row + .attention-supply-row { margin-top: 0; }
.equipment-attention-panel .attention-row-heading { gap: 12px; }
.equipment-attention-panel .attention-row-label { font-size: 13px; }
.equipment-attention-panel .attention-row-heading strong { font-size: 20px; }
.equipment-attention-panel .attention-percent { display: inline; }
.equipment-attention-panel .attention-track { height: 10px; margin-top: 7px; }
.equipment-attention-panel .attention-description { display: none; }
.equipment-attention-panel .attention-view-link { margin-top: 5px; font-size: 11px; }
.equipment-attention-panel .attention-chart figcaption { margin-top: 12px; padding-top: 10px; }
.equipment-errors-panel .attention-chart { padding: 16px; }
.equipment-errors-panel .attention-row { padding: 10px 12px; border-color: var(--line); background: var(--surface-subtle, #fcfcfd); }
.equipment-errors-panel .attention-row + .attention-row { margin-top: 8px; }
.equipment-errors-panel .attention-row-heading { gap: 12px; }
.equipment-errors-panel .attention-row-label { font-size: 13px; }
.equipment-errors-panel .attention-row-heading strong { font-size: 20px; }
.equipment-errors-panel .attention-track { height: 10px; margin-top: 7px; }
.equipment-errors-panel .attention-description { display: none; }
.equipment-errors-panel .attention-view-link { margin-top: 5px; font-size: 11px; }
.equipment-errors-panel .attention-chart figcaption { margin-top: 12px; padding-top: 10px; }
.attention-supply-row[hidden] { display: none; }
.attention-alert-row { margin-top: 22px; }
.equipment-errors-panel .attention-alert-row { margin-top: 0; }
.attention-description { display: block; margin-top: 7px; font-size: 12px; }
.attention-view-link { display: block; margin-top: 8px; color: var(--brand-strong, var(--brand-dark)); font-size: 12px; font-weight: 750; }
.equipment-attention-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--brand-border, #ddd6fe); background: var(--brand-soft, #faf7ff); color: var(--brand-strong, var(--brand-dark)); }
.equipment-attention-filter span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.equipment-attention-filter:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.attention-chart figcaption { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.attention-chart figcaption p:first-child { margin-bottom: 4px; color: var(--ink-secondary, #475569); font-weight: 650; }
.overview-high-usage-panel { min-width: 0; overflow: hidden; grid-column: 1 / -1; }
.overview-high-usage-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; list-style: none; counter-reset: high-usage-rank; }
.overview-high-usage-item { min-width: 0; padding: 13px 20px; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); counter-increment: high-usage-rank; }
.overview-high-usage-item:nth-child(-n+6) { border-right: 1px solid var(--line); }
.overview-high-usage-item:nth-child(6), .overview-high-usage-item:last-child { border-bottom: 0; }
.overview-high-usage-item::before { content: counter(high-usage-rank); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--canvas); color: var(--muted); font-size: 10px; font-weight: 850; }
.overview-high-usage-device { min-width: 0; border: 0; padding: 0; background: transparent; color: var(--brand-strong, var(--brand-dark)); text-align: left; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-high-usage-device:hover { text-decoration: underline; }
.overview-high-usage-device:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.overview-high-usage-site { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.overview-high-usage-rate { text-align: right; font-variant-numeric: tabular-nums; }
.overview-high-usage-rate strong, .overview-high-usage-rate small { display: block; }
.overview-high-usage-rate strong { font-size: 14px; }
.overview-high-usage-rate small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.equipment-panel, .activity-panel { overflow: hidden; }
.equipment-heading { align-items: center; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.agents-view:not([hidden]) { display: flex; flex-direction: column; }
.agent-directory-panel { order: 1; margin-bottom: 14px; }
.agent-download-panel { order: 3; margin-bottom: 0; overflow: hidden; }
.agent-download-grid { padding: 14px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; background: var(--surface-subtle, #fcfcfd); }
.agent-download-card { min-width: 0; padding: 13px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px; border: 1px solid var(--line, #e2e8f0); border-radius: 11px; background: var(--surface, white); }
.agent-download-card .download-platform-icon { width: 36px; height: 36px; grid-row: span 2; display: grid; place-items: center; border: 1px solid transparent; border-radius: 10px; }
.download-platform-icon svg { width: 23px; height: 23px; fill: currentColor; stroke: none; }
.download-platform-icon.windows { border-color: var(--blue-border, #bae6fd); background: var(--blue-soft, #e0f2fe); color: var(--blue, #0878c9); }
.download-platform-icon.macos { border-color: var(--line, #e2e8f0); background: var(--surface-muted, #f1f5f9); color: var(--ink-secondary, #334155); }
.download-platform-icon.linux { border-color: var(--amber-border, #fde68a); background: var(--amber-soft, #fef3c7); color: var(--ink, #172033); }
.download-platform-icon .penguin-body, .download-platform-icon .penguin-pupil { fill: currentColor; }
.download-platform-icon .penguin-cutout { fill: #fff; }
.download-platform-icon .penguin-accent { fill: #d97706; }
.agent-download-card > div { min-width: 0; }
.agent-download-card > div > strong, .agent-download-card > div > span, .agent-download-card > div > small { display: block; }
.agent-download-card strong { color: var(--ink, #1e293b); font-size: 13px; }
.agent-download-card div > span { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.agent-download-card small { margin-top: 5px; color: var(--muted, #94a3b8); font-size: 9px; font-weight: 750; }
.agent-download-card small.available { color: var(--green); }
.agent-download-card .button { grid-column: 1 / -1; width: 100%; min-height: 34px; color: var(--brand-strong, var(--brand-dark)); text-decoration: none; }
.agent-download-card .button.disabled-link { border-color: var(--line-strong, #cbd5e1); background: var(--surface-muted, #e2e8f0); color: var(--muted, #64748b); cursor: not-allowed; box-shadow: none; }
.agent-download-card .button.disabled-link:hover { border-color: var(--line-strong, #cbd5e1); background: var(--surface-muted, #e2e8f0); color: var(--muted, #64748b); transform: none; }
.admin-panel { overflow: hidden; }
.check-field { min-height: 40px; margin: 0; display: flex; align-items: center; gap: 8px; }
.check-field input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.check-field span { min-width: 0; font-size: 11px; }
.table-action { min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong, #d7dee8); border-radius: 7px; background: var(--surface, white); color: var(--ink-secondary, #475569); font-size: 11px; font-weight: 800; }
.table-actions { display: flex; justify-content: flex-end; gap: 7px; }
.table-action.danger-text { border-color: var(--red-border, #fecaca); color: var(--red); }
.table-action.positive { border-color: var(--green-border, #a7f3d0); color: var(--green); }
.status-pill.active { background: var(--green-soft); color: var(--green); }
.agent-directory-panel { overflow: hidden; }
.agent-table-toolbar { padding: 12px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: var(--surface-subtle, #fcfcfd); }
.agent-search { position: relative; width: min(420px, 100%); margin: 0 auto 0 0; }
.agent-search svg { position: absolute; top: 50%; left: 11px; width: 15px; height: 15px; transform: translateY(-50%); color: var(--muted, #94a3b8); pointer-events: none; }
.agent-search input { padding-left: 35px; }
.agent-filter, .agent-page-size { margin: 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.agent-filter select { width: 142px; }
.agent-page-size select { width: 70px; }
.agent-table-wrap { background: var(--surface, white); }
.agent-table { min-width: 900px; table-layout: fixed; }
.agent-table th:first-child { width: 24%; }
.agent-table th:nth-child(2) { width: 14%; }
.agent-table th:nth-child(3) { width: 11%; }
.agent-table th:nth-child(4) { width: 13%; }
.agent-table th:nth-child(5) { width: 21%; }
.agent-table th:nth-child(6) { width: 8%; }
.agent-table th:last-child { width: 68px; }
.agent-table th.numeric, .agent-table td.numeric { text-align: right; }
.agent-sort { width: 100%; padding: 0; display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.agent-table th.numeric .agent-sort { justify-content: flex-end; }
.agent-sort:hover, .agent-sort.active { color: var(--brand-strong, var(--brand-dark)); }
.agent-sort span { margin: 0; color: var(--muted, #94a3b8); font-size: 11px; }
.agent-table-row { cursor: pointer; }
.agent-table-row:hover { background: var(--brand-soft, #faf7ff); }
.agent-table-row:focus { outline: 2px solid #c084fc; outline-offset: -2px; background: var(--brand-soft, #faf7ff); }
.agent-name-cell strong, .agent-name-cell code { display: block; }
.agent-name-cell strong { overflow: hidden; color: var(--ink, #1e293b); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.agent-name-cell code { max-width: 100%; margin-top: 4px; overflow: hidden; color: var(--brand-strong, var(--brand-dark)); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.agent-name-cell .agent-pool-label { display: inline-flex; max-width: 100%; margin-top: 6px; padding: 3px 7px; overflow: hidden; border: 1px solid var(--brand-border, #d8b4fe); border-radius: 999px; background: var(--brand-soft, #faf5ff); color: var(--brand-text, #6b21a8); font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.agent-tenant-name { overflow: hidden; color: var(--ink-secondary, #475569); font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.agent-platform strong, .agent-platform span { display: block; }
.agent-platform strong { font-size: 12px; }
.agent-platform span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.agent-platform span.agent-update-warning { color: var(--red); font-weight: 800; }
.agent-last-seen strong, .agent-last-seen span { display: block; }
.agent-last-seen strong { font-size: 12px; }
.agent-last-seen span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.agent-device-count { font-weight: 850; font-variant-numeric: tabular-nums; }
.activity-actions { display: flex; align-items: center; gap: 8px; }
.activity-actions .button svg { width: 15px; height: 15px; }
.agent-actions-cell { padding-inline: 12px; text-align: right; }
.agent-action-trigger { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--brand-deeper); border-radius: 8px; background: var(--brand-dark); color: #fff; box-shadow: 0 2px 5px rgba(46,16,101,.2); }
.agent-action-trigger:hover, .agent-action-trigger[aria-expanded="true"] { border-color: var(--brand-deeper); background: var(--brand-deeper); color: #fff; box-shadow: 0 4px 10px rgba(46,16,101,.28); }
.agent-action-trigger:focus-visible { outline: 3px solid rgba(126,34,206,.28); outline-offset: 2px; border-color: var(--brand-deeper); }
.agent-action-trigger svg { width: 18px; height: 18px; }
.agent-action-trigger circle { fill: currentColor; stroke: none; }
.agent-action-menu { position: fixed; z-index: 70; width: min(226px, calc(100vw - 16px)); padding: 6px; border: 1px solid var(--line-strong, #d8dee8); border-radius: 11px; background: var(--surface, white); box-shadow: 0 18px 45px rgba(15,23,42,.2), 0 3px 9px rgba(15,23,42,.08); }
.agent-menu-item { width: 100%; min-height: 40px; padding: 0 10px; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 9px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-secondary, #334155); font-size: 12px; font-weight: 750; text-align: left; }
.agent-menu-item:hover, .agent-menu-item:focus-visible { outline: 0; background: var(--brand-soft); color: var(--brand-strong, var(--brand-dark)); }
.agent-menu-item svg { width: 17px; height: 17px; }
.agent-menu-item span { margin: 0; color: inherit; font-size: inherit; }
.agent-menu-item.danger { color: var(--red); }
.agent-menu-item.danger:hover, .agent-menu-item.danger:focus-visible { background: var(--red-soft); color: var(--red); }
.agent-menu-item.positive { color: var(--green); }
.agent-menu-item.positive:hover, .agent-menu-item.positive:focus-visible { background: var(--green-soft); color: var(--green); }
.agent-menu-separator { height: 1px; margin: 5px 4px; background: var(--line); }
.agent-pagination { min-height: 52px; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); background: var(--surface-subtle, #fcfcfd); color: var(--muted); font-size: 12px; }
.agent-pagination > div { display: flex; gap: 6px; }
.agent-pagination button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line-strong, #d7dee8); border-radius: 7px; background: var(--surface, white); color: var(--ink-secondary, #475569); font-size: 11px; font-weight: 800; }
.agent-pagination button:hover:not(:disabled) { border-color: var(--brand-border, #c4b5fd); background: var(--brand-soft); color: var(--brand-strong, var(--brand-dark)); }
.agent-pagination button:disabled { cursor: not-allowed; opacity: .45; }
.equipment-table-toolbar { padding: 12px 20px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-subtle, #fcfcfd); }
.equipment-panel .equipment-table-toolbar { flex-wrap: wrap; gap: 9px; }
.equipment-search { position: relative; width: min(560px, 100%); min-height: 40px; margin: 0 auto 0 0; padding: 4px 6px 4px 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; border: 1px solid var(--line-strong, #cbd5e1); border-radius: 8px; background: var(--surface, white); transition: border-color .15s ease, box-shadow .15s ease; }
.equipment-panel .equipment-search { width: auto; min-width: 0; flex: 1 1 260px; margin: 0; }
.equipment-search:focus-within { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,.13); }
.equipment-search > svg { position: absolute; top: 12px; left: 11px; width: 15px; height: 15px; color: var(--muted, #94a3b8); pointer-events: none; }
.equipment-search-tags { max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.equipment-search-tag { max-width: 210px; height: 30px; display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--brand-border, #ddd6fe); border-radius: 7px; background: var(--brand-soft, #faf7ff); color: var(--brand-strong, var(--brand-dark)); font-size: 11px; font-weight: 800; }
.equipment-search-tag > span { min-width: 0; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipment-search-tag button { width: 28px; height: 100%; flex: 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--brand-border, #ddd6fe); border-radius: 0; background: var(--brand-soft, #f3e8ff); color: var(--brand-strong, var(--brand-dark)); font-size: 15px; font-weight: 850; line-height: 1; }
.equipment-search-tag button:hover, .equipment-search-tag button:focus-visible { outline: 0; background: var(--surface-hover, #e9d5ff); color: var(--brand-strong, var(--brand-deeper)); box-shadow: inset 0 0 0 2px rgba(126,34,206,.2); }
.equipment-search input { width: auto; min-width: 170px; height: 30px; flex: 1 1 180px; padding: 0 4px; border: 0; border-radius: 4px; background: transparent; box-shadow: none; }
.equipment-search input:focus { border: 0; box-shadow: none; }
.equipment-search-clear { min-height: 30px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.equipment-search-clear:hover, .equipment-search-clear:focus-visible { outline: 0; background: var(--surface-muted, #f1f5f9); color: var(--ink); }
.equipment-table-options { width: auto; flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.equipment-sort-control { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:11px; }
.equipment-sort-control label { margin:0; font-size:11px; }
.equipment-sort-control select { width:130px; height:36px; font-size:11px; }
.equipment-sort-control button { width:30px; height:36px; padding:0; border:1px solid var(--line); border-radius:6px; background:var(--surface, white); color:var(--brand-strong, var(--brand-dark)); }
.equipment-sort-control button:disabled { opacity:.45; cursor:default; }
.equipment-page-size { margin: 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.equipment-page-size select { width: 70px; }
.compact-button { min-height: 36px; padding-inline: 12px; font-size: 11px; }
.equipment-selection-bar { min-height: 58px; padding: 9px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--brand-border, #ddd6fe); background: var(--brand-soft, #faf7ff); }
.equipment-selection-bar > div:first-child { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.equipment-selection-bar strong { color: var(--brand-strong, var(--brand-dark)); font-size: 13px; white-space: nowrap; }
.equipment-selection-bar > div:first-child > span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.equipment-selection-actions { display: flex; align-items: center; gap: 8px; }
.equipment-table-wrap { background: var(--surface, white); }
.equipment-table { width: 100%; min-width: 760px; table-layout: fixed; }
.equipment-table th, .equipment-table td { padding: 9px 8px; font-size: 12px; vertical-align: middle; }
.equipment-table th { overflow-wrap: normal; }
.equipment-table th:first-child { width: 4%; }
.equipment-table th:nth-child(2) { width: 39%; }
.equipment-table th:nth-child(3) { width: 27%; }
.equipment-table th:nth-child(4) { width: 14%; }
.equipment-table th:nth-child(5) { width: 16%; }
.equipment-table .device-link { max-width: 100%; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.equipment-name-line { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-height:26px; }
.equipment-name-line > span, .equipment-supply-reading > span { margin-top:0; }
.equipment-number { flex-shrink:0; color:var(--brand-strong, var(--brand-dark)); font-size:11px; font-weight:800; }
.equipment-number::after { content:" ·"; color:var(--muted); }
.equipment-high-usage { display:inline-flex; flex-shrink:0; align-items:center; color:var(--amber); }
.equipment-high-usage svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.equipment-table .equipment-sort { min-width: 0; gap: 3px; font-size: 10px; letter-spacing: .04em; white-space:nowrap; }
.equipment-table .equipment-header-controls { gap: 2px; }
.equipment-table .equipment-header-filter { width: 22px; height: 22px; flex-basis: 22px; }
.equipment-table .equipment-header-filter[data-equipment-header-filter="manufacturer"] { width:36px; flex-basis:36px; border-radius:4px; font-size:9px; font-weight:750; }
.equipment-table .status-pill { max-width: 100%; padding: 3px 7px; font-size: 11px; white-space: nowrap; }
.equipment-table td .equipment-ip-address { display:block; margin-top:4px; overflow:hidden; text-overflow:ellipsis; font-size:11px; white-space:nowrap; }
.equipment-table td .equipment-model-agent { display:block; margin-top:2px; overflow:hidden; text-overflow:ellipsis; color:var(--muted); font-size:11px; white-space:nowrap; }
.equipment-tenant-site strong,.equipment-table .equipment-tenant-site span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.equipment-tenant-site span { margin-top:4px; color:var(--muted); font-size:11px; }
.equipment-table td.equipment-supply-cell { line-height:1.5; }
.equipment-supply-reading { display: inline-flex; align-items: center; gap: 4px; margin:2px 4px 2px 0; max-width:100%; font-size:11px; white-space:nowrap; }
.equipment-supply-reading strong { flex-shrink:0; font-variant-numeric:tabular-nums; padding:0; border:0; border-radius:0; background:transparent; color:inherit; }
.equipment-table .equipment-supply-label { display:inline; min-width:0; max-width:88px; overflow:hidden; text-overflow:ellipsis; color:inherit; font-size:11px; font-weight:750; white-space:nowrap; }
.equipment-supply-level { position:relative; padding: 3px 5px; border: 1px solid var(--line); border-radius: 5px; color:var(--ink-secondary, #475569); background:var(--surface-muted, #f1f5f9); text-align: center; line-height: 1.35; }
.equipment-supply-level[data-toner-color="black"] { color:#fff; background:#1e293b; border-color:#1e293b; }
.equipment-supply-level[data-toner-color="cyan"] { color:#083344; background:#22d3ee; border-color:#06b6d4; }
.equipment-supply-level[data-toner-color="yellow"] { color:#422006; background:#fde047; border-color:#eab308; }
.equipment-supply-level[data-toner-color="magenta"] { color:#fff; background:#c0267a; border-color:#a21c66; }
.equipment-supply-level[data-toner-color="light_cyan"] { color:#155e75; background:#cffafe; border-color:#67e8f9; }
.equipment-supply-level[data-toner-color="light_magenta"] { color:#831843; background:#fce7f3; border-color:#f9a8d4; }
.equipment-supply-level[data-toner-color="white"] { color:#334155; background:#fff; border-color:#94a3b8; }
.equipment-supply-level[data-toner-color="clear"] { color:#475569; background:#f8fafc; border-color:#94a3b8; border-style:dashed; }
.equipment-table .equipment-supply-warning { position:absolute; top:-6px; right:-5px; width:13px; height:13px; display:grid; place-items:center; margin:0; border:2px solid white; border-radius:50%; color:white; background:#b91c1c; font-size:9px; font-weight:900; line-height:1; }
.equipment-supply-level.low .equipment-supply-warning { color:#422006; background:#fbbf24; }
.equipment-critical-cell { flex-shrink:0; display:inline-flex; align-items:center; }
.equipment-critical-alert { min-height:24px; padding:2px 5px; border:1px solid var(--red-border, #fecaca); border-radius:5px; background:var(--red-soft); color:var(--red); font-size:10px; font-weight:750; white-space:nowrap; }
.equipment-health-unknown { color:var(--muted); font-size:11px; }
.equipment-select-cell { padding-inline: 14px; text-align: center; }
.equipment-select-cell input { width: 18px; height: 18px; margin: 0; display: inline-block; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }
.equipment-select-cell input:focus-visible { outline: 3px solid rgba(126,34,206,.22); outline-offset: 2px; }
.equipment-select-cell input:disabled { cursor: not-allowed; opacity: .45; }
.device-row.selected { background: var(--brand-soft, #fcfaff); box-shadow: inset 3px 0 0 #c084fc; }
.equipment-sort { width: 100%; padding: 0; display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.equipment-sort:hover, .equipment-sort.active { color: var(--brand-strong, var(--brand-dark)); }
.equipment-sort span { margin: 0; color: var(--muted, #94a3b8); font-size: 11px; }
.equipment-filter-header { position: relative; overflow: visible; }
.equipment-header-controls { display: flex; align-items: center; gap: 4px; }
.equipment-header-controls .equipment-sort { min-width: 0; flex: 1; }
.equipment-header-filter { width: 26px; height: 26px; flex: 0 0 26px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted, #94a3b8); }
.equipment-header-filter:hover, .equipment-header-filter:focus-visible, .equipment-header-filter.active, .equipment-header-filter[aria-expanded="true"] { outline: 0; background: var(--brand-soft); color: var(--brand-strong, var(--brand-dark)); }
.equipment-header-filter:focus-visible { box-shadow: 0 0 0 3px rgba(126,34,206,.2); }
.equipment-header-filter svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.equipment-filter-popover { position: absolute; top: calc(100% + 6px); left: 20px; z-index: 35; width: min(280px, calc(100vw - 32px)); padding: 13px; border: 1px solid var(--line-strong, #d8dee8); border-radius: 8px; background: var(--surface, white); box-shadow: 0 16px 38px rgba(15,23,42,.18), 0 3px 9px rgba(15,23,42,.08); color: var(--ink); font-size: 12px; font-weight: 400; letter-spacing: normal; text-align: left; text-transform: none; }
.equipment-filter-popover.align-right { right: 20px; left: auto; }
.equipment-filter-popover p { margin: 0 0 11px; color: var(--ink); font-size: 12px; font-weight: 850; }
.equipment-filter-popover label { margin: 0; }
.equipment-filter-popover label > span { display: block; margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.equipment-filter-popover select { height: 36px; }
.equipment-filter-actions { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.table-sort { width: 100%; padding: 0; display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.table-sort:hover, .table-sort.active { color: var(--brand-strong, var(--brand-dark)); }
.table-sort span { margin: 0; color: var(--muted, #94a3b8); font-size: 11px; }
.admin-table { min-width: 780px; table-layout: fixed; }
.admin-table th:first-child { width: 23%; }
.admin-table th:last-child { width: 110px; }
#user-table-wrap { position: relative; }
#user-table-wrap .admin-table th:last-child { width: 240px; }
#user-table .table-action { flex-shrink: 0; white-space: nowrap; }
#tenant-table-wrap .admin-table th:last-child { width: 76px; }
#tenant-table .tenant-actions-cell { padding: 8px 16px; text-align: right; }
#tenant-table .agent-action-trigger:disabled { opacity: .5; cursor: wait; }
#tenant-action-menu { width: min(248px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow-y: auto; }
#tenant-action-menu .agent-menu-item:disabled { opacity: .45; cursor: not-allowed; background: transparent; color: var(--muted); }
.activity-table { min-width: 720px; table-layout: fixed; }
.issue-report-filters { padding: 14px 20px; display: flex; gap: 12px; align-items: end; flex-wrap: wrap; background: var(--surface-subtle, #fcfcfd); border-bottom: 1px solid var(--line); }
.issue-report-filters label { display: grid; gap: 5px; font-size: 11px; font-weight: 750; color: var(--muted); }
.issue-report-filters select, .issue-report-filters input { width: 100%; min-height: 36px; border: 1px solid var(--line-strong, #cbd5e1); border-radius: 8px; padding: 6px 10px; background: var(--surface, white); color: var(--ink); }
.issue-report-search { flex: 1 1 240px; }
.issue-report-filters .button { min-height: 36px; }
.issue-report-note { margin: 12px 20px; font-size: 12px; line-height: 1.5; }
.issue-report-table { min-width: 740px; table-layout: fixed; }
.issue-report-table th, .issue-report-table td { padding: 10px 12px; overflow-wrap: anywhere; }
.issue-report-table th:nth-child(1) { width: 10%; }
.issue-report-table th:nth-child(2) { width: 25%; }
.issue-report-table th:nth-child(3), .issue-report-table th:nth-child(4) { width: 18%; }
.issue-report-table th:nth-child(5) { width: 13%; }
.issue-report-table th:nth-child(6) { width: 16%; }
.issue-report-device { border: 0; padding: 0; background: transparent; color: var(--brand-strong, var(--brand-dark)); font: inherit; font-weight: 800; text-align: left; }
.issue-report-device:hover { text-decoration: underline; }
.issue-report-table .reported-serial { color: var(--red); font-weight: 750; }
.issue-report-table .failed-read-error { color: var(--red); font-weight: 750; }
.issue-report-table .failed-read-error span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
.issue-report-table[data-report-type="failed-reads"] th:nth-child(1) { width: 11%; }
.issue-report-table[data-report-type="failed-reads"] th:nth-child(2) { width: 25%; }
.issue-report-table[data-report-type="failed-reads"] th:nth-child(3) { width: 30%; }
.issue-report-table[data-report-type="failed-reads"] th:nth-child(4) { width: 14%; }
.issue-report-table[data-report-type="failed-reads"] th:nth-child(5) { width: 20%; }
.issue-report-table[data-report-type="supply-recommendations"] { min-width: 1100px; }
.issue-report-table[data-report-type="supply-recommendations"] th { overflow-wrap: normal; }
.issue-report-table[data-report-type="supply-recommendations"] th:nth-child(1) { width: 8%; }
.issue-report-table[data-report-type="supply-recommendations"] th:nth-child(2) { width: 20%; }
.issue-report-table[data-report-type="supply-recommendations"] th:nth-child(3) { width: 18%; }
.issue-report-table[data-report-type="supply-recommendations"] th:nth-child(4) { width: 10%; }
.issue-report-table[data-report-type="supply-recommendations"] th:nth-child(5) { width: 16%; }
.issue-report-table[data-report-type="supply-recommendations"] th:nth-child(6) { width: 14%; }
.issue-report-table[data-report-type="supply-recommendations"] th:nth-child(7) { width: 14%; }
.supply-report-detail { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.supply-report-urgent { color: var(--red); font-weight: 750; }
.issue-report-sort { display: inline-flex; gap: 5px; align-items: center; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.issue-report-sort:hover { color: var(--brand-strong, var(--brand-dark)); }
.activity-table th:first-child { width: 23%; }
.activity-table th:nth-child(2) { width: 16%; }
.activity-table th:nth-child(3) { width: 39%; }
.activity-table th:last-child { width: 22%; }
.equipment-pagination { min-height: 52px; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); background: var(--surface-subtle, #fcfcfd); color: var(--muted); font-size: 12px; }
.equipment-pagination > div { display: flex; gap: 6px; }
.equipment-pagination button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line-strong, #d7dee8); border-radius: 7px; background: var(--surface, white); color: var(--ink-secondary, #475569); font-size: 11px; font-weight: 800; }
.equipment-pagination button:hover:not(:disabled) { border-color: var(--brand-border, #c4b5fd); background: var(--brand-soft); color: var(--brand-strong, var(--brand-dark)); }
.equipment-pagination button:disabled { cursor: not-allowed; opacity: .45; }
.equipment-page-controls, .equipment-page-numbers { display: flex; align-items: center; gap: 6px; }
.equipment-pagination .equipment-page-number { min-width: 34px; padding: 0 8px; }
.equipment-pagination .equipment-page-number.active { border-color: var(--brand); background: var(--brand); color: white; opacity: 1; }
.equipment-page-ellipsis { min-width: 18px; text-align: center; color: var(--muted); font-weight: 800; }
@media(max-width: 760px) {
  .equipment-pagination { align-items: flex-start; flex-direction: column; }
  .equipment-page-controls { width: 100%; overflow-x: auto; padding-bottom: 2px; }
}
label { display: block; margin: 0 0 6px; color: var(--ink-secondary, #334155); font-size: 12px; font-weight: 800; }
input, select { width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line-strong, #cbd5e1); border-radius: 8px; outline: none; background: var(--surface, white); color: var(--ink); font-size: 13px; }
input:focus, select:focus { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,.13); }
.form-message { min-height: 20px; margin: 0; padding: 0 20px; color: var(--green); font-size: 12px; }
.form-message:not(:empty) { padding-top: 9px; }
.form-message.error { color: var(--red); }

.button { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 850; white-space: nowrap; }
.button svg { width: 15px; height: 15px; flex: 0 0 auto; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button.primary { background: var(--brand); color: white; box-shadow: 0 6px 15px rgba(126,34,206,.18); }
.button.primary:hover:not(:disabled) { background: var(--brand-dark); }
.button.secondary { border-color: var(--brand-border, #c4b5fd); background: var(--surface, white); color: var(--brand-strong, var(--brand-dark)); }
.button.secondary:hover:not(:disabled) { background: var(--brand-soft); }
.button.danger { border-color: var(--red-border, #fecaca); background: var(--surface, white); color: var(--red); }
.button.danger:hover:not(:disabled) { background: var(--red-soft); }
.button.full { width: 100%; margin-top: 12px; }
.status-pill, .count-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.status-pill.online, .status-pill.saved, .status-pill.completed, .status-pill.success { background: var(--green-soft); color: var(--green); }
.status-pill.healthy { background: var(--green-soft); color: var(--green); }
.status-pill.running, .status-pill.accepted, .status-pill.sent, .status-pill.saving, .status-pill.waiting, .status-pill.partial { background: var(--amber-soft); color: var(--amber); }
.status-pill.warning { background: var(--amber-soft); color: var(--amber); }
.status-pill.offline, .status-pill.failed, .status-pill.rejected, .status-pill.deactivated { background: var(--red-soft); color: var(--red); }
.status-pill.critical { background: var(--red-soft); color: var(--red); }
.status-pill.info { background: var(--blue-soft); color: var(--blue); }
.status-pill.neutral, .status-pill.not_configured { background: var(--surface-muted, #e2e8f0); color: var(--ink-secondary, #475569); }
.count-badge { background: var(--brand-soft); color: var(--brand-strong, var(--brand-dark)); }

.scan-progress { margin-bottom: 14px; padding: 15px 20px; display: grid; grid-template-columns: minmax(220px, .45fr) 1fr; align-items: center; gap: 22px; }
.scan-progress-copy { display: flex; align-items: center; gap: 10px; }
.scan-progress-copy strong, .scan-progress-copy span { display: block; }
.scan-progress-copy strong { font-size: 13px; }
.scan-progress-copy div > span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.live-indicator { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.13); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-muted, #e2e8f0); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #22c55e); transition: width .25s ease; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 20px; border-bottom: 1px solid var(--line, #edf2f7); text-align: left; vertical-align: middle; font-size: 12px; }
th { color: var(--muted); background: var(--surface-subtle, #f8fafc); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
td strong, td span { display: block; }
td span { margin-top: 3px; color: var(--muted); font-size: 11px; }
td code { color: var(--brand-strong, var(--brand-dark)); font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.device-row { cursor: pointer; transition: background .12s ease; }
.device-row:hover, .device-row:focus-within { background: var(--brand-soft, #faf7ff); }
.device-link { padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 800; text-align: left; }
.device-link:hover { color: var(--brand-strong, var(--brand-dark)); }
.empty-state { padding: 28px; color: var(--muted); font-size: 13px; text-align: center; }
.empty-state.compact { padding: 24px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; max-width: min(390px, calc(100vw - 44px)); margin: 0; padding: 12px 15px; border-radius: 9px; background: #1e293b; color: white; box-shadow: 0 12px 32px rgba(15,23,42,.25); font-size: 13px; }
.toast.error { background: #7f1d1d; }
.sidebar-overlay { display: none; }

.creation-layer { position: fixed; inset: 0; z-index: 90; }
body.creation-open { overflow: hidden; }
.creation-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(15,23,42,.5); cursor: default; animation: creation-fade-in .16s ease-out; }
.creation-drawer { position: absolute; top: 0; right: 0; width: min(520px, 96vw); height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--surface-subtle, #f7f8fa); box-shadow: -18px 0 50px rgba(15,23,42,.22); animation: creation-slide-in .2s ease-out; }
.creation-header { min-height: 102px; padding: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); background: var(--surface, white); }
.creation-header h2 { margin-top: 3px; font-size: 21px; letter-spacing: -.025em; }
.creation-header .muted { margin-top: 4px; font-size: 11px; }
.creation-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-text, var(--brand)); }
.creation-icon svg { width: 21px; height: 21px; }
.creation-form { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.creation-form-body { min-height: 0; padding: 22px 20px 28px; flex: 1; overflow-y: auto; }
.creation-form-body > div:not(:first-child), .creation-form-body > .form-message { margin-top: 18px; }
.creation-form-body label { margin-bottom: 7px; }
.creation-form-body input:not([type="checkbox"]), .creation-form-body select { height: 43px; background: var(--surface, white); }
.creation-form-body small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.creation-form-body .form-intro { margin-bottom: 20px; padding: 12px 13px; border: 1px solid var(--brand-border, #e9d5ff); border-radius: 9px; background: var(--brand-soft, #faf7ff); color: var(--ink-secondary, #475569); font-size: 12px; line-height: 1.5; }
.creation-form-body .creation-inline-action { width: 100%; justify-content: center; margin: -8px 0 20px; }
.creation-form-body .form-message { min-height: 20px; padding: 0; }
.creation-form-body .form-message:not(:empty) { padding-top: 0; }
.permission-options { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, white); }
.permission-options .check-field { min-height: 66px; padding: 12px 13px; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--line); }
.permission-options .check-field:last-child { border-bottom: 0; }
.permission-options .check-field input { margin-top: 2px; flex: 0 0 auto; }
.permission-options .check-field strong, .permission-options .check-field small { display: block; }
.permission-options .check-field strong { color: var(--ink-secondary, #334155); font-size: 12px; }
.permission-options .check-field small { margin-top: 3px; }
.creation-footer { min-height: 72px; padding: 14px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: var(--surface, white); }
.creation-footer-spacer { flex: 1; }
.agent-pool-members-fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.agent-pool-members-fieldset legend { margin-bottom: 7px; color: var(--ink-secondary, #334155); font-size: 12px; font-weight: 700; }
.agent-pool-members { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, white); }
.agent-pool-member { min-height: 62px; padding: 11px 13px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.agent-pool-member:last-child { border-bottom: 0; }
.agent-pool-member input { margin-top: 2px; flex: 0 0 auto; }
.agent-pool-member strong, .agent-pool-member small { display: block; }
.agent-pool-member strong { color: var(--ink-secondary, #334155); font-size: 12px; }
.agent-pool-member input:disabled + span { opacity: .58; }
.report-selection-summary { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface, white); }
.report-selection-heading { min-height: 66px; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.report-selection-heading h3 { margin: 3px 0 0; color: var(--ink-secondary, #334155); font-size: 15px; letter-spacing: -.015em; }
.report-selection-list { max-height: min(420px, 52vh); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.report-selection-list li { padding: 12px 13px; border-bottom: 1px solid var(--line); }
.report-selection-list li:last-child { border-bottom: 0; }
.report-selection-list strong, .report-selection-list span { display: block; }
.report-selection-list strong { overflow: hidden; color: var(--ink-secondary, #334155); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.report-selection-list span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.read-schedule-directory { margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface, white); }
.read-schedule-directory-heading { min-height: 62px; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.read-schedule-directory-heading h3 { margin: 3px 0 0; color: var(--ink-secondary, #334155); font-size: 15px; letter-spacing: -.015em; }
.read-schedule-list { display: grid; }
.read-schedule-item { padding: 13px; border-bottom: 1px solid var(--line); background: var(--surface, white); }
.read-schedule-item:last-child { border-bottom: 0; }
.read-schedule-item.editing { box-shadow: inset 3px 0 0 var(--brand); background: var(--brand-soft, #faf7ff); }
.read-schedule-item-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.read-schedule-item-heading strong, .read-schedule-item-heading span { display: block; }
.read-schedule-item-heading strong { overflow: hidden; color: var(--ink, #1e293b); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.read-schedule-item-heading div > span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.read-schedule-timing, .read-schedule-last { margin-top: 8px; color: var(--ink-secondary, #475569); font-size: 11px; line-height: 1.45; }
.read-schedule-last { margin-top: 3px; color: var(--muted); }
.read-schedule-last.error { color: var(--red); }
.read-schedule-progress { margin: 5px 0 0; color: var(--ink-secondary, #475569); font-size: 11px; font-weight: 600; line-height: 1.45; }
.read-schedule-progress.error { color: var(--red); }
.read-schedule-item-actions { margin-top: 11px; display: flex; justify-content: flex-end; gap: 7px; }
.read-schedule-empty { padding: 18px 13px; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.creation-form-body > .read-schedule-directory + .form-intro { margin-top: 0; }
.read-schedule-active-field { min-height: 66px; margin: 18px 0 0; padding: 12px 13px; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, white); }
.read-schedule-active-field input { margin-top: 2px; flex: 0 0 auto; }
.read-schedule-active-field strong, .read-schedule-active-field small { display: block; }
.read-schedule-active-field strong { color: var(--ink-secondary, #334155); font-size: 12px; }
.read-schedule-active-field small { margin-top: 3px; }
@keyframes creation-fade-in { from { opacity: 0; } }
@keyframes creation-slide-in { from { transform: translateX(24px); opacity: .7; } }

.detail-header { min-height: 92px; padding: 19px 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: var(--surface, white); }
.detail-device-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-text, var(--brand)); }
.detail-device-icon svg { width: 21px; height: 21px; }
.detail-header h2 { margin-top: 3px; overflow: hidden; font-size: 21px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.detail-header .muted { margin-top: 4px; font-size: 11px; }
.detail-actions { padding: 13px 20px; display: flex; gap: 8px; border-bottom: 1px solid var(--line); background: var(--surface, white); }
.detail-actions .button:first-child { flex: 1; }
.detail-message { min-height: 0; padding: 0 20px; background: var(--surface, white); color: var(--green); font-size: 12px; }
.detail-message:not(:empty) { min-height: 32px; padding-top: 7px; border-bottom: 1px solid var(--line); }
.detail-message.error { color: var(--red); }
.detail-loading { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); font-size: 12px; }
.loading-spinner { width: 28px; height: 28px; border: 3px solid var(--brand-border, #e9d5ff); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.detail-content { padding: 15px; }
.device-facts { margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.device-facts > div { min-height: 60px; padding: 12px 14px; background: var(--surface, white); }
.device-facts dt { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.device-facts dd { margin: 6px 0 0; overflow: hidden; color: var(--ink-secondary, #334155); font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.detail-section { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface, white); }
.detail-section-heading { min-height: 64px; padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.detail-section-heading h3 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.015em; }
.last-scan-grid { display: grid; grid-template-columns: 1fr 1fr; }
.last-scan-grid > div { min-height: 58px; padding: 12px 16px; border-right: 1px solid var(--line, #edf2f7); border-bottom: 1px solid var(--line, #edf2f7); }
.last-scan-grid > div:nth-child(even) { border-right: 0; }
.last-scan-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.last-scan-grid span, .last-scan-grid strong { display: block; }
.last-scan-grid span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.last-scan-grid strong { margin-top: 5px; color: var(--ink-secondary, #334155); font-size: 12px; }
.scan-error { margin: 0; padding: 11px 16px; border-top: 1px solid var(--red-border, #fecaca); background: var(--red-soft); color: var(--red); font-size: 11px; line-height: 1.45; }
.machine-health-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line, #edf2f7); }
.machine-health-summary > div { min-height: 58px; padding: 12px 16px; border-right: 1px solid var(--line, #edf2f7); }
.machine-health-summary > div:last-child { border-right: 0; }
.machine-health-summary span, .machine-health-summary strong { display: block; }
.machine-health-summary span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.machine-health-summary strong { margin-top: 5px; color: var(--ink-secondary, #334155); font-size: 12px; }
.device-alert-list { padding: 3px 16px; }
.device-alert { padding: 13px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line, #edf2f7); }
.device-alert:last-child { border-bottom: 0; }
.device-alert > div { min-width: 0; }
.device-alert strong, .device-alert div > span { display: block; }
.device-alert strong { color: var(--ink-secondary, #334155); font-size: 12px; line-height: 1.4; }
.device-alert div > span { margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; line-height: 1.4; }
.detail-empty { padding: 22px 16px; color: var(--muted); font-size: 12px; text-align: center; }
.meter-toolbar { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line, #edf2f7); background: var(--surface-subtle, #fbfcfe); }
.meter-search { position: relative; width: min(360px, 100%); margin: 0; display: block; }
.meter-search svg { position: absolute; top: 50%; left: 11px; width: 14px; height: 14px; transform: translateY(-50%); color: var(--muted, #94a3b8); pointer-events: none; }
.meter-search input { height: 38px; padding-left: 34px; background: var(--surface, white); font-size: 12px; }
.meter-page-size { margin: 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.meter-page-size select { width: 68px; height: 38px; padding: 0 9px; font-size: 12px; }
.meter-table-wrap { overflow-x: auto; background: var(--surface, white); }
.meter-table { min-width: 650px; table-layout: fixed; }
.meter-table th, .meter-table td { padding: 11px 12px; font-size: 11px; }
.meter-table th { background: var(--surface-subtle, #f8fafc); }
.meter-table th:first-child { width: 34%; }
.meter-table th:nth-child(2) { width: 17%; }
.meter-table th:nth-child(3), .meter-table th:nth-child(4) { width: 16%; }
.meter-table th:last-child { width: 17%; }
.meter-table th.numeric, .meter-table td.numeric { text-align: right; }
.meter-sort { width: 100%; padding: 0; display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.meter-table th.numeric .meter-sort { justify-content: flex-end; }
.meter-sort:hover, .meter-sort.active { color: var(--brand-strong, var(--brand-dark)); }
.meter-sort span { margin: 0; color: var(--muted, #94a3b8); font-size: 11px; }
.meter-row:hover { background: var(--brand-soft, #faf7ff); }
.meter-name strong, .meter-name small { display: block; }
.meter-name strong { overflow: hidden; color: var(--ink, #1e293b); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.meter-name small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.meter-number { color: var(--ink, #1e293b); font-weight: 800; font-variant-numeric: tabular-nums; }
.meter-unit { color: var(--muted); }
.meter-category { display: inline-flex; max-width: 100%; margin: 0; padding: 4px 7px; overflow: hidden; border-radius: 999px; background: var(--surface-muted, #eef2f7); color: var(--ink-secondary, #475569); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.meter-category.total { background: var(--brand-soft); color: var(--brand-strong, var(--brand-dark)); }
.meter-category.blackAndWhite { background: var(--surface-muted, #e2e8f0); color: var(--ink-secondary, #334155); }
.meter-category.color { background: var(--blue-soft); color: var(--blue); }
.meter-pagination { min-height: 50px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line, #edf2f7); background: var(--surface-subtle, #fbfcfe); color: var(--muted); font-size: 11px; }
.meter-pagination > div { display: flex; gap: 6px; }
.meter-pagination button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong, #d7dee8); border-radius: 7px; background: var(--surface, white); color: var(--ink-secondary, #475569); font-size: 11px; font-weight: 750; }
.meter-pagination button:hover:not(:disabled) { border-color: var(--brand-border, #c4b5fd); background: var(--brand-soft); color: var(--brand-strong, var(--brand-dark)); }
.meter-pagination button:disabled { cursor: not-allowed; opacity: .45; }
.supply-list { padding: 3px 16px; }
.supply-item { padding: 15px 0; border-bottom: 1px solid var(--line, #edf2f7); }
.supply-item:last-child { border-bottom: 0; }
.supply-copy { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.supply-copy strong, .supply-copy span { display: block; }
.supply-copy strong { color: var(--ink-secondary, #334155); font-size: 13px; }
.supply-copy span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.supply-value { min-width: 54px; color: var(--ink-secondary, #334155); font-size: 17px; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.supply-track { height: 9px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: var(--surface-muted, #e2e8f0); }
.supply-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); }
.supply-fill.black { background: #334155; }
.supply-fill.cyan { background: #06b6d4; }
.supply-fill.magenta { background: #db2777; }
.supply-fill.yellow { background: #eab308; }
.supply-fill.low { background: var(--red); }
.supply-fill.warning { background: var(--amber); }
.supply-fill.black.low, .supply-fill.black.warning { background: #334155; }
.supply-forecast { margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; color: var(--muted, #94a3b8); font-size: 10px; }
.supply-forecast .attention { color: var(--red); font-weight: 800; }
.supply-replacement { display:grid; gap:4px; margin-top:10px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; color:var(--muted); font-size:12px; line-height:1.5; }
.supply-replacement strong { color:var(--ink); font-weight:600; }
.deactivate-confirmation { margin: 12px 0 2px; padding: 14px; border: 1px solid var(--red-border, #fecaca); border-radius: 11px; background: var(--red-soft, #fff7f7); }
.deactivate-confirmation > div:first-child strong { color: var(--red, #7f1d1d); font-size: 13px; }
.deactivate-confirmation p { margin-top: 5px; color: var(--red, #991b1b); font-size: 11px; line-height: 1.45; }
.deactivate-confirmation > div:last-child { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }
.button.danger.solid { border-color: var(--red); background: var(--red); color: white; }
.button.danger.solid:hover:not(:disabled) { background: #991b1b; }

.confirmation-layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
body.confirmation-open { overflow: hidden; }
.confirmation-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(15,23,42,.55); }
.confirmation-dialog { position: relative; width: min(440px, 100%); padding: 26px; border: 1px solid var(--red-border, #fecaca); border-radius: 15px; background: var(--surface, white); box-shadow: 0 24px 70px rgba(15,23,42,.28); }
.confirmation-icon { width: 42px; height: 42px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 20px; font-weight: 900; }
.confirmation-dialog h2 { margin: 5px 0 0; font-size: 21px; }
.confirmation-dialog > .muted { margin-top: 9px; font-size: 13px; line-height: 1.55; }
.confirmation-dialog > div:last-child { margin-top: 22px; display: flex; justify-content: flex-end; gap: 8px; }
.confirmation-dialog.rename-dialog { border-color: var(--brand-border, #d8b4fe); }
.rename-dialog .confirmation-icon { background: var(--brand-soft); color: var(--brand-text, var(--brand)); }
.agent-rename-form { margin-top: 20px; }
.agent-rename-form .form-message { min-height: 20px; padding: 0; }
.agent-rename-form .form-message:not(:empty) { padding-top: 7px; }
.agent-rename-form > div { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }
.agent-delete-guidance { margin-top: 16px; color: var(--ink-secondary, #475569); font-size: 12px; line-height: 1.5; }
.agent-delete-guidance code { padding: 2px 5px; border-radius: 4px; background: var(--red-soft); color: var(--red, #7f1d1d); font-size: 11px; font-weight: 850; overflow-wrap: anywhere; user-select: all; }
.agent-delete-form { margin-top: 15px; }
.agent-delete-form label { display: block; margin-bottom: 6px; color: var(--ink-secondary, #334155); font-size: 11px; font-weight: 800; }
.agent-delete-form input { width: 100%; min-height: 36px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.agent-delete-form .form-message { min-height: 20px; padding: 0; }
.agent-delete-form .form-message:not(:empty) { padding-top: 7px; }
.agent-delete-form > div { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }
.confirmation-dialog.equipment-recovery-dialog { width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; border-color: var(--brand-border, #c4b5fd); }
.equipment-recovery-form { margin-top: 20px; }
.equipment-recovery-form label { display: block; margin: 16px 0 6px; color: var(--ink-secondary, #334155); font-size: 12px; font-weight: 800; }
.equipment-recovery-form select { width: 100%; min-height: 36px; }
.equipment-recovery-form > .muted { margin-top: 8px; font-size: 12px; line-height: 1.5; }
.equipment-recovery-status { margin-top: 12px; color: var(--brand-strong, var(--brand-dark)); font-size: 12px; font-weight: 750; line-height: 1.5; }
.equipment-recovery-form .form-message { min-height: 20px; padding: 7px 0 0; }
.equipment-recovery-actions { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.confirmation-dialog.enrollment-dialog { width: min(560px, 100%); border-color: var(--brand-border, #c4b5fd); }
.enrollment-dialog .confirmation-icon { background: var(--brand-soft); color: var(--brand-text, var(--brand)); }
.enrollment-token-box { margin-top: 18px; padding: 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--brand-border, #c4b5fd); border-radius: 10px; background: var(--brand-soft, #faf7ff); }
.enrollment-token-box code { min-width: 0; overflow-wrap: anywhere; color: var(--brand-strong, var(--brand-dark)); font-size: 13px; font-weight: 800; line-height: 1.55; user-select: all; }
.enrollment-token-box .button { min-height: 36px; }
.enrollment-copy-status { min-height: 20px; margin-top: 7px; color: var(--green); font-size: 11px; font-weight: 750; }
.enrollment-copy-status.error { color: var(--red); }
.enrollment-expiry { margin-top: 5px; color: var(--ink-secondary, #475569); font-size: 12px; font-weight: 800; }
.enrollment-expiry.expired { color: var(--red); }
.enrollment-warning { margin-top: 14px; padding: 11px 12px; border: 1px solid var(--amber-border, #fde68a); border-radius: 9px; background: var(--amber-soft, #fffbeb); color: var(--amber, #92400e); font-size: 11px; line-height: 1.5; }
.enrollment-actions { margin-top: 18px; display: flex; justify-content: flex-end; }

@media (max-width: 1120px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .overview-dashboard-grid { grid-template-columns: 1fr; }
  .signed-in-user { display: none; }
  .agent-download-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body.sidebar-open { overflow: hidden; }
  .app-layout { display: block; }
  .app-sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 278px; transition: transform .2s ease; }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 25; display: block; opacity: 0; pointer-events: none; background: rgba(15,23,42,.46); transition: opacity .2s ease; }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .sidebar-close, .mobile-menu { display: grid !important; }
  .mobile-menu { order: -2; }
  .app-topbar > .workspace-scope { order: -1; }
  .app-topbar { min-height: 0; padding: 12px 18px; flex-wrap: wrap; }
  .global-equipment-search { order: 5; width: 100%; max-width: none; flex-basis: 100%; }
  .global-search-menu { width: 100%; }
  .content-shell { padding-inline: 20px; }
  .view-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .agent-download-grid { grid-template-columns: 1fr; }
  .agent-table-toolbar { align-items: stretch; flex-wrap: wrap; }
  .agent-search { width: 100%; flex-basis: 100%; }
  .equipment-table-toolbar { align-items: stretch; flex-wrap: wrap; }
  .equipment-search { width: 100%; flex-basis: 100%; }
  .equipment-panel .equipment-table-toolbar { flex-wrap: wrap; }
  .equipment-panel .equipment-search { width: 100%; flex-basis: 100%; }
  .equipment-selection-bar { align-items: stretch; flex-direction: column; }
  .equipment-selection-actions { justify-content: flex-end; }
}

@media (max-width: 620px) {
  .app-topbar { min-height: 0; gap: 10px; }
  .topbar-actions { gap: 5px; }
  .content-shell { padding: 22px 12px 40px; }
  .view-heading h1 { font-size: 22px; }
  .summary-grid { grid-template-columns: 1fr; }
  .overview-high-usage-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .overview-high-usage-item:nth-child(-n+6) { border-right: 0; }
  .overview-high-usage-item:nth-child(6):not(:last-child) { border-bottom: 1px solid var(--line); }
  .summary-card { min-height: 94px; }
  .panel-heading { align-items: stretch; flex-direction: column; }
  .heading-actions { align-items: stretch; justify-content: space-between; }
  .equipment-table-options { align-items: stretch; }
  .equipment-page-size { flex: 1; }
  .equipment-table-toolbar .compact-button { flex: 1; }
  .equipment-table-options .compact-button { flex: 1; }
  .equipment-selection-actions { flex-direction: column; }
  .equipment-selection-actions .button { width: 100%; }
  .activity-actions { align-items: stretch; flex-wrap: wrap; }
  .activity-actions .button { flex: 1 1 auto; }
  .enrollment-token-box { grid-template-columns: 1fr; }
  .enrollment-token-box .button { width: 100%; }
  .scan-progress { grid-template-columns: 1fr; gap: 12px; }
  th, td { padding-inline: 12px; }
  .creation-drawer { width: 100vw; }
  .creation-header { padding-inline: 14px; }
  .creation-form-body { padding-inline: 14px; }
  .creation-footer { padding-inline: 14px; }
  .detail-header { padding-inline: 14px; }
  .detail-actions { padding-inline: 14px; }
  .detail-content { padding: 10px; }
  .device-facts { grid-template-columns: 1fr 1fr; }
  .agent-action-trigger { width: 42px; height: 42px; }
  .agent-table th:last-child { width: 72px; }
}

@media (max-width: 420px) {
  .meter-toolbar { align-items: stretch; flex-direction: column; }
  .meter-search { width: 100%; }
  .meter-page-size { justify-content: space-between; }
}
/* Per-device delivery setup and server-paged approval queue. */
.replenishment-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.replenishment-fields h3 { margin: 24px 0 8px; }
.replenishment-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.replenishment-form-grid label { display: grid; align-content: start; gap: 5px; }
.replenishment-form-grid input { width: 100%; min-width: 0; }
.replenishment-form-grid textarea { width:100%; min-width:0; min-height:64px; padding:9px 11px; border:1px solid var(--line-strong, #cbd5e1); border-radius:8px; outline:none; background:var(--surface); color:var(--ink); font:inherit; font-size:13px; line-height:1.45; resize:vertical; }
.replenishment-form-grid textarea:focus { border-color:#a855f7; box-shadow:0 0 0 3px rgba(168,85,247,.13); }
.replenishment-cartridge { padding: 13px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.replenishment-table { min-width: 1100px; table-layout: fixed; }
.replenishment-table th:nth-child(1), .replenishment-table th:nth-child(2) { width: 14%; }
.replenishment-table th:nth-child(3) { width: 7%; }
.replenishment-table th:nth-child(4) { width: 12%; }
.replenishment-table th:nth-child(5) { width: 10%; }
.replenishment-table th:nth-child(6) { width: 13%; }
.replenishment-table th:nth-child(7) { width: auto; }
.replenishment-table th:last-child { width: 68px; }
.replenishment-table th, .replenishment-table td { padding: 13px 12px; vertical-align: top; overflow-wrap: anywhere; }
.replenishment-table p { margin: 4px 0 0; line-height: 1.45; }
.replenishment-table tbody tr:hover { background: var(--brand-soft); }
.replenishment-table .agent-actions-cell { vertical-align: middle; }
.replenishment-table .agent-action-trigger:disabled { opacity: .5; cursor: wait; }
#replenishment-action-menu { width: min(248px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow-y: auto; }
#replenishment-action-menu a { text-decoration: none; }
#replenishment-action-menu .agent-menu-item:disabled { opacity: .5; cursor: not-allowed; }
.replenishment-page-hint { margin: 12px 20px 0; font-size: 12px; }
#replenishment-queue-message { padding-inline: 20px; }
.detail-actions { flex-wrap: wrap; }
@media(max-width: 500px) { .replenishment-form-grid { grid-template-columns: 1fr; } }

/* Equipment is a normal, linkable page; editing and delivery stay in place. */
.tenant-replenishment-panel { margin-top: 20px; scroll-margin-top: 20px; }
#tenant-replenishment-form .check-field { margin: 0 0 12px; }
#replenishment-enabled { margin: 6px 0; }
.equipment-page { min-width: 0; }
.equipment-page-toolbar, .equipment-page-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.equipment-page-toolbar { justify-content:space-between; margin-bottom:10px; }
.equipment-page .detail-header { grid-template-columns:auto minmax(0,1fr); border:1px solid var(--line); border-radius:11px; }
.equipment-page .detail-header h2 { white-space:normal; overflow-wrap:anywhere; font-size:20px; }
.equipment-page .detail-header .muted { font-size: 12px; overflow-wrap: anywhere; }
.equipment-page .detail-actions { justify-content:flex-end; border:0; }
.equipment-page .detail-actions .button:first-child { flex: none; }
.equipment-page .detail-message { background: transparent; padding: 0; }
.equipment-page .detail-message:not(:empty) { padding: 12px 0; border: 0; }
.equipment-page-content { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px,1fr); align-items: start; gap: 20px; margin-top: 20px; }
.equipment-page-main { min-width: 0; }
.serial-mismatch-notice { margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--red-border, #fecaca); border-left: 4px solid var(--red); border-radius: 11px; background: var(--red-soft); }
.serial-mismatch-notice h3 { margin: 0; color: var(--red); font-size: 15px; }
.serial-mismatch-notice p { margin: 8px 0 14px; color: var(--red, #7f1d1d); font-size: 12px; line-height: 1.5; }
.serial-mismatch-values { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.serial-mismatch-values dt { color: var(--red, #7f1d1d); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.serial-mismatch-values dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 750; }
#detail-serial-reported { color: var(--red); }
.equipment-page-main > .panel { margin-bottom: 16px; }
.equipment-page-content .panel { margin-top: 0; }
.equipment-page .panel-heading h3 { margin: 0; font-size: 18px; }
.equipment-page .device-facts dd { white-space: normal; overflow-wrap: anywhere; }
.equipment-delivery-section, #equipment-edit-section { scroll-margin-top: 24px; min-width: 0; }
.equipment-page-form { margin: 0; }
.equipment-form-body { border: 0; margin: 0; padding: 20px; min-width: 0; }
.equipment-fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.equipment-fields-grid > div { display: grid; align-content: start; gap: 6px; min-width: 0; }
.equipment-name-field { grid-column: 1 / -1; }
.equipment-page-form input:not([type="checkbox"]), .equipment-page-form select { width: 100%; min-width: 0; }
.equipment-page-form label { font-size: 12px; font-weight: 650; color: var(--ink-secondary, #334155); }
.equipment-page-form .muted { margin-bottom: 12px; font-size: 12px; line-height: 1.55; }
.equipment-page-form .form-message:not(:empty) { margin-bottom: 14px; }
#equipment-edit-message:not(:empty) { padding: 0 20px; }
.equipment-form-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--surface-subtle, #fafbfe); }
.equipment-page .meter-table { min-width: 0; width: 100%; }
.equipment-page .meter-table th, .equipment-page .meter-table td { overflow-wrap: anywhere; white-space: normal; }
.equipment-page .meter-sort { white-space: normal; text-align: left; }
@media(max-width: 1250px) { .equipment-page-content { grid-template-columns: minmax(0,1fr); } }
@media(max-width: 600px) {
  .equipment-page-toolbar, .equipment-page-links { align-items: stretch; }
  .equipment-page .detail-actions { justify-content: flex-start; }
  .equipment-fields-grid { grid-template-columns: minmax(0,1fr); }
  .equipment-form-body { padding: 16px; }
  .equipment-form-footer { padding: 14px 16px; }
  .equipment-page .meter-table th, .equipment-page .meter-table td { padding: 10px 5px; font-size: 10px; }
}

/* Agent updates use the same dialog and button styling as administration. */
dialog.agent-update-dialog { margin: auto; position: fixed; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border-color: var(--brand-border, #c4b5fd); color: var(--ink, #1e293b); }
dialog.agent-update-dialog::backdrop { background: rgba(15, 23, 42, .5); }
.agent-update-dialog > p { margin-top: 12px; line-height: 1.5; }

dialog.equipment-import-dialog { position: fixed; margin: auto; width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border-color: var(--brand-border, #c4b5fd); color: var(--ink, #1e293b); }
.equipment-import-dialog::backdrop { background: rgba(15,23,42,.5); }
.equipment-import-dialog fieldset { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.equipment-import-dialog label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.equipment-import-dialog select { width: 100%; min-width: 0; height: 36px; border: 1px solid var(--line-strong, #cbd5e1); border-radius: 6px; padding: 0 8px; background: var(--surface, white); color: var(--ink, #1e293b); }
.equipment-import-dialog .muted { font-size: 13px; line-height: 1.5; }
.equipment-import-setup { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(240px, 2fr); gap: 16px; }
.equipment-import-setup .muted, .equipment-import-setup .equipment-import-actions { grid-column: 1 / -1; }
.equipment-import-fields { margin: 16px 0; display: grid; gap: 8px; }
.equipment-import-mapping-details { margin: 18px 0; }
.equipment-import-mapping-details > summary { cursor: pointer; color: var(--brand-text, #51217a); font-size: 14px; font-weight: 600; padding: 10px 0; }
.equipment-import-field { display: grid; grid-template-columns: minmax(190px, .85fr) minmax(200px, 1.2fr) minmax(200px, 1.2fr); gap: 12px; align-items: center; }
.equipment-import-field label { display: flex; gap: 8px; align-items: center; }
.equipment-import-dialog input[type=checkbox] { width: 18px; height: 18px; accent-color: #6b21a8; flex-shrink: 0; }
.equipment-import-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.equipment-import-summary, .equipment-import-status { font-size: 14px; font-weight: 600; line-height: 1.6; }
.equipment-import-status { margin-top: 20px; color: var(--brand-text, #51217a); white-space: pre-wrap; }
.equipment-import-table { overflow: auto; margin-top: 12px; max-height: 430px; border: 1px solid var(--line, #e2e8f0); border-radius: 8px; }
.equipment-import-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.equipment-import-table th { background: var(--surface-subtle, #f8fafc); position: sticky; top: 0; text-align: left; padding: 12px; white-space: nowrap; }
.equipment-import-table td { padding: 10px 12px; border-top: 1px solid var(--line, #e2e8f0); vertical-align: top; overflow-wrap: anywhere; }
.equipment-import-table td:nth-child(2) { min-width: 140px; }
.equipment-import-table td:nth-child(2) strong { display: block; }
.equipment-import-table td:nth-child(3) { min-width: 120px; }
.equipment-import-table td:last-child { min-width: 280px; }
.equipment-import-table p { margin: 0 0 5px; line-height: 1.45; }
.equipment-import-table .import-error { color: var(--red, #b91c1c); font-weight: 600; }
.equipment-import-table .import-ready { color: var(--green, #166534); font-weight: 600; }
@media(max-width: 720px) { .equipment-import-field, .equipment-import-setup { grid-template-columns: 1fr; } .equipment-import-field { padding: 10px 0; border-bottom: 1px solid var(--line, #e2e8f0); } }
.agent-update-downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-update-downloads p { width: 100%; font-size: 13px; line-height: 1.55; }
