:root {
  --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bg: #e6ecf2;
  --surface: #ffffff;
  --surface-soft: #f8f1de;
  --surface-border: #d4dce7;
  --surface-border-strong: #acbacb;

  --text: #0f1723;
  --text-soft: #536475;
  --text-faint: #7d8897;

  --topbar-green: #1b7f34;

  --orange: #f59e0b;
  --green: #17964f;
  --red: #dc2626;
  --blue: #17385f;
  --brand-gold: #ffc423;
  --brand-black: #070a0d;
  --brand-green: #16964f;
  --brand-navy: #102746;
  --brand-teal: #0d5663;
  --brand-ivory: #fbf7ea;

  --shadow: 0 22px 46px rgba(7, 10, 13, 0.1);
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;

  /* SAP / nav */
  --nav-dark: #070a0d;
  --nav-text: #ffffff;
  --nav-hover: #ffd765;
  --nav-active: #ffc423;
  --sap-group-grey: #17355d;
  --sap-close-dip: #f8dc7b;
  --sap-closing-sap: #d7e3f2;
  --sap-variance: #f2d3b7;
  --sap-date-col: #f7f5ed;
  --table-head-bg: #17385f;
  --table-head-bg-strong: #0b1d34;
  --table-head-text: #ffffff;
  --table-row-alt: #f8f2e3;
  --table-row-hover: #e7f0f3;
  --table-sticky-cell: #fcf8ee;
}

html body :is(
  .transaction-filter-card,
  .delivery-filter-card,
  .vehicle-filter-card,
  .manual-filter-card,
  .opening-filter-card,
  .current-level-filter-card,
  .site-status-filter-card,
  .bol-filter-card,
  .rr-filter-card,
  .sap-export-filter-card,
  .sap-balance-filter-card,
  .report-sidebar,
  .slicer-card,
  .filter-card,
  aside
) :is(input, select, textarea, button, option, .multi-select, .multi-select-trigger, .multi-select-option span, [data-multi-select-label], .summary-tile) {
  font-weight: 400 !important;
}

html body :is(
  .transaction-filter-card,
  .delivery-filter-card,
  .vehicle-filter-card,
  .manual-filter-card,
  .opening-filter-card,
  .current-level-filter-card,
  .site-status-filter-card,
  .bol-filter-card,
  .rr-filter-card,
  .sap-export-filter-card,
  .sap-balance-filter-card,
  .report-sidebar,
  .slicer-card,
  .filter-card
) label,
html body :is(
  .data-card-head h1,
  .deliveries-card-title,
  .manual-dips-title,
  .site-status-title,
  .bol-title,
  .rr-title
) {
  font-weight: 800 !important;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 46%, var(--bg) 100%);
  color: var(--text);
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
label,
button,
input,
select,
textarea,
table,
th,
td,
a {
  font-family: var(--font-ui);
}

button,
input,
select,
textarea,
table,
th,
td {
  font: inherit;
  font-family: inherit;
}

/* =========================
   HEADER
   ========================= */

.topbar {
  background: var(--topbar-green);
  color: #ffffff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow);

  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;

  position: sticky;
  top: 0;
  z-index: 1000;
}

/* SAP top nav */
.topbar.sap-nav,
.sap-topbar {
  background:
    linear-gradient(180deg, rgba(255, 196, 35, 0.08) 0%, rgba(255, 196, 35, 0) 28%),
    linear-gradient(180deg, #0c1014 0%, #070a0d 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 18px;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  border-bottom: 4px solid var(--brand-gold);

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 20px;
  flex-wrap: nowrap;
  position: relative;
  min-height: 86px;
  overflow: visible;
  z-index: 1400;
}

.topbar.sap-nav .brand-block,
.sap-topbar .brand-block {
  display: contents;
}

.topbar.sap-nav .brand-logos,
.sap-topbar .brand-logos {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  position: static;
  z-index: 2;
}

.topbar.sap-nav .brand-copy,
.sap-topbar .brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 180px;
  align-items: flex-start;
  text-align: left;
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 2px 18px 2px 0;
  min-width: 260px;
}

.topbar.sap-nav .brand-title,
.sap-topbar .brand-title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.topbar.sap-nav .brand-logo,
.sap-topbar .brand-logo {
  width: 148px;
  max-width: 100%;
  height: auto;
  display: block;
  flex: 0 0 auto;
  position: static;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.topbar.sap-nav .brand-logo-edge,
.sap-topbar .brand-logo-edge {
  margin-left: 0;
}

.topbar.sap-nav .brand-edge-slot,
.sap-topbar .brand-edge-slot {
  position: absolute;
  top: 50%;
  right: 118px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
  z-index: 4;
}

.topbar.sap-nav .nav-account-slot,
.sap-topbar .nav-account-slot {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
}

.topbar.sap-nav .nav-account-slot .nav-logout,
.sap-topbar .nav-account-slot .nav-logout {
  appearance: none;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 196, 35, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
}

.topbar.sap-nav .partner-logo,
.sap-topbar .partner-logo {
  width: 102px;
  max-width: 100%;
  height: auto;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.24));
}

.topbar.sap-nav .partner-logo.k92-logo,
.sap-topbar .partner-logo.k92-logo {
  width: 132px;
  padding: 5px 8px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.topbar.sap-nav h1,
.sap-topbar h1 {
  margin: 0;
  font-size: clamp(30px, 2.4vw, 35px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.topbar.sap-nav .sub,
.sap-topbar .sub {
  font-size: 11px;
  color: #ffd765;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.topbar.sap-nav .nav,
.sap-topbar .nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 1 auto;
  width: auto;
  padding-top: 0;
  margin: 0 auto;
  max-width: none;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 1450;
  scrollbar-width: none;
}

.topbar.sap-nav .nav-row,
.sap-topbar .nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: auto;
  min-height: 54px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 196, 35, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1450;
}

.topbar.sap-nav .nav a,
.topbar.sap-nav .nav .nav-dropdown-toggle,
.topbar.sap-nav .nav .nav-logout,
.sap-topbar .nav a,
.sap-topbar .nav .nav-logout {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 8px;
  flex: 0 0 auto;
  opacity: 0.94;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.topbar.sap-nav .nav .nav-dropdown-toggle,
.topbar.sap-nav .nav .nav-logout,
.sap-topbar .nav .nav-dropdown-toggle,
.sap-topbar .nav .nav-logout {
  appearance: none;
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: none;
}

.topbar.sap-nav .nav .nav-logout,
.sap-topbar .nav .nav-logout {
  color: #f3f7fb;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.topbar.sap-nav .nav .nav-dropdown-label,
.sap-topbar .nav .nav-dropdown-label {
  display: inline-flex;
  align-items: center;
}

.topbar.sap-nav .nav .nav-icon,
.topbar.sap-nav .nav-account-slot .nav-icon,
.sap-topbar .nav .nav-icon,
.sap-topbar .nav-account-slot .nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: currentColor;
}

.topbar.sap-nav .nav .nav-icon svg,
.topbar.sap-nav .nav-account-slot .nav-icon svg,
.sap-topbar .nav .nav-icon svg,
.sap-topbar .nav-account-slot .nav-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar.sap-nav .nav .nav-text,
.topbar.sap-nav .nav-account-slot .nav-text,
.sap-topbar .nav .nav-text,
.sap-topbar .nav-account-slot .nav-text {
  display: inline-flex;
  align-items: center;
}

.topbar.sap-nav .nav .nav-dropdown-caret,
.sap-topbar .nav .nav-dropdown-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  opacity: 0.95;
  transform: translateY(1px);
}

.topbar.sap-nav .nav .nav-dropdown-caret::before,
.sap-topbar .nav .nav-dropdown-caret::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.18s ease;
}

.topbar.sap-nav .nav a:hover,
.topbar.sap-nav .nav .nav-dropdown-toggle:hover,
.topbar.sap-nav .nav .nav-logout:hover {
  color: #ffffff;
  border-color: rgba(255, 196, 35, 0.34);
  opacity: 1;
  background: rgba(255, 196, 35, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: none;
}

.topbar.sap-nav .nav a.active,
.topbar.sap-nav .nav .nav-dropdown-toggle.active,
.topbar.sap-nav .nav .nav-dropdown.active > .nav-dropdown-toggle {
  color: #070a0d;
  border-color: var(--nav-active);
  opacity: 1;
  background: linear-gradient(180deg, #ffd765 0%, #ffc423 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 196, 35, 0.08);
  text-shadow: none;
  transform: none;
}

.topbar.sap-nav .nav .nav-dropdown.is-open > .nav-dropdown-toggle,
.sap-topbar .nav .nav-dropdown.is-open > .nav-dropdown-toggle {
  background: rgba(255, 196, 35, 0.08);
  border-color: rgba(255, 196, 35, 0.34);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 196, 35, 0.08);
}

.topbar.sap-nav .nav .nav-dropdown.is-open .nav-dropdown-caret::before,
.sap-topbar .nav .nav-dropdown.is-open .nav-dropdown-caret::before {
  transform: rotate(180deg);
}

.topbar.sap-nav .nav .nav-dropdown,
.sap-topbar .nav .nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1500;
}

.topbar.sap-nav .nav .nav-dropdown-menu,
.sap-topbar .nav .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 236px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 196, 35, 0.32);
  background:
    linear-gradient(180deg, rgba(17, 28, 40, 0.99) 0%, rgba(9, 16, 24, 0.99) 100%);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  z-index: 1600;
}

.topbar.sap-nav .nav .nav-dropdown-menu[hidden],
.sap-topbar .nav .nav-dropdown-menu[hidden] {
  display: none !important;
}

.topbar.sap-nav .nav .nav-dropdown.is-open .nav-dropdown-menu,
.sap-topbar .nav .nav-dropdown.is-open .nav-dropdown-menu {
  display: grid;
  gap: 6px;
}

.topbar.sap-nav .nav .nav-dropdown-menu a,
.sap-topbar .nav .nav-dropdown-menu a {
  display: block;
  padding: 11px 13px;
  border-radius: 12px;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.97;
}

.topbar.sap-nav .nav .nav-dropdown-menu a:hover,
.sap-topbar .nav .nav-dropdown-menu a:hover {
  background: rgba(255, 196, 35, 0.14);
  border-bottom: 0;
  color: #fff6d6;
}

.topbar.sap-nav .nav .nav-dropdown-menu a.active,
.sap-topbar .nav .nav-dropdown-menu a.active {
  background: rgba(255, 196, 35, 0.18);
  color: #fff6d6;
}

/* =========================
   STICKY FILTERS
   ========================= */

.filters-panel,
.kpi-grid,
.process-strip {
  position: sticky;
  top: 90px;
  z-index: 900;
  background: var(--bg);
}

/* =========================
   TABLES
   ========================= */

.table-wrap {
  overflow: auto;
  border-radius: 0;
  border: 1px solid rgba(16, 39, 70, 0.12);
  max-height: 500px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 10, 13, 0.04);
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #8a96a6 #f3f5f7;
}

.table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.table-wrap::-webkit-scrollbar-track {
  background: #f4f6f8;
  border-left: 1px solid var(--surface-border);
  border-top: 1px solid var(--surface-border);
}

.table-wrap::-webkit-scrollbar-thumb {
  background: #9aa4b3;
  border-radius: 999px;
  border: 2px solid #f4f6f8;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: #7b8798;
}

.table-shell,
.table-card {
  padding: 14px;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(16, 39, 70, 0.1);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 10, 13, 0.04);
}

table {
  width: 100%;
  min-width: 980px;
  background: #fff;
}

/* keep collapse ONLY for normal tables */
table:not(.transactions-table) {
  border-collapse: collapse;
}

th, td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--surface-border);
  font-size: 13px;
  white-space: nowrap;
}

/* sticky header */
.table-wrap thead th {
  position: sticky;
  top: 0;
  background: #ffffff;
  color: #143258;
  z-index: 500;
  border-top: 1px solid #b79a59;
  border-bottom: 2px solid #b79a59;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* generic sticky first column */
.table-wrap table th:first-child,
.table-wrap table td:first-child {
  position: sticky;
  left: 0;
}

.table-wrap table th:first-child {
  background: #ffffff;
  color: #143258;
  z-index: 650;
}

.table-wrap table td:first-child {
  background: var(--table-sticky-cell);
  z-index: 600;
  border-right: 1px solid var(--surface-border-strong);
}

.table-wrap tbody tr:nth-child(even) td {
  background: var(--table-row-alt);
}

.table-wrap tbody tr:hover td {
  background: var(--table-row-hover);
}

.table-wrap tbody tr:nth-child(even) td:first-child,
.table-wrap tbody tr:hover td:first-child {
  background: inherit;
}

/* =========================
   TRANSACTIONS TABLE
   ========================= */

.transactions-table {
  width: 100%;
  min-width: 1500px;
  border-collapse: separate !important;
  border-spacing: 0;
  table-layout: auto;
}

.transactions-table th,
.transactions-table td {
  font-size: 14px;
  padding: 7px 10px;
  white-space: nowrap;
  vertical-align: middle;
}

.transactions-table thead th {
  top: 0;
  background:
    linear-gradient(180deg, rgba(15, 20, 26, 0.96) 0%, rgba(6, 9, 11, 1) 100%);
  color: #ffe08a;
  z-index: 500;
  border-top: 1px solid rgba(255, 196, 35, 0.75);
  border-bottom: 2px solid rgba(255, 196, 35, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.transactions-table tbody tr:nth-child(even) {
  background: var(--table-row-alt);
}

.transactions-table tbody tr:hover {
  background: var(--table-row-hover);
}

/* lock first column cleanly */
.transactions-table th:first-child,
.transactions-table td:first-child {
  position: sticky;
  left: 0;
  min-width: 60px;
  width: 60px;
  max-width: 60px;
  text-align: center;
  border-right: 1px solid var(--surface-border-strong);
}

.transactions-table thead th:first-child {
  background:
    linear-gradient(180deg, rgba(12, 16, 20, 0.98) 0%, rgba(6, 9, 11, 1) 100%);
  color: #ffe08a;
  z-index: 700;
}

.transactions-table tbody td:first-child {
  background: var(--table-sticky-cell);
  z-index: 650;
  transform: translateZ(0);
}

.transactions-table tbody tr:nth-child(even) td:first-child {
  background: var(--table-row-alt);
}

.transactions-table tbody tr:hover td:first-child {
  background: var(--table-row-hover);
}

/* keep second column readable */
.transactions-table th:nth-child(2),
.transactions-table td:nth-child(2) {
  min-width: 210px;
}

/* wider cost centre */
.transactions-table th:nth-child(10),
.transactions-table td:nth-child(10) {
  min-width: 260px;
}

/* dropdowns inside transaction rows */
.transactions-table select {
  font-size: 10px;
  height: 28px;
  min-width: 128px;
  padding: 3px 8px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
}

/* tighter date input */
.field input[type="date"] {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  padding: 6px 8px;
  font-size: 12px;
  height: 32px;
}

/* =========================
   SAP TABLES
   ========================= */

.sap-table-wrap {
  overflow: auto;
  border-radius: 0;
  border: 1px solid var(--surface-border);
  max-height: 74vh;
}

#sapTable {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

#sapTable th,
#sapTable td {
  padding: 7px 8px;
  border: 1px solid #dde4ee;
  font-size: 12px;
}

#sapTable thead tr.group-row th {
  position: sticky;
  top: 0;
  background: var(--sap-group-grey);
  color: #fff;
}

#sapTable thead tr.column-row th {
  position: sticky;
  top: 31px;
  background: #f7f7f7;
}

#sapTable thead th.close-dip { background: var(--sap-close-dip); }
#sapTable thead th.closing-sap { background: var(--sap-closing-sap); }
#sapTable thead th.variance { background: var(--sap-variance); }
#sapTable thead th.date-col { background: var(--sap-date-col); }

#sapTable tbody td {
  text-align: right;
}

#sapTable tbody td.date-col {
  text-align: center;
  font-weight: 700;
  position: sticky;
  left: 0;
  background: #fbfdff;
}

/* =========================
   UI
   ========================= */

.card {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(7, 10, 13, 0.04);
  padding: 18px;
  width: 100%;
  margin: 0 0 14px 0;
  overflow: hidden;
  border: 1px solid rgba(16, 39, 70, 0.1);
  background: #ffffff;
}

.card.compact-card {
  padding: 14px 12px;
  background: #ffffff;
  border: 1px solid rgba(16, 39, 70, 0.1);
  box-shadow: 0 12px 24px rgba(7, 10, 13, 0.04);
  position: relative;
}

.card.compact-card::before {
  display: none;
}

.page {
  width: calc(100% - 8px);
  max-width: none;
  margin: 0 auto;
  padding: 18px 8px 28px;
}

.sap-page,
.page.sap-page {
  width: calc(100% - 8px);
  max-width: none;
  margin: 0 auto;
  padding: 18px 8px 24px;
}

.sap-page .card,
.page.sap-page .card {
  width: 100%;
  margin: 0 0 14px 0;
}

.toolbar {
  padding: 6px 0 4px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.toolbar.compact-toolbar {
  gap: 12px 18px;
  justify-content: flex-start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(180px, 100%);
  flex: 1 1 180px;
}

.toolbar.compact-toolbar .field {
  flex: 0 0 190px;
  min-width: 190px;
}

.field label {
  font-size: 13px;
  color: #5a4617;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #b8c0c8;
  border-radius: 8px;
  background: #ffffff;
  color: #3d3216;
  font-weight: 700;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
  font-size: 14px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #7d8894;
  box-shadow: 0 0 0 3px rgba(125, 136, 148, 0.16);
  transform: none;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-self: flex-end;
}

.toolbar.compact-toolbar .actions {
  flex: 1 1 auto;
  align-self: flex-end;
}

.toolbar.compact-toolbar .actions button,
.toolbar.compact-toolbar > button,
.toolbar.compact-toolbar > .field > button {
  min-width: 140px;
}

button {
  background: #ffffff;
  color: #3d3216;
  border-radius: 8px;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid #b8c0c8;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 18px rgba(6, 9, 11, 0.06);
}

button:hover {
  background: #fbfcfd;
  color: #2b220b;
  border-color: #8f9aa6;
  box-shadow: 0 12px 20px rgba(6, 9, 11, 0.08);
}

button:active {
  transform: translateY(1px);
}

button.secondary {
  color: #3d3216;
}

.compact-toolbar .actions button:first-child {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(6, 9, 11, 0.08);
}

button:disabled,
button.secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.status {
  font-size: 13px;
  color: var(--text-soft);
}

.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 14px;
}

.page-intro-copy {
  max-width: 760px;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.08;
  color: #102746;
  letter-spacing: -0.02em;
}

.page-intro p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
}

.table-context {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  padding: 2px 4px 12px;
}

.table-context h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  color: #143258;
}

.table-context p {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: var(--text-soft);
}

.table-context-note {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6a09;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {
  .topbar.sap-nav {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-right: 14px;
    min-height: 0;
  }

  .topbar.sap-nav .brand-block,
  .sap-topbar .brand-block {
    display: contents;
  }

  .topbar.sap-nav .brand-logos,
  .sap-topbar .brand-logos {
    flex-wrap: nowrap;
    gap: 8px;
    order: 1;
  }

  .topbar.sap-nav .brand-copy,
  .sap-topbar .brand-copy {
    min-width: 0;
    position: static;
    align-items: flex-start;
    text-align: left;
    order: 2;
    width: 100%;
    transform: none;
    padding: 0;
  }

  .topbar.sap-nav .brand-edge-slot,
  .sap-topbar .brand-edge-slot {
    position: static;
    order: 3;
    margin-left: auto;
    transform: none;
  }

  .topbar.sap-nav .brand-logo,
  .sap-topbar .brand-logo {
    width: 108px;
    position: static;
    right: auto;
    top: auto;
    transform: none;
  }

  .topbar.sap-nav .partner-logo,
  .sap-topbar .partner-logo {
    width: 52px;
  }

  .topbar.sap-nav .partner-logo.k92-logo,
  .sap-topbar .partner-logo.k92-logo {
    width: 92px;
    padding: 4px 6px;
  }

  .topbar.sap-nav .nav,
  .sap-topbar .nav {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    align-items: flex-start;
    overflow: visible;
    padding-top: 0;
    order: 4;
    margin: 10px 0 0;
  }

  .topbar.sap-nav .nav-row,
  .sap-topbar .nav-row {
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    min-height: 0;
    padding: 6px;
    border: 1px solid rgba(255, 196, 35, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
    backdrop-filter: none;
  }

  .page,
  .sap-page,
  .page.sap-page {
    padding: 16px 12px 24px;
  }

  .page-intro,
  .table-context {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    padding: 14px;
  }

  .card.compact-card {
    padding: 12px;
  }

  .toolbar {
    align-items: stretch;
  }

  .field,
  .actions {
    flex-basis: 100%;
  }

  .toolbar.compact-toolbar .field,
  .toolbar.compact-toolbar .actions {
    flex-basis: 100%;
    min-width: 0;
  }

  .actions button,
  .toolbar button,
  .toolbar .secondary,
  .toolbar input,
  .toolbar select {
    width: 100%;
  }

  .table-wrap,
  .sap-table-wrap {
    max-height: none;
  }
}

.topbar,
.topbar.sap-nav,
.sap-topbar,
.topbar.sap-nav .nav-row,
.sap-topbar .nav-row,
.topbar.sap-nav .nav a,
.topbar.sap-nav .nav .nav-dropdown-toggle,
.sap-topbar .nav a,
.sap-topbar .nav .nav-dropdown-toggle,
.card,
.panel,
.stat-card,
.table-card,
.table-wrap,
.sap-table-wrap,
button,
input,
select,
textarea,
.page-btn,
.pagination .page-btn,
.summary-tile {
  border-radius: 8px !important;
}

html body .table-card,
html body .table-shell,
html body .rule-table-card,
html body .table-wrap,
html body .sap-table-wrap,
html body .transactions-table thead th:first-child,
html body .transactions-table thead th:last-child,
html body .transactions-table tbody tr:last-child td:first-child,
html body .transactions-table tbody tr:last-child td:last-child,
html body .balance-table thead th:first-child,
html body .balance-table thead th:last-child,
html body .balance-table tbody tr:last-child td:first-child,
html body .balance-table tbody tr:last-child td:last-child,
html body .locator-table thead th:first-child,
html body .locator-table thead th:last-child,
html body .locator-table tbody tr:last-child td:first-child,
html body .locator-table tbody tr:last-child td:last-child {
  border-radius: 0 !important;
}

/* =========================
   K92 DASHBOARD REFRESH
   ========================= */

:root {
  --bg: #dfe8ef;
  --surface: rgba(250, 252, 253, 0.96);
  --surface-soft: #edf4f8;
  --surface-border: #c8d7e2;
  --surface-border-strong: #8ea4b6;
  --text: #142739;
  --text-soft: #4b6478;
  --text-faint: #728597;
  --topbar-green: #0f5f8e;
  --blue: #0f5f8e;
  --brand-gold: #b79a59;
  --brand-black: #0f2130;
  --brand-navy: #123654;
  --brand-teal: #0d5f77;
  --brand-ivory: #f3f6f8;
  --nav-dark: #123654;
  --nav-hover: #d1b476;
  --nav-active: #b79a59;
  --sap-group-grey: #204a6b;
  --sap-close-dip: #cddbe7;
  --sap-closing-sap: #dce7f0;
  --sap-variance: #e5d8c1;
  --sap-date-col: #eef3f7;
  --table-head-bg: #143758;
  --table-head-bg-strong: #0f2d46;
  --table-row-alt: #f2f7fa;
  --table-row-hover: #e3edf4;
  --table-sticky-cell: #f6f9fb;
  --shadow: 0 24px 54px rgba(9, 28, 44, 0.12);
}

html body {
  background:
    radial-gradient(circle at top left, rgba(15, 95, 142, 0.16) 0%, rgba(15, 95, 142, 0) 28%),
    radial-gradient(circle at top right, rgba(183, 154, 89, 0.12) 0%, rgba(183, 154, 89, 0) 24%),
    linear-gradient(180deg, #f4f8fb 0%, #e7eef4 42%, #dfe8ef 100%) !important;
  color: var(--text);
}

html body .topbar.sap-nav,
html body .sap-topbar {
  background:
    linear-gradient(135deg, rgba(183, 154, 89, 0.18) 0%, rgba(183, 154, 89, 0) 36%),
    linear-gradient(180deg, #194d72 0%, #123654 58%, #0d2940 100%) !important;
  border-bottom: 4px solid rgba(183, 154, 89, 0.9) !important;
  box-shadow:
    0 20px 42px rgba(9, 28, 44, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06) !important;
}

html body .topbar.sap-nav .sub,
html body .sap-topbar .sub {
  color: #dcc38c !important;
}

html body .topbar.sap-nav .nav-row,
html body .sap-topbar .nav-row {
  border-color: rgba(202, 220, 235, 0.26) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
}

html body .topbar.sap-nav .nav a:hover,
html body .topbar.sap-nav .nav .nav-dropdown-toggle:hover,
html body .sap-topbar .nav a:hover,
html body .sap-topbar .nav .nav-dropdown-toggle:hover,
html body .topbar.sap-nav .nav .nav-dropdown.is-open > .nav-dropdown-toggle,
html body .sap-topbar .nav .nav-dropdown.is-open > .nav-dropdown-toggle {
  border-color: rgba(183, 154, 89, 0.4) !important;
  background: rgba(183, 154, 89, 0.14) !important;
}

html body .topbar.sap-nav .nav a.active,
html body .topbar.sap-nav .nav .nav-dropdown-toggle.active,
html body .topbar.sap-nav .nav .nav-dropdown.active > .nav-dropdown-toggle,
html body .sap-topbar .nav a.active,
html body .sap-topbar .nav .nav-dropdown-toggle.active,
html body .sap-topbar .nav .nav-dropdown.active > .nav-dropdown-toggle {
  color: #102230 !important;
  border-color: rgba(183, 154, 89, 0.95) !important;
  background: linear-gradient(180deg, #d7bf86 0%, #b79a59 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(9, 28, 44, 0.18) !important;
}

html body .topbar.sap-nav .nav .nav-dropdown-menu,
html body .sap-topbar .nav .nav-dropdown-menu {
  border-color: rgba(183, 154, 89, 0.36) !important;
  background: linear-gradient(180deg, rgba(18, 40, 62, 0.99) 0%, rgba(12, 28, 43, 0.99) 100%) !important;
}

html body .topbar.sap-nav .nav .nav-dropdown-menu a:hover,
html body .topbar.sap-nav .nav .nav-dropdown-menu a.active,
html body .sap-topbar .nav .nav-dropdown-menu a:hover,
html body .sap-topbar .nav .nav-dropdown-menu a.active {
  background: rgba(183, 154, 89, 0.18) !important;
  color: #f8f1df !important;
}

html body .page-hero-copy h1,
html body .hero h1 {
  color: #123654 !important;
  letter-spacing: -0.02em;
}

html body .page-hero-copy p,
html body .hero p {
  color: #496173 !important;
}

html body .meta-pill,
html body .status-badge,
html body .switch-link,
html body .visual-board,
html body .status-banner,
html body .toolbar-card,
html body .hero {
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.98) 0%, rgba(233, 241, 246, 0.98) 100%) !important;
  border-color: rgba(15, 95, 142, 0.18) !important;
  box-shadow: 0 16px 34px rgba(9, 28, 44, 0.08) !important;
}

html body .meta-label,
html body .business-window-note,
html body .compact-toolbar .field label,
html body .toolbar.compact-toolbar .field label,
html body label[for="reconDate"] {
  color: #547086 !important;
}

html body .meta-value,
html body .status-badge,
html body .switch-link {
  color: #16344f !important;
}

html body .card,
html body .table-card,
html body .stat-card,
html body .table-shell,
html body .rule-table-card,
html body .site-board,
html body .table-wrap,
html body .sap-table-wrap {
  background: linear-gradient(180deg, rgba(252, 253, 254, 0.98) 0%, rgba(243, 247, 250, 0.98) 100%) !important;
  border-color: rgba(17, 57, 86, 0.12) !important;
  box-shadow: 0 18px 38px rgba(9, 28, 44, 0.08) !important;
}

html body .site-board + .site-board {
  border-top-color: rgba(17, 57, 86, 0.12) !important;
}

html body .field label {
  color: #51697b !important;
}

html body button,
html body .btn,
html body .mini-btn,
html body .multi-select-trigger,
html body .field input,
html body .field select,
html body .field textarea,
html body .summary-tile,
html body input#reconDate,
html body .compact-toolbar .field input,
html body .toolbar.compact-toolbar .field input {
  border-color: #b8c0c8 !important;
  background: #ffffff !important;
  color: #3d3216 !important;
  box-shadow: none !important;
}

html body button,
html body .btn,
html body .mini-btn,
html body .page-btn,
html body .switch-link,
html body .multi-select-trigger {
  background: #ffffff !important;
  border-color: #b8c0c8 !important;
  color: #3d3216 !important;
  text-shadow: none !important;
}

html body button:hover,
html body .btn:hover,
html body .mini-btn:hover,
html body .page-btn:hover,
html body .switch-link:hover,
html body .multi-select-trigger:hover {
  background: #fbfcfd !important;
  border-color: #8f9aa6 !important;
  color: #2b220b !important;
}

html body .switch-link:hover {
  background: #fbfcfd !important;
}

html body .switch-link.active {
  background: #ffffff !important;
  border-color: #8f9aa6 !important;
  color: #2b220b !important;
}

html body .field input:focus,
html body .field select:focus,
html body .field textarea:focus,
html body .summary-tile:focus,
html body .multi-select-trigger:focus,
html body input#reconDate:focus,
html body .compact-toolbar .field input:focus,
html body .toolbar.compact-toolbar .field input:focus {
  outline: none;
  border-color: #7d8894 !important;
  box-shadow: 0 0 0 3px rgba(125, 136, 148, 0.16) !important;
}

html body .multi-select.open .multi-select-trigger {
  background: #ffffff !important;
  border-color: #7d8894 !important;
  color: #2b220b !important;
}

html body .multi-select-trigger::after {
  color: #5d7384 !important;
}

html body .status-banner[data-tone="info"] {
  border-color: rgba(15, 95, 142, 0.2) !important;
  background: rgba(227, 238, 244, 0.94) !important;
  color: #17385f !important;
}

html body .status-badge[data-tone="dirty"],
html body .status-badge[data-tone="success"],
html body .rule-table tbody tr.recon-only-row td {
  background: rgba(227, 238, 244, 0.92) !important;
  border-color: rgba(15, 95, 142, 0.28) !important;
  color: #20465f !important;
}

html body .rule-table tbody tr.recon-only-row:nth-child(even) td {
  background: rgba(216, 229, 238, 0.92) !important;
}

html body .table-wrap thead th,
html body .transactions-table thead th,
html body .rule-table th {
  background: #ffffff !important;
  color: #143258 !important;
  border-top-color: #d7e2ea !important;
  border-bottom-color: #cfdde7 !important;
}

html body .table-wrap table th:first-child,
html body .transactions-table thead th:first-child {
  background: #ffffff !important;
  color: #143258 !important;
}

html body .table-wrap tbody tr:nth-child(even) td,
html body .transactions-table tbody tr:nth-child(even),
html body .table-wrap table td:first-child,
html body .transactions-table tbody td:first-child {
  background: #f2f7fa !important;
}

html body .table-wrap tbody tr:hover td,
html body .transactions-table tbody tr:hover,
html body .transactions-table tbody tr:hover td:first-child {
  background: #e4edf4 !important;
}

html body .page-btn {
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.98) 0%, rgba(232, 240, 245, 0.98) 100%) !important;
  color: #17385f !important;
  border-color: rgba(15, 95, 142, 0.22) !important;
}

html body .page-btn:hover {
  background: linear-gradient(180deg, rgba(236, 244, 249, 0.98) 0%, rgba(219, 231, 239, 0.98) 100%) !important;
}

html body .page-btn.active {
  background: linear-gradient(180deg, #1a6798 0%, #123f61 100%) !important;
  color: #ffffff !important;
  border-color: rgba(15, 95, 142, 0.55) !important;
}

html body .loading-placeholder td,
html body .skeleton-row td,
html body .loading-skeleton td {
  background: #f1f6fa !important;
}

html body .loading-placeholder td::after,
html body .skeleton-row td::after,
html body .loading-skeleton td::after {
  background: linear-gradient(90deg, rgba(18, 54, 84, 0.05) 0%, rgba(15, 95, 142, 0.18) 50%, rgba(18, 54, 84, 0.05) 100%) !important;
}

/* =========================
   FORMAL FLAT UI
   ========================= */

html body .topbar.sap-nav,
html body .sap-topbar {
  background: #123654 !important;
  box-shadow: none !important;
}

html body .topbar.sap-nav,
html body .sap-topbar,
html body .topbar.sap-nav .nav-row,
html body .sap-topbar .nav-row,
html body .topbar.sap-nav .nav a,
html body .topbar.sap-nav .nav .nav-dropdown-toggle,
html body .topbar.sap-nav .nav .nav-logout,
html body .sap-topbar .nav a,
html body .sap-topbar .nav .nav-dropdown-toggle,
html body .sap-topbar .nav .nav-logout,
html body .topbar.sap-nav .nav .nav-dropdown-menu,
html body .sap-topbar .nav .nav-dropdown-menu,
html body .topbar.sap-nav .nav .nav-dropdown-menu a,
html body .sap-topbar .nav .nav-dropdown-menu a {
  border-radius: 0 !important;
}

html body .topbar.sap-nav .nav-row,
html body .sap-topbar .nav-row,
html body .topbar.sap-nav .nav .nav-dropdown-menu,
html body .sap-topbar .nav .nav-dropdown-menu {
  background: #163d5e !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html body .topbar.sap-nav .nav a,
html body .topbar.sap-nav .nav .nav-dropdown-toggle,
html body .topbar.sap-nav .nav .nav-logout,
html body .sap-topbar .nav a,
html body .sap-topbar .nav .nav-dropdown-toggle,
html body .sap-topbar .nav .nav-logout,
html body .switch-link,
html body .page-btn,
html body button,
html body .btn,
html body .mini-btn {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body button,
html body .btn,
html body .mini-btn {
  background: #ffffff !important;
  border-color: #b8c0c8 !important;
  color: #3d3216 !important;
}

html body .topbar.sap-nav .nav a,
html body .topbar.sap-nav .nav .nav-dropdown-toggle,
html body .topbar.sap-nav .nav .nav-logout,
html body .sap-topbar .nav a,
html body .sap-topbar .nav .nav-dropdown-toggle,
html body .sap-topbar .nav .nav-logout {
  background: transparent !important;
  color: #f3f7fb !important;
  border-color: transparent !important;
}

html body button:hover,
html body .btn:hover,
html body .mini-btn:hover,
html body .switch-link:hover,
html body .page-btn:hover {
  background: #fbfcfd !important;
  border-color: #8f9aa6 !important;
  color: #2b220b !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body .switch-link,
html body .page-btn,
html body .status-badge,
html body .meta-pill,
html body .visual-board,
html body .status-banner,
html body .toolbar-card,
html body .hero,
html body .card,
html body .table-card,
html body .stat-card,
html body .table-shell,
html body .rule-table-card,
html body .site-board,
html body .table-wrap,
html body .sap-table-wrap,
html body .field input,
html body .field select,
html body .field textarea,
html body .multi-select-trigger,
html body input#reconDate {
  background-image: none !important;
  box-shadow: none !important;
}

html body .switch-link,
html body .status-badge,
html body .meta-pill,
html body .visual-board,
html body .status-banner,
html body .toolbar-card,
html body .hero,
html body .card,
html body .table-card,
html body .stat-card,
html body .table-shell,
html body .rule-table-card,
html body .site-board,
html body .table-wrap,
html body .sap-table-wrap {
  background: #f8fbfd !important;
}

html body .field input,
html body .field select,
html body .field textarea,
html body .multi-select-trigger,
html body input#reconDate {
  background: #ffffff !important;
}

html body .topbar.sap-nav .nav a.active,
html body .topbar.sap-nav .nav .nav-dropdown-toggle.active,
html body .topbar.sap-nav .nav .nav-dropdown.active > .nav-dropdown-toggle,
html body .sap-topbar .nav a.active,
html body .sap-topbar .nav .nav-dropdown-toggle.active,
html body .sap-topbar .nav .nav-dropdown.active > .nav-dropdown-toggle {
  background: transparent !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: inset 0 -2px 0 #b79a59 !important;
}

html body .topbar.sap-nav .nav .nav-logout:hover,
html body .sap-topbar .nav .nav-logout:hover {
  background: transparent !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: inset 0 -2px 0 rgba(183, 154, 89, 0.9) !important;
}

html body .table-wrap thead th,
html body .transactions-table thead th,
html body .rule-table th,
html body .table-wrap table th:first-child,
html body .transactions-table thead th:first-child {
  background-image: none !important;
  box-shadow: none !important;
}

/* =========================
   K92 TABLE HEADINGS
   ========================= */

html body .table-wrap thead th,
html body .transactions-table thead th,
html body .vehicle-table thead th,
html body .vehicle-table th.orange,
html body .vehicle-table th.green,
html body .vehicle-table th.gray,
html body .opening-table th,
html body .entries-table th,
html body .locator-table thead th,
html body .locator-table thead .column-row th,
html body .balance-table th,
html body .rule-table th,
html body .sap-table-wrap thead th,
html body #sapTable thead th,
html body th {
  background: #ffffff !important;
  color: #143258 !important;
  border-top: 1px solid #b79a59 !important;
  border-bottom: 2px solid #b79a59 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* =========================
   SHARED LAYOUT POLISH
   Layout-only standardization layer.
   ========================= */

html body {
  --k92-blue-900: #123654;
  --k92-blue-800: #163d5e;
  --k92-blue-700: #1a527a;
  --k92-gold: #b79a59;
  --k92-gold-soft: rgba(183, 154, 89, 0.18);
  --k92-border: rgba(17, 57, 86, 0.14);
  --k92-row-alt: #f2f7fa;
  --k92-row-hover: #e4edf4;
  --k92-surface: #f8fbfd;
  --k92-control-height: 40px;
}

html body .page,
html body .sap-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 6px 24px;
}

html body .card,
html body .compact-card,
html body .table-card,
html body .table-shell,
html body .toolbar-card,
html body .stat-card,
html body .rule-table-card {
  border: 1px solid var(--k92-border) !important;
  background: var(--k92-surface) !important;
}

html body .compact-card,
html body .toolbar-card {
  overflow: visible !important;
}

html body .toolbar,
html body .toolbar.compact-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

html body .toolbar.compact-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, max-content));
  justify-content: start;
  align-items: end;
}

html body .toolbar .field,
html body .toolbar.compact-toolbar .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 138px;
  max-width: 220px;
}

html body .toolbar .summary-field {
  min-width: 170px;
}

html body .toolbar .actions,
html body .toolbar.compact-toolbar .actions,
html body .toolbar-left,
html body .toolbar-right {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

html body .field input,
html body .field select,
html body .field textarea,
html body .multi-select,
html body .multi-select-trigger,
html body .summary-tile,
html body button,
html body .btn,
html body .mini-btn {
  min-height: var(--k92-control-height) !important;
}

html body .field input,
html body .field select,
html body .field textarea,
html body .multi-select-trigger,
html body .summary-tile {
  border: 1px solid #b8c0c8 !important;
}

html body .multi-select {
  position: relative;
  width: 100%;
}

html body .multi-select-trigger {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 34px 0 12px !important;
  white-space: nowrap;
}

html body .multi-select-panel {
  min-width: 100%;
  max-width: min(340px, 92vw);
  z-index: 2200 !important;
}

html body .table-card,
html body .table-shell {
  padding: 14px !important;
}

html body .table-wrap,
html body .sap-table-wrap {
  border: 1px solid var(--k92-border) !important;
  background: #ffffff !important;
  scrollbar-gutter: stable both-edges;
}

html body .table-wrap table,
html body .sap-table-wrap table,
html body .transactions-table,
html body .entries-table,
html body .vehicle-table,
html body .opening-table,
html body .balance-table,
html body .locator-table {
  border-spacing: 0 !important;
  background: #ffffff !important;
}

html body .table-wrap thead th,
html body .sap-table-wrap thead th,
html body .transactions-table thead th,
html body .entries-table thead th,
html body .vehicle-table thead th,
html body .opening-table thead th,
html body .balance-table thead th,
html body .locator-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  background: #ffffff !important;
  background-clip: padding-box !important;
  color: #143258 !important;
  border-top: 1px solid var(--k92-gold) !important;
  border-bottom: 2px solid var(--k92-gold) !important;
  vertical-align: middle;
}

html body .table-wrap td,
html body .sap-table-wrap td,
html body .transactions-table td,
html body .entries-table td,
html body .vehicle-table td,
html body .opening-table td,
html body .balance-table td,
html body .locator-table td {
  border-right: 1px solid var(--k92-border) !important;
  border-bottom: 1px solid var(--k92-border) !important;
  vertical-align: middle;
}

html body .table-wrap tbody tr:nth-child(even) td,
html body .sap-table-wrap tbody tr:nth-child(even) td,
html body .entries-table tbody tr:nth-child(even) td,
html body .vehicle-table tbody tr:nth-child(even) td,
html body .opening-table tbody tr:nth-child(even) td,
html body .balance-table tbody tr:nth-child(even) td,
html body .locator-table tbody tr:nth-child(even) td {
  background: var(--k92-row-alt) !important;
}

html body .table-wrap tbody tr:hover td,
html body .sap-table-wrap tbody tr:hover td,
html body .transactions-table tbody tr:hover td,
html body .entries-table tbody tr:hover td,
html body .vehicle-table tbody tr:hover td,
html body .opening-table tbody tr:hover td,
html body .balance-table tbody tr:hover td,
html body .locator-table tbody tr:hover td {
  background: var(--k92-row-hover) !important;
}

html body .transactions-table tbody tr.manual-override-row td {
  background: #fff5d8 !important;
  border-bottom-color: rgba(183, 154, 89, 0.55) !important;
}

html body .transactions-table tbody tr.manual-override-row td:first-child {
  box-shadow: inset 4px 0 0 var(--k92-gold);
}

html body .transactions-table tbody tr.manual-override-row:hover td {
  background: #ffefbf !important;
}

html body .transactions-table tbody tr.duplicate-row td {
  background: #ffe6e6 !important;
  border-bottom-color: rgba(169, 68, 66, 0.35) !important;
}

html body .transactions-table tbody tr.duplicate-row td:first-child {
  box-shadow: inset 4px 0 0 #b94a48;
}

html body .transactions-table tbody tr.duplicate-row:hover td {
  background: #ffd6d6 !important;
}

html body .transactions-table tbody tr.internal-transfer-row td {
  background: #eaf4ff !important;
  border-bottom-color: rgba(45, 103, 151, 0.32) !important;
}

html body .transactions-table tbody tr.internal-transfer-row td:first-child {
  box-shadow: inset 4px 0 0 #2d6797;
}

html body .transactions-table tbody tr.internal-transfer-row:hover td {
  background: #d9ecff !important;
}

html body .transactions-table .quantity-edit {
  width: 76px;
  min-height: 20px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #143258 !important;
  font: inherit;
  text-align: left;
  box-shadow: none !important;
  appearance: textfield;
}

html body .transactions-table .quantity-edit::-webkit-outer-spin-button,
html body .transactions-table .quantity-edit::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

html body .transactions-table .quantity-edit.edited {
  color: #b00020 !important;
  font-weight: 800;
}

html body .table-wrap tfoot td,
html body .sap-table-wrap tfoot td,
html body .total-row td,
html body tr.total-row td,
html body tfoot .grand-total td {
  font-weight: 800;
}

html body .topbar.sap-nav,
html body .sap-topbar {
  min-height: 76px;
}

html body .topbar.sap-nav .brand-copy,
html body .sap-topbar .brand-copy {
  min-width: 240px;
}

html body .topbar.sap-nav .nav-row,
html body .sap-topbar .nav-row {
  min-height: 48px;
  border: 0 !important;
  outline: 0 !important;
  background: #123654 !important;
  box-shadow: none !important;
}

html body .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html body .card.compact-card {
  overflow: visible !important;
}

html body .multi-select.open {
  z-index: 4200 !important;
}

html body .multi-select.open .multi-select-panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 5200 !important;
  width: max-content !important;
  min-width: 100% !important;
  max-width: min(420px, calc(100vw - 24px)) !important;
  max-height: 320px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html body .multi-select [data-multi-select-options] {
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
}

html body .toolbar.compact-toolbar.hide-field-labels .field .multi-select-option,
html body .multi-select-option {
  position: static !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  padding: 7px 4px !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  border: 0 !important;
  min-height: 28px;
  line-height: 1.25;
  color: #143258 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

html body .multi-select-option input[type="checkbox"] {
  appearance: auto !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #8f9aa6 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}

html body .multi-select-option span {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: #143258 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

html body .topbar.sap-nav .nav a,
html body .topbar.sap-nav .nav .nav-dropdown-toggle,
html body .topbar.sap-nav .nav .nav-logout,
html body .sap-topbar .nav a,
html body .sap-topbar .nav .nav-dropdown-toggle,
html body .sap-topbar .nav .nav-logout {
  min-height: 44px;
  padding-inline: 14px;
}

@media (max-width: 1100px) {
  html body .toolbar.compact-toolbar {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  html body .toolbar .field,
  html body .toolbar.compact-toolbar .field,
  html body .toolbar .summary-field {
    max-width: none;
  }
}

@media (max-width: 720px) {
  html body .page,
  html body .sap-page {
    padding-inline: 4px;
  }

  html body .toolbar,
  html body .toolbar.compact-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  html body .toolbar .actions,
  html body .toolbar.compact-toolbar .actions,
  html body .toolbar-left,
  html body .toolbar-right {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  html body .toolbar button,
  html body .toolbar .field,
  html body .toolbar.compact-toolbar .field,
  html body .multi-select-trigger {
    width: 100%;
  }

  html body .table-card,
  html body .table-shell {
    padding: 8px !important;
  }
}

/* =========================
   EXECUTIVE UI PASS
   Visual-only refinement layer.
   ========================= */

html body {
  --ui-ink: #10253a;
  --ui-navy: #123654;
  --ui-navy-deep: #0d2b44;
  --ui-blue: #1f5d83;
  --ui-cyan: #2d7f95;
  --ui-gold: #b79a59;
  --ui-gold-soft: #efe4cb;
  --ui-green: #2f765b;
  --ui-panel: #fbfdfe;
  --ui-panel-soft: #f2f7fa;
  --ui-line: #cfdae4;
  --ui-line-strong: #9eb1c2;
  --ui-shadow: 0 16px 34px rgba(16, 37, 58, 0.08);
  --ui-shadow-soft: 0 8px 20px rgba(16, 37, 58, 0.06);
  background:
    linear-gradient(180deg, #f7fafc 0%, #ebf2f7 44%, #dfe8ef 100%) !important;
}

html body .topbar.sap-nav,
html body .sap-topbar {
  min-height: 72px !important;
  padding: 10px 20px !important;
  background: #123654 !important;
  border-bottom: 3px solid var(--ui-gold) !important;
}

html body .topbar.sap-nav .brand-title,
html body .sap-topbar .brand-title {
  font-size: 28px !important;
  letter-spacing: 0 !important;
  line-height: 0.95 !important;
}

html body .topbar.sap-nav .brand-heading,
html body .sap-topbar .brand-heading {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .topbar.sap-nav .brand-fuel-icon,
html body .sap-topbar .brand-fuel-icon {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  color: #f4f8fb !important;
  opacity: 0.94 !important;
  flex: 0 0 auto !important;
}

html body .topbar.sap-nav .brand-fuel-icon svg,
html body .sap-topbar .brand-fuel-icon svg {
  width: 36px !important;
  height: 36px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

html body .topbar.sap-nav .sub,
html body .sap-topbar .sub {
  color: #f0d790 !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
}

html body .topbar.sap-nav .brand-copy,
html body .sap-topbar .brand-copy {
  left: 20px !important;
  min-width: 250px !important;
}

html body .topbar.sap-nav .brand-edge-slot,
html body .sap-topbar .brand-edge-slot {
  right: 18px !important;
}

html body .topbar.sap-nav .nav-row,
html body .sap-topbar .nav-row {
  background: #123654 !important;
  min-height: 44px !important;
  padding: 0 !important;
  gap: 4px !important;
}

html body .topbar.sap-nav .nav a,
html body .topbar.sap-nav .nav .nav-dropdown-toggle,
html body .topbar.sap-nav .nav .nav-logout,
html body .sap-topbar .nav a,
html body .sap-topbar .nav .nav-dropdown-toggle,
html body .sap-topbar .nav .nav-logout {
  min-height: 40px !important;
  padding: 10px 13px !important;
  color: #eef5fb !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

html body .topbar.sap-nav .nav a:hover,
html body .topbar.sap-nav .nav .nav-dropdown-toggle:hover,
html body .topbar.sap-nav .nav .nav-logout:hover,
html body .sap-topbar .nav a:hover,
html body .sap-topbar .nav .nav-dropdown-toggle:hover,
html body .sap-topbar .nav .nav-logout:hover {
  color: #ffffff !important;
  box-shadow: inset 0 -2px 0 rgba(239, 215, 144, 0.7) !important;
}

html body .topbar.sap-nav .nav a.active,
html body .topbar.sap-nav .nav .nav-dropdown-toggle.active,
html body .topbar.sap-nav .nav .nav-dropdown.active > .nav-dropdown-toggle,
html body .sap-topbar .nav a.active,
html body .sap-topbar .nav .nav-dropdown-toggle.active,
html body .sap-topbar .nav .nav-dropdown.active > .nav-dropdown-toggle {
  color: #ffffff !important;
  box-shadow: inset 0 -3px 0 var(--ui-gold) !important;
}

html body .topbar.sap-nav .nav .nav-dropdown-menu,
html body .sap-topbar .nav .nav-dropdown-menu {
  top: calc(100% + 8px) !important;
  border: 1px solid rgba(239, 215, 144, 0.22) !important;
  background: #0d2b44 !important;
  box-shadow: 0 18px 36px rgba(7, 18, 28, 0.24) !important;
  padding: 8px !important;
}

html body .topbar.sap-nav .nav .nav-dropdown-menu a,
html body .sap-topbar .nav .nav-dropdown-menu a {
  min-height: 34px !important;
  padding: 9px 11px !important;
}

html body .page,
html body .sap-page,
html body .page.sap-page {
  padding: 14px 10px 24px !important;
}

html body .card,
html body .compact-card,
html body .table-card,
html body .table-shell,
html body .toolbar-card,
html body .stat-card,
html body .rule-table-card,
html body .lookup-panel,
html body .visual-board,
html body .site-board,
html body .status-banner,
html body .meta-pill {
  background: var(--ui-panel) !important;
  border: 1px solid rgba(16, 37, 58, 0.12) !important;
  box-shadow: var(--ui-shadow-soft) !important;
}

html body .compact-card,
html body .toolbar-card,
html body .card.compact-card {
  padding: 6px 16px !important;
}

html body .toolbar,
html body .toolbar.compact-toolbar {
  gap: 10px 12px !important;
}

html body .toolbar.compact-toolbar {
  grid-template-columns: repeat(auto-fit, minmax(132px, max-content)) !important;
}

html body .toolbar .field,
html body .toolbar.compact-toolbar .field {
  min-width: 132px !important;
  max-width: 210px !important;
}

html body .toolbar .field.wide,
html body .toolbar.compact-toolbar .field.wide {
  min-width: 190px !important;
  max-width: 260px !important;
}

html body .toolbar .summary-field {
  min-width: 150px !important;
  max-width: 170px !important;
}

html body .field label,
html body .compact-toolbar .field label,
html body .toolbar.compact-toolbar .field label,
html body label[for="reconDate"] {
  color: #46677f !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.045em !important;
}

html body .field input,
html body .field select,
html body .field textarea,
html body .multi-select-trigger,
html body .summary-tile,
html body input#reconDate {
  min-height: 38px !important;
  height: 38px !important;
  border: 1px solid #b8c0c8 !important;
  background: #ffffff !important;
  color: #172b3f !important;
  font-weight: 760 !important;
  padding: 0 12px !important;
}

html body .field input[type="date"],
html body input#reconDate {
  min-width: 126px !important;
  width: 126px !important;
}

html body button,
html body .btn,
html body .mini-btn,
html body .page-btn,
html body .switch-link {
  min-height: 38px !important;
  padding: 9px 16px !important;
  border: 1px solid #b8c0c8 !important;
  background: #ffffff !important;
  color: #2b271d !important;
  font-weight: 820 !important;
}

html body button:hover,
html body .btn:hover,
html body .mini-btn:hover,
html body .page-btn:hover,
html body .switch-link:hover {
  background: #fbfcfd !important;
  border-color: #8f9aa6 !important;
}

html body .field input:focus,
html body .field select:focus,
html body .field textarea:focus,
html body .multi-select-trigger:focus,
html body input#reconDate:focus {
  border-color: var(--ui-blue) !important;
  box-shadow: 0 0 0 3px rgba(31, 93, 131, 0.14) !important;
}

html body .multi-select.open .multi-select-trigger {
  border-color: var(--ui-blue) !important;
  box-shadow: 0 0 0 3px rgba(31, 93, 131, 0.12) !important;
}

html body .multi-select-panel {
  border: 1px solid #b8c7d3 !important;
  box-shadow: 0 18px 38px rgba(16, 37, 58, 0.16) !important;
}

html body .table-card,
html body .table-shell {
  padding: 10px 12px !important;
}

html body .table-wrap,
html body .sap-table-wrap {
  background: #ffffff !important;
  border: 1px solid var(--ui-line) !important;
  box-shadow: var(--ui-shadow-soft) !important;
}

html body .entries-table th,
html body .entries-table td,
html body .vehicle-table th,
html body .vehicle-table td,
html body .opening-table th,
html body .opening-table td,
html body .balance-table th,
html body .balance-table td,
html body .locator-table th,
html body .locator-table td,
html body .lookup-table th,
html body .lookup-table td,
html body table th,
html body table td {
  font-size: 12px !important;
  line-height: 1.2 !important;
  padding: 7px 8px !important;
}

html body .transactions-table th,
html body .transactions-table td {
  line-height: 1.1 !important;
  padding: 4px !important;
}

html body .transactions-table thead th,
html body .entries-table thead th,
html body .vehicle-table thead th,
html body .opening-table thead th,
html body .balance-table thead th,
html body .locator-table thead th,
html body .lookup-table thead th,
html body .table-wrap thead th,
html body .sap-table-wrap thead th,
html body #sapTable thead th,
html body th {
  background: #fdfefe !important;
  color: #123654 !important;
  border-top: 1px solid var(--ui-gold) !important;
  border-bottom: 2px solid var(--ui-gold) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
}

html body .transactions-table thead th {
  background: #f8fbfd !important;
  color: #062a52 !important;
  border-top: 1px solid #b8862b !important;
  border-bottom: 2px solid #b8862b !important;
}

html body .table-wrap tbody tr:nth-child(even) td,
html body .sap-table-wrap tbody tr:nth-child(even) td,
html body .transactions-table tbody tr:nth-child(even) td,
html body .entries-table tbody tr:nth-child(even) td,
html body .vehicle-table tbody tr:nth-child(even) td,
html body .opening-table tbody tr:nth-child(even) td,
html body .balance-table tbody tr:nth-child(even) td,
html body .locator-table tbody tr:nth-child(even) td,
html body .lookup-table tbody tr:nth-child(even) td {
  background: #f1f6f9 !important;
}

html body .table-wrap tbody tr:hover td,
html body .sap-table-wrap tbody tr:hover td,
html body .transactions-table tbody tr:hover td,
html body .entries-table tbody tr:hover td,
html body .vehicle-table tbody tr:hover td,
html body .opening-table tbody tr:hover td,
html body .balance-table tbody tr:hover td,
html body .locator-table tbody tr:hover td,
html body .lookup-table tbody tr:hover td {
  background: #e5eff5 !important;
}

html body .entries-table select {
  height: 30px !important;
  min-height: 30px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(17, 43, 66, 0.22) !important;
  border-radius: 0 !important;
  color: #112b42 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .transactions-table select {
  height: 24px !important;
  min-height: 24px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(17, 43, 66, 0.22) !important;
  border-radius: 0 !important;
  color: #112b42 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .entries-table .action-select {
  height: 24px !important;
  min-height: 24px !important;
}

html body .transactions-table select:focus,
html body .entries-table select:focus {
  outline: none !important;
  border-bottom-color: #b8862b !important;
  background: rgba(255, 255, 255, 0.55) !important;
}

html body .transactions-body {
  gap: 6px !important;
}

html body .transactions-body > .card {
  margin-bottom: 0 !important;
}

html body .transactions-body > .table-shell {
  margin-top: 0 !important;
  padding-top: 6px !important;
}

html body .transactions-table tbody tr.manual-override-row td {
  background: #fff3cf !important;
}

html body .transactions-table tbody tr.duplicate-row td {
  background: #ffe1e1 !important;
}

html body .transactions-table tbody tr.internal-transfer-row td {
  background: #e4f2fb !important;
}

html body .transactions-table tbody tr.manual-override-row td:first-child {
  box-shadow: inset 4px 0 0 var(--ui-gold) !important;
}

html body .transactions-table tbody tr.duplicate-row td:first-child {
  box-shadow: inset 4px 0 0 #b94a48 !important;
}

html body .transactions-table tbody tr.internal-transfer-row td:first-child {
  box-shadow: inset 4px 0 0 var(--ui-blue) !important;
}

html body .summary-tile-value,
html body .meta-value {
  color: #10253a !important;
}

html body .status-badge[data-tone="success"],
html body .status-banner[data-tone="success"] {
  border-color: rgba(47, 118, 91, 0.28) !important;
  background: #edf7f2 !important;
  color: #245d48 !important;
}

html body .status-badge[data-tone="dirty"],
html body .status-banner[data-tone="info"] {
  border-color: rgba(31, 93, 131, 0.22) !important;
  background: #edf5fa !important;
  color: #17435f !important;
}

@media (max-width: 1100px) {
  html body .topbar.sap-nav .brand-copy,
  html body .sap-topbar .brand-copy {
    position: static !important;
    transform: none !important;
    min-width: 100% !important;
    order: 1 !important;
  }

  html body .topbar.sap-nav .nav,
  html body .sap-topbar .nav {
    order: 2 !important;
    width: 100% !important;
    justify-content: flex-start !important;
    margin: 6px 0 0 !important;
  }

  html body .topbar.sap-nav .nav-row,
  html body .sap-topbar .nav-row {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  html body .topbar.sap-nav .brand-edge-slot,
  html body .sap-topbar .brand-edge-slot {
    top: 20px !important;
    transform: none !important;
  }
}

html body .locator-table tbody tr.grand-total td,
html body .locator-table tbody tr.grand-total:hover td,
html body .locator-table tbody tr.grand-total:nth-child(even) td,
html body .locator-table tbody tr.grand-total:nth-child(odd) td,
html body .locator-table tbody tr.grand-total td:nth-child(6),
html body .locator-table tbody tr.grand-total:hover td:nth-child(6),
html body .locator-table tbody tr.grand-total .workflow-summary-label,
html body .locator-table tbody tr.grand-total .variance-positive,
html body .locator-table tbody tr.grand-total .variance-negative,
html body .locator-table tbody tr.grand-total .variance-zero {
  background: #123654 !important;
  color: #ffffff !important;
  border-top: 2px solid var(--ui-gold) !important;
  border-bottom: 2px solid #123654 !important;
  font-weight: 850 !important;
}

html body .locator-table tbody tr.grand-total td {
  border-right-color: rgba(255, 255, 255, 0.18) !important;
}

/* Keep toolbar/filter-to-table spacing consistent across report pages. */
html body .sap-page,
html body .page.sap-page,
html body .stack,
html body .transactions-body {
  display: grid !important;
  gap: 6px !important;
}

html body .sap-page > .card,
html body .page.sap-page > .card,
html body .stack > .card,
html body .transactions-body > .card {
  margin-bottom: 0 !important;
}

html body .sap-page > .card + .card,
html body .page.sap-page > .card + .card,
html body .stack > .card + .card,
html body .transactions-body > .card + .card {
  margin-top: 0 !important;
}

html body .sap-page > .table-shell,
html body .page.sap-page > .table-shell,
html body .stack > .card:nth-child(2) {
  padding-top: 6px !important;
  overflow: visible !important;
}

html body.transactions-page {
  overflow-x: hidden !important;
}

html body.transactions-page .topbar.sap-nav,
html body.transactions-page .transactions-body {
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

html body.transactions-page .transactions-body {
  overflow: hidden !important;
}

html body.transactions-page .transactions-body > .table-shell {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding-top: 6px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

html body .transactions-body .table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  height: calc(100vh - 340px) !important;
  max-height: calc(100vh - 340px) !important;
  min-height: 320px !important;
  overflow: scroll !important;
  scrollbar-gutter: stable both-edges !important;
  scrollbar-width: auto !important;
  scrollbar-color: #7f8c99 #eef3f7 !important;
  box-sizing: border-box !important;
}

html body .transactions-body .table-wrap::-webkit-scrollbar {
  width: 14px !important;
  height: 14px !important;
}

html body .transactions-body .table-wrap::-webkit-scrollbar-track {
  background: #eef3f7 !important;
}

html body .transactions-body .table-wrap::-webkit-scrollbar-thumb {
  background: #7f8c99 !important;
  border: 3px solid #eef3f7 !important;
  border-radius: 999px !important;
}

html body .hide-field-labels .field > label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html body .card.controls,
html body .card.import-panel {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* Dashboard visual polish layer: layout only, no behavior. */
html body {
  background:
    linear-gradient(180deg, rgba(244, 249, 252, 0.96) 0%, rgba(229, 238, 244, 0.96) 100%) !important;
  color: #062540 !important;
}

html body .page,
html body .sap-page,
html body .page.sap-page {
  width: calc(100% - 20px) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 12px 10px 22px !important;
  box-sizing: border-box !important;
}

html body .card,
html body .compact-card,
html body .toolbar-card,
html body .card.compact-card,
html body .card.controls,
html body .card.import-panel,
html body .table-shell,
html body .table-card,
html body .lookup-panel,
html body .rule-table-card {
  border: 1px solid #cfdde7 !important;
  border-radius: 8px !important;
  background: #f9fcfe !important;
  box-shadow: none !important;
}

html body .compact-card,
html body .toolbar-card,
html body .card.compact-card,
html body .card.controls,
html body .card.import-panel {
  padding: 6px 16px !important;
  margin-bottom: 0 !important;
}

html body .toolbar,
html body .toolbar.compact-toolbar,
html body .manual-entry-toolbar,
html body .portal-grid {
  align-items: center !important;
  gap: 10px 12px !important;
}

html body .field input,
html body .field select,
html body .multi-select-trigger,
html body .summary-tile,
html body button,
html body .secondary {
  min-height: 38px !important;
  border-radius: 8px !important;
  border: 1px solid #b8c0c8 !important;
  background: #ffffff !important;
  color: #2e2714 !important;
  box-shadow: none !important;
}

html body button,
html body .secondary {
  font-weight: 760 !important;
}

html body button:hover,
html body .secondary:hover,
html body .multi-select-trigger:hover,
html body .field input:hover,
html body .field select:hover {
  border-color: #8f9aa6 !important;
  background: #fbfcfd !important;
}

html body button:focus,
html body .secondary:focus,
html body .multi-select-trigger:focus,
html body .field input:focus,
html body .field select:focus {
  outline: none !important;
  border-color: #7d8894 !important;
  box-shadow: 0 0 0 2px rgba(125, 136, 148, 0.16) !important;
}

html body .table-shell,
html body .table-card {
  padding: 8px 10px !important;
  margin-top: 0 !important;
}

html body .table-wrap,
html body .sap-table-wrap {
  border: 1px solid #cfdde7 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body .table-wrap table,
html body .sap-table-wrap table,
html body .transactions-table,
html body .entries-table,
html body .balance-table,
html body .locator-table,
html body .lookup-table,
html body #sapExportTable {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
}

html body .table-wrap thead th,
html body .sap-table-wrap thead th,
html body .transactions-table thead th,
html body .entries-table thead th,
html body .balance-table thead th,
html body .locator-table thead th,
html body .lookup-table thead th,
html body #sapExportTable thead th {
  background: #f7fafc !important;
  color: #063354 !important;
  border-top: 1px solid #d7e2ea !important;
  border-bottom: 1px solid #cfdde7 !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
}

html body .table-wrap td,
html body .sap-table-wrap td,
html body .transactions-table td,
html body .entries-table td,
html body .balance-table td,
html body .locator-table td,
html body .lookup-table td,
html body #sapExportTable td {
  border-right: 1px solid #d7e2ea !important;
  border-bottom: 1px solid #d7e2ea !important;
  color: #052b4f !important;
}

html body .table-wrap tbody tr:nth-child(even) td,
html body .sap-table-wrap tbody tr:nth-child(even) td,
html body .transactions-table tbody tr:nth-child(even) td,
html body .entries-table tbody tr:nth-child(even) td,
html body .balance-table tbody tr:nth-child(even) td,
html body .locator-table tbody tr:nth-child(even) td,
html body .lookup-table tbody tr:nth-child(even) td,
html body #sapExportTable tbody tr:nth-child(even) td {
  background: #f0f6fa !important;
}

html body .table-wrap tbody tr:hover td,
html body .sap-table-wrap tbody tr:hover td,
html body .transactions-table tbody tr:hover td,
html body .entries-table tbody tr:hover td,
html body .balance-table tbody tr:hover td,
html body .locator-table tbody tr:hover td,
html body .lookup-table tbody tr:hover td,
html body #sapExportTable tbody tr:hover td {
  background: #e6f0f6 !important;
}

html body .transactions-table select,
html body .entries-table select {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #b8c7d3 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body .transactions-table tbody tr.manual-override-row td {
  background: #fff6dc !important;
}

html body .transactions-table tbody tr.duplicate-row td {
  background: #ffe8e8 !important;
}

html body .transactions-table tbody tr.internal-transfer-row td {
  background: #e8f3fb !important;
}

html body .transactions-table tbody tr.manual-override-row:hover td {
  background: #ffefbf !important;
}

html body .transactions-table tbody tr.duplicate-row:hover td {
  background: #ffdada !important;
}

html body .transactions-table tbody tr.internal-transfer-row:hover td {
  background: #d8ebf7 !important;
}

html body .pagination-wrap,
html body .page-nav,
html body .footer-note {
  background: transparent !important;
  border: 0 !important;
}

html body .topbar.sap-nav .brand-edge-slot,
html body .sap-topbar .brand-edge-slot {
  right: 112px !important;
}

html body .topbar.sap-nav .brand-edge-slot .brand-logo,
html body .sap-topbar .brand-edge-slot .brand-logo {
  width: 168px !important;
  max-height: 48px !important;
  object-fit: contain !important;
}

html body .topbar.sap-nav .nav-account-slot,
html body .sap-topbar .nav-account-slot {
  position: absolute !important;
  top: 50% !important;
  right: 18px !important;
  transform: translateY(-50%) !important;
  z-index: 6 !important;
  display: flex !important;
  align-items: center !important;
}

html body .topbar.sap-nav .nav-account-slot .nav-logout,
html body .sap-topbar .nav-account-slot .nav-logout {
  min-height: 40px !important;
  padding: 10px 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f3f7fb !important;
  box-shadow: inset 0 -2px 0 transparent !important;
  cursor: pointer !important;
}

html body .topbar.sap-nav .nav-account-slot .nav-logout:hover,
html body .sap-topbar .nav-account-slot .nav-logout:hover {
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: inset 0 -2px 0 rgba(239, 215, 144, 0.72) !important;
}

html body .topbar.sap-nav .nav a,
html body .topbar.sap-nav .nav .nav-dropdown-toggle,
html body .sap-topbar .nav a,
html body .sap-topbar .nav .nav-dropdown-toggle,
html body .topbar.sap-nav .nav-account-slot .nav-logout,
html body .sap-topbar .nav-account-slot .nav-logout {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

html body .topbar.sap-nav .nav .nav-dropdown-label,
html body .sap-topbar .nav .nav-dropdown-label {
  gap: 7px !important;
}

html body .topbar.sap-nav .nav .nav-icon,
html body .topbar.sap-nav .nav-account-slot .nav-icon,
html body .sap-topbar .nav .nav-icon,
html body .sap-topbar .nav-account-slot .nav-icon {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  color: currentColor !important;
  opacity: 0.86 !important;
}

html body .topbar.sap-nav .nav .nav-icon svg,
html body .topbar.sap-nav .nav-account-slot .nav-icon svg,
html body .sap-topbar .nav .nav-icon svg,
html body .sap-topbar .nav-account-slot .nav-icon svg {
  width: 24px !important;
  height: 24px !important;
  stroke-width: 1.8 !important;
}

html body .topbar.sap-nav .nav a:hover .nav-icon,
html body .topbar.sap-nav .nav .nav-dropdown-toggle:hover .nav-icon,
html body .topbar.sap-nav .nav .nav-dropdown.is-open > .nav-dropdown-toggle .nav-icon,
html body .sap-topbar .nav a:hover .nav-icon,
html body .sap-topbar .nav .nav-dropdown-toggle:hover .nav-icon,
html body .sap-topbar .nav .nav-dropdown.is-open > .nav-dropdown-toggle .nav-icon {
  color: currentColor !important;
  opacity: 0.72 !important;
}

html body .topbar.sap-nav .nav a.active .nav-icon,
html body .topbar.sap-nav .nav .nav-dropdown-toggle.active .nav-icon,
html body .topbar.sap-nav .nav .nav-dropdown.active > .nav-dropdown-toggle .nav-icon,
html body .sap-topbar .nav a.active .nav-icon,
html body .sap-topbar .nav .nav-dropdown-toggle.active .nav-icon,
html body .sap-topbar .nav .nav-dropdown.active > .nav-dropdown-toggle .nav-icon,
html body .topbar.sap-nav .nav-account-slot .nav-logout .nav-icon,
html body .sap-topbar .nav-account-slot .nav-logout .nav-icon {
  color: currentColor !important;
  opacity: 0.72 !important;
}

html body .topbar.sap-nav .nav .nav-dropdown-menu a .nav-icon,
html body .sap-topbar .nav .nav-dropdown-menu a .nav-icon {
  color: currentColor !important;
  opacity: 0.55 !important;
}

html body .topbar.sap-nav .nav .nav-dropdown-menu a:hover .nav-icon,
html body .topbar.sap-nav .nav .nav-dropdown-menu a.active .nav-icon,
html body .sap-topbar .nav .nav-dropdown-menu a:hover .nav-icon,
html body .sap-topbar .nav .nav-dropdown-menu a.active .nav-icon {
  color: currentColor !important;
  opacity: 0.7 !important;
}

@media (max-width: 1100px) {
  html body .topbar.sap-nav .nav-account-slot,
  html body .sap-topbar .nav-account-slot {
    top: 20px !important;
    transform: none !important;
  }

  html body .topbar.sap-nav .brand-edge-slot,
  html body .sap-topbar .brand-edge-slot {
    right: 112px !important;
  }
}

/* Dashboard visual hierarchy refresh */
html body {
  --ui-ink: #102536;
  --ui-ink-muted: #526879;
  --ui-blue: #0f4c75;
  --ui-blue-deep: #0b2f4a;
  --ui-gold: #b89b5e;
  --ui-line: #d3dde6;
  --ui-line-soft: #e6edf3;
  --ui-panel: #ffffff;
  --ui-panel-muted: #f5f8fa;
  --ui-row-alt: #f6f9fb;
  --ui-row-hover: #edf4f8;
  background: linear-gradient(180deg, #f7fafc 0%, #eef4f8 42%, #e4edf3 100%) !important;
  color: var(--ui-ink) !important;
}

html body .page,
html body .sap-page,
html body .page.sap-page {
  padding-top: 22px !important;
  padding-bottom: 34px !important;
}

html body .topbar.sap-nav,
html body .sap-topbar {
  background: linear-gradient(180deg, #10314b 0%, #0d2a42 56%, #092033 100%) !important;
  border-color: rgba(184, 155, 94, 0.62) !important;
}

html body .topbar.sap-nav .brand-title,
html body .sap-topbar .brand-title {
  color: #ffffff !important;
  font-size: 23px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

html body .topbar.sap-nav .sub,
html body .sap-topbar .sub {
  color: rgba(231, 211, 160, 0.9) !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
}

html body .topbar.sap-nav .nav a,
html body .topbar.sap-nav .nav .nav-dropdown-toggle,
html body .topbar.sap-nav .nav .nav-logout,
html body .sap-topbar .nav a,
html body .sap-topbar .nav .nav-dropdown-toggle,
html body .sap-topbar .nav .nav-logout {
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
}

html body .card,
html body .table-card,
html body .stat-card,
html body .table-shell,
html body .rule-table-card,
html body .site-board {
  background: var(--ui-panel) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 34px rgba(15, 37, 54, 0.07) !important;
}

html body .compact-card,
html body .card.compact-card,
html body .card.controls,
html body .sap-export-filter-card,
html body .toolbar-card {
  background: var(--ui-panel-muted) !important;
  border-color: var(--ui-line-soft) !important;
  box-shadow: none !important;
}

html body .compact-card::before,
html body .card.compact-card::before {
  display: none !important;
}

html body .toolbar,
html body .compact-toolbar,
html body .toolbar.compact-toolbar {
  gap: 10px 12px !important;
}

html body .field label,
html body .compact-toolbar .field label,
html body .toolbar.compact-toolbar .field label,
html body label[for="reconDate"] {
  color: var(--ui-ink-muted) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html body .field input,
html body .field select,
html body .field textarea,
html body input#reconDate,
html body .compact-toolbar .field input,
html body .toolbar.compact-toolbar .field input {
  min-height: 38px !important;
  border-radius: 6px !important;
  border-color: #c5d0da !important;
  background: #ffffff !important;
  color: var(--ui-ink) !important;
}

html body button,
html body .btn,
html body .mini-btn,
html body .page-btn,
html body .switch-link,
html body .multi-select-trigger,
html body .actions button {
  min-height: 38px !important;
  border-radius: 6px !important;
  border-color: #c3ccd5 !important;
  background: #ffffff !important;
  color: var(--ui-ink) !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html body button:hover,
html body .btn:hover,
html body .mini-btn:hover,
html body .page-btn:hover,
html body .switch-link:hover,
html body .multi-select-trigger:hover {
  background: #f7fafc !important;
  border-color: #9daebd !important;
  color: var(--ui-blue-deep) !important;
}

html body button#applyBtn,
html body button#buildBtn,
html body .btn.primary,
html body .login-button {
  background: var(--ui-blue) !important;
  border-color: var(--ui-blue) !important;
  color: #ffffff !important;
}

html body button#applyBtn:hover,
html body button#buildBtn:hover,
html body .btn.primary:hover,
html body .login-button:hover {
  background: var(--ui-blue-deep) !important;
  border-color: var(--ui-blue-deep) !important;
  color: #ffffff !important;
}

html body .table-shell {
  overflow: hidden !important;
}

html body .table-wrap,
html body .sap-table-wrap {
  background: #ffffff !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  max-height: min(68vh, 760px) !important;
}

html body .table-wrap table,
html body .sap-table-wrap table {
  background: #ffffff !important;
}

html body .table-wrap thead th,
html body .sap-table-wrap thead th,
html body table thead th {
  background: #f3f7fa !important;
  color: var(--ui-blue-deep) !important;
  border-color: var(--ui-line) !important;
  border-bottom: 1px solid #bdcbd7 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

html body .table-wrap td,
html body .sap-table-wrap td,
html body table td {
  border-color: var(--ui-line-soft) !important;
  color: #0f3047 !important;
}

html body .table-wrap tbody tr:nth-child(even) td,
html body .sap-table-wrap tbody tr:nth-child(even) td {
  background: var(--ui-row-alt) !important;
}

html body .table-wrap tbody tr:hover td,
html body .sap-table-wrap tbody tr:hover td {
  background: var(--ui-row-hover) !important;
}

html body .status-banner {
  background: #ffffff !important;
  border-color: var(--ui-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

html body .sap-export-embed-header,
html body .table-section-title {
  color: var(--ui-blue-deep) !important;
  letter-spacing: 0.02em !important;
}

/* Cross-page dashboard containment and polish */
html body.has-sidebar-nav .page,
html body.has-sidebar-nav .sap-page,
html body.has-sidebar-nav .page.sap-page,
html body .stack,
html body .toolbar,
html body .compact-toolbar,
html body .table-shell,
html body .table-card {
  min-width: 0 !important;
}

html body.reconciliation-page .page.sap-page,
html body.reconciliation-page .table-shell {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

html body.reconciliation-page .table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: auto !important;
}

html body.reconciliation-page .table-wrap table {
  width: 100% !important;
  min-width: 1520px !important;
}

html body.transactions-page .transaction-filter-card {
  max-height: calc(100vh - 126px) !important;
  overflow: auto !important;
}

html body.transactions-page .transactions-workspace {
  align-items: start !important;
}

@media (max-width: 900px) {
  html body.transactions-page .transaction-filter-card {
    max-height: none !important;
  }
}

html body button:focus-visible,
html body .btn:focus-visible,
html body .page-btn:focus-visible,
html body .multi-select-trigger:focus-visible,
html body .field input:focus-visible,
html body .field select:focus-visible,
html body textarea:focus-visible {
  outline: 2px solid rgba(15, 76, 117, 0.42) !important;
  outline-offset: 2px !important;
}

html body .status,
html body .status-line,
html body .status-banner,
html body .page-intro-copy,
html body .sap-export-embed-header span {
  line-height: 1.45 !important;
}

html body .control-panel,
html body .settings-shell > section,
html body .settings-shell > div {
  border-radius: 8px !important;
}

html body .control-panel {
  background: var(--ui-panel) !important;
  border: 1px solid var(--ui-line) !important;
  box-shadow: 0 12px 28px rgba(15, 37, 54, 0.055) !important;
}

html body .control-table th {
  background: #f3f7fa !important;
  border-top: 0 !important;
  border-bottom: 1px solid #bdcbd7 !important;
}

html body .control-table td {
  border-color: var(--ui-line-soft) !important;
}

@media (max-width: 720px) {
  html body .settings-shell,
  html body .control-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
  }

  html body .control-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
  }

  html body .control-table col:first-child,
  html body .control-table col:last-child {
    width: auto !important;
  }

  html body .control-table th,
  html body .control-table td {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

html body .table-wrap td[colspan],
html body .sap-table-wrap td[colspan] {
  color: var(--ui-ink-muted) !important;
  font-weight: 700 !important;
  text-align: center !important;
}

html body .table-wrap::-webkit-scrollbar,
html body .sap-table-wrap::-webkit-scrollbar {
  width: 12px !important;
  height: 12px !important;
}

html body .table-wrap::-webkit-scrollbar-thumb,
html body .sap-table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid #ffffff !important;
  border-radius: 999px !important;
  background: #9aabba !important;
}

/* Shared data-page body shell: Transactions, Deliveries, Manual Entry */
html body.transactions-page,
html body.deliveries-page,
html body.vehicle-transaction-page,
html body.manual-entry-page {
  overflow-x: hidden !important;
}

html body.transactions-page .page,
html body.transactions-page .page.sap-page,
html body.deliveries-page .page,
html body.vehicle-transaction-page .page,
html body.vehicle-transaction-page .page.sap-page,
html body.manual-entry-page .page,
html body.manual-entry-page .page.sap-page {
  width: calc(100% - 48px) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 22px 0 28px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

html body.transactions-page .transactions-workspace,
html body.deliveries-page .deliveries-workspace,
html body.vehicle-transaction-page .vehicle-transaction-workspace,
html body.manual-entry-page .manual-entry-workspace {
  display: grid !important;
  grid-template-columns: 236px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: calc(100vh - 144px) !important;
  height: calc(100vh - 144px) !important;
  overflow: visible !important;
}

html body.transactions-page .transaction-filter-card,
html body.deliveries-page .delivery-filter-card,
html body.vehicle-transaction-page .vehicle-filter-card,
html body.manual-entry-page .manual-filter-card {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px 16px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  box-shadow: none !important;
}

html body.transactions-page .transaction-table-card,
html body.deliveries-page .deliveries-table-card,
html body.vehicle-transaction-page .vehicle-table-card,
html body.manual-entry-page .manual-table-card {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid #d9e2ec !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

html body.transactions-page .transaction-table-card .table-wrap,
html body.deliveries-page .deliveries-table-wrap,
html body.vehicle-transaction-page .vehicle-table-card .table-wrap,
html body.manual-entry-page .manual-table-card .table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  height: calc(100vh - 248px) !important;
  max-height: calc(100vh - 248px) !important;
  min-height: 320px !important;
  flex: 1 1 auto !important;
  overflow: scroll !important;
  scrollbar-gutter: stable both-edges !important;
  scrollbar-width: auto !important;
  scrollbar-color: #7f8c99 #eef3f7 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body.transactions-page .transaction-table-card .table-wrap::-webkit-scrollbar,
html body.deliveries-page .deliveries-table-wrap::-webkit-scrollbar,
html body.vehicle-transaction-page .vehicle-table-card .table-wrap::-webkit-scrollbar,
html body.manual-entry-page .manual-table-card .table-wrap::-webkit-scrollbar {
  width: 14px !important;
  height: 14px !important;
}

html body.transactions-page .transaction-table-card .table-wrap::-webkit-scrollbar-track,
html body.deliveries-page .deliveries-table-wrap::-webkit-scrollbar-track,
html body.vehicle-transaction-page .vehicle-table-card .table-wrap::-webkit-scrollbar-track,
html body.manual-entry-page .manual-table-card .table-wrap::-webkit-scrollbar-track {
  background: #eef3f7 !important;
}

html body.transactions-page .transaction-table-card .table-wrap::-webkit-scrollbar-thumb,
html body.deliveries-page .deliveries-table-wrap::-webkit-scrollbar-thumb,
html body.vehicle-transaction-page .vehicle-table-card .table-wrap::-webkit-scrollbar-thumb,
html body.manual-entry-page .manual-table-card .table-wrap::-webkit-scrollbar-thumb {
  background: #7f8c99 !important;
  border: 3px solid #eef3f7 !important;
  border-radius: 999px !important;
}

html body.transactions-page .pagination-wrap,
html body.vehicle-transaction-page .vehicle-table-card .summary,
html body.manual-entry-page .manual-table-card .status,
html body.deliveries-page .status-bar {
  flex: 0 0 auto !important;
}

html body.transactions-page .transaction-filter-card .field input,
html body.transactions-page .transaction-filter-card .field input[type="date"],
html body.transactions-page .transaction-filter-card .field select,
html body.transactions-page .transaction-filter-card .multi-select,
html body.transactions-page .transaction-filter-card .multi-select-trigger,
html body.transactions-page .transaction-filter-card .summary-tile,
html body.transactions-page .transaction-filter-card .actions button,
html body.vehicle-transaction-page .vehicle-filter-card .field input,
html body.vehicle-transaction-page .vehicle-filter-card .field input[type="date"],
html body.vehicle-transaction-page .vehicle-filter-card .field select,
html body.vehicle-transaction-page .vehicle-filter-card .multi-select,
html body.vehicle-transaction-page .vehicle-filter-card .multi-select-trigger,
html body.vehicle-transaction-page .vehicle-filter-card .actions button,
html body.manual-entry-page .manual-filter-card .field input,
html body.manual-entry-page .manual-filter-card .field input[type="date"],
html body.manual-entry-page .manual-filter-card .field select,
html body.manual-entry-page .manual-filter-card .actions button {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

html body.transactions-page .transactions-table thead th,
html body.deliveries-page .deliveries-table thead th,
html body.vehicle-transaction-page .vehicle-table thead th,
html body.manual-entry-page .entries-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  background: #f3f7fa !important;
  background-color: #f3f7fa !important;
}

html body.smart-fill-current-level-page .workspace {
  display: grid !important;
  grid-template-columns: 236px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: calc(100vh - 144px) !important;
  height: calc(100vh - 144px) !important;
  overflow: visible !important;
}

html body.smart-fill-current-level-page .filter-card {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px 16px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

html body.smart-fill-current-level-page .filter-card .field,
html body.smart-fill-current-level-page .filter-card .actions,
html body.smart-fill-current-level-page .filter-card input,
html body.smart-fill-current-level-page .filter-card button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

html body.smart-fill-levels-page .filter-card .field,
html body.smart-fill-levels-page .filter-card .actions,
html body.smart-fill-levels-page .filter-card input,
html body.smart-fill-levels-page .filter-card input[type="date"],
html body.smart-fill-levels-page .filter-card button {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

html body.smart-fill-current-level-page .table-card {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

html body.smart-fill-current-level-page .table-wrap {
  flex: 1 1 auto !important;
  height: calc(100vh - 248px) !important;
  max-height: calc(100vh - 248px) !important;
  min-height: 320px !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}

html body.fma-levels-page .workspace {
  display: grid !important;
  grid-template-columns: 236px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: calc(100vh - 144px) !important;
  height: calc(100vh - 144px) !important;
  overflow: visible !important;
}

html body.fma-levels-page .filter-card {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px 16px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

html body.fma-levels-page .filter-card .field,
html body.fma-levels-page .filter-card .actions,
html body.fma-levels-page .filter-card input,
html body.fma-levels-page .filter-card select,
html body.fma-levels-page .filter-card button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

html body.fma-levels-page .table-card {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

html body.fma-levels-page .table-wrap {
  flex: 1 1 auto !important;
  height: calc(100vh - 248px) !important;
  max-height: calc(100vh - 248px) !important;
  min-height: 320px !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  html body.transactions-page .page,
  html body.transactions-page .page.sap-page,
  html body.deliveries-page .page,
  html body.vehicle-transaction-page .page,
  html body.vehicle-transaction-page .page.sap-page,
  html body.manual-entry-page .page,
  html body.manual-entry-page .page.sap-page {
    width: calc(100% - 24px) !important;
    padding: 14px 0 22px !important;
  }

  html body.transactions-page .transactions-workspace,
  html body.deliveries-page .deliveries-workspace,
  html body.vehicle-transaction-page .vehicle-transaction-workspace,
  html body.manual-entry-page .manual-entry-workspace {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html body.transactions-page .transaction-filter-card,
  html body.deliveries-page .delivery-filter-card,
  html body.vehicle-transaction-page .vehicle-filter-card,
  html body.manual-entry-page .manual-filter-card,
  html body.transactions-page .transaction-table-card,
  html body.deliveries-page .deliveries-table-card,
  html body.vehicle-transaction-page .vehicle-table-card,
  html body.manual-entry-page .manual-table-card {
    height: auto !important;
  }

  html body.transactions-page .transaction-table-card .table-wrap,
  html body.deliveries-page .deliveries-table-wrap,
  html body.vehicle-transaction-page .vehicle-table-card .table-wrap,
  html body.manual-entry-page .manual-table-card .table-wrap {
    height: auto !important;
    max-height: none !important;
  }
}


