:root {
  --bg: #eef3f1;
  --surface: #ffffff;
  --surface-soft: #f8fbf9;
  --border: #d9e0da;
  --text: #17211b;
  --muted: #667369;
  --brand: #173b2e;
  --brand-2: #2d855d;
  --green: #2d855d;
  --green-dark: #173b2e;
  --accent: #d7ad45;
  --danger: #a94038;
  --shadow: 0 14px 36px rgba(32, 48, 38, 0.09);
  --shadow-soft: 0 8px 22px rgba(32, 48, 38, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(45, 133, 93, 0.08), transparent 35%),
    linear-gradient(315deg, rgba(215, 173, 69, 0.08), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
}

body.gate-check-open-body {
  overflow: hidden;
}

.hr-payroll-page {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.4fr);
  gap: 18px;
  align-items: start;
}

.hr-tabs-panel {
  margin-bottom: 16px;
}

.hr-tabs {
  flex: 1;
}

.hr-tabs a {
  min-width: 132px;
}

.employee-list-wrap {
  overflow-x: hidden;
}

.employee-list-table {
  min-width: 0;
  table-layout: fixed;
}

.employee-list-table th,
.employee-list-table td {
  overflow: hidden;
  padding: 8px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.employee-list-table th:nth-child(1),
.employee-list-table td:nth-child(1) { width: 14%; }
.employee-list-table th:nth-child(2),
.employee-list-table td:nth-child(2) { width: 22%; }
.employee-list-table th:nth-child(3),
.employee-list-table td:nth-child(3) { width: 11%; }
.employee-list-table th:nth-child(4),
.employee-list-table td:nth-child(4) { width: 9%; }
.employee-list-table th:nth-child(5),
.employee-list-table td:nth-child(5) { width: 10%; }
.employee-list-table th:nth-child(6),
.employee-list-table td:nth-child(6) { width: 13%; }
.employee-list-table th:nth-child(7),
.employee-list-table td:nth-child(7) { width: 11%; }
.employee-list-table th:nth-child(8),
.employee-list-table td:nth-child(8) { width: 10%; }

.employee-list-table .row-actions {
  flex-wrap: nowrap;
  gap: 4px;
}

.employee-list-table .mini-button {
  font-size: 11px;
  min-height: 30px;
  padding: 5px 7px;
}

@media (max-width: 900px) {
  .employee-list-wrap {
    overflow-x: auto;
  }

  .employee-list-table {
    min-width: 860px;
  }
}

.hr-section-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(520px, 1.35fr);
  gap: 18px;
  align-items: start;
}

.employee-sale-page { display: grid; gap: 16px; }
.employee-sale-entry { position: relative; overflow: hidden; }
.employee-sale-entry::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, #2f9467, #e1b33d); }
.employee-sale-form { display: grid; gap: 12px; }
.employee-sale-meta { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(260px, 1.2fr) minmax(160px, .7fr); gap: 12px; }
.employee-sale-form label { display: grid; gap: 6px; font-weight: 700; color: #385047; }
.employee-sale-invoice { border: 1px solid #d7e7df; border-radius: 10px; overflow: hidden; }
.employee-sale-invoice-head, .employee-sale-invoice-row { display: grid; grid-template-columns: minmax(320px, 2fr) minmax(120px, .7fr) minmax(125px, .65fr) minmax(125px, .65fr) minmax(130px, .7fr); gap: 8px; align-items: end; padding: 9px 12px; }
.employee-sale-invoice-head { background: #f2f8f5; color: #536a60; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.employee-sale-invoice-row { background: #fff; }
.employee-sale-invoice-row label { font-size: 0; }
.employee-sale-invoice-row label select, .employee-sale-invoice-row label input { font-size: 14px; }
.employee-sale-available, .employee-sale-line-total { align-self: stretch; display: flex; align-items: center; padding: 0 12px; border: 1px solid #d7e7df; border-radius: 8px; background: #f7fbf9; color: #155c43; font-weight: 800; }
.employee-sale-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 10px 12px; border: 1px solid #d7e7df; border-radius: 10px; background: #f8fcfa; }
.employee-sale-summary span { padding: 7px 12px; border: 1px solid #d7e7df; border-radius: 999px; background: #fff; color: #29473b; }
.employee-sale-remarks { max-width: 100%; }
@media (max-width: 980px) {
  .employee-sale-meta { grid-template-columns: 1fr; }
  .employee-sale-invoice-head { display: none; }
  .employee-sale-invoice-row { grid-template-columns: 1fr 1fr; }
  .employee-sale-invoice-row label { font-size: 13px; }
  .employee-sale-available, .employee-sale-line-total { min-height: 44px; }
}

.hr-form-stack {
  display: grid;
  gap: 10px;
}

.hr-card-form {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 12px;
}

.hr-card-form h3 {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-size: 16px;
  color: var(--brand);
}

.hr-card-form .wide {
  grid-column: 1 / -1;
}

.hr-filter {
  margin-bottom: 14px;
}

.hr-ledger-filter {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(150px, 0.6fr) minmax(120px, 0.45fr) minmax(160px, 0.5fr);
}

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

.hr-ledger-summary div {
  background: #f7fbf8;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.hr-ledger-summary span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.hr-ledger-summary strong {
  color: var(--brand);
  font-size: 17px;
}

.hr-ledger-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.hr-ledger-table .hr-ledger-date { width: 8%; }
.hr-ledger-table .hr-ledger-employee { width: 10%; }
.hr-ledger-table .hr-ledger-particulars { width: 29%; }
.hr-ledger-table .hr-ledger-month { width: 7%; }
.hr-ledger-table .hr-ledger-ref { width: 10%; }
.hr-ledger-table .hr-ledger-money { width: 9%; }
.hr-ledger-table .hr-ledger-balance { width: 11%; }
.hr-ledger-table .hr-ledger-action { width: 7%; }

.hr-ledger-table th,
.hr-ledger-table td {
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: 7px 6px;
  vertical-align: top;
  white-space: normal;
}

.hr-ledger-table th {
  font-size: 10px;
}

.hr-ledger-table td form {
  display: inline-flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.hr-ledger-table td button {
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.2;
  min-height: 26px;
  padding: 5px 7px;
  width: auto;
}

@media (max-width: 760px) {
  .hr-ledger-table {
    min-width: 760px;
  }
}

.hr-ledger-table tfoot th {
  background: #edf6f1;
  color: var(--brand);
  font-weight: 900;
}

.hr-attendance-date-filter {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(150px, 180px);
  margin-bottom: 12px;
}

.hr-attendance-page {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(380px, 0.8fr) minmax(620px, 1.4fr);
  align-items: start;
}

.hr-attendance-bulk-form {
  display: grid;
  gap: 12px;
}

.hr-attendance-date-inline {
  max-width: 260px;
}

.hr-attendance-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hr-attendance-table th,
.hr-attendance-table td {
  vertical-align: middle;
}

.hr-attendance-table select {
  min-height: 38px;
  min-width: 150px;
}

.hr-monthly-attendance-panel {
  min-width: 0;
}

.hr-attendance-register-title {
  align-items: center;
  background: #dff3df;
  border: 1px solid #8fb79b;
  border-bottom: 0;
  color: #1d2e24;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.hr-attendance-register-title span {
  font-size: 18px;
  font-weight: 900;
}

.hr-attendance-register-title strong {
  font-size: 13px;
}

.hr-monthly-attendance-wrap {
  border: 1px solid #8fb79b;
  border-radius: 0 0 10px 10px;
  max-height: 560px;
  overflow: auto;
}

.hr-monthly-attendance-table {
  background: #e6f7e5;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 1450px;
  width: 100%;
}

.hr-monthly-attendance-table th,
.hr-monthly-attendance-table td {
  background: #e6f7e5;
  border: 1px solid #486154;
  color: #17251d;
  font-weight: 800;
  padding: 4px 5px;
  text-align: center;
  white-space: nowrap;
}

.hr-monthly-attendance-table th {
  background: #d3efd4;
  font-size: 10px;
  text-transform: uppercase;
}

.hr-monthly-attendance-table td:nth-child(3),
.hr-monthly-attendance-table td:nth-child(4),
.hr-monthly-attendance-table td:nth-child(5),
.hr-monthly-attendance-table th:nth-child(3),
.hr-monthly-attendance-table th:nth-child(4),
.hr-monthly-attendance-table th:nth-child(5) {
  text-align: left;
}

.hr-monthly-attendance-table .day-col {
  min-width: 26px;
  padding-left: 2px;
  padding-right: 2px;
}

.hr-monthly-attendance-table td.present {
  color: #087443;
}

.hr-monthly-attendance-table td.absent {
  background: #ffe5e2;
  color: #b42318;
}

.hr-monthly-attendance-table td.half-day {
  background: #fff5d6;
  color: #8a5a00;
}

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

.hr-balance-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(110px, 0.7fr));
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.hr-balance-card strong,
.hr-balance-card b {
  display: block;
  color: var(--text);
}

.hr-balance-card span,
.hr-balance-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.hr-balance-card.payable {
  border-left-color: var(--green);
}

.hr-balance-card.receivable {
  border-left-color: var(--danger);
  background: #fffafa;
}

.hr-balance-card.clear {
  border-left-color: var(--accent);
}

.salary-live-balance {
  background: #f7fbf8;
  border: 1px solid #d4e8dc;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 11px 12px;
}

.salary-live-balance[data-tone="receivable"] {
  background: #fff9f8;
  border-color: #f0ccc6;
  border-left-color: var(--danger);
}

.salary-live-balance[data-tone="clear"] {
  background: #f8fbfc;
  border-left-color: var(--accent);
}

.salary-live-balance-head {
  align-items:baseline;
  display:flex;
  gap:8px;
  justify-content:space-between;
  margin-bottom:9px;
}

.salary-live-balance-head span,
.salary-live-balance-grid small {
  color:var(--muted);
  font-size:11px;
  font-weight:750;
}

.salary-live-balance-head strong {
  color:var(--text);
  font-size:13px;
}

.salary-live-balance-grid {
  display:grid;
  gap:7px;
  grid-template-columns:repeat(5,minmax(0,1fr));
}

.salary-live-balance-grid > div {
  border-right:1px solid #dce9e1;
  min-width:0;
  padding-right:7px;
}

.salary-live-balance-grid > div:last-child {
  border-right:0;
  padding-right:0;
}

.salary-live-balance-grid small,
.salary-live-balance-grid b {
  display:block;
}

.salary-month-note {
    display: block;
    margin-top: 5px;
    color: #5d7167;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.salary-live-balance-grid b {
  color:#173a29;
  font-size:13px;
  margin-top:3px;
  overflow-wrap:anywhere;
}

.salary-live-balance-final b {
  color:var(--green);
}

.salary-live-balance[data-tone="receivable"] .salary-live-balance-final b {
  color:var(--danger);
}

@media (max-width: 760px) {
  .salary-live-balance-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .salary-live-balance-grid > div:nth-child(2n) {
    border-right:0;
    padding-right:0;
  }
  .salary-live-balance-grid > div:nth-child(n+3) {
    border-top:1px solid #dce9e1;
    padding-top:7px;
  }
}

.hr-subtitle {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .hr-payroll-page,
  .hr-section-grid,
  .hr-attendance-page {
    grid-template-columns: 1fr;
  }

  .hr-balance-card {
    grid-template-columns: 1fr 1fr;
  }

  .hr-tabs {
    justify-content: flex-start;
  }

  .hr-ledger-filter,
  .hr-ledger-summary {
    grid-template-columns: 1fr 1fr;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .panel,
  .metric,
  .gate-row-card,
  .document-chip,
  .gate-doc-chip,
  .request-icon-button,
  .user-panel-pill,
  .logout-button,
  .nav a,
  .nav-group,
  .nav-item-dropdown > summary,
  button,
  .button,
  input,
  select,
  textarea,
  .document-upload-list label,
  .simple-gate-card {
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      border-color 0.18s ease,
      background 0.18s ease,
      color 0.18s ease;
  }

  .panel:hover,
  .metric:hover,
  .simple-gate-card:hover {
    border-color: rgba(47, 143, 104, 0.28);
    box-shadow: 0 18px 42px rgba(23, 55, 42, 0.12);
    transform: none;
  }

  .gate-row-card:hover {
    border-color: rgba(47, 143, 104, 0.42);
    box-shadow: 0 20px 48px rgba(23, 55, 42, 0.14);
    transform: none;
  }

  .button:hover,
  button:hover,
  .document-chip:hover,
  .gate-doc-chip.uploaded:hover,
  .request-icon-button:hover,
  .logout-button:hover {
    transform: none;
  }

  .nav a:hover,
  .nav-item-dropdown > summary:hover {
    transform: none;
  }

  .document-upload-list label:hover {
    border-color: rgba(47, 143, 104, 0.34);
    box-shadow: 0 12px 26px rgba(23, 55, 42, 0.08);
    transform: none;
  }

  tbody tr {
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }

  tbody tr:hover {
    box-shadow: inset 4px 0 0 rgba(47, 143, 104, 0.55);
    transform: none;
  }

  input:hover,
  select:hover,
  textarea:hover {
    border-color: rgba(47, 143, 104, 0.38);
    box-shadow: 0 0 0 3px rgba(47, 143, 104, 0.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.auth-body {
  align-items: center;
  background:
    radial-gradient(circle at 8% 12%, rgba(47, 143, 104, 0.12), transparent 28%),
    linear-gradient(110deg, #fff7ef 0%, #f7faf6 48%, #ebe7dc 100%);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
}

.login-shell {
  background: #ffffff;
  border: 1px solid rgba(217, 224, 218, 0.74);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(30, 45, 38, 0.16);
  display: grid;
  grid-template-columns: 0.95fr 0.9fr;
  max-width: 1060px;
  min-height: 460px;
  overflow: hidden;
  width: min(90vw, 1060px);
}

.login-visual {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.18) 0 17%, transparent 18%),
    linear-gradient(155deg, var(--login-primary, #06213a) 0%, #104a4b 50%, var(--login-secondary, #08783b) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 42px 46px;
  position: relative;
}

.login-orb {
  border-radius: 999px;
  pointer-events: none;
  position: absolute;
}

.login-orb-one {
  background: rgba(255, 255, 255, 0.13);
  height: 250px;
  right: -72px;
  top: -56px;
  width: 250px;
}

.login-orb-two {
  border: 48px solid rgba(255, 255, 255, 0.1);
  bottom: -124px;
  height: 250px;
  left: -104px;
  width: 250px;
}

.login-brand-row {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.login-brand-row img,
.login-logo-mark {
  align-items: center;
  background: #ffffff;
  border-radius: 13px;
  color: var(--login-primary, #06213a);
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  object-fit: cover;
  width: 52px;
}

.login-brand-row strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.login-brand-row span {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-top: 8px;
  text-transform: uppercase;
}

.login-company-details {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.88);
  display: grid;
  font-size: 13px;
  gap: 4px;
  line-height: 1.35;
  margin: 0 0 24px 66px;
  padding-top: 10px;
  position: relative;
  z-index: 1;
}

.login-company-details span:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.login-badge {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 9px;
  letter-spacing: 3px;
  margin-bottom: 28px;
  padding: 10px 15px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.login-badge span,
.login-feature-row span::before {
  background: var(--login-accent, #ffe98a);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 10px;
  width: 10px;
}

.login-visual h1 {
  font-size: 42px;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.login-visual p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin: 24px 0 44px;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.login-feature-row {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  gap: 20px;
  padding-top: 18px;
  position: relative;
  z-index: 1;
}

.login-feature-row span {
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 10px;
}

.login-form-panel {
  align-items: center;
  background: #ffffff;
  display: flex;
  justify-content: center;
  padding: 42px 52px;
}

.login-form-inner {
  max-width: 390px;
  width: 100%;
}

.login-kicker {
  color: var(--login-primary, #06213a);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.login-form-inner h2 {
  color: #111827;
  font-size: 38px;
  line-height: 1.08;
  margin: 0 0 16px;
}

.login-form-inner p {
  color: #68756b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 22px;
}

.login-form-inner label {
  color: #273248;
  font-size: 14px;
}

.login-form-inner input {
  background: #ffffff;
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  font-size: 15px;
  min-height: 50px;
  padding: 12px 16px;
}

.login-form-inner button {
  background: var(--login-primary, #06213a);
  border-radius: 14px;
  font-size: 16px;
  margin-top: 10px;
  min-height: 52px;
  width: 100%;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.login-links a,
.login-links span {
  color: var(--login-primary, #06213a);
  font-size: 14px;
  font-weight: 900;
}

.login-protected {
  color: #a0a7b3;
  font-size: 13px;
  font-weight: 900;
  margin-top: 28px;
  text-align: center;
}

/* Focused company sign-in layout. */
.auth-body {
  background: #f1f4f1;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.login-shell {
  border: 1px solid #d8e1dc;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(20, 49, 39, 0.14);
  grid-template-columns: minmax(360px, 0.9fr) minmax(440px, 1.1fr);
  max-width: 1140px;
  min-height: 620px;
}

.login-visual {
  background: #123f34;
  justify-content: flex-start;
  padding: 42px;
}

.login-brand-row {
  margin: 0;
}

.login-brand-row img,
.login-logo-mark {
  border-radius: 8px;
  height: 64px;
  width: 64px;
}

.login-brand-row strong {
  font-size: 26px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.login-brand-row span {
  color: #b9d0c5;
  font-size: 11px;
  letter-spacing: 2.2px;
  margin-top: 6px;
}

.login-visual-main {
  margin-top: auto;
  padding: 42px 0 28px;
  position: relative;
  z-index: 1;
}

.login-badge {
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding: 8px 11px;
}

.login-visual h1 {
  font-size: 38px;
  line-height: 1.12;
  max-width: 440px;
}

.login-visual p {
  color: #c8dad1;
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 0;
}

.login-feature-row {
  gap: 16px;
  padding-top: 16px;
}

.login-feature-row span {
  color: #d5e5dc;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
}

.login-feature-row span::before {
  height: 8px;
  width: 8px;
}

.login-form-panel {
  padding: 54px 72px;
}

.login-form-inner {
  max-width: 420px;
}

.login-kicker {
  color: #296750;
  font-size: 11px;
  letter-spacing: 3.5px;
  margin-bottom: 16px;
}

.login-form-inner h2 {
  color: #15382d;
  font-size: 36px;
  margin-bottom: 12px;
}

.login-form-inner p {
  color: #62766b;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 26px;
}

.login-form-inner label {
  color: #24443a;
  font-size: 13px;
  font-weight: 800;
}

.login-form-inner input {
  background: #f8fbf9;
  border-color: #cadbd2;
  border-radius: 8px;
  min-height: 48px;
}

.login-form-inner input:focus {
  background: #fff;
  border-color: #2d8a63;
  box-shadow: 0 0 0 3px rgba(45, 138, 99, 0.14);
}

.login-form-inner button {
  background: #175842;
  border-radius: 8px;
  font-size: 15px;
  min-height: 50px;
}

.login-form-inner button:hover {
  background: #0f4836;
}

.login-links {
  margin-top: 16px;
}

.login-links a,
.login-links span {
  color: #1c654b;
  font-size: 13px;
}

.login-protected {
  color: #87968e;
  font-size: 12px;
  margin-top: 32px;
}

.auth-company-footer {
  align-items: center;
  color: #6d7d74;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 14px;
  justify-content: center;
  line-height: 1.4;
  max-width: 1140px;
  text-align: center;
}

.auth-company-footer strong {
  color: #31594a;
  font-weight: 800;
}

.auth-company-footer span + span::before,
.auth-company-footer strong + span::before {
  color: #a6b3ac;
  content: "|";
  margin-right: 14px;
}

.auth-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 390px;
  padding: 22px;
  width: 100%;
}

.auth-brand {
  border-bottom-color: var(--border);
  color: var(--text);
  margin-bottom: 16px;
}

.auth-brand span {
  color: var(--muted);
}

.app {
  display: grid;
  grid-template-columns: minmax(190px, 208px) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  width: 100%;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, #12382b, #173126);
  color: #f7f4e9;
  padding: 18px 10px;
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  overflow: auto;
}

.brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 14px;
  padding: 3px 8px 15px;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.brand span {
  color: #cbd8cf;
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-group {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  overflow: visible;
}

.nav-flat-group-link {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  color: #eef5ef;
  font-size: 12px;
  font-weight: 900;
  padding: 11px;
}

.nav-flat-group-link.active,
.nav-flat-group-link:hover {
  background: var(--accent);
  color: #182018;
  transform: none;
}

.nav-group summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  list-style: none;
  padding: 11px 11px;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "v";
  float: right;
  opacity: 0.8;
}

.nav-group[open] summary::after {
  content: "^";
}

.nav-group div {
  display: grid;
  gap: 4px;
  padding: 0 7px 8px;
}

.nav a {
  border-radius: 9px;
  color: #e9eee8;
  display: block;
  font-size: 12px;
  padding: 9px 10px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-dashboard-link {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
  margin-bottom: 2px;
}

.nav a.active,
.nav a:hover {
  background: var(--accent);
  color: #182018;
  transform: none;
}

.nav-item-dropdown {
  border-radius: 10px;
}

.nav-item-dropdown > summary {
  border-radius: 9px;
  color: #e9eee8;
  cursor: pointer;
  display: block;
  font-size: 12px;
  list-style: none;
  padding: 9px 10px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-item-dropdown > summary::after {
  content: "v";
  float: right;
  font-size: 11px;
  opacity: 0.72;
}

.nav-item-dropdown[open] > summary::after {
  content: "^";
}

.nav-item-dropdown > summary.active,
.nav-item-dropdown > summary:hover {
  background: var(--accent);
  color: #182018;
  transform: none;
}

.nav-sub-links {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 4px;
  margin: 4px 0 4px 11px;
  padding: 0 0 0 7px !important;
}

.nav-sub-links .nav-sublink {
  border-radius: 8px;
  color: #dce7df;
  font-size: 11px;
  padding: 7px 8px;
}

.nav-sub-links .nav-sublink.active,
.nav-sub-links .nav-sublink:hover {
  background: rgba(215, 173, 69, 0.92);
  color: #17211b;
}

.main {
  min-width: 0;
  overflow: hidden;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(217, 224, 218, 0.78);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar h1 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* Workflow pages show their page title inside the working panel, so the global bar stays one compact action row. */
.main:has(.workflow-titlebar) .topbar > h1,
.main:has(.content[data-workflow-enhanced]) .topbar > h1 { display: none; }
.main:has(.workflow-titlebar) .topbar,
.main:has(.content[data-workflow-enhanced]) .topbar { justify-content: flex-end; }

.topbar-backup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 9px;
  border: 1px solid #d3e5da;
  border-radius: 8px;
  background: #f0f8f3;
  color: #216347;
  text-decoration: none;
  flex: 0 0 auto;
}
.topbar-backup small,
.topbar-backup strong { display: block; line-height: 1.35; }
.topbar-backup small { font-size: 10px; font-weight: 600; }
.topbar-backup strong { font-size: 12px; font-weight: 700; }
.topbar-backup.is-due { background: #fff8e5; border-color: #ead59e; color: #78540f; }
.backup-status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 7px; }
.topbar-backup:hover { border-color: currentColor; }
.topbar-backup:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.topbar-action-hidden {
  display: none !important;
}

.ui-sound-toggle {
  align-items: center;
  background: #eff8f3;
  border: 1px solid #cce3d5;
  border-radius: 8px;
  color: #176846;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  white-space: nowrap;
}

.ui-sound-toggle span { font-size: 17px; font-weight: 900; line-height: 1; }
.ui-sound-toggle small { font-size: 11px; font-weight: 900; }
.ui-sound-toggle:hover { background: #dff2e7; border-color: #83b99e; }
.ui-sound-toggle.is-muted { background: #f6f7f7; border-color: #d9dfdc; color: #65756e; }
.ui-sound-toggle:focus-visible { outline: 2px solid #1b8259; outline-offset: 2px; }

.request-icon-button {
  align-items: center;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #ffffff, #eff8f3);
  border: 1px solid rgba(212, 226, 218, 0.98);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(17, 49, 34, 0.12);
  color: #1c6f4b;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  width: 38px;
}

.request-icon-button span {
  align-items: center;
  background: #e8f5ee;
  border-radius: 12px;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.request-action-button span,
.alert-action-button span {
  color: transparent;
  font-size: 0;
}

.request-action-button span::before,
.alert-action-button span::before {
  color: #176846;
  font-size: 14px;
  font-weight: 900;
}

.request-action-button span::before {
  content: "R";
}

.alert-action-button span::before {
  content: "!";
}

.request-icon-button:hover {
  border-color: rgba(39, 134, 91, 0.38);
  box-shadow: 0 16px 34px rgba(17, 49, 34, 0.16);
  transform: none;
}

.topbar-report-button {
  text-decoration: none;
}

.topbar-report-button.active,
.topbar-report-button:hover {
  background: linear-gradient(145deg, #e8f5ee, #ffffff);
  color: var(--brand);
}

.topbar-tally-button {
  align-items: center;
  background: #fff4bd;
  border: 1px solid #e6cc6b;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 49, 34, 0.08);
  color: #123c2d;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
  padding: 0 12px;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-tally-button:hover {
  background: #144b34;
  border-color: #144b34;
  color: #ffffff;
}

.request-icon-button em {
  align-items: center;
  background: linear-gradient(180deg, #d2473f, #a8322d);
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 5px;
  position: absolute;
  right: -7px;
  top: -8px;
}

.user-panel-pill {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid rgba(218, 228, 222, 0.92);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(17, 49, 34, 0.08);
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-height: 38px;
  justify-content: center;
  padding: 6px 12px;
}

.user-panel-pill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-panel-pill strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.1;
}

.logout-button {
  align-items: center;
  background: #173f2e;
  border: 1px solid rgba(23, 63, 46, 0.2);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(23, 63, 46, 0.16);
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px 6px 8px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.logout-button span {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  font-size: 0;
  width: 30px;
}

.logout-button span::before {
  background: #ffffff;
  content: "";
  display: block;
  height: 18px;
  width: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M15 8l4 4-4 4'/%3E%3Cpath d='M19 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M15 8l4 4-4 4'/%3E%3Cpath d='M19 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.logout-button b {
  font-size: 13px;
}

.logout-button:hover {
  background: #0f2f22;
  box-shadow: 0 16px 32px rgba(23, 63, 46, 0.2);
  transform: none;
}

.content {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 22px 24px 34px;
  width: 100%;
}

.option-bar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 12px;
  position: sticky;
  top: 64px;
  z-index: 4;
}

.option-bar label {
  max-width: 360px;
}

.drawer-backdrop {
  background: rgba(12, 22, 18, 0.46);
  backdrop-filter: blur(5px);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity 0.18s ease;
  z-index: 60;
}

.drawer-backdrop.open {
  opacity: 1;
}

.request-drawer {
  background: linear-gradient(180deg, #fbfffc 0%, #f4faf6 100%);
  border: 1px solid rgba(221, 232, 225, 0.96);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(13, 28, 22, 0.34);
  left: 50%;
  max-height: min(86vh, 820px);
  max-width: none;
  overflow: auto;
  padding: 24px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -44%) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: calc(100vw - 76px);
  z-index: 61;
  opacity: 0;
}

.request-drawer.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.request-drawer-head {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eef8f1 100%);
  border: 1px solid rgba(218, 230, 222, 0.95);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(20, 32, 26, 0.08);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px 20px;
}

.request-drawer-head strong,
.request-drawer-head span {
  display: block;
}

.request-drawer-head span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.request-drawer-head strong {
  font-size: 18px;
  letter-spacing: 0;
}

.request-drawer-close {
  background: #ffffff;
  border: 1px solid rgba(218, 230, 222, 0.95);
  border-radius: 999px;
  color: var(--text);
  box-shadow: 0 10px 22px rgba(20, 32, 26, 0.1);
  min-height: 34px;
  width: 34px;
}

.request-drawer-close:hover {
  background: #f7eee9;
  color: #a33927;
}

.request-search-row {
  background: #ffffff;
  border: 1px solid rgba(218, 230, 222, 0.95);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(20, 32, 26, 0.08);
  margin-bottom: 16px;
  max-width: 760px;
  padding: 8px 10px;
  position: relative;
}

.request-search-row input {
  background: #f8fcf9;
  border-color: #c7ded0;
  border-radius: 14px;
  min-height: 48px;
  max-width: none;
  width: 100%;
}

.request-search-suggestions {
  background: #ffffff;
  border: 1px solid rgba(34, 126, 82, 0.22);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(20, 32, 26, 0.14);
  left: 0;
  margin-top: 8px;
  max-height: 260px;
  overflow: auto;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 70;
}

.request-search-suggestions button,
.request-suggestion-empty {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--text);
  display: block;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.request-search-suggestions button:hover {
  background: #eef7f1;
}

.request-search-suggestions strong,
.request-search-suggestions span {
  display: block;
}

.request-search-suggestions span,
.request-suggestion-empty {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.request-drawer .table-wrap {
  border-color: rgba(218, 230, 222, 0.95);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(20, 32, 26, 0.08);
}

.request-drawer table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1120px;
}

.request-drawer th {
  background: #ecf5ef;
  border-bottom: 1px solid #dce8e1;
  color: #53655a;
  font-size: 11px;
  padding: 13px 14px;
}

.request-drawer td {
  background: #ffffff;
  border-bottom-color: #edf1ee;
  font-size: 13px;
  padding: 14px;
}

.request-drawer tbody tr:nth-child(odd) td {
  background: #fffaf0;
}

.request-drawer tbody tr:hover td {
  background: #edf8f0;
}

.request-drawer td:first-child {
  color: #174d35;
  font-weight: 800;
  white-space: nowrap;
}

.request-drawer td:nth-child(7) {
  font-weight: 800;
}

.notification-drawer {
  width: min(1400px, calc(100vw - 80px));
  max-width: 1400px;
  height: min(640px, 78vh);
  max-height: 86vh;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.notification-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 24px; border-bottom:1px solid #dce4e8; border-top:4px solid #1597bd; background:#f6fafc; }
.notification-header h2 { font-size:20px; margin:0 0 4px; }
.notification-header span { font-size:12px; color:#61717b; }
.notification-workspace { display:grid; grid-template-columns:220px minmax(0,1fr); height:calc(100% - 94px); }
.notification-categories { background:#f5f7f9; border-right:1px solid #dde4e8; padding:16px 10px; overflow:auto; }
.notification-categories button { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; text-align:left; font-size:13px; padding:12px; margin-bottom:4px; border:0; border-radius:4px; box-shadow:none; background:transparent; color:#415461; }
.notification-categories button[aria-pressed="true"] { background:#e2f2f8; color:#086887; }
.notification-categories b { font-size:12px; }
.notification-content { display:flex; flex-direction:column; min-width:0; min-height:0; }
.notification-toolbar { display:flex; gap:12px; padding:16px 22px; border-bottom:1px solid #e2e8ec; }
.notification-toolbar input { flex:1; min-width:0; }
.notification-toolbar select { width:160px; }
.notification-toolbar input,.notification-toolbar select { font-size:13px; min-height:38px; border-radius:4px; padding:8px 10px; }
.notification-drawer .notification-list { display:block; flex:1; overflow:auto; padding:0 22px; min-height:0; }
.notification-drawer .notification-item { display:flex; gap:14px; border:0; border-bottom:1px solid #e5eaee; border-radius:0; background:#fff; padding:17px 0; font-size:13px; font-weight:400; }
.notification-drawer .notification-item:hover { background:#f5fafd; }
.notification-subject { flex:1; min-width:0; overflow-wrap:anywhere; }
.notification-subject b,.notification-subject small { display:block; }
.notification-subject small { font-size:11px; color:#71808a; margin-top:5px; }
.notification-priority { font-size:10px; color:#805d17; background:#fff4d6; padding:4px 7px; border-radius:4px; min-width:62px; text-align:center; }
.danger .notification-priority { color:#a33133; background:#ffeded; }
.notification-open { color:#107c9d; font-size:20px; }
.notification-drawer .notification-empty { height:100%; min-height:180px; display:flex; flex-direction:column; justify-content:center; gap:8px; border:0; background:transparent; color:#435b68; font-size:15px; }
.notification-empty span { font-size:13px; font-weight:400; color:#75838c; }
.notification-footer { display:flex; justify-content:space-between; gap:12px; padding:12px 22px; border-top:1px solid #e2e8ec; font-size:11px; color:#6b7b85; }
.notification-drawer [hidden] { display:none !important; }
@media(max-width:700px) {
  .request-drawer.notification-drawer { width:calc(100vw - 24px); height:84vh; padding:0; }
  .notification-header { padding:14px; }
  .notification-workspace { grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr); height:calc(100% - 83px); }
  .notification-categories { display:flex; gap:5px; padding:8px; border-right:0; border-bottom:1px solid #dde4e8; }
  .notification-categories button { width:auto; flex-shrink:0; font-size:11px; padding:8px; margin:0; }
  .notification-toolbar { padding:12px; gap:6px; }
  .notification-toolbar select { width:120px; }
  .notification-drawer .notification-list { padding:0 12px; }
  .notification-priority { min-width:0; font-size:9px; }
  .notification-drawer .notification-item { gap:8px; }
  .notification-footer { padding:12px; }
}

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

.notification-item,
.notification-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.notification-item strong {
  min-width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eaf6f0;
  color: var(--green-dark);
}

.notification-item.warning strong {
  background: #fff4d7;
  color: #8a5a00;
}

.notification-item.danger strong {
  background: #ffe2dd;
  color: #9f2f1f;
}

.scan-mode-panel,
.activity-timeline-panel {
  margin-top: 16px;
}

.scan-mode-form {
  align-items: end;
}

.scan-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f7fbf8;
  font-weight: 750;
}

.scan-result span {
  color: var(--muted);
}

.scan-result.ok {
  border-color: #bfe6d4;
  background: #f2fbf6;
}

.scan-result.danger {
  border-color: #efc3b7;
  background: #fff7f4;
}

.gate-sale-title-row {
  align-items: flex-start;
}

.gate-sale-title-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: min(720px, 100%);
}

.gate-inline-scan {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.gate-inline-scan-form {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) auto;
  gap: 8px;
  align-items: center;
}

.gate-inline-scan-form input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
  padding: 8px 12px;
  font-weight: 750;
}

.gate-inline-scan-form button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  padding: 8px 13px;
  font-weight: 850;
  cursor: pointer;
}

.gate-inline-scan-form .gate-inline-scan-focus {
  background: #eef8f3;
  border: 1px solid #cfe8dc;
  color: var(--green-dark);
}

.gate-inline-scan-form .gate-inline-scan-check {
  background: var(--green) !important;
  border: 0 !important;
  color: #fff !important;
  min-width: 86px;
  box-shadow: 0 10px 22px rgba(47, 149, 109, 0.16);
}

.gate-inline-scan-form .gate-inline-scan-check:hover,
.gate-inline-scan-form .gate-inline-scan-check:focus {
  background: var(--green-dark) !important;
  color: #fff !important;
}

.gate-inline-scan-result {
  max-width: 540px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 10px;
  background: #fbfdfc;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.gate-inline-scan-result strong {
  margin-right: 8px;
  color: var(--green-dark);
}

.gate-inline-scan-result.ok {
  border-color: #bfe6d4;
  background: #f2fbf6;
}

.gate-inline-scan-result.danger {
  border-color: #efc3b7;
  background: #fff7f4;
  color: #b91c1c;
}

.timeline-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.timeline-item {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
}

.timeline-item strong {
  color: var(--green-dark);
  font-size: 13px;
}

.timeline-item span,
.timeline-item small {
  color: var(--muted);
  font-size: 12px;
}

.pending-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.pending-dashboard-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfefc);
  text-decoration: none;
  color: var(--text);
}

.pending-dashboard-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.pending-dashboard-card strong {
  color: var(--green-dark);
  font-size: 22px;
}

@media (max-width: 760px) {
  body.mobile-entry-friendly input,
  body.mobile-entry-friendly select,
  body.mobile-entry-friendly textarea,
  body.mobile-entry-friendly button,
  body.mobile-entry-friendly .button {
    min-height: 48px;
    font-size: 16px;
  }

  .scan-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .gate-sale-title-actions {
    width: 100%;
    justify-content: stretch;
  }

  .gate-inline-scan {
    width: 100%;
    justify-items: stretch;
  }

  .gate-inline-scan-form {
    grid-template-columns: 1fr;
  }
}

.purchase-popup-backdrop {
  background: transparent;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.18s ease;
  z-index: 80;
}

.purchase-popup-backdrop.open {
  opacity: 1;
}

.purchase-popup {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(221, 232, 225, 0.9);
  border-radius: 10px;
  bottom: 14px;
  box-shadow: 0 14px 30px rgba(9, 45, 30, 0.18);
  left: auto;
  max-height: calc(100vh - 28px);
  max-width: calc(100vw - 24px);
  opacity: 0;
  overflow: auto;
  padding: 10px;
  position: fixed;
  right: 14px;
  top: auto;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: min(320px, calc(100vw - 24px));
  z-index: 81;
}

.purchase-popup.open {
  opacity: 1;
  transform: translateY(0);
}

.purchase-popup-body {
  margin-top: 6px;
}

.purchase-popup .request-drawer-head {
  border-radius: 8px;
  margin-bottom: 6px;
  padding: 8px 10px;
}

.purchase-popup .request-drawer-head strong {
  font-size: 15px;
}

.purchase-popup .request-drawer-close {
  min-height: 30px;
  width: 30px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

.panel {
  background: var(--surface);
  border: 1px solid rgba(217, 224, 218, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  max-width: 100%;
  min-width: 0;
  padding: 16px;
}

.metric {
  min-height: 94px;
  position: relative;
}

.metric::after {
  background: linear-gradient(180deg, var(--brand-2), var(--accent));
  border-radius: 999px;
  content: "";
  height: 34px;
  opacity: 0.14;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 6px;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}

.metric strong {
  display: block;
  font-size: 23px;
  line-height: 1.15;
}

.section-title {
  align-items: center;
  border-bottom: 1px solid #eef2ef;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 0 0 13px;
  padding-bottom: 10px;
}

.section-title h2 {
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.admin-tabs-panel {
  padding: 12px 16px;
}

.admin-tabs-panel .section-title {
  margin-bottom: 0;
  padding-bottom: 8px;
}

.admin-tabs a {
  background: #f4faf6;
  border: 1px solid #dce8e1;
  border-radius: 999px;
  color: #345448;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  min-width: 118px;
  padding: 8px 13px;
  text-align: center;
  text-decoration: none;
}

.admin-tabs a:hover,
.admin-tabs a.active {
  background: #144b34;
  border-color: #144b34;
  color: #ffffff;
}

.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: -2px;
}

.admin-subtabs a {
  background: #ffffff;
  border: 1px solid #dce8e1;
  border-radius: 999px;
  color: #345448;
  font-size: 12px;
  font-weight: 900;
  min-width: 150px;
  padding: 9px 16px;
  text-align: center;
  text-decoration: none;
}

.admin-subtabs a:hover,
.admin-subtabs a.active {
  background: #2f946a;
  border-color: #2f946a;
  color: #ffffff;
}

.role-permission-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.role-permission-form {
  background: #f8fbf9;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  padding: 14px;
}

.role-permission-role {
  color: #29463b;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  margin-bottom: 12px;
}

.role-permission-groups {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-permission-group {
  background: #ffffff;
  border: 1px solid #dfe9e3;
  border-radius: 8px;
  min-width: 0;
  padding: 9px;
}

.role-permission-group.stock-production {
  grid-column: 1 / -1;
}

.role-permission-group.stock-production > div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-permission-group h3,
.role-permission-summary h3 {
  color: #203a30;
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.role-permission-group > div {
  display: grid;
  gap: 5px;
}

.role-permission-check {
  align-items: start;
  background: #f8fbf9;
  border: 1px solid #e1ebe5;
  border-radius: 7px;
  display: grid;
  gap: 7px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 6px 8px;
}

.role-permission-check input {
  height: 15px;
  margin-top: 1px;
  min-height: 0;
  width: 15px;
}

.role-permission-check strong,
.role-permission-check small {
  display: block;
  line-height: 1.25;
}

.role-permission-check strong {
  color: #203a30;
  font-size: 11.5px;
  font-weight: 900;
}

.role-permission-check small {
  color: #687c72;
  font-size: 10px;
  font-weight: 800;
  margin-top: 1px;
}

.role-permission-form > button {
  margin-top: 12px;
  min-height: 44px;
  min-width: 240px;
}

.role-permission-summary {
  background: #ffffff;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  margin-top: 12px;
  min-width: 0;
  padding: 12px;
}

.role-permission-summary .table-wrap {
  border-radius: 8px;
  max-height: 340px;
  overflow: auto;
}

.role-permission-summary table {
  min-width: 520px;
}

.role-permission-side {
  min-width: 0;
}

.tools-assisted.admin-user-assisted {
  grid-template-columns: minmax(0, 1fr);
}

.admin-user-assisted .tools-help-card {
  margin-top: 4px;
}

.admin-users-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-users-layout {
  align-items: stretch;
  min-height: calc(100vh - 330px);
}

.admin-users-layout > .panel {
  min-height: calc(100vh - 330px);
}

.admin-users-table-wrap {
  flex: 1;
  max-height: none;
  min-height: 610px;
}

.admin-users-table {
  min-width: 840px;
  table-layout: fixed;
  width: 100%;
}

.admin-users-table th,
.admin-users-table td {
  overflow-wrap: anywhere;
  padding: 8px 9px;
  vertical-align: middle;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
  min-width: 0;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
  min-width: 0;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
  min-width: 0;
}

.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) {
  min-width: 0;
}

.admin-users-table .inline-status-form {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(78px, 1fr) auto;
}

.admin-users-table .inline-status-form select {
  min-height: 36px;
  min-width: 0;
  width: 100%;
}

.admin-users-table .inline-status-form button {
  min-height: 36px;
  padding: 7px 9px;
  width: 100%;
}

.admin-requests-grid {
  align-items: stretch;
  display: block;
}

.admin-requests-grid > .panel + .panel {
  margin-top: 16px;
}

.admin-request-assisted,
.admin-decision-assisted {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
}

.admin-request-assisted .tools-help-card,
.admin-decision-assisted .tools-help-card {
  margin-top: 2px;
}

.admin-decision-assisted {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
}

.admin-request-queue-panel {
  min-width: 0;
  padding: 14px;
}

.admin-request-queue-layout {
  align-items: start;
  display: block;
}

.admin-request-queue-layout > div:first-child {
  min-width: 0;
}

.admin-request-queue-layout .tools-help-card {
  position: sticky;
  top: 14px;
}

.admin-request-queue-panel .section-title {
  margin-bottom: 10px;
}

.admin-request-queue-panel .filter-form {
  gap: 7px;
  margin-bottom: 10px;
  padding: 9px;
}

.admin-request-queue-panel .filter-form input,
.admin-request-queue-panel .filter-form button,
.admin-request-queue-panel .filter-form .secondary-button {
  min-height: 40px;
}

.admin-otp-panel {
  min-width: 0;
}

.admin-otp-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.admin-otp-forms {
  min-width: 0;
}

.admin-otp-forms .table-wrap {
  max-height: 300px;
}

.delete-otp-modal .form-grid {
  margin-top: 14px;
}

.admin-login-history-panel {
  min-width: 0;
  padding-top: 14px;
}

.admin-login-filter {
  grid-template-columns: minmax(170px, 240px) minmax(170px, 240px) minmax(150px, 240px) minmax(120px, 200px);
  margin-bottom: 10px;
  padding: 10px;
}

.admin-login-history-panel .section-title {
  margin-bottom: 9px;
  padding-bottom: 8px;
}

.admin-login-filter label {
  gap: 4px;
}

.admin-login-filter input,
.admin-login-filter button,
.admin-login-filter .button {
  min-height: 40px;
}

.admin-login-table-wrap {
  border: 1px solid #e4e9e5;
  border-radius: 12px;
  overflow-x: auto;
}

.admin-login-table {
  table-layout: fixed;
  min-width: 940px;
  width: 100%;
}

.admin-login-table th,
.admin-login-table td {
  padding: 11px 14px;
  vertical-align: top;
}

.admin-login-table th {
  background: #f7fbf8;
  color: #2c4a3d;
  font-size: 12px;
}

.admin-login-table td:first-child {
  width: 120px;
}

.admin-login-table td:nth-child(2) {
  width: 110px;
}

.admin-login-table td:nth-child(3) {
  width: 250px;
}

.admin-login-table td:nth-child(4) {
  color: #465e53;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
  width: 420px;
  word-break: break-word;
}

.admin-login-table td:nth-child(5) {
  width: 90px;
}

.admin-login-table td:nth-child(6) {
  width: 110px;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.admin-pagination a {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce8e1;
  border-radius: 9px;
  color: #28503e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  min-width: 38px;
  padding: 7px 11px;
  text-decoration: none;
}

.admin-pagination a.active,
.admin-pagination a:hover {
  background: #144b34;
  border-color: #144b34;
  color: #ffffff;
}

.two-col {
  grid-template-columns: minmax(300px, 390px) 1fr;
}

.purchase-entry-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

.purchase-entry-panel {
  padding: 18px;
}

.purchase-entry-panel .section-title {
  margin-bottom: 16px;
}

form {
  display: grid;
  gap: 14px;
}

.form-grid {
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.form-grid.compact {
  gap: 12px;
  padding: 0;
}

.filter-form {
  align-items: end;
  background: #f8fbf9;
  border: 1px solid #e3e9e4;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  padding: 12px;
}

.wide {
  grid-column: 1 / -1;
}

label {
  color: #3a473e;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
}

.form-grid label {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #405047;
  min-height: 0;
  padding: 0;
}

.form-grid label.wide {
  min-height: 0;
}

.form-grid .span-2 {
  grid-column: span 2;
}

.purchase-entry-form {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid #e3ece7;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(9, 45, 30, 0.07);
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
}

.purchase-entry-form label {
  background: #ffffff;
  border: 1px solid #e6eee9;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(26, 66, 46, 0.04);
  color: #425148;
  font-size: 12px;
  min-height: 0;
  padding: 8px 10px;
}

.purchase-direct-farmer-form {
  border-radius: 10px;
  gap: 7px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px;
}

.purchase-direct-farmer-form label {
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(26, 66, 46, 0.035);
  font-size: 11px;
  gap: 4px;
  padding: 5px 7px;
}

.purchase-entry-form.purchase-direct-farmer-form label input,
.purchase-entry-form.purchase-direct-farmer-form label select,
.purchase-entry-form.purchase-direct-farmer-form label textarea {
  border-radius: 7px;
  font-size: 12px;
  min-height: 34px;
  padding: 6px 8px;
}

.khaata-combobox { display: block; position: relative; min-width: 0; }
.khaata-combobox > select[hidden], .khaata-suggestions[hidden] { display: none !important; }
.khaata-combobox .khaata-suggestions { position: absolute; z-index: 80; top: calc(100% + 4px); left: 0; right: 0; display: block; max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid #bad5c8; border-radius: 6px; box-shadow: 0 8px 22px rgba(20, 50, 35, .14); padding: 4px; }
.khaata-combobox .khaata-suggestion { display: block; padding: 8px 10px; min-height: 34px; box-sizing: border-box; color: #203d31; font-size: 13px; line-height: 18px; font-weight: 600; overflow-wrap: anywhere; cursor: pointer; border-radius: 4px; }
.khaata-combobox .khaata-suggestion:hover, .khaata-combobox .khaata-suggestion[aria-selected="true"] { background: #e6f3ed; color: #145b3c; }
.khaata-combobox .khaata-no-results { display: block; padding: 10px; color: #66756e; font-size: 13px; }
.khaata-suggestions[data-khaata-overlay]{position:fixed!important;inset:auto;right:auto!important;margin:0;box-sizing:border-box;z-index:2147483000;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #bad5c8;border-radius:6px;box-shadow:0 8px 22px rgba(20,50,35,.14);padding:4px;font-family:Arial,sans-serif;text-align:left}
.khaata-suggestions[data-khaata-overlay] .khaata-suggestion{display:block;padding:8px 10px;min-height:34px;box-sizing:border-box;color:#203d31;font-size:13px;line-height:18px;font-weight:600;overflow-wrap:anywhere;cursor:pointer;border-radius:4px}
.khaata-suggestions[data-khaata-overlay] .khaata-suggestion:hover,.khaata-suggestions[data-khaata-overlay] .khaata-suggestion[aria-selected="true"]{background:#e6f3ed;color:#145b3c}
.khaata-suggestions[data-khaata-overlay] .khaata-no-results{display:block;padding:10px;color:#66756e;font-size:13px}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid #d8e1db;
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

.form-grid label input,
.form-grid label select,
.form-grid label textarea {
  background: #fbfdfb;
  border-color: #dbe5de;
}

.purchase-entry-form label input,
.purchase-entry-form label select,
.purchase-entry-form label textarea {
  background: #f8fbf9;
  border-color: #d8e5dd;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
}

.purchase-entry-form label input:hover,
.purchase-entry-form label select:hover,
.purchase-entry-form label textarea:hover {
  border-color: #bfd1c7;
}

.purchase-entry-form .variety-field {
  background: #ffffff;
  border: 1px solid #e6eee9;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(26, 66, 46, 0.04);
  color: #425148;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  min-height: 0;
  overflow: visible;
  padding: 8px 10px;
  position: relative;
  z-index: 20;
}

.purchase-entry-form .variety-field > label {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  display: block;
  font-size: 12px;
  min-height: 0;
  padding: 0;
}

.purchase-entry-form .variety-field input {
  background: #f8fbf9;
  border-color: #d8e5dd;
  border-radius: 10px;
  display: block;
  height: 40px !important;
  line-height: 20px;
  min-height: 40px !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 30;
}

input[readonly] {
  background: #eef4f0;
  border-color: #d5e0d9;
  color: #526359;
  cursor: not-allowed;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(47, 122, 88, 0.12);
}

textarea {
  min-height: 82px;
  resize: vertical;
}

.purchase-entry-form label textarea {
  height: 40px;
  min-height: 40px;
  resize: none;
}

.form-grid > button,
.form-grid > .button {
  align-self: end;
  min-height: 46px;
}

.form-grid > button[type="submit"] {
  font-size: 14px;
}

.purchase-entry-form > button {
  min-height: 48px;
}

button,
.button {
  align-items: center;
  background: linear-gradient(180deg, #31916a, var(--brand-2));
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(45, 133, 93, 0.16);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button:hover,
.button:hover {
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(23, 59, 46, 0.2);
  transform: none;
}

button:disabled,
.button:disabled {
  background: #c9d4ce;
  box-shadow: none;
  color: #6d7d75;
  cursor: not-allowed;
}

.danger {
  background: linear-gradient(180deg, #ba5048, var(--danger));
}

.danger:hover {
  background: #8c302a;
}

.secondary-button,
.muted-button,
.button.muted {
  background: linear-gradient(180deg, #7f8da0, #64748b);
}

.mini-button {
  font-size: 12px;
  min-height: 28px;
  padding: 5px 8px;
}

.row-actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 260px;
  min-width: 0;
}

.inline-action-form {
  display: inline-flex;
  flex: 1 1 120px;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.inline-action-form input {
  border-radius: 8px;
  flex: 1 1 110px;
  min-height: 30px;
  min-width: 0;
  padding: 5px 7px;
}

.inline-action-form .mini-button {
  flex: 0 0 auto;
}

.request-decision-modal label {
  color: #29463b;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  margin-top: 12px;
}

.request-decision-modal textarea {
  min-height: 120px;
}

.status-pill {
  background: #fff6d7;
  border-radius: 999px;
  color: #7a5300;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}

.status-approved,
.status-clear,
.status-no {
  background: #e7f7ef;
  color: #17623e;
}

.status-submitted,
.status-pending,
.status-recheck,
.status-yes {
  background: #fff6d7;
  color: #7a5300;
}

.status-rejected,
.status-reverted,
.status-blacklisted {
  background: #ffe9e7;
  color: #9f2f26;
}

.status-draft,
.status-used {
  background: #edf2f7;
  color: #475569;
}

.status-hold,
.status-warning {
  background: #fff0e1;
  color: #9a4a00;
}

.muted-text {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

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

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

.gate-tab {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce7df;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(28, 55, 43, 0.08);
  color: var(--text);
  display: flex;
  font-weight: 900;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  text-decoration: none;
}

.gate-tab span {
  align-items: center;
  border-radius: 13px;
  display: inline-flex;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.gate-tab b {
  margin-left: auto;
}

.gate-tab.incoming span,
.gate-row-icon.incoming {
  background: #e7f7ef;
  color: #17623e;
}

.gate-tab.outgoing span,
.gate-row-icon.outgoing {
  background: #eaf2ff;
  color: #2457a6;
}

.gate-tab.approved span {
  background: #e7f7ef;
  color: #17623e;
}

.gate-tab.returned span {
  background: #fff0e1;
  color: #9a4a00;
}

.gate-tab.active {
  border-color: rgba(39, 134, 91, 0.42);
  box-shadow: 0 16px 34px rgba(28, 55, 43, 0.14);
  outline: 3px solid rgba(39, 134, 91, 0.12);
}

.gate-list-panel {
  margin-top: 16px;
  padding: 16px;
}

.gate-report-title {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(420px, 1fr) auto auto;
}

.gate-export-button {
  min-height: 38px;
  padding: 9px 14px;
  white-space: nowrap;
}

.gate-report-filter {
  background: linear-gradient(180deg, #fbfefc, #f3faf6);
  border-color: rgba(204, 226, 213, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  grid-template-columns: 170px 170px minmax(220px, 1fr) 150px;
  margin: 10px 0 14px;
}

.gate-report-filter input {
  min-height: 42px;
}

.gate-report-filter button {
  min-height: 42px;
}

.gate-report-filter-inline {
  box-shadow: none;
  grid-template-columns: 132px 132px minmax(190px, 1fr) 100px;
  margin: 0;
  padding: 7px;
}

.gate-report-filter-inline label {
  font-size: 12px;
}

.gate-report-filter-inline input,
.gate-report-filter-inline button {
  min-height: 36px;
}

.gate-history-table-wrap {
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(28, 55, 43, 0.08);
  margin-top: 12px;
}

.gate-history-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0 6px;
}

.gate-history-cards div {
  background: linear-gradient(180deg, #ffffff, #f7fbf8);
  border: 1px solid #d9eadf;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(23, 55, 42, 0.06);
  min-height: 78px;
  padding: 12px 14px;
}

.gate-history-cards span,
.gate-history-cards small {
  color: #5f766b;
  display: block;
  font-size: 12px;
  font-weight: 750;
}

.gate-history-cards strong {
  color: #0c271c;
  display: block;
  font-size: 26px;
  line-height: 1.05;
  margin: 4px 0;
}

.gate-history-table {
  min-width: 1180px;
}

.gate-history-table th {
  background: #eef7f1;
  color: #4b6257;
  font-size: 12px;
  padding: 13px 14px;
}

.gate-history-table td {
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 13px 14px;
  vertical-align: middle;
}

.gate-history-table tbody tr:nth-child(odd) td {
  background: #fbfefc;
}

.gate-history-table td:first-child strong {
  color: #10231a;
  font-size: 20px;
  font-weight: 950;
}

.gate-history-table td:last-child {
  white-space: nowrap;
}

.gate-row-list {
  display: grid;
  gap: 8px;
}

.gate-row-card {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(47, 143, 104, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid rgba(213, 230, 220, 0.95);
  border-left: 6px solid #2f8f68;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(23, 55, 42, 0.075);
  display: grid;
  gap: 12px;
  grid-template-columns: 46px minmax(0, 1fr) minmax(330px, 470px);
  min-height: 96px;
  overflow: hidden;
  padding: 12px 14px;
  position: relative;
}

.gate-row-card::after {
  background: radial-gradient(circle, rgba(47, 143, 104, 0.1), transparent 68%);
  content: "";
  height: 120px;
  pointer-events: none;
  position: absolute;
  right: -46px;
  top: -46px;
  width: 120px;
}

.gate-report-row-card {
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 88px;
  padding: 12px 16px;
}

.gate-compact-row {
  background:
    linear-gradient(90deg, rgba(47, 143, 104, 0.1), rgba(255, 255, 255, 0.84) 30%),
    linear-gradient(180deg, #ffffff, #fbfefc);
  border-left-width: 5px;
  border-radius: 16px;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 9px 10px;
}

.gate-compact-row.gate-report-row-card {
  grid-template-columns: 38px minmax(0, 1fr);
}

.gate-compact-row .gate-row-icon {
  border-radius: 13px;
  font-size: 17px;
  height: 36px;
  width: 36px;
}

.gate-compact-main {
  gap: 0;
}

.gate-line-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.gate-line-summary strong {
  color: #10231a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  margin-right: 4px;
}

.gate-line-summary > span,
.gate-line-summary .status-pill,
.gate-line-summary .gate-doc-chip {
  align-items: center;
  background: #eef8f2;
  border: 1px solid #d4eadc;
  border-radius: 999px;
  color: #24583e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
}

.gate-line-summary > span:nth-child(2) {
  background: #eaf2ff;
  border-color: #d9e7ff;
  color: #25589e;
}

.gate-line-summary .gate-doc-chip {
  cursor: pointer;
  min-height: 30px;
}

.gate-line-summary .gate-time-chip {
  background: #f5f8f6;
  border-color: #dfe9e3;
  color: #6a766f;
  font-size: 11px;
  font-weight: 750;
  min-height: 26px;
  padding: 4px 9px;
}

.gate-line-summary .gate-bag-preview {
  background: #fffef4;
  border-color: #eadfa8;
  color: #6d5d0c;
  max-width: min(560px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
}

.gate-row-icon {
  align-items: center;
  border: 1px solid rgba(188, 232, 207, 0.9);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
  z-index: 1;
}

.gate-row-main {
  display: grid;
  gap: 7px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.gate-row-main strong {
  color: #10231a;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
}

.gate-row-main > span {
  color: #385147;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.gate-title-icon {
  display: inline-flex;
  margin-right: 6px;
}

.gate-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gate-doc-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.gate-doc-chip.uploaded {
  background: linear-gradient(180deg, #ddfbea, #cff5de);
  border-color: #bce8cf;
  color: #145d3b;
  box-shadow: 0 8px 20px rgba(29, 104, 70, 0.08);
}

.gate-doc-chip.pending {
  background: #edf3fa;
  border-color: #dde6ef;
  color: #64748b;
  cursor: default;
}

.gate-doc-viewer {
  background: #ffffff;
  border: 1px solid #dfe9e2;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(28, 55, 43, 0.08);
  flex-basis: 100%;
  margin-top: 4px;
  overflow: hidden;
}

.gate-doc-viewer-head {
  align-items: center;
  background: #f1f7f3;
  display: grid;
  gap: 8px;
  grid-template-columns: 38px minmax(0, 1fr) auto 38px;
  padding: 8px;
}

.gate-doc-viewer-head strong {
  color: var(--text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gate-doc-viewer-head a,
.gate-doc-nav {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7e5dd;
  border-radius: 10px;
  color: #1d6a46;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  text-decoration: none;
}

.gate-doc-nav {
  cursor: pointer;
  font-size: 22px;
  padding: 0;
}

.gate-doc-viewer iframe {
  background: #f8fbf9;
  border: 0;
  display: block;
  height: 240px;
  width: 100%;
}

.edited-chip {
  background: #eaf2ff !important;
  color: #2457a6 !important;
}

.gate-split-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.gate-work-panel {
  align-self: start;
  min-height: 360px;
}

.gate-count {
  align-items: center;
  background: #e7f7ef;
  border-radius: 999px;
  color: #17623e;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}

.simple-gate-card {
  background: #fbfdfb;
  border: 1px solid #dce7df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(28, 55, 43, 0.06);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.simple-gate-card > div:first-child {
  display: grid;
  gap: 4px;
}

.simple-gate-card strong {
  color: var(--text);
  font-size: 24px;
  letter-spacing: 0;
}

.simple-gate-card span {
  color: #42534a;
  font-weight: 700;
}

.gate-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gate-checks span {
  background: rgba(239, 248, 242, 0.92);
  border: 1px solid rgba(209, 230, 217, 0.96);
  border-radius: 999px;
  color: #2f5140;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 11px;
}

.gate-checks .status-approved {
  background: #e9f7ef;
  border: 1px solid #c9ead6;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.45);
  color: #1b5f3e;
}

.gate-checks .status-reverted,
.gate-checks .status-rejected {
  background: #fff0e8;
  border-color: #f3c8b6;
  color: #9b4025;
}

.gate-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
}

.gate-action-form {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

.gate-action-form input {
  border: 1px solid #dbe5de;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

.gate-action-form .button {
  min-height: 40px;
  white-space: nowrap;
}

.gate-approve-btn {
  font-size: 14px;
  min-width: 112px;
}

.gate-revert-btn,
.gate-action-form .button.muted {
  background: linear-gradient(180deg, #7f8ca3, #637083);
  border: 0;
  color: #ffffff;
  min-width: 118px;
  padding-left: 14px;
  padding-right: 14px;
}

.gate-revert-backdrop {
  background: rgba(8, 18, 14, 0.48);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity 0.18s ease;
  z-index: 190;
}

.gate-revert-backdrop.open {
  opacity: 1;
}

.gate-revert-modal {
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
  border: 1px solid rgba(215, 229, 220, 0.95);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(12, 32, 24, 0.28);
  display: grid;
  gap: 14px;
  left: 50%;
  max-width: min(92vw, 560px);
  opacity: 0;
  padding: 20px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -44%) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: 560px;
  z-index: 191;
}

.gate-revert-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gate-revert-modal[hidden],
.gate-revert-backdrop[hidden] {
  display: none;
}

.gate-revert-head,
.gate-revert-foot {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.gate-revert-head strong {
  display: block;
  font-size: 20px;
}

.gate-revert-head span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.gate-revert-head button {
  background: #eef7f1;
  border-radius: 999px;
  color: #173b2e;
  min-height: 36px;
  padding: 0;
  width: 36px;
}

.gate-revert-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gate-revert-options button {
  background: #eef8f2;
  border: 1px solid #d3eadc;
  color: #24583e;
  font-size: 12px;
  min-height: 34px;
  padding: 7px 10px;
}

.gate-revert-modal textarea {
  min-height: 108px;
}

.gate-revert-foot {
  justify-content: flex-end;
}

.confirm-backdrop {
  background: rgba(8, 18, 14, 0.48);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity 0.16s ease;
  z-index: 210;
}

.confirm-backdrop.open {
  opacity: 1;
}

.confirm-modal {
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
  border: 1px solid rgba(215, 229, 220, 0.95);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(12, 32, 24, 0.28);
  display: grid;
  gap: 18px;
  left: 50%;
  max-width: min(92vw, 460px);
  opacity: 0;
  padding: 22px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 0.16s ease, transform 0.16s ease;
  width: min(560px, 92vw);
  z-index: 211;
}

.confirm-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.confirm-modal[hidden],
.confirm-backdrop[hidden] {
  display: none;
}

.confirm-head strong {
  color: #173b2e;
  display: block;
  font-size: 22px;
}

.confirm-head [data-confirm-message] {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 7px;
  max-height: min(56vh, 430px);
  overflow: auto;
  white-space: pre-line;
}

.confirm-review-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
  white-space: normal;
}

.confirm-review-item {
  background: #f6fbf8;
  border: 1px solid #dcebe3;
  border-radius: 14px;
  padding: 10px 12px;
}

.confirm-review-item span {
  color: #60756a;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.confirm-review-item strong {
  color: #10251c;
  display: block;
  font-size: 16px;
  line-height: 1.25;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.confirm-review-item.highlight {
  background: #fff8dd;
  border-color: #ecd37f;
}

.confirm-review-item.success {
  background: #eefaf4;
  border-color: #bde2ce;
}

.confirm-review-note {
  background: #f8fcfa;
  border: 1px dashed #d3e6dc;
  border-radius: 12px;
  color: #466156;
  font-size: 13px;
  font-weight: 800;
  margin: 12px 0 0;
  padding: 9px 11px;
  white-space: normal;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.confirm-actions .button {
  min-height: 44px;
  min-width: 110px;
}

@media (max-width: 620px) {
  .confirm-review-grid {
    grid-template-columns: 1fr;
  }
}

.gate-sidebar-tools {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.gate-sidebar-tools a {
  border-radius: 11px;
  color: #dcebe3;
  font-size: 13px;
  font-weight: 850;
  padding: 11px 14px;
}

.gate-sidebar-tools a.active {
  background: var(--accent);
  color: #173126;
}

.gate-quick-search {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(209, 229, 218, 0.9);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) 120px;
  margin: 0 0 12px;
  padding: 10px;
}

.gate-quick-search input,
.gate-quick-search button {
  min-height: 46px;
}

.gate-pass-link,
.gate-photo-chip {
  align-items: center;
  background: #f7fbf8;
  border: 1px solid #dcebe3;
  border-radius: 999px;
  color: #24583e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
}

.gate-photo-chip {
  cursor: pointer;
}

.gate-doc-chip.missing {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.gate-check-open {
  align-items: center;
  background: #eff8f3;
  border: 1px solid #d6eadf;
  border-radius: 12px;
  color: #24583e;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  min-height: 42px;
  padding: 9px 12px;
  white-space: nowrap;
}

.gate-check-modal[hidden] {
  display: none !important;
}

.gate-check-modal {
  align-items: center;
  background: rgba(8, 18, 14, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  overflow-y: auto;
  padding: 86px 18px 28px;
  position: fixed;
  z-index: 120;
}

.gate-check-modal.open {
  display: flex;
}

.gate-check-grid {
  background: #ffffff;
  border: 1px solid rgba(210, 229, 218, 0.95);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(23, 55, 42, 0.16);
  display: grid;
  gap: 9px;
  margin-top: 8px;
  min-width: 300px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 35;
}

.gate-check-grid label {
  color: #4b5c53;
  display: grid;
  font-size: 11px;
  font-weight: 850;
  gap: 4px;
}

.gate-check-grid input {
  min-height: 42px;
}

.gate-mismatch-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.gate-check-grid input.field-warning {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.inline-status-form {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin: 0;
}

.inline-status-form select,
.inline-status-form button {
  min-height: 36px;
  padding: 7px 10px;
}

body.gate-tablet-mode .app {
  grid-template-columns: minmax(0, 1fr);
}

body.gate-tablet-mode .sidebar {
  display: none;
}

body.gate-tablet-mode .nav {
  gap: 8px;
}

body.gate-tablet-mode .gate-sidebar-tools {
  gap: 10px;
  margin-top: 0;
}

body.gate-tablet-mode .gate-sidebar-tools a {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-size: 16px;
  min-height: 54px;
  padding: 16px 16px;
}

body.gate-tablet-mode .topbar {
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px 18px;
}

body.gate-tablet-mode .topbar h1 {
  display: none;
}

body.gate-tablet-mode .request-icon-button,
body.gate-tablet-mode .topbar-report-button {
  display: none;
}

body.gate-tablet-mode .content {
  padding: 14px 18px 24px;
}

body.gate-tablet-mode .gate-topbar-line {
  align-items: center;
  display: grid;
  flex: 1;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(132px, 1fr)) minmax(132px, 150px);
  min-width: 0;
}

body.gate-tablet-mode .gate-top-link {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce7df;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(28, 55, 43, 0.08);
  color: var(--text);
  display: inline-flex;
  font-size: 14px;
  font-weight: 950;
  gap: 8px;
  min-height: 50px;
  min-width: 0;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}

body.gate-tablet-mode .gate-top-link span {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 17px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

body.gate-tablet-mode .gate-top-link b {
  margin-left: auto;
}

body.gate-tablet-mode .gate-top-link.incoming span {
  background: #e7f7ef;
  color: #17623e;
}

body.gate-tablet-mode .gate-top-link.outgoing span {
  background: #eaf2ff;
  color: #2457a6;
}

body.gate-tablet-mode .gate-top-link.approved span {
  background: #e7f7ef;
  color: #17623e;
}

body.gate-tablet-mode .gate-top-link.returned span {
  background: #fff0e1;
  color: #9a4a00;
}

body.gate-tablet-mode .gate-top-link.history span {
  background: #f3eefb;
  color: #5a348f;
}

body.gate-tablet-mode .gate-top-link.active {
  border-color: rgba(39, 134, 91, 0.44);
  outline: 3px solid rgba(39, 134, 91, 0.11);
}

.gate-live-status {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #dce7df;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(28, 55, 43, 0.08);
  color: #173b2e;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50px;
  min-width: 0;
  padding: 7px 11px;
}

.gate-live-status strong {
  color: #17623e;
  font-size: 13px;
  font-weight: 950;
}

.gate-live-status small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.gate-live-status.checking strong {
  color: #9a6500;
}

.gate-live-status.offline {
  background: #fff4f3;
  border-color: #efc7c2;
}

.gate-live-status.offline strong {
  color: #a94038;
}

.gate-live-alert {
  background: #143f2f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  bottom: 22px;
  box-shadow: 0 18px 45px rgba(8, 18, 14, 0.28);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  left: 50%;
  max-width: min(92vw, 520px);
  opacity: 0;
  padding: 14px 18px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  transform: translate(-50%, 18px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: max-content;
  z-index: 260;
}

.gate-live-alert.open {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.gate-tablet-mode .gate-top-search {
  margin: 0;
  min-width: 0;
}

body.gate-tablet-mode .gate-top-search input {
  background: #ffffff;
  border: 1px solid #dce7df;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(28, 55, 43, 0.08);
  font-size: 14px;
  font-weight: 800;
  min-height: 50px;
  padding: 8px 12px;
  width: 100%;
}

.gate-photo-preview {
  border: 1px solid #dce7df;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(28, 55, 43, 0.08);
  display: block;
  height: 118px;
  margin-top: 8px;
  object-fit: cover;
  width: min(100%, 260px);
}

.gate-photo-preview[hidden] {
  display: none;
}

body.gate-tablet-mode .gate-tab-row {
  gap: 12px;
  margin-bottom: 10px;
}

body.gate-tablet-mode .gate-tab {
  border-radius: 18px;
  min-height: 64px;
  padding: 12px 14px;
}

body.gate-tablet-mode .gate-tab span {
  height: 40px;
  width: 40px;
}

body.gate-tablet-mode .gate-quick-search {
  margin: 0 0 12px;
}

body.gate-tablet-mode .gate-list-panel {
  margin-top: 10px;
  padding: 12px;
}

body.gate-tablet-mode .panel,
body.gate-tablet-mode .panel:hover,
body.gate-tablet-mode .gate-list-panel,
body.gate-tablet-mode .gate-list-panel:hover,
body.gate-tablet-mode .gate-row-card,
body.gate-tablet-mode .gate-row-card:hover {
  transform: none !important;
}

body.gate-tablet-mode .gate-row-list {
  gap: 7px;
}

body.gate-tablet-mode .gate-row-card {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 76px;
  overflow: visible;
  padding: 12px 14px;
}

body.gate-tablet-mode .gate-row-card:hover {
  transform: none;
}

body.gate-tablet-mode .gate-row-card > .gate-row-icon {
  display: none;
}

body.gate-tablet-mode .gate-report-row-card {
  grid-template-columns: minmax(0, 1fr);
}

body.gate-tablet-mode .gate-row-icon {
  border-radius: 12px;
  font-size: 16px;
  height: 34px;
  width: 34px;
}

body.gate-tablet-mode .gate-line-summary {
  gap: 8px;
}

body.gate-tablet-mode .gate-line-summary strong {
  font-size: 24px;
}

body.gate-tablet-mode .gate-line-summary > span,
body.gate-tablet-mode .gate-line-summary .status-pill,
body.gate-tablet-mode .gate-line-summary .gate-doc-chip,
body.gate-tablet-mode .gate-pass-link,
body.gate-tablet-mode .gate-photo-chip {
  font-size: 11px;
  min-height: 27px;
  padding: 5px 9px;
}

body.gate-tablet-mode .gate-actions {
  gap: 8px;
}

body.gate-tablet-mode .gate-action-form {
  gap: 8px;
}

body.gate-tablet-mode .gate-check-modal {
  align-items: flex-start;
  padding: 82px 18px 24px;
}

body.gate-tablet-mode .gate-check-modal .gate-check-grid {
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(12, 32, 24, 0.28);
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  max-height: calc(100vh - 170px);
  min-width: 0;
  overflow: auto;
  padding: 16px;
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  width: min(88vw, 680px);
  z-index: 121;
}

body.gate-tablet-mode .gate-check-modal .gate-check-grid::before {
  color: #173b2e;
  content: "Check Details";
  font-size: 19px;
  font-weight: 950;
  grid-column: 1 / -1;
  padding-bottom: 2px;
}

body.gate-tablet-mode .gate-check-close {
  align-items: center;
  background: #eef7f1;
  border: 1px solid #d6eadf;
  border-radius: 999px;
  color: #173b2e;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 12px;
  width: 38px;
}

body.gate-tablet-mode .gate-check-modal .gate-check-grid label {
  gap: 5px;
}

body.gate-tablet-mode .gate-check-modal .gate-check-grid input {
  min-height: 44px;
}

body.gate-tablet-mode .gate-check-modal .gate-mismatch-warning,
body.gate-tablet-mode .gate-check-modal .gate-photo-input {
  grid-column: 1 / -1;
}

body.gate-tablet-mode .gate-check-modal-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 4px;
}

body.gate-tablet-mode .gate-check-modal-actions .button {
  min-height: 48px;
  min-width: 130px;
}

body.gate-tablet-mode .gate-approve-btn,
body.gate-tablet-mode .gate-revert-btn {
  border-radius: 13px;
  font-size: 16px;
  min-height: 52px;
  min-width: 132px;
}

body.gate-tablet-mode .user-panel-pill {
  display: none;
}

body.gate-tablet-mode .logout-button {
  border-radius: 16px;
  justify-content: center;
  min-height: 50px;
  padding: 8px;
  width: 54px;
}

body.gate-tablet-mode .logout-button span {
  margin: 0;
}

body.gate-tablet-mode .logout-button b {
  display: none;
}

@media (max-width: 1100px) {
  body.gate-tablet-mode .app {
    grid-template-columns: 1fr;
  }

  body.gate-tablet-mode .sidebar {
    display: none;
  }

  body.gate-tablet-mode .topbar {
    align-items: stretch;
  }

  body.gate-tablet-mode .gate-topbar-line {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  body.gate-tablet-mode .gate-row-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body.gate-tablet-mode .gate-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .simple-gate-card {
    padding: 18px;
  }

  .simple-gate-card strong {
    font-size: 28px;
  }

  .gate-checks span {
    font-size: 14px;
    padding: 9px 12px;
  }

  .gate-action-form .button,
  .gate-action-form input {
    min-height: 52px;
  }

  .gate-row-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .gate-row-card .gate-actions {
    grid-column: 2;
  }
}

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

.document-upload-list label {
  align-items: center;
  background: #fbfdfb;
  border: 1px solid #dbe5de;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: 170px minmax(0, 1fr);
  padding: 10px;
}

.document-upload-list span {
  font-weight: 700;
}

.document-upload-list em {
  background: #eef4f0;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  margin-left: 8px;
  padding: 3px 8px;
}

.document-upload-list label.is-uploaded {
  background: #f2f5f3;
  border-color: #d7ded9;
  color: #748077;
}

.document-upload-list label.is-uploaded input {
  cursor: not-allowed;
  opacity: 0.55;
}

.document-upload-list label.is-uploaded em {
  background: #dff3e7;
  color: #23724e;
}

.document-chip-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 420px;
}

.document-chip {
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 800;
  gap: 2px;
  line-height: 1.15;
  padding: 7px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.document-chip.uploaded {
  background: linear-gradient(180deg, #f1fbf5, #e4f6ed);
  border-color: #c8e8d4;
  color: #1d6846;
}

.document-chip.uploaded:hover {
  background: #25845b;
  color: #ffffff;
}

.document-chip strong {
  font-size: 12px;
}

.document-chip small {
  color: #6e8176;
  font-size: 10px;
  font-weight: 700;
}

.document-chip.uploaded:hover small {
  color: rgba(255, 255, 255, 0.82);
}

.document-chip.pending {
  background: #fff4dc;
  border-color: #f3dfae;
  color: #9a6415;
}

.document-modal-backdrop {
  background: rgba(12, 22, 18, 0.5);
  backdrop-filter: blur(5px);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity 0.18s ease;
  z-index: 90;
}

.document-modal-backdrop.open {
  opacity: 1;
}

.document-modal {
  background: #ffffff;
  border: 1px solid rgba(222, 232, 225, 0.95);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(12, 22, 18, 0.34);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  left: 50%;
  max-height: min(88vh, 860px);
  max-width: min(92vw, 1120px);
  opacity: 0;
  overflow: hidden;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: min(92vw, 1120px);
  z-index: 91;
}

.document-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.document-modal[hidden],
.document-modal-backdrop[hidden] {
  display: none !important;
}

.document-modal-head,
.document-modal-foot {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f1f8f4);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.document-modal-head {
  border-bottom: 1px solid #e2ece6;
}

.document-modal-foot {
  border-top: 1px solid #e2ece6;
}

.document-modal-foot span {
  flex: 1;
}

.document-modal-head strong,
.document-modal-head span {
  display: block;
}

.document-modal-head strong {
  font-size: 18px;
}

.document-modal-head span,
.document-modal-foot span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.document-modal-head button {
  align-items: center;
  background: #eef5f1;
  border: 0;
  border-radius: 999px;
  color: #24342a;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.document-modal-body {
  align-items: center;
  background: #101712;
  display: flex;
  justify-content: center;
  min-height: 420px;
  overflow: auto;
  padding: 14px;
}

.document-modal-body img {
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  max-height: calc(88vh - 160px);
  max-width: 100%;
  object-fit: contain;
}

.document-modal-body iframe {
  background: #ffffff;
  border: 0;
  border-radius: 12px;
  height: calc(88vh - 160px);
  min-height: 420px;
  width: 100%;
}

.document-modal-foot a {
  background: #25845b;
  border-radius: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
}

.document-modal-nav {
  align-items: center;
  background: #eef5f1;
  border: 1px solid #d8e7de;
  border-radius: 12px;
  color: #1d6846;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.document-modal-nav:hover {
  background: #25845b;
  color: #ffffff;
}

table {
  border-collapse: collapse;
  min-width: 1320px;
  width: 100%;
}

.table-wrap {
  background: #ffffff;
  border: 1px solid #e4e9e5;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  max-height: min(58vh, 560px);
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
  width: 100%;
}

.table-wrap thead th {
  background: #f7fbf8;
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.data-table-btn,
.data-table-export {
  align-items: center;
  border: 1px solid #d8e4dc;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 36px;
  padding: 8px 15px;
  width: auto;
}

.data-table-btn {
  background: #f4faf6;
  color: #123d2e;
}

.data-table-export {
  background: #2f9469;
  border-color: #2f9469;
  color: #ffffff;
}

.data-table-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.data-table-page {
  background: #fff7d7;
  border: 1px solid #f0df9a;
  border-radius: 999px;
  color: #4f3d06;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  padding: 9px 14px;
}

.finance-table-wrap {
  background: #ffffff;
  border: 1px solid #e4e9e5;
  border-radius: 12px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}

.finance-table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
}

.finance-table th,
.finance-table td {
  border-bottom: 1px solid #e7ece8;
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.finance-table th {
  background: #f1f7f3;
  color: #29463b;
  font-size: 12px;
  text-transform: uppercase;
}

.finance-table td.amount {
  text-align: right;
}

.tools-stock-print-grid {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

.tools-stock-print-grid .panel {
  min-width: 0;
  overflow: hidden;
}

.tools-export-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  max-width: 100%;
}

.tools-overview-panel {
  max-width: 100%;
}

.tools-overview-links {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-overview-links a {
  background: #f8fbf9;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  color: #17382a;
  min-height: 68px;
  padding: 12px 14px;
  text-decoration: none;
}

.tools-overview-links a:hover {
  background: #eef7f1;
  border-color: #bcd8c9;
}

.tools-overview-links strong,
.tools-overview-links span {
  display: block;
}

.tools-overview-links strong {
  font-size: 14px;
  line-height: 1.2;
}

.tools-overview-links span {
  color: #65776e;
  font-size: 12px;
  font-weight: 800;
  margin-top: 5px;
}

.tools-assisted {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}

/* Master data must stay usable when the section filter hides its sibling panel. */
.tools-master-data-layout {
  grid-template-columns: minmax(0, 1fr);
}

.tools-master-data-layout > .panel {
  min-width: 0;
}

.tools-master-data-layout .tools-assisted {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.tools-master-data-layout .form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tools-master-data-layout .tools-help-card {
  margin: 0;
  max-width: none;
}

.tools-master-data-layout .tools-help-card ol,
.tools-master-data-layout .tools-help-card ul {
  margin-bottom: 0;
}

.admin-edit-record-assisted {
  grid-template-columns: 1fr;
}

.admin-edit-record-form {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.admin-open-record-details {
  align-self: end;
  min-height: 54px;
}

.tools-wastage-approval-assisted {
  grid-template-columns: 1fr;
}

.tools-wastage-approval-assisted .form-grid {
  grid-template-columns: minmax(150px, 220px) minmax(180px, 240px);
}

.tools-wastage-approval-assisted .tools-help-card {
  max-width: none;
}

.tools-wastage-approval-assisted button {
  min-height: 54px;
}

.tools-cancel-entry-assisted {
  grid-template-columns: 1fr;
}

.tools-cancel-entry-assisted .form-grid {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.tools-cancel-entry-assisted .tools-help-card {
  max-width: none;
}

.tools-cancel-entry-assisted button {
  min-height: 54px;
}

.tools-activity-panel {
  min-width: 0;
}

.tools-activity-top {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  margin-bottom: 14px;
}

.tools-activity-card {
  min-width: 0;
}

.tools-activity-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

.tools-activity-card .table-wrap,
.tools-activity-card .finance-table-wrap {
  max-height: 360px;
  overflow: auto;
}

.tools-activity-card table,
.tools-activity-table table {
  min-width: 760px;
}

.tools-activity-table {
  min-width: 0;
}

.tools-activity-table .table-wrap,
.tools-activity-table .finance-table-wrap {
  max-height: 440px;
  overflow: auto;
}

.admin-record-toast {
  align-self: end;
  border: 1px solid #dfe8e2;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(19, 65, 45, 0.12);
  color: #5f7067;
  font-size: 12px;
  font-weight: 900;
  grid-column: 1 / -1;
  justify-self: end;
  line-height: 1.25;
  max-width: 100%;
  opacity: 0;
  padding: 9px 13px;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-record-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-record-toast.is-checking {
  background: #fff8e5;
  border-color: #e2c56e;
  color: #936b0a;
}

.admin-record-toast.is-valid {
  background: #eefaf3;
  border-color: #9fceb7;
  color: #16764a;
}

.admin-record-toast.is-invalid {
  background: #fff2f1;
  border-color: #edb5b1;
  color: #a7312b;
}

.admin-edit-record-assisted .tools-help-card {
  max-width: none;
}

.admin-record-id-field.is-checking input {
  border-color: #d6a832;
  box-shadow: 0 0 0 3px rgba(214, 168, 50, 0.14);
}

.admin-record-id-field.is-valid input {
  border-color: #22935f;
  box-shadow: 0 0 0 3px rgba(34, 147, 95, 0.15);
}

.admin-record-id-field.is-invalid input {
  border-color: #c8413a;
  box-shadow: 0 0 0 3px rgba(200, 65, 58, 0.13);
}

.admin-selected-fields {
  border: 1px dashed #d8e5dd;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  padding: 12px;
}

.admin-selected-fields .small {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-edit-record-modal {
  gap: 14px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  max-height: 88vh;
  max-width: min(1180px, 94vw);
  padding: 24px 28px 0;
  width: min(1180px, 94vw);
}

.admin-edit-record-modal h3 {
  margin: 0;
}

.admin-edit-popup-notice {
  background: #eefaf3;
  border: 1px solid #b8ddc9;
  border-radius: 10px;
  border-bottom: 1px solid #e6eee9;
  color: #176043;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
  padding: 9px 12px;
}

.admin-edit-record-fields {
  background: #f8fbf9;
  border: 1px solid #dfe8e2;
  border-radius: 14px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.admin-edit-record-field-option {
  align-items: start;
  background: #ffffff;
  border: 1px solid #e3ece7;
  border-radius: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  min-width: 0;
  padding: 12px;
}

.admin-edit-record-field-option:nth-child(3n + 1) {
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
}

.admin-edit-record-field-option:nth-child(3n) {
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
}

.admin-edit-field-top {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-edit-field-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-edit-record-field-option strong {
  color: #24362d;
  font-size: 12px;
  line-height: 1.25;
}

.admin-edit-record-field-option em {
  color: #60736a;
  display: block;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-edit-toggle {
  align-items: center;
  background: #f1f6f3;
  border: 1px solid #d9e5de;
  border-radius: 999px;
  color: #506258;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px;
  white-space: nowrap;
}

.admin-edit-toggle input {
  min-height: 14px;
  width: 14px;
}

.admin-edit-record-field-option:has(.admin-edit-toggle input:checked) {
  background: #f4fbf7;
  border-color: #9fceb7;
  box-shadow: inset 0 0 0 1px rgba(34, 147, 95, 0.12);
}

.admin-edit-record-field-option > input {
  min-height: 42px;
  width: 100%;
}

.admin-edit-record-field-option > input:disabled {
  background: #eef4f0;
  color: #788980;
}

.admin-edit-record-modal .modal-actions {
  background: #ffffff;
  border-top: 1px solid #e6eee9;
  margin: 0 -28px;
  padding: 16px 28px 22px;
  position: static;
}

@media (max-width: 980px) {
  .admin-edit-record-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-activity-top {
    grid-template-columns: 1fr;
  }

  .admin-edit-record-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-edit-record-form,
  .admin-edit-record-fields {
    grid-template-columns: 1fr;
  }
}

body.ui-filter-pending .main .content {
  visibility: hidden;
}

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

.tools-website-tabs-panel .section-title {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.tools-website-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tools-website-tabs a {
  background: #f4faf6;
  border: 1px solid #dce8e1;
  border-radius: 999px;
  color: #345448;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  min-width: 130px;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
}

.tools-website-tabs a:hover,
.tools-website-tabs a.active {
  background: #144b34;
  border-color: #144b34;
  color: #ffffff;
}

.tools-website-login-layout {
  grid-template-columns: 1fr;
}

.tools-website-login-layout .tools-help-card {
  max-width: none;
}

.form-grid.tools-website-login-form {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.form-grid.tools-website-login-form .wide {
  grid-column: 1 / -1;
}

.form-grid.tools-website-login-form textarea {
  min-height: 76px;
}

.tools-website-invoice-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.tools-website-invoice-layout .tools-help-card {
  max-width: none;
}

.form-grid.tools-website-invoice-form {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.form-grid.tools-website-invoice-form .wide {
  grid-column: 1 / -1;
}

.tools-company-settings-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
}

.form-grid.tools-company-settings-form {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
}

.form-grid.tools-company-settings-form .wide {
  grid-column: 1 / -1;
}

.company-feature-controls {
  padding: 18px;
  border: 1px solid #cfe5d9;
  border-left: 4px solid #21885c;
  background: #f5fbf7;
  border-radius: 8px;
}

.company-feature-controls-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.company-feature-controls .eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #19734d;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.company-feature-controls h3 {
  margin: 0;
  color: #183c2c;
  font-size: 18px;
}

.company-feature-controls p {
  margin: 5px 0 0;
  color: #607268;
  font-size: 13px;
}

.company-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.company-feature-grid label {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid #d9e9df;
  border-radius: 6px;
  background: #fff;
  color: #315344;
  font-size: 13px;
  font-weight: 800;
}

.company-feature-grid select {
  min-height: 36px;
  background: #f9fcfa;
}

.company-hsn-settings {
  border-left-color: #9b6b16;
  background: #fffdf7;
}

.company-hsn-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.company-hsn-grid label {
  padding: 8px 10px;
}

.company-hsn-grid input {
  min-height: 34px;
  letter-spacing: 0;
}

.form-grid.tools-company-settings-form .invoice-terms-inline {
  grid-column: auto;
}

.form-grid.tools-company-settings-form .invoice-terms-inline textarea {
  height: 44px;
  min-height: 44px;
  overflow: hidden;
  resize: none;
}

.tools-rate-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.tools-rate-table {
  table-layout: fixed;
}

.tools-rate-table th,
.tools-rate-table td {
  white-space: normal;
}

.tools-help-card {
  background: #f4faf6;
  border: 1px solid #dce8e1;
  border-radius: 10px;
  color: #29463b;
  min-width: 0;
  padding: 13px 14px;
}

.tools-help-card h3 {
  color: #163d2c;
  font-size: 14px;
  line-height: 1.25;
  margin: 0 0 9px;
}

.tools-help-card ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.tools-help-card li {
  color: #445b50;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.tools-help-card p {
  border-top: 1px solid #dce8e1;
  color: #66776f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  margin: 10px 0 0;
  padding-top: 10px;
}

.tools-assisted .tools-jobwork-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tools-quality-grid .tools-assisted {
  grid-template-columns: minmax(0, 1fr);
}

.tools-export-section {
  background: #fbfdfc;
  border: 1px solid #dfe9e3;
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}

.tools-export-section h3 {
  align-items: center;
  background: #eef6f1;
  border-bottom: 1px solid #dfe9e3;
  color: #17392b;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: space-between;
  margin: 0;
  min-height: 34px;
  padding: 7px 11px;
}

.tools-export-list {
  display: grid;
  gap: 0;
}

.tools-export-card {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #edf1ee;
  color: #10251c;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 8px 10px;
}

.tools-export-card:last-child {
  border-bottom: 0;
}

.tools-export-card:hover {
  background: #f6fbf8;
}

.tools-export-card span {
  display: block;
  min-width: 0;
}

.tools-export-card strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.tools-export-card small {
  color: #587064;
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 2px;
  white-space: normal;
}

.tools-export-card b {
  background: #0f5e49;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  min-width: 76px;
  padding: 6px 9px;
  text-align: center;
}

.tools-ledger-panel {
  min-width: 0;
  overflow: visible;
}

.tools-ledger-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.tools-ledger-summary div {
  background: #fbfdfc;
  border: 1px solid #dfe9e3;
  border-radius: 12px;
  min-height: 74px;
  padding: 10px 12px;
}

.tools-ledger-summary span,
.tools-ledger-summary small {
  color: #587064;
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.tools-ledger-summary strong {
  color: #10251c;
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  margin: 5px 0 2px;
  overflow-wrap: anywhere;
}

.tools-ledger-print-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: 190px minmax(220px, 1fr) 180px;
  margin-top: 12px;
}

.tools-ledger-print-form label {
  color: #29463b;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
}

.tools-party-search {
  position: relative;
}

.tools-ledger-print-form input,
.tools-ledger-print-form select {
  background: #fbfdfc;
  border: 1px solid #d8e6de;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
}

.tools-ledger-print-form button {
  min-height: 40px;
}

.tools-party-suggestions {
  background: #ffffff;
  border: 1px solid #d8e6de;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(17, 49, 34, 0.16);
  left: 0;
  max-height: 220px;
  overflow: auto;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
}

.tools-party-suggestions button,
.tools-party-empty {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #10251c;
  display: block;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.tools-party-suggestions button strong,
.tools-party-suggestions button span {
  display: block;
  line-height: 1.25;
}

.tools-party-suggestions button span {
  color: #64766d;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.tools-party-suggestions button:hover {
  background: #eef6f1;
}

.tools-party-empty {
  color: #66766d;
  font-weight: 700;
}

.tools-ledger-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tools-ledger-grid .panel {
  min-width: 0;
  overflow: hidden;
}

.tools-ledger-table {
  min-width: 560px;
}

.tools-ledger-table .button {
  min-height: 30px;
  padding: 6px 10px;
}

.tools-aging-panel {
  min-width: 0;
  overflow: hidden;
}

.tools-aging-ledger {
  border: 1px solid #dfe9e3;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  overflow: hidden;
}

.tools-aging-ledger div {
  background: #f8fbf9;
  border-right: 1px solid #dfe9e3;
  min-height: 72px;
  padding: 11px 14px;
}

.tools-aging-ledger div:last-child {
  border-right: 0;
}

.tools-aging-ledger span,
.tools-aging-ledger small {
  color: #587064;
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.tools-aging-ledger strong {
  color: #10251c;
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  margin: 5px 0 2px;
  overflow-wrap: anywhere;
}

.tools-aging-report-wrap {
  border-radius: 8px;
  margin-top: 14px;
}

.tools-aging-table {
  min-width: 840px;
}

.tools-aging-table th,
.tools-aging-table td {
  padding: 9px 12px;
}

.tools-aging-table th:first-child,
.tools-aging-table td:first-child {
  width: 118px;
}

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

.tools-aging-section td {
  background: #eaf4ee;
  color: #254337;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tools-aging-total td {
  background: #f6faf7;
  color: #1e392e;
  font-weight: 900;
}

.tools-aging-tag {
  border: 1px solid #d8e5dd;
  border-radius: 999px;
  color: #29463b;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 9px;
}

.tools-aging-tag.receivable {
  background: #eef8f1;
}

.tools-aging-tag.payable {
  background: #fff7ed;
  border-color: #eedbc5;
  color: #6b431a;
}

.tools-aging-old {
  color: #8a3b21;
  font-weight: 800;
}

.tools-broker-panel,
.tools-broker-workbench {
  min-width: 0;
  overflow: hidden;
}

.tools-broker-summary {
  border: 1px solid #dfe9e3;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  overflow: hidden;
}

.tools-broker-summary div {
  background: #f8fbf9;
  border-right: 1px solid #dfe9e3;
  min-height: 72px;
  padding: 11px 14px;
}

.tools-broker-summary div:last-child {
  border-right: 0;
}

.tools-broker-summary span,
.tools-broker-summary small {
  color: #587064;
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.tools-broker-summary strong {
  color: #10251c;
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  margin: 5px 0 2px;
}

.tools-broker-actions {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tools-broker-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.tools-broker-tabs a {
  background: #f4faf6;
  border: 1px solid #dce8e1;
  border-radius: 999px;
  color: #345448;
  min-width: 118px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 9px 16px;
  text-decoration: none;
  text-align: center;
}

.tools-broker-tabs a:hover,
.tools-broker-tabs a.active {
  background: #144b34;
  border-color: #144b34;
  color: #ffffff;
}

.tools-broker-chip-list {
  align-items: flex-start;
  border-bottom: 1px solid #e3ece6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 12px;
}

.tools-broker-chip-list > strong {
  align-items: center;
  color: #345448;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  line-height: 28px;
  white-space: nowrap;
}

.tools-broker-chip-list > strong span {
  background: #e8f4ed;
  border-radius: 999px;
  color: #176344;
  min-width: 22px;
  padding: 2px 7px;
  text-align: center;
}

.tools-broker-chip-items {
  align-items: center;
  display: flex;
  flex: 1 1 420px;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.tools-broker-chip {
  background: #f2f8f4;
  border: 1px solid #cfe2d6;
  border-radius: 999px;
  color: #245640;
  display: inline-flex;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 6px 10px;
  text-decoration: none;
}

.tools-broker-chip:hover,
.tools-broker-chip:focus-visible {
  background: #dff1e6;
  border-color: #77b592;
  color: #123e2c;
}

.tools-broker-chip-empty {
  color: #687b72;
  font-size: 12px;
  padding: 6px 0;
}

.tools-broker-block {
  border-top: 1px solid #e3ece6;
  min-width: 0;
  padding: 14px 0 0;
}

.tools-broker-block:nth-child(odd) {
  padding-right: 16px;
}

.tools-broker-block:nth-child(even) {
  border-left: 1px solid #e3ece6;
  padding-left: 16px;
}

.tools-broker-block h3 {
  color: #203a30;
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.tools-broker-active-block {
  border-left: 0;
  grid-column: 1 / -1;
  padding-left: 0;
  padding-right: 0;
}

.tools-broker-active-block.tools-broker-note,
.tools-broker-active-block.tools-broker-stock {
  margin-top: 0;
}

.tools-broker-note,
.tools-broker-stock {
  margin-top: 14px;
}

.tools-broker-stock {
  grid-column: 1 / -1;
  padding-right: 0;
}

.tools-broker-stock .finance-table-wrap {
  border-radius: 8px;
}

.tools-compact-form {
  gap: 8px;
}

.tools-compact-form input,
.tools-compact-form select,
.tools-compact-form textarea {
  min-height: 38px;
}

.tools-compact-form textarea {
  min-height: 70px;
}

.tools-compact-form button {
  min-height: 38px;
}

.tools-bag-table {
  min-width: 420px;
}

.tools-dispatch-grid {
  grid-template-columns: minmax(0, 1320px);
}

.tools-dispatch-grid .panel {
  min-width: 0;
}

.tools-dispatch-panel {
  max-width: 1320px;
}

.tools-dispatch-board {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(420px, 0.9fr) minmax(440px, 1.1fr);
}

.tools-dispatch-form {
  background: #f8fbf9;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.tools-dispatch-form label {
  color: #29463b;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
}

.tools-dispatch-form input,
.tools-dispatch-form select,
.tools-dispatch-form textarea {
  background: #ffffff;
  border-color: #d7e4dc;
  border-radius: 10px;
  min-height: 42px;
}

.tools-dispatch-form textarea {
  min-height: 92px;
}

.tools-dispatch-form .wide {
  grid-column: 1 / -1;
}

.tools-dispatch-form button {
  grid-column: 1 / span 2;
  justify-self: start;
  min-height: 44px;
  min-width: 220px;
}

.tools-dispatch-history {
  background: #ffffff;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  min-width: 0;
  padding: 14px;
}

.tools-dispatch-history-title {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tools-dispatch-history-title h3 {
  color: #203a30;
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
}

.tools-dispatch-history-title span {
  background: #eef8f1;
  border-radius: 999px;
  color: #0f6b42;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
}

.tools-dispatch-table {
  min-width: 680px;
}

.tools-dispatch-table th,
.tools-dispatch-table td {
  padding: 9px 10px;
}

.tools-dispatch-table td:first-child {
  color: #103d2b;
}

.tools-closing-panel {
  max-width: 1320px;
  min-width: 0;
}

.tools-closing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.tools-closing-tabs a {
  background: #f4faf6;
  border: 1px solid #dce8e1;
  border-radius: 999px;
  color: #345448;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  min-width: 130px;
  padding: 9px 16px;
  text-align: center;
  text-decoration: none;
}

.tools-closing-tabs a:hover,
.tools-closing-tabs a.active {
  background: #144b34;
  border-color: #144b34;
  color: #ffffff;
}

.tools-closing-board {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(420px, 0.9fr) minmax(440px, 1.1fr);
}

.tools-closing-form-card,
.tools-closing-history {
  background: #ffffff;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  min-width: 0;
  padding: 14px;
}

.tools-closing-form {
  background: #f8fbf9;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.tools-closing-form label {
  color: #29463b;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
}

.tools-closing-form input,
.tools-closing-form select,
.tools-closing-form textarea {
  background: #ffffff;
  border-color: #d7e4dc;
  border-radius: 10px;
  min-height: 42px;
}

.tools-closing-form textarea {
  min-height: 92px;
}

.tools-closing-form button {
  grid-column: 1 / span 2;
  justify-self: start;
  min-height: 44px;
  min-width: 220px;
}

.tools-closing-history-title {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tools-closing-history-title h3 {
  color: #203a30;
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
}

.tools-closing-history-title span {
  background: #eef8f1;
  border-radius: 999px;
  color: #0f6b42;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
}

.tools-closing-table {
  min-width: 660px;
}

.tools-closing-table th,
.tools-closing-table td {
  padding: 9px 10px;
}

.tools-restore-panel {
  max-width: 1320px;
  min-width: 0;
}

.tools-restore-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.tools-restore-tabs a {
  background: #f4faf6;
  border: 1px solid #dce8e1;
  border-radius: 999px;
  color: #345448;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  min-width: 150px;
  padding: 9px 16px;
  text-align: center;
  text-decoration: none;
}

.tools-restore-tabs a:hover,
.tools-restore-tabs a.active {
  background: #144b34;
  border-color: #144b34;
  color: #ffffff;
}

.tools-restore-board {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 0.75fr) minmax(520px, 1.25fr);
}

.tools-restore-form-card,
.tools-restore-history {
  background: #ffffff;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  min-width: 0;
  padding: 14px;
}

.tools-restore-form {
  background: #f8fbf9;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.tools-form-help {
  background: #f4faf6;
  border: 1px solid #dce8e1;
  border-radius: 10px;
  color: #29463b;
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.tools-form-help strong {
  font-size: 13px;
  line-height: 1.3;
}

.tools-form-help span {
  color: #607369;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.tools-restore-form label {
  color: #29463b;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
}

.tools-restore-form input,
.tools-restore-form select {
  background: #ffffff;
  border-color: #d7e4dc;
  border-radius: 10px;
  min-height: 42px;
}

.tools-restore-form button {
  grid-column: 1 / span 2;
  justify-self: start;
  min-height: 44px;
  min-width: 220px;
}

.tools-restore-history-title {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tools-restore-history-title h3 {
  color: #203a30;
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
}

.tools-restore-history-title span {
  background: #eef8f1;
  border-radius: 999px;
  color: #0f6b42;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
}

.tools-restore-table {
  min-width: 760px;
}

.tools-restore-table th,
.tools-restore-table td {
  padding: 9px 10px;
}

.tools-url-cell {
  max-width: 430px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tools-quality-panel,
.tools-quality-grid .panel {
  min-width: 0;
  overflow: hidden;
}

.tools-quality-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.tools-quality-summary div {
  background: #fbfdfc;
  border: 1px solid #dfe9e3;
  border-radius: 12px;
  min-height: 74px;
  padding: 10px 12px;
}

.tools-quality-summary span,
.tools-quality-summary small {
  color: #587064;
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.tools-quality-summary strong {
  color: #10251c;
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  margin: 5px 0 2px;
}

.tools-quality-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.3fr);
}

.tools-jobwork-panel {
  min-width: 0;
  overflow: hidden;
}

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

.tools-jobwork-summary div {
  background: #fbfdfc;
  border: 1px solid #dfe9e3;
  border-radius: 12px;
  min-height: 74px;
  padding: 10px 12px;
}

.tools-jobwork-summary span,
.tools-jobwork-summary small {
  color: #587064;
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.tools-jobwork-summary strong {
  color: #10251c;
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  margin: 5px 0 2px;
}

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

.tools-jobwork-table {
  min-width: 900px;
}

.tools-lab-panel {
  min-width: 0;
  overflow: hidden;
}

.tools-lab-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.tools-lab-summary div {
  background: #fbfdfc;
  border: 1px solid #dfe9e3;
  border-radius: 12px;
  min-height: 74px;
  padding: 10px 12px;
}

.tools-lab-summary span,
.tools-lab-summary small {
  color: #587064;
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.tools-lab-summary strong {
  color: #10251c;
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  margin: 5px 0 2px;
}

.tools-lab-table {
  min-width: 760px;
}

.tools-quality-form-first .panel {
  align-self: start;
}

.tools-quality-form-first .section-title {
  margin-bottom: 4px;
}

.tools-quality-form-first .small {
  background: #f5fbf7;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  margin: 0 0 12px;
  padding: 9px 10px;
}

th,
td {
  border-bottom: 1px solid #e8ece8;
  font-size: 13px;
  overflow-wrap: normal;
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

tbody tr:hover {
  background: #fbf8ee;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: #f2f7f4;
  color: #4c5d52;
  font-size: 11px;
  letter-spacing: 0;
  position: sticky;
  top: 0;
  text-transform: uppercase;
}

.dashboard-activity-panel .table-wrap {
  overflow-x: auto;
}

.dashboard-activity-panel table {
  min-width: 0;
  table-layout: fixed;
}

.dashboard-activity-panel th:nth-child(1),
.dashboard-activity-panel td:nth-child(1) {
  width: 180px;
}

.dashboard-activity-panel th:nth-child(2),
.dashboard-activity-panel td:nth-child(2),
.dashboard-activity-panel th:nth-child(3),
.dashboard-activity-panel td:nth-child(3) {
  width: 130px;
}

.dashboard-activity-panel td:last-child {
  overflow-wrap: anywhere;
  white-space: normal;
}

.notice {
  background: #edf8ef;
  border: 1px solid #b7dfc0;
  border-radius: 12px;
  color: #215b31;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.form-grid .notice {
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 48px;
}

.other-detail-field {
  margin-top: 6px;
  width: 100%;
}

.finance-form label.has-other-detail {
  align-items: end;
  display: grid;
  gap: 6px 10px;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-form label.has-other-detail > select {
  grid-column: 1;
}

.finance-form label.has-other-detail > .other-detail-field {
  grid-column: 2;
  margin-top: 0;
}

.other-detail-field[hidden] {
  display: none !important;
}

.other-detail-field input {
  border: 1px solid #b9dccb;
  border-radius: 10px;
  background: #f7fcf9;
  color: #0f2119;
  min-height: 38px;
  padding: 8px 11px;
  width: 100%;
  box-shadow: inset 3px 0 0 #2f956d;
  font-size: 13px;
}

.other-detail-field input:focus {
  background: #fff;
  border-color: #2f956d;
  box-shadow: 0 0 0 3px rgba(47, 149, 109, .12), inset 3px 0 0 #2f956d;
  outline: none;
}

@media (max-width: 640px) {
  .finance-form label.has-other-detail {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .finance-form label.has-other-detail > select,
  .finance-form label.has-other-detail > .other-detail-field {
    grid-column: 1;
  }
}

.form-grid input[type="hidden"] {
  display: none;
}

.danger-note {
  background: #fbebeb;
  border-color: #efb7b7;
  color: #8c302a;
}

.toast {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(217, 224, 218, 0.96);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(16, 30, 24, 0.24);
  color: var(--text);
  display: grid;
  gap: 14px;
  justify-items: center;
  left: 50%;
  max-width: min(460px, calc(100vw - 28px));
  opacity: 0;
  padding: 26px 28px 24px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -44%) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
  width: 420px;
  z-index: 1000;
}

.toast.show {
  animation: toast-in 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.toast strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
}

.toast span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 7px;
}

.toast-dot {
  align-items: center;
  background: linear-gradient(180deg, #38b981, #23885e);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(35, 136, 94, 0.32);
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 900;
  height: 62px;
  justify-content: center;
  position: relative;
  width: 62px;
}

.toast-success.show .toast-dot {
  animation: success-pop 0.55s ease both;
}

.toast-success .toast-dot {
  color: transparent;
  overflow: hidden;
}

.toast-success .toast-dot::before,
.toast-success .toast-dot::after {
  background: #ffffff;
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 17px;
  position: absolute;
  top: 34px;
  transform-origin: left center;
  width: 0;
}

.toast-success .toast-dot::before {
  transform: rotate(45deg);
}

.toast-success .toast-dot::after {
  left: 27px;
  top: 39px;
  transform: rotate(-48deg);
}

.toast-ok {
  background: linear-gradient(180deg, #31916a, #247e59);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(36, 126, 89, 0.22);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
  min-height: 42px;
  min-width: 132px;
  padding: 10px 22px;
  pointer-events: auto !important;
  position: relative;
  z-index: 1001;
}

.toast-ok:hover {
  background: #174d35;
  box-shadow: 0 14px 30px rgba(23, 77, 53, 0.26);
  transform: none;
}

.toast-success.show .toast-dot::before {
  animation: tick-short 0.18s ease 0.18s forwards;
}

.toast-success.show .toast-dot::after {
  animation: tick-long 0.28s ease 0.34s forwards;
}

.toast-error {
  border-color: rgba(238, 97, 82, 0.35);
}

.toast-error.show {
  animation: toast-in 0.25s ease both, error-shake 0.38s ease 0.2s both;
}

.toast-error .toast-dot {
  background: linear-gradient(180deg, #ff6b57, #c93225);
  animation: error-pop 0.5s ease both;
}

.toast-submit .toast-dot {
  background: conic-gradient(from 0deg, var(--brand-2), var(--accent), #d9b33f, var(--brand-2));
  position: relative;
}

.toast-submit .toast-dot::after {
  background: #ffffff;
  border-radius: 999px;
  content: "";
  height: 36px;
  width: 36px;
}

.toast-submit.show .toast-dot {
  animation: submit-spin 0.9s linear infinite;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes success-pop {
  0% {
    transform: scale(0.55) rotate(-18deg);
  }
  65% {
    transform: scale(1.12) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes tick-short {
  to {
    width: 15px;
  }
}

@keyframes tick-long {
  to {
    width: 29px;
  }
}

@keyframes error-pop {
  0% {
    transform: scale(0.6);
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes error-shake {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  20% {
    transform: translate(calc(-50% - 8px), -50%) scale(1);
  }
  40% {
    transform: translate(calc(-50% + 7px), -50%) scale(1);
  }
  60% {
    transform: translate(calc(-50% - 5px), -50%) scale(1);
  }
  80% {
    transform: translate(calc(-50% + 4px), -50%) scale(1);
  }
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.toast-close {
  align-items: center;
  background: #eef4f0;
  border-radius: 999px;
  box-shadow: none;
  color: #516157;
  display: inline-flex;
  font-size: 18px;
  height: 30px;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
  z-index: 95;
}

.request-drawer-close {
  pointer-events: auto;
  position: relative;
  z-index: 95;
}

.toast-close:hover {
  background: #dfe9e3;
  box-shadow: none;
  color: var(--text);
  transform: none;
}

.empty {
  color: var(--muted);
  padding: 14px 0;
}

.actions {
  display: flex;
  gap: 8px;
}

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

.small {
  color: var(--muted);
  font-size: 12px;
}

code {
  background: #eef1eb;
  border-radius: 4px;
  padding: 2px 5px;
}

.print-body {
  background: #ffffff;
}

.print-page {
  margin: 0 auto;
  max-width: 820px;
  padding: 28px;
}

.wide-print {
  max-width: 1120px;
}

.gate-history-print-page {
  max-width: 1160px;
  padding: 14px;
}

.gate-history-print-page .print-header {
  margin-bottom: 10px;
}

.gate-history-print-page .print-header h1 {
  font-size: 20px;
  margin-bottom: 6px;
}

.gate-history-print-table {
  font-size: 10px;
  table-layout: fixed;
  width: 100%;
}

.gate-history-print-table th,
.gate-history-print-table td {
  overflow-wrap: anywhere;
  padding: 6px 7px;
}

.gate-history-print-table th:nth-child(1),
.gate-history-print-table td:nth-child(1) {
  width: 70px;
}

.gate-history-print-table th:nth-child(2),
.gate-history-print-table td:nth-child(2) {
  width: 92px;
}

.gate-history-print-table th:nth-child(3),
.gate-history-print-table td:nth-child(3) {
  width: 150px;
}

.gate-history-print-table th:nth-child(5),
.gate-history-print-table td:nth-child(5) {
  width: 92px;
}

.gate-history-print-table th:nth-child(6),
.gate-history-print-table td:nth-child(6) {
  width: 72px;
}

.gate-history-print-table th:nth-child(7),
.gate-history-print-table td:nth-child(7) {
  width: 128px;
}

.print-header {
  align-items: center;
  border-bottom: 2px solid var(--brand);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.print-header h1 {
  margin: 0 0 12px;
}

.print-page table {
  min-width: 0;
}

.print-footer {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 12px;
}

.invoice-meta,
.invoice-total,
.document-row {
  align-items: stretch;
  border: 1px solid var(--border);
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  margin: 12px 0;
}

.invoice-meta > div,
.invoice-total > div {
  padding: 10px;
}

.invoice-meta > div + div,
.invoice-total > div + div {
  border-left: 1px solid var(--border);
}

.invoice-items {
  min-width: 0;
}

.document-row {
  border: 0;
  gap: 18px;
  justify-items: end;
}

.document-row img {
  max-height: 82px;
  max-width: 180px;
  object-fit: contain;
}

.signature-row {
  display: flex;
  justify-content: space-between;
  margin-top: 54px;
}

.bill-supply {
  border: 1.5px solid #111;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.25;
  margin-top: 12px;
}

.bill-supply table {
  border-collapse: collapse;
  min-width: 0;
  width: 100%;
}

.bill-supply th,
.bill-supply td {
  border: 1px solid #111;
  color: #111;
  font-size: 13px;
  padding: 5px 6px;
  vertical-align: top;
}

.bill-supply th {
  background: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.bill-top {
  display: grid;
  font-family: Arial, sans-serif;
  font-size: 13px;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 4px;
}

.bill-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  text-decoration: underline;
}

.bill-company {
  padding: 42px 14px 28px;
  text-align: center;
}

.bill-company h1 {
  font-size: 48px;
  letter-spacing: 2px;
  line-height: 1;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.bill-company p {
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0;
}

.bill-state-row {
  display: flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: space-around;
  padding: 10px 14px 12px;
}

.bill-info-table td:first-child,
.bill-info-table td:nth-child(2) {
  width: 34%;
}

.bill-items th,
.bill-items td {
  text-align: center;
}

.bill-items td:nth-child(2) {
  text-align: left;
}

.bill-spacer td {
  height: 210px;
  vertical-align: bottom;
}

.bill-total-table th,
.bill-total-table td {
  font-size: 15px;
  padding: 10px;
}

.bill-footer-grid {
  border-top: 1px solid #111;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  min-height: 120px;
}

.bill-footer-grid > div {
  padding: 10px;
}

.bill-supply .right {
  text-align: right;
}

.sales-bill-print {
  border: 1.5px solid #111;
  box-sizing: border-box;
  color: #111;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 12px;
  min-height: 275mm;
  width: 100%;
}

.sales-invoice-print-page > .print-header {
  border-bottom: 0;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.sales-invoice-print-page {
  background: #fff;
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  min-height: 297mm;
  padding: 8mm;
  width: 210mm;
}

.sales-invoice-print-page > .print-header > div:first-child {
  display: none;
}

.sales-bill-print table {
  border-collapse: collapse;
  min-width: 0;
  width: 100%;
}

.sales-bill-print th,
.sales-bill-print td {
  border: 0.5px solid #777;
  color: #111;
  padding: 4px 5px;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: inherit;
}

.sales-bill-print th {
  position: static;
  background: #fff;
  font-weight: 700;
  text-transform: none;
}

.sales-bill-head {
  align-items: center;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 170px;
  grid-template-areas: "logo title contact" "logo company company";
  gap: 8px 12px;
  min-height: 132px;
  padding: 12px;
}

.sales-bill-head > * { min-width: 0; overflow-wrap: anywhere; }
.sales-bill-title { grid-area: title; font-size: 14px; text-align: center; }

.sales-bill-logo {
  grid-area: logo;
  height: 90px;
  max-width: 92px;
  object-fit: contain;
  width: 100%;
}

.sales-bill-company {
  grid-area: company;
  text-align: center;
}

.sales-bill-company h1 {
  font-family: Arial, sans-serif;
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 4px;
  text-decoration: none;
  text-transform: uppercase;
}

.sales-bill-company strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.sales-bill-company p {
  font-size: 11px;
  font-weight: 400;
  margin: 4px 0;
}

.sales-bill-contact {
  grid-area: contact;
  align-self: start;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  text-align: right;
}

.sales-bill-state {
  border-bottom: 0.5px solid #777;
  border-top: 0.5px solid #777;
  display: flex;
  font-weight: 400;
  justify-content: space-between;
  font-size: 11px;
  padding: 6px 10px;
}

.sales-bill-parties {
  display: grid;
  grid-template-columns: 30% 30% 40%;
  min-height: 110px;
}
.sales-bill-party-block { padding: 10px; min-width: 0; overflow-wrap: anywhere; }
.sales-bill-party-block + .sales-bill-party-block { border-left: 0.5px solid #777; }
.sales-bill-party-block p { margin: 7px 0 0; }
.sales-bill-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; margin-bottom: 7px; }
.sales-bill-meta { margin: 0; border-left: 0.5px solid #777; }
.sales-bill-meta > div { display: grid; grid-template-columns: 32% minmax(0, 1fr); gap: 8px; padding: 8px; }
.sales-bill-meta > div + div { border-top: 0.5px solid #aaa; }
.sales-bill-meta dt { font-size: 10px; font-weight: 700; }
.sales-bill-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 11px; }
.sales-bill-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.sales-bill-extra > div { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 8px; border-top: 0.5px solid #777; padding: 7px 10px; }
.sales-bill-extra dt { font-weight: 700; font-size: 10px; }
.sales-bill-extra dd { margin: 0; overflow-wrap: anywhere; }
.sales-bill-extra > div:nth-child(even) { border-left: 0.5px solid #777; }
.sales-bill-print tbody tr:hover { background: #fff; }
.sales-bill-items thead th { background: #f0f0f0; }
.sales-bill-print tr:last-child td { border-bottom: 0.5px solid #777; }
.sales-bill-print > :not(.sales-bill-items) { flex-shrink: 0; }
.sales-bill-print strong { font-weight: 700; }
.sales-bill-print .sales-bill-amount { font-variant-numeric: tabular-nums; }
.sales-bill-print .sales-bill-words p { margin: 8px 0 0; }
.sales-bill-print .sales-bill-total-line.is-balance { border-top: 0.5px solid #aaa; font-weight: 700; }
.sales-bill-print .sales-bill-footer { font-size: 11px; }
.sales-bill-print .sales-bill-totals,
.sales-bill-print .sales-bill-footer {
  break-inside: avoid;
}

.sales-bill-items {
  flex: 1 0 auto;
  table-layout: fixed;
}

.sales-bill-items thead,
.sales-bill-items tfoot {
  height: 1px;
}

.sales-bill-items th,
.sales-bill-items td {
  font-size: 11px;
  padding: 7px 5px;
  text-align: center;
}

.sales-bill-items tbody:not(.sales-bill-spacer) tr {
  height: 1px;
}

.sales-bill-items .sales-bill-spacer {
  height: 100%;
}

.sales-bill-items .sales-bill-spacer td {
  padding: 0;
}

.sales-bill-items td:nth-child(2) {
  text-align: left;
}

.sales-bill-items .sales-bill-amount {
  text-align: right;
  white-space: nowrap;
}

.sales-bill-items tfoot th {
  text-align: right;
}

.sales-bill-totals {
  display: grid;
  grid-template-columns: 55% 45%;
}

.sales-bill-words,
.sales-bill-grand-total {
  border-top: 0.5px solid #777;
  min-height: 48px;
  padding: 10px;
}

.sales-bill-grand-total {
  border-left: 0.5px solid #777;
}

.sales-bill-total-line {
  display: flex;
  font-weight: 400;
  gap: 10px;
  justify-content: space-between;
  padding: 5px 0;
}

.sales-bill-total-line.is-grand {
  border-top: 1px solid #111;
  font-size: 16px;
  font-weight: 700;
  margin-top: 3px;
  padding-top: 6px;
}

.sales-bill-footer {
  border-top: 0.5px solid #777;
  display: grid;
  grid-template-columns: 39% 33% 28%;
  margin-top: 0;
  min-height: 125px;
}

.sales-bill-footer > div {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 10px;
}

.sales-bill-footer > div + div {
  border-left: 0.5px solid #777;
}

.sales-bill-footer strong {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sales-bill-footer .sales-bill-sign {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.sales-bill-signature-image {
  align-self: flex-end;
  max-height: 42px;
  max-width: 150px;
  object-fit: contain;
}

hr {
  border: 0;
  border-top: 1px solid #e2e6df;
  margin: 14px 0;
}

@media (max-width: 1200px) {
  .admin-requests-grid,
  .admin-decision-assisted,
  .admin-otp-layout,
  .admin-request-queue-layout {
    grid-template-columns: 1fr;
  }

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

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

@media print {
  @page {
    margin: 8mm;
    size: A4 portrait;
  }

  .print-actions {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .print-page {
    max-width: none;
    padding: 0;
  }

  .gate-history-print-page {
    width: 100%;
  }

  .sales-invoice-print-page {
    max-width: none;
    box-sizing: border-box;
    min-height: 297mm;
    padding: 8mm;
    width: 210mm;
    margin: 0;
  }

  .sales-invoice-print-page .sales-bill-print {
    margin-top: 0;
    min-height: 281mm;
  }

  .sales-bill-items thead {
    display: table-header-group;
  }

  .sales-bill-items tr {
    break-inside: avoid;
  }

  .sales-invoice-print-page > .print-header {
    display: none;
  }
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    width: min(94vw, 500px);
  }

  .login-visual {
    padding: 28px 24px;
  }

  .login-brand-row {
    margin-bottom: 24px;
  }

  .login-company-details {
    margin: -10px 0 20px;
  }

  .login-brand-row strong {
    font-size: 22px;
  }

  .login-brand-row span {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .login-badge {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 18px;
  }

  .login-visual h1 {
    font-size: 30px;
  }

  .login-visual p {
    font-size: 14px;
    margin: 16px 0 24px;
  }

  .login-feature-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .login-form-panel {
    padding: 28px 24px;
  }

  .login-form-inner h2 {
    font-size: 30px;
  }

  .login-form-inner p {
    font-size: 15px;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    position: static;
  }

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

  .metrics,
  .two-col,
  .gate-split-grid,
  .tools-export-grid,
  .tools-ledger-grid,
  .tools-quality-grid,
  .tools-jobwork-form,
  .tools-ledger-print-form,
  .form-grid,
  .quick-grid,
  .filter-form {
    grid-template-columns: 1fr;
  }

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

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

  .admin-tabs,
  .admin-subtabs,
  .tools-website-tabs {
    justify-content: flex-start;
    width: 100%;
  }

  .role-permission-layout,
  .role-permission-groups {
    grid-template-columns: 1fr;
  }

  .role-permission-group.stock-production > div {
    grid-template-columns: 1fr;
  }

  .tools-assisted {
    grid-template-columns: 1fr;
  }

  .tools-website-settings-grid,
  .tools-website-invoice-layout {
    grid-template-columns: 1fr;
  }

  .form-grid.tools-company-settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

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

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

  .tools-aging-ledger div:nth-child(2n) {
    border-right: 0;
  }

  .tools-aging-ledger div:nth-child(-n + 2) {
    border-bottom: 1px solid #dfe9e3;
  }

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

  .tools-broker-summary div:nth-child(2n) {
    border-right: 0;
  }

  .tools-broker-summary div:nth-child(-n + 2) {
    border-bottom: 1px solid #dfe9e3;
  }

  .tools-broker-actions {
    grid-template-columns: 1fr;
  }

  .tools-broker-tabs {
    justify-content: flex-start;
    width: 100%;
  }

  .tools-broker-block,
  .tools-broker-block:nth-child(odd),
  .tools-broker-block:nth-child(even) {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .tools-broker-note,
  .tools-broker-stock {
    margin-top: 0;
  }

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

  .tools-dispatch-board {
    grid-template-columns: 1fr;
  }

  .tools-dispatch-form button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .tools-closing-tabs {
    justify-content: flex-start;
    width: 100%;
  }

  .tools-closing-board {
    grid-template-columns: 1fr;
  }

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

  .tools-closing-form button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .tools-restore-tabs {
    justify-content: flex-start;
    width: 100%;
  }

  .tools-restore-board {
    grid-template-columns: 1fr;
  }

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

  .tools-restore-form button {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .tools-jobwork-summary {
    grid-template-columns: 1fr;
  }

  .tools-lab-summary {
    grid-template-columns: 1fr;
  }

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

  .gate-report-title {
    grid-template-columns: 1fr auto;
  }

  .gate-report-title h2 {
    grid-column: 1 / -1;
  }

  .gate-report-filter-inline {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

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

  .gate-row-card {
    align-items: stretch;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .gate-row-card .gate-actions {
    grid-column: 1 / -1;
  }

  .gate-actions {
    grid-template-columns: 1fr;
  }

  .gate-action-form {
    align-items: stretch;
    flex-direction: column;
  }

  .gate-action-form .button,
  .gate-action-form input {
    min-height: 50px;
    width: 100%;
  }

  .simple-gate-card strong {
    font-size: 26px;
  }

  .purchase-entry-form {
    border-radius: 16px;
    gap: 10px;
    padding: 12px;
  }

  .purchase-entry-form label,
  .purchase-entry-form .span-2,
  .purchase-entry-form .wide,
  .purchase-entry-form > button {
    grid-column: 1 / -1;
  }

  .purchase-entry-form label {
    padding: 9px;
  }

  .content,
  .topbar {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .user-panel-pill {
    flex: 1 1 170px;
  }

  .logout-button b {
    display: none;
  }

  .request-drawer {
    border-radius: 14px;
    max-height: calc(100vh - 24px);
    max-width: calc(100vw - 24px);
    padding: 12px;
    width: calc(100vw - 24px);
  }

  .request-drawer-head {
    padding: 14px;
  }

  .request-search-row {
    max-width: none;
  }

  .dashboard-activity-panel table {
    min-width: 760px;
  }

  .dashboard-activity-panel td:last-child {
    white-space: nowrap;
  }

  .toast {
    max-width: calc(100vw - 24px);
    padding: 18px 44px 18px 18px;
    width: calc(100vw - 24px);
  }

  .toast-dot {
    height: 32px;
    width: 32px;
  }
}
.bag-scan-dialog {
    width: min(600px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #d5e4df;
    border-radius: 8px;
    background: #fff;
    color: #192a24;
    overflow: auto;
}
.bag-scan-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.bag-scan-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bag-scan-heading h2 { margin: 0; font-size: 18px; }
.bag-scan-heading button { width: 36px; height: 36px; padding: 0; flex: 0 0 36px; font-size: 22px; }
.bag-scan-dialog .scan-mode-panel { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.bag-scan-dialog .scan-mode-panel .section-title { display: none; }
.bag-scan-dialog .scan-mode-form { grid-template-columns: minmax(0, 1fr); }
.bag-scan-dialog .scan-mode-form .wide { grid-column: 1; }
.bag-scan-dialog .scan-result { overflow-wrap: anywhere; }
.topbar-scan-button { white-space: nowrap; }

.dashboard-header-menu { position: relative; font-size: 12px; color: #173c2c; }
.dashboard-header-menu summary { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 10px; border: 1px solid #afd7c3; border-radius: 7px; background: #eaf7f0; cursor: pointer; font-weight: 700; list-style: none; }
.dashboard-header-menu summary::-webkit-details-marker { display: none; }
.dashboard-header-menu summary::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 2px 0 3px; }
.dashboard-header-menu[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.dashboard-header-menu summary:focus-visible { outline: 2px solid #2f8964; outline-offset: 3px; }
.dashboard-pending-menu summary { background: #fff9ed; border-color: #ead6a2; color: #78540f; }
.dashboard-header-menu summary b { background: #8c6514; color: #fff; padding: 2px 6px; border-radius: 6px; }
.dashboard-header-menu summary small { font-size: 10px; font-weight: 400; }
.dashboard-sample-entry-button { display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border:1px solid #187654;border-radius:7px;background:#287f5d;color:#fff;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap; }
.dashboard-sample-entry-button:hover { background:#176346;color:#fff; }
.dashboard-sample-entry-button:focus-visible { outline:2px solid #2f8964;outline-offset:3px; }
.dashboard-header-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 100; width: min(360px, calc(100vw - 40px)); max-height: 65vh; overflow: auto; padding: 14px; background: #fff; border: 1px solid #d9e7e0; border-radius: 8px; box-shadow: 0 10px 28px #173c2c26; }
.dashboard-header-popover .admin-work-list { grid-template-columns: minmax(0, 1fr); }
.dashboard-header-popover .admin-work-list a { gap: 12px; }
.dashboard-cash-details { display: grid; gap: 12px; }
.topbar:has(.dashboard-header-menu) { flex-wrap: wrap; }
.topbar:has(.dashboard-header-menu) .topbar-actions { flex-wrap: wrap; }
@media (max-width: 600px) {
  .dashboard-header-menu { position: static; }
  .topbar:has(.dashboard-header-menu) { position: relative; }
  .dashboard-header-popover { left: 10px; right: 10px; width: auto; }
}

.admin-overview {
  display: grid;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.admin-overview-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.admin-overview-heading h2,
.admin-overview-heading h3 {
  margin: 0;
}

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

.admin-overview-heading > span {
  color: #63756d;
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: right;
}

.admin-overview-section {
  background: #fff;
  border: 1px solid #d9e7e0;
  border-radius: 8px;
  padding: 14px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.admin-overview-section > h3,
.admin-overview-section .admin-overview-heading h3 {
  color: #20332a;
  font-size: 14px;
  margin: 0 0 11px;
}

.admin-overview-section .admin-overview-heading h3 {
  margin: 0;
}

.admin-overview-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

.admin-overview-metric {
  background: #fbfdfc;
  border: 1px solid #e0ebe5;
  border-radius: 7px;
  color: #17271f;
  min-height: 82px;
  min-width: 0;
  padding: 10px 11px;
  text-decoration: none;
}

.admin-overview-metric:hover,
.admin-overview-metric:focus-visible {
  background: #f3faf6;
  border-color: #92c8ac;
}

.admin-overview-metric span,
.admin-overview-metric small {
  color: #61756b;
  display: block;
  font-size: 11px;
}

.admin-overview-metric strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  margin: 8px 0 6px;
  overflow-wrap: anywhere;
}

.admin-cash-check {
  align-items: center;
  background: #eaf7f0;
  border: 1px solid #afd7c3;
  border-radius: 8px;
  color: #173c2c;
  display: grid;
  gap: 8px 18px;
  grid-template-columns: minmax(150px, 1fr) auto auto auto;
  min-height: 58px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 12px 14px;
  text-decoration: none;
}

.admin-cash-check span {
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-cash-check small {
  color: #5b7468;
  font-size: 10px;
}

.admin-work-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 12px;
  min-width: 0;
}

.admin-work-list a {
  align-items: center;
  background: #fff9ed;
  border: 1px solid #ead6a2;
  border-radius: 7px;
  color: #4e3a0b;
  display: flex;
  justify-content: space-between;
  min-height: 45px;
  min-width: 0;
  padding: 9px 11px;
  text-decoration: none;
}

.admin-work-list a span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-priority-section {
  border-color: #e6d29a;
}

.admin-overview .dashboard-activity-panel .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.admin-overview .dashboard-activity-panel table {
  table-layout: fixed;
  width: 100%;
}

@media (max-width: 1500px) {
  .topbar { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .topbar-actions { gap: 7px; min-width: 0; }
  .topbar-scan-button { padding-left: 10px; padding-right: 10px; }
  .topbar-tally-button { padding-left: 12px; padding-right: 12px; }
  .user-panel-pill { padding-left: 11px; padding-right: 11px; }
  .content { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 1250px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .topbar-actions { flex: 1 1 auto; }
  .admin-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.admin-work-list a strong {
  background: #8a6110;
  border-radius: 999px;
  color: #fff;
  display: grid;
  font-size: 11px;
  height: 25px;
  min-width: 25px;
  padding: 0 6px;
  place-items: center;
}

.admin-work-list p {
  color: #527063;
  margin: 3px 0;
}

@media (max-width: 1050px) {
  .admin-cash-check { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .admin-overview-heading { align-items: flex-start; flex-direction: column; }
  .admin-overview-section .admin-overview-heading { align-items: center; flex-direction: row; }
  .admin-overview-metrics { grid-template-columns: 1fr; }
  .admin-overview-metric { min-height: 82px; }
  .admin-cash-check { grid-template-columns: 1fr; }
}
.finance-card.balance-dr, .finance-page .ledger-balance-dr { background: #e8f7ed; border-color: #b5dec3; color: #17633b; }
.finance-card.balance-cr, .finance-page .ledger-balance-cr { background: #ffeded; border-color: #efc0c0; color: #a33434; }
.finance-card.balance-zero { background: #f3f5f6; border-color: #dbe0e3; }
.finance-card.balance-dr strong { color: #17633b; }
.finance-card.balance-cr strong { color: #a33434; }

@media (max-width: 900px) {
  .auth-body {
    align-items: flex-start;
    padding: 12px;
  }

  .login-shell {
    border-radius: 10px;
    width: min(100%, 520px);
  }

  .login-visual {
    min-height: 0;
    padding: 28px 24px;
  }

  .login-brand-row {
    margin-bottom: 0;
  }

  .login-visual-main {
    margin-top: 0;
    padding: 30px 0 24px;
  }

  .login-visual h1 {
    font-size: 30px;
  }

  .login-form-panel {
    padding: 34px 24px;
  }
}

/* Original login composition with company contact kept below the status row. */
.auth-body {
  background: radial-gradient(circle at 8% 12%, rgba(47, 143, 104, 0.12), transparent 28%), linear-gradient(110deg, #fff7ef 0%, #f7faf6 48%, #ebe7dc 100%);
  flex-direction: row;
  padding: 16px;
}

.login-shell {
  border: 1px solid rgba(217, 224, 218, 0.74);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(30, 45, 38, 0.16);
  grid-template-columns: 0.95fr 0.9fr;
  max-width: 1060px;
  min-height: 460px;
  width: min(90vw, 1060px);
}

.login-visual {
  background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.18) 0 17%, transparent 18%), linear-gradient(155deg, var(--login-primary, #06213a) 0%, #104a4b 50%, var(--login-secondary, #08783b) 100%);
  justify-content: center;
  padding: 42px 46px;
}

.login-orb {
  display: block !important;
}

.login-brand-row {
  gap: 14px;
  margin-bottom: 30px;
}

.login-brand-row img,
.login-logo-mark {
  border: 0;
  border-radius: 13px;
  height: 52px;
  width: 52px;
}

.login-brand-row strong {
  font-size: 25px;
  line-height: 1;
}

.login-brand-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  letter-spacing: 3px;
  margin-top: 8px;
}

.login-visual-main {
  margin: 0;
  padding: 0;
}

.login-visual-kicker {
  display: none;
}

.login-badge {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  display: flex !important;
  font-size: 12px;
  gap: 9px;
  letter-spacing: 3px;
  margin-bottom: 28px;
  padding: 10px 15px;
}

.login-visual h1 {
  font-size: 42px;
  line-height: 1.08;
  max-width: 480px;
}

.login-visual p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin: 24px 0 30px;
  max-width: 500px;
}

.login-feature-row {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex !important;
  gap: 20px;
  padding-top: 18px;
}

.login-feature-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  gap: 10px;
}

.login-feature-row span::before {
  height: 10px;
  width: 10px;
}

.login-company-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.76);
  display: grid;
  font-size: 11px;
  gap: 5px;
  line-height: 1.35;
  margin-top: 13px;
  padding-top: 10px;
  position: relative;
  z-index: 1;
}

.login-company-footer span {
  display: grid;
  gap: 8px;
  grid-template-columns: 48px minmax(0, 1fr);
  overflow-wrap: anywhere;
}

.login-company-footer b {
  color: rgba(255, 235, 154, 0.9);
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.login-form-panel {
  padding: 42px 52px;
}

.login-form-inner {
  max-width: 390px;
}

.login-kicker {
  color: var(--login-primary, #06213a);
  font-size: 12px;
  letter-spacing: 5px;
  margin-bottom: 18px;
}

.login-form-inner h2 {
  color: #111827;
  font-size: 38px;
  line-height: 1.08;
  margin-bottom: 16px;
}

.login-form-inner p {
  color: #68756b;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 22px;
}

.login-form-inner label {
  color: #273248;
  font-size: 14px;
}

.login-form-inner input {
  background: #ffffff;
  border: 1px solid #d9e1ea;
  border-radius: 14px;
  min-height: 50px;
}

.login-form-inner button {
  background: var(--login-primary, #06213a);
  border-radius: 14px;
  font-size: 16px;
  min-height: 52px;
}

.login-links a,
.login-links span {
  color: var(--login-primary, #06213a);
  font-size: 14px;
}

.login-protected {
  color: #a0a7b3;
  font-size: 13px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .auth-body { align-items: center; padding: 16px; }
  .login-shell { grid-template-columns: 1fr; width: min(94vw, 500px); }
  .login-visual { padding: 28px 24px; }
  .login-brand-row { margin-bottom: 24px; }
  .login-visual h1 { font-size: 30px; }
  .login-visual p { font-size: 14px; margin: 16px 0 24px; }
  .login-feature-row { flex-wrap: wrap; gap: 12px; }
  .login-form-panel { padding: 28px 24px; }
}

/* Enterprise login refresh. Kept at the end so this login screen is isolated from app styles. */
.auth-body {
  align-items: center;
  background: #f3f5f2;
  flex-direction: row;
  justify-content: center;
  padding: 28px;
}

.login-shell {
  border: 1px solid #dce4df;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(21, 49, 39, 0.12);
  grid-template-columns: minmax(390px, 0.92fr) minmax(470px, 1.08fr);
  max-width: 1160px;
  min-height: 620px;
  overflow: hidden;
}

.login-visual {
  background: #123e33;
  display: flex;
  min-width: 0;
  padding: 42px;
}

.login-orb,
.login-badge,
.login-feature-row {
  display: none !important;
}

.login-brand-row {
  align-items: center;
  gap: 14px;
  margin: 0;
}

.login-brand-row img,
.login-logo-mark {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  height: 62px;
  width: 62px;
}

.login-brand-row strong {
  color: #ffffff;
  font-size: 25px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.login-brand-row span {
  color: #b9d2c5;
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 6px;
}

.login-visual-main {
  margin: auto 0;
  padding: 30px 0;
}

.login-visual-kicker {
  color: #b7d9c3;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.login-visual h1 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  max-width: 360px;
}

.login-visual p {
  color: #c7dad0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 340px;
}

.login-company-footer {
  border-top: 1px solid rgba(213, 230, 221, 0.25);
  color: #c7dad0;
  display: grid;
  font-size: 12px;
  gap: 7px;
  line-height: 1.45;
  padding-top: 15px;
}

.login-company-footer span {
  display: grid;
  gap: 8px;
  grid-template-columns: 54px minmax(0, 1fr);
  overflow-wrap: anywhere;
}

.login-company-footer b {
  color: #90c6a6;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.login-form-panel {
  background: #ffffff;
  padding: 56px 74px;
}

.login-form-inner {
  max-width: 410px;
}

.login-kicker {
  color: #2b7658;
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.login-form-inner h2 {
  color: #173d31;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.login-form-inner p {
  color: #62776c;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 28px;
}

.login-form-inner label {
  color: #29493d;
  font-size: 13px;
  font-weight: 700;
}

.login-form-inner input {
  background: #f8fbf9;
  border: 1px solid #ccddd4;
  border-radius: 8px;
  min-height: 50px;
}

.login-form-inner input:focus {
  background: #ffffff;
  border-color: #29845f;
  box-shadow: 0 0 0 3px rgba(41, 132, 95, 0.13);
}

.login-form-inner button {
  background: #175842;
  border-radius: 8px;
  font-size: 15px;
  min-height: 50px;
}

.login-form-inner button:hover {
  background: #124934;
}

.login-links a,
.login-links span {
  color: #1e6b4d;
  font-size: 13px;
}

.login-protected {
  color: #8a9991;
  font-size: 12px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .auth-body {
    align-items: flex-start;
    padding: 12px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    width: min(100%, 520px);
  }

  .login-visual {
    min-height: 360px;
    padding: 28px 24px;
  }

  .login-visual-main {
    margin: auto 0;
    padding: 26px 0;
  }

  .login-visual h1 {
    font-size: 30px;
  }

  .login-form-panel {
    padding: 34px 24px;
  }
}
.local-barcode{display:grid;place-items:center;gap:2px;min-height:42px;background:#fff;border:1px solid #111;padding:2px}.local-barcode svg{display:block;width:100%;max-width:180px;height:34px}.local-barcode span{padding:0 5px;font:700 10px/1 monospace;letter-spacing:1px}
