:root {
  --page: #f5f6fa;
  --surface: #ffffff;
  --ink: #171524;
  --muted: #6e6a80;
  --line: #e7e5ef;
  --navy: #211d46;
  --violet: #7458da;
  --violet-soft: #f4f0ff;
  --green: #0ba87d;
  --amber: #c27803;
  --red: #d6486d;
  --shadow: 0 18px 42px rgba(36, 31, 68, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

body.auth-locked .topbar,
body.auth-locked .page-shell {
  display: none;
}

body:not(.auth-locked) .login-screen {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(245, 246, 250, 0.94), rgba(245, 246, 250, 0.98)),
    var(--navy);
}

.login-card {
  width: min(430px, 100%);
  padding: 28px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0;
  font-size: 26px;
}

.login-card .primary-button {
  width: 100%;
}

.fallback-login-fields {
  display: none;
  gap: 16px;
}

body.show-fallback-login .fallback-login-fields {
  display: grid;
}

body.show-fallback-login .login-card h1 {
  font-size: 24px;
}

.login-request-button {
  width: 100%;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #086ad8;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.login-help {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 8px;
  background: #faf9ff;
  color: #5f5a73;
  font-size: 13px;
}

.user-pill {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

body.role-ground #adminDashboardViewBtn,
body.role-ground #verificationViewBtn,
body.role-ground #exportCsvBtn,
body.role-ground #downloadLabelsBtn,
body.role-ground #columnSettingsBtn,
body.role-ground #exportVerificationBtn,
body.role-ground [data-admin-section],
body.role-ground [data-jump-tab="verificationViewBtn"],
body.role-ground [data-storage-delete],
body.role-ground .branch-delete,
body.role-ground [data-edit],
body.role-ground [data-delete] {
  display: none !important;
}

body.role-verify #adminDashboardViewBtn,
body.role-verify #manageViewBtn,
body.role-verify #searchViewBtn,
body.role-verify [data-admin-section],
body.role-verify [data-jump-tab="manageViewBtn"],
body.role-verify [data-jump-tab="searchViewBtn"],
body.role-verify #newAssetBtn,
body.role-verify #quickAddBtn,
body.role-verify #exportCsvBtn,
body.role-verify #downloadLabelsBtn,
body.role-verify #columnSettingsBtn,
body.role-verify #addBranchBtn,
body.role-verify .asset-form,
body.role-verify [data-storage-edit],
body.role-verify [data-edit],
body.role-verify [data-storage-delete],
body.role-verify .branch-delete,
body.role-verify [data-delete] {
  display: none !important;
}

body.role-manager #manageViewBtn,
body.role-manager #verificationViewBtn,
body.role-manager [data-jump-tab="manageViewBtn"],
body.role-manager [data-jump-tab="verificationViewBtn"],
body.role-manager #newAssetBtn,
body.role-manager #quickAddBtn,
body.role-manager #addBranchBtn,
body.role-manager .asset-form,
body.role-manager [data-storage-edit],
body.role-manager [data-edit],
body.role-manager [data-storage-delete],
body.role-manager .branch-delete,
body.role-manager [data-delete] {
  display: none !important;
}

body.role-limited-admin #verificationViewBtn,
body.role-limited-admin #columnSettingsBtn,
body.role-limited-admin [data-jump-tab="verificationViewBtn"],
body.role-limited-admin [data-storage-delete],
body.role-limited-admin [data-delete] {
  display: none !important;
}

body.role-limited-admin #settingsPanel > .settings-grid:first-of-type {
  display: none !important;
}

#settingsPanel.limited-settings > .settings-grid:first-of-type {
  display: none !important;
}

body.role-limited-admin #settingsPanel .settings-hero article:first-of-type {
  display: none;
}

body.role-viewer #manageViewBtn,
body.role-viewer #verificationViewBtn,
body.role-viewer #quickAddBtn,
body.role-viewer #newAssetBtn,
body.role-viewer #addBranchBtn,
body.role-viewer #columnSettingsBtn,
body.role-viewer #downloadLabelsBtn,
body.role-viewer #exportCsvBtn,
body.role-viewer #exportVerificationBtn,
body.role-viewer .request-only,
body.role-viewer .asset-form,
body.role-viewer [data-jump-tab="manageViewBtn"],
body.role-viewer [data-jump-tab="verificationViewBtn"],
body.role-viewer [data-admin-section="settings"],
body.role-viewer [data-storage-edit],
body.role-viewer [data-storage-delete],
body.role-viewer [data-edit],
body.role-viewer [data-delete],
body.role-viewer .branch-delete {
  display: none !important;
}

#settingsPanel.limited-settings .settings-hero article:first-of-type,
#settingsPanel.limited-settings .settings-hero article:nth-of-type(2) {
  display: none;
}

.admin-only {
  display: none;
}

body.role-admin .admin-only {
  display: inline-flex;
}

.request-only {
  display: none;
}

body.role-ground .request-only,
body.role-verify .request-only {
  display: inline-flex;
}

body.role-admin .hero-panel,
body.role-limited-admin .hero-panel {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.topbar {
  min-height: 78px;
  padding: 14px 34px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow,
.welcome {
  margin: 0 0 4px;
  color: #bbb6da;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h1,
.hero-copy h2,
.panel-heading h2,
.asset-form h3,
.dialog-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 24px;
  font-weight: 600;
}

.topbar-actions,
.toolbar,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.icon-text-button,
.row-action {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.primary-button {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 10px 22px rgba(116, 88, 218, 0.22);
}

.ghost-button {
  background: #fff;
  color: var(--violet);
  border-color: #d8d2f4;
}

.icon-text-button {
  background: var(--violet-soft);
  color: var(--violet);
  border-color: #dfd8fb;
}

.top-icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d8d2f4;
  border-radius: 50%;
  background: #fff;
  color: #086ad8;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.top-icon-button:hover {
  background: #eef4ff;
  border-color: #cfe0ff;
}

.page-shell {
  padding: 34px;
}

.hero-panel,
.side-panel,
.main-panel,
.asset-form,
.table-card,
.dialog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 150px;
  background: linear-gradient(180deg, #fbf9ff, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-copy,
.summary-grid {
  position: relative;
}

.welcome {
  color: var(--violet);
}

.hero-copy h2 {
  max-width: 620px;
  font-size: 24px;
  line-height: 1.25;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  line-height: 1;
}

.workspace-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.view-tabs {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.view-tabs button {
  min-height: 40px;
  border: 1px solid #ddd8f2;
  border-radius: 8px;
  background: #fff;
  color: #5d5870;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
}

.view-tabs button.active {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

.screen {
  display: none;
}

.screen.active.workspace-grid {
  display: grid;
}

.screen.active.search-screen {
  display: block;
}

.screen.active.admin-dashboard {
  display: block;
}

.settings-panel.hidden {
  display: none;
}

.settings-hero {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) repeat(4, minmax(130px, 0.32fr));
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.settings-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--violet);
  color: #fff;
  font-weight: 900;
}

.settings-title h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.settings-hero article,
.request-summary-grid div {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.settings-hero article strong,
.request-summary-grid strong {
  font-size: 22px;
}

.settings-hero article span,
.request-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  margin-bottom: 14px;
}

.settings-grid.two {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
}

.settings-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 31, 56, 0.06);
}

.settings-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
}

.settings-table th,
.settings-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.settings-table th {
  color: #4d5567;
  background: #f8fafc;
  font-size: 12px;
}

.settings-table th:nth-child(1),
.settings-table td:nth-child(1) {
  width: 140px;
}

.settings-table th:nth-child(2),
.settings-table td:nth-child(2) {
  width: 180px;
}

.settings-table th:nth-child(3),
.settings-table td:nth-child(3) {
  width: 160px;
}

.settings-table th:nth-child(4),
.settings-table td:nth-child(4) {
  width: 170px;
}

.settings-table th:nth-child(5),
.settings-table td:nth-child(5) {
  width: 190px;
}

.settings-table th:nth-child(6),
.settings-table td:nth-child(6) {
  width: 120px;
}

.settings-table th:nth-child(7),
.settings-table td:nth-child(7) {
  width: 150px;
}

.role-select {
  width: 100%;
  max-width: 150px;
  min-height: 36px;
  border: 1px solid #d7ddec;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.password-edit {
  width: 100%;
  max-width: 170px;
  min-height: 36px;
  border: 1px solid #d7ddec;
  border-radius: 8px;
  padding: 0 10px;
}

.settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
}

.settings-status.active,
.settings-status.approved {
  background: #dcfce7;
  color: #15803d;
}

.settings-status.pending {
  background: #fff7ed;
  color: #c2410c;
}

.settings-status.rejected {
  background: #fee2e2;
  color: #be123c;
}

.approval-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.approval-card ol {
  counter-reset: approval-step;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.approval-card li {
  counter-increment: approval-step;
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

.approval-card li::before {
  content: counter(approval-step);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #efe9ff;
  color: #7458da;
  font-weight: 900;
}

.approval-card li:nth-child(3)::before {
  background: #dcfce7;
  color: #0f9f6e;
}

.approval-card li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 8px;
  top: 26px;
  color: #6e6a80;
  font-size: 20px;
  line-height: 1;
}

.approval-card li strong,
.approval-card li span {
  display: block;
  grid-column: 2;
}

.approval-card li span {
  color: var(--muted);
  font-size: 12px;
}

.request-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-request-list {
  display: grid;
  gap: 10px;
}

.settings-request-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
}

.request-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf2ff;
  color: #086ad8;
  font-weight: 900;
}

.settings-request-row strong,
.settings-request-row small {
  display: block;
}

.settings-request-row small {
  color: var(--muted);
  line-height: 1.35;
}

#settingsPanel.limited-settings > .settings-grid:first-of-type {
  display: grid !important;
}

body.role-limited-admin #settingsPanel.limited-settings > .settings-grid:first-of-type {
  display: grid !important;
}

#settingsPanel.limited-settings .settings-hero article,
body.role-limited-admin #settingsPanel.limited-settings .settings-hero article {
  display: flex !important;
}

.settings-muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.settings-notification-card {
  margin-top: 14px;
}

.settings-notification-list {
  display: grid;
  gap: 10px;
}

.settings-notification-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
}

.settings-notification-row strong,
.settings-notification-row small {
  display: block;
}

.settings-notification-row small {
  color: var(--muted);
  line-height: 1.35;
}

.row-action.danger {
  color: var(--red);
  border-color: #ffd0dc;
  background: #fff;
}

.access-dialog-card {
  width: min(720px, calc(100vw - 28px));
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard {
  margin-top: 24px;
  min-height: 720px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}

.admin-sidebar {
  margin-bottom: 18px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 0 14px 0 4px;
  margin: 0 6px 0 0;
  border-right: 1px solid var(--line);
}

.admin-logo span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef4ff;
  color: #086ad8;
  font-weight: 900;
}

.admin-logo strong {
  color: var(--ink);
  font-size: 16px;
}

.admin-menu {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #4d5567;
  text-align: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
}

.admin-menu.active,
.admin-menu:hover {
  background: #086ad8;
  border-color: #086ad8;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(8, 106, 216, 0.18);
}

.admin-content {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.admin-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-topline h2 {
  margin: 0;
  font-size: 24px;
}

.admin-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-filter-row select {
  width: 180px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.admin-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(24, 31, 56, 0.06);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.highlight-grid div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid #dff5ef;
  border-radius: 10px;
  background: #effdf8;
}

.highlight-grid span,
.health-box span {
  display: block;
  color: #646075;
  font-size: 13px;
  font-weight: 800;
}

.highlight-grid strong,
.health-box strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.vendor-list {
  display: grid;
  gap: 10px;
}

.vendor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #f6f7fb;
}

.vendor-row strong {
  color: var(--violet);
}

.asset-health-grid {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.health-box {
  min-height: 166px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 31, 56, 0.06);
  position: relative;
  overflow: hidden;
}

.health-box > *:not(.sparkline) {
  position: relative;
  z-index: 1;
}

.metric-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #eaf2ff;
  color: #086ad8;
  font-size: 12px;
  font-weight: 900;
}

.health-box.working .metric-icon {
  background: #dcfce7;
  color: #16a34a;
}

.health-box.damaged .metric-icon {
  background: #ffedd5;
  color: #f97316;
}

.health-box.expired .metric-icon {
  background: #f3e8ff;
  color: #8b5cf6;
}

.health-box small b {
  color: #16a34a;
}

.health-box small {
  display: block;
  max-width: calc(100% - 10px);
  margin-top: 2px;
  line-height: 1.25;
  color: #4f5565;
}

.health-box.damaged small b {
  color: #ef4444;
}

.sparkline {
  position: absolute;
  right: 14px;
  bottom: 10px;
  left: 14px;
  height: 24px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  opacity: .45;
  z-index: 0;
  pointer-events: none;
}

.sparkline i {
  flex: 1;
  display: block;
  height: 30%;
  border-radius: 999px 999px 0 0;
  background: #86b7ff;
}

.sparkline i:nth-child(2) { height: 42%; }
.sparkline i:nth-child(3) { height: 34%; }
.sparkline i:nth-child(4) { height: 58%; }
.sparkline i:nth-child(5) { height: 70%; }
.sparkline i:nth-child(6) { height: 88%; }
.sparkline.green i { background: #86efac; }
.sparkline.orange i { background: #fdba74; }
.sparkline.violet i { background: #c4b5fd; }

.health-box.total {
  background: #eef4ff;
  border-color: #cfdefc;
}

.health-box.working {
  background: #eafbf4;
  border-color: #c8f1df;
}

.health-box.damaged {
  background: #fff0f3;
  border-color: #f6cad5;
}

.health-box.warranty {
  background: #effdf8;
  border-color: #d2f5e7;
}

.health-box.expired {
  background: #effdf8;
  border-color: #d2f5e7;
}

.health-box.missing {
  background: #f4f0ff;
  border-color: #ded5ff;
}

.admin-table-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-work-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr);
  gap: 18px;
}

.chart-card {
  min-height: 320px;
}

.location-card {
  grid-column: span 2;
}

.donut-report {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 220px;
  overflow: hidden;
}

.donut-chart {
  width: 150px;
  height: 150px;
  max-width: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef1f7;
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut-chart span {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.donut-chart small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.donut-legend {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.legend-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  min-width: 0;
}

.legend-row i {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
}

.legend-row strong {
  color: var(--muted);
  white-space: nowrap;
}

.legend-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.location-bars {
  min-height: 300px;
}

.location-line-chart {
  min-height: 300px;
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  gap: 10px;
}

.location-line-chart svg {
  width: 100%;
  min-height: 230px;
  border: 1px solid #e4ebf5;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(8, 106, 216, .04), rgba(255, 255, 255, 0)),
    #ffffff;
}

.location-line-chart line {
  stroke: #e6edf7;
  stroke-width: 1;
}

.location-line-chart polyline {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location-line-chart circle {
  stroke: #fff;
  stroke-width: 2;
}

.location-line-chart .axis-label {
  fill: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.location-line-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.location-line-legend div {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  background: #f8fbff;
}

.location-line-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.location-line-legend span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.location-line-legend strong {
  color: #086ad8;
}

.location-chart {
  min-height: 300px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 4px 0;
}

.location-chart-row {
  display: grid;
  grid-template-columns: 34px minmax(120px, .9fr) minmax(160px, 1.5fr) 64px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e4ebf5;
  border-radius: 12px;
  background: #f8fbff;
}

.location-chart-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #086ad8;
  color: #fff;
  font-weight: 900;
}

.location-chart-info {
  min-width: 0;
}

.location-chart-info strong,
.location-chart-info span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.location-chart-info strong {
  color: #101828;
}

.location-chart-info span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.location-chart-bar {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eef9;
}

.location-chart-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #086ad8, #4fa3ff);
}

.location-chart-count {
  text-align: right;
}

.location-chart-count strong,
.location-chart-count span {
  display: block;
}

.location-chart-count strong {
  color: #101828;
}

.location-chart-count span {
  color: var(--muted);
  font-size: 12px;
}

.location-chart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef6ff;
  color: #475569;
  font-weight: 850;
}

.utilization-card,
.activity-card {
  min-height: 360px;
}

.activity-card.activity-full-card {
  margin-top: 18px;
  min-height: 170px;
}

.activity-full-card .activity-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.maintenance-card,
.distribution-card {
  min-height: 300px;
}

.dashboard-work-grid > .table-card {
  min-height: 320px;
}

.utilization-wrap {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding-top: 10px;
}

.utilization-gauge {
  --utilization: 0%;
  width: 172px;
  height: 172px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#086ad8 var(--utilization), #e5e7eb 0);
  position: relative;
}

.utilization-gauge {
  grid-template-rows: 1fr;
}

.utilization-gauge::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: #fff;
}

.utilization-gauge span,
.utilization-gauge small {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.utilization-gauge span {
  font-size: 34px;
  font-weight: 900;
  transform: translateY(-8px);
}

.utilization-gauge small {
  color: var(--muted);
  font-weight: 800;
  transform: translateY(30px);
}

.utilization-legend,
.activity-list,
.maintenance-list {
  width: 100%;
  display: grid;
  gap: 10px;
}

.activity-row,
.maintenance-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f8fc;
}

.maintenance-line {
  justify-content: space-between;
}

.activity-row span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: #086ad8;
  font-size: 11px;
  font-weight: 900;
}

.activity-row div {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.activity-row strong,
.activity-row small {
  display: block;
}

.activity-row small {
  color: var(--muted);
}

.maintenance-overview {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  overflow: hidden;
}

.maintenance-ring {
  --maintenance: 0%;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#ef4444 var(--maintenance), #f59e0b 0 65%, #086ad8 0);
  position: relative;
}

.maintenance-ring::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #fff;
}

.maintenance-ring span,
.maintenance-ring small {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.maintenance-ring span {
  font-size: 30px;
  font-weight: 900;
  transform: translateY(-8px);
}

.maintenance-ring small {
  color: var(--muted);
  font-weight: 800;
  transform: translateY(28px);
}

.maintenance-line.red strong { color: #ef4444; }
.maintenance-line.orange strong { color: #f59e0b; }
.maintenance-line.blue strong { color: #086ad8; }

.distribution-chart {
  min-height: 210px;
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 24px 18px 18px;
  border-top: 1px solid var(--line);
}

.distribution-point {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.distribution-point span {
  width: 100%;
  max-width: 32px;
  display: block;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #086ad8, #56b3ff);
}

.distribution-point small {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.bottom-metric {
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.bottom-metric span,
.bottom-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bottom-metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 24px;
}

.mini-table,
.mini-wide-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.mini-table th,
.mini-table td,
.mini-wide-table th,
.mini-wide-table td {
  font-size: 12px;
  padding: 10px;
}

.mini-table-wrap {
  overflow: auto;
}

.dashboard-panel.hidden,
.vendor-details-panel.hidden,
.reports-panel.hidden {
  display: none;
}

.vendor-details-card {
  margin-top: 0;
}

.vendor-details-table {
  min-width: 980px;
  table-layout: fixed;
}

.vendor-details-table th,
.vendor-details-table td {
  font-size: 13px;
  vertical-align: top;
}

.vendor-details-table th:nth-child(1),
.vendor-details-table td:nth-child(1) {
  width: 17%;
}

.vendor-details-table th:nth-child(2),
.vendor-details-table td:nth-child(2) {
  width: 16%;
}

.vendor-details-table th:nth-child(3),
.vendor-details-table td:nth-child(3) {
  width: 13%;
}

.vendor-details-table th:nth-child(4),
.vendor-details-table td:nth-child(4) {
  width: 6%;
  text-align: center;
}

.vendor-stack {
  display: grid;
  gap: 5px;
}

.vendor-stack span {
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.vendor-stack b {
  color: #667085;
  font-weight: 850;
}

.reports-heading {
  margin-bottom: 18px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.report-card {
  min-height: 280px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(24, 31, 56, 0.06);
}

.chart-list {
  display: grid;
  gap: 12px;
}

.chart-row {
  display: grid;
  gap: 7px;
}

.chart-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
}

.chart-label span {
  overflow-wrap: anywhere;
}

.chart-label strong {
  color: var(--violet);
}

.chart-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f7;
}

.chart-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #086ad8;
}

.report-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-metric {
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8fb;
}

.report-metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.report-metric strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.report-metric.total {
  background: #eef4ff;
  border-color: #cfdefc;
}

.report-metric.working {
  background: #eafbf4;
  border-color: #c8f1df;
}

.report-metric.damaged {
  background: #fff0f3;
  border-color: #f6cad5;
}

.report-metric.missing {
  background: #f4f0ff;
  border-color: #ded5ff;
}

.empty-note {
  margin: 0;
  color: var(--muted);
}

.search-screen {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.search-filter-panel {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.side-panel,
.main-panel {
  padding: 20px;
}

.side-panel {
  position: sticky;
  top: 18px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.panel-heading h2 {
  font-size: 22px;
}

.panel-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #4d495c;
  font-size: 13px;
  font-weight: 750;
}

.field.required span::after {
  content: " *";
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dcd9e8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(116, 88, 218, 0.13);
}

.transfer-field:has(:disabled) {
  opacity: 0.62;
}

.transfer-field input:disabled,
.disabled-field input:disabled,
.disabled-field select:disabled {
  background: #f4f5f8;
  cursor: not-allowed;
}

.disabled-field {
  opacity: 0.62;
}

.side-panel .field + .field {
  margin-top: 14px;
}

.branch-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  padding: 2px 4px 2px 0;
}

.branch-item {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #28243a;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
}

.branch-select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.branch-item strong,
.branch-item small {
  display: block;
}

.branch-item strong {
  font-size: 14px;
}

.branch-item small {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.branch-item.active {
  border-color: var(--violet);
  background: var(--violet-soft);
  color: var(--violet);
}

.branch-count {
  min-width: 26px;
  min-height: 24px;
  border-radius: 999px;
  background: #f0eef7;
  color: #615c74;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.branch-delete {
  min-height: 26px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #fff5f6;
  color: #e11d48;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.branch-delete:hover {
  background: #ffe4e8;
}

.branch-search-field {
  margin-top: 14px;
}

.branch-list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.branch-list-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.branch-list-toggle {
  min-height: 32px;
  border: 1px solid #cfe0fb;
  border-radius: 8px;
  background: #eef6ff;
  color: var(--blue);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.branch-list-toggle:hover {
  background: #ddecff;
}

.branch-list.is-hidden {
  display: none !important;
}

.branch-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.main-panel {
  min-width: 0;
}

.toolbar {
  justify-content: flex-end;
}

.search-box {
  width: min(430px, 100%);
  min-height: 38px;
  border: 1px solid #dcd9e8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
}

.search-box input {
  min-height: 34px;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.toolbar select {
  width: 170px;
}

.asset-form {
  margin-top: 18px;
  padding: 20px;
}

.form-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.form-title h3 {
  font-size: 20px;
}

.form-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.excel-import-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.excel-import-panel strong,
.excel-import-panel span {
  display: block;
}

.excel-import-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.excel-upload-button {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cfe0fb;
  border-radius: 10px;
  background: #086ad8;
  color: #fff;
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
}

.excel-upload-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.remarks-field {
  grid-column: span 2;
}

.form-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.table-card {
  margin-top: 18px;
  overflow: hidden;
}


.table-meta {
  min-height: 56px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.table-meta span {
  color: var(--muted);
}

.table-scroll {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 4200px;
  border-collapse: collapse;
  table-layout: fixed;
}

.verification-table {
  min-width: 2100px;
}

th,
td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #086ad8;
  color: #ffffff;
  font-weight: 850;
  white-space: nowrap;
}

td {
  background: #fff;
  color: #242132;
}

.empty-state td {
  height: 150px;
  color: var(--muted);
  text-align: center;
  vertical-align: middle;
  font-size: 16px;
}

.table-card-empty thead {
  display: none;
}

.table-card-empty table {
  min-width: 100% !important;
}

.table-card-empty .table-scroll {
  overflow-x: hidden;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-verified {
  background: #defaf1;
  color: var(--green);
}

.status-pending {
  background: #fff6df;
  color: var(--amber);
}

.status-repair {
  background: #fff0f3;
  color: var(--red);
}

.status-disposed {
  background: #eceaf1;
  color: #595569;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-action {
  min-height: 30px;
  padding: 0 10px;
  background: #fff;
  color: var(--violet);
  border-color: #d9d3f2;
  font-size: 12px;
}

.row-action.danger {
  color: var(--red);
  border-color: #f2c9d3;
}

.photo-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.photo-link {
  max-width: 130px;
  min-height: 30px;
  border: 1px solid #d9d3f2;
  border-radius: 7px;
  background: #fff;
  color: var(--violet);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.barcode-box {
  width: 150px;
  display: grid;
  gap: 4px;
  justify-items: center;
  background: #fff;
}

.barcode-box svg {
  width: 138px;
  height: 44px;
  display: block;
  fill: #111;
}

.barcode-box small {
  color: #5e596f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.asset-table-label {
  width: 118px;
  min-height: 70px;
  display: grid;
  gap: 3px;
  padding: 5px;
  border: 1px solid #111827;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  text-align: left;
}

.asset-table-label .label-brand {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
}

.asset-table-label .label-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f37021;
  color: #ffffff;
  font-size: 6px;
  font-weight: 900;
}

.asset-table-label .label-mark.image-mark {
  border-radius: 50%;
  background: #ffffff;
  color: inherit;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.asset-table-label .label-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.asset-table-label .label-brand strong {
  display: block;
  color: #242148;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-table-label .label-brand span {
  display: block;
  color: #a44d8f;
  font-size: 7px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-label-barcode svg {
  width: 100%;
  height: 24px;
  display: block;
  fill: #000000;
  background: #ffffff;
}

.table-label-id {
  min-height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid #111827;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.label-preview-card {
  width: min(320px, 82vw);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px solid #111827;
  background: #ffffff;
}

.label-preview-card .label-brand {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.label-preview-card .label-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f37021;
  color: #ffffff;
  font-weight: 900;
}

.label-preview-card .label-mark.image-mark {
  border-radius: 50%;
  background: #ffffff;
  color: inherit;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.label-preview-card .label-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.label-preview-card .label-brand strong {
  display: block;
  color: #242148;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.label-preview-card .label-brand span {
  color: #a44d8f;
  font-size: 17px;
  font-weight: 800;
}

.label-preview-barcode svg {
  width: 100%;
  height: 54px;
  display: block;
  fill: #000000;
}

.label-preview-id {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid #111827;
  font-size: 16px;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #211d46;
  color: #fff;
  box-shadow: 0 18px 42px rgba(36, 31, 68, 0.22);
  font-weight: 700;
  font-size: 14px;
}

.toast.error {
  background: #9e2445;
}

dialog {
  width: min(760px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(20, 16, 42, 0.42);
}

.dialog-card {
  padding: 22px;
}

.dialog-card .field {
  margin-top: 14px;
}

.photo-dialog-card {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.photo-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.photo-dialog-body {
  display: grid;
  gap: 12px;
}

.photo-preview-large {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #f7f7fb;
}

.photo-missing {
  color: var(--red);
  font-weight: 800;
}

.photo-upload-box {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px dashed #bdb6e4;
  border-radius: 10px;
  background: #faf9ff;
}

.photo-upload-box span {
  color: var(--violet);
  font-weight: 850;
}

.verification-table select,
.verification-table input,
.verification-table textarea {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
}

.verification-table textarea {
  min-width: 180px;
}

.verification-filters {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1300px) {
  .hero-panel,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .asset-health-grid,
  .admin-grid,
  .dashboard-overview-grid,
  .dashboard-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donut-report {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .search-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    position: static;
  }

  .branch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .settings-hero,
  .settings-grid,
  .settings-grid.two,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .settings-request-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .settings-request-row .settings-status,
  .settings-request-row .row-action {
    justify-self: start;
  }

  .topbar,
  .panel-heading,
  .form-title {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding: 16px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .page-shell {
    padding: 16px;
  }

  .hero-panel,
  .side-panel,
  .main-panel,
  .asset-form {
    padding: 16px;
  }

  .hero-copy h2 {
    font-size: 24px;
  }

  .summary-grid,
  .asset-health-grid,
  .admin-grid,
  .dashboard-overview-grid,
  .dashboard-work-grid,
  .dashboard-bottom-grid,
  .branch-list,
  .form-grid,
  .search-filter-panel {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    align-items: stretch;
  }

  .admin-logo {
    min-width: max-content;
  }

  .location-bars {
    overflow-x: auto;
  }

  .report-grid,
  .report-metric-grid {
    grid-template-columns: 1fr;
  }

  .remarks-field {
    grid-column: auto;
  }

  .toolbar,
  .topbar-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar select,
  .search-box,
  .primary-button,
  .ghost-button {
    width: 100%;
  }
}

/* Final typography scale */
.topbar,
.page-shell,
.login-card {
  font-size: 14px;
}

.field span,
.eyebrow,
.welcome {
  font-size: 12px;
}

.details-text,
.panel-heading p,
.form-title p,
.table-meta span,
.admin-card p {
  font-size: 14px;
}

.metric-card strong,
.highlight-grid strong,
.health-box strong {
  font-size: 28px;
}

.asset-form h3,
.panel-heading h2,
.dialog-card h2 {
  font-size: 20px;
}

.hero-copy h2,
.admin-topline h2 {
  font-size: 20px;
}

h1,
h2,
h3,
.topbar h1,
.hero-copy h2,
.panel-heading h2,
.asset-form h3,
.dialog-card h2,
.admin-topline h2,
.login-card h1 {
  font-size: 20px !important;
  line-height: 1.3;
}

.metric-card strong,
.highlight-grid strong,
.health-box strong {
  font-size: 20px !important;
  line-height: 1.2;
}

/* Maximum font and verification table corrections */
body,
body * {
  font-size: min(20px, 1em);
}

.topbar h1,
.hero-copy h2,
.admin-topline h2,
.metric-card strong,
.highlight-grid strong,
.health-box strong,
.asset-form h3,
.panel-heading h2,
.dialog-card h2,
.login-card h1 {
  font-size: 20px !important;
}

.verification-table {
  width: 3300px !important;
  min-width: 3300px;
  max-width: none;
  table-layout: fixed;
  overflow-anchor: none;
}

.verification-table th,
.verification-table td {
  padding: 8px;
  font-size: 13px !important;
  overflow: hidden;
  box-sizing: border-box;
}

.verification-table th:nth-child(1),
.verification-table td:nth-child(1) {
  width: 130px;
}

.verification-table th:nth-child(2),
.verification-table td:nth-child(2) {
  width: 180px;
}

.verification-table th:nth-child(3),
.verification-table td:nth-child(3) {
  width: 130px;
}

.verification-table th:nth-child(4),
.verification-table td:nth-child(4),
.verification-table th:nth-child(5),
.verification-table td:nth-child(5),
.verification-table th:nth-child(8),
.verification-table td:nth-child(8) {
  width: 130px;
}

.verification-table th:nth-child(6),
.verification-table td:nth-child(6),
.verification-table th:nth-child(7),
.verification-table td:nth-child(7) {
  width: 140px;
}

.verification-table th:nth-child(9),
.verification-table td:nth-child(9),
.verification-table th:nth-child(10),
.verification-table td:nth-child(10),
.verification-table th:nth-child(11),
.verification-table td:nth-child(11),
.verification-table th:nth-child(12),
.verification-table td:nth-child(12),
.verification-table th:nth-child(13),
.verification-table td:nth-child(13),
.verification-table th:nth-child(14),
.verification-table td:nth-child(14),
.verification-table th:nth-child(15),
.verification-table td:nth-child(15),
.verification-table th:nth-child(16),
.verification-table td:nth-child(16),
.verification-table th:nth-child(17),
.verification-table td:nth-child(17),
.verification-table th:nth-child(18),
.verification-table td:nth-child(18),
.verification-table th:nth-child(19),
.verification-table td:nth-child(19),
.verification-table th:nth-child(20),
.verification-table td:nth-child(20),
.verification-table th:nth-child(21),
.verification-table td:nth-child(21) {
  width: 150px;
}

.verification-table th:nth-child(16),
.verification-table td:nth-child(16),
.verification-table th:nth-child(17),
.verification-table td:nth-child(17),
.verification-table th:nth-child(18),
.verification-table td:nth-child(18) {
  width: 165px;
}

.verification-table th:nth-child(21),
.verification-table td:nth-child(21) {
  width: 210px;
}

.verification-table th:nth-child(22),
.verification-table td:nth-child(22) {
  width: 90px;
}

.verification-table .barcode-box {
  width: 150px;
  max-width: 150px;
}

.verification-table .barcode-box svg {
  width: 140px;
  height: 34px;
}

.verification-table .barcode-box small {
  display: block;
  max-width: 120px;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 10px !important;
}

.verification-table select,
.verification-table input,
.verification-table textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 13px !important;
  box-sizing: border-box;
  transition: none;
}

.verification-table textarea {
  min-width: 0;
  height: 48px;
  resize: none;
}

.verification-table select:focus,
.verification-table input:focus,
.verification-table textarea:focus {
  box-shadow: none;
}

.damage-upload {
  display: grid;
  gap: 6px;
}

.damage-upload.hidden {
  display: none;
}

.damage-upload small {
  color: var(--muted);
  font-size: 11px !important;
  overflow-wrap: anywhere;
}

.column-dialog-card {
  width: min(720px, calc(100vw - 32px));
}

#labelDialog .column-dialog-card {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.label-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.label-filter-grid .field {
  margin-top: 0;
}

.label-results {
  margin-top: 16px;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.label-results-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e6ebf2;
  background: #f8fbff;
}

.label-results-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.label-result-list {
  max-height: 240px;
  overflow: auto;
}

.label-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f7;
}

.label-result-row strong,
.label-result-row span,
.label-result-row small {
  overflow-wrap: anywhere;
}

.label-result-row strong {
  color: #101828;
}

.label-result-row span {
  color: #086ad8;
  font-weight: 850;
}

.label-result-row small {
  grid-column: 1 / -1;
  color: #667085;
}

.label-result-empty,
.label-result-more {
  margin: 0;
  padding: 14px;
  color: #667085;
}

.dialog-note {
  margin: 0 0 14px;
  color: var(--muted);
}

.column-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding: 4px;
}

.column-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

/* Consistent header controls */
.topbar-actions {
  gap: 10px;
  align-items: center;
}

.topbar-actions .user-pill,
.topbar-actions .primary-button,
.topbar-actions .ghost-button {
  height: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.topbar-actions .user-pill {
  min-width: 124px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}

.topbar-actions .ghost-button {
  min-width: 96px;
  color: var(--violet);
  background: #ffffff;
  border-color: #dcd8f5;
}

#downloadLabelsBtn {
  background: #086ad8;
  border-color: #086ad8;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(8, 106, 216, 0.22);
}

.topbar-actions .primary-button {
  min-width: 96px;
  background: var(--violet);
  color: #ffffff;
  border-color: var(--violet);
}

@media (max-width: 900px) {
  .topbar-actions .user-pill,
  .topbar-actions .primary-button,
  .topbar-actions .ghost-button {
    width: 100%;
  }
}

.column-option input {
  width: auto;
}

@media (max-width: 720px) {
  .column-list {
    grid-template-columns: 1fr;
  }
}

/* Unified app UI refresh */
body {
  background: #f6f8fb;
  color: #101828;
}

.topbar {
  min-height: 70px;
  background: #ffffff;
  color: #101828;
  border-bottom: 1px solid #e6ebf2;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.topbar .eyebrow {
  color: #086ad8;
}

.topbar h1 {
  color: #101828;
}

.topbar-actions .user-pill {
  color: #101828;
  background: #f8fbff;
  border-color: #d8e5f8;
}

.page-shell {
  padding: 24px;
}

.view-tabs {
  display: none;
}

.view-tabs button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #465166;
  white-space: nowrap;
}

.view-tabs button.active {
  background: #086ad8;
  border-color: #086ad8;
  color: #ffffff;
  box-shadow: none;
}

.screen.active.workspace-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.screen.active#transferScreen {
  display: block;
}

.transfer-screen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.transfer-screen-layout .asset-preview-panel {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.transfer-table td small,
.transfer-history-item small,
.transfer-history-item p {
  display: block;
  margin-top: 4px;
  color: #667085;
}

.transfer-history-actions {
  margin: 14px 0;
}

.transfer-history-list {
  display: grid;
  gap: 12px;
}

.transfer-history-item {
  padding: 12px 0 12px 14px;
  border-left: 3px solid #086ad8;
  border-bottom: 1px solid #e6ebf2;
}

.transfer-history-item:last-child {
  border-bottom: 0;
}

.transfer-history-item span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.transfer-history-item a {
  display: inline-block;
  margin-top: 8px;
  color: #086ad8;
  font-weight: 700;
}

.table-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #e6ebf2;
  color: #667085;
  font-size: 13px;
}

.table-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.transfer-dialog-card {
  width: min(820px, calc(100vw - 32px));
}

.compact-span {
  grid-column: 1 / -1;
}

body.role-verify #transfersViewBtn,
body.role-viewer #transfersViewBtn {
  display: none;
}

.preview-transfer-action {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #d8e4fb;
  border-radius: 8px;
  background: #f7faff;
}

.preview-transfer-action .primary-button {
  width: 100%;
}

.preview-transfer-action span {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.transfer-dialog-history {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  margin: 4px 0 16px;
  padding: 0 2px;
}

.transfer-dialog-history:empty {
  display: none;
}

.transfer-route-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 2px 0 16px;
  padding: 14px;
  border: 1px solid #cfe0fb;
  border-radius: 8px;
  background: #f7faff;
}

.transfer-route-preview div {
  min-width: 0;
}

.transfer-route-preview span {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.transfer-route-preview strong {
  display: block;
  overflow: hidden;
  color: #1b2a4a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-route-preview b {
  color: #086ad8;
  font-size: 22px;
}

@media (max-width: 900px) {
  .transfer-screen-layout {
    grid-template-columns: 1fr;
  }

  .transfer-screen-layout .asset-preview-panel {
    position: static;
    max-height: none;
  }

  .transfer-route-preview {
    grid-template-columns: 1fr;
  }

  .transfer-route-preview b {
    display: none;
  }
}

@media (max-width: 600px) {
  .table-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

.workspace-grid {
  margin-top: 0;
  gap: 16px;
}

.side-panel {
  position: static;
  display: grid;
  grid-template-columns: auto repeat(4, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}

.side-panel .panel-heading {
  margin-bottom: 0;
  align-self: center;
}

.side-panel .field + .field {
  margin-top: 0;
}

.branch-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  max-height: 300px;
  overflow: auto;
  padding: 2px 4px 2px 0;
}

.branch-item {
  min-width: 0;
  border-radius: 12px;
}

.branch-search-field,
.branch-list-meta {
  grid-column: auto;
}

.branch-list-meta {
  align-self: end;
}

.side-panel,
.main-panel,
.search-screen,
.asset-form,
.table-card,
.admin-card,
.report-card,
.health-box,
.dialog-card {
  border-color: #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.main-panel,
.search-screen {
  padding: 22px;
}

.asset-form {
  padding: 22px;
  background: #ffffff;
}

.form-grid {
  gap: 16px;
}

.field span {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea,
.search-box {
  min-height: 42px;
  border-color: #d7dfeb;
  border-radius: 10px;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #086ad8;
  box-shadow: 0 0 0 3px rgba(8, 106, 216, 0.12);
}

.primary-button {
  background: #086ad8;
  border-color: #086ad8;
  box-shadow: 0 10px 22px rgba(8, 106, 216, 0.18);
}

.ghost-button,
.icon-text-button,
.row-action {
  border-color: #d7dfeb;
  color: #086ad8;
}

.search-filter-panel,
.verification-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
}

.table-card {
  background: #ffffff;
}

.table-meta {
  min-height: 62px;
  padding: 16px 18px;
  background: #ffffff;
}

th {
  background: #086ad8;
  color: #ffffff;
}

td {
  color: #1f2937;
}

.admin-sidebar {
  position: sticky;
  top: 10px;
  z-index: 5;
}

.admin-sidebar[data-global-menu="true"] {
  margin-top: 0;
}

.admin-dashboard {
  margin-top: 0;
}

.admin-content {
  display: grid;
  gap: 18px;
}

.admin-topline {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.admin-grid,
.report-grid {
  gap: 18px;
}

.report-card,
.admin-card {
  background: #ffffff;
}

.chart-track span {
  background: #086ad8;
}

.login-screen {
  background:
    radial-gradient(circle at top left, rgba(8, 106, 216, 0.12), transparent 32%),
    #f6f8fb;
}

.login-card {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.admin-content,
.admin-card,
.table-card,
.health-box,
.bottom-metric {
  min-width: 0;
}

.screen.active.admin-dashboard {
  overflow-x: clip;
}

.dashboard-overview-grid,
.dashboard-work-grid,
.asset-health-grid,
.dashboard-bottom-grid {
  align-items: stretch;
}

.dashboard-overview-grid > *,
.dashboard-work-grid > *,
.asset-health-grid > *,
.dashboard-bottom-grid > * {
  min-width: 0;
}

.donut-report,
.maintenance-overview,
.utilization-wrap {
  contain: layout;
}

.location-bars,
.distribution-chart {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

.distribution-point {
  flex: 0 0 72px;
}

@media (max-width: 1380px) {
  .dashboard-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .utilization-card,
  .activity-card,
  .chart-card {
    min-height: 360px;
  }

  .donut-report {
    grid-template-columns: minmax(110px, 130px) minmax(0, 1fr);
    justify-items: stretch;
    align-content: start;
  }

  .donut-legend {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .dashboard-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-card {
    grid-column: span 2;
  }
}

.dashboard-work-grid .table-scroll {
  max-width: 100%;
}

.dashboard-work-grid .mini-wide-table {
  min-width: 760px;
}

@media (max-width: 1100px) {
  .asset-health-grid,
  .dashboard-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-overview-grid,
  .dashboard-work-grid,
  .admin-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .location-card {
    grid-column: span 1;
  }

  .location-chart-row {
    grid-template-columns: 34px minmax(0, 1fr) 54px;
  }

  .location-chart-bar {
    grid-column: 2 / -1;
  }

  .maintenance-overview {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .side-panel,
  .form-grid,
  .search-filter-panel,
  .verification-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 14px;
  }

  .side-panel,
  .form-grid,
  .search-filter-panel,
  .verification-filters,
  .asset-health-grid,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .excel-import-panel {
    grid-template-columns: 1fr;
  }

  .donut-report {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .donut-chart {
    width: 180px;
    height: 180px;
  }

  .donut-chart::after {
    inset: 44px;
  }

  .utilization-gauge,
  .maintenance-ring {
    width: 140px;
    height: 140px;
  }

  .utilization-gauge::after,
  .maintenance-ring::after {
    inset: 22px;
  }

  .utilization-gauge span {
    font-size: 28px;
  }

  .maintenance-ring span {
    font-size: 26px;
  }

  .dashboard-work-grid .mini-wide-table {
    min-width: 680px;
  }

  .admin-topline,
  .admin-filter-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-filter-row select {
    width: 100%;
  }

  .admin-sidebar {
    position: static;
  }

  .branch-list {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }
}

/* Asset management list/detail layout */
.main-panel,
#verificationScreen {
  position: relative;
}

#verificationScreen > .table-card {
  margin-right: 400px;
}

#verificationScreen > .verification-filters {
  margin-right: 400px;
}

.asset-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

#searchScreen.search-screen.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

#searchScreen > .panel-heading,
#searchScreen > .search-filter-panel {
  grid-column: 1 / -1;
}

#searchScreen > .table-card {
  min-width: 0;
}

.asset-list-layout.has-preview,
.asset-list-layout:has(#manageAssetPreview.active) {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.asset-list-layout > .table-card {
  margin-top: 0;
}

.asset-preview-panel {
  position: absolute;
  top: 94px;
  right: 22px;
  width: 320px;
  min-height: 520px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

#searchAssetPreview {
  position: sticky;
  top: 18px;
  right: auto;
  width: 360px;
  min-height: calc(100vh - 70px);
}

#verifyAssetPreview {
  width: 380px;
  min-height: calc(100vh - 70px);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.verification-history {
  margin-top: 12px;
}

.verify-side-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6ebf2;
}

.verify-side-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.verify-side-form input,
.verify-side-form select,
.verify-side-form textarea {
  width: 100%;
  border: 1px solid #d6ddec;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  background: #ffffff;
}

.verify-side-form textarea {
  resize: vertical;
}

.verify-side-form small {
  color: #667085;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.verify-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.verify-panel-save {
  width: 100%;
  justify-content: center;
}

#manageAssetPreview {
  display: none;
  position: static;
  width: auto;
  min-height: 520px;
  margin-top: 0;
}

#manageAssetPreview.active {
  display: block;
}

.asset-list-layout .table-meta span {
  display: none;
}

.asset-preview-panel h2 {
  margin: 0 34px 4px 0;
  font-size: 22px;
}

.preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f3f6fb;
  color: #667085;
  font-size: 20px;
}

.preview-muted {
  margin: 0 0 10px;
  color: #667085;
}

.preview-asset-photo,
.preview-photo-placeholder {
  width: 190px;
  height: 150px;
  margin: 22px auto;
  display: grid;
  place-items: center;
  object-fit: contain;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: #f8fbff;
  color: #086ad8;
  font-size: 36px;
  font-weight: 900;
}

.preview-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e6ebf2;
}

.preview-tabs span {
  padding: 0 0 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.preview-tabs span:first-child {
  color: #086ad8;
  border-bottom: 2px solid #086ad8;
}

.preview-detail-list {
  display: grid;
  gap: 8px;
}

.preview-detail-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.preview-detail-list span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.preview-detail-list strong {
  color: #101828;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.preview-field-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e6ebf2;
}

.preview-field-section h3 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: #101828;
  font-size: 14px;
}

.preview-field-section h3 small {
  color: #086ad8;
  font-size: 12px;
  font-weight: 900;
}

.preview-detail-list div.is-empty {
  opacity: .55;
}

.preview-detail-list div.has-value {
  padding: 5px 0;
}

.asset-list-row {
  cursor: pointer;
}

.asset-list-row:hover td {
  background: #f8fbff;
}

.asset-list-row td {
  vertical-align: middle;
  font-size: 13px;
}

.asset-list-row td:first-child {
  min-width: 210px;
}

.asset-list-row small {
  color: #667085;
}

.asset-name-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.asset-name-cell strong,
.asset-name-cell small {
  display: block;
}

.asset-row-thumb {
  width: 42px;
  height: 42px;
  border: 1px solid #e0e7f1;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
}

.asset-row-thumb.placeholder {
  display: grid;
  place-items: center;
  color: #086ad8;
  font-size: 12px;
  font-weight: 900;
}

.asset-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 900;
}

.asset-status-pill.in-use {
  background: #dcfaea;
  color: #067647;
}

.asset-status-pill.maintenance {
  background: #fff4e5;
  color: #b54708;
}

.asset-status-pill.retired {
  background: #eef1f7;
  color: #475467;
}

.pagination-row td {
  text-align: center;
  background: #f8fbff;
  padding: 16px;
}

.asset-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.asset-pagination > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.asset-pagination span,
.asset-pagination strong {
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.pagination-row .ghost-button {
  min-height: 36px;
  border-color: #cfe0fb;
  color: #086ad8;
  background: #ffffff;
}

.pagination-row .ghost-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.asset-list-layout > .table-card table,
.main-panel > .table-card table,
#searchScreen > .table-card table {
  min-width: 760px;
}

.asset-list-layout > .table-card table {
  table-layout: fixed;
}

.asset-list-layout > .table-card th,
.asset-list-layout > .table-card td,
.main-panel > .table-card th,
.main-panel > .table-card td,
#searchScreen > .table-card th,
#searchScreen > .table-card td {
  height: 58px;
}

@media (max-width: 1200px) {
  .main-panel > .table-card,
  #searchScreen > .table-card,
  #verificationScreen > .table-card,
  #verificationScreen > .verification-filters {
    margin-right: 0;
  }

  .asset-list-layout.has-preview,
  .asset-list-layout:has(#manageAssetPreview.active) {
    grid-template-columns: minmax(0, 1fr);
  }

  #searchScreen.search-screen.active {
    grid-template-columns: minmax(0, 1fr);
  }

  .asset-preview-panel {
    position: static;
    width: auto;
    min-height: 0;
    margin-top: 18px;
  }

  #searchAssetPreview {
    position: static;
    width: auto;
  }
}
