/**
 * E-Sevai Maiyam — world-class civic desk UI
 * Teal/jade identity (not purple / cream-serif clichés)
 */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Sora:wght@500;600;700;800&display=swap");

body.esevai-mode {
  --es-ink: #071a16;
  --es-muted: #4d635c;
  --es-line: rgba(10, 70, 55, 0.11);
  --es-jade: #0f766e;
  --es-jade-bright: #14b8a6;
  --es-leaf: #059669;
  --es-sand: #eef5f1;
  --es-glow: rgba(20, 184, 166, 0.25);
  --es-card: rgba(255, 255, 255, 0.86);
  font-family: "Outfit", "Sora", system-ui, sans-serif;
}

/* Hard hide inactive Reports (and any ES panel) — prevents bleed across tabs */
body.esevai-mode #esReportsSection:not(.active-section),
body.esevai-mode #esReportsSection.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}

body.nanban-pro-app.esevai-mode {
  background-color: #dfece6;
  background-image:
    radial-gradient(ellipse 100% 60% at -5% -15%, rgba(20, 184, 166, 0.28), transparent 55%),
    radial-gradient(ellipse 80% 50% at 105% 5%, rgba(5, 150, 105, 0.18), transparent 52%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(6, 78, 59, 0.1), transparent 55%),
    linear-gradient(165deg, #e8f4ee 0%, #e2efe8 40%, #f2f6f4 100%);
  background-attachment: fixed;
  color: var(--es-ink);
}

/* Top bar — Maiyam seal */
body.nanban-pro-app.esevai-mode #mainApp .top-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8));
  border-bottom: 1px solid var(--es-line);
  box-shadow: 0 16px 48px -32px rgba(6, 78, 59, 0.55);
}

body.nanban-pro-app.esevai-mode #mainApp .nb-top-logo {
  font-family: "Sora", "Outfit", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  font-size: 18px !important;
}

body.nanban-pro-app.esevai-mode #mainApp .nb-top-logo span {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #0f766e !important;
  -webkit-text-fill-color: #0f766e !important;
}

/* Nav rail — pill dock */
body.esevai-mode #mainApp #adminTabs.tabs {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid var(--es-line) !important;
  border-radius: 20px !important;
  padding: 8px !important;
  box-shadow: 0 14px 36px -28px rgba(15, 118, 110, 0.45) !important;
  gap: 4px !important;
}

body.esevai-mode #adminTabs.tabs .tab.esevai-only {
  border-radius: 14px !important;
  min-height: 52px;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease, color 0.15s ease;
}

body.esevai-mode #adminTabs.tabs .tab.esevai-only:hover {
  background: rgba(20, 184, 166, 0.12) !important;
  color: #0f766e !important;
}

body.esevai-mode #adminTabs.tabs .tab.esevai-only.active {
  background: linear-gradient(145deg, #0f766e 0%, #14b8a6 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 28px -12px rgba(15, 118, 110, 0.7) !important;
  transform: translateY(-1px);
}

body.esevai-mode #adminTabs.tabs .tab.esevai-only.active .nb-nav-en,
body.esevai-mode #adminTabs.tabs .tab.esevai-only.active .nb-nav-text,
body.esevai-mode #adminTabs.tabs .tab.esevai-only.active .nb-nav-ta {
  color: #fff !important;
}

body.esevai-mode #adminTabs.tabs .tab.esevai-only.active svg {
  stroke: #fff !important;
}

/* Unified page width + cards */
body.esevai-mode #nbAppMain > .section-content.active-section {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 36px;
}

body.esevai-mode #mainApp .glass-card,
body.esevai-mode #mainApp .metric-card,
body.esevai-mode #mainApp .dash-card {
  background: var(--es-card) !important;
  border: 1px solid var(--es-line) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 44px -30px rgba(6, 78, 59, 0.35) !important;
  backdrop-filter: blur(10px);
}

body.esevai-mode #mainApp .btn-esevai {
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 24px -14px rgba(15, 118, 110, 0.65);
}

/* Section headers (POS / catalog / etc.) */
body.esevai-mode .es-pos-world-header,
body.esevai-mode .es-catalog-header {
  border-radius: 20px !important;
  background: linear-gradient(135deg, #064e3b 0%, #0f766e 50%, #0d9488 100%) !important;
  box-shadow: 0 22px 48px -24px rgba(6, 78, 59, 0.55) !important;
  border: none !important;
  padding: 16px 18px !important;
}

body.esevai-mode .es-pos-world-header__title {
  font-family: "Sora", sans-serif !important;
  letter-spacing: -0.03em !important;
}

/* ═══════════════ DASHBOARD HOME — one composition ═══════════════ */
body.esevai-mode #esDashSection.active-section .es-dash-home {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4px 2px 40px;
}

.es-dash-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px 22px 18px;
  margin-bottom: 12px;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 70% at 92% -10%, rgba(94, 234, 212, 0.4), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(6, 78, 59, 0.55), transparent 50%),
    linear-gradient(145deg, #043f35 0%, #0b6b5f 42%, #0f8f82 100%);
  box-shadow:
    0 28px 56px -28px rgba(4, 63, 53, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: es-dash-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.es-dash-stage__glow {
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.22), transparent 70%);
  pointer-events: none;
  animation: es-dash-drift 10s ease-in-out infinite alternate;
}

.es-dash-stage__top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 20px;
  z-index: 1;
}

.es-dash-stage__mark {
  margin: 0 0 6px;
  font-family: "Sora", "Noto Sans Tamil", sans-serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.es-dash-stage__title {
  margin: 0;
  font-family: "Outfit", "Sora", "Noto Sans Tamil", sans-serif;
  font-size: clamp(16px, 2.1vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff !important;
  opacity: 1;
}

.es-dash-stage__sub {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #ecfdf5 !important;
  opacity: 0.95;
  max-width: 36ch;
  line-height: 1.4;
}

.es-dash-stage__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.es-dash-cta {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  backdrop-filter: blur(6px);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.es-dash-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.es-dash-cta:active {
  transform: scale(0.98);
}

.es-dash-cta--primary {
  background: #fff;
  color: #0b6b5f;
  border-color: #fff;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.4);
}

.es-dash-cta--primary:hover {
  background: #f0fdfa;
  color: #065f46;
}

.es-dash-cta--soft {
  background: transparent;
}

.es-dash-stage__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.es-dash-stage__range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.es-dash-stage__range label {
  opacity: 0.75;
  font-weight: 800;
}

.es-dash-select {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
}

.es-dash-select option {
  color: #0f172a;
}

.es-dash-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.es-dash-stage__sync {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.es-dash-link {
  border: none;
  background: none;
  color: #a7f3d0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.es-dash-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

/* Truth KPIs inside stage — above the fold */
.es-dash-truth {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px !important;
  margin: 16px 0 0 !important;
}

.es-dash-kpi {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
  animation: es-dash-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.es-dash-kpi:nth-child(1) { animation-delay: 0.05s; }
.es-dash-kpi:nth-child(2) { animation-delay: 0.1s; }
.es-dash-kpi:nth-child(3) { animation-delay: 0.15s; }
.es-dash-kpi:nth-child(4) { animation-delay: 0.2s; }

.es-dash-kpi .es-exec-kpi-lbl {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 10px !important;
  letter-spacing: 0.04em;
  margin-bottom: 4px !important;
}

.es-dash-kpi .es-exec-kpi-val {
  font-family: "Sora", sans-serif !important;
  font-size: clamp(20px, 2.8vw, 26px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  color: #fff !important;
  line-height: 1.15;
}

.es-dash-kpi .es-exec-delta {
  color: rgba(255, 255, 255, 0.55) !important;
  margin-top: 4px !important;
}

.es-dash-kpi--cash .es-exec-kpi-val {
  color: #bbf7d0 !important;
}

.es-dash-kpi--due .es-exec-kpi-val {
  color: #fdba74 !important;
}

.es-dash-kpi--click {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.es-dash-kpi--click:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.es-dash-kpi--click:focus-visible {
  outline: 2px solid #fde68a;
  outline-offset: 2px;
}
.es-dash-kpi__hint {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.es-dash-kpi--click:hover .es-dash-kpi__hint {
  color: #fef08a;
}

.es-dash-kpi-modal__card {
  max-width: 920px;
  width: 96%;
  padding: 18px 20px;
  border-radius: 20px;
}
.es-dash-kpi-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.es-dash-kpi-modal__head p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.es-dash-kpi-modal__head h3 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 900;
}
.es-dash-kpi-modal__range {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.es-dash-kpi-modal__x {
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}
.es-dash-kpi-modal__sum {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.es-dash-kpi-modal__sum > div {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 10px 14px;
}
.es-dash-kpi-modal__sum span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}
.es-dash-kpi-modal__sum b {
  font-size: 18px;
  font-weight: 1000;
  color: #0f172a;
}
.es-dash-kpi-modal__body {
  max-height: 55vh;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.es-dash-kpi-modal__foot {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.es-dash-kpi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.es-dash-kpi-table th,
.es-dash-kpi-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}
.es-dash-kpi-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 10px;
  text-transform: uppercase;
  color: #64748b;
  z-index: 1;
}
.es-dash-kpi-table .num {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}
.es-dash-kpi-empty {
  text-align: center;
  color: #94a3b8;
  font-weight: 700;
  padding: 24px !important;
}
.es-dash-kpi-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}
.es-dash-kpi-link {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.es-dash-kpi-link--pri {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

/* Slim secondary rail — not a second dashboard */
.es-dash-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  animation: es-dash-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.es-dash-rail__item {
  border: 1px solid var(--es-line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--es-ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.es-dash-rail__item:hover {
  background: #fff;
  border-color: rgba(15, 118, 110, 0.35);
  color: #0f766e;
  transform: translateY(-1px);
}

.es-dash-guide {
  margin: 0 0 14px !important;
  border-radius: 14px !important;
  border: 1px solid var(--es-line) !important;
  background: rgba(255, 255, 255, 0.55) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.es-dash-guide summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--es-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.es-dash-guide__hint {
  font-size: 11px;
  color: var(--es-jade);
}

.es-dash-guide__body {
  padding: 0 14px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
  border-top: 1px dashed rgba(15, 118, 110, 0.2);
}

.es-dash-guide__body ol {
  margin: 10px 0 0;
  padding-left: 1.15em;
}

@keyframes es-dash-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes es-dash-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-8%); }
}

@media (max-width: 820px) {
  .es-dash-truth {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .es-dash-stage {
    border-radius: 22px;
    padding: 18px 16px 14px;
  }
  .es-dash-stage__mark {
    font-size: clamp(20px, 6vw, 26px);
  }
}

/* Legacy ops command (other pages if any) */
.es-ops-command {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(45, 212, 191, 0.28), transparent 50%),
    linear-gradient(135deg, #064e3b 0%, #0f766e 55%, #0d9488 100%);
  box-shadow: 0 22px 48px -26px rgba(6, 78, 59, 0.55);
}

.es-ops-command__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff !important;
  opacity: 0.95;
}

.es-ops-command__title {
  margin: 0;
  font-family: "Sora", "Noto Sans Tamil", sans-serif;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.es-ops-command__sub {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #ecfdf5 !important;
  opacity: 0.98;
  max-width: 40ch;
  line-height: 1.45;
}

.es-ops-command__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.es-ops-cmd {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  min-height: 46px;
}

.es-ops-cmd--primary {
  background: #fff;
  color: #0f766e;
  border-color: #fff;
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.35);
}

.es-ops-cmd--ghost {
  background: transparent;
}

.es-ops-cmd:active {
  transform: scale(0.98);
}

body.esevai-mode #esExecKpiCash {
  color: #15803d !important;
}
body.esevai-mode #esExecKpiDue {
  color: #c2410c !important;
}

/* Inside stage, override global cash/due color */
body.esevai-mode .es-dash-kpi--cash .es-exec-kpi-val,
body.esevai-mode .es-dash-kpi--cash #esExecKpiCash {
  color: #bbf7d0 !important;
}
body.esevai-mode .es-dash-kpi--due .es-exec-kpi-val,
body.esevai-mode .es-dash-kpi--due #esExecKpiDue {
  color: #fdba74 !important;
}

/* ── POS ready bar (clarity + fewer mistakes) ── */
.es-ops-ready {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--es-line);
  box-shadow: 0 10px 24px -18px rgba(15, 118, 110, 0.35);
}

.es-ops-ready.is-ready {
  border-color: rgba(22, 163, 74, 0.45);
  background: linear-gradient(180deg, #f0fdf4, #fff);
}

.es-ops-ready__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.es-ops-chip {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

.es-ops-chip.is-ok {
  background: #dcfce7;
  color: #166534;
}

.es-ops-chip.is-miss {
  background: #f1f5f9;
  color: #94a3b8;
}

.es-ops-chip.is-warn {
  background: #ffedd5;
  color: #c2410c;
  animation: es-ops-pulse 1.4s ease-in-out infinite;
}

.es-ops-ready__status {
  font-size: 12px;
  font-weight: 800;
  color: var(--es-muted);
}

.es-ops-ready__status.is-go {
  color: #15803d;
}

@keyframes es-ops-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.25);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.08);
  }
}

.es-ops-more-tools {
  margin: 0 0 8px;
  border-radius: 12px;
  border: 1px solid var(--es-line);
  background: rgba(255, 255, 255, 0.7);
  padding: 0 10px;
}

.es-ops-more-tools summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--es-muted);
}

.es-ops-more-tools .es-ultra-tools {
  margin: 0 0 8px;
}

body.esevai-mode .es-ops-save--ready {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35), 0 14px 28px -12px rgba(15, 118, 110, 0.55) !important;
}

body.esevai-mode .es-ops-save--blocked {
  opacity: 0.85;
}

/* Credit / gov mistake modes */
body.esevai-mode.es-pos-credit-mode #esPosSection .es-pos-pay-rail {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

body.esevai-mode.es-pos-gov-need #esPosSection #esGovBankRow {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Checkout hero — bigger truth */
body.esevai-mode #esPosSection .es-pos-checkout-hero__amt {
  font-family: "Sora", sans-serif !important;
  font-size: clamp(26px, 3.5vw, 34px) !important;
  letter-spacing: -0.04em !important;
}

body.esevai-mode #esPosSection .es-pos-search-input {
  font-size: 15px !important;
  font-weight: 700 !important;
  min-height: 46px;
  border-radius: 14px !important;
}

/* Dashboard atmosphere */
body.esevai-mode #esDashSection.active-section .es-exec-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4px 2px 40px;
  background: transparent !important;
  min-height: auto !important;
}

body.esevai-mode .es-exec-kpi:not(.es-dash-kpi) {
  background: var(--es-card) !important;
  border: 1px solid var(--es-line) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 36px -26px rgba(6, 78, 59, 0.4) !important;
}

body.esevai-mode .es-exec-kpi:not(.es-dash-kpi) .es-exec-kpi-val {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
  color: var(--es-ink) !important;
}

body.esevai-mode .es-exec-chart-card,
body.esevai-mode .es-exec-panel {
  border-radius: 18px !important;
  border-color: var(--es-line) !important;
  box-shadow: 0 14px 36px -26px rgba(15, 118, 110, 0.35);
  background: rgba(255, 255, 255, 0.88) !important;
  animation: es-dash-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

body.esevai-mode #esDashSection .es-exec-chart-title,
body.esevai-mode #esDashSection .es-exec-panel h4 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
  color: var(--es-ink);
}

/* Kill old blocky quick-actions chrome if any leftover */
body.esevai-mode #esDashSection .es-dash-quick-actions {
  display: none !important;
}

/* Reports hub — only when active */
body.esevai-mode #esReportsSection.active-section.es-rep-hub {
  --es-rep-accent: #0f766e;
  --es-rep-ink: #071a16;
  display: block !important;
}

body.esevai-mode #esReportsSection .es-rep-head h2 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

body.esevai-mode #esReportsSection .es-rep-card {
  border-radius: 18px;
  background: var(--es-card);
}

body.esevai-mode #esReportsSection .es-rep-card.is-active {
  background: linear-gradient(165deg, #ecfdf5, #fff 70%);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.35), 0 16px 32px -20px rgba(15, 118, 110, 0.4);
}

body.esevai-mode .es-exec-metric,
body.esevai-mode [class*="es-exec"] .metric-card {
  border-radius: 18px !important;
}

/* Customer / works / history soft frames */
body.esevai-mode #esCustSection.active-section,
body.esevai-mode #esWorksSection.active-section,
body.esevai-mode #esPendingSection.active-section,
body.esevai-mode #esHistSection.active-section,
body.esevai-mode #esLedgerSection.active-section,
body.esevai-mode #esAgentSection.active-section,
body.esevai-mode #esEnqSection.active-section,
body.esevai-mode #esRemSection.active-section,
body.esevai-mode #esEsevaiBizSection.active-section {
  animation: es-cb-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.esevai-mode #esCustSection h3,
body.esevai-mode #esWorksSection h3,
body.esevai-mode #esHistSection h3,
body.esevai-mode #esLedgerSection h3,
body.esevai-mode #esPendingSection h3 {
  font-family: "Sora", sans-serif !important;
  letter-spacing: -0.02em;
  color: var(--es-ink) !important;
}

/* ═══════════════ CASHBOOK PAGE ═══════════════ */
body.esevai-mode #esCashbookSection.active-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px 36px;
}

.es-cb-page .es-cb-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.es-cb-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(45, 212, 191, 0.35), transparent 50%),
    linear-gradient(135deg, #064e3b 0%, #0f766e 48%, #0d9488 100%);
  box-shadow: 0 22px 48px -24px rgba(6, 78, 59, 0.55);
  position: relative;
  overflow: hidden;
}

.es-cb-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.es-cb-hero__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff !important;
  opacity: 0.95;
}

.es-cb-hero h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-family: "Sora", "Outfit", "Noto Sans Tamil", sans-serif;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.es-cb-hero__sub {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #ecfdf5 !important;
  opacity: 0.98;
  max-width: 36ch;
  line-height: 1.45;
}

.es-cb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.es-cb-hero__actions button {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.es-cb-hero__actions .es-cb-btn-solid {
  background: #fff;
  color: #0f766e;
}

.es-cb-hero__actions .es-cb-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.es-cb-liquidity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--es-line);
  box-shadow: 0 12px 28px -22px rgba(15, 118, 110, 0.4);
}

.es-cb-liquidity__k {
  font-size: 11px;
  font-weight: 800;
  color: var(--es-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.es-cb-liquidity__v {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: var(--es-ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.es-cb-bal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.es-cb-bal-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--es-line);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 32px -24px rgba(15, 118, 110, 0.35);
}

.es-cb-bal-card--cash {
  background: linear-gradient(165deg, #ecfdf5 0%, #fff 55%);
}

.es-cb-bal-card--bank {
  background: linear-gradient(165deg, #f0f9ff 0%, #fff 55%);
  border-color: rgba(14, 116, 144, 0.14);
}

.es-cb-bal-card__ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
  background: rgba(15, 118, 110, 0.1);
}

.es-cb-bal-card--bank .es-cb-bal-card__ico {
  background: rgba(14, 116, 144, 0.12);
}

.es-cb-bal-card b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--es-muted);
  margin-bottom: 4px;
}

.es-cb-bal-card span {
  display: block;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 900;
  color: var(--es-ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.es-cb-bal-card__hint {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.es-cb-bank-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.es-cb-bank-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--es-line);
  font-size: 12px;
  font-weight: 800;
  color: var(--es-ink);
  box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.2);
}

.es-cb-bank-chip em {
  font-style: normal;
  color: var(--es-muted);
  font-weight: 700;
}

.es-cb-bank-chip strong {
  font-variant-numeric: tabular-nums;
}

.es-cb-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.es-cb-panel {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--es-line);
  padding: 16px 16px 18px;
  box-shadow: 0 14px 32px -24px rgba(15, 118, 110, 0.3);
}

.es-cb-panel h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 900;
  color: var(--es-ink);
  font-family: "Sora", sans-serif;
}

.es-cb-panel__desc {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--es-muted);
  line-height: 1.45;
}

.es-cb-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.es-cb-field label {
  font-size: 10px;
  font-weight: 800;
  color: var(--es-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.es-cb-field .premium-input,
.es-cb-panel .premium-input {
  width: 100%;
  padding: 11px 12px !important;
  border-radius: 12px !important;
  border: 1px solid var(--es-line) !important;
  background: #f8faf9 !important;
  font-weight: 700 !important;
  font-family: inherit !important;
}

.es-cb-field .premium-input:focus,
.es-cb-panel .premium-input:focus {
  outline: none;
  border-color: #14b8a6 !important;
  box-shadow: 0 0 0 3px var(--es-glow);
  background: #fff !important;
}

.es-cb-panel .btn {
  width: 100%;
  margin-top: 4px;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.es-cb-panel .btn-esevai,
.es-cb-panel .es-cb-go {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(15, 118, 110, 0.7);
}

.es-cb-panel .btn-slate,
.es-cb-panel .es-cb-adj {
  background: #0f172a;
  color: #fff;
}

.es-cb-ledger {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--es-line);
  overflow: hidden;
  box-shadow: 0 14px 32px -24px rgba(15, 118, 110, 0.3);
}

.es-cb-ledger__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #f8faf9, #fff);
}

.es-cb-ledger__hd h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--es-ink);
  font-family: "Sora", sans-serif;
}

.es-cb-ledger__hd span {
  font-size: 11px;
  font-weight: 800;
  color: var(--es-jade);
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 999px;
}

.es-cb-ledger .es-cb-table-wrap {
  overflow-x: auto;
  max-height: 440px;
}

.es-cb-ledger table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.es-cb-ledger th,
.es-cb-ledger td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.es-cb-ledger th {
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--es-muted);
  background: #fafcfb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.es-cb-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  text-transform: uppercase;
}

.es-cb-type--transfer {
  background: #dbeafe;
  color: #1d4ed8;
}

.es-cb-type--adjust,
.es-cb-type--adjustment {
  background: #ffedd5;
  color: #c2410c;
}

.es-cb-type--income,
.es-cb-type--sale {
  background: #dcfce7;
  color: #166534;
}

.es-cb-amt {
  text-align: right;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.es-cb-amt--in {
  color: #15803d;
}

.es-cb-amt--out {
  color: #b91c1c;
}

.es-cb-empty {
  text-align: center;
  color: #94a3b8;
  font-weight: 800;
  padding: 28px 16px !important;
}

.es-cb-tip {
  font-size: 12px;
  font-weight: 600;
  color: var(--es-muted);
  line-height: 1.5;
  padding: 0 4px;
}

@media (max-width: 820px) {
  .es-cb-bal-grid,
  .es-cb-panels {
    grid-template-columns: 1fr;
  }
}

/* Subtle motion */
@media (prefers-reduced-motion: no-preference) {
  body.esevai-mode #esCashbookSection.active-section .es-cb-hero {
    animation: es-cb-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  body.esevai-mode #esCashbookSection.active-section .es-cb-bal-card {
    animation: es-cb-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  body.esevai-mode #esCashbookSection.active-section .es-cb-bal-card:nth-child(2) {
    animation-delay: 0.06s;
  }
}

@keyframes es-cb-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* POS — keep all options visible; shop CSS handles speed layout */
body.esevai-mode #esPosSection .es-pos-newbill-btn--collect {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

body.esevai-mode #esPosSection #esPosReadyBar[hidden] {
  display: none !important;
}

/* ═══════════════ DAY BOOK LEDGER ═══════════════ */
.es-daybook {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 22px !important;
}

.es-daybook__hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(45, 212, 191, 0.3), transparent 50%),
    linear-gradient(135deg, #064e3b, #0f766e 55%, #0d9488);
}

.es-daybook__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.es-daybook__hero h3 {
  margin: 4px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.es-daybook__sub {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.85;
}

.es-daybook__hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.es-daybook__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--es-line);
}

.es-daybook__filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--es-muted);
  text-transform: uppercase;
}

.es-daybook__filters input,
.es-daybook__filters select {
  border: 1px solid var(--es-line);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 12px;
  min-width: 120px;
  background: #fff;
}

.es-daybook__search {
  flex: 1;
  min-width: 180px;
}

.es-daybook__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
}

.es-daybook__kpi {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 12px;
}

.es-daybook__kpi--out {
  background: #fff7ed;
  border-color: #fed7aa;
}

.es-daybook__kpi span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--es-muted);
}

.es-daybook__kpi b {
  font-family: "Sora", sans-serif;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.es-daybook__table-wrap {
  max-height: min(62vh, 640px);
  overflow: auto;
  padding: 0 8px 16px;
}

.es-daybook__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.es-daybook__table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 2;
  text-align: left;
  padding: 10px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 1px solid var(--es-line);
}

.es-daybook__table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.es-daybook__table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.es-daybook__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.es-daybook__tag.is-in {
  background: #dcfce7;
  color: #166534;
}

.es-daybook__tag.is-out {
  background: #ffedd5;
  color: #c2410c;
}

.es-daybook__cat {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
  margin-top: 2px;
}

.es-daybook__run {
  color: #0f766e;
}

.es-daybook__bill {
  border: 1px solid var(--es-line);
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  color: #0f766e;
  white-space: nowrap;
}

.es-daybook__nobill {
  color: #cbd5e1;
}

.es-daybook__empty {
  padding: 28px;
  text-align: center;
  color: #94a3b8;
  font-weight: 700;
}

@media (max-width: 700px) {
  .es-daybook__kpis {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════ DAY CLOSE WIZARD ═══════════════ */
.es-dayclose__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.es-dayclose__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.es-dayclose__head h2 {
  margin: 4px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--es-ink);
}

.es-dayclose__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--es-muted);
  font-weight: 600;
}

.es-dayclose__x {
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.es-dayclose__steps {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.es-dayclose__steps span {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

.es-dayclose__steps span.is-on {
  background: #ccfbf1;
  color: #0f766e;
}

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

.es-dayclose__z-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.es-dayclose__z-item span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
}

.es-dayclose__z-item b {
  font-family: "Sora", sans-serif;
  font-size: 16px;
}

.es-dayclose__z-item--warn {
  background: #fff7ed;
  border-color: #fed7aa;
}

.es-dayclose__table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 14px;
}

.es-dayclose__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.es-dayclose__table th,
.es-dayclose__table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.es-dayclose__table th {
  background: #f8fafc;
  font-size: 10px;
  text-transform: uppercase;
  color: #64748b;
  text-align: left;
}

.es-dayclose__table .num {
  text-align: right;
}

.es-dayclose__sys {
  font-weight: 900;
  color: #0f766e;
}

.es-dayclose__table .es-actual-input {
  width: 110px;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  border: 2px solid #14b8a6;
  font-weight: 900;
  color: #0f766e;
}

.es-dayclose__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.es-dayclose__sum-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.es-dayclose__sum-card--ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.es-dayclose__sum-card span {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
}

.es-dayclose__sum-card b {
  font-family: "Sora", sans-serif;
  font-size: 20px;
}

.es-dayclose__tip {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  margin: 0 0 12px;
}

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

.es-dayclose__actions .btn-esevai {
  flex: 2;
  min-width: 160px;
}

@media (max-width: 700px) {
  .es-dayclose__z {
    grid-template-columns: 1fr 1fr;
  }
  .es-dayclose__summary {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════ AGENT STATEMENT ═══════════════ */
.es-agent-stmt__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.es-agent-stmt__preset {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.es-agent-stmt__preset:hover {
  background: #ccfbf1;
  border-color: #2dd4bf;
}

.es-agent-stmt__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.es-agent-stmt__filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.es-agent-stmt__filters select,
.es-agent-stmt__filters input {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  min-width: 140px;
}

.es-agent-stmt__meta {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 10px;
}
.es-agent-stmt__drift {
  color: #b45309;
  font-weight: 800;
}

.es-agent-stmt__kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.es-agent-stmt__kpis > div {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 10px;
}

.es-agent-stmt__kpi--due {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
}
.es-agent-stmt__kpi--close {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
}

.es-agent-stmt__kpis span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
}

.es-agent-stmt__kpis b {
  font-family: "Sora", sans-serif;
  font-size: 15px;
}

.es-agent-stmt__body {
  max-height: 52vh;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.es-agent-stmt__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.es-agent-stmt__table th,
.es-agent-stmt__table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}

.es-agent-stmt__table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 10px;
  text-transform: uppercase;
  color: #64748b;
  z-index: 1;
}

.es-agent-stmt__table .num {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.es-agent-stmt__items {
  max-width: 240px;
  font-weight: 700;
  color: #0f172a;
}
.es-agent-stmt__items small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.es-agent-stmt__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  white-space: nowrap;
}
.es-agent-stmt__tag--collect {
  background: #dcfce7;
  color: #166534;
}
.es-agent-stmt__tag--bill {
  background: #dbeafe;
  color: #1d4ed8;
}

.es-agent-stmt__row--collect td {
  background: #f8fffb;
}
.es-agent-stmt__open-row td,
.es-agent-stmt__close-row td {
  background: #f8fafc;
  font-weight: 800;
}
.es-agent-stmt__bal {
  color: #0f766e;
}

.es-agent-stmt__link {
  border: none;
  background: #ecfdf5;
  border-radius: 8px;
  cursor: pointer;
  padding: 4px 8px;
}

.es-agent-stmt__empty {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  font-weight: 700;
}

.es-rep-stmt-btn {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 900px) {
  .es-agent-stmt__kpis {
    grid-template-columns: 1fr 1fr;
  }
  .es-agent-stmt__items {
    max-width: 140px;
  }
}
