/* EwoooC V2 analysis report workbench.
   Only visual shell/polish rules live here; chart data and business logic stay in templates/routes. */

body.momo-v2-body {
  padding-top: 0 !important;
  background: var(--momo-bg-body) !important;
  color: var(--momo-text-primary);
}

.analysis-workbench,
.daily-sales-page,
.monthly-analysis-page {
  --analysis-dot-size: 13px;
  --analysis-dot-ink: rgba(42, 37, 32, 0.075);
  --analysis-panel-bg:
    radial-gradient(circle at 10px 10px, var(--analysis-dot-ink) 1px, transparent 1px),
    linear-gradient(180deg, rgba(253, 250, 243, 0.98), rgba(243, 238, 226, 0.90));
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--momo-text-primary);
  font-family: var(--momo-font-family);
  font-size: var(--momo-font-size-base);
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

.analysis-workbench::selection,
.daily-sales-page::selection,
.monthly-analysis-page::selection {
  background: var(--momo-accent-100);
  color: var(--momo-ink-strong);
}

.analysis-workbench *,
.daily-sales-page *,
.monthly-analysis-page * {
  letter-spacing: 0;
}

.analysis-page-hero,
.daily-sales-hero,
.monthly-analysis-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--momo-border-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(250, 247, 240, 0.96), rgba(243, 238, 226, 0.86)),
    radial-gradient(circle at 18px 18px, rgba(42, 37, 32, 0.10) 1px, transparent 1px);
  background-size: auto, 18px 18px;
  box-shadow: var(--momo-shadow-soft);
}

.analysis-page-hero::before,
.daily-sales-hero::before,
.monthly-analysis-hero::before,
.analysis-workbench .card::before,
.daily-sales-page .card::before,
.monthly-analysis-page .card::before {
  pointer-events: none;
}

.analysis-page-title,
.daily-sales-title,
.monthly-analysis-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--momo-text-primary) !important;
  font-family: var(--momo-font-display);
  font-size: clamp(1.45rem, 2vw, 2.08rem);
  font-weight: 850;
  letter-spacing: 0;
}

.analysis-workbench .text-muted,
.daily-sales-page .text-muted,
.monthly-analysis-page .text-muted,
.analysis-workbench small,
.daily-sales-page small,
.monthly-analysis-page small,
.analysis-workbench .small,
.daily-sales-page .small,
.monthly-analysis-page .small {
  color: var(--momo-text-secondary) !important;
  font-size: max(var(--momo-text-body-sm), 0.8125rem) !important;
  line-height: 1.5;
}

.analysis-page-title i,
.daily-sales-title i,
.monthly-analysis-title i,
.analysis-page-title .text-info,
.daily-sales-title .text-info,
.monthly-analysis-title .text-info,
.daily-sales-page .page-header .daily-sales-title .text-info,
.analysis-workbench .card-header i,
.daily-sales-page .card-header i,
.monthly-analysis-page .card-header i {
  color: var(--momo-warm-caramel) !important;
}

.analysis-page-title > i,
.daily-sales-title > i,
.monthly-analysis-title > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 5px 5px, rgba(42, 37, 32, 0.12) 1px, transparent 1px),
    var(--momo-accent-100);
  background-size: 7px 7px, auto;
  color: var(--momo-warm-caramel) !important;
  font-size: 1rem !important;
}

.analysis-page-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.analysis-report-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--momo-border-light);
  border-radius: 8px;
  background: rgba(250, 247, 240, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.analysis-report-tabs-spacer {
  flex: 1 1 auto;
  min-width: 8px;
}

.analysis-report-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--momo-text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.analysis-report-tab:hover {
  border-color: var(--momo-border-light);
  background: var(--momo-bg-surface);
  color: var(--momo-text-primary);
}

.analysis-report-tab.is-active {
  border-color: rgba(201, 100, 66, 0.32);
  background: var(--momo-accent-soft);
  color: var(--momo-accent-700);
}

.analysis-report-tab.is-external {
  border-color: var(--momo-border-light);
  background: rgba(255, 252, 246, 0.62);
  font-family: var(--momo-font-family-mono);
  font-size: 0.78rem;
}

.analysis-report-tab i {
  color: currentColor !important;
}

.analysis-workbench .card,
.daily-sales-page .card,
.monthly-analysis-page .card {
  position: relative;
  border: 1px solid var(--momo-border-light) !important;
  border-radius: 8px !important;
  background: var(--analysis-panel-bg) !important;
  background-size: var(--analysis-dot-size) var(--analysis-dot-size), auto !important;
  box-shadow: var(--momo-shadow-soft) !important;
  overflow: hidden;
}

.analysis-workbench .card:hover,
.daily-sales-page .card:hover,
.monthly-analysis-page .card:hover {
  transform: none !important;
  box-shadow: 0 10px 26px rgba(42, 37, 32, 0.10) !important;
}

.analysis-workbench .card-header,
.daily-sales-page .card-header,
.monthly-analysis-page .card-header {
  border-bottom: 1px solid var(--momo-border-light) !important;
  background: rgba(243, 238, 226, 0.92) !important;
  color: var(--momo-text-primary) !important;
  font-family: var(--momo-font-family);
  font-size: var(--momo-text-title) !important;
  font-weight: 850;
  line-height: 1.35;
}

.analysis-workbench .card-body,
.daily-sales-page .card-body,
.monthly-analysis-page .card-body {
  background: rgba(255, 252, 246, 0.42);
  color: var(--momo-text-primary);
  font-size: var(--momo-font-size-base);
}

.analysis-workbench .bg-white,
.monthly-analysis-page .bg-white,
.daily-sales-page .bg-white {
  background: rgba(255, 252, 246, 0.76) !important;
  border: 1px solid var(--momo-border-light);
  box-shadow: none !important;
}

.analysis-workbench .form-label,
.daily-sales-page .form-label,
.monthly-analysis-page .form-label {
  color: var(--momo-text-secondary) !important;
  font-size: var(--momo-text-body-sm) !important;
  font-weight: 850;
}

.analysis-workbench .form-control,
.analysis-workbench .form-select,
.daily-sales-page .form-control,
.daily-sales-page .form-select,
.monthly-analysis-page .form-control,
.monthly-analysis-page .form-select,
.monthly-analysis-page .custom-dropdown-btn {
  min-height: 38px;
  border-color: var(--momo-border-light) !important;
  border-radius: 7px !important;
  background-color: var(--momo-bg-elevated) !important;
  color: var(--momo-text-primary) !important;
}

.analysis-workbench .form-control:focus,
.analysis-workbench .form-select:focus,
.daily-sales-page .form-control:focus,
.daily-sales-page .form-select:focus,
.monthly-analysis-page .form-control:focus,
.monthly-analysis-page .form-select:focus {
  border-color: var(--momo-border-focus) !important;
  box-shadow: 0 0 0 3px rgba(201, 100, 66, 0.14) !important;
}

.analysis-workbench .btn-primary,
.daily-sales-page .btn-primary,
.monthly-analysis-page .btn-primary {
  border-color: var(--momo-accent) !important;
  background: var(--momo-accent) !important;
  color: var(--momo-text-inverse) !important;
}

.analysis-workbench .btn-outline-secondary,
.daily-sales-page .btn-outline-secondary,
.monthly-analysis-page .btn-outline-secondary {
  border-color: var(--momo-border-light) !important;
  color: var(--momo-text-secondary) !important;
}

.analysis-workbench .badge,
.daily-sales-page .badge,
.monthly-analysis-page .badge {
  border: 1px solid var(--momo-tag-muted-border);
  border-radius: 999px;
  background: var(--momo-tag-muted-bg);
  color: var(--momo-tag-muted-text);
  font-family: var(--momo-font-family-mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.analysis-workbench .badge.bg-primary,
.daily-sales-page .badge.bg-primary,
.monthly-analysis-page .badge.bg-primary,
.analysis-workbench .badge.bg-info,
.daily-sales-page .badge.bg-info,
.monthly-analysis-page .badge.bg-info {
  border-color: var(--momo-tag-caramel-border) !important;
  background: var(--momo-tag-caramel-bg) !important;
  color: var(--momo-tag-caramel-text) !important;
}

.analysis-workbench .badge.bg-success,
.daily-sales-page .badge.bg-success,
.monthly-analysis-page .badge.bg-success {
  border-color: var(--momo-tag-success-border) !important;
  background: var(--momo-tag-success-bg) !important;
  color: var(--momo-tag-success-text) !important;
}

.analysis-workbench .badge.bg-warning,
.daily-sales-page .badge.bg-warning,
.monthly-analysis-page .badge.bg-warning {
  border-color: var(--momo-tag-honey-border) !important;
  background: var(--momo-tag-honey-bg) !important;
  color: var(--momo-tag-honey-text) !important;
}

.analysis-workbench .badge.bg-danger,
.daily-sales-page .badge.bg-danger,
.monthly-analysis-page .badge.bg-danger {
  border-color: var(--momo-tag-rust-border) !important;
  background: var(--momo-tag-rust-bg) !important;
  color: var(--momo-tag-rust-text) !important;
}

.analysis-workbench .badge.bg-dark,
.daily-sales-page .badge.bg-dark,
.monthly-analysis-page .badge.bg-dark,
.analysis-workbench .badge.bg-secondary,
.daily-sales-page .badge.bg-secondary,
.monthly-analysis-page .badge.bg-secondary {
  border-color: var(--momo-tag-ink-border) !important;
  background: var(--momo-tag-ink-bg) !important;
  color: var(--momo-tag-ink-text) !important;
}

.analysis-workbench .text-primary,
.daily-sales-page .text-primary,
.monthly-analysis-page .text-primary {
  color: var(--momo-warm-caramel) !important;
}

.analysis-workbench .text-success,
.daily-sales-page .text-success,
.monthly-analysis-page .text-success,
.trend-up {
  color: var(--momo-success) !important;
}

.analysis-workbench .text-danger,
.daily-sales-page .text-danger,
.monthly-analysis-page .text-danger,
.trend-down {
  color: var(--momo-danger) !important;
}

.analysis-workbench .kpi-card,
.daily-sales-page .kpi-card,
.monthly-analysis-page .kpi-card {
  --kpi-accent: var(--momo-warm-caramel);
  --kpi-accent-soft: var(--momo-warm-caramel-soft);
  position: relative;
  min-height: 142px;
  border: 1px solid rgba(42, 37, 32, 0.22) !important;
  border-left: 5px solid var(--kpi-accent) !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 12px 12px, rgba(42, 37, 32, 0.095) 1px, transparent 1px),
    linear-gradient(135deg, rgba(253, 250, 243, 0.98), rgba(243, 238, 226, 0.92)) !important;
  background-size: 12px 12px, auto !important;
  color: var(--momo-text-primary) !important;
  box-shadow: 0 9px 22px rgba(42, 37, 32, 0.08) !important;
  transform: none !important;
}

.analysis-workbench .kpi-card.bg-primary,
.daily-sales-page .kpi-card.bg-primary,
.monthly-analysis-page .kpi-card.bg-primary {
  --kpi-accent: var(--momo-warm-caramel);
  --kpi-accent-soft: var(--momo-warm-caramel-soft);
}

.analysis-workbench .kpi-card.bg-danger,
.daily-sales-page .kpi-card.bg-danger,
.monthly-analysis-page .kpi-card.bg-danger {
  --kpi-accent: var(--momo-warm-rust);
  --kpi-accent-soft: var(--momo-warm-rust-soft);
}

.analysis-workbench .kpi-card.bg-success,
.daily-sales-page .kpi-card.bg-success,
.monthly-analysis-page .kpi-card.bg-success {
  --kpi-accent: var(--momo-success);
  --kpi-accent-soft: var(--momo-success-bg);
}

.analysis-workbench .kpi-card.bg-warning,
.daily-sales-page .kpi-card.bg-warning,
.monthly-analysis-page .kpi-card.bg-warning {
  --kpi-accent: var(--momo-warm-honey);
  --kpi-accent-soft: var(--momo-warm-honey-soft);
}

.analysis-workbench .kpi-card.bg-info,
.daily-sales-page .kpi-card.bg-info,
.monthly-analysis-page .kpi-card.bg-info {
  --kpi-accent: var(--momo-warm-earth);
  --kpi-accent-soft: var(--momo-warm-earth-soft);
}

.analysis-workbench .kpi-card.bg-secondary,
.analysis-workbench .kpi-card.bg-purple,
.daily-sales-page .kpi-card.bg-secondary,
.daily-sales-page .kpi-card.bg-purple,
.monthly-analysis-page .kpi-card.bg-secondary,
.monthly-analysis-page .kpi-card.bg-purple {
  --kpi-accent: var(--momo-warm-mahogany);
  --kpi-accent-soft: var(--momo-warm-mahogany-soft);
}

.analysis-workbench .kpi-card::after,
.daily-sales-page .kpi-card::after,
.monthly-analysis-page .kpi-card::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  content: "";
  opacity: 0.6;
  background-image:
    radial-gradient(circle, var(--kpi-accent) 1.4px, transparent 1.4px);
  background-size: 8px 8px;
  mask-image: linear-gradient(135deg, transparent 0 12%, #000 20% 82%, transparent 100%);
}

.analysis-workbench .kpi-card:hover,
.daily-sales-page .kpi-card:hover,
.monthly-analysis-page .kpi-card:hover {
  border-color: rgba(42, 37, 32, 0.30) !important;
  box-shadow: 0 12px 26px rgba(42, 37, 32, 0.11) !important;
}

.analysis-workbench .kpi-card .card-body,
.daily-sales-page .kpi-card .card-body,
.monthly-analysis-page .kpi-card .card-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px !important;
  background: transparent !important;
  color: var(--momo-text-primary) !important;
}

.analysis-workbench .kpi-card .kpi-label,
.daily-sales-page .kpi-card .kpi-label,
.monthly-analysis-page .kpi-card .kpi-label,
.analysis-workbench .kpi-card .text-white-50,
.daily-sales-page .kpi-card .text-white-50,
.monthly-analysis-page .kpi-card .text-white-50,
.analysis-workbench .kpi-card .text-black-50,
.daily-sales-page .kpi-card .text-black-50,
.monthly-analysis-page .kpi-card .text-black-50 {
  color: var(--momo-text-secondary) !important;
  font-family: var(--momo-font-family);
  font-size: 0.82rem !important;
  font-weight: 850 !important;
  line-height: 1.35;
  text-transform: none !important;
}

.analysis-workbench .kpi-card .kpi-value,
.daily-sales-page .kpi-card .kpi-value,
.monthly-analysis-page .kpi-card .kpi-value {
  margin: 7px 0 8px;
  color: var(--momo-text-primary) !important;
  font-family: var(--momo-font-family-mono) !important;
  font-size: clamp(1.78rem, 2.55vw, 2.42rem) !important;
  font-weight: 900 !important;
  line-height: 1.04;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  font-variant-numeric: tabular-nums;
}

.analysis-workbench .kpi-card .icon-bg,
.daily-sales-page .kpi-card .icon-bg,
.monthly-analysis-page .kpi-card .icon-bg {
  right: 12px !important;
  bottom: 4px !important;
  color: var(--kpi-accent) !important;
  font-size: 5.2rem !important;
  opacity: 0.14 !important;
  transform: rotate(-10deg) !important;
}

.analysis-workbench .kpi-card .badge,
.daily-sales-page .kpi-card .badge,
.monthly-analysis-page .kpi-card .badge,
.analysis-workbench .kpi-card .kpi-percent,
.daily-sales-page .kpi-card .kpi-percent,
.monthly-analysis-page .kpi-card .kpi-percent {
  border: 1px solid color-mix(in srgb, var(--kpi-accent) 28%, transparent) !important;
  border-radius: 999px !important;
  background: var(--kpi-accent-soft) !important;
  color: var(--momo-text-primary) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-family: var(--momo-font-family-mono) !important;
  font-size: 0.74rem !important;
  font-weight: 850 !important;
  line-height: 1.2;
}

.analysis-workbench .kpi-card .small,
.daily-sales-page .kpi-card .small,
.monthly-analysis-page .kpi-card .small,
.analysis-workbench .kpi-card .text-white,
.daily-sales-page .kpi-card .text-white,
.monthly-analysis-page .kpi-card .text-white,
.analysis-workbench .kpi-card .text-dark,
.daily-sales-page .kpi-card .text-dark,
.monthly-analysis-page .kpi-card .text-dark {
  color: var(--momo-text-secondary) !important;
}

.analysis-workbench .table,
.daily-sales-page .table,
.monthly-analysis-page .table {
  margin-bottom: 0;
  color: var(--momo-text-primary);
  font-size: var(--momo-text-body-sm);
}

.analysis-workbench .table thead th,
.daily-sales-page .table thead th,
.monthly-analysis-page .table thead th {
  border-bottom: 1px solid var(--momo-border-light) !important;
  background: var(--momo-bg-paper) !important;
  color: var(--momo-text-secondary) !important;
  font-family: var(--momo-font-family-mono);
  font-size: 0.76rem;
  font-weight: 900;
}

.analysis-workbench .table tbody td,
.daily-sales-page .table tbody td,
.monthly-analysis-page .table tbody td {
  color: var(--momo-text-primary);
  font-size: var(--momo-text-body-sm);
  line-height: 1.45;
}

.analysis-workbench .table .text-secondary,
.daily-sales-page .table .text-secondary,
.monthly-analysis-page .table .text-secondary {
  color: var(--momo-text-secondary) !important;
}

.analysis-workbench .dataTables_wrapper,
.daily-sales-page .dataTables_wrapper,
.monthly-analysis-page .dataTables_wrapper {
  width: 100%;
  overflow-x: auto;
  color: var(--momo-text-secondary);
}

.analysis-workbench .dataTables_wrapper .dataTables_filter input,
.analysis-workbench .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--momo-border-light);
  border-radius: 7px;
  background: var(--momo-bg-elevated);
}

.analysis-filter-panel,
.analysis-workbench .filter-section,
.monthly-analysis-page .filter-section {
  border: 1px solid rgba(201, 100, 66, 0.18) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(42, 37, 32, 0.94), rgba(70, 50, 38, 0.92)) !important;
  box-shadow: var(--momo-shadow-medium) !important;
}

.analysis-workbench canvas,
.daily-sales-page canvas,
.monthly-analysis-page canvas {
  max-width: 100%;
}

.analysis-workbench .card-body:has(canvas),
.daily-sales-page .card-body:has(canvas),
.monthly-analysis-page .card-body:has(canvas) {
  position: relative;
}

.analysis-workbench .card-body:has(canvas)::before,
.daily-sales-page .card-body:has(canvas)::before,
.monthly-analysis-page .card-body:has(canvas)::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(42, 37, 32, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(253, 250, 243, 0.42), rgba(243, 238, 226, 0.16));
  background-size: 13px 13px, auto;
  opacity: 0.55;
}

.analysis-workbench .card-body canvas,
.daily-sales-page .card-body canvas,
.monthly-analysis-page .card-body canvas,
.monthly-analysis-page [id$="Chart"] {
  position: relative;
  z-index: 1;
}

.monthly-analysis-page [id$="Chart"],
.monthly-analysis-page #divisionDistChartTable,
.analysis-workbench .chart-container,
.daily-sales-page .chart-container {
  border-radius: 7px;
  background:
    radial-gradient(circle at 8px 8px, rgba(42, 37, 32, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(253, 250, 243, 0.56), rgba(243, 238, 226, 0.24));
  background-size: 14px 14px, auto;
}

.analysis-workbench .card h1,
.analysis-workbench .card h2,
.analysis-workbench .card h3,
.analysis-workbench .card h4,
.analysis-workbench .card h5,
.analysis-workbench .card h6,
.daily-sales-page .card h1,
.daily-sales-page .card h2,
.daily-sales-page .card h3,
.daily-sales-page .card h4,
.daily-sales-page .card h5,
.daily-sales-page .card h6,
.monthly-analysis-page .card h1,
.monthly-analysis-page .card h2,
.monthly-analysis-page .card h3,
.monthly-analysis-page .card h4,
.monthly-analysis-page .card h5,
.monthly-analysis-page .card h6 {
  color: var(--momo-text-primary) !important;
  font-family: var(--momo-font-family) !important;
  font-size: var(--momo-text-title) !important;
  font-weight: 850 !important;
}

.analysis-workbench [style*="color: #"],
.daily-sales-page [style*="color: #"],
.monthly-analysis-page [style*="color: #"] {
  color: var(--momo-text-primary);
}

.analysis-workbench .table-responsive,
.daily-sales-page .table-responsive,
.monthly-analysis-page .table-responsive {
  border-radius: 7px;
}

/* Daily sales calendar: replace the legacy purple calendar with V2 warm-paper analytics UI. */
.daily-sales-page .page-header {
  border: 1px solid var(--momo-border-strong) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(250, 247, 240, 0.96), rgba(243, 238, 226, 0.88)),
    radial-gradient(circle at 18px 18px, rgba(42, 37, 32, 0.10) 1px, transparent 1px) !important;
  background-size: auto, 18px 18px !important;
  box-shadow: var(--momo-shadow-soft) !important;
}

.daily-sales-page .page-header h4,
.daily-sales-page .page-header h1,
.daily-sales-page .page-header .page-header-label {
  color: var(--momo-text-primary) !important;
  text-shadow: none !important;
}

.daily-sales-page .page-header-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.daily-sales-page .calendar-container {
  position: relative;
  padding: 22px !important;
  border: 1px solid var(--momo-border-strong) !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 15px 15px, rgba(42, 37, 32, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(250, 247, 240, 0.98), rgba(243, 238, 226, 0.92)) !important;
  background-size: 15px 15px, auto !important;
  box-shadow: var(--momo-shadow-soft) !important;
  color: var(--momo-text-primary) !important;
}

.daily-sales-page .calendar-header {
  gap: 16px;
  padding-bottom: 16px !important;
  border-bottom: 1px solid var(--momo-border-light) !important;
}

.daily-sales-page .calendar-header h5 {
  color: var(--momo-text-primary) !important;
  font-family: var(--momo-font-display) !important;
  font-size: clamp(1.05rem, 1.35vw, 1.32rem) !important;
  font-weight: 850 !important;
  line-height: 1.3;
}

.daily-sales-page .calendar-header h5:hover,
.daily-sales-page .calendar-header h5:hover i {
  color: var(--momo-accent-700) !important;
  transform: none !important;
}

.daily-sales-page .calendar-nav button {
  min-height: 38px;
  border: 1px solid rgba(42, 37, 32, 0.22) !important;
  border-radius: 7px !important;
  background:
    linear-gradient(135deg, rgba(42, 37, 32, 0.95), rgba(77, 55, 41, 0.92)) !important;
  color: var(--momo-text-inverse) !important;
  box-shadow: 0 8px 18px rgba(42, 37, 32, 0.13) !important;
  font-size: var(--momo-text-body-sm) !important;
  font-weight: 850 !important;
}

.daily-sales-page .calendar-nav button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 24px rgba(42, 37, 32, 0.16) !important;
}

.daily-sales-page .calendar-grid {
  gap: 7px !important;
}

.daily-sales-page .calendar-weekday {
  padding: 9px 6px !important;
  border: 1px solid var(--momo-border-light);
  border-radius: 6px;
  background: rgba(42, 37, 32, 0.06);
  color: var(--momo-text-secondary) !important;
  font-family: var(--momo-font-family-mono);
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  text-transform: none !important;
}

.daily-sales-page .calendar-day {
  min-height: 128px !important;
  padding: 11px 10px !important;
  border: 1px solid rgba(42, 37, 32, 0.15) !important;
  border-radius: 8px !important;
  background: rgba(255, 252, 246, 0.92) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  color: var(--momo-text-primary) !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease !important;
}

.daily-sales-page .calendar-day:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(201, 100, 66, 0.45) !important;
  background: rgba(253, 250, 243, 0.98) !important;
  box-shadow: 0 10px 22px rgba(42, 37, 32, 0.10) !important;
}

.daily-sales-page .calendar-day.has-data {
  border-color: rgba(201, 100, 66, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(253, 250, 243, 0.98), rgba(250, 247, 240, 0.90)) !important;
}

.daily-sales-page .calendar-day.has-data::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: var(--momo-warm-caramel);
  opacity: 0.7;
}

.daily-sales-page .calendar-day.other-month {
  opacity: 0.45 !important;
  background: rgba(226, 220, 207, 0.34) !important;
}

.daily-sales-page .calendar-day.selected {
  border-width: 2px !important;
  border-color: var(--momo-accent) !important;
  background:
    linear-gradient(180deg, rgba(245, 225, 217, 0.92), rgba(253, 250, 243, 0.96)) !important;
  box-shadow: 0 0 0 3px rgba(201, 100, 66, 0.16), 0 12px 26px rgba(42, 37, 32, 0.14) !important;
  transform: none !important;
  animation: none !important;
}

.daily-sales-page .calendar-day.selected::before {
  top: 8px !important;
  right: 8px !important;
  width: 22px !important;
  height: 22px !important;
  background: var(--momo-accent) !important;
  color: var(--momo-text-inverse) !important;
  font-size: 0.82rem !important;
  box-shadow: 0 6px 14px rgba(201, 100, 66, 0.24) !important;
}

.daily-sales-page .calendar-day-header {
  align-items: baseline !important;
  gap: 7px !important;
  min-height: 28px;
  margin-bottom: 7px !important;
}

.daily-sales-page .calendar-day-number {
  color: var(--momo-text-primary) !important;
  font-family: var(--momo-font-family-mono) !important;
  font-size: 1.32rem !important;
  font-weight: 900 !important;
  line-height: 1;
}

.daily-sales-page .calendar-day.selected .calendar-day-number {
  color: var(--momo-accent-700) !important;
}

.daily-sales-page .calendar-day-holiday {
  border: 1px solid var(--momo-danger-border);
  border-radius: 999px !important;
  background: var(--momo-danger-bg) !important;
  color: var(--momo-danger-text) !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
}

.daily-sales-page .calendar-day-kpi {
  display: grid;
  gap: 4px;
  color: var(--momo-text-primary) !important;
  font-family: var(--momo-font-family);
  font-size: 0.82rem !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

.daily-sales-page .calendar-day-kpi > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  border-bottom: 1px solid rgba(42, 37, 32, 0.06);
  color: var(--momo-text-primary) !important;
  font-variant-numeric: tabular-nums;
}

.daily-sales-page .calendar-day-kpi .label {
  flex: 0 0 auto;
  color: var(--momo-text-secondary) !important;
  font-size: 0.75rem !important;
  font-weight: 850 !important;
}

.daily-sales-page .calendar-day-kpi .margin-rate {
  color: var(--momo-text-secondary) !important;
  font-family: var(--momo-font-family-mono);
  font-size: 0.75rem !important;
  font-weight: 800 !important;
}

.daily-sales-page .calendar-day-badge {
  top: 8px !important;
  right: 8px !important;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  font-family: var(--momo-font-family-mono);
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.daily-sales-page .calendar-day.has-data.dod-up .calendar-day-badge {
  border: 1px solid var(--momo-danger-border) !important;
  background: var(--momo-danger-bg) !important;
  color: var(--momo-danger-text) !important;
}

.daily-sales-page .calendar-day.has-data.dod-down .calendar-day-badge {
  border: 1px solid var(--momo-success-border) !important;
  background: var(--momo-success-bg) !important;
  color: var(--momo-success-text) !important;
}

.daily-sales-page .calendar-day.is-weekend {
  border-color: rgba(138, 90, 43, 0.26) !important;
  background: linear-gradient(180deg, rgba(237, 228, 210, 0.64), rgba(253, 250, 243, 0.92)) !important;
}

.daily-sales-page .calendar-day.is-holiday {
  border-color: var(--momo-danger-border) !important;
  background: linear-gradient(180deg, rgba(240, 216, 212, 0.72), rgba(253, 250, 243, 0.92)) !important;
}

.daily-sales-page .date-selector {
  border: 1px solid var(--momo-border-light) !important;
  border-radius: 7px !important;
  background: var(--momo-bg-elevated) !important;
  color: var(--momo-text-primary) !important;
  font-family: var(--momo-font-family-mono);
  font-size: var(--momo-text-body-sm) !important;
  font-weight: 800;
  box-shadow: none !important;
}

.daily-sales-page .kpi-card .card-body {
  background: transparent;
  color: var(--momo-text-primary) !important;
}

.daily-sales-page .kpi-value {
  font-size: clamp(1.55rem, 2.2vw, 2.2rem) !important;
  line-height: 1.15;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  font-variant-numeric: tabular-nums;
}

.daily-sales-page .kpi-label {
  color: var(--momo-text-secondary) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.03em;
}

.daily-sales-page .kpi-percent {
  border: 1px solid color-mix(in srgb, var(--kpi-accent, var(--momo-accent)) 28%, transparent);
  background: var(--kpi-accent-soft, var(--momo-accent-soft)) !important;
  color: var(--momo-text-primary) !important;
  font-size: 0.82rem !important;
  text-shadow: none !important;
}

@supports selector(:has(*)) {
  .analysis-workbench .card-body:has(> table),
  .daily-sales-page .card-body:has(> table),
  .monthly-analysis-page .card-body:has(> table) {
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .analysis-page-hero,
  .daily-sales-hero,
  .monthly-analysis-hero {
    grid-template-columns: 1fr;
  }

  .analysis-page-meta {
    justify-content: flex-start;
  }

  .analysis-report-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

  .analysis-report-tab {
    flex: 0 0 auto;
  }

  .analysis-report-tabs-spacer {
    display: none;
  }

  .analysis-workbench,
  .daily-sales-page,
  .monthly-analysis-page {
    font-size: var(--momo-text-body);
  }

  .analysis-workbench .card-header,
  .daily-sales-page .card-header,
  .monthly-analysis-page .card-header {
    align-items: flex-start !important;
    gap: 8px;
  }

  .daily-sales-page .page-header-controls {
    justify-content: flex-start;
  }

  .daily-sales-page .calendar-container {
    padding: 14px !important;
  }

  .daily-sales-page .calendar-header {
    align-items: stretch !important;
  }

  .daily-sales-page .calendar-nav {
    width: 100%;
  }

  .daily-sales-page .calendar-nav button {
    flex: 1 1 0;
    padding: 0.5rem 0.7rem !important;
  }

  .daily-sales-page .calendar-grid {
    min-width: 760px !important;
  }

  .daily-sales-page .calendar-day {
    min-height: 122px !important;
    padding: 10px 9px !important;
  }

  .daily-sales-page .calendar-day-number {
    font-size: 1.22rem !important;
  }

  .daily-sales-page .calendar-day-kpi {
    font-size: 0.80rem !important;
  }

  .daily-sales-page .calendar-day-kpi .label,
  .daily-sales-page .calendar-day-kpi .margin-rate {
    font-size: 0.75rem !important;
  }

  .daily-sales-page .calendar-container::after {
    border: 1px solid var(--momo-border-light) !important;
    border-radius: 999px !important;
    background: rgba(255, 252, 246, 0.78) !important;
    color: var(--momo-text-secondary) !important;
    font-family: var(--momo-font-family-mono);
    font-size: 0.72rem !important;
    font-weight: 800;
  }
}
