:root {
  color-scheme: dark;
  --bg: #04070d;
  --panel: rgba(12, 17, 28, 0.76);
  --panel-strong: rgba(15, 22, 36, 0.94);
  --line: rgba(142, 158, 185, 0.18);
  --line-bright: rgba(143, 226, 255, 0.28);
  --text: #edf5ff;
  --muted: #8d9bb0;
  --blue: #55c8ff;
  --blue-soft: rgba(85, 200, 255, 0.14);
  --green: #4be2a7;
  --amber: #ffd166;
  --shadow: rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(85, 200, 255, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(75, 226, 167, 0.08), transparent 25%),
    linear-gradient(135deg, #03050a 0%, #070b14 48%, #04070d 100%);
  color: var(--text);
  font-family: "Poppins", "Inter", "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(8, 12, 21, 0.6);
  border: 1px solid rgba(145, 157, 180, 0.12);
  border-radius: 28px 0 0 28px;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.05),
    0 0 80px rgba(85, 200, 255, 0.08);
  content: "";
  height: min(72vh, 620px);
  pointer-events: none;
  position: fixed;
  right: -118px;
  top: 10px;
  width: 212px;
  z-index: -1;
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 70%);
  opacity: 0.26;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

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

.app {
  max-width: 1320px;
  margin-left: 248px;
  padding: 32px 28px;
}

.sidebar {
  background: rgba(6, 10, 18, 0.88);
  border-right: 1px solid var(--line);
  bottom: 0;
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.26);
  left: 0;
  padding: 24px 18px;
  position: fixed;
  top: 0;
  width: 220px;
  z-index: 5;
}

.brandBlock {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

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

.brandBlock strong {
  color: var(--text);
  font-size: 20px;
}

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

.navButton {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--muted);
  justify-content: flex-start;
  width: 100%;
}

.navButton.active {
  background: var(--blue-soft);
  border-color: var(--line-bright);
  color: var(--text);
}

.viewSection {
  display: none;
}

.viewSection.active {
  display: block;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.whatsappHealth {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid #7f8b9d;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 12px 16px;
}

.whatsappHealth span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.whatsappHealth.isOpen { border-left-color: #4be2a7; }
.whatsappHealth.isClosed { border-left-color: #ff6f7d; }

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

.sectionHeading h2 { margin: 0; }
.sectionHeading .eyebrow { margin-bottom: 4px; }
.sectionActions { display: flex; gap: 10px; }

.operationsMetrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.operationsMetrics article,
.workPanel,
.targetCard,
.incidentCard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 50px var(--shadow);
}

.operationsMetrics article { padding: 18px; }
.operationsMetrics span { display: block; font-size: 30px; font-weight: 700; }
.operationsMetrics p { color: var(--muted); margin: 4px 0 0; }

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

.workPanel { min-width: 0; padding: 18px; }
.attentionQueue,
.compactList,
.performanceList { display: grid; gap: 9px; margin-top: 14px; }

.attentionItem,
.compactItem,
.performanceRow,
.dailyChecklist div {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 12px;
}

.attentionItem div,
.compactItem div,
.performanceRow div { display: grid; gap: 2px; min-width: 0; }
.attentionItem span,
.compactItem span,
.performanceRow span { color: var(--muted); font-size: 12px; }
.attentionItem a,
.compactItem a,
.incidentActions a { color: var(--blue); text-decoration: none; }

.dailyChecklist { display: grid; gap: 10px; margin-top: 14px; }
.dailyChecklist span { color: var(--muted); }
.dailyChecklist strong { font-size: 22px; }
.emptyState { color: var(--muted); margin: 20px 0; text-align: center; }

.incidentBoard {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.incidentCard { border-left: 5px solid #7f8b9d; padding: 16px; }
.incidentCard.priority-critical { border-left-color: #ff6070; }
.incidentCard.priority-high { border-left-color: #ffb44b; }
.incidentCard.priority-normal { border-left-color: #55c8ff; }
.incidentCardHead { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.incidentCardHead > div { display: grid; gap: 6px; }
.incidentCardHead > span,
.incidentCard > p { color: var(--muted); font-size: 12px; }
.priorityBadge { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.incidentMeta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.incidentMeta span { background: rgba(255,255,255,.06); border-radius: 999px; color: #cbd7e7; font-size: 11px; padding: 5px 8px; }
.incidentNotes { background: rgba(0,0,0,.14); border-radius: 7px; color: #d9e3ef !important; padding: 9px; }
.incidentActions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.incidentDialog { max-width: 760px; width: min(760px, calc(100% - 30px)); }
.incidentFormGrid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.incidentFormGrid .field { margin: 0; }

.targetCard { margin-bottom: 18px; padding: 22px; }
.targetCard > div:first-child { display: grid; gap: 4px; }
.targetCard strong { font-size: 44px; }
.targetCard small,
.targetCard p { color: var(--muted); }
.targetProgress { background: rgba(255,255,255,.08); border-radius: 999px; height: 12px; margin: 18px 0 10px; overflow: hidden; }
.targetProgress div { background: linear-gradient(90deg, #55c8ff, #4be2a7); border-radius: inherit; height: 100%; transition: width .3s ease; }
.performanceRow b { color: #4be2a7; }
.recoveryOpportunity { align-items: center; display: grid; min-height: 220px; place-content: center; text-align: center; }
.recoveryOpportunity strong { color: #ffb44b; font-size: 64px; }
.recoveryOpportunity p { font-size: 18px; margin: 0; }
.recoveryOpportunity span { color: var(--muted); margin-top: 10px; max-width: 360px; }

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.12;
}

.actions,
.dialogActions {
  display: flex;
  gap: 10px;
}

button,
.fileButton {
  align-items: center;
  background: linear-gradient(135deg, rgba(85, 200, 255, 0.95), rgba(75, 226, 167, 0.84));
  border: 1px solid rgba(158, 234, 255, 0.48);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(85, 200, 255, 0.12);
  color: #031018;
  cursor: pointer;
  display: inline-flex;
  font-weight: 650;
  min-height: 40px;
  padding: 0 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

button:hover,
.fileButton:hover {
  border-color: rgba(210, 246, 255, 0.78);
  box-shadow: 0 16px 34px rgba(85, 200, 255, 0.2);
  transform: translateY(-1px);
}

button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--blue);
}

.fileButton input {
  display: none;
}

.summary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.dashboardHeader {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.dashboardHeader h2 {
  font-size: 24px;
  font-weight: 650;
}

.dashboardControls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.accountFilter {
  display: block;
  min-width: 230px;
  position: relative;
}

.accountFilter select {
  appearance: none;
  background: rgba(5, 9, 16, 0.72);
  border-color: var(--line);
  color: var(--text);
  font-weight: 650;
  min-height: 40px;
  padding-right: 38px;
}

.accountFilter::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  color: var(--text);
  content: "";
  pointer-events: none;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-35%);
}

.datePicker {
  position: relative;
}

.dateRangeToggle {
  background: rgba(5, 9, 16, 0.72);
  border-color: var(--line);
  color: var(--text);
  justify-content: flex-start;
  min-width: 230px;
  padding-right: 38px;
  position: relative;
}

.dateRangeToggle::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-35%);
}

.dateRangePanel {
  background: rgba(8, 13, 22, 0.98);
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
  display: none;
  grid-template-columns: 150px minmax(360px, 1fr);
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(670px, calc(100vw - 32px));
  z-index: 20;
}

.dateRangePanel.open {
  display: grid;
}

.datePresets {
  background: rgba(255, 255, 255, 0.035);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding: 8px;
}

.datePresets .rangeButton {
  border-radius: 6px;
  color: #c7d3e3;
  justify-content: flex-start;
  min-height: 32px;
  padding: 0 10px;
  width: 100%;
}

.datePresets .rangeButton.active {
  background: rgba(85, 104, 215, 0.84);
  border-color: rgba(157, 172, 255, 0.5);
  color: #fff;
}

.calendarArea {
  padding: 12px 14px 16px;
  position: relative;
}

.calendarNav {
  display: flex;
  inset: 14px 14px auto;
  justify-content: space-between;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.calendarNav button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #b9c7d9;
  font-size: 28px;
  justify-content: center;
  min-height: 28px;
  min-width: 30px;
  padding: 0;
  pointer-events: auto;
}

.calendarMonths {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendarMonth h3 {
  color: #c7bfc3;
  font-size: 14px;
  font-weight: 650;
  margin: 2px 0 10px;
  text-align: center;
  text-transform: capitalize;
}

.calendarGrid {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(7, 1fr);
}

.weekDay {
  color: #a99fa6;
  font-size: 12px;
  font-weight: 700;
  height: 24px;
  text-align: center;
}

.calendarDay {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: #d2dbe8;
  font-size: 13px;
  font-weight: 500;
  justify-content: center;
  min-height: 28px;
  min-width: 0;
  padding: 0;
}

.calendarDay:hover {
  background: rgba(85, 200, 255, 0.12);
  border-color: rgba(85, 200, 255, 0.28);
  transform: none;
}

.calendarDay.mutedDay {
  color: #697586;
  opacity: 0.72;
}

.calendarDay.inRange {
  background: rgba(150, 162, 176, 0.24);
  border-radius: 3px;
}

.calendarDay.selectedDay {
  background: rgba(85, 104, 215, 0.96);
  border-color: rgba(198, 207, 255, 0.55);
  border-radius: 4px;
  color: #fff;
  font-weight: 750;
}

.rangeControls {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
}

.rangeButton {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--muted);
  min-height: 34px;
  padding: 0 11px;
}

.rangeButton.active {
  background: rgba(85, 200, 255, 0.14);
  border-color: var(--line-bright);
  color: var(--text);
}

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

.billingOverview {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  margin-bottom: 14px;
}

.billingCard {
  background:
    linear-gradient(135deg, rgba(85, 200, 255, 0.14), rgba(75, 226, 167, 0.08)),
    var(--panel);
  border: 1px solid rgba(85, 200, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 22px 70px var(--shadow);
  overflow: hidden;
  padding: 14px 20px;
  position: relative;
}

.billingCard::before {
  background: linear-gradient(90deg, rgba(75, 226, 167, 0.95), rgba(85, 200, 255, 0.78), transparent);
  content: "";
  height: 1px;
  inset: 0 0 auto;
  position: absolute;
}

.billingCard span {
  display: block;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.08;
}

.billingCard small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.todayDeliveryCard {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(75, 226, 167, 0.13), rgba(85, 200, 255, 0.06)),
    var(--panel);
  border: 1px solid rgba(75, 226, 167, 0.25);
  border-radius: 8px;
  box-shadow: 0 22px 70px var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: 46px minmax(0, 1fr);
  overflow: hidden;
  padding: 14px 18px;
  position: relative;
}

.todayDeliveryCard::before {
  background: linear-gradient(90deg, var(--green), var(--blue), transparent);
  content: "";
  height: 1px;
  inset: 0 0 auto;
  position: absolute;
}

.todayDeliveryIcon {
  align-items: center;
  background: rgba(75, 226, 167, 0.12);
  border: 1px solid rgba(75, 226, 167, 0.24);
  border-radius: 8px;
  color: var(--green);
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.todayDeliveryIcon svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 24px;
}

.todayDeliveryContent .eyebrow {
  margin-bottom: 2px;
}

.todayDeliveryValue {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.todayDeliveryValue span {
  font-size: 30px;
  font-weight: 750;
  line-height: 1.08;
}

.todayDeliveryValue small,
.todayDeliveryContent > p:last-child {
  color: var(--muted);
  font-size: 12px;
}

.todayDeliveryContent > p:last-child {
  margin: 3px 0 0;
}

.dashboardGrid.executiveGrid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboardGrid article,
.statusPanel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
  padding: 20px;
}

.metricCard {
  min-height: 120px;
  overflow: hidden;
  position: relative;
}

.metricCard::before {
  background: linear-gradient(90deg, rgba(85, 200, 255, 0.9), transparent);
  content: "";
  height: 1px;
  inset: 0 0 auto;
  position: absolute;
}

.metricCard.featured::before {
  background: linear-gradient(90deg, rgba(75, 226, 167, 0.94), transparent);
}

.metricCard.warning::before {
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.9), transparent);
}

.dashboardGrid span {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.metricCard.money span {
  font-size: 26px;
}

.dashboardGrid p {
  color: var(--muted);
  margin-top: 4px;
}

.dashboardPanels {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  margin-bottom: 16px;
}

.statusPanel {
  min-height: 360px;
}

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

.panelHead h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 0;
}

.panelHead span {
  color: var(--muted);
  font-size: 13px;
}

.statusOverview {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 300px) minmax(240px, 1fr);
  margin-bottom: 20px;
}

.statusDonut {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  display: grid;
  justify-items: center;
  min-width: 220px;
  position: relative;
}

.statusDonut::after {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  inset: 46px;
  position: absolute;
}

.statusDonut strong,
.statusDonut small {
  position: relative;
  z-index: 1;
}

.statusDonut strong {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
}

.statusDonut small {
  color: var(--muted);
  font-size: 13px;
  margin-top: -42px;
}

.statusLegend {
  display: grid;
  gap: 9px;
}

.legendItem {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 10px 12px;
}

.legendItem span {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 13px;
  font-weight: 650;
  gap: 8px;
  min-width: 0;
}

.legendItem i {
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.legendItem strong {
  font-size: 14px;
}

.legendItem em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.periodReadout,
.priorityStrip {
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  padding: 12px 14px;
}

.periodReadout {
  background: rgba(85, 200, 255, 0.07);
  border: 1px solid rgba(85, 200, 255, 0.18);
  color: #cceeff;
  margin-bottom: 10px;
}

.priorityStrip {
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.2);
  color: #ffe5a6;
  font-weight: 650;
}

.deliveryGauge {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  display: grid;
  justify-items: center;
  margin: 8px auto 14px;
  max-width: 240px;
  position: relative;
  width: 86%;
}

.deliveryGauge::after {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  inset: 42px;
  position: absolute;
}

.deliveryGauge strong,
.deliveryGauge span {
  position: relative;
  z-index: 1;
}

.deliveryGauge strong {
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1;
}

.deliveryGauge span {
  color: var(--muted);
  font-size: 12px;
  margin-top: -38px;
}

.deliveryGaugeDetail {
  color: var(--muted);
  font-size: 13px;
  margin: -2px 0 14px;
  text-align: center;
}

.deliveryGaugeSubgrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.deliveryGaugeSubgrid span {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 12px;
  text-align: center;
}

.insightList {
  display: grid;
  gap: 10px;
}

.insightList div {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}

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

.insightList span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.summary article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.summary article::before {
  background: linear-gradient(90deg, var(--blue), transparent);
  content: "";
  height: 1px;
  inset: 0 0 auto;
  opacity: 0.72;
  position: absolute;
}

.summary span {
  display: block;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}

.summary p,
.muted {
  color: var(--muted);
}

.toolbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(190px, 240px) 1fr 220px;
  margin-bottom: 16px;
  padding: 14px;
}

.ordersAccountSelect {
  background: linear-gradient(135deg, rgba(85, 200, 255, 0.11), rgba(75, 226, 167, 0.07));
  border: 1px solid rgba(85, 200, 255, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 10px;
  position: relative;
}

.ordersAccountSelect span {
  color: #9ed7ed;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ordersAccountSelect select {
  appearance: none;
  background: rgba(5, 9, 16, 0.82);
  border-color: rgba(85, 200, 255, 0.28);
  color: #e8f8ff;
  font-weight: 650;
  min-height: 38px;
  padding-right: 36px;
}

.ordersAccountSelect::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #8adff5;
  bottom: 25px;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 24px;
}

input,
select,
textarea {
  background: rgba(5, 9, 16, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--line-bright);
  box-shadow: 0 0 0 3px rgba(85, 200, 255, 0.08);
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: #637287;
}

.tableWrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 70px var(--shadow);
  overflow: auto;
}

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

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

th {
  background: rgba(255, 255, 255, 0.035);
  color: #b4c3d6;
  font-size: 13px;
  font-weight: 650;
}

td {
  font-size: 14px;
}

.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.badge.guide {
  background: rgba(255, 209, 102, 0.14);
  color: var(--amber);
}

.badge.delivery {
  background: rgba(75, 226, 167, 0.13);
  color: var(--green);
}

.badge.pending {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.badge.canceled {
  background: rgba(255, 122, 122, 0.13);
  color: #ffabab;
}

.badge.issue {
  background: rgba(255, 209, 102, 0.16);
  color: var(--amber);
}

.miniActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.miniActions button,
.miniActions a {
  border-radius: 8px;
  font-size: 13px;
  min-height: 34px;
  padding: 0 10px;
  text-decoration: none;
}

.miniActions a {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
  display: inline-flex;
}

.miniActions .whatsappIcon {
  background: #16a765;
  border-color: #16a765;
  color: #fff;
  justify-content: center;
  min-width: 36px;
  padding: 0;
  width: 36px;
}

.whatsappIcon svg {
  fill: currentColor;
  height: 19px;
  width: 19px;
}

.sentCheck {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #6f7d91;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.sentCheck.sent {
  background: rgba(75, 226, 167, 0.13);
  border-color: rgba(75, 226, 167, 0.34);
  color: var(--green);
}

dialog {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.54);
  max-width: 720px;
  padding: 0;
  width: calc(100% - 28px);
}

dialog::backdrop {
  background: rgba(2, 5, 10, 0.68);
  backdrop-filter: blur(7px);
}

dialog form {
  padding: 18px;
}

.dialogHead {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dialogHead button {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
  font-size: 24px;
  justify-content: center;
  min-width: 40px;
  padding: 0;
}

textarea {
  min-height: 260px;
  resize: vertical;
  white-space: pre-wrap;
}

#dropiToken {
  min-height: 110px;
}

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

.templateGrid .field:last-child {
  grid-column: 1 / -1;
}

.templateGrid textarea {
  min-height: 160px;
}

.dialogActions {
  justify-content: flex-end;
  margin-top: 12px;
}

.field {
  color: #b9c7d9;
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.field input {
  margin-top: 6px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

@media (prefers-reduced-motion: reduce) {
  button,
  .fileButton {
    transition: none;
  }

  button:hover,
  .fileButton:hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  .app {
    margin-left: 0;
    padding: 18px;
  }

  .sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    position: static;
    width: auto;
  }

  .brandBlock {
    margin-bottom: 12px;
  }

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

  body::before {
    right: -154px;
    top: 8px;
  }

  .topbar,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sectionHeading,
  .sectionActions,
  .whatsappHealth { align-items: stretch; flex-direction: column; }
  .whatsappHealth span { text-align: left; }

  .summary,
  .operationsMetrics,
  .operationsGrid,
  .incidentBoard,
  .incidentFormGrid,
  .dashboardGrid,
  .dashboardHeader,
  .dashboardPanels,
  .billingOverview,
  .billingCard,
  .toolbar,
  .templateGrid {
    grid-template-columns: 1fr;
  }

  .billingCard {
    padding: 16px;
  }

  .billingCard span {
    font-size: 28px;
  }

  .dashboardHeader {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboardControls {
    align-items: stretch;
    flex-direction: column;
  }

  .rangeControls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statusOverview {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .statusDonut {
    max-width: 260px;
    min-width: 0;
    width: 100%;
  }

  .statusLegend {
    width: 100%;
  }

  .deliveryGauge {
    max-width: 230px;
  }

  .accountFilter,
  .dateRangeToggle {
    width: 100%;
  }

  .dateRangePanel {
    grid-template-columns: 1fr;
    left: 18px;
    max-height: calc(100vh - 112px);
    overflow: auto;
    position: fixed;
    right: 18px;
    top: 86px;
    width: auto;
  }

  .datePresets {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendarMonths {
    grid-template-columns: 1fr;
  }

}
