* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(20, 184, 166, .08) 42%, rgba(245, 158, 11, .08)),
    #f6f7f9;
  color: #20242a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
a { color: #0d6efd; text-decoration: none; }
a:hover { text-decoration: underline; }
.container-fluid { width: 100%; padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.me-3 { margin-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.d-block { display: block; }
.d-flex { display: flex; }
.align-items-end { align-items: flex-end; }
.row { display: flex; flex-wrap: wrap; margin-left: -.5rem; margin-right: -.5rem; }
.row > * { padding-left: .5rem; padding-right: .5rem; width: 100%; }
.g-2 { row-gap: .75rem; }
.g-3 { row-gap: 1rem; }
.col-6 { width: 50%; }
.col-12 { width: 100%; }
@media (min-width: 768px) {
  .col-md-1 { width: 8.333333%; }
  .col-md-2 { width: 16.666667%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-6 { width: 50%; }
  .col-md-10 { width: 83.333333%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-6 { width: 50%; }
}
.navbar {
  background: #1f2933;
  color: #fff;
  padding: .75rem 0;
}
.navbar .container-fluid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}
.navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.navbar-brand:hover { color: #fff; text-decoration: none; }
.navbar-collapse {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
}
.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.nav-link {
  color: #d7dde5;
  display: inline-block;
  padding: .35rem .5rem;
  border-radius: 6px;
}
.nav-link:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}
.nav-identity {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.nav-user-name {
  color: #eef2f7;
  display: inline-block;
  font-size: .92rem;
  font-weight: 650;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form-label { display: block; margin-bottom: .35rem; font-weight: 600; }
.form-control, .form-select {
  display: block;
  width: 100%;
  min-height: 2.45rem;
  padding: .5rem .65rem;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  background: #fff;
  color: #20242a;
  font: inherit;
}
.form-control-lg, .form-select-lg {
  min-height: 3rem;
  padding: .65rem .8rem;
  font-size: 1.05rem;
}
.form-check { display: inline-flex; gap: .45rem; align-items: center; }
.form-check-input { margin: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: .45rem .8rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: #20242a;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.dashboard-head .btn-primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}
.btn-outline-primary { border-color: #0d6efd; color: #0d6efd; }
.btn-outline-secondary { border-color: #8b96a5; color: #394150; }
.btn-outline-danger { border-color: #dc3545; color: #dc3545; }
.btn-outline-light { border-color: #d7dde5; color: #fff; background: transparent; }
.btn-sm { min-height: 2rem; padding: .25rem .55rem; font-size: .9rem; }
.btn-lg { min-height: 3rem; padding: .65rem 1rem; font-size: 1.05rem; }
.w-100 { width: 100%; }
.table-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.input-action-row {
  display: flex;
  gap: .5rem;
}
.input-action-row .form-select {
  min-width: 0;
}
.input-action-row .btn {
  flex: 0 0 auto;
}
.table-responsive { width: 100%; overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.table th, .table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid #e2e5ea;
  text-align: left;
  vertical-align: middle;
}
.table th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.table th.sortable::after {
  color: #8b96a5;
  content: "↕";
  font-size: .8rem;
  margin-left: .35rem;
}
.table th.sortable.sort-asc::after { content: "↑"; color: #0d6efd; }
.table th.sortable.sort-desc::after { content: "↓"; color: #0d6efd; }
.table-hover tbody tr:hover { background: #f3f6fa; }
.table-sm th, .table-sm td { padding: .45rem .55rem; }
.alert {
  padding: .75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #cfd6df;
  background: #fff;
}
.alert-success { border-color: #badbcc; background: #d1e7dd; }
.alert-danger { border-color: #f5c2c7; background: #f8d7da; }
.text-secondary { color: #657083; }
.small { font-size: .85rem; }
.text-uppercase { text-transform: uppercase; }
.fs-3 { font-size: 1.75rem; }
.fs-5 { font-size: 1.25rem; }
.fw-semibold { font-weight: 650; }
.h3 { font-size: 1.65rem; line-height: 1.2; }
.h5 { font-size: 1.15rem; line-height: 1.25; }
h1, h2 { margin-top: 0; }
.surface, .metric, .auth-panel, .mobile-panel, .history-item {
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 1rem;
}
.surface {
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}
.metric { min-height: 96px; }
.auth-panel { max-width: 420px; }
.mobile-panel { max-width: 560px; }
.history-item { margin-bottom: .75rem; }
.admin-hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.admin-overview-card {
  min-height: 116px;
}
.admin-overview-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
  margin: .35rem 0 .25rem;
}
.admin-overview-card span {
  color: #657083;
  font-size: .9rem;
}
.admin-panel {
  height: 100%;
}
.admin-panel h2 {
  margin-bottom: 1rem;
}
.admin-action-list,
.admin-attention-list,
.admin-compact-list {
  display: grid;
  gap: .65rem;
}
.admin-action,
.admin-attention-item,
.admin-compact-list a {
  align-items: center;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  color: #20242a;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .75rem;
}
.admin-action:hover,
.admin-attention-item:hover,
.admin-compact-list a:hover {
  border-color: #9ec5fe;
  background: #f8fbff;
  text-decoration: none;
}
.admin-action small,
.admin-compact-list span {
  color: #657083;
  display: block;
  font-size: .85rem;
  margin-top: .15rem;
}
.admin-action em {
  color: #0d6efd;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}
.admin-attention-item strong {
  background: #eef2f7;
  border-radius: 999px;
  min-width: 2rem;
  padding: .2rem .55rem;
  text-align: center;
}
.admin-attention-item.has-warning strong {
  background: #fff3cd;
  color: #8a5a00;
}
.supplier-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.supplier-panel-head h2 { margin-bottom: 0; }
.supplier-counter {
  color: #657083;
  font-size: .9rem;
  white-space: nowrap;
}
.supplier-list {
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  background: #f8fafc;
}
.supplier-block {
  border-top: 1px solid #e2e5ea;
  padding-top: 1rem;
  margin-top: 1rem;
}
.supplier-block:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.supplier-title {
  font-size: 1.05rem;
  font-weight: 650;
}
.supplier-list-item {
  margin-top: 0;
  padding: .75rem;
  background: #fff;
}
.supplier-list-item:first-child {
  border-top: 0;
}
.supplier-list-item.is-selected {
  background: #f4f9ff;
}
.supplier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.supplier-row .supplier-title {
  min-width: 0;
}
.supplier-row .supplier-title span {
  overflow-wrap: anywhere;
}
.supplier-fields {
  display: none;
  padding: .25rem 0 .5rem;
}
.supplier-list-item.is-open .supplier-fields {
  display: flex;
}
.supplier-list-item.is-hidden {
  display: none;
}
.fuel-volume-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(150px, 1fr);
  gap: .5rem;
  align-items: center;
}
.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
.segmented-control label {
  cursor: pointer;
  display: block;
}
.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented-control span {
  align-items: center;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  background: #fff;
}
.segmented-control input:checked + span {
  border-color: #0d6efd;
  background: #eaf2ff;
  color: #0d6efd;
  font-weight: 650;
}
.fuel-volume-head {
  color: #657083;
  font-size: .85rem;
  font-weight: 650;
}
.pin { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.1rem; letter-spacing: .08em; }
.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.96)),
    #fff;
  box-shadow: 0 20px 44px rgba(37, 99, 235, .1);
}
.dashboard-head h1 {
  color: #0f172a;
  letter-spacing: 0;
}
.dashboard-filters .form-label {
  font-size: .85rem;
}
.dashboard-filters {
  border-color: rgba(148, 163, 184, .35);
  background: rgba(255,255,255,.92);
}
.dashboard-filter-actions-row {
  display: flex;
  gap: .65rem;
  justify-content: flex-start;
  padding-top: .25rem;
}
.dashboard-filter-actions-row .btn {
  flex: 0 0 auto;
}
.dashboard-clear-filters {
  min-width: 190px;
  padding-left: 1rem;
  padding-right: 1rem;
}
.chart-box {
  height: 410px;
  overflow: hidden;
  border-top: 4px solid #2563eb;
}
.chart-box-wide {
  height: 430px;
}
.chart-box:nth-child(2n) {
  border-top-color: #16a34a;
}
.chart-frame {
  position: relative;
  height: 270px;
  min-height: 270px;
  max-height: 270px;
}
.chart-empty {
  align-items: center;
  color: #64748b;
  display: flex;
  font-weight: 650;
  inset: 0;
  justify-content: center;
  position: absolute;
  text-align: center;
}
.chart-empty[hidden] {
  display: none;
}
.chart-note {
  color: #657083;
  font-size: .9rem;
  margin: .75rem 0 0;
}
.chart-frame canvas {
  display: block;
  width: 100%;
  height: 270px;
  max-height: 270px;
}
.dashboard-combo-block {
  border-top: 4px solid #2563eb;
}
.dashboard-combo-grid {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.1fr);
}
.dashboard-combo-grid .table-responsive {
  min-width: 0;
}
.dashboard-bars {
  display: grid;
  gap: .65rem;
}
.executive-section .surface h2 {
  margin-bottom: .35rem;
}
.executive-section > .surface:first-child {
  background:
    linear-gradient(135deg, rgba(239,246,255,.98), rgba(240,253,250,.98)),
    #fff;
}
.executive-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.fuel-volume-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.executive-metric {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  min-height: 112px;
  padding: .85rem;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  position: relative;
  overflow: hidden;
}
.executive-metric::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: .28rem;
  border-radius: 999px;
  margin-bottom: .65rem;
  background: #2563eb;
}
.executive-metric:nth-child(2)::before { background: #0891b2; }
.executive-metric:nth-child(3)::before { background: #16a34a; }
.executive-metric:nth-child(4)::before { background: #f59e0b; }
.fuel-volume-metrics .executive-metric:nth-child(1)::before { background: #2563eb; }
.fuel-volume-metrics .executive-metric:nth-child(2)::before { background: #f59e0b; }
.fuel-volume-metrics .executive-metric:nth-child(3)::before { background: #16a34a; }
.fuel-volume-surface {
  background:
    linear-gradient(135deg, rgba(255,251,235,.85), rgba(240,253,244,.85)),
    #fff;
}
.executive-metric div {
  color: #657083;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.executive-metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  margin-top: .45rem;
}
.executive-metric span {
  color: #657083;
  display: block;
  margin-top: .35rem;
}
.operator-list {
  display: grid;
  gap: .55rem;
}
.operator-bars {
  display: grid;
  gap: .75rem;
}
.operator-bar-row {
  display: grid;
  grid-template-columns: minmax(190px, .9fr) minmax(220px, 1.5fr);
  gap: 1rem;
  align-items: center;
}
.operator-bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
}
.operator-bar-label strong {
  overflow-wrap: anywhere;
}
.operator-bar-label span {
  color: #64748b;
  font-size: .9rem;
  white-space: nowrap;
}
.operator-bar-track {
  height: 1.1rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .24);
}
.operator-bar-track span {
  display: block;
  height: 100%;
  min-width: .35rem;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}
.operator-bars-flow .operator-bar-track span {
  background: linear-gradient(90deg, #16a34a, #f59e0b);
}
.operator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #edf0f4;
  padding: .45rem 0;
}
.operator-row:last-child {
  border-bottom: 0;
}
.operator-row span {
  color: #394150;
  white-space: nowrap;
}
.fuel-share {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.fuel-share div {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  padding: .9rem;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
}
.fuel-share strong,
.fuel-share span,
.fuel-share small {
  display: block;
}
.fuel-share span {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: .35rem 0;
}
.fuel-share small {
  color: #657083;
}
.dashboard-main .dashboard-head,
.dashboard-main .dashboard-filters,
.dashboard-main .surface,
.dashboard-main .metric {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
.dashboard-main .dashboard-head {
  align-items: center;
}
.dashboard-main .dashboard-head,
.dashboard-main .dashboard-filters,
.dashboard-main .surface {
  border-radius: 8px;
}
.dashboard-main .executive-section > .surface:first-child,
.dashboard-main .fuel-volume-surface {
  background: #fff;
}
.dashboard-main .surface h2,
.dashboard-main .chart-box h2 {
  color: #0f172a;
  font-weight: 750;
}
.dashboard-main .chart-box,
.dashboard-main .chart-box-wide {
  border-top: 0;
}
.dashboard-main .chart-box::before {
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  border-radius: 999px;
  content: "";
  display: block;
  height: .28rem;
  margin-bottom: .8rem;
  width: 3.5rem;
}
.dashboard-main .executive-metric,
.dashboard-main .fuel-share div {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.dashboard-main .executive-metric::before {
  background: #2563eb;
}
.dashboard-main .executive-metric:nth-child(2)::before,
.dashboard-main .executive-metric:nth-child(3)::before,
.dashboard-main .executive-metric:nth-child(4)::before,
.dashboard-main .fuel-volume-metrics .executive-metric:nth-child(1)::before,
.dashboard-main .fuel-volume-metrics .executive-metric:nth-child(2)::before,
.dashboard-main .fuel-volume-metrics .executive-metric:nth-child(3)::before {
  background: #2563eb;
}
.dashboard-main .operator-bar-track span,
.dashboard-main .operator-bars-flow .operator-bar-track span,
.dashboard-main .bar-track span {
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}
.dashboard-main .table {
  background: transparent;
}
.dashboard-main .table th {
  background: #f8fafc;
  color: #475569;
  font-size: .82rem;
  text-transform: uppercase;
}
.dashboard-main .fuel-subrow td {
  background: #f8fafc;
  color: #64748b;
  font-size: .86rem;
}
.dashboard-main .fuel-subrow td:first-child {
  padding-left: 1.5rem;
}
.dashboard-main .fuel-subrow td:first-child::before {
  color: #94a3b8;
  content: "↳ ";
}
.dashboard-main .supplier-fuel-subrow td:empty::before {
  color: #cbd5e1;
  content: "—";
}
.dashboard-main .dashboard-collapsible {
  padding: 0;
}
.dashboard-main .dashboard-collapsible > h2 {
  margin: 0;
}
.dashboard-main .dashboard-collapsible-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 750;
  justify-content: space-between;
  padding: 1rem;
  text-align: left;
  width: 100%;
}
.dashboard-main .dashboard-collapsible-toggle::after {
  color: #64748b;
  content: "Показать";
  font-size: .88rem;
  font-weight: 650;
  margin-left: 1rem;
}
.dashboard-main .dashboard-collapsible-toggle[aria-expanded="true"]::after {
  content: "Скрыть";
}
.dashboard-main .dashboard-collapsible-toggle:hover {
  background: #f8fafc;
}
.dashboard-main .dashboard-collapsible-content {
  border-top: 1px solid #e2e8f0;
  padding: 1rem;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 2fr) minmax(130px, auto);
  gap: .75rem;
  align-items: center;
}
.bar-track {
  height: .65rem;
  border-radius: 999px;
  background: #e9edf3;
  overflow: hidden;
}
.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}
.test-dashboard {
  --test-blue: #2563eb;
  --test-teal: #0f766e;
  --test-green: #16a34a;
  --test-amber: #d97706;
  --test-rose: #e11d48;
}
.test-dashboard-head {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(30, 64, 175, .9)),
    #0f172a;
  color: #fff;
}
.test-dashboard-head h1,
.test-dashboard-head .text-secondary {
  color: #fff;
}
.test-dashboard-head .text-secondary {
  opacity: .78;
}
.test-kicker {
  color: #60a5fa;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: .25rem;
  text-transform: uppercase;
}
.test-summary {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, minmax(130px, 1fr));
  gap: .75rem;
}
.test-hero-card,
.test-mini-card,
.test-panel {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
}
.test-hero-card {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .95), rgba(20, 184, 166, .9)),
    #2563eb;
  color: #fff;
  min-height: 150px;
  padding: 1rem;
}
.test-hero-card .test-kicker {
  color: rgba(255,255,255,.8);
}
.test-hero-card strong {
  display: block;
  font-size: 2.45rem;
  line-height: 1;
  margin: .45rem 0 .2rem;
}
.test-hero-card span,
.test-hero-sub {
  color: rgba(255,255,255,.82);
}
.test-hero-sub {
  margin-top: .7rem;
}
.test-mini-card {
  background: rgba(255,255,255,.94);
  min-height: 150px;
  padding: .9rem;
}
.test-mini-card span {
  color: #64748b;
  display: block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.test-mini-card strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1.05;
  margin-top: 1.65rem;
}
.test-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.test-panel-wide {
  grid-column: 1 / -1;
}
.test-panel-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.test-panel-head h2,
.test-panel h2 {
  margin-bottom: .25rem;
}
.test-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr);
  gap: 1rem;
  align-items: stretch;
}
.test-channel-grid {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.test-channel-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .75rem;
}
.test-channel-grid span {
  color: #64748b;
  display: block;
  font-size: .78rem;
  font-weight: 750;
}
.test-channel-grid strong {
  display: inline-block;
  font-size: 1.45rem;
  margin-top: .35rem;
}
.test-channel-grid small {
  color: #64748b;
  margin-left: .25rem;
}
.test-donut-layout {
  align-items: center;
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(180px, .78fr) minmax(220px, 1.15fr);
}
.test-donut-frame {
  height: 230px;
  min-height: 230px;
  position: relative;
}
.test-donut-frame canvas {
  display: block;
  height: 230px;
  max-height: 230px;
  width: 100%;
}
.test-bars {
  display: grid;
  gap: .7rem;
  margin-top: .9rem;
}
.test-bar-row,
.test-supplier-row,
.test-operator-row {
  align-items: center;
  display: grid;
  gap: .7rem;
}
.test-bar-row {
  grid-template-columns: minmax(150px, .9fr) minmax(160px, 1.4fr) minmax(70px, auto);
}
.test-bar-title {
  font-weight: 700;
  min-width: 0;
}
.test-bar-title span {
  color: #64748b;
  display: block;
  font-size: .82rem;
  font-weight: 500;
  margin-top: .08rem;
}
.test-bar-track {
  background: #e2e8f0;
  border-radius: 999px;
  height: .75rem;
  overflow: hidden;
}
.test-bar-track span,
.test-bar-track i {
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: .28rem;
}
.test-network-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
}
.test-network-metrics span {
  background: #eef6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: .86rem;
  font-weight: 750;
  padding: .35rem .6rem;
}
.test-operator-grid {
  display: grid;
  gap: .6rem;
}
.test-operator-row {
  color: inherit;
  grid-template-columns: minmax(160px, .9fr) minmax(105px, auto) minmax(180px, 1.4fr) minmax(100px, auto);
  padding: .35rem 0;
}
.test-operator-row:hover {
  text-decoration: none;
}
.test-operator-row span {
  font-weight: 750;
  overflow-wrap: anywhere;
}
.test-operator-row small,
.test-supplier-row span,
.test-supplier-row small {
  color: #64748b;
}
.test-supplier-list {
  display: grid;
  gap: .65rem;
}
.test-supplier-row {
  grid-template-columns: minmax(220px, .9fr) minmax(220px, 1.35fr) minmax(92px, auto) minmax(54px, auto);
  padding: .3rem 0;
}
.test-supplier-row div:first-child {
  min-width: 0;
}
.test-supplier-row a {
  font-weight: 750;
  overflow-wrap: anywhere;
}
.test-supplier-row span {
  display: block;
  font-size: .84rem;
  margin-top: .08rem;
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container-fluid { padding-left: .75rem; padding-right: .75rem; }
  main.container-fluid { padding-left: .65rem; padding-right: .65rem; }
  .py-4 { padding-top: .9rem; padding-bottom: .9rem; }
  .navbar { padding: .55rem 0; }
  .navbar .container-fluid {
    align-items: stretch;
    flex-direction: column;
    gap: .55rem;
  }
  .navbar-brand {
    font-size: 1rem;
    line-height: 1.2;
  }
  .navbar-collapse {
    align-items: stretch;
    flex-direction: column;
    gap: .65rem;
    width: 100%;
  }
  .navbar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
    width: 100%;
  }
  .nav-link {
    background: rgba(255,255,255,.08);
    display: flex;
    justify-content: center;
    min-height: 2.35rem;
    padding: .55rem .45rem;
    text-align: center;
    width: 100%;
  }
  .nav-identity {
    align-items: center;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    justify-content: space-between;
    padding: .45rem;
    width: 100%;
  }
  .nav-user-name {
    max-width: calc(100vw - 7.5rem);
  }
  .nav-identity .btn {
    flex: 0 0 auto;
  }
  .surface, .metric, .auth-panel, .mobile-panel, .history-item {
    border-radius: 8px;
    padding: .75rem;
  }
  .mobile-panel {
    border: 0;
    box-shadow: none;
    max-width: none;
    padding: .75rem;
  }
  .h3 { font-size: 1.38rem; }
  .h5 { font-size: 1.05rem; }
  .form-control, .form-select, .btn {
    font-size: 16px;
  }
  .table-responsive {
    margin-left: -.65rem;
    margin-right: -.65rem;
    padding-left: .65rem;
    padding-right: .65rem;
  }
  .table {
    font-size: .88rem;
    min-width: 760px;
  }
  .table-sm th, .table-sm td,
  .table th, .table td {
    padding: .42rem .5rem;
  }
  .table-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .table-actions .btn {
    width: 100%;
  }
  .supplier-panel-head { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .supplier-list { max-height: none; }
  .supplier-row { align-items: flex-start; flex-direction: column; }
  .supplier-row .btn { width: 100%; }
  .fuel-volume-grid { grid-template-columns: 1fr; align-items: stretch; }
  .fuel-volume-head { display: none; }
  .fuel-volume-grid .form-check { margin-top: .6rem; }
  .dashboard-head {
    flex-direction: column;
    padding: .85rem;
  }
  .dashboard-head .table-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .dashboard-head .table-actions .btn {
    width: 100%;
  }
  .dashboard-filters.row {
    margin-left: 0;
    margin-right: 0;
  }
  .dashboard-filters.row > * {
    padding-left: 0;
    padding-right: 0;
  }
  .dashboard-filter-actions-row {
    flex-direction: column;
  }
  .dashboard-filter-actions-row .btn {
    width: 100%;
  }
  .chart-box,
  .chart-box-wide {
    height: auto;
    min-height: 0;
  }
  .chart-frame,
  .chart-frame canvas {
    height: 230px;
    min-height: 230px;
    max-height: 230px;
  }
  .chart-note {
    font-size: .84rem;
  }
  .dashboard-combo-grid {
    grid-template-columns: 1fr;
  }
  .input-action-row { flex-direction: column; }
  .executive-metrics { grid-template-columns: 1fr; }
  .fuel-volume-metrics { grid-template-columns: 1fr; }
  .fuel-share { grid-template-columns: 1fr; }
  .executive-metric {
    min-height: 94px;
  }
  .executive-metric strong,
  .fuel-share span {
    font-size: 1.65rem;
  }
  .operator-row { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .operator-bar-row { grid-template-columns: 1fr; gap: .35rem; }
  .operator-bar-label { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .bar-row { grid-template-columns: 1fr; }
  .test-summary,
  .test-grid,
  .test-split,
  .test-channel-grid,
  .test-donut-layout,
  .test-bar-row,
  .test-operator-row,
  .test-supplier-row {
    grid-template-columns: 1fr;
  }
  .test-hero-card,
  .test-mini-card {
    min-height: 0;
  }
  .test-mini-card strong {
    margin-top: .65rem;
  }
  .test-panel-head {
    flex-direction: column;
  }
  .test-network-metrics {
    justify-content: flex-start;
  }
}
