/* ==========================================================================
   CAMUFLADOS COMPANY - DESIGN SYSTEM OPERACIONAL PREMIUM
   Tema Tático Claro, Alto Contraste, Tipografia Ampla, Distribuição Equilibrada
   e Botões com Alto Afordance Tátil (Desktop & Mobile Touch Otimizado)
   ========================================================================== */

:root {
  /* Surface & Canvas */
  --bg-canvas: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #fbfcfe;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-muted-hover: #e2e8f0;

  /* Borders & Dividers */
  --border-hairline: rgba(226, 232, 240, 0.9);
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-strong: #94a3b8;
  --border-focus: #4d7c0f;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --text-brand: #365314;

  /* Tactical Palette (Olive / Camo) */
  --olive-50: #f7fee7;
  --olive-100: #ecfccb;
  --olive-200: #d9f99d;
  --olive-300: #bef264;
  --olive-500: #84cc16;
  --olive-600: #65a30d;
  --olive-700: #4d7c0f;
  --olive-800: #3f6212;
  --olive-900: #365314;
  --olive-950: #1a2e05;

  /* Status Tokens */
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --emerald-text: #065f46;
  --emerald-solid: #10b981;
  --emerald-hover: #059669;

  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --amber-text: #92400e;
  --amber-solid: #f59e0b;
  --amber-hover: #d97706;

  --rose-bg: #fff1f2;
  --rose-border: #fecdd3;
  --rose-text: #9f1239;
  --rose-solid: #e11d48;
  --rose-hover: #be123c;

  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --blue-text: #1e40af;
  --blue-solid: #2563eb;
  --blue-hover: #1d4ed8;

  --purple-bg: #faf5ff;
  --purple-border: #e9d5ff;
  --purple-text: #6b21a8;
  --purple-solid: #7c3aed;
  --purple-hover: #6d28d9;

  /* Geometry & Shadows */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-card: 0 2px 6px -1px rgba(15, 23, 42, 0.07), 0 1px 3px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 8px 20px -4px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  --shadow-btn: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-btn-hover: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   APP LAYOUT & SIDEBAR
   ========================================================================== */

.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-subtle);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 45;
}

.brand {
  padding: 22px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-hairline);
}

.brand-logo {
  background: linear-gradient(135deg, var(--olive-700), var(--olive-900));
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(77, 124, 15, 0.3);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.8px;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--olive-700);
  margin-top: 2px;
}

.nav-menu {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all var(--transition-fast);
}

.nav-item:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
  border-color: var(--border-hairline);
}

.nav-item.active {
  background-color: var(--olive-50);
  color: var(--olive-900);
  border-color: var(--olive-200);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(77, 124, 15, 0.08);
}

.nav-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.nav-item.active svg {
  color: var(--olive-700);
}

.badge-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

.badge-danger {
  background-color: var(--rose-bg);
  color: var(--rose-text);
  border: 1px solid var(--rose-border);
}

.badge-warning {
  background-color: var(--amber-bg);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

.badge-success {
  background-color: var(--emerald-bg);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--bg-card-subtle);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background-color: var(--emerald-solid);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.operator-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
}

/* ==========================================================================
   MAIN CONTENT & HEADER
   ========================================================================== */

.main-content {
  flex: 1;
  margin-left: 270px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: calc(100% - 270px);
}

.top-header {
  height: 70px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: var(--shadow-subtle);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-btn:active {
  background-color: var(--bg-muted);
}

.page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  margin-top: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 1px solid var(--border-subtle);
  padding-left: 18px;
  margin-left: 6px;
}

.view-container {
  padding: 30px 36px 40px 36px;
  flex: 1;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BUTTONS (TOUCH OTIMIZADO & ALTO AFORDANCE VISUAL)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
  line-height: 1.4;
  text-align: center;
  user-select: none;
  box-shadow: var(--shadow-btn);
  position: relative;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Primary Button (Tactical Green) */
.btn-primary {
  background: linear-gradient(180deg, var(--olive-600) 0%, var(--olive-700) 100%);
  border-color: var(--olive-800);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(77, 124, 15, 0.35), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--olive-700) 0%, var(--olive-800) 100%);
  border-color: var(--olive-900);
  box-shadow: 0 4px 10px rgba(77, 124, 15, 0.45);
  color: #ffffff;
}

/* Secondary Button (Crisp White with Defined Border) */
.btn-secondary {
  background: #ffffff;
  border-color: var(--border-medium);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background-color: var(--bg-muted);
  border-color: var(--border-strong);
  color: var(--text-primary);
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.09);
}

/* Danger Button (Alert Red) */
.btn-danger {
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: var(--rose-border);
  color: var(--rose-text);
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.1);
}

.btn-danger:hover {
  background: linear-gradient(180deg, var(--rose-solid) 0%, var(--rose-hover) 100%);
  border-color: var(--rose-hover);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
}

/* Action Button in Tables & Rows */
.btn-action {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  min-height: 36px;
}

/* Button Sizing Variations */
.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: var(--radius-lg);
  min-height: 48px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  min-height: 38px;
}

.btn-xs {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  min-height: 32px;
  font-weight: 700;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 26px;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-medium);
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  gap: 12px;
}

.card-title-group {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-title svg {
  color: var(--olive-700);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.card-caption {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.card-body {
  padding: 22px 24px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-hairline);
  background-color: var(--bg-card-subtle);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   HERO EXECUTIVE KPI RIBBON (STRIPE / LINEAR STYLE AMPLIFICADO)
   ========================================================================== */

.hero-kpi-ribbon {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
}

.hero-kpi-cell {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-hairline);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  min-height: 120px;
}

.hero-kpi-cell:last-child {
  border-right: none;
}

.hero-kpi-cell:hover {
  background-color: var(--bg-muted);
  transform: translateY(-1px);
}

.hero-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.hero-kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero-kpi-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.hero-kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-feature-settings: "tnum";
}

.hero-kpi-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   WORKFLOW PIPELINE STEPPER
   ========================================================================== */

.pipeline-stepper-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}

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

.pipeline-stepper-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipeline-stepper-title svg {
  color: var(--olive-700);
}

.pipeline-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pipeline-step {
  background-color: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pipeline-step:hover {
  background-color: #ffffff;
  border-color: var(--olive-700);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.pipeline-step-info {
  display: flex;
  flex-direction: column;
}

.pipeline-step-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pipeline-step-count {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  margin-top: 2px;
}

.pipeline-step-pill {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ==========================================================================
   2-COLUMN MASTER DASHBOARD GRID (Distribuição Ampla)
   ========================================================================== */

.dashboard-master-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 26px;
  align-items: start;
}

/* Priority Dispatch Row Cards */
.dispatch-list {
  display: flex;
  flex-direction: column;
}

.dispatch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color var(--transition-fast);
  gap: 16px;
}

.dispatch-row:last-child {
  border-bottom: none;
}

.dispatch-row:hover {
  background-color: var(--bg-card-subtle);
}

.dispatch-main-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.dispatch-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--olive-50);
  color: var(--olive-800);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--olive-200);
  box-shadow: var(--shadow-subtle);
}

.dispatch-meta {
  flex: 1;
  min-width: 0;
}

.dispatch-meta-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.dispatch-order-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--text-primary);
}

.dispatch-customer-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dispatch-date-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dispatch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dispatch-actions input {
  min-width: 140px;
}

/* Channel Distribution Bar */
.distribution-bar {
  display: flex;
  height: 10px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background-color: var(--bg-muted);
  margin-bottom: 20px;
}

.distribution-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.channel-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 13.5px;
}

.channel-stat-row:last-child {
  border-bottom: none;
}

.channel-stat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.channel-share-pct {
  font-size: 12px;
  color: var(--text-secondary);
  background-color: var(--bg-muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* Ranked Top Products */
.rank-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-hairline);
  gap: 14px;
}

.rank-product-row:last-child {
  border-bottom: none;
}

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-badge.top-1 { background-color: #fef3c7; color: #b45309; }
.rank-badge.top-2 { background-color: #f1f5f9; color: #475569; }
.rank-badge.top-3 { background-color: #ffedd5; color: #c2410c; }

.rank-product-info {
  flex: 1;
  min-width: 0;
}

.rank-product-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-product-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Agent Activity Stream */
.activity-stream-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.activity-stream-item:last-child {
  border-bottom: none;
}

.activity-dot-box {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--olive-50);
  color: var(--olive-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.activity-desc {
  font-size: 13.5px;
  color: var(--text-primary);
  font-weight: 600;
}

.activity-time {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 3px;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-subtle);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(77, 124, 15, 0.18);
}

.form-control-sm {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

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

.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* ==========================================================================
   MULTI-STEP WIZARD (NOVO PEDIDO)
   ========================================================================== */

.step-indicator-wrapper {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-hairline);
  padding: 20px 28px;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background-color: var(--border-subtle);
  z-index: 1;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--border-medium);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-subtle);
}

.step-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.step-item.active .step-circle {
  background-color: var(--olive-700);
  border-color: var(--olive-700);
  color: #ffffff;
  box-shadow: 0 0 0 5px var(--olive-100);
}

.step-item.active .step-label {
  color: var(--olive-900);
  font-weight: 800;
}

.step-item.completed .step-circle {
  background-color: var(--emerald-solid);
  border-color: var(--emerald-solid);
  color: #ffffff;
}

.step-item.completed .step-label {
  color: var(--emerald-text);
}

.wizard-panel {
  display: none;
  padding: 28px;
}

.wizard-panel.active {
  display: block;
}

.wizard-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-top: 1px solid var(--border-hairline);
  background-color: var(--bg-card-subtle);
  gap: 14px;
}

/* ==========================================================================
   TABLES (ESPAÇAMENTO AMPLO & LEGIBILIDADE)
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.table th {
  background-color: #f8fafc;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-primary);
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: var(--bg-card-subtle);
}

.table tr.row-waiting {
  background-color: #fffdf5;
}

.table tr.row-delayed {
  background-color: #fff1f2;
}

/* ==========================================================================
   STATUS BADGES & CHIPS
   ========================================================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.status-pendente { background-color: var(--amber-bg); color: var(--amber-text); border: 1px solid var(--amber-border); }
.status-aguardando_info { background-color: var(--rose-bg); color: var(--rose-text); border: 1px solid var(--rose-border); }
.status-confirmado { background-color: var(--emerald-bg); color: var(--emerald-text); border: 1px solid var(--emerald-border); }
.status-pronto_envio { background-color: var(--blue-bg); color: var(--blue-text); border: 1px solid var(--blue-border); }
.status-enviado { background-color: var(--purple-bg); color: var(--purple-text); border: 1px solid var(--purple-border); }
.status-entregue { background-color: var(--emerald-bg); color: var(--emerald-text); border: 1px solid var(--emerald-border); }
.status-cancelado { background-color: var(--bg-muted); color: var(--text-tertiary); border: 1px solid var(--border-subtle); }

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   ASSISTANT PANEL
   ========================================================================== */

.assistant-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.assistant-header {
  padding: 18px 22px;
  background-color: var(--olive-50);
  border-bottom: 1px solid var(--olive-200);
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-icon-box {
  width: 38px;
  height: 38px;
  background-color: var(--olive-700);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(77, 124, 15, 0.25);
}

.assistant-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--olive-900);
}

.assistant-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.assistant-body {
  padding: 20px 22px;
}

.assistant-empty {
  padding: 22px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  background-color: var(--bg-card-subtle);
}

.question-box {
  background-color: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.question-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--amber-text);
  margin-bottom: 8px;
}

.question-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.question-list li {
  font-size: 13px;
  color: var(--amber-text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease-out;
}

.modal-lg {
  max-width: 840px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.modal-close {
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--bg-muted-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-hairline);
  background-color: var(--bg-card-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   LOGIN OVERLAY
   ========================================================================== */

.login-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-canvas);
  background-image: radial-gradient(circle at 50% 30%, rgba(77, 124, 15, 0.08) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
}

/* ==========================================================================
   GRID & TIMELINE HELPERS
   ========================================================================== */

.grid-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 26px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 2px;
  background-color: var(--border-medium);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 4px;
  left: -20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--olive-700);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--olive-200);
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-modal);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.2s ease-out;
}

.toast.error {
  background-color: #991b1b;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (DESKTOP EXTEND & MOBILE TOUCH-FIRST)
   ========================================================================== */

@media (max-width: 1280px) {
  .dashboard-master-grid {
    grid-template-columns: 1fr;
  }
  .hero-kpi-ribbon {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-kpi-cell:nth-child(3) {
    border-right: none;
  }
  .hero-kpi-cell:nth-child(n+4) {
    border-top: 1px solid var(--border-hairline);
  }
  .pipeline-track {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-kpi-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-kpi-cell:nth-child(2) {
    border-right: none;
  }
  .pipeline-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   MOBILE FLOATING ACTION BUTTON (NOVO PEDIDO)
   -------------------------------------------------------------------------- */
.mobile-fab-btn {
  display: none;
}

/* --------------------------------------------------------------------------
   MOBILE & TABLET VIEWPORT (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    font-size: 15.5px;
  }

  .sidebar {
    width: 85%;
    max-width: 320px;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .nav-item {
    padding: 15px 20px;
    font-size: 16px;
    min-height: 52px;
  }

  .nav-item svg {
    width: 24px;
    height: 24px;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* TOP HEADER (LARGER & MORE SPACIOUS) */
  .top-header {
    padding: 0 16px;
    height: 72px;
    min-height: 72px;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .header-left {
    gap: 12px;
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    min-width: 48px;
    min-height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
  }

  .mobile-menu-btn svg {
    width: 24px;
    height: 24px;
  }

  .page-title {
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-subtitle {
    display: none;
  }

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

  /* On mobile, hide the header "+ Novo Pedido" button since we have the FAB */
  .header-right #btn-quick-create-order {
    display: none !important;
  }

  .header-right #btn-quick-refresh {
    padding: 10px 14px;
    min-width: 46px;
    min-height: 46px;
    border-radius: var(--radius-md);
  }

  .header-right #btn-quick-refresh svg {
    width: 18px;
    height: 18px;
  }

  .header-right .btn-label-text {
    display: none !important;
  }

  .user-badge {
    padding-left: 8px;
    margin-left: 0;
    gap: 8px;
    border-left: 1px solid var(--border-subtle);
  }

  .user-badge > div {
    display: none !important;
  }

  #btn-logout {
    padding: 8px 14px;
    font-size: 13.5px;
    min-height: 44px;
    font-weight: 700;
    border-radius: var(--radius-md);
  }

  /* VIEW CONTAINER & CARDS (NO HORIZONTAL OVERFLOW) */
  .view-container {
    padding: 16px 14px 100px 14px; /* extra bottom padding for sticky FAB */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .master-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }

  .card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
  }

  .card-header {
    padding: 16px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .card-title-group {
    flex: 1;
    min-width: 0;
  }

  .card-title {
    font-size: 15.5px;
    font-weight: 800;
    word-break: break-word;
    white-space: normal;
    line-height: 1.35;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .card-title svg {
    margin-top: 2px;
    flex-shrink: 0;
  }

  .card-title span {
    word-break: break-word;
  }

  .card-caption {
    font-size: 12.5px;
    word-break: break-word;
    margin-top: 3px;
  }

  .card-header .btn {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
    align-self: flex-start;
  }

  /* KPI Cards on Mobile */
  .hero-kpi-ribbon {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-kpi-cell {
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
    padding: 16px 16px;
    min-height: auto;
    box-sizing: border-box;
  }

  .hero-kpi-cell:nth-child(odd) {
    border-right: 1px solid var(--border-hairline);
  }

  .hero-kpi-cell:last-child:nth-child(odd) {
    grid-column: span 2;
    border-right: none;
  }

  .hero-kpi-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .hero-kpi-tag {
    font-size: 10.5px;
    padding: 2px 7px;
    font-weight: 700;
  }

  .hero-kpi-value {
    font-size: 24px;
    font-weight: 800;
    margin-top: 4px;
  }

  .hero-kpi-sub {
    font-size: 12px;
    margin-top: 4px;
  }

  /* Pipeline Track on Mobile */
  .pipeline-stepper-card {
    padding: 18px 16px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .pipeline-stepper-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
  }

  .pipeline-stepper-title {
    font-size: 15px;
    font-weight: 800;
  }

  .pipeline-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }

  .pipeline-step {
    padding: 14px 16px;
    min-height: 52px;
    box-sizing: border-box;
  }

  .pipeline-step:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .pipeline-step-count {
    font-size: 22px;
    font-weight: 800;
  }

  .pipeline-step-title {
    font-size: 13.5px;
    font-weight: 700;
  }

  /* Fila Prioritária de Despacho (Mobile Card Form - Strictly Fits Screen) */
  .dispatch-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dispatch-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
    background-color: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .dispatch-main-info {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dispatch-avatar {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .dispatch-order-num {
    font-size: 14px;
  }

  .dispatch-customer-name {
    font-size: 15px;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
  }

  .dispatch-date-sub {
    font-size: 13px;
  }

  .dispatch-actions {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-hairline);
  }

  .dispatch-actions input {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    min-height: 48px;
    font-size: 15px;
  }

  .dispatch-actions .btn {
    width: 100% !important;
    min-height: 48px;
    font-size: 15px;
    font-weight: 700;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff !important;
    background: linear-gradient(180deg, var(--olive-600) 0%, var(--olive-700) 100%) !important;
    border-color: var(--olive-800) !important;
  }

  .dispatch-actions .btn span {
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  .dispatch-actions .btn svg {
    display: inline-block !important;
    stroke: #ffffff !important;
    width: 16px !important;
    height: 16px !important;
  }

  /* Form Rows & Inputs on Mobile */
  .form-row.cols-2,
  .form-row.cols-3,
  .form-row.cols-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-control {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    min-height: 48px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .form-control-sm {
    font-size: 15px;
    min-height: 44px;
  }

  /* Wizard on Mobile */
  .step-indicator-wrapper {
    padding: 18px 14px;
    margin-bottom: 20px;
  }

  .step-circle {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .step-label {
    display: none;
  }

  .step-item.active .step-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
  }

  .wizard-panel {
    padding: 20px 16px;
  }

  .wizard-panel h3 {
    font-size: 16.5px;
  }

  .wizard-nav-footer {
    padding: 18px 16px;
    flex-direction: column;
    gap: 12px;
  }

  .wizard-nav-footer .btn {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
    font-weight: 700;
  }

  /* Table Action Buttons & Responsive Containers */
  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .table th,
  .table td {
    padding: 14px 14px;
    font-size: 14.5px;
  }

  .table .btn,
  .table .btn-action {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
  }

  /* Channel breakdown & Top products on Mobile */
  .channel-row {
    padding: 12px 0;
  }

  .channel-name {
    font-size: 14.5px;
  }

  .channel-val {
    font-size: 14.5px;
    font-weight: 700;
  }

  .top-product-item {
    padding: 12px 0;
  }

  .top-product-name {
    font-size: 14.5px;
  }

  .top-product-badge {
    font-size: 13px;
    padding: 4px 10px;
  }

  /* Modals on Mobile */
  .modal {
    max-height: 92vh;
    border-radius: var(--radius-lg);
    margin: 10px;
    width: calc(100% - 20px);
  }

  .modal-header {
    padding: 18px 16px;
  }

  .modal-title {
    font-size: 17.5px;
  }

  .modal-body {
    padding: 18px 16px;
  }

  .modal-footer {
    padding: 16px;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .modal-footer .btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    font-weight: 700;
  }

  /* TOAST ON MOBILE */
  .toast-container {
    bottom: 96px;
    right: 16px;
    left: 16px;
    align-items: center;
  }

  .toast {
    font-size: 14px;
    padding: 12px 18px;
    max-width: 90%;
  }

  /* FLOATING ACTION BUTTON (STICKY NOVO PEDIDO) */
  .mobile-fab-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    bottom: 24px !important;
    right: 20px !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--olive-600) 0%, var(--olive-700) 100%) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(85, 107, 47, 0.6) !important;
    z-index: 9999 !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-fab-btn:active {
    transform: scale(0.92) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  }

  .mobile-fab-btn svg {
    stroke: #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) !important;
  }

  .mobile-fab-label {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   EXTRA SMALL MOBILE (< 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-kpi-ribbon {
    grid-template-columns: 1fr;
  }
  .hero-kpi-cell:nth-child(odd) {
    border-right: none;
  }
  .hero-kpi-cell:last-child:nth-child(odd) {
    grid-column: span 1;
  }
}
