:root {
  --bg: #f4f6f9;
  --surface: #fff;
  --surface2: #f8fafc;
  --ink: #172b45;
  --muted: #788699;
  --line: #e8edf3;
  --navy: #153557;
  --blue: #4277e9;
  --blue-bg: #edf3ff;
  --green: #218368;
  --green-bg: #eaf6f0;
  --orange: #bb7b24;
  --orange-bg: #fff5e4;
  --red: #c15a58;
  --shadow: 0 5px 30px #152b4610;
  --radius: 18px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1725;
  --surface: #142237;
  --surface2: #192a40;
  --ink: #e5edf8;
  --muted: #94a6bd;
  --line: #27384e;
  --navy: #284c77;
  --blue: #8dafff;
  --blue-bg: #233753;
  --green: #72d2af;
  --green-bg: #193e37;
  --orange: #e6b766;
  --orange-bg: #3c3222;
  --red: #f18f8c;
  --shadow: 0 5px 30px #0002;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #80aaff;
  outline-offset: 4px;
}
svg.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.25;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.35px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
strong {
  font-weight: 650;
}
.boot {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 650;
}
.boot small {
  font-weight: 400;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 28px;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: 2px;
  line-height: 1.1;
}
.brand small {
  font-size: 9px;
  letter-spacing: 3.3px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  padding: 15px 15px 9px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  margin: 3px 0;
  transition: 0.15s;
}
.nav-item:hover {
  background: var(--surface2);
  color: var(--ink);
}
.nav-item.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 5px 12px #15355715;
}
.nav-count {
  margin-left: auto;
  background: #ffffff25;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
}
.support-box {
  padding: 18px 15px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin: 22px 0 16px;
}
.support-box p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 12px;
}
.support-box button {
  width: 100%;
  font-size: 12px;
}
.profile-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 7px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.profile-mini strong {
  display: block;
  font-size: 12px;
}
.profile-mini small {
  font-size: 10px;
}
.profile-mini .icon-btn {
  margin-left: auto;
}
.workspace {
  margin-left: 244px;
  min-height: 100vh;
}
.topbar {
  height: 80px;
  padding: 0 38px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.language-picker { display: inline-flex; min-width: 0; }
.language-picker select { width: auto; max-width: 160px; min-height: 36px; padding: 6px 24px 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.auth-top { flex-wrap: wrap; gap: 8px; }
.language {
  font-size: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.divider {
  height: 22px;
  width: 1px;
  background: var(--line);
}
.icon-btn {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--surface2);
  color: var(--ink);
}
.mobile-menu {
  display: none;
}
.main {
  max-width: 1600px;
  margin: auto;
  padding: 32px 38px 50px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 10px 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  min-height: 40px;
}
.btn:hover {
  filter: brightness(0.97);
  box-shadow: 0 2px 6px #00000006;
}
.btn.primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn.blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn.danger {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.btn.small {
  padding: 7px 11px;
  min-height: 32px;
  font-size: 11px;
}
.btn.full {
  width: 100%;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.sample-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 20px;
}
.sample-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c39a49;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  padding: 21px 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.stat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--blue-bg);
  color: var(--blue);
  border-radius: 10px;
}
.stat:nth-child(2) .stat-icon {
  background: var(--green-bg);
  color: var(--green);
}
.stat:nth-child(3) .stat-icon {
  background: var(--orange-bg);
  color: var(--orange);
}
.stat-number {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.3;
  margin: 12px 0 9px;
}
.stat-number span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 5px;
}
.stat-foot {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-foot .icon {
  width: 13px;
  height: 13px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 25px 0;
  gap: 12px;
}
.panel-head small {
  display: block;
  margin-top: 4px;
}
.panel-body {
  padding: 24px 25px;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.grid-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.chart {
  padding: 18px 25px 15px;
}
.chart svg {
  width: 100%;
  height: 214px;
  overflow: visible;
}
.chart text {
  font-size: 10px;
  fill: var(--muted);
  font-family: inherit;
}
.chart line {
  stroke: var(--line);
}
.chart .bar {
  fill: var(--navy);
}
.chart .bar:hover {
  fill: var(--blue);
}
.chart-key {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  align-items: center;
}
.key-dot {
  width: 7px;
  height: 7px;
  border-radius: 3px;
  background: var(--navy);
  display: inline-block;
  margin-right: 5px;
}
.route-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.route-row:last-child {
  border-bottom: 0;
}
.route-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.route-top small {
  font-size: 11px;
}
.track {
  height: 5px;
  border-radius: 10px;
  background: var(--surface2);
  overflow: hidden;
}
.track > span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 10px;
}
.route-row:nth-child(2) .track > span {
  background: #5f8aab;
}
.route-row:nth-child(3) .track > span {
  background: #6b9c91;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.mini-stat {
  background: var(--surface);
  padding: 17px 20px;
}
.mini-stat strong {
  display: block;
  font-size: 20px;
}
.mini-stat small {
  font-size: 10px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 500;
  background: var(--surface2);
  padding: 13px 23px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 12px;
  padding: 16px 23px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--surface2);
}
td .sub {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.code {
  font-weight: 650;
  letter-spacing: 0.3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 550;
  border-radius: 6px;
  padding: 4px 9px;
  background: var(--blue-bg);
  color: var(--blue);
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.badge.green {
  background: var(--green-bg);
  color: var(--green);
}
.badge.orange {
  background: var(--orange-bg);
  color: var(--orange);
}
.badge.gray {
  background: var(--surface2);
  color: var(--muted);
}
.badge.red {
  background: #bb4c4c15;
  color: var(--red);
}
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 23px;
  gap: 14px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 0 11px;
  border-radius: 8px;
  max-width: 320px;
  background: var(--surface);
}
.search .icon {
  width: 16px;
  color: var(--muted);
}
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 10px 0;
  outline: none;
  color: var(--ink);
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tab {
  padding: 7px 11px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.tab.active {
  background: var(--blue-bg);
  color: var(--blue);
  font-weight: 600;
}
.table-foot {
  padding: 15px 23px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}
.field label {
  font-size: 12px;
  font-weight: 550;
}
.password-control { position: relative; min-width: 0; }
.field .password-control input { padding-right: 52px; }
.password-toggle { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; }
.password-toggle:hover { background: var(--line); }
.password-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.field input,
.field select,
.field textarea,
input.select,
select.select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  min-height: 43px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #4277e915;
}
.field textarea {
  min-height: 105px;
  resize: vertical;
}
.field small {
  font-size: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .span2 {
  grid-column: 1/-1;
}
.select {
  font-size: 12px;
  max-width: 220px;
}
.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.notice {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 12px;
  line-height: 1.65;
}
.notice.warn {
  background: var(--orange-bg);
  color: var(--orange);
}
.notice.error {
  background: #c45c5c15;
  color: var(--red);
}
.empty {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 5px;
}
.empty p {
  font-size: 12px;
}
.hero {
  background: #153557;
  color: white;
  border-radius: 20px;
  padding: 32px 35px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  min-height: 210px;
}
.hero-copy {
  max-width: 520px;
  z-index: 2;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #b1c5df;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 550;
}
.hero p {
  font-size: 12px;
  color: #b5c9df;
  margin: 14px 0 23px;
  max-width: 370px;
}
.hero .btn {
  background: white;
  color: #173857;
  border: 0;
}
.hero-art {
  width: 320px;
  max-width: 40%;
  color: #bdd0e8;
}
.hero-art svg {
  width: 100%;
  overflow: visible;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.quick-action {
  padding: 21px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  color: var(--ink);
}
.quick-action strong {
  display: block;
  font-size: 13px;
}
.quick-action small {
  font-size: 11px;
}
.quick-action > .icon {
  margin-left: auto;
  color: var(--muted);
  width: 16px;
}
.shipment-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.shipment-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.shipment-card:hover {
  border-color: #98b2d1;
}
.shipment-route {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 7px;
}
.eta {
  background: var(--surface2);
  padding: 13px 15px;
  border-radius: 9px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.eta .icon {
  color: var(--blue);
}
.eta strong {
  display: block;
  font-size: 13px;
}
.eta small {
  font-size: 10px;
}
.calculator {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}
.line-item {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 34px;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.line-item .field {
  margin-bottom: 0;
}
.quote-total {
  padding: 27px;
  border-radius: 14px;
  background: var(--navy);
  color: white;
}
.quote-total small {
  color: #b7cae3;
}
.quote-total .price {
  font-size: 39px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 8px 0;
}
.quote-total .price span {
  font-size: 15px;
  font-weight: 400;
}
.quote-total .uzs {
  padding-top: 14px;
  border-top: 1px solid #ffffff22;
  font-size: 17px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  font-size: 12px;
}
.summary-row:last-child {
  border-bottom: 0;
}
.summary-row > span:first-child {
  color: var(--muted);
}
.timeline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 23px 0;
}
.step {
  position: relative;
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.step:before {
  content: "";
  position: absolute;
  top: 16px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: var(--line);
}
.step:first-child:before {
  display: none;
}
.step .circle {
  position: relative;
  margin: 0 auto 8px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.step.done {
  color: var(--green);
}
.step.done .circle {
  background: var(--green-bg);
  border-color: var(--green-bg);
}
.step.current .circle {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.step.current {
  color: var(--ink);
  font-weight: 600;
}
.timeline .icon {
  width: 15px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.photos img {
  width: 112px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.audit-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.audit-item small {
  font-size: 10px;
}
.audit-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.audit-item pre {
  font: 11px/1.5 monospace;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  background: var(--surface2);
  padding: 10px;
  border-radius: 8px;
}
.wallet-card {
  background: var(--navy);
  border-radius: 18px;
  color: #fff;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.wallet-card:after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  right: -70px;
  top: -75px;
  box-shadow:
    0 0 0 30px #ffffff05,
    0 0 0 60px #ffffff04;
}
.wallet-card small {
  color: #c0cee0;
}
.wallet-card .balance {
  font-size: 42px;
  letter-spacing: -1px;
  margin: 16px 0;
}
.wallet-card .balance span {
  font-size: 16px;
}
.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.region-filter { max-width: 420px; }
.region-filter .field { margin-bottom: 0; }
.region-prices-title { margin: 8px 0 16px; }
.region-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.region-prices .field { min-width: 0; }
@media (max-width: 600px) { .region-prices { grid-template-columns: minmax(0, 1fr); } }
.warehouse-card {
  padding: 25px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.warehouse-map {
  width: 100%;
  height: clamp(220px, 30vw, 300px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
  background: var(--surface2);
}
.warehouse-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}
.warehouse-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.warehouse-title h2 { min-width: 0; }
.warehouse-title .badge { flex: none; }
.warehouse-hours { font-size: 12px; }
.warehouse-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.warehouse-actions .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
@media (max-width: 1100px) {
  .warehouse-grid { grid-template-columns: minmax(0, 1fr); }
}
.warehouse-visual {
  height: 95px;
  background: var(--surface2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--muted);
}
.warehouse-visual .icon {
  width: 42px;
  height: 42px;
  stroke-width: 1;
}
.warehouse-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0;
}
.warehouse-card .icon {
  flex: none;
}
.settings-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.settings-nav .tab {
  font-size: 12px;
  padding: 10px 16px;
}
.contract-editor {
  min-height: 290px !important;
  font-size: 13px;
  line-height: 1.8;
}
.contract-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 15px 0;
}
.check-label input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #07162680;
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 19px;
  max-width: 610px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 80px #0003;
}
.modal.wide {
  max-width: 820px;
}
.modal-header {
  padding: 23px 25px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.modal-body {
  padding: 24px 25px;
}
.modal-footer {
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  margin: 12px 0;
  white-space: pre-line;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 15px 22px;
  box-shadow: var(--shadow);
  z-index: 200;
  max-width: 420px;
  font-size: 13px;
  animation: appear 0.2s;
}
.toast.error {
  background: #a94343;
}
@keyframes appear {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-art {
  padding: 50px 65px;
  background: #143455;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-art .brand {
  padding: 0;
}
.auth-art h1 {
  font-size: 47px;
  font-weight: 500;
  line-height: 1.2;
  max-width: 450px;
}
.auth-art p {
  color: #b8cadf;
  margin: 22px 0;
  font-size: 14px;
  max-width: 380px;
}
.auth-art .hero-art {
  max-width: 100%;
  width: 380px;
  margin: 30px auto;
}
.auth-art small {
  color: #91abc6;
}
.auth-form-wrap {
  display: grid;
  place-items: center;
  background: var(--surface);
  padding: 40px;
}
.auth-form {
  width: 100%;
  max-width: 380px;
}
.auth-form h1 {
  font-size: 28px;
  margin-bottom: 9px;
}
.auth-form > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 26px;
}
.auth-form .btn {
  min-height: 46px;
}
.auth-links {
  text-align: center;
  font-size: 12px;
  margin-top: 19px;
  color: var(--muted);
}
.auth-links a {
  color: var(--blue);
  font-weight: 600;
}
.demo-accounts {
  padding: 15px;
  background: var(--surface2);
  border: 1px dashed var(--line);
  border-radius: 11px;
  margin-top: 25px;
}
.demo-accounts .btn {
  min-height: 31px;
  font-size: 11px;
  padding: 6px 10px;
}
.demo-accounts small {
  display: block;
  margin-bottom: 10px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  margin: 20px 0;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.auth-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
.offline-banner {
  background: var(--orange-bg);
  color: var(--orange);
  text-align: center;
  padding: 9px;
  font-size: 12px;
}
.loading {
  min-height: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.main { min-width: 0; }
.main[aria-busy="true"]::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  background-size: 200% 100%;
  animation: progress 1s linear infinite;
}
@keyframes progress { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .spinner, .main[aria-busy="true"]::before { animation: none; }
}
.spinner {
  width: 23px;
  height: 23px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: auto auto 14px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.bottom-nav {
  display: none;
}
.document-public {
  max-width: 850px;
  margin: 35px auto;
  padding: 35px;
}
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.public-header .brand {
  padding: 0;
}
.danger-zone {
  border: 1px solid #c15a5844;
  border-radius: 12px;
  padding: 18px;
}
.danger-zone p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 14px;
}
.activity-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.activity-row:last-child {
  border: 0;
}
.activity-row .stat-icon {
  width: 32px;
  height: 32px;
}
.activity-row p {
  font-size: 12px;
}
.activity-row small {
  font-size: 10px;
}
.activity-row strong {
  margin-left: auto;
  font-size: 13px;
}
.text-link {
  color: var(--blue);
  font-size: 12px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.status-bubble {
  background: var(--green-bg);
  color: var(--green);
  border-radius: 30px;
  padding: 5px 10px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1600px) {
  .main {
    padding-top: 42px;
  }
  .hero {
    min-height: 245px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 210px;
    padding: 26px 14px;
  }
  .workspace {
    margin-left: 210px;
  }
  .main {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .stat {
    padding: 18px;
  }
  .stat-number {
    font-size: 25px;
  }
  .grid-2 {
    grid-template-columns: 1.4fr 1fr;
  }
  .nav-item {
    font-size: 12px;
    padding: 11px;
  }
  .auth-art {
    padding: 40px;
  }
  .detail-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 190px;
    padding: 24px 10px;
  }
  .workspace {
    margin-left: 190px;
  }
  .brand {
    padding-left: 8px;
    gap: 8px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand img {
    width: 33px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .main {
    padding: 24px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2,
  .detail-grid,
  .calculator {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 32%;
  }
  .quick-actions {
    gap: 10px;
  }
  .quick-action {
    padding: 16px 12px;
  }
  .quick-action small {
    font-size: 10px;
  }
  .grid-even {
    gap: 16px;
  }
  .heading-actions .btn {
    padding: 10px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .auth-art h1 {
    font-size: 35px;
  }
}
.heading-actions {
  flex-wrap: wrap;
}
.page-heading > * {
  min-width: 0;
}
.heading-actions input.select {
  width: auto;
  min-width: 130px;
}
.grid-2 > *,
.grid-even > *,
.detail-grid > *,
.calculator > * {
  min-width: 0;
}
[data-theme="dark"] .chart .bar {
  fill: var(--blue);
}
[data-theme="dark"] .key-dot {
  background: var(--blue);
}
@media (max-width: 700px) {
  .topbar > .inline { min-width: 0; }
  .topbar .breadcrumb { min-width: 0; overflow: hidden; white-space: nowrap; }
  .topbar .breadcrumb strong { overflow: hidden; text-overflow: ellipsis; }
  .top-actions { flex-shrink: 0; }
  .language-picker select { max-width: 118px; font-size: 11px; padding-right: 18px; }
  .heading-actions .btn {
    flex: 1 1 auto;
  }
  .heading-actions input.select {
    flex: 1 1 140px;
  }
  .workspace .topbar {
    gap: 8px;
  }
  .workspace .top-actions {
    gap: 3px;
  }
  .top-actions .avatar {
    display: none;
  }
  .workspace .breadcrumb {
    gap: 6px;
  }
  .timeline {
    flex-wrap: wrap;
  }
  .summary-row strong {
    overflow-wrap: anywhere;
    text-align: right;
  }
  .line-item > * {
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .sidebar {
    transform: translateX(-100%);
    width: 245px;
    box-shadow: var(--shadow);
    transition: 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .mobile-menu {
    display: flex;
  }
  .top-actions {
    gap: 8px;
  }
  .language {
    font-size: 11px;
  }
  .top-actions .divider {
    display: none;
  }
  .main {
    padding: 24px 16px 90px;
  }
  .page-heading {
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 13px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .heading-actions {
    width: 100%;
    justify-content: space-between;
  }
  .heading-actions .select {
    flex: 1;
    max-width: none;
  }
  .stat-grid {
    gap: 12px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 16px;
  }
  .stat-number {
    font-size: 25px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-icon {
    width: 30px;
    height: 30px;
  }
  .stat-foot {
    font-size: 10px;
  }
  .stat-foot .icon {
    display: none;
  }
  .grid-even {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    gap: 18px;
  }
  .panel-head {
    padding: 20px 18px 0;
  }
  .panel-body {
    padding: 20px 18px;
  }
  .chart {
    padding: 16px;
  }
  .panel-head h2 {
    font-size: 16px;
  }
  .hero {
    padding: 25px;
    min-height: 210px;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 27px;
  }
  .hero-copy {
    max-width: 80%;
  }
  .hero p {
    max-width: 240px;
  }
  .hero-art {
    position: absolute;
    right: -45px;
    bottom: 12px;
    max-width: 45%;
    opacity: 0.5;
  }
  .hero .btn {
    font-size: 11px;
  }
  .quick-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .quick-action {
    padding: 15px 18px;
  }
  .quick-action small {
    font-size: 11px;
  }
  .shipment-cards,
  .warehouse-grid {
    grid-template-columns: 1fr;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    z-index: 40;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    color: var(--muted);
    min-width: 55px;
  }
  .bottom-nav a.active {
    color: var(--blue);
  }
  .bottom-nav .icon {
    width: 20px;
    height: 20px;
  }
  .filters {
    padding: 15px;
    flex-wrap: wrap;
  }
  .search {
    max-width: none;
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span2 {
    grid-column: auto;
  }
  .line-item {
    grid-template-columns: 1.3fr 0.7fr 28px;
  }
  .line-item .field input,
  .line-item .field select {
    padding: 10px;
    font-size: 12px;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal {
    max-height: 94vh;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 18px;
  }
  .auth-wrap {
    display: block;
  }
  .auth-art {
    display: none;
  }
  .auth-form-wrap {
    min-height: 100vh;
    padding: 30px 24px;
  }
  .document-public {
    margin: 10px;
    padding: 20px;
  }
  .public-header {
    flex-wrap: wrap;
    gap: 16px;
  }
  .table-wrap td,
  .table-wrap th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .toast {
    left: 16px;
    right: 16px;
    bottom: 80px;
  }
  .settings-nav .tab {
    padding: 8px 10px;
  }
  .mini-stat {
    padding: 15px;
  }
  .mini-stat strong {
    font-size: 18px;
  }
  .timeline {
    gap: 3px;
  }
  .step {
    font-size: 9px;
  }
}
.scanner-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.scanner-layout > * { min-width: 0; }
#cargo-scan-settings { border: 0; margin: 0; padding: 0; min-width: 0; }
#cargo-recent { grid-column: 1 / -1; }
#cargo-result:empty { display: none; }
.cargo-recent-list { list-style: none; margin: 0; padding: 0; }
.cargo-recent-list li { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.cargo-recent-list li:last-child { border-bottom: 0; }
.cargo-recent-list small { color: var(--muted); }
.scanner-layout .inline { flex-wrap: wrap; }
.scanner-layout .inline .btn { min-width: 0; max-width: 100%; white-space: normal; }
.scanner-layout h2 { overflow-wrap: anywhere; }
#cargo-camera { width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; background: #000; margin-bottom: 16px; }
#cargo-camera[hidden] { display: none; }
.scanner-layout form { margin-top: 18px; }
.scanner-layout h3 { margin: 18px 0; }
.label-preview { width: 100%; height: 65vh; min-height: 320px; border: 1px solid var(--border); background: white; border-radius: 12px; }
.modal-label-preview { height: 50vh; min-height: 240px; max-height: 570px; }
.modal-footer { display: flex; flex-wrap: wrap; gap: 12px; }
.print-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.document-languages { flex-wrap: wrap; margin-bottom: 16px; }
.wrap-cell { overflow-wrap: anywhere; max-width: 300px; white-space: normal; }
.wrap-cell small { display: block; }
#label-batch-form { flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
#label-batch-form .field { flex: 1; min-width: 120px; max-width: 220px; }
@media (max-width: 700px) { .scanner-layout { grid-template-columns: minmax(0, 1fr); } .print-actions .btn { flex: 1; } }

/* Focused staff views: cards wrap on narrow phones, with no financial columns for transit staff. */
.operational-list { display: grid; gap: 12px; padding: 16px; }
.operational-card { display: block; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); }
.operational-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.operational-title strong, .operational-card .summary-row strong, .operational-detail .summary-row strong { min-width: 0; overflow-wrap: anywhere; }
.operational-detail { display: grid; gap: 16px; max-width: 800px; min-width: 0; }
.operational-detail > *, .operational-detail .panel { min-width: 0; }
@media (max-width: 480px) { .operational-list { padding: 10px; } .operational-card { padding: 12px; } .operational-detail .summary-row { gap: 12px; } }
