:root {
  --navy-950: #07111f;
  --navy-900: #0b1728;
  --navy-800: #12233a;
  --primary: #2563eb;
  --primary-soft: #eaf2ff;
  --ink: #172033;
  --muted: #667085;
  --line: #e5e9f0;
  --surface: #fff;
  --page: #f3f6fa;
  --radius: 14px;
  --sidebar: 260px;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}
.text-bg-purple {
  background-color: #7c3aed !important;
  color: #fff !important;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
}
body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.btn {
  font-weight: 650;
  border-radius: 9px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.form-control,
.form-select {
  border-color: #d7dde6;
  border-radius: 9px;
}
.form-control:focus,
.form-select:focus {
  border-color: #84aef7;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}
.app-sidebar {
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
  bottom: 0;
  color: #a9b5c7;
  display: flex;
  flex-direction: column;
  left: 0;
  position: fixed;
  top: 0;
  transition: transform 0.25s;
  width: var(--sidebar);
  z-index: 1040;
}
.sidebar-brand {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  gap: 12px;
  height: 76px;
  padding: 0 20px;
  text-decoration: none;
}
.sidebar-brand > span,
.brand-emblem {
  align-items: center;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  color: #fff;
  display: flex;
  font-size: 15px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.sidebar-brand strong {
  display: block;
  font-size: 15px;
}
.sidebar-brand small {
  color: #73849d;
  font-size: 10px;
}
.sidebar-nav {
  overflow-y: auto;
  padding: 14px 12px;
}
.sidebar-nav p {
  color: #5f718b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  margin: 15px 12px 6px;
  text-transform: uppercase;
}
.sidebar-nav a {
  align-items: center;
  border-radius: 9px;
  color: #a9b5c7;
  display: flex;
  font-size: 13px;
  gap: 12px;
  margin: 3px 0;
  padding: 10px 12px;
  text-decoration: none;
  transition: 0.18s;
}
.sidebar-nav a i {
  font-size: 14px;
  text-align: center;
  width: 18px;
}
.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.3), rgba(37, 99, 235, 0.07));
  box-shadow: inset 3px 0 #60a5fa;
  color: #fff;
}
.sidebar-version {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7e8da4;
  font-size: 10px;
  margin-top: auto;
  padding: 15px 22px;
}
.sidebar-version small {
  color: #586b85;
}
.app-main {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top-navbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  height: 76px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.sidebar-toggle {
  background: #f0f3f7;
  border: 0;
  border-radius: 9px;
  display: none;
  height: 40px;
  width: 40px;
}
.global-search {
  flex: 1;
  max-width: 470px;
  position: relative;
}
.global-search i {
  color: #98a2b3;
  left: 15px;
  position: absolute;
  top: 13px;
}
.global-search input {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 42px;
  outline: 0;
  padding: 0 15px 0 41px;
  width: 100%;
}
.global-search input:focus {
  border-color: #93b4f5;
  box-shadow: 0 0 0 3px #dbeafe;
}
.navbar-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-left: auto;
}
.navbar-icon {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 40px;
  position: relative;
  width: 40px;
}
.navbar-icon span {
  background: #ef4444;
  border: 1px solid #fff;
  border-radius: 50%;
  height: 7px;
  position: absolute;
  right: 7px;
  top: 6px;
  width: 7px;
}
.user-menu {
  align-items: center;
  display: flex;
  gap: 9px;
}
.user-avatar {
  align-items: center;
  background: linear-gradient(135deg, #60a5fa, #7c3aed);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 750;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.user-summary strong,
.user-summary small {
  display: block;
}
.user-summary strong {
  font-size: 12px;
}
.user-summary small {
  color: var(--muted);
  font-size: 10px;
}
.logout-link {
  color: #667085;
  padding: 8px;
}
.page-content {
  flex: 1;
  margin: 0 auto;
  max-width: 1640px;
  padding: 27px;
  width: 100%;
}
.app-footer {
  color: #8490a1;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  padding: 12px 28px 20px;
}
.page-heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.page-heading h1 {
  font-size: 25px;
  font-weight: 750;
  margin: 0 0 5px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
}
.page-actions {
  display: flex;
  gap: 9px;
}
.phase-notice {
  align-items: center;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  color: #1d4ed8;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 16px;
}
.phase-notice > i {
  font-size: 18px;
}
.phase-notice strong,
.phase-notice span {
  display: block;
}
.phase-notice span {
  color: #52709e;
  font-size: 11px;
  margin-top: 2px;
}
.stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  margin-bottom: 18px;
}
.metric-card {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding: 18px;
  position: relative;
}
.metric-card span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.metric-card strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  margin: 11px 0 5px;
}
.metric-card small {
  color: #8a94a3;
  font-size: 9px;
}
.metric-card > i {
  align-items: center;
  border-radius: 10px;
  display: flex;
  font-size: 16px;
  height: 35px;
  justify-content: center;
  width: 35px;
}
.metric-card.blue > i {
  background: #eaf2ff;
  color: #2563eb;
}
.metric-card.green > i {
  background: #e8f8ec;
  color: #16a34a;
}
.metric-card.cyan > i {
  background: #e6f9fc;
  color: #0891b2;
}
.metric-card.amber > i {
  background: #fff5dc;
  color: #d97706;
}
.metric-card.violet > i {
  background: #f1eafe;
  color: #7c3aed;
}
.metric-card.red > i {
  background: #feecec;
  color: #dc2626;
}
.dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 0.9fr;
}
.content-card {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.content-card-header {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 17px 20px;
}
.content-card-header h2 {
  font-size: 15px;
  margin: 0;
}
.content-card-header p {
  color: var(--muted);
  font-size: 10px;
  margin: 2px 0 0;
}
.setup-list,
.activity-list,
.check-list {
  padding: 6px 20px;
}
.setup-step,
.activity-item,
.check-row {
  align-items: center;
  border-bottom: 1px solid #eff2f5;
  display: flex;
  gap: 12px;
  padding: 14px 0;
}
.setup-step:last-child,
.activity-item:last-child,
.check-row:last-child {
  border: 0;
}
.setup-step > i {
  align-items: center;
  background: #edf1f6;
  border-radius: 50%;
  color: #64748b;
  display: flex;
  flex: 0 0 auto;
  font-size: 11px;
  height: 32px;
  justify-content: center;
  width: 32px;
}
.setup-step.complete > i {
  background: #dcfce7;
  color: #15803d;
}
.setup-step strong,
.setup-step span,
.activity-item strong,
.activity-item small,
.check-row strong,
.check-row small {
  display: block;
}
.setup-step strong,
.activity-item strong,
.check-row strong {
  font-size: 12px;
}
.setup-step span,
.activity-item small,
.check-row small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.activity-item > span {
  align-items: center;
  background: #eff6ff;
  border-radius: 50%;
  color: #2563eb;
  display: flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.icon-more {
  background: transparent;
  border: 0;
  color: #667085;
}
.empty-state {
  color: #98a2b3;
  padding: 50px 10px;
  text-align: center;
}
.empty-state i {
  font-size: 26px;
}
.empty-state p {
  font-size: 11px;
  margin: 9px 0;
}
.check-row > i {
  font-size: 17px;
}
.check-row > div {
  flex: 1;
}
.check-row > .badge {
  font-size: 9px;
}
.error-state {
  margin: 8vh auto;
  max-width: 620px;
  padding: 55px;
  text-align: center;
}
.error-icon {
  font-size: 42px;
  margin-bottom: 18px;
}
.error-code {
  color: #2563eb;
  font-size: 70px;
  font-weight: 850;
  line-height: 1;
}
.error-state h1 {
  font-size: 26px;
}
.error-state p {
  color: var(--muted);
  margin: 0 auto 22px;
  max-width: 430px;
}
.login-page {
  background: #fff;
}
.login-shell {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 100vh;
}
.login-brand-panel {
  align-items: center;
  background: linear-gradient(145deg, #06101e, #102641);
  color: #fff;
  display: flex;
  overflow: hidden;
  padding: 8vw;
  position: relative;
}
.login-brand-panel:before,
.login-brand-panel:after {
  border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: 50%;
  content: "";
  height: 500px;
  position: absolute;
  right: -200px;
  top: -180px;
  width: 500px;
}
.login-brand-panel:after {
  height: 330px;
  left: -150px;
  right: auto;
  top: auto;
  bottom: -190px;
  width: 330px;
}
.login-brand-content {
  max-width: 610px;
  position: relative;
  z-index: 1;
}
.login-brand-content .brand-emblem {
  height: 52px;
  margin-bottom: 34px;
  width: 52px;
}
.login-brand-content .eyebrow {
  color: #7aaeff;
}
.login-brand-content h1 {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 780;
  letter-spacing: -1.5px;
  line-height: 1.09;
  margin: 15px 0 20px;
}
.login-brand-content > p:not(.eyebrow) {
  color: #9eb0c8;
  font-size: 16px;
  max-width: 570px;
}
.login-feature-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: 1fr 1fr;
  margin-top: 38px;
}
.login-feature-grid span {
  color: #c6d1e1;
  font-size: 12px;
}
.login-feature-grid i {
  color: #60a5fa;
  margin-right: 9px;
}
.login-form-panel {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 45px;
}
.login-card {
  max-width: 430px;
  width: 100%;
}
.login-card h2 {
  font-size: 30px;
  font-weight: 780;
}
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap > i {
  color: #98a2b3;
  left: 15px;
  position: absolute;
  top: 16px;
  z-index: 2;
}
.input-icon-wrap .form-control {
  padding-left: 43px;
}
.password-toggle {
  background: none;
  border: 0;
  color: #667085;
  position: absolute;
  right: 12px;
  top: 11px;
}
.login-help {
  color: #98a2b3;
  font-size: 10px;
  margin: 25px 0 0;
  text-align: center;
}
.mobile-brand {
  align-items: center;
  display: none;
  font-weight: 750;
  margin-bottom: 35px;
}
.mobile-brand span {
  align-items: center;
  background: #2563eb;
  border-radius: 9px;
  color: #fff;
  display: flex;
  height: 34px;
  justify-content: center;
  margin-right: 9px;
  width: 34px;
}
.install-page {
  background: #f3f6fa;
}
.install-container {
  margin: 0 auto;
  max-width: 900px;
  padding: 55px 20px;
}
.install-container.narrow {
  max-width: 720px;
}
.install-header {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 25px;
}
.install-header .brand-emblem {
  flex: 0 0 auto;
  height: 50px;
  width: 50px;
}
.install-header h1 {
  font-size: 25px;
  margin: 0;
}
.install-header p:last-child {
  color: var(--muted);
  margin: 4px 0 0;
}
.install-actions {
  margin-top: 18px;
  text-align: right;
}
.sidebar-overlay {
  display: none;
}
@media (max-width: 1250px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 991px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.show {
    background: rgba(3, 10, 20, 0.48);
    display: block;
    inset: 0;
    position: fixed;
    z-index: 1035;
  }
  .app-main {
    margin-left: 0;
  }
  .sidebar-toggle {
    display: block;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    display: none;
  }
  .mobile-brand {
    display: flex;
  }
}
@media (max-width: 650px) {
  .page-content {
    padding: 18px 13px;
  }
  .top-navbar {
    padding: 0 13px;
  }
  .user-summary {
    display: none;
  }
  .global-search {
    max-width: none;
  }
  .page-heading {
    display: block;
  }
  .page-actions {
    margin-top: 15px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-card {
    padding: 14px;
  }
  .app-footer {
    display: block;
    padding: 12px 14px;
  }
  .app-footer span {
    display: block;
    margin-top: 4px;
  }
  .login-form-panel {
    padding: 28px 20px;
  }
  .install-container {
    padding: 30px 12px;
  }
  .install-header h1 {
    font-size: 20px;
  }
  .check-row {
    align-items: flex-start;
  }
  .check-row .badge {
    margin-left: auto;
  }
}

/* Phase 2 master-data modules */
.master-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
}
.master-module-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e7ebf1;
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: flex;
  gap: 14px;
  padding: 20px;
  text-decoration: none;
  transition: 0.18s;
}
.master-module-card:hover {
  border-color: #9bbcf7;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}
.master-module-card > span {
  align-items: center;
  background: #eaf2ff;
  border-radius: 11px;
  color: #2563eb;
  display: flex;
  flex: 0 0 auto;
  font-size: 18px;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.master-module-card > div {
  flex: 1;
}
.master-module-card strong {
  display: block;
  font-size: 14px;
}
.master-module-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  margin: 4px 0 0;
}
.master-module-card > i {
  color: #98a2b3;
  font-size: 11px;
}
.master-list-card {
  overflow: visible;
}
.filter-bar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  padding: 15px 18px;
}
.filter-bar .form-select {
  max-width: 190px;
}
.filter-bar .per-page {
  max-width: 110px;
}
.filter-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}
.filter-search i {
  color: #98a2b3;
  left: 13px;
  position: absolute;
  top: 12px;
}
.filter-search input {
  padding-left: 37px;
}
.bulk-toolbar {
  align-items: center;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
}
.bulk-toolbar > span {
  color: var(--muted);
  font-size: 10px;
}
.bulk-toolbar > div {
  display: flex;
  gap: 8px;
}
.bulk-toolbar .form-select {
  min-width: 145px;
}
.master-table {
  font-size: 12px;
}
.master-table thead th {
  background: #f7f9fc;
  border-bottom: 1px solid #dfe4ec;
  color: #667085;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.55px;
  padding: 11px 14px;
  text-transform: uppercase;
  white-space: nowrap;
}
.master-table tbody td {
  border-color: #edf0f4;
  padding: 12px 14px;
}
.master-table tbody tr:hover {
  background: #fbfdff;
}
.master-table strong,
.master-table small {
  display: block;
}
.master-table small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}
.check-column {
  width: 40px;
}
.actions-column {
  width: 85px;
}
.sort-link {
  color: #667085;
  text-decoration: none;
}
.sort-link i {
  font-size: 8px;
  margin-left: 4px;
}
.row-actions {
  display: flex;
  gap: 5px;
}
.row-actions a {
  align-items: center;
  background: #f4f6f9;
  border-radius: 7px;
  color: #475467;
  display: flex;
  height: 30px;
  justify-content: center;
  text-decoration: none;
  width: 30px;
}
.row-actions a:hover {
  background: #eaf2ff;
  color: #2563eb;
}
.record-code {
  color: #2563eb;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.2px;
}
.status-pill {
  align-items: center;
  border-radius: 30px;
  display: inline-flex;
  font-size: 9px;
  font-weight: 750;
  gap: 5px;
  padding: 4px 9px;
  white-space: nowrap;
}
.status-pill i {
  background: currentColor;
  border-radius: 50%;
  height: 5px;
  width: 5px;
}
.status-pill.active {
  background: #dcfce7;
  color: #15803d;
}
.status-pill.inactive {
  background: #f2f4f7;
  color: #667085;
}
.status-pill.left {
  background: #fff1f2;
  color: #be123c;
}
.person-cell,
.category-cell {
  align-items: center;
  display: flex;
  gap: 9px;
}
.person-cell > span,
.category-cell > span {
  align-items: center;
  background: #eaf2ff;
  border-radius: 9px;
  color: #2563eb;
  display: flex;
  flex: 0 0 auto;
  font-weight: 750;
  height: 35px;
  justify-content: center;
  width: 35px;
}
.category-cell > span {
  background: #f3e8ff;
  color: #7c3aed;
}
.pagination-bar {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  padding: 13px 18px;
}
.pagination .page-link {
  border-color: #e1e6ed;
  color: #475467;
}
.pagination .active > .page-link {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.table-empty {
  padding: 45px 10px;
}
.table-empty a {
  font-size: 11px;
}
.master-form {
  overflow: hidden;
}
.form-section {
  border-bottom: 1px solid var(--line);
  padding: 24px;
}
.form-section-title {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.form-section-title > i {
  align-items: center;
  background: #eaf2ff;
  border-radius: 9px;
  color: #2563eb;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.form-section-title h2 {
  font-size: 14px;
  margin: 0;
}
.form-section-title p {
  color: var(--muted);
  font-size: 10px;
  margin: 3px 0 0;
}
.master-form .form-label {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}
.master-form .form-label span {
  color: #dc2626;
}
.master-form .form-control,
.master-form .form-select {
  font-size: 12px;
  min-height: 40px;
}
.master-form textarea.form-control {
  min-height: auto;
}
.master-form .form-text {
  font-size: 9px;
}
.master-form .form-check-label {
  font-size: 11px;
}
.form-actions {
  align-items: center;
  background: #fafbfc;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 15px 24px;
}
.detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 260px;
}
.detail-card {
  overflow: hidden;
}
.detail-list {
  margin: 0;
  padding: 5px 20px 18px;
}
.detail-list > div {
  border-bottom: 1px solid #eef1f5;
  display: grid;
  gap: 15px;
  grid-template-columns: 180px 1fr;
  padding: 13px 0;
}
.detail-list > div:last-child {
  border: 0;
}
.detail-list dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
.detail-list dd {
  font-size: 12px;
  margin: 0;
}
.detail-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.detail-stats article {
  align-items: center;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  padding: 17px;
}
.detail-stats article > i {
  align-items: center;
  background: #eaf2ff;
  border-radius: 9px;
  color: #2563eb;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.detail-stats strong,
.detail-stats span {
  display: block;
}
.detail-stats strong {
  font-size: 19px;
  line-height: 1;
}
.detail-stats span {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.master-summary-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 18px;
}
.master-summary-row a {
  align-items: center;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 11px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  padding: 13px;
  text-decoration: none;
}
.master-summary-row i {
  align-items: center;
  background: #f0f5ff;
  border-radius: 8px;
  color: #2563eb;
  display: flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}
.master-summary-row strong,
.master-summary-row span {
  display: block;
}
.master-summary-row strong {
  font-size: 15px;
}
.master-summary-row span {
  color: var(--muted);
  font-size: 9px;
}
@media (max-width: 1100px) {
  .master-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-bar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .filter-search {
    max-width: none;
    width: 100%;
  }
  .master-summary-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .master-module-grid {
    grid-template-columns: 1fr;
  }
  .page-actions {
    flex-wrap: wrap;
  }
  .filter-bar .form-select,
  .filter-bar .per-page {
    max-width: none;
    min-width: calc(50% - 4px);
  }
  .bulk-toolbar {
    align-items: flex-start;
    gap: 10px;
  }
  .bulk-toolbar > div {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .master-summary-row {
    grid-template-columns: 1fr 1fr;
  }
  .form-section {
    padding: 18px 15px;
  }
  .form-actions {
    padding: 13px 15px;
  }
}
@media print {
  .app-sidebar,
  .top-navbar,
  .app-footer,
  .page-actions,
  .filter-bar,
  .bulk-toolbar,
  .pagination-bar,
  .toast-container {
    display: none !important;
  }
  .app-main {
    margin: 0;
  }
  .page-content {
    max-width: none;
    padding: 0;
  }
  .content-card {
    box-shadow: none;
  }
  .master-table thead th,
  .master-table tbody td {
    padding: 7px;
    font-size: 9px;
  }
  .check-column,
  .actions-column,
  .master-table td:first-child,
  .master-table td:last-child {
    display: none;
  }
  .page-heading {
    margin-bottom: 12px;
  }
}

/* Phase 11: compact filters, blue branding and focused sidebar navigation. */
.sidebar-logo{width:56px;height:38px;object-fit:contain;flex:0 0 56px}
.sidebar-nav a{transition:transform .18s ease,opacity .18s ease,filter .18s ease,background-color .18s ease}
.filter-disclosure{border-bottom:1px solid var(--border,#e5e7eb);background:#fff}
.filter-disclosure>summary{cursor:pointer;list-style:none;padding:14px 18px;font-weight:750;color:#1d4ed8;display:flex;align-items:center;gap:9px}
.filter-disclosure>summary::-webkit-details-marker{display:none}
.filter-disclosure>summary::before{content:'\f0b0';font-family:'Font Awesome 6 Free';font-weight:900}
.filter-disclosure[open]>summary::after{content:'Hide filters';margin-left:auto;font-size:12px;color:#64748b}
.filter-disclosure:not([open])>summary::after{content:'Show filters';margin-left:auto;font-size:12px;color:#64748b}
.filter-disclosure .allocation-filter-panel,.filter-disclosure .asset-filter-panel{border-top:1px solid #eef2f7;margin:0}
.vehicle-expiry-warning{background:#facc15;color:#422006}.vehicle-expiry-critical{background:#f97316;color:#fff}.vehicle-expiry-expired{background:#dc2626;color:#fff}
@media(max-width:700px){.sidebar-logo{width:48px;height:32px;flex-basis:48px}}

/* Phase 4 allocation, approval and notification workflow */
.navbar-icon {
  align-items: center;
  color: var(--ink);
  display: flex;
  justify-content: center;
  text-decoration: none;
}
.navbar-icon .notification-count {
  align-items: center;
  background: #ef4444;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 8px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 4px;
  position: absolute;
  right: -6px;
  top: -6px;
  width: auto;
}
.approval-disabled {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}
.workflow-stat-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-bottom: 18px;
}
.workflow-stat-grid article {
  align-items: center;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 13px;
  padding: 16px;
}
.workflow-stat-grid article > i {
  align-items: center;
  background: #f4f7fb;
  border-radius: 10px;
  display: flex;
  font-size: 17px;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.workflow-stat-grid strong,
.workflow-stat-grid span {
  display: block;
}
.workflow-stat-grid strong {
  font-size: 21px;
  line-height: 1;
}
.workflow-stat-grid span {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.allocation-filter-panel {
  align-items: center;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(130px, 1fr)) auto auto;
  padding: 16px 18px;
}
.allocation-filter-panel.allocation-register-filter {
  grid-template-columns: minmax(280px, 2fr) repeat(5, minmax(120px, 1fr)) auto auto;
}
.allocation-filter-panel .filter-search {
  max-width: none;
}
.allocation-filter-panel .form-control,
.allocation-filter-panel .form-select {
  font-size: 11px;
  min-height: 38px;
}
.allocation-table td {
  min-width: 120px;
}
.allocation-table td:last-child {
  min-width: auto;
}
.allocation-asset-search {
  max-width: 920px;
}
.allocation-asset-search .filter-search {
  max-width: none;
}
.asset-search-results {
  background: #fff;
  border: 1px solid #d7dde6;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.14);
  left: 0;
  max-height: 330px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 1050;
}
.asset-search-option {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  display: block;
  padding: 11px 14px;
  text-align: left;
  width: 100%;
}
.asset-search-option:hover,
.asset-search-option:focus {
  background: #eff6ff;
  outline: 0;
}
.asset-search-option strong,
.asset-search-option span {
  display: block;
}
.asset-search-option strong {
  color: var(--ink);
  font-size: 11px;
}
.asset-search-option span,
.asset-search-empty {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.asset-search-empty {
  padding: 18px;
  text-align: center;
}
.workflow-detail-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 380px;
}
.workflow-timeline-card {
  overflow: hidden;
  position: sticky;
  top: 94px;
}
.workflow-timeline {
  padding: 2px 20px 20px;
}
.workflow-event {
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 10px 0;
  position: relative;
}
.workflow-event:not(:last-child)::before {
  background: #dbe3ef;
  content: "";
  height: calc(100% - 23px);
  left: 16px;
  position: absolute;
  top: 39px;
  width: 2px;
}
.workflow-event > span {
  align-items: center;
  background: #eaf2ff;
  border-radius: 50%;
  color: #2563eb;
  display: flex;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
  z-index: 1;
}
.workflow-event strong,
.workflow-event small {
  display: block;
}
.workflow-event strong {
  font-size: 11px;
  margin-top: 2px;
}
.workflow-event small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.workflow-event p {
  color: #4b5563;
  font-size: 10px;
  line-height: 1.55;
  margin: 7px 0 0;
}
.workflow-text {
  border-top: 1px solid var(--line);
  padding: 17px 20px 20px;
}
.workflow-text span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  font-weight: 750;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.workflow-text p {
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 15px;
}
.transfer-route-card {
  overflow: hidden;
}
.transfer-route {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  padding: 2px 20px 20px;
}
.transfer-route article {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 128px;
  padding: 17px;
}
.transfer-route article > i {
  color: #2563eb;
  margin-bottom: 13px;
}
.transfer-route article span,
.transfer-route article strong,
.transfer-route article small {
  display: block;
}
.transfer-route article span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}
.transfer-route article strong {
  font-size: 12px;
  margin-top: 5px;
}
.transfer-route article small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}
.transfer-route-arrow {
  align-items: center;
  background: #eaf2ff;
  border-radius: 50%;
  color: #2563eb;
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.return-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}
.return-summary > div {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 11px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.return-summary span,
.return-summary strong {
  display: block;
}
.return-summary span {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.return-summary strong {
  font-size: 11px;
}
.workflow-setting {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 18px;
}
.workflow-setting strong,
.workflow-setting span {
  display: block;
}
.workflow-setting span {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.workflow-setting .form-check-input {
  height: 24px;
  width: 46px;
}
.notification-tabs {
  display: flex;
  gap: 8px;
}
.notification-tabs a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}
.notification-tabs a.active {
  background: #eaf2ff;
  color: #1d4ed8;
}
.notification-tabs span {
  background: #fff;
  border-radius: 99px;
  margin-left: 3px;
  padding: 2px 6px;
}
.notification-list {
  padding: 0 20px 15px;
}
.notification-item {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: grid;
  gap: 12px;
  grid-template-columns: 40px minmax(0, 1fr) 12px;
  margin: 0;
  padding: 13px 4px;
}
.notification-item.unread {
  background: linear-gradient(90deg, #f4f8ff, #fff);
}
.notification-symbol {
  align-items: center;
  background: #eaf2ff;
  border-radius: 10px;
  color: #2563eb;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.notification-item button {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  text-align: left;
}
.notification-item strong,
.notification-item span,
.notification-item small {
  display: block;
}
.notification-item strong {
  font-size: 11px;
}
.notification-item span {
  color: #4b5563;
  font-size: 10px;
  margin-top: 3px;
}
.notification-item small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 4px;
}
.unread-dot {
  background: #2563eb;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}
@media (max-width: 1150px) {
  .allocation-filter-panel,
  .allocation-filter-panel.allocation-register-filter {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
  .allocation-filter-panel .filter-search {
    grid-column: span 2;
  }
  .workflow-detail-grid {
    grid-template-columns: 1fr;
  }
  .workflow-timeline-card {
    position: static;
  }
}
@media (max-width: 760px) {
  .workflow-stat-grid,
  .return-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .allocation-filter-panel,
  .allocation-filter-panel.allocation-register-filter {
    grid-template-columns: 1fr 1fr;
  }
  .allocation-filter-panel .filter-search {
    grid-column: span 2;
  }
  .transfer-route {
    grid-template-columns: 1fr;
  }
  .transfer-route-arrow {
    margin: -5px auto;
    transform: rotate(90deg);
  }
}
@media (max-width: 520px) {
  .workflow-stat-grid,
  .return-summary,
  .allocation-filter-panel,
  .allocation-filter-panel.allocation-register-filter {
    grid-template-columns: 1fr;
  }
  .allocation-filter-panel .filter-search {
    grid-column: auto;
  }
  .workflow-setting {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media print {
  .workflow-stat-grid,
  .allocation-filter-panel,
  .workflow-setting .form-check,
  .notification-tabs,
  .notification-item button::after {
    box-shadow: none;
  }
  .workflow-timeline-card {
    position: static;
  }
  .allocation-filter-panel,
  .workflow-action-card,
  .notification-tabs {
    display: none !important;
  }
}
.master-summary-row {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

/* Phase 3 asset register */
.asset-id-banner {
  align-items: center;
  background: linear-gradient(90deg, #eff6ff, #f8fbff);
  border-bottom: 1px solid #dbeafe;
  display: flex;
  gap: 16px;
  padding: 14px 24px;
}
.asset-id-banner span,
.asset-id-banner small {
  color: var(--muted);
  font-size: 10px;
}
.asset-id-banner strong,
.asset-code-inline,
.asset-id-link {
  color: #1d4ed8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 750;
  text-decoration: none;
}
.form-hint {
  color: var(--muted);
  font-size: 10px;
}
.asset-filter-panel {
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(135px, 1fr));
  padding: 16px 18px;
}
.asset-filter-panel .asset-search {
  grid-column: span 2;
  max-width: none;
}
.asset-filter-panel .form-control,
.asset-filter-panel .form-select {
  font-size: 11px;
  min-height: 38px;
}
.asset-table td {
  min-width: 110px;
}
.asset-table td:first-child,
.asset-table td:last-child {
  min-width: auto;
}
.table-subtext {
  color: var(--muted);
  display: block;
  font-size: 9px;
  margin-top: 2px;
}
.column-picker,
.category-check-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.column-picker .form-check,
.category-check-grid .form-check {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 0;
  padding: 10px 12px 10px 36px;
}
.asset-profile-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 310px minmax(0, 1fr);
}
.asset-identity-card {
  padding: 18px;
  position: sticky;
  top: 94px;
}
.asset-photo {
  align-items: center;
  background: #eef2f7;
  border-radius: 12px;
  color: #8b98aa;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 210px;
  justify-content: center;
  overflow: hidden;
}
.asset-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.asset-photo > i {
  font-size: 42px;
}
.asset-photo > span {
  font-size: 10px;
}
.asset-identity-card h2 {
  font-size: 18px;
  margin: 17px 0 4px;
}
.asset-identity-card > code {
  color: #2563eb;
  font-size: 12px;
}
.identity-list {
  margin: 17px 0;
}
.identity-list > div {
  border-bottom: 1px solid #edf0f4;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 0;
}
.identity-list dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.identity-list dd {
  font-size: 10px;
  font-weight: 700;
  margin: 0;
  text-align: right;
}
.asset-code-card {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 15px;
  padding-top: 16px;
}
.asset-code-card > div {
  align-items: center;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.asset-code-card span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.asset-code-card small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.asset-code-card canvas,
.asset-code-card img {
  max-width: 150px;
}
.asset-code-card svg {
  max-width: 100%;
}
.asset-detail-column {
  display: grid;
  gap: 18px;
}
.detail-section {
  overflow: hidden;
}
.detail-section .detail-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 20px 18px;
}
.detail-section .detail-grid > div {
  border-bottom: 1px solid #edf0f4;
  padding: 13px 16px 13px 0;
}
.detail-section .detail-grid span,
.detail-section .detail-grid strong {
  display: block;
}
.detail-section .detail-grid span {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 4px;
}
.detail-section .detail-grid strong {
  font-size: 11px;
}
.remarks-text {
  line-height: 1.7;
  margin: 0;
  padding: 0 20px 20px;
}
.asset-lower-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}
.document-list {
  padding: 4px 20px 16px;
}
.document-item {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  gap: 12px;
  padding: 12px 0;
}
.document-item > i {
  align-items: center;
  background: #eff6ff;
  border-radius: 9px;
  color: #2563eb;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.document-item > div {
  flex: 1;
}
.document-item strong,
.document-item small {
  display: block;
}
.document-item strong {
  font-size: 11px;
}
.document-item small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}
@media (max-width: 1250px) {
  .asset-filter-panel {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}
@media (max-width: 900px) {
  .asset-profile-grid,
  .asset-lower-grid {
    grid-template-columns: 1fr;
  }
  .asset-identity-card {
    position: static;
  }
  .detail-section .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asset-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .asset-filter-panel,
  .detail-section .detail-grid,
  .column-picker,
  .category-check-grid {
    grid-template-columns: 1fr;
  }
  .asset-filter-panel .asset-search {
    grid-column: auto;
  }
  .asset-id-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
@media print {
  .asset-filter-panel,
  .asset-identity-card form,
  .document-list .btn {
    display: none !important;
  }
  .asset-identity-card {
    position: static;
  }
  .asset-table td:first-child {
    display: table-cell;
  }
  .asset-table td.check-column {
    display: none;
  }
}
/* Phase 7 bulk import */
.import-rule-list{padding-left:1.2rem;margin:1rem 0}.import-rule-list li{margin-bottom:.75rem;color:#475569}.import-error-list{padding-left:1rem;margin:0;color:#b91c1c;font-size:.82rem}.import-error-list li{margin-bottom:.25rem}.stat-card{height:100%;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:1.25rem;box-shadow:0 10px 30px rgba(15,23,42,.04)}.stat-card span{display:block;color:#64748b;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.stat-card strong{display:block;margin-top:.45rem;font-size:1.8rem;color:#0f172a}

/* Phase 11.1 glass UI and fleet compliance hotfix */
body{background:radial-gradient(circle at 78% 8%,rgba(59,130,246,.12),transparent 28rem),radial-gradient(circle at 35% 85%,rgba(6,182,212,.09),transparent 32rem),#f2f6fc;background-attachment:fixed}
.top-navbar{background:rgba(255,255,255,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-color:rgba(255,255,255,.72);box-shadow:0 8px 28px rgba(15,23,42,.05)}
.content-card,.stat-card{background:rgba(255,255,255,.8);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.9);box-shadow:0 18px 45px rgba(31,48,78,.08)}
.app-sidebar{background:linear-gradient(180deg,rgba(7,17,31,.97),rgba(11,23,40,.95));backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.sidebar-nav a{transition:background-color .18s,color .18s}.sidebar-nav a:hover{transform:none;filter:none;opacity:1;background:rgba(96,165,250,.12)}
.compliance-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:14px}.compliance-stat{align-items:center;background:rgba(255,255,255,.82);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.9);border-radius:18px;color:#172033;display:flex;gap:14px;padding:17px;text-decoration:none;box-shadow:0 14px 35px rgba(31,48,78,.07);transition:transform .15s,box-shadow .15s}.compliance-stat:hover{color:#172033;transform:translateY(-2px);box-shadow:0 18px 42px rgba(31,48,78,.12)}.compliance-stat>i{align-items:center;border-radius:13px;display:flex;font-size:17px;height:44px;justify-content:center;width:44px}.compliance-stat strong,.compliance-stat span,.compliance-stat small{display:block}.compliance-stat strong{font-size:22px;line-height:1}.compliance-stat span{font-size:12px;font-weight:800;margin-top:5px}.compliance-stat small{color:#64748b;font-size:9px;margin-top:2px}.compliance-stat.current>i{background:#dcfce7;color:#15803d}.compliance-stat.warning>i{background:#fef9c3;color:#a16207}.compliance-stat.critical>i{background:#ffedd5;color:#c2410c}.compliance-stat.expired>i{background:#fee2e2;color:#b91c1c}.compliance-stat.missing>i{background:#e2e8f0;color:#475569}.compliance-legend{display:flex;flex-wrap:wrap;gap:16px;margin:0 0 18px 4px}.compliance-legend span{align-items:center;color:#64748b;display:flex;font-size:10px;font-weight:700;gap:6px}.compliance-legend i{border-radius:50%;display:block;height:9px;width:9px}.legend-current{background:#22c55e}.legend-warning{background:#eab308}.legend-critical{background:#f97316}.legend-expired{background:#ef4444}
.vehicle-compliance-card{overflow:visible}.compliance-edit-grid label{color:#64748b;display:block;font-size:9px;font-weight:700;margin-bottom:6px;text-transform:uppercase}.compliance-upload-area{border-top:1px solid rgba(226,232,240,.8);margin:4px 22px 18px;padding-top:18px}.compliance-upload-area h3{font-size:14px;margin:0 0 4px}.compliance-upload-area p{color:#64748b;font-size:10px}.current-document-link{align-items:center;display:flex;font-size:10px;gap:6px;margin-bottom:8px;overflow-wrap:anywhere}.compliance-upload-area input[type=file]{font-size:9px}
.vehicle-alert-modal .modal-backdrop{backdrop-filter:blur(4px)}.glass-modal{background:rgba(250,252,255,.92);backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px);border:1px solid rgba(255,255,255,.95);border-radius:24px;box-shadow:0 30px 90px rgba(15,23,42,.28);overflow:hidden}.glass-modal .modal-header{align-items:center;background:linear-gradient(135deg,rgba(239,246,255,.95),rgba(255,247,237,.9));border:0;gap:15px;padding:22px 24px}.alert-modal-icon{align-items:center;background:linear-gradient(135deg,#2563eb,#06b6d4);border-radius:16px;box-shadow:0 12px 24px rgba(37,99,235,.25);color:#fff;display:flex;font-size:20px;height:52px;justify-content:center;width:52px}.glass-modal .modal-body{padding:18px 22px 24px}.expiry-alert-card{align-items:center;background:rgba(255,255,255,.82);border:1px solid #e2e8f0;border-left:5px solid #f97316;border-radius:16px;display:flex;gap:16px;justify-content:space-between;margin-bottom:12px;padding:15px 16px}.expiry-alert-card.expired{border-left-color:#ef4444;background:rgba(254,242,242,.9)}.expiry-alert-main{align-items:flex-start;display:flex;gap:11px}.expiry-alert-main strong,.expiry-alert-main div,.expiry-alert-main small{display:block}.expiry-alert-main div{font-size:11px;margin-top:3px}.expiry-alert-main small{color:#64748b;font-size:9px;margin-top:3px}.expiry-alert-dot{background:#f97316;border-radius:50%;box-shadow:0 0 0 5px rgba(249,115,22,.12);height:10px;margin-top:5px;width:10px}.expired .expiry-alert-dot{background:#ef4444;box-shadow:0 0 0 5px rgba(239,68,68,.12)}.expiry-alert-actions{align-items:center;display:flex;gap:8px}.expiry-alert-actions form{display:flex;gap:6px}.expiry-alert-actions select{width:88px}
@media(max-width:1100px){.compliance-summary-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.compliance-summary-grid{grid-template-columns:1fr 1fr}.expiry-alert-card,.expiry-alert-actions{align-items:stretch;flex-direction:column}.expiry-alert-actions form{width:100%}.expiry-alert-actions select{flex:1;width:auto}}@media(max-width:460px){.compliance-summary-grid{grid-template-columns:1fr}}
.modal-backdrop.show{background:rgba(7,17,31,.58);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);opacity:1}.vehicle-alert-modal .glass-modal{background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(239,246,255,.66));border:1px solid rgba(255,255,255,.8);box-shadow:0 35px 100px rgba(2,6,23,.38)}.developer-credit{color:#334155;font-weight:650}.developer-credit strong{color:#0f172a;font-family:"Segoe Script","Bradley Hand","Brush Script MT",cursive;font-size:16px;font-weight:800;margin-left:4px;letter-spacing:.2px}
.cron-log-view{background:#07111f;border-radius:14px;color:#cbd5e1;font-size:11px;max-height:440px;overflow:auto;padding:18px;white-space:pre-wrap}
/* Phase 13 maintenance and login */
.login-jtvpl-logo{width:180px;max-height:72px;object-fit:contain;object-position:left;margin-bottom:26px;filter:drop-shadow(0 10px 24px rgba(37,99,235,.2))}.mobile-brand img{width:72px;height:30px;object-fit:contain}.login-developer{text-align:center;color:#334155;font-size:12px;margin-top:18px}.login-developer strong{color:#0f172a;font-family:"Segoe Script","Bradley Hand","Brush Script MT",cursive;font-size:18px;margin-left:4px}.vehicle-alert-number{display:inline-flex!important;align-items:center;background:linear-gradient(135deg,#172554,#2563eb);color:#fff;border-radius:9px;padding:6px 10px;font-size:17px;letter-spacing:.04em;box-shadow:0 8px 18px rgba(37,99,235,.2)}
.maintenance-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.maintenance-status-card{background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.92);border-radius:18px;padding:18px;box-shadow:0 12px 34px rgba(31,48,78,.07)}.maintenance-status-card span{color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase}.maintenance-status-card strong{display:block;font-size:26px;color:#0f172a;margin-top:5px}.maintenance-timeline{border-left:2px solid #dbeafe;margin-left:8px;padding-left:22px}.maintenance-event{position:relative;margin-bottom:18px}.maintenance-event:before{content:"";position:absolute;left:-29px;top:4px;width:12px;height:12px;border-radius:50%;background:#2563eb;box-shadow:0 0 0 5px #dbeafe}.maintenance-event small{display:block;color:#64748b}.part-row{display:grid;grid-template-columns:2fr 1fr .8fr 1fr 2fr;gap:10px;margin-bottom:10px}@media(max-width:800px){.maintenance-status-grid{grid-template-columns:1fr 1fr}.part-row{grid-template-columns:1fr 1fr}.part-row>*:last-child{grid-column:1/-1}}

/* Production 3.8 compact navigation, controls and fast scrolling */
html{scroll-behavior:auto!important}.content-card,.stat-card,.top-navbar,.app-footer{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.app-footer{background:#fff!important}.developer-credit{font-size:9px!important;font-weight:500!important}.developer-credit strong{color:#0d6efd!important;font-family:Inter,"Segoe UI",sans-serif!important;font-size:11px!important;font-weight:750!important;margin-left:3px!important}
.sidebar-group{margin:4px 8px;border:1px solid rgba(148,163,184,.14);border-radius:11px;overflow:hidden}.sidebar-group summary{align-items:center;color:#b7c4d7;cursor:pointer;display:flex;font-size:11px;font-weight:750;justify-content:space-between;list-style:none;padding:10px 12px;text-transform:uppercase;letter-spacing:.45px}.sidebar-group summary::-webkit-details-marker{display:none}.sidebar-group summary span{display:flex;align-items:center;gap:10px}.sidebar-group summary i{width:16px;text-align:center}.sidebar-group .group-chevron{font-size:9px;transition:transform .16s}.sidebar-group[open] .group-chevron{transform:rotate(180deg)}.sidebar-group>div{padding:0 4px 5px}.sidebar-group>div a{margin:2px 0;padding:8px 11px 8px 16px;font-size:12px}.sidebar-group-nav> a{margin:3px 8px;padding:9px 12px}
.page-actions{align-items:center;flex-wrap:wrap;gap:6px!important}.page-actions .btn,.page-actions a.btn{border-radius:9px!important;min-height:32px!important;padding:5px 10px!important;font-size:12px!important;line-height:1.2!important;box-shadow:none!important}.page-actions .icon-action{height:32px!important;width:32px!important;padding:0!important}.bulk-toolbar .btn,.allocation-filter-panel .btn,.content-card form>.btn{min-height:32px!important;padding:5px 10px!important;font-size:12px!important;border-radius:9px!important}.workflow-stat-grid article{padding:13px 16px!important}.phase-notice{padding:10px 13px!important}.master-table{transform:translateZ(0)}

/* Production 3.7 usability and rendering performance */
html{scroll-behavior:smooth}.app-main{padding-bottom:42px}.app-footer{position:fixed;left:260px;right:0;bottom:0;z-index:1020;min-height:28px;padding:4px 18px;font-size:10px;background:rgba(255,255,255,.9);backdrop-filter:blur(12px)}
.btn{border-radius:10px;min-height:36px;padding:.42rem .78rem;font-size:.86rem;font-weight:650}.btn-sm,.row-actions a,.icon-action{min-height:30px;padding:.3rem .55rem}.table-responsive{content-visibility:auto;contain-intrinsic-size:800px}.master-table tr{contain:layout paint}.app-content img{content-visibility:auto}
@media(max-width:991.98px){.app-footer{left:0}}

/* Production 3.8.3 multi-level asset grouping */
.sidebar-group-fixed .sidebar-fixed-title{align-items:center;color:#b7c4d7;display:flex;font-size:11px;font-weight:750;padding:10px 12px;text-transform:uppercase;letter-spacing:.45px}.sidebar-group-fixed .sidebar-fixed-title span{align-items:center;display:flex;gap:10px}.sidebar-pending-badge{background:#2563eb;border-radius:999px;color:#fff;font-size:9px;font-weight:800;line-height:18px;margin-left:auto;min-width:18px;padding:0 5px;text-align:center}.sidebar-group-fixed a{display:flex!important;align-items:center}
.asset-group-control{position:relative;min-width:128px}.asset-group-control>summary{align-items:center;background:#fff;border:1px solid #aebbd0;border-radius:9px;color:#334155;cursor:pointer;display:flex;font-size:12px;font-weight:700;gap:7px;min-height:32px;padding:5px 10px;list-style:none}.asset-group-control>summary::-webkit-details-marker{display:none}.asset-group-control>div{background:#fff;border:1px solid #d7e0ee;border-radius:12px;box-shadow:0 16px 38px rgba(15,23,42,.16);display:grid;gap:8px;min-width:190px;padding:12px;position:absolute;right:0;top:calc(100% + 5px);z-index:1050}.asset-group-control>div>strong{font-size:11px;color:#475569}.asset-group-control label{align-items:center;display:flex;font-size:12px;font-weight:650;gap:8px}.asset-group-control .form-check-input{height:16px;min-height:16px;width:16px}.asset-group-row td{background:#eaf2ff!important;border-bottom:1px solid #bfd3f5!important;border-top:1px solid #bfd3f5!important;color:#1d4ed8!important;padding:7px 12px!important}.asset-group-row td,.asset-group-row td>div{align-items:center;display:flex;gap:9px}.asset-group-row span{align-items:baseline;display:flex;gap:5px;font-weight:800}.asset-group-row small{color:#64748b;font-size:9px;font-weight:700;text-transform:uppercase}.asset-group-row b{color:#94a3b8}

/* Production accessibility and compact action controls */
.form-control,.form-select{border-color:#aebbd0;color:#172033;font-size:14px;min-height:42px}.form-control:focus,.form-select:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14)}.form-check-input{border:2px solid #64748b;height:18px;width:18px}.form-check-input:checked{background-color:#2563eb;border-color:#2563eb}.form-label{color:#1e293b;font-size:13px;font-weight:700}.form-text,.table-subtext,.content-card-header p{font-size:11px}.master-table td,.master-table th{border-color:#cbd5e1}.master-table th{font-size:11px}.master-table td{font-size:13px}.compliance-upload-area input[type=file]{font-size:13px;min-height:42px}.compliance-upload-area input[type=file]::file-selector-button{font-size:13px;font-weight:700;padding:9px 12px}.icon-action{align-items:center;display:inline-flex;height:42px;justify-content:center;padding:0;width:42px}.icon-action i{font-size:16px}.confirm-dialog{overflow:visible}.confirm-icon{align-items:center;background:#fee2e2;border-radius:16px;color:#dc2626;display:flex;font-size:24px;height:56px;justify-content:center;width:56px}.confirm-warning{align-items:flex-start;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;color:#9a3412;display:flex;font-size:12px;gap:9px;padding:12px}.asset-vehicle-collapse summary{align-items:center;cursor:pointer;display:flex;font-size:14px;font-weight:800;gap:10px;list-style:none;padding:18px 22px}.asset-vehicle-collapse summary::-webkit-details-marker{display:none}.asset-vehicle-collapse summary:after{content:"\f078";font-family:"Font Awesome 6 Free";font-weight:900;margin-left:auto;transition:transform .2s}.asset-vehicle-collapse[open] summary:after{transform:rotate(180deg)}

/* Production 3.10 rendering safeguards for long pages */
html{scroll-behavior:auto!important}
body{background-attachment:scroll!important}
.app-sidebar,.top-navbar,.content-card,.stat-card,.compliance-stat,.app-footer{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.app-footer{background:#fff!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* Production 3.9 administration and reports */
.vehicle-remarks-preview{display:inline-block;max-width:130px;position:relative;color:#64748b;font-size:10px;cursor:help;white-space:nowrap}.vehicle-remarks-preview:hover::after,.vehicle-remarks-preview:focus::after{content:attr(data-remarks);position:absolute;right:0;bottom:calc(100% + 8px);z-index:1080;width:max-content;max-width:360px;white-space:normal;background:#0f172a;color:#fff;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.25);font-size:13px;line-height:1.45;padding:10px 12px}
html{scroll-behavior:auto!important}
.page-actions .btn,.page-actions a.btn,.bulk-toolbar .btn,.filter-bar .btn{border-radius:8px!important;box-shadow:none!important;font-size:12px!important;line-height:1.2!important;min-height:32px!important;padding:5px 10px!important}
.report-card-grid{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.report-card-grid a{background:#fff;border:1px solid #dbe3ef;border-radius:14px;color:#334155;padding:14px;text-decoration:none}.report-card-grid a:hover,.report-card-grid a.active{background:#eff6ff;border-color:#60a5fa;color:#1d4ed8}.report-card-grid strong,.report-card-grid small{display:block}.report-card-grid small{font-size:10px;margin-top:4px}.report-column-check{display:grid;gap:8px;grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:10px}.report-column-check label{align-items:center;border:1px solid #dbe3ef;border-radius:9px;display:flex;font-size:12px;gap:8px;padding:8px}
@media(max-width:1000px){.report-card-grid,.report-column-check{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.report-card-grid,.report-column-check{grid-template-columns:1fr}}
