@import "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap";

/* public/css/index.css */
:root {
  --teko-blue: #1e3a5f;
  --teko-blue-mid: #2c5282;
  --teko-blue-light: #3b6cb7;
  --teko-blue-pale: #e8f0fb;
  --teko-green: #3d9142;
  --teko-green-light: #52b558;
  --teko-green-pale: #e8f5e9;
  --teko-gray: #555f6e;
  --bg-app: #f0f4f8;
  --bg-surface: #ffffff;
  --bg-surface-2: #f8fafc;
  --bg-sidebar: #1e3a5f;
  --bg-sidebar-hover: rgba(255,255,255,0.10);
  --bg-sidebar-active:rgba(255,255,255,0.18);
  --bg-hover: #f0f4ff;
  --bg-input: #ffffff;
  --text-primary: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #8e9bb0;
  --border: #e2e8f0;
  --border-strong: #c8d3e0;
  --border-focus: #3b6cb7;
  --success: #276749;
  --success-bg: #e8f5e9;
  --success-border: #a5d6a7;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --warning-border: #fcd34d;
  --warning-soft-bg: rgba(245,158,11,0.10);
  --warning-soft-border:rgba(217,119,6,0.25);
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fca5a5;
  --info: #1565c0;
  --info-bg: #eff6ff;
  --info-border: #93c5fd;
  --selected-row-bg: #eff6ff;
  --chart-bar: #78a8f2;
  --chart-hover-bg: rgba(59,108,183,0.10);
  --btn-primary-bg:
    linear-gradient(
      135deg,#1e3a5f 0%,#3566a8 100%);
  --btn-primary-hover:linear-gradient(
      135deg,#274b79 0%,#3b6cb7 100%);
  --btn-primary-border:rgba(30,58,95,0.85);
  --btn-primary-shadow:0 10px 24px rgba(30,58,95,0.16);
  --btn-primary-hover-shadow:0 14px 28px rgba(30,58,95,0.22);
  --btn-success-bg: #3d9142;
  --btn-success-hover:#52a857;
  --btn-success-text: #ffffff;
  --btn-danger-bg: var(--danger-bg);
  --btn-danger-hover: #9f1d1d;
  --btn-danger-text: var(--danger);
  --btn-warning-bg: var(--warning-bg);
  --btn-warning-text: var(--warning);
  --panel-info-border:rgba(59,108,183,0.15);
  --modal-border: rgba(226,232,240,0.9);
  --confirm-success-bg:linear-gradient(
      180deg,#f8fbff 0%,#eef5ff 100%);
  --confirm-success-border:#cfe0ff;
  --confirm-danger-bg:linear-gradient(
      180deg,#fff7f7 0%,#fef2f2 100%);
  --confirm-danger-border:#fecaca;
  --confirm-icon-bg: rgba(255,255,255,0.85);
  --sidebar-width: 236px;
  --sidebar-collapsed-width:72px;
  --header-height: 58px;
  --radius-sm: 5px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(30,58,95,0.07),0 1px 2px rgba(30,58,95,0.04);
  --shadow: 0 4px 14px rgba(30,58,95,0.09),0 2px 4px rgba(30,58,95,0.05);
  --shadow-lg: 0 10px 40px rgba(30,58,95,0.14),0 4px 10px rgba(30,58,95,0.06);
  --shadow-focus: 0 0 0 3px rgba(59,108,183,0.22);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.2,.9,.2,1.05);
  --theme-transition-duration:.92s;
  --paint-texture-opacity:.95;
}
html[data-theme=dark] {
  color-scheme: dark;
  --teko-blue: #8fb9ff;
  --teko-blue-mid: #6fa3ed;
  --teko-blue-light: #5f92df;
  --teko-blue-pale: #132a46;
  --teko-green: #76d47e;
  --teko-green-light: #91e29a;
  --teko-green-pale: #16371f;
  --teko-gray: #9aa9bd;
  --bg-app: #07111f;
  --bg-surface: #0e1a2b;
  --bg-surface-2: #132235;
  --bg-sidebar: #081423;
  --bg-sidebar-hover: rgba(255,255,255,0.09);
  --bg-sidebar-active:rgba(255,255,255,0.16);
  --bg-hover: #172a43;
  --bg-input: #0b1727;
  --text-primary: #edf4ff;
  --text-secondary: #bfcee1;
  --text-muted: #8293aa;
  --border: #26384d;
  --border-strong: #3a5069;
  --border-focus: #8fb9ff;
  --success: #8de39a;
  --success-bg: #12351d;
  --success-border: #2f7141;
  --warning: #f6c76e;
  --warning-bg: #3a2911;
  --warning-border: #8a6421;
  --warning-soft-bg: rgba(246,199,110,0.12);
  --warning-soft-border:rgba(246,199,110,0.32);
  --danger: #ff9b9b;
  --danger-bg: #3a171b;
  --danger-border: #8f3b43;
  --info: #93c5fd;
  --info-bg: #102b4b;
  --info-border: #2c5d95;
  --selected-row-bg: #143154;
  --chart-bar: #6f9fe8;
  --chart-hover-bg: rgba(143,185,255,0.08);
  --btn-primary-bg:
    linear-gradient(
      135deg,#24476f 0%,#315f96 100%);
  --btn-primary-hover:linear-gradient(
      135deg,#2c5688 0%,#3970ad 100%);
  --btn-primary-border:#3d638f;
  --btn-primary-shadow:0 8px 18px rgba(0,0,0,0.22);
  --btn-primary-hover-shadow:0 10px 22px rgba(0,0,0,0.28);
  --btn-success-bg: #2f7d43;
  --btn-success-hover:#398e4d;
  --btn-success-text: #f2fff5;
  --btn-danger-bg: #341a1e;
  --btn-danger-hover: #7d3038;
  --btn-danger-text: #ffb8b8;
  --btn-warning-bg: #332714;
  --btn-warning-text: #f1cf85;
  --panel-info-border:rgba(143,185,255,0.22);
  --modal-border: rgba(58,80,105,0.95);
  --confirm-success-bg:linear-gradient(
      180deg,#10233a 0%,#112b48 100%);
  --confirm-success-border:#2a5c91;
  --confirm-danger-bg:linear-gradient(
      180deg,#32191d 0%,#3b171b 100%);
  --confirm-danger-border:#78343b;
  --confirm-icon-bg: rgba(255,255,255,0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
  --shadow: 0 12px 30px rgba(0,0,0,0.26),0 2px 8px rgba(0,0,0,0.22);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.38),0 6px 18px rgba(0,0,0,0.24);
  --shadow-focus: 0 0 0 3px rgba(143,185,255,0.24);
  --paint-texture-opacity:.52;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  background: var(--bg-app);
  transition: background-color var(--theme-transition-duration) var(--ease-out), color var(--theme-transition-duration) var(--ease-out);
}
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(
      circle at 20% 12%,
      color-mix(in srgb, var(--bg-surface) 34%, transparent),
      transparent 32%),
    linear-gradient(
      180deg,
      var(--bg-app),
      var(--bg-app));
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color var(--theme-transition-duration) var(--ease-out),
    background var(--theme-transition-duration) var(--ease-out),
    color var(--theme-transition-duration) var(--ease-out);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 12px 18px,
      rgba(30, 58, 95, 0.09) 0 1.2px,
      transparent 1.7px),
    radial-gradient(
      circle at 46px 35px,
      rgba(61, 145, 66, 0.065) 0 1.1px,
      transparent 1.7px),
    repeating-linear-gradient(
      31deg,
      rgba(30, 58, 95, 0.046) 0 1px,
      transparent 1px 5px),
    repeating-linear-gradient(
      108deg,
      rgba(255, 255, 255, 0.66) 0 1px,
      transparent 1px 8px),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.35),
      rgba(203, 213, 225, 0.28));
  background-size:
    38px 38px,
    61px 61px,
    14px 14px,
    19px 19px,
    100% 100%;
  mix-blend-mode: multiply;
  opacity: var(--paint-texture-opacity);
  transition: opacity var(--theme-transition-duration) var(--ease-out), background-color var(--theme-transition-duration) var(--ease-out);
}
html.theme-transition body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background:
    radial-gradient(
      circle at top right,
      color-mix(in srgb, var(--teko-blue-pale) 72%, transparent),
      transparent 32%),
    linear-gradient(
      110deg,
      color-mix(in srgb, var(--bg-surface) 72%, transparent),
      color-mix(in srgb, var(--bg-app) 42%, transparent) 48%,
      transparent 72%);
  animation: themeWash var(--theme-transition-duration) var(--ease-out) both;
}
html.theme-transition::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0;
  animation: themeModeSweep .9s cubic-bezier(.25, .8, .25, 1) both;
}
html.theme-transition[data-theme=dark]::before {
  background:
    linear-gradient(
      115deg,
      rgba(7, 17, 31, 0.54),
      rgba(14, 26, 43, 0.38) 48%,
      rgba(143, 185, 255, 0.08));
}
html.theme-transition[data-theme=light]::before {
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.58),
      rgba(240, 244, 248, 0.42) 48%,
      rgba(59, 108, 183, 0.07));
}
body > * {
  position: relative;
  z-index: 1;
}
body,
.header,
.page-content,
.card,
.kpi-card,
.modal,
.form-control,
.form-select,
.btn,
table,
thead tr,
tbody tr,
.badge,
.alert,
.totals-box,
.section-info,
.searchable-select-menu,
.searchable-select-option {
  transition:
    background-color .22s var(--ease-out),
    background .22s var(--ease-out),
    border-color .22s var(--ease-out),
    color .22s var(--ease-out),
    box-shadow .22s var(--ease-out);
}
html.theme-transition body,
html.theme-transition .header,
html.theme-transition .page-content,
html.theme-transition .card,
html.theme-transition .kpi-card,
html.theme-transition .modal,
html.theme-transition .form-control,
html.theme-transition .form-select,
html.theme-transition .btn,
html.theme-transition table,
html.theme-transition thead tr,
html.theme-transition tbody tr,
html.theme-transition .badge,
html.theme-transition .alert,
html.theme-transition .totals-box,
html.theme-transition .section-info,
html.theme-transition .searchable-select-menu,
html.theme-transition .searchable-select-option {
  transition-duration: var(--theme-transition-duration);
  transition-timing-function: var(--ease-out);
}
@keyframes themeWash {
  0% {
    opacity: .72;
    transform: translateX(-4%);
  }
  100% {
    opacity: 0;
    transform: translateX(4%);
  }
}
@keyframes themeModeSweep {
  0% {
    opacity: .42;
    transform: translateX(-2%);
  }
  100% {
    opacity: 0;
    transform: translateX(2%);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
html.theme-transition::before,
html.theme-transition body::after {
  animation-duration: .9s !important;
  animation-iteration-count: 1 !important;
}
html.theme-transition body,
html.theme-transition .header,
html.theme-transition .page-content,
html.theme-transition .card,
html.theme-transition .modal,
html.theme-transition .form-control,
html.theme-transition .form-select,
html.theme-transition .btn {
  transition-duration: var(--theme-transition-duration) !important;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface-2);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  transition: min-width .24s var(--ease-out);
}
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  background:
    radial-gradient(
      circle at 18px 24px,
      rgba(30, 58, 95, 0.075) 0 1.2px,
      transparent 1.7px),
    radial-gradient(
      circle at 58px 42px,
      rgba(61, 145, 66, 0.055) 0 1px,
      transparent 1.6px),
    repeating-linear-gradient(
      28deg,
      rgba(30, 58, 95, 0.035) 0 1px,
      transparent 1px 6px),
    repeating-linear-gradient(
      116deg,
      rgba(255, 255, 255, 0.58) 0 1px,
      transparent 1px 9px),
    linear-gradient(
      180deg,
      var(--bg-app),
      color-mix(in srgb, var(--bg-app) 88%, var(--bg-surface)));
  background-size:
    44px 44px,
    72px 72px,
    17px 17px,
    24px 24px,
    100% 100%;
  background-blend-mode:
    multiply,
    normal,
    multiply,
    normal,
    normal;
  transition:
    background var(--theme-transition-duration) var(--ease-out),
    background-color var(--theme-transition-duration) var(--ease-out),
    color var(--theme-transition-duration) var(--ease-out);
}
html[data-theme=dark] .page-content {
  background:
    radial-gradient(
      circle at 18px 24px,
      rgba(143, 185, 255, 0.07) 0 1px,
      transparent 1.6px),
    radial-gradient(
      circle at 60px 42px,
      rgba(118, 212, 126, 0.045) 0 1px,
      transparent 1.7px),
    repeating-linear-gradient(
      30deg,
      rgba(143, 185, 255, 0.034) 0 1px,
      transparent 1px 7px),
    repeating-linear-gradient(
      116deg,
      rgba(255, 255, 255, 0.026) 0 1px,
      transparent 1px 10px),
    radial-gradient(
      circle at 20% 8%,
      rgba(143, 185, 255, 0.05),
      transparent 28%),
    linear-gradient(
      180deg,
      var(--bg-app),
      color-mix(in srgb, var(--bg-app) 88%, #000));
  background-size:
    44px 44px,
    76px 76px,
    18px 18px,
    26px 26px,
    100% 100%,
    100% 100%;
  background-blend-mode:
    screen,
    screen,
    screen,
    normal,
    normal,
    normal;
}
.layout-sidebar-toggle {
  position: absolute;
  top: 13px;
  left: var(--sidebar-width);
  transform: translateX(-50%);
  z-index: 30;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    left .24s var(--ease-out),
    background .18s var(--ease-out),
    color .18s var(--ease-out),
    border-color .18s var(--ease-out),
    box-shadow .18s var(--ease-out),
    transform .18s var(--ease-out);
}
.layout.sidebar-is-collapsed .layout-sidebar-toggle {
  left: var(--sidebar-collapsed-width);
}
.layout-sidebar-toggle::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 5px;
  bottom: 5px;
  width: 9px;
  border-radius: 8px 0 0 8px;
  background:
    linear-gradient(
      90deg,
      rgba(30, 58, 95, 0.18),
      rgba(30, 58, 95, 0.02));
  border-left: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  pointer-events: none;
}
.layout-sidebar-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateX(calc(-50% + 1px));
}
.mobile-sidebar-backdrop {
  display: none;
}
.mobile-only-route {
  display: none;
}
.route-mobile-heading {
  display: none;
}
.delivery-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.delivery-lines-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--teko-blue);
  text-transform: uppercase;
}
.delivery-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-surface-2);
}
.delivery-line small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
}
.ready-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ready-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px minmax(180px, .7fr);
  gap: 10px;
  align-items: end;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
}
.ready-line-info {
  align-self: center;
}
.ready-line-info small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
}
.invoice-ot-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.invoice-ot-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
}
.invoice-ot-line small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
}
.invoice-ot-total {
  text-align: right;
  font-size: 15px;
  font-weight: 800;
  color: var(--teko-blue);
}
.delivery-assignee {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
}
.delivery-assignee div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.delivery-assignee small {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
}
.delivery-assignee strong {
  font-size: 13px;
}
.delivery-proof-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr);
  gap: 10px;
}
.delivery-proof-fields .form-group {
  margin-bottom: 12px;
}
.delivery-location-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
}
.delivery-location-status > svg {
  color: var(--teko-blue);
}
.delivery-location-status > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.delivery-location-status strong {
  font-size: 12px;
  color: var(--text-primary);
}
.delivery-location-status small {
  font-size: 10px;
  color: var(--text-muted);
}
.delivery-location-status.is-success {
  border-color: var(--success);
  background: var(--success-bg);
}
.delivery-location-status.is-error {
  border-color: var(--warning);
  background: var(--warning-bg);
}
.route-planner {
  padding: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}
.route-planner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.route-planner-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.route-planner-head span {
  font-size: 12px;
  color: var(--text-muted);
}
.route-planner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.route-map {
  width: 100%;
  height: 330px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 12px;
}
.route-map-empty {
  height: 120px;
  margin-top: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
}
.route-stop-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
}
.route-stop-list li {
  min-width: 210px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
}
.route-stop-list li > b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teko-blue);
  color: #fff;
}
.route-stop-list li span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.route-stop-list li strong,
.route-stop-list li small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-stop-list li small {
  color: var(--text-muted);
}
.route-clients-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.route-clients-head span {
  font-size: 12px;
  color: var(--text-muted);
}
.route-client-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.route-results-legacy {
  display: none;
}
.route-client-list.is-directory {
  grid-template-columns: 1fr;
}
.route-client-directory-row .route-delivery-main {
  min-height: 72px;
}
.route-directory-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.route-directory-status small {
  font-weight: 800;
  color: var(--text-secondary);
}
.route-client-detail {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-surface);
  overflow: hidden;
}
.route-client-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
}
.route-client-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}
.route-client-identity strong {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-client-identity span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 12px;
}
.route-client-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 13px;
  border-top: 1px solid var(--border);
}
.route-client-detail-actions .btn {
  min-height: 42px;
}
.route-client-order-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.route-client-order-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.route-client-order-row:last-child {
  border-bottom: 0;
}
.route-client-order-row:hover {
  background: var(--bg-surface-2);
}
.route-client-order-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
}
.route-client-order-main,
.route-client-order-balance {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.route-client-order-main strong {
  font-size: 14px;
}
.route-client-order-main small,
.route-client-order-balance small {
  color: var(--text-muted);
}
.route-client-order-balance {
  align-items: flex-end;
  white-space: nowrap;
}
.route-client-order-action {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--teko-blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.route-mode-content {
  display: flex;
  flex-direction: column;
}
.route-mode-content > .page-header {
  order: 1;
}
.route-mode-content > .ot-summary {
  order: 2;
}
.route-mode-content > .filters-bar {
  order: 3;
}
.route-mode-content > .route-planner {
  order: 4;
}
.route-mode-content > .route-results-legacy {
  order: 5;
}
.route-delivery-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.route-delivery-main {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 13px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
}
.route-delivery-main > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.route-delivery-main strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-delivery-main small {
  margin-top: 3px;
  color: var(--text-muted);
}
.route-delivery-sequence {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
  font-weight: 800;
}
.route-delivery-location {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 13px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.route-delivery-location svg {
  flex: none;
  color: var(--teko-blue);
}
.route-delivery-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 13px 13px;
}
.route-delivery-actions .btn {
  justify-content: center;
  min-height: 42px;
}
.route-delivery-card.has-location-error {
  border-color: var(--danger);
}
.route-delivery-card.has-location-error .route-delivery-sequence {
  background: var(--danger-bg);
  color: var(--danger);
}
.route-delivery-card.has-location-error .route-delivery-location {
  color: var(--danger);
}
.route-client-orders {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.route-client-orders > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 13px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface-2);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.route-client-orders > button:last-child {
  border-bottom: 0;
}
.route-client-orders > button > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.route-client-orders small {
  color: var(--text-muted);
}
.route-payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  font-size: 12px;
}
.route-payment-summary.is-pending {
  background: var(--warning-bg);
  color: var(--warning);
}
.route-payment-summary.is-paid {
  background: var(--success-bg);
  color: var(--success);
}
.route-payment-summary strong {
  font-size: 13px;
}
.route-invoice-summary {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.route-invoice-summary > strong {
  padding: 10px 12px;
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
}
.route-invoice-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.route-invoice-summary > div span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-receipt-book {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
}
.route-receipt-book > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.route-receipt-book small {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 800;
}
.route-receipt-book strong {
  font-size: 13px;
}
.route-receipt-book.is-active {
  border-color: var(--success);
  background: var(--success-bg);
}
.route-receipt-book.is-missing {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.route-receipt-filters {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto auto;
  align-items: end;
  gap: 9px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
}
.route-receipt-filters .form-group {
  margin: 0;
}
.route-receipt-filters .btn {
  min-height: 38px;
}
.route-receipts-list {
  display: grid;
  gap: 8px;
}
.route-receipt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
}
.route-receipt-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.route-receipt-main strong {
  font-size: 13px;
  color: var(--text-primary);
}
.route-receipt-main span {
  font-size: 11px;
  color: var(--text-secondary);
}
.route-receipt-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}
.route-receipt-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  white-space: nowrap;
}
.route-receipt-amount > strong {
  color: var(--teko-blue);
}
.route-receipt-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.route-delivery-cards {
  display: none;
}
.sidebar {
  width: var(--sidebar-width);
  background:
    radial-gradient(
      circle at 82% 34%,
      rgba(18, 73, 132, .24),
      transparent 32%),
    linear-gradient(
      180deg,
      #03152f 0%,
      #05264d 58%,
      #031a39 100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  box-shadow: 4px 0 24px rgba(1, 14, 32, .24), inset -1px 0 rgba(255, 255, 255, .045);
  transition: width .24s var(--ease-out), box-shadow .24s var(--ease-out);
  position: relative;
  z-index: 5;
}
.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}
.sidebar-logo {
  height: 92px;
  padding: 15px 15px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sidebar-logo-plate {
  width: 100%;
  height: 64px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(189, 207, 230, .92);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 8, 24, .25), inset 0 0 0 1px rgba(255, 255, 255, .8);
  transition:
    width .24s var(--ease-out),
    height .24s var(--ease-out),
    border-radius .24s var(--ease-out);
}
.sidebar-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: none;
  transition: transform .24s var(--ease-out);
}
.sidebar.collapsed .sidebar-logo {
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}
.sidebar.collapsed .sidebar-logo-plate {
  width: 46px;
  height: 46px;
  border-radius: 11px;
}
.sidebar.collapsed .sidebar-logo img {
  transform: scale(1.22);
  pointer-events: auto;
}
.sidebar-logo-text {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.sidebar-logo-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sidebar-nav {
  flex: 1;
  min-height: 0;
  padding: 2px 10px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .15) transparent;
}
.sidebar.collapsed .sidebar-nav {
  padding-left: 8px;
  padding-right: 8px;
}
.sidebar-section-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: rgba(187, 207, 235, .56);
  padding: 13px 11px 5px;
  white-space: nowrap;
  transition:
    opacity .16s var(--ease-out),
    transform .2s var(--ease-out),
    height .2s var(--ease-out),
    padding .2s var(--ease-out);
}
.sidebar.collapsed .sidebar-section-label {
  height: 10px;
  padding: 8px 0 2px;
  opacity: 0;
  transform: translateX(-8px);
  overflow: hidden;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(227, 238, 252, .82);
  font-size: 12px;
  font-weight: 500;
  transition:
    background .18s var(--ease-out),
    color .18s var(--ease-out),
    transform .18s var(--ease-out),
    box-shadow .18s var(--ease-out),
    padding .22s var(--ease-out),
    gap .22s var(--ease-out);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.05) 42%,
      rgba(255, 255, 255, 0.16));
  opacity: 0;
  transform: scaleX(.82);
  transform-origin: left;
  transition: opacity .2s var(--ease-out), transform .28s var(--ease-out);
  pointer-events: none;
}
.sidebar-item::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 10px;
  right: 10px;
  height: 1px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.38),
      transparent);
  opacity: 0;
  transition: opacity .2s var(--ease-out);
}
.sidebar-item:hover {
  background: rgba(41, 101, 168, .24);
  color: #fff;
  transform: translateX(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.sidebar-item:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.sidebar-item:hover::after {
  opacity: 1;
}
.sidebar-item.active {
  background:
    linear-gradient(
      90deg,
      rgba(17, 77, 142, .68),
      rgba(20, 67, 121, .46));
  color: #fff;
  font-weight: 650;
  box-shadow: inset 3px 0 0 #20d34a, 0 6px 16px rgba(0, 10, 28, .12);
}
.sidebar-item svg {
  flex-shrink: 0;
  opacity: 0.75;
  position: relative;
  z-index: 1;
}
.sidebar-item.active svg {
  opacity: 1;
}
.sidebar-item-label {
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    opacity .15s var(--ease-out),
    max-width .22s var(--ease-out),
    transform .2s var(--ease-out);
  max-width: 170px;
  position: relative;
  z-index: 1;
}
.sidebar.collapsed .sidebar-item {
  justify-content: center;
  gap: 0;
  padding: 9px 0;
}
.sidebar.collapsed .sidebar-item:hover {
  transform: none;
}
.sidebar.collapsed .sidebar-item-label {
  opacity: 0;
  max-width: 0;
  transform: translateX(-6px);
  pointer-events: none;
}
.sidebar-bottom {
  padding: 10px 10px 14px;
  transition: padding .22s var(--ease-out);
  position: relative;
}
.sidebar.collapsed .sidebar-bottom {
  padding-left: 8px;
  padding-right: 8px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(3, 24, 52, .4);
  border: 1px solid rgba(113, 157, 211, .32);
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition:
    background .18s var(--ease-out),
    border-color .18s var(--ease-out),
    box-shadow .18s var(--ease-out),
    transform .18s var(--ease-out);
}
.user-card:hover,
.user-card.open {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.13);
}
.sidebar.collapsed .user-card {
  justify-content: center;
  padding: 9px 0;
  gap: 0;
}
.sidebar.collapsed .user-card > div:nth-child(2) {
  display: none;
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      #16a93a 0%,
      #50ba46 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 7px 16px rgba(25, 174, 61, .28);
}
.user-card-name {
  font-size: 11px;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-card-role {
  font-size: 9px;
  font-weight: 800;
  color: #42dd5b;
  text-transform: uppercase;
}
.user-card-code {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-family: "JetBrains Mono", monospace;
  margin-top: 1px;
}
.user-card-chevron {
  flex: 0 0 auto;
  color: rgba(227, 238, 252, .82);
}
.sidebar.collapsed .user-card-chevron {
  display: none;
}
.user-menu {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 8px);
  padding: 6px;
  border-radius: 12px;
  background: rgba(15, 31, 51, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  z-index: 20;
  animation: userMenuIn .16s var(--ease-out);
}
.sidebar.collapsed .user-menu {
  left: 8px;
  right: 8px;
  width: auto;
}
.user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.sidebar.collapsed .user-menu-item {
  justify-content: center;
  padding: 9px 0;
}
.sidebar.collapsed .user-menu-item span {
  display: none;
}
.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
@keyframes userMenuIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.header {
  height: var(--header-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.theme-toggle {
  width: 30px;
  height: 30px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.page-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.page-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-p {
  padding: 20px 22px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.18s;
}
.kpi-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.kpi-card-top {
  border-top: 3px solid var(--teko-blue);
}
.kpi-card-top.green {
  border-top-color: var(--teko-green);
}
.kpi-card-top.warning {
  border-top-color: var(--warning);
}
.kpi-card-top.info {
  border-top-color: var(--info);
}
.kpi-card-top.danger {
  border-top-color: var(--danger);
}
.cash-dashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cash-shift {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--teko-green);
}
.cash-shift-main {
  min-width: 0;
}
.cash-eyebrow {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.cash-shift-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--teko-blue);
  margin-bottom: 6px;
}
.cash-shift-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary);
}
.cash-shift-meta > span:not(:last-child):not(.badge)::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-left: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  vertical-align: middle;
}
.cash-shift-actions,
.cash-inline-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.cash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cash-kpi {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 114px;
  padding: 17px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teko-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cash-kpi.green {
  border-top-color: var(--teko-green);
}
.cash-kpi.blue {
  border-top-color: var(--info);
}
.cash-kpi.orange {
  border-top-color: var(--warning);
}
.cash-kpi.purple {
  border-top-color: #8b5cf6;
}
.cash-kpi.red {
  border-top-color: var(--danger);
}
.cash-kpi-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
}
.cash-kpi-value {
  font-size: 21px;
  line-height: 1.1;
  font-weight: 850;
  color: var(--teko-blue);
  white-space: nowrap;
}
.cash-kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}
.cash-kpi-icon,
.cash-value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--bg-surface-2);
  color: var(--teko-blue);
}
.cash-kpi.green .cash-kpi-icon,
.cash-value-icon.green {
  color: var(--teko-green);
  background: var(--teko-green-pale);
}
.cash-kpi.orange .cash-kpi-icon,
.cash-value-icon.orange {
  color: var(--warning);
  background: var(--warning-bg);
}
.cash-kpi.purple .cash-kpi-icon,
.cash-value-icon.purple {
  color: #7c3aed;
  background: #f3e8ff;
}
.cash-kpi.red .cash-kpi-icon {
  color: var(--danger);
  background: var(--danger-bg);
}
.cash-value-icon.blue {
  color: var(--info);
  background: var(--info-bg);
}
.cash-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(300px, .85fr);
  gap: 14px;
  align-items: start;
}
.cash-transactions {
  min-width: 0;
  overflow: hidden;
}
.cash-transactions .table-wrap {
  max-height: 440px;
  overflow: auto;
}
.cash-transactions th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.cash-table-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}
.cash-table-total strong {
  font-size: 15px;
  color: var(--teko-blue);
}
.cash-reconciliation {
  overflow: hidden;
}
.cash-values {
  padding: 4px 18px 12px;
}
.cash-value-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cash-value-row:last-child {
  border-bottom: 0;
}
.cash-value-name {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-secondary);
}
.cash-value-amount {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.cash-reconciliation-total,
.cash-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.cash-reconciliation-total {
  font-weight: 800;
  background: var(--bg-surface-2);
}
.cash-reconciliation-total strong {
  font-size: 15px;
  color: var(--teko-blue);
}
.cash-status-line strong.ok {
  color: var(--teko-green);
}
.cash-status-line strong.bad {
  color: var(--danger);
}
.cash-square-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 18px 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 800;
}
.cash-square-status.ok {
  color: var(--teko-green);
  border-color: var(--success-border);
  background: var(--teko-green-pale);
}
.cash-square-status.pending {
  color: var(--warning);
  border-color: var(--warning-border);
  background: var(--warning-bg);
}
.cash-reconciliation > .btn {
  width: calc(100% - 36px) !important;
  margin-left: 18px;
  margin-right: 18px;
}
.cash-reconciliation > .btn:last-child {
  margin-bottom: 18px;
}
.cash-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 180px;
  padding: 28px;
}
.cash-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 16px;
  color: var(--teko-blue);
  background: var(--bg-surface-2);
}
.cash-empty-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--teko-blue);
  margin-bottom: 5px;
}
.cash-empty-text {
  font-size: 12px;
  color: var(--text-secondary);
}
.finance-document-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.finance-document-editor-slot {
  min-height: 240px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  overflow: hidden;
}
.finance-inline-document-editor {
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.finance-inline-document-body {
  padding: 20px 22px;
}
.finance-inline-document-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface-2);
}
.finance-document-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(145px, 180px)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.finance-stamp-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.finance-modal-grid,
.finance-deposit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.finance-account-movement-filters {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.finance-account-movement-filters .form-group {
  margin-bottom: 0;
}
.finance-account-movements table {
  min-width: 960px;
}
.finance-drafts-card {
  margin-bottom: 14px;
  border-left: 3px solid var(--warning);
}
.fb60-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin: -4px 0 18px;
  padding: 0 2px;
}
.fb60-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.fb60-tab:hover {
  color: var(--text-primary);
}
.fb60-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.fb60-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.finance-expense-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 10px;
}
.finance-expense-line {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 110px minmax(170px, 220px) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
}
@media (max-width: 1180px) {
  .cash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cash-grid {
    grid-template-columns: 1fr;
  }
  .finance-document-filters,
  .finance-stamp-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .finance-expense-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .cash-shift,
  .cash-empty-state {
    align-items: flex-start;
    flex-direction: column;
  }
  .cash-shift-actions,
  .cash-empty-state .btn {
    width: 100%;
  }
  .cash-kpis {
    grid-template-columns: 1fr;
  }
  .cash-kpi {
    min-height: auto;
  }
  .cash-inline-actions {
    margin-top: 8px;
  }
  .finance-document-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .fb60-footer .btn {
    flex: 1 1 140px;
  }
  .finance-document-actions .cash-inline-actions {
    width: 100%;
  }
  .finance-document-filters,
  .finance-stamp-filters,
  .finance-expense-line {
    grid-template-columns: 1fr;
  }
}
.kpi-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-icon.blue {
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
}
.kpi-icon.green {
  background: var(--teko-green-pale);
  color: var(--teko-green);
}
.kpi-icon.warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.kpi-icon.info {
  background: var(--info-bg);
  color: var(--info);
}
.kpi-icon.danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  line-height: 1.2;
}
.kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform .18s var(--ease-out),
    box-shadow .18s var(--ease-out),
    background .18s var(--ease-out),
    color .18s var(--ease-out),
    border-color .18s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--btn-primary-bg);
  color: #fff;
  border-color: var(--btn-primary-border);
  box-shadow: var(--btn-primary-shadow);
}
.btn-primary:hover:not(:disabled) {
  background: var(--btn-primary-hover);
  box-shadow: var(--btn-primary-hover-shadow);
  transform: translateY(-1px);
}
.btn-success {
  background: var(--btn-success-bg);
  color: var(--btn-success-text);
  border-color: var(--btn-success-bg);
}
.btn-success:hover:not(:disabled) {
  background: var(--btn-success-hover);
  border-color: var(--btn-success-hover);
}
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-danger {
  background: var(--btn-danger-bg);
  color: var(--btn-danger-text);
  border-color: var(--danger-border);
}
.btn-danger:hover:not(:disabled) {
  background: var(--btn-danger-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-warning {
  background: var(--btn-warning-bg);
  color: var(--btn-warning-text);
  border-color: var(--warning-border);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.btn-sm {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}
.btn-lg {
  padding: 11px 22px;
  font-size: 14px;
}
.btn-icon {
  padding: 6px;
  border-radius: var(--radius-sm);
}
.btn-icon.btn-sm {
  padding: 5px;
}
.form-group {
  margin-bottom: 13px;
  position: relative;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group.has-hint .form-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.form-group.has-hint .form-label::after {
  content: "?";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}
.form-label .req {
  color: var(--danger);
  margin-left: 2px;
}
.form-control,
.form-select {
  width: 100%;
  min-height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px 11px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  transition:
    background-color .14s var(--ease-out),
    border-color 0.14s var(--ease-out),
    box-shadow 0.14s var(--ease-out);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.form-control:hover:not(:disabled),
.form-select:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--border-focus) 45%, var(--border-strong));
  background: color-mix(in srgb, var(--bg-input) 94%, var(--teko-blue-pale));
}
.form-control:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.form-control::placeholder {
  color: var(--text-muted);
}
.form-control:disabled,
.form-select:disabled {
  background: var(--bg-surface-2);
  color: var(--text-muted);
  cursor: not-allowed;
}
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}
.form-select {
  appearance: none;
  background-image:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-input) 98%, #fff),
      var(--bg-input)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%238e9bb0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 11px center;
  background-size: 100% 100%, 13px 13px;
  padding-right: 34px;
  cursor: pointer;
}
.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
}
.form-select option:checked {
  background: var(--teko-blue);
  color: #fff;
}
textarea.form-control {
  min-height: 76px;
  resize: vertical;
}
.form-hint {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 2100;
  max-width: min(360px, calc(100vw - 40px));
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  pointer-events: none;
  transition:
    opacity .14s var(--ease-out),
    visibility .14s var(--ease-out),
    transform .14s var(--ease-out);
}
.form-group.has-hint:hover > .form-hint,
.form-group.has-hint:focus-within > .form-hint {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.form-error {
  font-size: 11px;
  color: var(--danger);
  margin-top: 3px;
}
.searchable-select {
  position: relative;
}
.searchable-select-control {
  position: relative;
}
.searchable-select-control.open .form-control {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.searchable-select-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.searchable-select-advanced {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.searchable-select-advanced:hover,
.searchable-select-advanced:focus-visible {
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
  outline: 2px solid var(--border-focus);
}
.searchable-select-input {
  padding-left: 34px;
  padding-right: 34px;
}
.searchable-select-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.searchable-select-clear:hover {
  color: var(--text-primary);
}
.searchable-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 34px rgba(15, 25, 45, 0.16);
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
}
.searchable-select-menu::-webkit-scrollbar {
  width: 8px;
}
.searchable-select-menu::-webkit-scrollbar-track {
  background: transparent;
}
.searchable-select-menu::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: 2px solid var(--bg-surface);
  border-radius: 999px;
}
.searchable-select-option {
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  background: none;
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 8px;
}
.searchable-select-option:hover,
.searchable-select-option.active {
  background: var(--teko-blue-pale);
  border-color: var(--panel-info-border);
  color: var(--teko-blue);
}
.searchable-select-option.active {
  box-shadow: inset 3px 0 0 var(--teko-blue-light);
}
.searchable-select-empty {
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  background: var(--bg-surface-2);
}
.entity-field-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.entity-option {
  display: grid;
  grid-template-columns: minmax(76px, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.entity-option-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--teko-blue);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  justify-self: start;
}
.entity-option > span:last-child {
  min-width: 0;
}
.entity-option strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entity-option small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.async-search-menu .searchable-select-option {
  padding: 10px 12px;
}
.advanced-lookup-filters {
  display: grid;
  grid-template-columns: minmax(130px, .6fr) minmax(220px, 1.8fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.advanced-lookup-filters .form-group {
  margin: 0;
}
.advanced-lookup-summary {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0;
}
.advanced-lookup-results {
  max-width: 100%;
  overflow: auto;
  min-height: 180px;
}
.advanced-lookup-results table {
  min-width: 560px;
}
.advanced-lookup-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.finance-order-picker {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
.finance-order-picker-value {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 42px;
  flex-direction: column;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
  color: var(--text-muted);
}
.finance-order-picker-value.selected {
  border-color: var(--panel-info-border);
  background: var(--teko-blue-pale);
  color: var(--text-primary);
}
.finance-order-picker-value strong,
.finance-order-picker-value span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finance-order-picker-value strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--teko-blue);
}
.finance-order-picker-value span {
  font-size: 11px;
}
.finance-order-lookup-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: end;
}
.finance-order-lookup-filters .form-group {
  margin: 0;
}
.finance-order-lookup-actions {
  display: flex;
  gap: 8px;
  grid-column: 1/-1;
  justify-content: flex-end;
}
.finance-order-results table {
  min-width: 860px;
}
.finance-order-results .selected-row {
  background: var(--selected-row-bg);
}
.finance-provider-pay-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid var(--panel-info-border);
  border-radius: var(--radius);
  background: var(--teko-blue-pale);
}
.finance-provider-pay-toolbar > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.finance-provider-pay-toolbar strong {
  font-size: 13px;
  color: var(--text-primary);
}
.finance-provider-pay-toolbar span {
  font-size: 11px;
  color: var(--text-secondary);
}
.finance-provider-pay-toolbar .btn {
  flex: none;
}
.company-assignments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 8px 0 16px;
}
.company-assignment-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
  cursor: pointer;
}
.company-assignment-row input {
  margin-top: 3px;
}
.company-assignment-row strong,
.company-assignment-row small {
  display: block;
}
.company-assignment-row small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}
.company-assignments > .btn,
.company-assignments > .form-error {
  grid-column: 1/-1;
  justify-self: start;
}
@media (max-width: 700px) {
  .advanced-lookup-filters {
    grid-template-columns: 1fr 1fr;
  }
  .advanced-lookup-filters .form-group:nth-child(2) {
    grid-column: 1/-1;
  }
  .advanced-lookup-results table {
    min-width: 500px;
  }
}
@media (max-width: 900px) {
  .finance-order-lookup-filters {
    grid-template-columns: 1fr 1fr;
  }
  .finance-order-picker {
    flex-wrap: wrap;
  }
  .finance-order-picker-value {
    flex-basis: 100%;
  }
}
@media (max-width: 700px) {
  .finance-provider-pay-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .finance-provider-pay-toolbar .btn {
    width: 100%;
  }
}
.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.g3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 13px;
}
.g4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 13px;
}
.g12 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 13px;
}
.g21 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 13px;
}
.hotel-contract-price-entry {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.hotel-workspace {
  padding-top: 18px;
}
.hotel-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--teko-blue);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      110deg,
      var(--teko-blue-pale),
      var(--bg-surface) 62%);
  box-shadow: var(--shadow-sm);
}
.hotel-hero-copy {
  max-width: 760px;
}
.hotel-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--teko-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hotel-hero h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: 23px;
  line-height: 1.18;
}
.hotel-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.hotel-hero-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--teko-green) 30%, var(--border));
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--teko-green);
}
.hotel-hero-rule span {
  display: flex;
  flex-direction: column;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
}
.hotel-hero-rule strong {
  color: var(--text-primary);
  font-size: 12px;
}
.hotel-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.hotel-flow-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 5px 8px;
}
.hotel-flow-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
}
.hotel-flow-icon > span {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border: 2px solid var(--bg-surface);
  border-radius: 999px;
  background: var(--teko-blue);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
}
.hotel-flow-step > div:last-of-type {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hotel-flow-step strong {
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.3;
}
.hotel-flow-step small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}
.hotel-flow-connector {
  position: absolute;
  top: 21px;
  right: -10px;
  width: 12px;
  height: 1px;
  background: var(--border);
}
.hotel-module-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 16px;
}
.hotel-module-bar > div:first-child {
  display: flex;
  flex-direction: column;
}
.hotel-module-bar > div:first-child strong {
  color: var(--text-primary);
  font-size: 13px;
}
.hotel-module-bar > div:first-child span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}
.hotel-tabs {
  margin: 0;
}
.hotel-tabs .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hotel-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.hotel-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.hotel-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--warning);
}
.hotel-summary-card.info::before {
  background: var(--info);
}
.hotel-summary-card.success::before {
  background: var(--success);
}
.hotel-summary-card.danger::before {
  background: var(--danger);
}
.hotel-summary-card.blue::before {
  background: var(--teko-blue);
}
.hotel-summary-card span,
.hotel-summary-card small {
  display: block;
}
.hotel-summary-card span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}
.hotel-summary-card strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
}
.hotel-summary-card small {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}
.hotel-modal-intro {
  margin-bottom: 16px;
  padding: 11px 13px;
  border-left: 3px solid var(--teko-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--teko-blue-pale);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.hotel-form-step {
  padding: 15px 0;
  border-top: 1px solid var(--border);
}
.hotel-form-step:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.hotel-form-step-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
}
.hotel-form-step-head > span {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--teko-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.hotel-form-step-head > div {
  display: flex;
  flex-direction: column;
}
.hotel-form-step-head strong {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.3;
}
.hotel-form-step-head small {
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}
.hotel-contract-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--success) 26%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--success) 6%, var(--bg-surface));
  color: var(--success);
}
.hotel-contract-context > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.hotel-contract-context strong {
  color: var(--text-primary);
  font-size: 12px;
}
.hotel-contract-context span {
  color: var(--text-muted);
  font-size: 10px;
}
.hotel-eligible-table {
  max-height: 340px;
  margin-top: 12px;
  overflow: auto;
}
.hotel-eligible-table .td-error {
  display: block;
  max-width: 250px;
  margin-top: 3px;
  color: var(--danger);
  font-size: 9px;
  line-height: 1.25;
  white-space: normal;
}
.hotel-cut-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--teko-green) 28%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--teko-green) 7%, var(--bg-surface));
}
.hotel-cut-total span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}
.hotel-cut-total strong {
  color: var(--teko-green);
  font-size: 20px;
}
.hotel-cut-next {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--info) 28%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--info) 7%, var(--bg-surface));
}
.hotel-cut-next span {
  color: var(--info);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hotel-cut-next strong {
  color: var(--text-primary);
  font-size: 13px;
}
.hotel-cut-next.danger {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--border));
  background: color-mix(in srgb, var(--danger) 6%, var(--bg-surface));
}
.hotel-cut-next.danger span {
  color: var(--danger);
}
.hotel-cut-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.hotel-cut-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
  opacity: .72;
}
.hotel-cut-progress-step > span {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
}
.hotel-cut-progress-step > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hotel-cut-progress-step strong {
  color: var(--text-primary);
  font-size: 10px;
  line-height: 1.2;
}
.hotel-cut-progress-step small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.2;
}
.hotel-cut-progress-step.done,
.hotel-cut-progress-step.current {
  opacity: 1;
}
.hotel-cut-progress-step.done > span {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}
.hotel-cut-progress-step.current {
  border-color: color-mix(in srgb, var(--teko-blue) 34%, var(--border));
  background: var(--teko-blue-pale);
}
.hotel-cut-progress-step.current > span {
  border-color: var(--teko-blue);
  background: var(--teko-blue);
  color: #fff;
}
.hotel-cut-meta {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
}
.hotel-cut-meta > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hotel-cut-detail-modal {
  max-width: min(1320px, calc(100vw - 28px));
  max-height: calc(100dvh - 20px);
}
.hotel-cut-detail-modal .modal-header {
  padding: 10px 15px;
}
.hotel-cut-detail-modal .modal-body {
  padding: 12px 15px;
}
.hotel-cut-detail-modal .modal-footer {
  padding: 8px 15px;
}
.hotel-cut-detail-modal .hotel-cut-next {
  margin-bottom: 8px;
  padding: 8px 11px;
}
.hotel-cut-detail-modal .hotel-cut-next strong {
  font-size: 11px;
}
.hotel-cut-detail-modal .hotel-cut-progress {
  gap: 6px;
  margin-bottom: 8px;
}
.hotel-cut-detail-modal .hotel-cut-progress-step {
  gap: 6px;
  padding: 6px 8px;
}
.hotel-cut-detail-modal .hotel-cut-progress-step > span {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}
.hotel-cut-detail-modal .hotel-cut-progress-step small {
  display: none;
}
.hotel-cut-detail-modal .hotel-cut-meta {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.hotel-cut-detail-modal .hotel-cut-meta > div {
  padding: 8px 10px;
  border-right: 1px solid var(--border);
}
.hotel-cut-detail-modal .hotel-cut-meta > div:last-child {
  border-right: 0;
}
.hotel-cut-detail-modal .hotel-cut-meta small {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hotel-cut-detail-modal .hotel-cut-meta strong {
  font-size: 10px;
  line-height: 1.3;
}
.hotel-cut-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.hotel-cut-export-actions,
.hotel-cut-state-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hotel-cut-state-actions .btn {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10px;
}
.hotel-matrix-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 11px;
  margin-bottom: 6px;
}
.hotel-matrix-toolbar h3 {
  margin: 0 0 3px;
  font-size: 14px;
  color: var(--text-primary);
}
.hotel-matrix-toolbar small {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
}
.hotel-matrix-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-surface-2);
}
.hotel-matrix-toggle button {
  min-height: 25px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.hotel-matrix-toggle button.active {
  background: var(--teko-blue);
  color: #fff;
  box-shadow: 0 2px 7px color-mix(in srgb, var(--teko-blue) 25%, transparent);
}
.hotel-matrix-wrap {
  max-height: 390px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}
.hotel-matrix-wrap table {
  font-variant-numeric: tabular-nums;
}
.hotel-matrix-wrap table th,
.hotel-matrix-wrap table td {
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1.2;
}
.hotel-matrix-wrap table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-surface-2);
  font-size: 8px;
}
.hotel-matrix-wrap table th:not(:first-child),
.hotel-matrix-wrap table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}
.hotel-matrix-wrap table thead th small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-weight: 600;
  opacity: .78;
}
.hotel-matrix-wrap table tbody td:first-child {
  min-width: 185px;
}
.hotel-matrix-wrap table tbody td:first-child strong {
  display: block;
  font-size: 10px;
}
.hotel-matrix-wrap table tbody td:first-child small {
  display: block;
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 8px;
  font-family: "JetBrains Mono", monospace;
}
.hotel-matrix-wrap table tfoot th {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 7px;
  padding-bottom: 7px;
  background: color-mix(in srgb, var(--teko-green) 9%, var(--bg-surface));
  color: var(--text-primary);
  border-top: 2px solid color-mix(in srgb, var(--teko-green) 35%, var(--border));
}
.hotel-history-disclosure {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}
.hotel-history-list {
  display: grid;
  gap: 5px;
  max-height: 210px;
  margin-top: 7px;
  overflow: auto;
}
.hotel-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
}
.hotel-history-item > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hotel-history-item strong {
  flex: 0 0 auto;
  color: var(--text-primary);
  font-size: 9px;
}
.hotel-history-item span {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hotel-history-item small {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 8px;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .hotel-cut-detail-modal .hotel-cut-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hotel-cut-detail-modal .hotel-cut-meta > div:nth-child(3) {
    border-right: 0;
  }
  .hotel-cut-detail-modal .hotel-cut-meta > div:nth-child(-n+3) {
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 700px) {
  .hotel-cut-detail-modal {
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }
  .hotel-cut-detail-modal .modal-body {
    padding: 10px;
  }
  .hotel-cut-detail-modal .hotel-cut-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hotel-cut-detail-modal .hotel-cut-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hotel-cut-detail-modal .hotel-cut-meta > div {
    border-bottom: 1px solid var(--border);
  }
  .hotel-cut-detail-modal .hotel-cut-meta > div:nth-child(2n) {
    border-right: 0;
  }
  .hotel-matrix-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }
  .hotel-matrix-toggle {
    align-self: flex-start;
  }
  .hotel-cut-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hotel-cut-state-actions {
    justify-content: flex-end;
  }
  .hotel-history-item,
  .hotel-history-item > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
.hotel-contract-price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.hotel-contract-price-head .hotel-form-step-head {
  margin: 0;
}
.hotel-contract-price-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hotel-contract-notes-head {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.form-grid {
  display: grid;
  gap: 12px;
  align-items: start;
}
.form-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.art-commercial-primary {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(150px, 1fr) minmax(170px, 1fr);
  gap: 13px;
}
.art-observ-field {
  grid-column: span 2;
}
.art-volume-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(180px, 260px) 1fr;
  gap: 13px;
}
.search-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-wrap .form-control {
  padding-left: 34px;
}
.filters-bar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 0;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}
.filter-field.filter-search {
  flex: 1 1 300px;
  max-width: 380px;
}
.filter-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  line-height: 1;
}
.filters-bar .form-control,
.filters-bar .form-select {
  width: 100%;
}
.filters-bar .filter-action {
  align-self: flex-end;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead tr {
  background: var(--bg-surface-2);
  border-bottom: 2px solid var(--border);
}
thead th {
  padding: 9px 13px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.sortable-th {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
}
.sortable-th svg {
  opacity: .45;
  transition: opacity .14s var(--ease-out), transform .14s var(--ease-out);
}
.sortable-th:hover,
.sortable-th.active {
  color: var(--teko-blue);
}
.sortable-th:hover svg,
.sortable-th.active svg {
  opacity: .9;
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.10s;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--bg-hover);
}
tbody td {
  padding: 10px 13px;
  font-size: 13px;
  color: var(--text-primary);
}
.td-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
}
.td-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.td-amount {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  color: var(--teko-blue);
}
.td-muted {
  color: var(--text-muted);
}
.bank-deposit-table {
  table-layout: fixed;
  min-width: 1080px;
}
.bank-deposit-table col.bank-col-date {
  width: 8%;
}
.bank-deposit-table col.bank-col-deposit {
  width: 10%;
}
.bank-deposit-table col.bank-col-value {
  width: 9%;
}
.bank-deposit-table col.bank-col-bank {
  width: 9%;
}
.bank-deposit-table col.bank-col-reference {
  width: 8%;
}
.bank-deposit-table col.bank-col-amount {
  width: 9%;
}
.bank-deposit-table col.bank-col-status {
  width: 9%;
}
.bank-deposit-table col.bank-col-actions {
  width: 11%;
}
.bank-deposit-table th {
  padding: 8px 7px;
  font-size: 10px;
  line-height: 1.2;
  white-space: normal;
  vertical-align: bottom;
}
.bank-deposit-table td {
  padding: 10px 7px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bank-deposit-table .td-amount {
  font-size: 12px;
  white-space: nowrap;
}
.bank-deposit-table .bank-deposit-code {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bank-deposit-table .td-actions {
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.bank-deposit-table .btn-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
}
@media (min-width: 1400px) {
  .bank-deposit-table {
    min-width: 0;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1.2;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .72;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent);
}
.b-active {
  background: color-mix(in srgb, var(--success-bg) 74%, transparent);
  color: var(--success);
  border-color: var(--success-border);
}
.b-inactive {
  background: var(--bg-surface-2);
  color: var(--text-muted);
  border-color: var(--border);
}
.b-blocked {
  background: color-mix(in srgb, var(--danger-bg) 74%, transparent);
  color: var(--danger);
  border-color: var(--danger-border);
}
.b-pending {
  background: color-mix(in srgb, var(--warning-bg) 74%, transparent);
  color: var(--warning);
  border-color: var(--warning-border);
}
.b-anulado {
  background: color-mix(in srgb, var(--danger-bg) 74%, transparent);
  color: var(--danger);
  border-color: var(--danger-border);
}
.b-facturado,
.b-cobrado {
  background: color-mix(in srgb, var(--success-bg) 74%, transparent);
  color: var(--success);
  border-color: var(--success-border);
}
.b-abierto,
.b-open {
  background: color-mix(in srgb, var(--info-bg) 74%, transparent);
  color: var(--info);
  border-color: var(--info-border);
}
.b-cerrado {
  background: var(--bg-surface-2);
  color: var(--text-muted);
  border-color: var(--border);
}
.b-blue {
  background: color-mix(in srgb, var(--teko-blue-pale) 78%, transparent);
  color: var(--teko-blue);
  border-color: var(--panel-info-border);
}
.b-green,
.b-success {
  background: color-mix(in srgb, var(--teko-green-pale) 78%, transparent);
  color: var(--teko-green);
  border-color: var(--success-border);
}
.b-danger {
  background: color-mix(in srgb, var(--danger-bg) 74%, transparent);
  color: var(--danger);
  border-color: var(--danger-border);
}
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  padding: 12px 16px 6px;
}
.pag-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: auto;
}
.pagination button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.13s;
}
.pagination button:hover:not(:disabled) {
  border-color: var(--teko-blue);
  color: var(--teko-blue);
}
.pagination button.active {
  background: var(--teko-blue);
  border-color: var(--teko-blue);
  color: #fff;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 24, 41, 0.46);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .24s cubic-bezier(.25, .8, .25, 1);
}
.session-expired-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 24, 41, .58);
  backdrop-filter: blur(2px);
}
.session-expired-modal {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(12, 24, 41, .28);
}
.session-expired-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--danger-bg,var(--bg-surface-2));
  color: var(--danger);
}
.session-expired-copy {
  min-width: 0;
  padding-top: 2px;
}
.session-expired-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}
.session-expired-message {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.session-expired-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
@media (max-width: 520px) {
  .session-expired-overlay {
    align-items: flex-end;
    padding: 12px;
  }
  .session-expired-modal {
    padding: 18px;
  }
  .session-expired-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .session-expired-actions .btn {
    justify-content: center;
  }
  .session-expired-actions .btn-primary {
    grid-row: 1;
  }
}
.modal-overlay.modal-open {
  opacity: 1;
}
.modal-overlay.modal-opening {
  opacity: 0;
}
.modal-overlay.modal-closing {
  opacity: 0;
  transition-duration: .22s;
}
.modal {
  background: var(--bg-surface);
  border-radius: 22px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 26px rgba(15, 25, 45, 0.12);
  transform: translateY(10px) scale(.975);
  transform-origin: center 18%;
  opacity: 0;
  border: 1px solid var(--modal-border);
  overflow: hidden;
  will-change:
    transform,
    opacity,
    border-radius,
    box-shadow;
  transition:
    transform .32s cubic-bezier(.25, .8, .25, 1),
    opacity .24s cubic-bezier(.25, .8, .25, 1),
    border-radius .32s cubic-bezier(.25, .8, .25, 1),
    box-shadow .32s cubic-bezier(.25, .8, .25, 1);
}
.modal-overlay.modal-open .modal {
  transform: translateY(0) scale(1);
  border-radius: 18px;
  opacity: 1;
  box-shadow: 0 32px 72px rgba(15, 25, 45, 0.28);
}
.modal-overlay.modal-closing .modal {
  transform: translateY(8px) scale(.985);
  border-radius: 22px;
  opacity: 0;
  box-shadow: 0 12px 26px rgba(15, 25, 45, 0.12);
  transition-duration: .22s;
}
.modal-header,
.modal-body,
.modal-footer {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .22s cubic-bezier(.25, .8, .25, 1), transform .22s cubic-bezier(.25, .8, .25, 1);
}
.modal-overlay.modal-open .modal-header,
.modal-overlay.modal-open .modal-body,
.modal-overlay.modal-open .modal-footer {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.modal-overlay.modal-closing .modal-header,
.modal-overlay.modal-closing .modal-body,
.modal-overlay.modal-closing .modal-footer {
  opacity: 0;
  transform: translateY(3px);
  transition-duration: .14s;
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay {
    transition-duration: .24s !important;
  }
  .modal {
    transition-duration: .32s !important;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    transition-duration: .22s !important;
  }
  .modal-overlay.modal-closing,
  .modal-overlay.modal-closing .modal {
    transition-duration: .22s !important;
  }
}
.modal-sm {
  max-width: 440px;
}
.modal-md {
  max-width: 640px;
}
.modal-lg {
  max-width: 880px;
}
.modal-xl {
  max-width: 1060px;
}
.modal-pos {
  max-width: min(1320px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
}
.modal-detail {
  max-width: min(1440px, calc(100vw - 40px));
  max-height: calc(100dvh - 32px);
}
.modal-detail .modal-body {
  padding: 22px 26px;
}
.document-detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.document-detail-hero > div:last-child {
  flex: 1 1 620px;
  min-width: 0;
}
.document-detail-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
  flex-wrap: wrap;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(
      180deg,
      var(--bg-surface-2),
      var(--bg-surface));
  flex-shrink: 0;
  gap: 14px;
}
.modal-title-wrap {
  min-width: 0;
}
.modal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}
.modal-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}
.modal-body > .form-group:last-child {
  margin-bottom: 0;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface-2);
  flex-shrink: 0;
}
.modal-footer .btn-primary,
.modal-footer .btn-danger {
  min-width: 120px;
}
.modal-close-confirm {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 24, 41, .42);
  backdrop-filter: blur(2px);
}
.modal-close-confirm-panel {
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: grid;
  gap: 10px;
  text-align: center;
  animation: softIn .16s var(--ease-out);
}
.modal-close-confirm-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}
.modal-close-confirm-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
}
.modal-close-confirm-message {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.modal-close-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.page-close-confirm {
  position: fixed;
  z-index: 1400;
}
.modal-section {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teko-blue);
  margin: 18px 0 10px;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.modal-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: var(--teko-blue);
}
.company-availability-summary {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--panel-info-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      135deg,
      var(--teko-blue-pale),
      var(--bg-surface));
}
.company-availability-summary .modal-section {
  margin: 0;
}
.company-availability-current {
  display: grid;
  gap: 3px;
  font-size: 13px;
}
.company-availability-current span,
.company-availability-list-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.company-availability-current strong {
  color: var(--teko-blue);
  font-size: 14px;
}
.company-availability-list {
  display: grid;
  gap: 6px;
}
.company-availability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  font-size: 13px;
}
.company-availability-search {
  width: 100%;
  margin-bottom: 12px;
}
.company-availability-search input {
  min-width: 0;
  width: 100%;
}
.company-availability-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.company-availability-table table {
  min-width: 680px;
}
.password-control {
  position: relative;
  display: flex;
  align-items: center;
}
.password-control .form-control {
  padding-right: 42px;
}
.password-toggle {
  position: absolute;
  right: 7px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.password-toggle:hover {
  background: var(--bg-hover);
  color: var(--teko-blue);
}
.confirm-panel {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.confirm-panel.success {
  background: var(--confirm-success-bg);
  border-color: var(--confirm-success-border);
}
.confirm-panel.danger {
  background: var(--confirm-danger-bg);
  border-color: var(--confirm-danger-border);
}
.confirm-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--confirm-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition:
    background-color .18s var(--ease-out),
    border-color .18s var(--ease-out),
    color .18s var(--ease-out),
    box-shadow .18s var(--ease-out);
}
.tab-btn svg {
  display: block;
  flex: 0 0 auto;
  align-self: center;
}
.tab-btn:hover {
  color: var(--teko-blue);
  background: color-mix(in srgb, var(--teko-blue-pale) 48%, transparent);
  border-color: color-mix(in srgb, var(--border) 72%, transparent);
}
.tab-btn.active {
  color: var(--teko-blue);
  background: var(--bg-surface);
  border-color: var(--border);
  border-bottom-color: var(--teko-blue);
  box-shadow: 0 -1px 0 var(--bg-surface) inset;
}
.totals-box {
  background: var(--teko-blue-pale);
  border: 1px solid var(--panel-info-border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.tot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.tot-row .val {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--text-primary);
}
.tot-row.divider {
  border-top: 1px solid rgba(59, 108, 183, 0.2);
  margin-top: 6px;
  padding-top: 10px;
}
.tot-row.total {
  font-size: 15px;
  font-weight: 800;
  color: var(--teko-blue);
}
.tot-row.total .val {
  font-size: 17px;
  color: var(--teko-blue);
}
.order-detail-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.order-lines {
  display: grid;
  gap: 8px;
  position: relative;
}
.order-lines-head,
.order-line {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) minmax(96px, .55fr) minmax(118px, .65fr) minmax(150px, 1fr) minmax(112px, .6fr) 38px;
  gap: 8px;
  align-items: center;
}
.order-lines-head {
  padding: 0 10px 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.order-lines-head span:nth-child(2),
.order-lines-head span:nth-child(3),
.order-lines-head span:nth-child(5) {
  text-align: right;
}
.order-line {
  padding: 9px 10px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(30, 58, 95, 0.03);
}
.order-line-field {
  min-width: 0;
}
.order-line-label {
  display: none;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.order-line-subtotal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 36px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--teko-blue);
  text-align: right;
  white-space: nowrap;
}
.order-line-actions {
  display: flex;
  justify-content: flex-end;
}
.order-lines-empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
}
.order-total-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.order-total-box {
  min-width: 260px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.inventory-adjust-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -2px 0 13px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
  font-size: 13px;
  color: var(--text-secondary);
}
.inventory-adjust-total strong {
  font-family: "JetBrains Mono", monospace;
  color: var(--teko-blue);
}
.inventory-take-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.inventory-take-summary > div,
.inventory-take-result > div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
  padding: 11px 12px;
  min-width: 0;
}
.inventory-take-summary span,
.inventory-take-result span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.inventory-take-summary strong,
.inventory-take-result strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inventory-take-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}
.inventory-take-detail-head .modal-section {
  margin-bottom: 9px;
}
.inventory-take-create-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.inventory-take-create-tools .form-group {
  margin-bottom: 0;
}
.inventory-take-table table {
  min-width: 1160px;
}
.inventory-take-table-setup table {
  min-width: 1080px;
}
.is-invalid-panel {
  border-color: var(--danger-border) !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .08);
}
.inventory-take-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.alert {
  padding: 10px 13px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 13px;
  margin-bottom: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.alert-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}
.alert-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}
.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}
.alert-info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info);
}
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px;
  gap: 13px;
  color: var(--text-muted);
}
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--teko-blue);
  border-radius: 50%;
  animation: spin 0.72s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.teko-toast {
  position: relative !important;
  overflow: hidden !important;
  animation: toastIn .26s var(--ease-spring);
}
.teko-toast::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--bg-surface-2);
}
.teko-toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--teko-blue);
  transform-origin: left center;
  animation: toastProgress 3.6s linear forwards;
}
.teko-toast-success {
  border-left: 4px solid var(--teko-green) !important;
}
.teko-toast-success::after {
  background: var(--teko-green);
}
.teko-toast-error {
  border-left: 4px solid var(--danger) !important;
}
.teko-toast-error::after {
  background: var(--danger);
}
[data-rht-toaster] {
  z-index: 2147483646 !important;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 24px;
  gap: 8px;
  color: var(--text-muted);
  animation: softIn .22s var(--ease-out);
}
.empty-icon {
  width: 48px;
  height: 48px;
  background:
    linear-gradient(
      180deg,
      var(--bg-surface-2),
      var(--bg-surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.empty-state p {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}
.empty-state span {
  font-size: 12px;
  max-width: 360px;
  text-align: center;
  line-height: 1.5;
}
.empty-action {
  margin-top: 8px;
}
@keyframes softIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 14px;
}
.df label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.df span {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 13px;
}
.mod-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mod-card:hover {
  border-color: var(--teko-blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.mod-card-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
}
.mod-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.mod-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.mod-card-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--teko-blue);
  background: var(--teko-blue-pale);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  font-weight: 600;
}
.section-info {
  background: var(--teko-blue-pale);
  border: 1px solid var(--panel-info-border);
  border-radius: var(--radius-lg);
  padding: 12px 15px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.section-info-icon {
  color: var(--teko-blue);
  flex-shrink: 0;
  margin-top: 1px;
}
.section-info p {
  font-size: 13px;
  color: var(--teko-blue-mid);
  line-height: 1.5;
}
.access-denied {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 28px;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-app);
}
.access-denied-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  box-shadow: var(--shadow-sm);
}
.access-denied-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 5px;
}
.access-denied-text {
  font-size: 13px;
  max-width: 360px;
  line-height: 1.45;
}
.permissions-workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.permissions-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}
.permissions-role-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.permissions-role-box label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.permissions-search {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--text-muted);
}
.permissions-search:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}
.permissions-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  width: 100%;
  min-width: 0;
}
.permissions-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.permissions-summary > div {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
}
.permissions-summary span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.permissions-summary strong {
  font-size: 14px;
  color: var(--text-primary);
}
.permissions-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.permissions-modules {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 8px;
  max-height: calc(100vh - 230px);
  overflow: auto;
}
.permissions-modules button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}
.permissions-modules button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.permissions-modules button.active {
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
  box-shadow: inset 3px 0 0 var(--teko-blue-light);
}
.permissions-modules b {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  min-width: 24px;
  text-align: center;
  padding: 1px 5px;
  color: var(--text-muted);
}
.permissions-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.permissions-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface-2);
}
.permissions-panel-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}
.permissions-panel-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.permissions-bulk {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.permissions-list {
  display: flex;
  flex-direction: column;
}
.permission-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out);
}
.permission-row:last-child {
  border-bottom: 0;
}
.permission-row.enabled {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--teko-blue-pale) 34%, transparent),
      var(--bg-surface) 46%);
}
.permission-row-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 11px;
}
.permission-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.permission-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--teko-blue);
  margin-top: 1px;
}
.permission-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}
.permission-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.permission-toggles {
  display: grid;
  grid-template-columns: repeat(8, minmax(92px, 1fr));
  gap: 7px;
}
.permission-toggle {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.permission-toggle:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}
.permission-toggle.checked {
  background: var(--teko-blue-pale);
  border-color: color-mix(in srgb, var(--teko-blue-light) 46%, var(--border));
  color: var(--teko-blue);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teko-blue-light) 14%, transparent);
}
.permission-toggle.checked svg {
  color: var(--teko-blue-light);
}
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      var(--teko-blue) 0%,
      #1a4a7a 60%,
      #0f2d50 100%);
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(61, 145, 66, 0.15) 0%,
      transparent 60%),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 50%);
}
.login-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 38px 36px;
  width: 100%;
  max-width: 410px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  position: relative;
  z-index: 1;
}
.login-logo {
  text-align: center;
  margin-bottom: 26px;
}
.login-logo img {
  height: 42px;
}
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}
.code-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  background: var(--bg-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--teko-blue);
  font-weight: 500;
}
.family-image-editor {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-2);
}
.family-image-preview,
.family-image-thumb,
.ot-family-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  color: var(--text-muted);
}
.family-image-preview {
  width: 84px;
  height: 84px;
  border-radius: 14px;
}
.family-image-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.family-image-preview img,
.family-image-thumb img,
.ot-family-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.family-image-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ot-family-selection {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--panel-info-border);
  border-radius: var(--radius-lg);
  background: var(--teko-blue-pale);
}
.ot-family-selection.modal-family {
  margin-bottom: 14px;
}
.ot-family-selection > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ot-family-selection small {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.ot-family-selection strong {
  font-size: 14px;
  color: var(--teko-blue);
}
.ot-family-photo {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border-radius: 15px;
}
.ot-family-selection .ot-family-photo {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border-radius: 12px;
}
.ot-hero-counts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.ot-hero-counts span {
  font-size: 12px;
  color: var(--text-secondary);
}
.ot-hero-counts strong {
  color: var(--teko-blue);
}
.ot-operational-history {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-2);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.ot-operational-history strong {
  font-size: 12px;
  color: var(--text-primary);
}
.delivery-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 5px;
  border-top: 1px solid var(--border);
}
.delivery-history-row > span {
  min-width: 0;
}
.delivery-history-row .btn {
  flex: none;
}
.ot-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
}
.ot-family-card {
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      145deg,
      var(--bg-surface),
      var(--bg-surface-2));
  box-shadow: var(--shadow-sm);
}
.ot-family-card-body {
  display: grid;
  gap: 11px;
  min-width: 0;
  flex: 1;
}
.ot-family-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ot-family-card-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ot-family-card-head strong {
  font-size: 15px;
  color: var(--text-primary);
}
.ot-family-card-head small {
  font-size: 11px;
  color: var(--text-muted);
}
.ot-family-services {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
}
.ot-family-services span {
  font-weight: 800;
  color: var(--text-primary);
}
.ot-service-progress-list {
  display: grid;
  gap: 8px;
}
.ot-service-progress {
  display: grid;
  gap: 4px;
}
.ot-service-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}
.ot-service-progress span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
}
.ot-service-progress strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--teko-blue);
  white-space: nowrap;
}
.ot-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}
.ot-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--teko-blue),
      var(--teko-green));
  transition: width .2s var(--ease-out);
}
.ot-family-totals {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-top: 2px;
  font-size: 12px;
}
.ot-family-totals strong {
  color: var(--teko-green);
}
.ot-family-totals span {
  color: var(--text-secondary);
}
.ot-family-location {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  color: var(--text-secondary);
  font-size: 12px;
}
.ot-family-location svg {
  flex: none;
  color: var(--teko-blue);
}
.ot-family-card .btn {
  justify-self: start;
}
.ot-progress-form {
  display: grid;
  gap: 14px;
}
.ot-confirm-quantity,
.ot-edit-items {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}
.ot-confirm-quantity-head,
.ot-confirm-quantity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
}
.ot-confirm-quantity-head {
  background: var(--bg-surface-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.ot-confirm-quantity-row > div {
  display: grid;
  gap: 5px;
}
.ot-confirm-quantity-row small {
  font-size: 11px;
  color: var(--text-muted);
}
.ot-confirm-result {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--panel-info-border);
  border-radius: var(--radius);
  background: var(--teko-blue-pale);
}
.ot-confirm-result span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.ot-confirm-result strong {
  font-size: 13px;
  color: var(--teko-blue);
}
.ot-confirm-result small {
  color: var(--text-secondary);
}
.ot-close-production {
  display: grid;
  gap: 14px;
}
.ot-close-production-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--panel-info-border);
  border-radius: var(--radius-lg);
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
}
.ot-close-production-notice svg {
  flex: none;
  margin-top: 1px;
  color: var(--teko-green);
}
.ot-close-production-notice div {
  display: grid;
  gap: 3px;
}
.ot-close-production-notice strong {
  font-size: 13px;
}
.ot-close-production-notice span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}
.ot-close-production-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}
.ot-close-production-head,
.ot-close-production-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 160px;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
}
.ot-close-production-head {
  background: var(--bg-surface-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.ot-close-production-row + .ot-close-production-row {
  border-top: 1px solid var(--border);
}
.ot-close-production-garment {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.ot-close-production-garment > .ot-family-photo {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
}
.ot-close-production-garment > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ot-close-production-garment strong {
  font-size: 14px;
  color: var(--text-primary);
}
.ot-close-production-garment span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text-secondary);
}
.ot-close-production-qty {
  display: grid;
  gap: 1px;
  text-align: center;
}
.ot-close-production-qty strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  color: var(--teko-blue);
}
.ot-close-production-qty span {
  font-size: 10px;
  color: var(--text-muted);
}
.ot-close-production-row .form-group {
  margin: 0;
}
.ot-close-production-row .form-label {
  font-size: 9px;
}
.ot-close-production-row .form-control {
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}
.ot-edit-items-head,
.ot-edit-item-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) 140px 130px minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}
.ot-edit-items-head {
  background: var(--bg-surface-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.ot-edit-item-row {
  border-top: 1px solid var(--border);
}
.ot-edit-item-row .form-group {
  margin: 0;
}
.ot-edit-item-name,
.ot-edit-confirmed {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ot-edit-item-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ot-edit-item-name small,
.ot-edit-confirmed small {
  font-size: 10px;
  color: var(--text-muted);
}
.ot-edit-confirmed strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: var(--teko-blue);
}
.venta-modal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}
.venta-modal-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.venta-step-card {
  position: relative;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.venta-step-title {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teko-blue);
}
.venta-step-number {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: var(--teko-blue);
}
.venta-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.venta-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.venta-grid-client {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(140px, .8fr);
  gap: 12px;
}
.venta-article-search {
  margin-bottom: 10px;
}
.venta-lines-box {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: visible;
  background: var(--bg-surface);
}
.venta-lines-box table {
  width: 100%;
  border-collapse: collapse;
}
.venta-lines-box th {
  padding: 9px 11px;
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.venta-lines-box td {
  padding: 8px 11px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.venta-lines-box tbody tr:last-child td {
  border-bottom: 0;
}
.ot-entry-panel {
  background: var(--teko-blue-pale);
  border: 1px solid var(--panel-info-border);
  border-radius: var(--radius-lg);
  padding: 10px;
  margin-bottom: 10px;
}
.ot-entry-panel .field {
  margin-bottom: 0;
}
.ot-entry-panel .form-control,
.ot-entry-panel .searchable-select-control {
  min-height: 36px;
}
.venta-modal-form.is-ot {
  grid-template-columns: minmax(0, 1fr) 240px;
}
.modal-ot .modal-header {
  padding: 12px 16px;
}
.modal-ot .modal-body {
  padding: 12px 14px;
}
.modal-ot .modal-footer {
  padding: 10px 14px;
}
.modal-ot .modal-footer .btn {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 13px;
}
.ot-create-page {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding-bottom: 18px;
}
.ot-create-page-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.ot-create-page-head > div:nth-child(2) {
  display: grid;
  gap: 3px;
}
.ot-create-page-head h1 {
  margin: 0;
  font-size: 20px;
  color: var(--text-primary);
}
.ot-create-page-head p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.ot-create-page-total {
  display: grid;
  gap: 2px;
  text-align: right;
}
.ot-create-page-total small {
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.ot-create-page-total strong {
  font: 850 21px "JetBrains Mono", monospace;
  color: var(--teko-blue);
}
.ot-create-page-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.ot-create-page-controls > .btn {
  min-height: 44px;
  padding-inline: 18px;
  white-space: nowrap;
}
.ot-create-page-form > .venta-modal-form.is-ot {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
}
.ot-create-page-form .venta-modal-summary {
  top: 10px;
}
.ot-create-page-form .ot-workbench-card > .ot-lines-box {
  max-height: calc(100dvh - 330px);
  min-height: 390px;
}
.ot-create-page-loading {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--text-muted);
}
.pos-create-page {
  padding-bottom: 18px;
}
.pos-create-page-head {
  border-left: 5px solid var(--teko-green);
}
.pos-flow-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  min-width: 0;
}
.pos-flow-progress span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 9px;
  font-weight: 750;
  color: var(--text-muted);
  white-space: nowrap;
}
.pos-flow-progress span b {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-surface-2);
  font-size: 9px;
  color: var(--text-muted);
}
.pos-flow-progress span.active {
  color: var(--teko-blue);
  font-weight: 900;
}
.pos-flow-progress span.active b {
  border-color: var(--teko-blue);
  background: var(--teko-blue);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(35, 83, 137, .10);
}
.pos-flow-progress span.done {
  color: var(--teko-green);
}
.pos-flow-progress span.done b {
  border-color: var(--teko-green);
  background: var(--teko-green);
  color: #fff;
}
.pos-flow-progress i {
  width: 24px;
  height: 1px;
  flex: 0 1 24px;
  background: var(--border);
}
.pos-create-page-status {
  display: grid;
  gap: 3px;
  min-width: 210px;
  text-align: right;
}
.pos-create-page-status small {
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--teko-green);
}
.pos-create-page-status strong {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-primary);
}
.draft-save-status {
  min-height: 12px;
  font-size: 9px;
  font-weight: 750;
  color: var(--text-muted);
}
.draft-save-status.is-saved,
.draft-save-status.is-restored {
  color: var(--teko-green);
}
.draft-save-status.is-saving {
  color: var(--teko-blue);
}
.draft-save-status.is-error {
  color: var(--danger);
}
.pos-create-page-form .ot-family-tile {
  min-height: 96px;
}
.pos-summary-action {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pos-summary-action .btn {
  width: 100%;
  min-height: 46px;
  justify-content: center;
}
.pos-summary-action small {
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
  color: var(--text-muted);
}
.pos-side-payment-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pos-side-payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pos-side-payment-head > div {
  display: grid;
  gap: 1px;
}
.pos-side-payment-head strong {
  font-size: 12px;
  color: var(--teko-blue);
}
.pos-side-payment-head small {
  font-size: 8px;
  color: var(--text-muted);
}
.pos-side-payment-head .btn {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 10px;
}
.pos-side-payment-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
}
.pos-side-payment {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-surface-2);
}
.pos-side-payment-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 30px;
  gap: 5px;
  align-items: end;
}
.pos-side-payment label {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.pos-side-payment label > span {
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pos-side-payment .form-control,
.pos-side-payment .form-select {
  min-width: 0;
  min-height: 32px;
  height: 32px;
  padding: 5px 7px;
  font-size: 10px;
}
.pos-side-payment .btn-icon {
  width: 30px;
  height: 32px;
}
.pos-side-payment-empty {
  min-height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--bg-surface-2);
  color: var(--teko-blue);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.pos-side-payment-empty:disabled {
  cursor: not-allowed;
  opacity: .58;
  color: var(--text-muted);
  background: var(--bg-surface-2);
}
@media (min-width: 1101px) {
  .ot-create-page:not(.pos-create-page) {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding-top: 14px;
  }
  .ot-create-page:not(.pos-create-page) .ot-create-page-head {
    margin-bottom: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .ot-create-page:not(.pos-create-page) .ot-create-page-form {
    min-height: 0;
    overflow: hidden;
  }
  .ot-create-page:not(.pos-create-page) .ot-create-page-form > .venta-modal-form.is-ot {
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }
  .ot-create-page:not(.pos-create-page) .venta-modal-main {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }
  .ot-create-page:not(.pos-create-page) .ot-workbench-card {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
  }
  .ot-create-page:not(.pos-create-page) .ot-workbench-card > .ot-entry-panel,
  .ot-create-page:not(.pos-create-page) .ot-workbench-card > .ot-lines-box {
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
  }
  .ot-create-page:not(.pos-create-page) .ot-quick-entry {
    overflow: hidden;
  }
  .ot-create-page:not(.pos-create-page) .ot-family-browser {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .ot-create-page:not(.pos-create-page) .ot-family-catalog {
    height: 100%;
    min-height: 0;
    max-height: none;
    flex: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ot-create-page:not(.pos-create-page) .ot-workbench-card > .ot-lines-box {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .ot-create-page:not(.pos-create-page) .venta-modal-summary {
    position: static;
    top: auto;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .pos-create-page {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding-top: 14px;
  }
  .pos-create-page-head {
    margin-bottom: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .pos-create-page-form {
    min-height: 0;
    overflow: hidden;
  }
  .pos-create-page-form > .venta-modal-form.is-ot {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: stretch;
  }
  .pos-create-page-form .venta-modal-main {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .pos-create-page-form .ot-workbench-card {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }
  .pos-create-page-form .ot-workbench-card > .ot-entry-panel,
  .pos-create-page-form .ot-workbench-card > .ot-lines-box {
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
  }
  .pos-create-page-form .ot-quick-entry {
    overflow: hidden;
  }
  .pos-create-page-form .ot-quick-entry:not(.has-selection) .ot-garment-config {
    display: none;
  }
  .pos-create-page-form .ot-quick-entry.has-selection .ot-family-browser {
    display: none;
  }
  .pos-create-page-form .ot-family-browser {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .pos-create-page-form .ot-family-catalog {
    height: 100%;
    min-height: 0;
    max-height: none;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pos-create-page-form .ot-garment-config.active {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: start;
  }
  .pos-create-page-form .ot-workbench-card > .ot-lines-box {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .pos-create-page-form .venta-modal-summary {
    position: static;
    top: auto;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .pos-create-page-form .pos-side-payment-panel {
    flex: 1;
  }
  .pos-create-page-form .pos-summary-action {
    flex: 0 0 auto;
  }
}
.venta-modal-form.is-ot .venta-modal-main {
  gap: 9px;
}
.venta-modal-form.is-ot .venta-modal-summary {
  padding: 14px;
}
.ot-setup-card {
  padding: 10px 12px;
  border-left: 5px solid var(--teko-green);
}
.ot-setup-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.ot-setup-heading .venta-step-title {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 13px;
}
.ot-setup-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}
.ot-setup-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.ot-setup-meta span:first-child {
  background: var(--success-bg);
  color: var(--teko-green);
}
.ot-setup-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) repeat(5, minmax(0, 1fr)) minmax(150px, 1.1fr);
  gap: 8px;
  align-items: end;
}
.ot-setup-grid:where(.is-pos) {
  grid-template-columns: minmax(230px, 1.7fr) minmax(130px, 1fr) minmax(125px, .9fr) minmax(110px, .8fr) minmax(135px, .95fr) minmax(170px, 1.2fr);
}
.ot-setup-grid .form-group {
  margin: 0;
  min-width: 0;
}
.ot-setup-grid .form-label {
  font-size: 11px;
  margin-bottom: 4px;
}
.ot-setup-grid .form-control,
.ot-setup-grid .form-select,
.ot-setup-grid .async-search-control {
  min-height: 40px;
}
.ot-workbench-card {
  display: grid;
  grid-template-columns: minmax(390px, .92fr) minmax(0, 1.08fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
}
.ot-workbench-card > .venta-step-title {
  grid-column: 1 / -1;
  margin: 0;
}
.ot-workbench-card > .ot-entry-panel {
  grid-column: 1;
  margin: 0;
}
.ot-workbench-card > .ot-lines-box {
  grid-column: 2;
  margin: 0;
}
.ot-quick-entry {
  display: grid;
  gap: 9px;
  background: var(--bg-surface-2);
  border-color: var(--border);
  padding: 10px;
}
.ot-family-browser,
.ot-garment-config {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.ot-quick-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ot-quick-section-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ot-quick-section-head strong {
  font-size: 13px;
  color: var(--text-primary);
}
.ot-quick-section-head small {
  font-size: 10px;
  color: var(--text-muted);
}
.ot-quick-section-head > span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
.ot-quick-section-head.compact strong {
  font-size: 12px;
}
.ot-catalog-guidance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--warning-border);
  border-radius: 9px;
  background: var(--warning-bg);
  color: var(--warning);
}
.ot-catalog-guidance > svg {
  flex: 0 0 auto;
}
.ot-catalog-guidance > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.ot-catalog-guidance strong {
  font-size: 10px;
}
.ot-catalog-guidance small {
  font-size: 9px;
  line-height: 1.3;
}
.ot-catalog-guidance.is-info {
  border-color: var(--panel-info-border);
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
}
.ot-family-search {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--text-muted);
  transition: border-color .15s, box-shadow .15s;
}
.ot-family-search:focus-within {
  border-color: var(--teko-blue);
  box-shadow: 0 0 0 3px rgba(35, 83, 137, .10);
}
.ot-family-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
}
.ot-family-search:has(input:disabled) {
  opacity: .62;
  background: var(--bg-surface-2);
  cursor: not-allowed;
}
.ot-family-search input:disabled {
  cursor: not-allowed;
}
.ot-family-search button {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.ot-family-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-height: 154px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
}
.ot-family-tile {
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-surface);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition:
    border-color .15s,
    box-shadow .15s,
    transform .15s;
}
.ot-family-tile:hover:not(:disabled) {
  border-color: var(--teko-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.ot-family-tile.selected {
  border: 2px solid var(--teko-green);
  padding: 6px;
  background: var(--success-bg);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .08);
}
.ot-family-tile:disabled {
  opacity: .46;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ot-family-tile.selected:not(:disabled) {
  opacity: 1;
}
.ot-family-tile .ot-family-photo {
  width: 42px;
  height: 54px;
  flex: 0 0 42px;
  border-radius: 8px;
}
.ot-family-tile > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ot-family-tile strong {
  font-size: 12px;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ot-family-tile small {
  font: 700 10px "JetBrains Mono", monospace;
  color: var(--text-muted);
}
.ot-quick-loading,
.ot-quick-empty {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed var(--border);
  border-radius: 11px;
  color: var(--text-muted);
  text-align: center;
  font-size: 11px;
}
.ot-quick-empty.compact {
  min-height: 66px;
}
.ot-garment-config {
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
}
.ot-garment-config.active {
  border-style: solid;
  border-color: var(--panel-info-border);
  box-shadow: var(--shadow-sm);
}
.ot-config-placeholder {
  min-height: 126px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 14px;
  text-align: center;
}
.ot-config-placeholder-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
}
.ot-config-placeholder strong {
  font-size: 13px;
  color: var(--text-primary);
}
.ot-config-placeholder small {
  max-width: 290px;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}
.ot-selected-family-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ot-selected-family-head .ot-garment-identity > .ot-family-photo {
  width: 48px;
  height: 52px;
  flex-basis: 48px;
}
.ot-selected-family-head .ot-garment-identity small {
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: .05em;
}
.ot-config-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 9px;
  align-items: end;
  padding: 9px;
  border-radius: 10px;
  background: var(--bg-surface-2);
}
.ot-quantity-control,
.ot-config-subtotal {
  display: grid;
  gap: 4px;
}
.ot-quantity-control > span,
.ot-config-subtotal > span,
.ot-draft-observation > span {
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.ot-quantity-control > div {
  height: 36px;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-surface);
}
.ot-quantity-control button {
  border: 0;
  background: var(--bg-surface-2);
  color: var(--teko-blue);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.ot-quantity-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  outline: 0;
  text-align: center;
  background: var(--bg-surface);
  font: 800 14px "JetBrains Mono", monospace;
  color: var(--text-primary);
}
.ot-config-subtotal {
  text-align: right;
}
.ot-config-subtotal strong {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font: 800 17px "JetBrains Mono", monospace;
  color: var(--teko-blue);
}
.ot-inline-services-block {
  display: grid;
  gap: 7px;
}
.ot-inline-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
}
.ot-inline-service {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-surface);
  cursor: pointer;
}
.ot-inline-service:hover:not(.disabled) {
  border-color: var(--teko-blue);
}
.ot-inline-service.selected {
  border-color: var(--teko-green);
  background: var(--success-bg);
}
.ot-inline-service.disabled {
  opacity: .55;
  cursor: not-allowed;
}
.ot-inline-service input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--teko-green);
}
.ot-inline-service > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ot-inline-service > span strong {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ot-inline-service > span small {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ot-inline-service > b {
  font: 750 11px "JetBrains Mono", monospace;
  color: var(--teko-blue);
  white-space: nowrap;
}
.ot-detail-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.ot-detail-shortcuts button {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-surface-2);
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
}
.ot-detail-shortcuts button:hover {
  border-color: var(--teko-blue);
}
.ot-detail-shortcuts span {
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ot-detail-shortcuts strong {
  font-size: 10px;
  color: var(--teko-blue);
}
.ot-draft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ot-draft-tags small {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
  font-size: 9px;
}
.ot-draft-observation {
  display: grid;
  gap: 4px;
}
.ot-draft-observation .form-control {
  min-height: 36px;
}
.ot-add-garment {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}
.ot-current-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface-2);
}
.ot-current-order-head > div {
  display: grid;
  gap: 2px;
}
.ot-current-order-head strong {
  font-size: 13px;
  color: var(--text-primary);
}
.ot-current-order-head small {
  font-size: 10px;
  color: var(--text-muted);
}
.ot-current-order-head > span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
.ot-pending-garment {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-left: 4px solid var(--teko-blue);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--teko-blue-pale) 48%, var(--bg-surface));
}
.ot-pending-garment .ot-selected-family-head {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--panel-info-border);
}
.ot-pending-guide {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 9px;
  background: var(--bg-surface);
  color: var(--teko-blue);
  box-shadow: var(--shadow-sm);
}
.ot-pending-guide > span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--teko-blue);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ot-pending-guide > div {
  display: grid;
  gap: 1px;
}
.ot-pending-guide strong {
  font-size: 10px;
}
.ot-pending-guide small {
  font-size: 9px;
  color: var(--text-muted);
}
.ot-pending-garment .ot-config-row {
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 7px;
}
.ot-pending-garment .ot-inline-services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 122px;
}
.ot-pending-garment .ot-inline-service {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 6px 7px;
}
.ot-pending-garment .ot-inline-service > input {
  grid-row: 1 / span 2;
}
.ot-pending-garment .ot-inline-service > span strong,
.ot-pending-garment .ot-inline-service > span small {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.25;
}
.ot-pending-garment .ot-inline-service > b {
  grid-column: 2;
  justify-self: start;
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
  text-align: left;
  line-height: 1.2;
}
.ot-service-price-notice {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ot-pending-garment .ot-detail-shortcuts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ot-pending-garment .ot-detail-shortcuts button {
  padding: 6px 7px;
}
.ot-pending-garment .ot-draft-observation .form-control {
  height: 34px;
  min-height: 34px;
}
.ot-pending-garment .ot-add-garment {
  min-height: 38px;
}
.ot-workbench-card > .ot-lines-box {
  max-height: 540px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ot-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}
.ot-choice-card {
  min-height: 54px;
  padding: 8px 10px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  color: var(--text);
}
.ot-choice-card:hover:not(:disabled) {
  border-color: var(--teko-blue);
  box-shadow: 0 4px 14px rgba(20, 58, 96, .09);
  transform: translateY(-1px);
}
.ot-choice-card:disabled {
  opacity: .58;
  cursor: not-allowed;
}
.ot-choice-card > span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.ot-choice-card > strong {
  font-size: 12px;
  color: var(--teko-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ot-choice-card > small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}
.ot-add-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--panel-info-border);
}
.ot-add-summary > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ot-add-summary span {
  font-size: 11px;
  color: var(--text-muted);
}
.ot-add-summary strong {
  font-size: 20px;
  color: var(--teko-blue);
}
.ot-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 6px;
}
.ot-option-card {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.ot-option-card.selected {
  border-color: var(--teko-blue);
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
}
.ot-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 7px;
}
.ot-service-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  cursor: pointer;
}
.ot-service-card.selected {
  border-color: var(--teko-green);
  background: var(--success-bg);
}
.ot-service-card.disabled {
  opacity: .55;
  cursor: not-allowed;
}
.ot-service-card span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ot-service-card small {
  color: var(--text-muted);
}
.ot-lines-box {
  overflow: visible;
}
.ot-lines-box th {
  padding: 7px 9px;
}
.ot-lines-box td {
  padding: 6px 9px;
  vertical-align: middle;
}
.ot-lines-box td:first-child {
  min-width: 0;
}
.ot-lines-box .searchable-select {
  max-width: 230px;
  margin-top: 4px !important;
}
.ot-lines-box .form-control {
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.ot-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.ot-line-meta span,
.ot-line-meta small {
  padding: 2px 6px;
  border-radius: 9px;
  background: var(--bg-surface-2);
  font-size: 9px;
  color: var(--text-muted);
}
.ot-lines-box table,
.ot-lines-box thead,
.ot-lines-box tbody {
  display: block;
  width: 100%;
  min-width: 0;
}
.ot-lines-box thead {
  display: none;
}
.ot-garment-empty,
.ot-garment-empty > td {
  display: block !important;
  width: 100%;
}
.ot-garment-line {
  display: block;
  width: 100%;
}
.ot-garment-line > td {
  display: block !important;
  width: 100% !important;
  border: 0 !important;
  vertical-align: top !important;
  min-width: 0;
  padding: 9px !important;
}
.ot-garment-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.ot-garment-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ot-garment-identity {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.ot-garment-identity > .ot-family-photo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 10px;
}
.ot-garment-identity > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ot-garment-identity strong {
  font-size: 14px;
  color: var(--text-primary);
}
.ot-garment-identity small {
  font-size: 10px;
  color: var(--text-muted);
}
.ot-garment-identity small.ot-garment-confirmed {
  color: var(--teko-green);
  font-weight: 800;
}
.ot-garment-line-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}
.ot-garment-line-actions > label,
.ot-garment-subtotal {
  display: grid;
  gap: 3px;
}
.ot-garment-line-actions small,
.ot-garment-observation > small {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.ot-garment-line-actions .btn {
  margin-bottom: 1px;
}
.ot-garment-services {
  display: grid;
  gap: 6px;
}
.ot-garment-service-summary {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.ot-garment-service-summary > small {
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.ot-garment-service-summary > div {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ot-garment-service-summary span {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid var(--panel-info-border);
  border-radius: 8px;
  background: var(--teko-blue-pale);
  color: var(--teko-blue);
}
.ot-garment-service-summary span strong {
  min-width: 0;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  font-size: 10px;
}
.ot-garment-service-summary span b {
  font: 750 9px "JetBrains Mono", monospace;
  white-space: nowrap;
}
.ot-garment-service-summary span .form-control {
  width: 88px;
  min-height: 30px;
  height: 30px;
  padding: 4px 6px;
  text-align: right;
  font-size: 10px;
}
.ot-service-line-discount {
  display: grid;
  grid-template-columns: auto minmax(94px, 108px);
  align-items: center;
  gap: 6px;
  margin-left: 2px;
}
.ot-service-line-discount small {
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
}
.discount-percent-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 96px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  overflow: hidden;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}
.discount-percent-control:focus-within {
  border-color: var(--teko-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teko-blue) 14%, transparent);
}
.discount-percent-control.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent);
}
.discount-percent-control.is-disabled {
  cursor: not-allowed;
  opacity: .56;
  background: var(--bg-surface-2);
}
.discount-percent-control input {
  min-width: 0;
  width: 54px;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 5px 2px 5px 8px;
  color: var(--text-primary);
  text-align: right;
  font: 750 12px "JetBrains Mono", monospace;
  outline: none;
}
.discount-percent-control > span {
  display: block !important;
  min-width: auto !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}
.discount-percent-control button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--danger);
  cursor: pointer;
}
.discount-percent-control button:hover {
  background: var(--danger-bg);
}
.discount-percent-control button:disabled {
  cursor: not-allowed;
}
.ot-garment-service {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 170px) minmax(82px, 96px) 68px;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface-2);
}
.ot-garment-service-name,
.ot-garment-service-list,
.ot-garment-service-value,
.ot-garment-service-discount {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ot-garment-service-name strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ot-garment-service-name small,
.ot-garment-service-list > small,
.ot-garment-service-value > small,
.ot-garment-service-discount > small {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.ot-garment-service .searchable-select {
  max-width: none;
  margin: 0 !important;
}
.ot-garment-service .searchable-select-control,
.ot-garment-service .form-control {
  min-height: 32px;
  height: 32px;
}
.ot-garment-service-value strong {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 32px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--teko-blue);
  white-space: nowrap;
}
.ot-garment-service-value .form-control,
.ot-garment-service-discount .form-control {
  text-align: right;
}
.ot-garment-quantity .form-control {
  width: 72px;
  text-align: right;
}
.ot-garment-subtotal {
  min-width: 106px;
  text-align: right;
}
.ot-garment-subtotal strong {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--teko-blue);
  white-space: nowrap;
}
.ot-garment-observation {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 1px;
}
.ot-garment-observation .form-control {
  width: 100%;
  min-width: 0;
}
@media (max-width: 900px) {
  .ot-create-page {
    padding: 12px;
  }
  .ot-create-page-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .ot-create-page-total {
    grid-column: 2;
    text-align: left;
  }
  .ot-create-page-controls {
    grid-column: 2;
    justify-content: flex-start;
  }
  .pos-create-page-status {
    grid-column: 2;
    text-align: left;
  }
  .pos-flow-progress {
    flex-wrap: wrap;
  }
  .pos-flow-progress i {
    width: 14px;
    flex-basis: 14px;
  }
  .pos-create-page {
    padding-bottom: 18px;
  }
  .pos-create-page-form .ot-workbench-card {
    grid-template-columns: 1fr;
  }
  .pos-create-page-form .ot-family-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    max-height: 340px;
  }
  .ot-create-page-form .ot-workbench-card > .ot-lines-box {
    min-height: 0;
    max-height: none;
  }
  .ot-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ot-setup-grid > .form-group:first-child,
  .ot-setup-grid > .form-group:last-child {
    grid-column: 1 / -1;
  }
  .ot-workbench-card {
    grid-template-columns: 1fr;
  }
  .ot-workbench-card > .ot-entry-panel,
  .ot-workbench-card > .ot-lines-box {
    grid-column: 1;
  }
  .ot-workbench-card > .ot-lines-box {
    max-height: none;
    overflow-y: visible;
  }
  .ot-garment-service {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
  }
  .ot-garment-service-value,
  .ot-garment-service-discount {
    grid-row: 2;
  }
  .route-client-detail-head {
    grid-template-columns: 1fr auto;
  }
  .route-client-detail-head > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .route-client-order-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
  .route-client-order-action {
    grid-column: 2 / -1;
    justify-self: end;
  }
}
@media (max-width: 760px) {
  .ot-choice-grid {
    grid-template-columns: 1fr;
  }
  .ot-add-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .ot-add-summary .btn {
    width: 100%;
  }
  .ot-service-grid,
  .ot-option-grid {
    grid-template-columns: 1fr;
  }
  .ot-lines-box {
    overflow: visible !important;
  }
  .ot-lines-box table {
    min-width: 0 !important;
  }
  .ot-garment-line-head {
    align-items: center;
    flex-wrap: wrap;
  }
  .ot-garment-line-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 34px;
  }
  .ot-garment-subtotal {
    min-width: 0;
  }
  .ot-garment-observation {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .pos-flow-progress {
    gap: 5px;
  }
  .pos-flow-progress span {
    font-size: 8px;
  }
  .pos-flow-progress i {
    display: none;
  }
  .ot-setup-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .ot-setup-meta {
    justify-content: flex-start;
  }
  .ot-setup-grid {
    grid-template-columns: 1fr;
  }
  .ot-setup-grid > .form-group:first-child,
  .ot-setup-grid > .form-group:last-child {
    grid-column: auto;
  }
  .ot-workbench-card {
    padding: 9px;
    gap: 9px;
  }
  .ot-quick-entry {
    padding: 9px;
  }
  .ot-family-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 270px;
  }
  .ot-inline-services {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .ot-pending-garment .ot-inline-services {
    grid-template-columns: 1fr;
  }
  .ot-config-row {
    grid-template-columns: 132px minmax(0, 1fr);
  }
  .ot-detail-shortcuts {
    grid-template-columns: 1fr;
  }
  .ot-add-garment {
    font-size: 11px;
  }
  .ot-garment-service {
    grid-template-columns: 1fr;
  }
  .route-delivery-main {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .route-directory-status {
    grid-column: 2;
    align-items: flex-start;
  }
  .route-client-detail-head {
    grid-template-columns: 1fr;
  }
  .route-client-detail-head > .btn {
    grid-column: auto;
  }
  .route-client-detail-head > .badge {
    justify-self: start;
  }
  .route-client-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .route-client-order-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .route-client-order-balance {
    grid-column: 2;
    align-items: flex-start;
  }
  .route-client-order-action {
    grid-column: 2;
    justify-self: start;
  }
  .ot-garment-service-value,
  .ot-garment-service-discount {
    grid-row: auto;
  }
  .ot-garment-identity > .ot-family-photo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}
.client-maps-input {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.client-maps-input > .form-control {
  flex: 1 1 320px;
  min-width: 0;
}
.client-maps-input > .btn {
  flex: 0 0 auto;
}
@media (max-width: 620px) {
  .client-maps-input > .form-control {
    flex-basis: 100%;
  }
  .client-maps-input > .btn:not(.btn-icon) {
    flex: 1 1 auto;
  }
}
.venta-empty-box {
  min-height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--text-muted);
  text-align: center;
  padding: 22px;
}
.venta-empty-box.compact {
  min-height: 88px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-2);
}
.venta-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  color: var(--text-muted);
  margin-bottom: 3px;
}
.venta-empty-box strong {
  font-size: 13px;
  color: var(--text-secondary);
}
.venta-empty-box small {
  font-size: 11px;
}
.venta-payments-box {
  display: grid;
  gap: 9px;
}
.venta-payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-2);
  padding: 10px;
}
.venta-payment-fields {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(120px, .75fr) repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  align-items: end;
  min-width: 0;
}
.venta-payment-remove {
  align-self: end;
  margin-bottom: 2px;
  width: 34px;
  height: 34px;
}
.venta-modal-summary {
  position: sticky;
  top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      180deg,
      var(--bg-surface),
      var(--bg-surface-2));
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.venta-summary-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teko-blue);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.venta-validation-summary {
  max-height: 122px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding: 8px 9px;
  border: 1px solid var(--danger-border);
  border-radius: 9px;
  background: var(--danger-bg);
  color: var(--danger);
}
.venta-validation-summary strong {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
}
.venta-validation-summary ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 15px;
}
.venta-validation-summary li {
  font-size: 9px;
  line-height: 1.3;
}
.venta-discount-input {
  width: 74px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--text-primary);
  text-align: right;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.venta-discount-input:disabled {
  cursor: not-allowed;
  opacity: .55;
  background: var(--bg-surface-2);
}
.venta-discount-mode {
  display: grid;
  gap: 2px;
  margin: 7px 0 9px;
  padding: 8px 10px;
  border: 1px solid var(--panel-info-border);
  border-radius: 8px;
  background: var(--teko-blue-pale);
  text-align: left;
}
.venta-discount-mode strong {
  font-size: 10px;
  color: var(--teko-blue);
}
.venta-discount-mode span {
  font-size: 9px;
  line-height: 1.3;
  color: var(--text-muted);
}
.venta-discount-mode.is-line {
  border-color: var(--success-border);
  background: var(--success-bg);
}
.venta-discount-mode.is-line strong {
  color: var(--teko-green-dark);
}
.venta-discount-saving {
  color: var(--teko-green-dark);
  font-weight: 850;
}
@media (max-width: 1280px) {
  .ot-setup-grid {
    grid-template-columns: minmax(250px, 1.7fr) repeat(2, minmax(150px, 1fr));
  }
}
@media (max-width: 1500px) {
  .pos-create-page-form .ot-family-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .venta-modal-form {
    grid-template-columns: 1fr;
  }
  .ot-create-page-form > .venta-modal-form.is-ot {
    grid-template-columns: 1fr;
  }
  .pos-create-page-form .ot-workbench-card {
    grid-template-columns: 1fr;
  }
  .pos-create-page-form .ot-family-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    max-height: 340px;
  }
  .venta-modal-summary {
    position: static;
    order: -1;
  }
  .venta-payment-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modal-xl,
  .modal-pos {
    max-height: calc(100dvh - 24px);
  }
  .modal-xl .modal-body,
  .modal-pos .modal-body {
    min-height: 0;
    overscroll-behavior: contain;
  }
}
@media (max-width: 1180px) {
  .page-content {
    padding: 20px;
  }
  .modal-xl {
    max-width: calc(100vw - 32px);
  }
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g3,
  .art-commercial-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .art-commercial-primary .form-group:first-child,
  .art-observ-field {
    grid-column: span 2;
  }
  .art-volume-row {
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr);
  }
  .art-volume-row .form-group:last-child {
    grid-column: span 2;
  }
  .art-detail-form-grid {
    grid-template-columns: repeat(3, minmax(145px, 1fr)) !important;
  }
  .art-detail-form-grid > .btn,
  .art-detail-form-grid > span {
    align-self: flex-end;
  }
  .order-lines-head,
  .order-line {
    grid-template-columns: minmax(230px, 1.45fr) minmax(90px, .55fr) minmax(112px, .65fr) minmax(130px, .85fr) minmax(104px, .55fr) 36px;
  }
}
@media (max-width: 900px) {
  .hotel-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .hotel-hero-rule {
    min-width: 0;
    width: 100%;
  }
  .hotel-flow {
    grid-template-columns: repeat(5, minmax(175px, 1fr));
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .hotel-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hotel-contract-price-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .hotel-cut-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ot-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ot-setup-grid > .form-group:first-child,
  .ot-setup-grid > .form-group:last-child {
    grid-column: 1 / -1;
  }
  .layout {
    --sidebar-width:min(82vw,290px);
  }
  .sidebar,
  .sidebar.collapsed {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    transform: translateX(-105%);
    z-index: 80;
    transition: transform .24s var(--ease-out);
  }
  .layout.mobile-sidebar-open .sidebar {
    transform: translateX(0);
  }
  .sidebar.collapsed .sidebar-logo,
  .sidebar-logo {
    height: 92px;
    justify-content: center;
    padding: 15px 15px 8px;
  }
  .sidebar.collapsed .sidebar-logo-plate,
  .sidebar-logo-plate {
    width: 100%;
    height: 64px;
    border-radius: 10px;
  }
  .sidebar.collapsed .sidebar-logo img,
  .sidebar-logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    transform: none;
  }
  .sidebar.collapsed .sidebar-section-label,
  .sidebar-section-label {
    height: auto;
    padding: 13px 11px 5px;
    opacity: 1;
    overflow: visible;
    transform: none;
  }
  .sidebar.collapsed .sidebar-item,
  .sidebar-item {
    justify-content: flex-start;
    gap: 10px;
    padding: 9px 11px;
  }
  .sidebar.collapsed .sidebar-item-label,
  .sidebar-item-label {
    opacity: 1;
    max-width: 190px;
    transform: none;
    pointer-events: auto;
  }
  .sidebar.collapsed .sidebar-bottom,
  .sidebar-bottom {
    padding: 10px 10px 14px;
  }
  .sidebar.collapsed .user-card,
  .user-card {
    justify-content: flex-start;
    padding: 9px;
    gap: 9px;
  }
  .sidebar.collapsed .user-card > div:nth-child(2),
  .user-card > div:nth-child(2) {
    display: block;
  }
  .sidebar.collapsed .user-card-chevron,
  .user-card-chevron {
    display: block;
  }
  .layout-sidebar-toggle,
  .layout.sidebar-is-collapsed .layout-sidebar-toggle {
    position: fixed;
    left: 18px;
    top: 11px;
    transform: none;
    z-index: 70;
  }
  .layout.mobile-sidebar-open .layout-sidebar-toggle {
    left: calc(min(82vw, 290px) - 45px);
    z-index: 90;
    color: #fff;
    background: rgba(3, 24, 52, .8);
    border-color: rgba(255, 255, 255, .18);
  }
  .layout-sidebar-toggle::before {
    display: none;
  }
  .mobile-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(2, 12, 28, .5);
    backdrop-filter: blur(2px);
    z-index: 75;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }
  .layout.mobile-sidebar-open .mobile-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .main-content {
    width: 100%;
  }
  .mobile-only-route {
    display: flex;
  }
  .route-mobile-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
  }
  .route-mobile-heading strong {
    font-size: 20px;
    color: var(--text-primary);
  }
  .route-mobile-heading span {
    font-size: 12px;
    color: var(--text-muted);
  }
  .route-workspace .page-header {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
  }
  .route-workspace .ot-summary {
    display: none !important;
  }
  .route-planner {
    padding: 12px;
  }
  .route-planner-head {
    align-items: stretch;
    flex-direction: column;
  }
  .route-planner-actions .btn {
    flex: 1;
  }
  .route-map {
    height: 260px;
  }
  .route-client-list {
    grid-template-columns: 1fr;
  }
  .route-delivery-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: var(--bg-surface-2);
  }
  .route-desktop-table {
    display: none;
  }
  .route-delivery-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .route-delivery-main {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 13px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    text-align: left;
    color: var(--text-primary);
  }
  .route-delivery-main > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .route-delivery-main strong {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .route-delivery-main small {
    margin-top: 3px;
    color: var(--text-muted);
  }
  .route-delivery-sequence {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--teko-blue-pale);
    color: var(--teko-blue);
  }
  .route-delivery-location {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 13px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
  }
  .route-delivery-location svg {
    flex: none;
    color: var(--teko-blue);
  }
  .route-delivery-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 13px 13px;
  }
  .route-delivery-actions .btn {
    justify-content: center;
    min-height: 42px;
  }
  .header {
    padding: 0 18px;
  }
  .header {
    padding-left: 56px;
  }
  .header-meta {
    display: none;
  }
  .page-header {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .filters-bar {
    align-items: flex-end;
  }
  .filter-field.filter-search {
    flex: 1 1 260px !important;
    max-width: none !important;
  }
  .filter-field {
    min-width: 160px;
  }
  .tabs {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 1px;
    scrollbar-width: thin;
  }
  .tab-btn {
    flex: 0 0 auto;
  }
  .table-wrap table {
    min-width: 720px;
  }
  .modal-overlay {
    padding: 12px;
    align-items: stretch;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .modal-detail {
    max-width: calc(100vw - 24px);
  }
  .modal-body {
    padding: 16px;
    overscroll-behavior: contain;
  }
  .modal-header {
    padding: 13px 16px;
  }
  .modal-footer {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .entity-field-actions {
    flex-wrap: wrap;
  }
  .entity-field-actions > .btn {
    flex: 1 1 auto;
  }
  .form-grid.cols-3,
  .form-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-form-grid,
  .g2,
  .g3,
  .g4,
  .g12,
  .g21,
  .art-commercial-primary,
  .art-volume-row,
  .hotel-contract-price-entry {
    grid-template-columns: 1fr !important;
  }
  .art-commercial-primary .form-group:first-child,
  .art-observ-field,
  .art-volume-row .form-group:last-child {
    grid-column: auto;
  }
  .trace-options {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .art-detail-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .inventory-take-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .inventory-take-create-tools {
    grid-template-columns: 1fr auto;
  }
  .order-lines-head {
    display: none;
  }
  .order-line {
    grid-template-columns: minmax(0, 1fr) minmax(92px, .42fr) minmax(110px, .48fr);
    gap: 10px;
    align-items: end;
  }
  .order-line-article {
    grid-column: 1 / -1;
  }
  .order-line-subtotal {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    text-align: left;
  }
  .order-line-label {
    display: block;
  }
  .order-line-actions {
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
  }
  .permissions-toolbar {
    grid-template-columns: 1fr auto auto;
  }
  .permissions-role-box {
    grid-column: 1 / -1;
  }
  .permissions-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .permissions-layout {
    grid-template-columns: 1fr;
  }
  .permissions-modules {
    position: static;
    max-height: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }
  .permissions-modules button {
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
  }
  .permission-toggles {
    grid-template-columns: repeat(4, minmax(90px, 1fr));
  }
  .permission-row-main {
    grid-template-columns: 1fr;
  }
  .permission-row-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .hotel-workspace {
    padding-top: 10px;
  }
  .hotel-hero {
    padding: 16px;
  }
  .hotel-hero h1 {
    font-size: 19px;
  }
  .hotel-flow {
    margin-bottom: 12px;
    padding: 10px;
  }
  .hotel-flow-connector {
    display: none;
  }
  .hotel-module-bar {
    align-items: stretch;
    flex-direction: column;
    margin-top: 14px;
  }
  .hotel-tabs {
    width: 100%;
  }
  .hotel-tabs .tab-btn {
    justify-content: center;
    flex: 1 0 auto;
  }
  .hotel-summary-grid {
    grid-template-columns: 1fr;
  }
  .hotel-summary-card {
    min-height: 78px;
  }
  .hotel-contract-context {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .hotel-contract-context .badge {
    margin-left: 27px;
  }
  .hotel-cut-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .hotel-cut-progress {
    grid-template-columns: 1fr;
  }
  .hotel-contract-price-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }
  .hotel-contract-price-actions .btn {
    justify-content: center;
  }
  .ot-create-page {
    padding: 8px;
  }
  .pos-create-page {
    padding-bottom: 12px;
  }
  .ot-create-page-head {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
  }
  .ot-create-page-head > .btn {
    justify-self: start;
  }
  .ot-create-page-head > div:nth-child(2),
  .ot-create-page-total {
    grid-column: 1;
  }
  .ot-create-page-head h1 {
    font-size: 18px;
  }
  .ot-create-page-controls {
    grid-column: 1;
    width: 100%;
    justify-content: space-between;
  }
  .ot-create-page-controls > .btn {
    min-height: 44px;
    padding-inline: 12px;
  }
  .pos-create-page-status {
    grid-column: 1;
    text-align: left;
    min-width: 0;
  }
  .ot-setup-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .ot-setup-meta {
    justify-content: flex-start;
  }
  .ot-setup-grid {
    grid-template-columns: 1fr;
  }
  .ot-setup-grid > .form-group:first-child,
  .ot-setup-grid > .form-group:last-child {
    grid-column: auto;
  }
  body {
    font-size: 13px;
  }
  .page-content {
    padding: 12px;
  }
  .header {
    height: auto;
    min-height: 54px;
    padding: 8px 12px;
  }
  .header-title {
    font-size: 14px;
  }
  .header-title + div {
    display: none;
  }
  .page-header {
    gap: 10px;
  }
  .page-title {
    font-size: 17px;
  }
  .route-workspace {
    padding: 10px;
  }
  .route-workspace .filters-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .route-workspace .filter-search {
    grid-column: 1 / -1;
  }
  .route-workspace .filter-field {
    min-width: 0 !important;
  }
  .route-workspace .filter-field:last-child {
    display: none;
  }
  .route-map {
    height: 220px;
  }
  .route-map-empty {
    height: 100px;
  }
  .route-planner-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .route-stop-list li {
    min-width: 185px;
  }
  .delivery-line {
    grid-template-columns: 1fr;
  }
  .delivery-line .form-group {
    margin: 0;
  }
  .delivery-assignee {
    margin-top: 2px;
  }
  .delivery-proof-fields {
    grid-template-columns: 1fr;
  }
  .delivery-location-status {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .delivery-location-status .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
  .delivery-history-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .delivery-history-row .btn {
    width: 100%;
    justify-content: center;
  }
  .ready-line {
    grid-template-columns: 1fr;
  }
  .ready-line .form-group {
    margin: 0;
  }
  .invoice-ot-line {
    grid-template-columns: 1fr;
  }
  .invoice-ot-line .form-group {
    margin: 0;
  }
  .route-delivery-actions {
    grid-template-columns: 1fr;
  }
  .route-delivery-actions .btn {
    min-height: 46px;
  }
  .route-receipt-book {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .route-receipt-book .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
  .route-receipt-filters {
    grid-template-columns: 1fr 1fr;
  }
  .route-receipt-filters .btn {
    width: 100%;
    justify-content: center;
  }
  .route-receipt-row {
    grid-template-columns: 1fr;
  }
  .route-receipt-amount {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }
  .route-receipt-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .route-receipt-actions .btn {
    justify-content: center;
    min-height: 42px;
  }
  .family-image-editor {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .family-image-editor-actions {
    justify-content: center;
  }
  .ot-family-grid {
    grid-template-columns: 1fr;
  }
  .ot-family-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }
  .ot-family-card > .ot-family-photo {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
  .ot-family-card-body {
    grid-column: 1 / -1;
  }
  .ot-family-card-head {
    align-items: center;
  }
  .ot-confirm-quantity-head,
  .ot-confirm-quantity-row {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 8px;
    padding: 9px;
  }
  .ot-close-production-head {
    display: none;
  }
  .ot-close-production-row {
    grid-template-columns: minmax(0, 1fr) 78px 120px;
    gap: 8px;
    padding: 10px;
  }
  .ot-close-production-garment {
    grid-column: 1 / -1;
  }
  .ot-close-production-garment span {
    white-space: normal;
  }
  .ot-close-production-qty {
    text-align: left;
  }
  .ot-close-production-qty strong {
    font-size: 16px;
  }
  .ot-close-production-row .form-group {
    grid-column: 2 / -1;
  }
  .ot-edit-items-head {
    display: none;
  }
  .ot-edit-item-row {
    grid-template-columns: minmax(0, 1fr) 110px;
    padding: 11px;
  }
  .ot-edit-item-row .form-group {
    grid-column: 1 / -1;
  }
  .ot-hero-counts {
    justify-content: flex-start;
  }
  .document-detail-actions {
    justify-content: stretch;
  }
  .document-detail-actions .btn {
    flex: 1 1 145px;
    min-height: 40px;
  }
  .page-subtitle {
    font-size: 11px;
  }
  .page-actions .btn {
    flex: 1 1 auto;
  }
  .filters-bar {
    gap: 8px;
  }
  .filter-field,
  .filter-field.filter-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .filters-bar .filter-action {
    width: 100%;
    justify-content: center;
  }
  .form-grid,
  .form-grid.cols-2,
  .form-grid.cols-3,
  .form-grid.cols-4 {
    grid-template-columns: 1fr !important;
  }
  .finance-modal-grid,
  .finance-deposit-grid,
  .finance-account-movement-filters {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .card-header,
  .card-p {
    padding: 14px;
  }
  .pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 12px;
  }
  .pag-info {
    flex: 0 0 100%;
    margin-right: 0;
    margin-bottom: 6px;
  }
  .modal-overlay {
    padding: 8px;
  }
  .modal {
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }
  .modal-detail {
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }
  .modal-detail .modal-body {
    padding: 12px 10px;
  }
  .document-detail-hero > div:last-child {
    flex-basis: 100%;
    text-align: left !important;
  }
  .document-detail-actions {
    justify-content: flex-start;
  }
  .modal-title {
    font-size: 14px;
  }
  .modal-subtitle {
    display: none;
  }
  .modal-body {
    padding: 14px 12px;
  }
  .modal-footer .btn {
    flex: 1 1 130px;
  }
  .venta-step-card {
    padding: 12px;
  }
  .venta-grid-2,
  .venta-grid-3,
  .venta-grid-client,
  .venta-payment-fields {
    grid-template-columns: 1fr !important;
  }
  .venta-modal-summary {
    padding: 14px;
  }
  .venta-payment-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }
  .venta-payment-remove {
    justify-self: end;
    width: 42px;
    height: 38px;
    margin: 0;
  }
  .venta-lines-box {
    overflow-x: auto;
  }
  .venta-lines-box table {
    min-width: 640px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .art-detail-form-grid {
    grid-template-columns: 1fr !important;
  }
  .inventory-take-summary,
  .inventory-take-result {
    grid-template-columns: 1fr;
  }
  .inventory-take-detail-head {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }
  .inventory-take-detail-head .btn {
    align-self: flex-start;
  }
  .inventory-take-create-tools {
    grid-template-columns: 1fr;
  }
  .inventory-take-create-tools .btn {
    width: 100%;
  }
  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .table-wrap table.mobile-card-table,
  .mobile-card-table {
    display: block;
    min-width: 0 !important;
    width: 100%;
    border: 0;
    background: transparent;
  }
  .mobile-card-table > thead {
    display: none;
  }
  .mobile-card-table > tbody {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }
  .mobile-card-table > tbody > tr {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
  }
  .mobile-card-table > tbody > tr:hover {
    background: var(--bg-surface);
  }
  .mobile-card-table > tbody > tr > td {
    display: grid;
    grid-template-columns: minmax(94px, .42fr) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100%;
    min-height: 0;
    padding: 6px 0 !important;
    border: 0 !important;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .mobile-card-table > tbody > tr > td + td {
    border-top: 1px solid color-mix(in srgb, var(--border) 58%, transparent) !important;
  }
  .mobile-card-table > tbody > tr > td::before {
    content: attr(data-label);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding-top: 2px;
  }
  .mobile-card-table > tbody > tr > td.mobile-card-cell-unlabelled {
    display: flex;
    justify-content: flex-end;
  }
  .mobile-card-table > tbody > tr > td.mobile-card-cell-unlabelled::before {
    display: none;
  }
  .mobile-card-table > tbody > tr > td[colspan] {
    display: block;
    text-align: center;
  }
  .mobile-card-table > tbody > tr > td[colspan]::before {
    display: none;
  }
  .mobile-card-table > tbody > tr > td .badge {
    justify-self: end;
  }
  .mobile-card-table > tbody > tr > td:last-child:has(.btn) {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
  }
  .keep-table-mobile {
    min-width: 660px;
  }
  .order-line {
    grid-template-columns: 1fr 1fr;
  }
  .order-line-article,
  .order-line-subtotal {
    grid-column: 1 / -1;
  }
  .order-line-actions {
    grid-column: 2;
    justify-content: flex-end;
  }
  .order-total-wrap {
    justify-content: stretch;
  }
  .order-total-box {
    min-width: 0;
    width: 100%;
  }
  .permissions-toolbar {
    grid-template-columns: 1fr;
  }
  .permissions-toolbar .btn {
    width: 100%;
    justify-content: center;
  }
  .permissions-summary {
    grid-template-columns: 1fr;
  }
  .permissions-panel-head {
    align-items: stretch;
    flex-direction: column;
  }
  .permissions-bulk .btn {
    flex: 1 1 120px;
  }
  .permission-toggles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .permission-toggle {
    justify-content: flex-start;
    padding: 0 9px;
  }
}
.art-prepaid-package {
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--teko-blue) 5%, transparent);
}
.art-package-components {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.art-package-components.is-invalid {
  padding: 8px;
  border: 1px solid var(--danger);
  border-radius: 8px;
}
.art-package-component {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 36px;
  gap: 8px;
  align-items: end;
}
.art-package-component.is-amount {
  grid-template-columns: minmax(260px, 1fr) 36px;
}
.art-package-component > .btn {
  margin-bottom: 1px;
}
.prepaid-balance-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--teko-green) 55%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--teko-green) 10%, transparent);
}
.prepaid-balance-strip > div {
  display: grid;
  margin-right: auto;
}
.prepaid-balance-strip small {
  color: var(--text-muted);
}
.prepaid-balance-strip > span {
  display: grid;
  min-width: 150px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--surface);
}
.prepaid-service-badge {
  display: block;
  width: max-content;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teko-green) 18%, transparent);
  color: var(--teko-green);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
@media (max-width: 760px) {
  .art-package-component {
    grid-template-columns: 1fr 120px 36px;
  }
}
