:root {
  --bg: #070b14;
  --panel: #0f172a;
  --panel-2: #111827;
  --text: #e5edf8;
  --muted: #8ea0b8;
  --line: rgba(148, 163, 184, .18);
  --brand: #f47b20;
  --brand-2: #ff9f3d;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --blue: #2f80ed;
  --green: #1f9d67;
  --amber: #e6a100;
  --red: #d94841;
  --dark: #020617;
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 123, 32, .16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(34, 211, 238, .10), transparent 30%),
    linear-gradient(180deg, #050607 0%, #090b10 48%, #0c1018 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.file-label,
.nav-button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 12px 16px;
  text-decoration: none;
}

button:hover,
.file-label:hover,
.nav-button:hover {
  filter: brightness(0.96);
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(.75);
  opacity: .45;
}

.secondary {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(244, 123, 32, .35);
  color: #ffd0ad;
}

.ghost {
  background: transparent;
  color: #ffb071;
  border: 1px solid rgba(244, 123, 32, .55);
}

.danger {
  background: #fee2e2;
  color: #991b1b;
}

.icon-button {
  background: #111827;
  border-radius: 50%;
  height: 36px;
  padding: 0;
  width: 36px;
}

.topbar {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .94)),
    radial-gradient(circle at 20% 20%, rgba(244, 123, 32, .18), transparent 30%);
  border-bottom: 1px solid rgba(244, 123, 32, .25);
  color: var(--text);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 24px 32px;
  position: relative;
  overflow: hidden;
}

.topbar::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  opacity: .25;
  pointer-events: none;
  position: absolute;
}

.login-screen {
  align-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(244, 123, 32, .38), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(33, 212, 253, .22), transparent 30%),
    linear-gradient(135deg, #0f172a, #111827);
  display: grid;
  inset: 0;
  min-height: 100vh;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.login-card {
  background: rgba(15, 23, 42, .94);
  border: 1px solid rgba(244, 123, 32, .18);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  margin: auto;
  max-width: 440px;
  padding: 30px;
  width: 100%;
}

.login-card h1 {
  margin: 0 0 8px;
}

.login-card p {
  color: var(--muted);
}

.login-card form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.login-error {
  color: #b91c1c;
  font-weight: 700;
  min-height: 20px;
}

.demo-users {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 12px;
}

.role-badge {
  align-items: center;
  background: rgba(244, 123, 32, .1);
  border: 1px solid rgba(244, 123, 32, .35);
  border-radius: 999px;
  color: #ffd0ad;
  display: inline-flex;
  font-weight: 800;
  padding: 10px 12px;
}

.topbar h1,
.section-heading h2,
.dialog-header h2 {
  margin: 0;
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.file-label input {
  display: none;
}

main {
  margin: 0 auto;
  max-width: 1360px;
  padding: 24px 32px 48px;
}

.summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.summary-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .028)) !important;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 16px;
  color: #fff;
  min-height: 112px;
  padding: 16px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
  position: relative;
  overflow: hidden;
}

.summary-card::after {
  background: linear-gradient(135deg, rgba(244, 123, 32, .30), rgba(34, 211, 238, .10));
  border-radius: 999px;
  content: "";
  height: 90px;
  position: absolute;
  right: -24px;
  top: -28px;
  width: 90px;
}

.summary-card span,
.summary-card small {
  display: block;
  opacity: .9;
}

.summary-card strong {
  display: block;
  font-size: 32px;
  margin: 10px 0 5px;
}

.operations-dashboard {
  border-color: rgba(244, 123, 32, .28);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .26);
}

.ops-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 14px;
}

.ops-grid article {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
    radial-gradient(circle at 88% 10%, rgba(244, 123, 32, .16), transparent 28%);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.ops-grid article.accent {
  border-color: rgba(244, 123, 32, .38);
}

.ops-grid article.quiet {
  background:
    linear-gradient(145deg, rgba(148, 163, 184, .08), rgba(148, 163, 184, .025)),
    radial-gradient(circle at 88% 10%, rgba(34, 211, 238, .12), transparent 28%);
}

.ops-grid article::after {
  background: rgba(244, 123, 32, .16);
  border-radius: 999px;
  content: "";
  height: 64px;
  position: absolute;
  right: -18px;
  top: -18px;
  width: 64px;
}

.ops-grid span {
  color: #ffd0ad;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ops-grid strong {
  color: var(--text);
  display: block;
  font-size: 34px;
  margin: 10px 0 4px;
}

.ops-grid small {
  color: var(--muted);
}

.metric-icon {
  align-items: center;
  background: rgba(244, 123, 32, .16);
  border: 1px solid rgba(244, 123, 32, .34);
  border-radius: 12px;
  color: #ffd0ad !important;
  display: inline-flex !important;
  font-size: 11px !important;
  height: 34px;
  justify-content: center;
  letter-spacing: 0 !important;
  margin-bottom: 12px;
  width: 46px;
}

.ops-chart {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 0;
}

.dashboard-panels {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  margin-top: 14px;
}

.visual-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    radial-gradient(circle at 95% 5%, rgba(34, 211, 238, .13), transparent 32%);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: 18px;
}

.panel-title-row {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.panel-title-row > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.panel-title-row h3 {
  font-size: 17px;
  margin: 0;
}

.panel-title-row small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.product-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.product-card {
  background:
    linear-gradient(145deg, rgba(2, 6, 23, .58), rgba(15, 23, 42, .38));
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 18px;
  padding: 15px;
}

.product-card.needs-work {
  border-color: rgba(245, 158, 11, .38);
  box-shadow: inset 0 1px 0 rgba(245, 158, 11, .12);
}

.product-card.ok {
  border-color: rgba(34, 197, 94, .22);
}

.product-card.quiet {
  opacity: .82;
}

.product-card-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.product-card h4 {
  color: var(--text);
  font-size: 15px;
  margin: 0;
}

.product-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 5px 0 0;
}

.product-main-number {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.product-main-number strong {
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.product-main-number span {
  color: var(--muted);
  font-size: 12px;
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.product-chips span {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 999px;
  color: #d7e3f2;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px;
}

.audit-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 14px;
}

.audit-strip article {
  align-items: flex-start;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .78), rgba(2, 6, 23, .58)),
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, .12), transparent 30%);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.audit-strip strong {
  color: var(--text);
  display: block;
  font-size: 26px;
  line-height: 1;
}

.audit-strip small {
  color: #ffd0ad;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  margin-top: 5px;
  text-transform: uppercase;
}

.audit-strip p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0 0;
}

.ops-bar-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 150px 1fr 62px;
}

.ops-bar-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ops-bar-row strong {
  font-size: 14px;
  text-align: right;
}

.ops-bar-track {
  background: rgba(148, 163, 184, .11);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.ops-bar-track i {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 18px rgba(244, 123, 32, .32);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.ops-bar-row.cyan .ops-bar-track i { background: linear-gradient(90deg, #0891b2, var(--cyan)); }
.ops-bar-row.green .ops-bar-track i { background: linear-gradient(90deg, #047857, #34d399); }
.ops-bar-row.violet .ops-bar-track i { background: linear-gradient(90deg, #6d28d9, #a78bfa); }
.ops-bar-row.muted .ops-bar-track i { background: linear-gradient(90deg, #475569, #94a3b8); }

.provider-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.provider-card {
  background: rgba(2, 6, 23, .36);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 15px;
  padding: 12px;
}

.provider-card > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.provider-card span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.provider-card strong {
  color: #fff;
  font-size: 24px;
}

.provider-card small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 6px;
}

.provider-meter {
  background: rgba(148, 163, 184, .12);
  border-radius: 999px;
  height: 8px;
  margin-top: 9px;
  overflow: hidden;
}

.provider-meter i {
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.provider-card.claro .provider-meter i { background: linear-gradient(90deg, #ef4444, #f97316); }
.provider-card.moabit .provider-meter i { background: linear-gradient(90deg, #22c55e, #a3e635); }
.provider-card.truphone .provider-meter i { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.provider-card.futu-connection .provider-meter i { background: linear-gradient(90deg, #06b6d4, #f59e0b); }

.wireless-board {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 12px;
}

.wireless-board article {
  background: rgba(2, 6, 23, .42);
  border: 1px solid rgba(148, 163, 184, .14);
  border-left: 3px solid rgba(148, 163, 184, .42);
  border-radius: 14px;
  padding: 13px;
}

.wireless-board article.ok { border-left-color: #22c55e; }
.wireless-board article.warning { border-left-color: #f59e0b; }
.wireless-board article.danger { border-left-color: #ef4444; }

.wireless-board strong {
  display: block;
  font-size: 24px;
}

.wireless-board span {
  color: #ffd0ad;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-top: 4px;
  text-transform: uppercase;
}

.wireless-board p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0 0;
}

.module-tabs {
  background: rgba(15, 23, 42, .82);
  border: 1px solid rgba(244, 123, 32, .24);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(244, 123, 32, .08);
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.tab-button {
  background: rgba(255, 255, 255, .04);
  border: 1px solid transparent;
  color: #d6e2f0;
  white-space: nowrap;
}

.tab-button.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 18px rgba(244, 123, 32, .24);
}

.tab-panel[hidden] {
  display: none;
}

.blue { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.green { background: linear-gradient(135deg, #059669, #34d399); }
.amber { background: linear-gradient(135deg, #d97706, #fbbf24); }
.red { background: linear-gradient(135deg, #dc2626, #fb7185); }
.dark { background: linear-gradient(135deg, #111827, #334155); }
.violet { background: linear-gradient(135deg, #6d28d9, #a78bfa); }

.panel {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .78), rgba(2, 6, 23, .56));
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  margin-top: 20px;
  padding: 18px;
}

.monthly-panel {
  border-color: rgba(244, 123, 32, .32);
  box-shadow: 0 18px 40px rgba(244, 123, 32, .11);
}

.intake-panel {
  border-color: rgba(33, 212, 253, .32);
  box-shadow: 0 18px 40px rgba(33, 212, 253, .09);
}

.request-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 0;
}

.request-stats article {
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.request-stats span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.request-stats strong {
  display: block;
  font-size: 26px;
  margin-top: 6px;
}

.checkbox-line {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.checkbox-line input {
  min-height: auto;
  width: auto;
}

.public-form-page {
  min-height: 100vh;
}

.public-form-wrap {
  max-width: 1100px;
}

.public-form-card {
  background: rgba(15, 23, 42, .94);
  border: 1px solid rgba(244, 123, 32, .22);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, .16);
  padding: 28px;
}

.public-form-card h1 {
  margin: 0 0 8px;
}

.public-form-card > p {
  color: var(--muted);
  margin-bottom: 22px;
}

.public-form-card form {
  display: grid;
  gap: 16px;
}

.compact-heading {
  align-items: end;
  margin-bottom: 12px;
}

.compact-heading h2 {
  font-size: 20px;
}

.compact-heading p {
  color: var(--muted);
  margin: 4px 0 0;
}

.vehicle-request-section {
  background: rgba(244, 123, 32, .08);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.vehicle-cards {
  display: grid;
  gap: 12px;
}

.vehicle-card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(244, 123, 32, .22);
  border-radius: 16px;
  padding: 14px;
}

.vehicle-card-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.vehicle-card-header strong {
  color: var(--text);
}

.vehicle-list {
  display: grid;
  gap: 4px;
}

.vehicle-list span {
  display: block;
}

.success-message {
  color: #047857;
  font-weight: 800;
  min-height: 22px;
}

.monthly-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0;
}

.monthly-grid article {
  background: linear-gradient(135deg, rgba(244, 123, 32, .12), rgba(34, 211, 238, .07));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.monthly-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.monthly-grid strong {
  display: block;
  font-size: 26px;
  margin-top: 6px;
}

.controls {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr repeat(3, 1fr);
}

label {
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  background: rgba(2, 6, 23, .46);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input.locked-field,
select.locked-field,
textarea.locked-field,
input:disabled,
select:disabled,
textarea:disabled {
  background: rgba(148, 163, 184, .10);
  border-color: rgba(148, 163, 184, .20);
  color: #94a3b8;
  cursor: not-allowed;
}

textarea {
  resize: vertical;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
  margin: 6px 0 0;
}

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

.inventory-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
  margin: 14px 0;
}

.inventory-stats article {
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.inventory-stats span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-stats strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.mini-dashboard {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin: 12px 0 18px;
}

.mini-dashboard > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  padding: 14px;
}

.mini-dashboard h3 {
  margin: 0 0 10px;
}

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

.breakdown-row {
  align-items: center;
  background: rgba(244, 123, 32, .08);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
}

.inventory-controls {
  box-shadow: none;
  margin: 0 0 12px;
  padding: 0;
}

.table-wrap {
  overflow: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: linear-gradient(135deg, rgba(244, 123, 32, .95), rgba(255, 159, 61, .9));
  color: #fff;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  font-size: 14px;
  background: rgba(15, 23, 42, .44);
}

.muted {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.pill.active { background: #dcfce7; color: #166534; }
.pill.due { background: #fef3c7; color: #92400e; }
.pill.expired { background: #fee2e2; color: #991b1b; }
.pill.inactive { background: #e5e7eb; color: #374151; }
.pill.paid { background: #e0f2fe; color: #075985; }
.pill.pending { background: rgba(244, 123, 32, .14); color: #ffd0ad; }

.inline-select {
  background: rgba(2, 6, 23, .58);
  border-color: rgba(244, 123, 32, .35);
  border-radius: 999px;
  color: #ffd0ad;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 7px 10px;
}

.action-link {
  align-items: center;
  background: #064e3b;
  border-radius: 10px;
  color: #d1fae5;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.pagination {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 14px;
}

.pagination-actions {
  display: flex;
  gap: 8px;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button {
  padding: 8px 10px;
}

.row-actions .ghost {
  background: rgba(244, 123, 32, .08);
}

.module-search {
  background: rgba(2, 6, 23, .38);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 10px 0 14px;
  padding: 12px;
}

.client-controls {
  border-color: rgba(244, 123, 32, .28);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
}

.empty-state {
  color: var(--muted);
  display: none;
  padding: 18px 4px 4px;
  text-align: center;
}

dialog {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .35);
  max-width: 940px;
  width: calc(100% - 40px);
}

dialog::backdrop {
  background: rgba(15, 23, 42, .45);
}

.dialog-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.dialog-actions {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto auto;
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .summary-grid,
  .ops-grid,
  .controls,
  .form-grid,
  .inventory-stats,
  .monthly-grid,
  .request-stats,
  .mini-dashboard,
  .dashboard-panels,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  main {
    padding: 16px;
  }

  .summary-grid,
  .ops-grid,
  .controls,
  .form-grid,
  .inventory-stats,
  .monthly-grid,
  .request-stats,
  .mini-dashboard,
  .dashboard-panels,
  .product-grid,
  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .ops-bar-row {
    grid-template-columns: 1fr;
  }

  .ops-bar-row strong {
    text-align: left;
  }
}
