﻿:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: #151515;
  --panel-strong: #191919;
  --panel-soft: #101010;
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(236, 46, 132, 0.42);
  --text: #f4f4f5;
  --muted: #9b9b9f;
  --blue: #2d8cff;
  --blue-soft: rgba(45, 140, 255, 0.12);
  --pink: #ec2e84;
  --pink-soft: rgba(236, 46, 132, 0.14);
  --green: #9be84a;
  --amber: #f5b84b;
  --red: #ff5d76;
  --shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 36%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

body:not(.isUnlocked) {
  overflow: hidden;
}

body:not(.isUnlocked) .sidebar,
body:not(.isUnlocked) .app {
  filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.pinLock {
  align-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(236, 46, 132, 0.16), transparent 34%),
    rgba(8, 8, 8, 0.98);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1000;
}

.pinLock[hidden] {
  display: none;
}

.pinCard {
  background: #151515;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  display: grid;
  gap: 12px;
  max-width: 360px;
  padding: 28px;
  width: min(360px, 100%);
}

.pinCard h2 {
  font-size: 28px;
  margin: 0;
}

.pinCard span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.pinCard input {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.35em;
  min-height: 52px;
  text-align: center;
}

.pinCard small {
  color: var(--red);
  min-height: 18px;
}

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

.app {
  margin-left: 248px;
  max-width: none;
  padding: 24px 34px 34px;
}

.sidebar {
  background: #0b0b0c;
  border-right: 1px solid var(--line);
  bottom: 0;
  box-shadow: none;
  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;
  font-weight: 800;
}

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

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

.navButton.active {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: inset 3px 0 0 var(--pink);
  color: var(--text);
}

.navBadge {
  background: var(--red);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
  min-width: 18px;
  padding: 3px 6px;
  text-align: center;
}

.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: 4px solid #777;
  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: var(--green); }
.whatsappHealth.isClosed { border-left-color: var(--red); }
.whatsappHealth.isWarning {
  border-left-color: var(--amber);
}

.whatsappHealth.isWarning strong {
  color: var(--amber);
}

.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 {
  align-items: center;
  display: flex;
  gap: 10px;
}

/* ── Dropdown de filtros ───────────────────────────────── */
.chatFilterDropdown {
  position: relative;
}

.chatFilterTrigger {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.chatFilterTrigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: none;
  box-shadow: none;
}

.chatFilterTrigger.isActive {
  background: rgba(236, 46, 132, 0.12);
  border-color: rgba(236, 46, 132, 0.4);
  color: #ffd3e6;
}

.chatFilterChevron {
  transition: transform 0.2s;
}

.chatFilterTrigger[aria-expanded="true"] .chatFilterChevron {
  transform: rotate(180deg);
}

.chatFilterPanel {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  min-width: 240px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 200;
  animation: dropdownIn 0.15s ease;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chatFilterSection {
  padding: 6px 4px;
}

.chatFilterSectionLabel {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding: 0 4px;
  text-transform: uppercase;
}

.chatFilterDivider {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 4px 0;
}

.chatFilterGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chatFilterOption {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.chatFilterOption:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: var(--text);
  transform: none;
}

.chatFilterOption.active {
  background: rgba(236, 46, 132, 0.18);
  border-color: rgba(236, 46, 132, 0.45);
  color: #ffd3e6;
}

/* Colores por estado en el dropdown */
.chatFilterOption--guia.active       { background: rgba(139,92,246,0.18);  border-color: rgba(139,92,246,0.45);  color: #c4b5fd; }
.chatFilterOption--transito.active   { background: rgba(234,179,8,0.15);   border-color: rgba(234,179,8,0.4);    color: #fde047; }
.chatFilterOption--reparto.active    { background: rgba(59,130,246,0.18);  border-color: rgba(59,130,246,0.45);  color: #93c5fd; }
.chatFilterOption--entregado.active  { background: rgba(34,197,94,0.15);   border-color: rgba(34,197,94,0.4);    color: #86efac; }
.chatFilterOption--devolucion.active { background: rgba(239,68,68,0.15);   border-color: rgba(239,68,68,0.4);    color: #fca5a5; }

.syncState {
  align-items: center;
  background: rgba(35, 213, 171, 0.08);
  border: 1px solid rgba(35, 213, 171, 0.28);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  min-height: 30px;
  padding: 0 11px;
  white-space: nowrap;
}

.syncState::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 7px;
  margin-right: 8px;
  width: 7px;
}

.syncState.isLive::before {
  box-shadow: 0 0 0 4px rgba(35, 213, 171, 0.12);
}

.syncState.isError {
  background: rgba(255, 78, 125, 0.08);
  border-color: rgba(255, 78, 125, 0.24);
  color: #ff9ebf;
}

.integrationsGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 1.25fr) repeat(2, minmax(260px, 0.85fr));
}

.integrationCard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  min-width: 0;
  padding: 18px;
}

.integrationCard.isPrimary {
  border-color: rgba(106, 214, 255, 0.34);
}

.integrationHead {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.integrationHead > div {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.integrationHead h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.integrationHead p,
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.integrationIcon {
  align-items: center;
  background: rgba(106, 214, 255, 0.12);
  border: 1px solid rgba(106, 214, 255, 0.28);
  border-radius: 8px;
  color: var(--cyan);
  display: inline-flex;
  flex: 0 0 38px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
}

.statusChip {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
  min-height: 30px;
  padding: 0 10px;
}

.statusChip.isOk {
  background: rgba(155, 232, 74, 0.14);
  border-color: rgba(155, 232, 74, 0.32);
  color: var(--green);
}

.statusChip.isWarn {
  background: rgba(255, 209, 102, 0.10);
  border-color: rgba(255, 209, 102, 0.28);
  color: var(--amber);
}

.integrationForm {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.integrationConfig,
.configAction {
  display: none;
}

.integrationConfig.isVisible {
  display: grid;
}

.configAction.isVisible {
  display: inline-flex;
}

.integrationForm textarea {
  min-height: 92px;
  resize: vertical;
}

.dropiSimpleActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.connectIntro {
  background: rgba(106, 214, 255, 0.08);
  border: 1px solid rgba(106, 214, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.connectIntro strong {
  font-size: 15px;
}

.connectIntro span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.advancedDropi {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.advancedDropi summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.advancedDropi[open] {
  display: grid;
  gap: 12px;
}

.advancedDropi[open] summary {
  margin-bottom: 4px;
}

.integrationActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.integrationFacts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.integrationFacts div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.integrationFacts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.integrationFacts dd {
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.secureSummary {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.secureSummary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.secureSummary strong {
  color: var(--text);
  font-size: 14px;
  text-align: right;
}

.dangerButton {
  background: rgba(255, 88, 88, 0.12);
  border-color: rgba(255, 88, 88, 0.35);
  color: #ff9a9a;
}

.dangerButton:hover {
  background: rgba(255, 88, 88, 0.20);
  border-color: rgba(255, 88, 88, 0.55);
  color: #ffd1d1;
}

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

.operationsMetrics article,
.workPanel,
.targetCard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.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: #111;
  border: 1px solid var(--line);
  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 { 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; }

.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, var(--pink), #9d1b57); border-radius: inherit; height: 100%; transition: width .3s ease; }
.performanceRow b { color: var(--green); }
.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(--pink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

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

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

button,
.fileButton {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  color: var(--text);
  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(236, 46, 132, 0.52);
  box-shadow: none;
  transform: translateY(-1px);
}

button.secondary {
  background: #101010;
  border-color: var(--line);
  color: var(--text);
}

.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: #d9d9dd;
  font-size: 13px;
  font-weight: 500;
  justify-content: center;
  min-height: 28px;
  min-width: 0;
  padding: 0;
}

.calendarDay:hover {
  background: var(--pink-soft);
  border-color: rgba(236, 46, 132, 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: var(--pink-soft);
  border-color: var(--line-bright);
  color: var(--text);
}

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

.shopifyOverview {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(170px, 0.5fr));
  margin-bottom: 16px;
}

.shopifyOverview article {
  background:
    linear-gradient(135deg, rgba(236, 46, 132, 0.08), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  min-width: 0;
  padding: 16px;
}

.shopifyOverview span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.shopifyOverview strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sentPill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 10px;
}

.sentPill.sent {
  background: rgba(155, 232, 74, 0.15);
  border-color: rgba(155, 232, 74, 0.36);
  color: var(--green);
}

.sentPill.pending {
  background: rgba(255, 209, 102, 0.10);
  border-color: rgba(255, 209, 102, 0.28);
  color: var(--amber);
}

.sentPill.confirmed {
  background: rgba(155, 232, 74, 0.15);
  border-color: rgba(155, 232, 74, 0.36);
  color: var(--green);
}

.sentPill.review {
  background: rgba(106, 214, 255, 0.12);
  border-color: rgba(106, 214, 255, 0.32);
  color: var(--cyan);
}

.sentPill.error {
  background: rgba(255, 88, 88, 0.12);
  border-color: rgba(255, 88, 88, 0.32);
  color: #ff9a9a;
}

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

.billingCard {
  background:
    linear-gradient(135deg, rgba(236, 46, 132, 0.1), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  padding: 14px 20px;
  position: relative;
}

.billingCard::before {
  background: linear-gradient(90deg, var(--pink), 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(236, 46, 132, 0.1), rgba(45, 140, 255, 0.04)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  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(--pink), transparent);
  content: "";
  height: 1px;
  inset: 0 0 auto;
  position: absolute;
}

.todayDeliveryIcon {
  align-items: center;
  background: var(--pink-soft);
  border: 1px solid rgba(236, 46, 132, 0.25);
  border-radius: 8px;
  color: #ff5fa6;
  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: none;
  padding: 20px;
}

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

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

.metricCard.featured::before {
  background: linear-gradient(90deg, var(--green), 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: var(--pink-soft);
  border: 1px solid rgba(236, 46, 132, 0.22);
  color: #ffd0e5;
  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;
}

.ordersHero {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.ordersHero h2 {
  font-size: 24px;
  font-weight: 650;
  line-height: 1;
  margin: 0;
}

.compactDashboardControls .accountFilter,
.compactDashboardControls .dateRangeToggle {
  min-width: 190px;
}

.compactDashboardControls select,
.compactDashboardControls .dateRangeToggle {
  min-height: 36px;
}

.escalafyBoard {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(430px, 0.95fr) minmax(440px, 1.05fr);
  margin-bottom: 22px;
}

.metricGroups {
  display: grid;
  gap: 22px;
}

.metricGroups h3 {
  color: #eeeeef;
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 10px;
}

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


.summary article {
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  overflow: visible;
  min-height: 78px;
  padding: 12px 36px 12px 14px;
  position: relative;
}

.summary article::before {
  display: none;
}

.metricCard p::before {
  color: var(--pink);
  content: "≋";
  display: inline-block;
  font-size: 13px;
  margin-right: 7px;
  transform: translateY(-1px);
}

.metricBlue p::before {
  color: var(--blue);
  content: "∞";
}

.metricGreen p::before {
  color: var(--green);
}

.metricAmber p::before {
  color: var(--amber);
}

.profitPanel {
  min-width: 0;
}

.chartTabs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 10px;
}

.chartTabs button {
  background: transparent;
  border-color: transparent;
  color: #e8e8ec;
  font-size: 14px;
  font-weight: 600;
  min-height: 34px;
}

.chartTabs button.active {
  background: var(--panel);
  border-color: var(--line);
}

.chartTabs button.active::before {
  color: var(--pink);
  content: "";
}

.chartCard {
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 388px;
  padding: 16px 18px 12px;
  position: relative;
}

.chartCard p {
  color: #f0f0f2;
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 6px;
}

.chartCard p::before {
  color: var(--pink);
  content: "▰";
  margin-right: 10px;
}

.chartCard strong {
  display: block;
  font-size: 22px;
  font-weight: 650;
  margin-bottom: 10px;
}

.chartCard svg {
  height: 300px;
  overflow: visible;
  width: 100%;
}

.chartGrid {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.chartArea {
  fill: url(#profitFill);
}

.chartLine {
  fill: none;
  stroke: var(--pink);
  stroke-linecap: round;
  stroke-width: 2;
}

.chartCard circle {
  fill: #1b1b1d;
  stroke: var(--pink);
  stroke-width: 2;
}

.chartPoint {
  transition: r 140ms ease, stroke-width 140ms ease;
}

.chartHit {
  cursor: crosshair;
  fill: transparent;
  pointer-events: all;
}

.chartHit:hover + .chartPoint {
  r: 6;
}

.chartTooltip {
  background: #242427;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  color: #f4f4f5;
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.35;
  max-width: 230px;
  padding: 10px 12px;
  pointer-events: none;
  position: absolute;
  width: max-content;
  z-index: 8;
}

.chartTooltip[hidden] {
  display: none;
}

.chartTooltip strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 2px;
}

.chartTooltip span {
  color: #d4d4d8;
  display: block;
}

.metricCard p {
  align-items: center;
  color: #e4e4e7;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 8px;
  min-width: 0;
}

.summary span {
  display: block;
  color: #f1f1f3;
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.18;
  margin-bottom: 4px;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.summary article.isEmpty span {
  color: #8e8e96;
  font-size: 15px;
  font-weight: 500;
}

.infoTip {
  align-items: center;
  background: transparent;
  border: 1px solid #76767d;
  border-radius: 50%;
  color: #cbccd2;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  height: 15px;
  justify-content: center;
  min-height: 15px;
  min-width: 15px;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 15px;
  z-index: 2;
}

.infoTip:hover,
.infoTip:focus {
  border-color: var(--blue);
  box-shadow: none;
  transform: none;
}

.infoTip span {
  background: #222225;
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: calc(100% + 8px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
  color: #f0f0f2;
  display: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  max-width: 230px;
  overflow: visible;
  padding: 9px 10px;
  pointer-events: none;
  position: absolute;
  right: -8px;
  text-align: left;
  white-space: normal;
  width: max-content;
  z-index: 50;
}

.summary article:hover .infoTip span,
.infoTip:hover span,
.infoTip:focus span,
.infoTip:focus-visible span,
.infoTip.isOpen span {
  display: block;
}

.embeddedFinancialPanels {
  margin-top: 18px;
}

.metricBlue::before { background: linear-gradient(90deg, var(--blue), transparent 62%); }
.metricPink::before { background: linear-gradient(90deg, var(--pink), transparent 62%); }
.metricGreen::before { background: linear-gradient(90deg, var(--green), transparent 62%); }
.metricAmber::before { background: linear-gradient(90deg, var(--amber), transparent 62%); }

.cardFoot {
  margin-top: 4px;
}

.cardDelta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cardDelta.deltaUp { color: #34c759; }
.cardDelta.deltaDown { color: #ff453a; }

.cardSparkline {
  display: block;
  height: 38px;
  margin-top: 8px;
  width: 100%;
}

.metricBlue .cardSparkline { color: var(--blue); }
.metricPink .cardSparkline { color: var(--pink); }

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

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

.ordersAccountSelect {
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 10px;
  position: relative;
}

.ordersAccountSelect span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ordersAccountSelect select {
  appearance: none;
  background: #0c0c0d;
  border-color: var(--line);
  color: var(--text);
  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 var(--pink);
  bottom: 25px;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 24px;
}

input,
select,
textarea {
  background: #0c0c0d;
  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(236, 46, 132, 0.1);
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: #6f6f74;
}

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

.tableHeader {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 14px 12px;
}

.tableHeader h3 {
  font-size: 20px;
  margin: 0 0 4px;
}

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

.pager {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.pager strong {
  color: #dedee3;
  font-size: 13px;
  min-width: 52px;
  text-align: center;
}

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

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

th {
  background: #0f0f10;
  color: #b8b8bd;
  font-size: 12px;
  font-weight: 650;
}

td {
  font-size: 13px;
  color: #eeeeef;
}

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

.badge.guide {
  background: var(--pink-soft);
  color: #ff5fa6;
}

.badge.delivery {
  background: rgba(155, 232, 74, 0.14);
  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: var(--red);
}

.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: 12px;
  min-height: 30px;
  padding: 0 9px;
  text-decoration: none;
}

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

.miniActions .whatsappIcon {
  background: var(--pink);
  border-color: var(--pink);
  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(155, 232, 74, 0.14);
  border-color: rgba(155, 232, 74, 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;
}

.settingsNotice {
  background: var(--pink-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.45;
  margin: 16px 0;
  padding: 14px;
}

.settingsNotice strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.settingsNotice p {
  font-size: 13px;
}

.whatsappShell {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(300px, 0.32fr) minmax(0, 1fr);
  height: calc(100vh - 172px);
  min-height: 560px;
  overflow: hidden;
}

.chatList {
  background: #101010;
  border-right: 1px solid var(--line);
  min-height: 0;
  overflow: auto;
}

.chatListItem {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.chatListItem:hover,
.chatListItem.isActive {
  background: rgba(236, 46, 132, 0.08);
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.chatListItem.hasUnread {
  background: rgba(155, 232, 74, 0.06);
  box-shadow: inset 3px 0 0 var(--green);
}

.chatListItem.hasUnread .chatListBody strong {
  color: #fff;
  font-weight: 750;
}

.chatListItem.hasUnread .chatListBody small {
  color: var(--text);
  font-weight: 500;
}

.chatAvatar {
  align-items: center;
  background: linear-gradient(135deg, rgba(236, 46, 132, 0.95), rgba(45, 140, 255, 0.72));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 750;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.chatListBody {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.chatNameRow {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.chatNameRow strong {
  flex-shrink: 1;
  min-width: 0;
}

.chatListBody strong,
.chatListBody small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatStatusBadge {
  border-radius: 4px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.chatStatusBadge--entregado   { background: rgba(34,197,94,0.15);  color: #4ade80; }
.chatStatusBadge--guia        { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.chatStatusBadge--reparto     { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.chatStatusBadge--transito    { background: rgba(234,179,8,0.15);   color: #facc15; }
.chatStatusBadge--sucursal    { background: rgba(234,179,8,0.15);   color: #facc15; }
.chatStatusBadge--camion      { background: rgba(251,146,60,0.15);  color: #fb923c; }
.chatStatusBadge--cancelado   { background: rgba(239,68,68,0.15);   color: #f87171; }
.chatStatusBadge--devolucion  { background: rgba(239,68,68,0.15);   color: #f87171; }
.chatStatusBadge--confirmado  { background: rgba(34,197,94,0.15);   color: #4ade80; }
.chatStatusBadge--modificar   { background: rgba(251,146,60,0.15);  color: #fb923c; }
.chatStatusBadge--desconocido { background: rgba(255,255,255,0.06); color: var(--muted); }

.chatListBody small,
.chatListMeta em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.chatListMeta {
  align-items: end;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.chatListMeta b {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  color: #081008;
  display: inline-flex;
  font-size: 11px;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
}

.chatBackBtn {
  align-items: center;
  background: transparent;
  border: none;
  color: var(--pink);
  cursor: pointer;
  display: none;
  font-size: 14px;
  font-weight: 600;
  gap: 4px;
  padding: 0;
}

.chatBackBtn:hover {
  color: var(--text);
}

.chatPanel {
  background:
    linear-gradient(135deg, rgba(236, 46, 132, 0.04), transparent 34%),
    #0d0d0e;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.chatHeader {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 16px;
}

.chatHeaderActions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.templateAction {
  background: rgba(35, 213, 171, 0.1);
  border: 1px solid rgba(35, 213, 171, 0.26);
  color: var(--green);
  min-height: 34px;
  padding: 0 12px;
}

.templateAction:disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.chatHeader div {
  display: grid;
  gap: 4px;
}

.chatHeader strong {
  font-size: 18px;
}

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

.chatWindowBadge {
  border: 1px solid rgba(255, 93, 118, 0.35);
  border-radius: 999px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  white-space: nowrap;
}

.chatWindowBadge.isOpen {
  border-color: rgba(155, 232, 74, 0.35);
  color: var(--green);
}

.chatOrderContext {
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 11px 16px;
}

.chatOrderStatusRow {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repeatBell {
  align-items: center;
  background: rgba(245, 184, 75, 0.14);
  border: 1px solid rgba(245, 184, 75, 0.45);
  border-radius: 999px;
  cursor: help;
  display: inline-flex;
  font-size: 12px;
  gap: 3px;
  line-height: 1;
  margin-right: 8px;
  padding: 2px 7px 2px 6px;
  vertical-align: middle;
}

.repeatBell:hover {
  background: rgba(245, 184, 75, 0.22);
}

.repeatBadge {
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
}

.chatMessages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.chatBubble {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: min(620px, 78%);
  padding: 10px 12px 8px;
}

.chatBubble p {
  color: #f5f5f6;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 6px;
  white-space: pre-wrap;
}

.locationCard {
  display: grid;
  gap: 7px;
  margin-bottom: 6px;
}

.locationCard strong {
  color: #f5f5f6;
  font-size: 14px;
}

.locationCard small {
  color: var(--muted);
  line-height: 1.35;
}

.locationCard a {
  align-items: center;
  background: rgba(35, 213, 171, 0.12);
  border: 1px solid rgba(35, 213, 171, 0.28);
  border-radius: 7px;
  color: var(--green);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  text-decoration: none;
  width: fit-content;
}

.audioCard {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
  min-width: min(320px, 62vw);
}

.audioCard strong {
  color: #f5f5f6;
  font-size: 14px;
}

.audioCard audio {
  height: 38px;
  max-width: 100%;
  width: 320px;
}

.reactionCard {
  align-items: center;
  display: flex;
  gap: 8px;
}

.reactionCard .reactionEmoji {
  font-size: 26px;
  line-height: 1;
}

.reactionCard small {
  color: var(--muted);
  font-size: 12px;
}

.imageCard {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}

.imageCard img {
  border-radius: 10px;
  cursor: zoom-in;
  display: block;
  max-height: 320px;
  max-width: min(300px, 60vw);
  object-fit: cover;
}

.imageCard p {
  font-size: 13px;
  margin: 0;
}

.chatBubble span {
  color: rgba(255, 255, 255, 0.58);
  display: block;
  font-size: 11px;
  text-align: right;
}

.chatBubble .chatError {
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.26);
  border-radius: 7px;
  color: #ffd166;
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 7px;
  padding: 7px 8px;
  text-align: left;
}

.chatBubble.isIn {
  align-self: flex-start;
  background: #1b1b1d;
}

.chatBubble.isOut {
  align-self: flex-end;
  background: rgba(236, 46, 132, 0.22);
  border-color: rgba(236, 46, 132, 0.34);
}

.chatComposer {
  align-items: end;
  background: #111112;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  padding: 12px;
}

.chatSuggestBtn {
  align-items: center;
  background: linear-gradient(135deg, rgba(236, 46, 132, 0.16), rgba(45, 140, 255, 0.16));
  border: 1px solid rgba(236, 46, 132, 0.4);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 4px;
  height: 42px;
  justify-content: center;
  padding: 0 14px;
  transition: filter 0.16s ease, opacity 0.16s ease;
  white-space: nowrap;
}

.chatSuggestBtn:hover:not(:disabled) {
  filter: brightness(1.2);
}

.chatSuggestBtn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.chatAttachBtn {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  width: 42px;
}

.chatAttachBtn:hover:not(:disabled) {
  background: var(--pink-soft);
  border-color: var(--pink);
  color: var(--pink);
}

.chatAttachBtn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.chatAttachBtn.isBusy {
  animation: attachPulse 0.9s ease-in-out infinite;
}

@keyframes attachPulse {
  50% { opacity: 0.4; }
}

.chatComposer textarea {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.5;
  max-height: 220px;
  min-height: 104px;
  overflow-y: auto;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.chatComposer textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(236, 46, 132, 0.14);
  outline: none;
}

.chatComposer #sendChatReply {
  border-radius: 12px;
  font-weight: 600;
  height: 42px;
  min-width: 96px;
  padding: 0 20px;
}

.chatEmpty {
  color: var(--muted);
  display: grid;
  min-height: 120px;
  place-items: center;
  text-align: center;
}

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;
  }
}

/* Mobile header & hamburger — hidden on desktop */
.mobileHeader {
  display: none;
}
.hamburgerBtn {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 8px;
  transition: background 0.15s;
}
.hamburgerBtn:hover {
  background: var(--panel);
}
.mobileBrand span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1;
  margin-bottom: 2px;
}
.mobileBrand strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}
.brandRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebarClose {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  display: none;
  justify-content: center;
  padding: 6px;
  transition: background 0.15s, color 0.15s;
}
.sidebarClose:hover {
  background: var(--panel-strong);
  color: var(--text);
}
/* Overlay behind sidebar on mobile */
.sidebarOverlay {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 9;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.sidebarOverlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Calculadora de precios --- */
.calcLayout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.calcLayout {
  max-width: 900px;
}

.calcCard {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  padding: 20px;
}

.calcCard h3 {
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  text-transform: uppercase;
  color: var(--muted);
}

.calcCard h3.calcSubhead {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.calcField:last-child {
  margin-bottom: 0;
}

.calcField > span {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 500;
}

.calcField > span small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 2px;
}

.calcInputWrap {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  width: 130px;
}

.calcInputWrap:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.calcInputWrap:focus-within {
  background: rgba(236, 46, 132, 0.06);
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(236, 46, 132, 0.16);
}

.calcInputWrap i {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  padding: 0 4px 0 12px;
}

.calcInputWrap.calcPercent i {
  padding: 0 12px 0 4px;
}

.calcInputWrap input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  padding: 8px 12px 8px 0;
  text-align: right;
  width: 100%;
}

.calcInputWrap.calcPercent input {
  padding: 10px 0 10px 12px;
  text-align: left;
}

.calcInputWrap input::-webkit-outer-spin-button,
.calcInputWrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calcResults {
  background: linear-gradient(160deg, var(--panel-strong), var(--panel-soft));
  position: relative;
}

.calcResults::before {
  background: linear-gradient(90deg, var(--pink), rgba(236, 46, 132, 0));
  border-radius: 16px 16px 0 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.calcPriceHero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding: 8px 0 20px;
  position: relative;
  text-align: center;
}

.calcPriceHero::after {
  background: radial-gradient(60% 120% at 50% 0%, rgba(236, 46, 132, 0.18), rgba(236, 46, 132, 0) 70%);
  content: "";
  height: 120px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: -10px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 0;
}

.calcPriceHero > span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.calcPriceHero strong {
  background: linear-gradient(90deg, var(--pink), #ff7ab8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(236, 46, 132, 0.35));
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 8px 0;
  position: relative;
  z-index: 1;
}

.calcPriceHero em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  position: relative;
  z-index: 1;
}

.calcPriceHero em b {
  color: var(--text);
}

.calcBreakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calcRow {
  align-items: center;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
  transition: background 0.16s ease;
}

.calcRow:hover {
  background: rgba(255, 255, 255, 0.03);
}

.calcRow span {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.calcRow span small {
  font-size: 11px;
  opacity: 0.7;
}

.calcRow b {
  font-size: 15px;
  font-weight: 600;
}

.calcRowTotal {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px;
}

.calcRowTotal span,
.calcRowTotal b {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.calcRowProfit b {
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
}

.calcRowProfit span {
  color: var(--text);
  font-weight: 600;
}

.calcCheck {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 16px;
  padding: 14px;
}

.calcCheckHead {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.calcCheckHead > span {
  font-size: 14px;
  font-weight: 600;
}

.calcCheckHead .calcInputWrap {
  width: 140px;
}

.calcCheckResult {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.calcCheckResult > div {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.calcCheckResult small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calcCheckResult b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

.calcPositive { color: var(--green); }
.calcNegative { color: var(--red); }

.calcNote {
  background: var(--pink-soft);
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  margin-top: 18px;
  padding: 12px 14px;
}

.calcNote p {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 760px) {
  .calcLayout {
    grid-template-columns: 1fr;
  }

  .calcPriceHero strong {
    font-size: 34px;
  }

  .mobileHeader {
    align-items: center;
    background: #0b0b0c;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 8;
  }

  .app {
    margin-left: 0;
    padding: 18px;
  }

  .sidebar {
    border-right: 1px solid var(--line);
    bottom: 0;
    left: 0;
    padding: 24px 18px;
    position: fixed;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    width: 240px;
    z-index: 10;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
  }

  .sidebarOverlay {
    display: block;
  }

  .sidebarClose {
    display: flex;
  }

  .brandBlock {
    margin-bottom: 12px;
  }

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

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

  .sectionHeading,
  .sectionActions,
  .whatsappHealth { align-items: stretch; flex-direction: column; }
  .chatFilters { flex-wrap: wrap; }
  .chatFilter { flex: 1 1 auto; }
  .whatsappHealth span { text-align: left; }

  .escalafyBoard,
  .whatsappShell,
  .operationsMetrics,
  .operationsGrid,
  .dashboardGrid,
  .dashboardHeader,
  .dashboardPanels,
  .billingOverview,
  .shopifyOverview,
  .integrationsGrid,
  .billingCard,
  .toolbar,
  .templateGrid {
    grid-template-columns: 1fr;
  }

  /* Dashboard estilo Escalafy — 2 columnas compactas */
  .summary,
  .escalafyMetrics {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  .metricGroups section {
    margin-bottom: 4px;
  }

  .metricGroups section > h3 {
    font-size: 11px;
    letter-spacing: 0.08em;
    margin: 12px 0 8px;
    text-transform: uppercase;
  }

  .metricCard {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 12px 14px 0;
    position: relative;
  }

  .metricCard::after { display: none; }

  .metricCard p {
    font-size: 11px;
    gap: 4px;
    margin-bottom: 4px;
  }

  .metricCard p::before {
    font-size: 11px;
  }

  .metricCard > span,
  .dashboardGrid span {
    font-size: 20px;
    font-weight: 750;
    line-height: 1.1;
  }

  .metricCard.money > span,
  .metricCard.metricPink > span,
  .metricCard.metricBlue > span {
    font-size: 17px;
  }

  .cardSparkline {
    margin-left: -14px;
    margin-top: 8px;
    width: calc(100% + 28px);
  }

  /* Hide big chart and delivery gauge on mobile dashboard */
  .chartCard,
  .deliveryGaugeCard,
  .embeddedFinancialPanels {
    display: none;
  }

  .ordersHero {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
  }

  .dashboardControls {
    width: 100%;
  }

  .dateRangeToggle {
    width: 100%;
  }

  .integrationHead,
  .integrationActions {
    align-items: stretch;
    flex-direction: column;
  }

  .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;
  }

  /* WhatsApp mobile: full-height two-screen flow */
  .topbar { display: none; }
  .whatsappHealth { font-size: 12px; padding: 6px 12px; }

  #whatsappView .sectionHeading { display: none; }
  #whatsappView .sectionActions {
    gap: 8px;
    padding: 8px 0 4px;
  }

  .whatsappShell {
    border-radius: 8px;
    display: block;
    height: calc(100svh - 130px);
    min-height: 0;
    overflow: hidden;
    position: relative;
  }

  .chatList {
    border-right: 0;
    bottom: 0;
    left: 0;
    max-height: none;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
  }

  .chatPanel {
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
  }

  .whatsappShell.chatOpen .chatList {
    transform: translateX(-100%);
  }

  .whatsappShell.chatOpen .chatPanel {
    transform: translateX(0);
  }

  /* Compact native-app style chat header */
  .chatBackBtn {
    display: flex;
    flex-shrink: 0;
  }

  .chatHeader {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .chatHeader > div:first-of-type {
    flex: 1;
    min-width: 0;
  }

  .chatHeader strong {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #chatContactDetail {
    color: var(--muted);
    display: block;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chatOrderContext strong {
    display: none;
  }

  .chatHeaderActions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    width: auto;
  }

  .chatHeaderActions button {
    font-size: 12px;
    padding: 5px 10px;
    white-space: nowrap;
    width: auto;
  }

  .chatHeaderActions span {
    display: flex;
    font-size: 12px;
    padding: 4px 8px;
    width: auto;
  }

  .chatOrderContext {
    font-size: 12px;
    padding: 7px 12px;
  }

  .chatMessages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px;
  }

  .chatComposer {
    grid-template-columns: auto auto 1fr auto;
    padding: 8px 12px;
    gap: 6px;
  }

  .chatAttachBtn {
    height: 40px;
    width: 40px;
  }

  .chatSuggestBtn {
    height: 40px;
    padding: 0 10px;
  }

  .chatSuggestBtn .suggestLabel {
    display: none;
  }

  .chatComposer textarea {
    font-size: 14px;
    min-height: 44px;
    rows: 2;
  }

  .chatComposer button {
    padding: 10px;
  }

}
