/* Surfaces stay flat; elevation is reserved for dialogs and feedback. */
:root  {
  --bg-canvas: #f6f7f3;
  --bg-sidebar: #192c23;
  --bg-surface: #fff;
  --bg-surface-subtle: #f5f6f2;
  --bg-surface-hover: #f1f4ed;
  --border-subtle: #e1e5db;
  --border-medium: #b9c2b4;
  --text-primary: #202b23;
  --text-secondary: #526052;
  --text-muted: #647160;
  --accent-brand: #235c46;
  --accent-brand-hover: #194a37;
  --accent-emerald: #276443;
  --accent-emerald-bg: #ecf3e7;
  --accent-amber: #886326;
  --accent-amber-bg: #f7f0df;
  --accent-rose: #a94338;
  --accent-rose-bg: #fbefec;
  --chart-modal: #849677;
  --chart-surplus: #377455;
  --chart-omzet: #235c46;
  --font-base: 'DM Sans', 'Segoe UI', sans-serif;
}

*, *::before, *::after  {
  box-sizing: border-box;
}

html  {
  scroll-padding-top: 85px;
}

body  {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font: 14px/1.5 var(--font-base);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,p  {
  margin: 0;
}

button,input,select  {
  font: inherit;
}

button,select,a  {
  -webkit-tap-highlight-color: transparent;
}

button,select  {
  cursor: pointer;
}

button  {
  color: inherit;
}

button:disabled  {
  cursor: default;
  opacity: .45;
}

input,select  {
  min-width: 0;
  max-width: 100%;
}

input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,[tabindex]:focus-visible  {
  outline: 2px solid var(--accent-brand);
  outline-offset: 3px;
}

button,a,input,select  {
  transition: background-color 160ms, border-color 160ms, color 160ms, opacity 160ms;
}

[hidden]  {
  display: none !important;
}

.icon-definitions  {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon,.sort-icon  {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

.sort-icon  {
  width: 13px;
  height: 13px;
  opacity: .55;
}

.muted-icon  {
  color: var(--text-muted);
}

.skip-link  {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: white;
  color: var(--accent-brand);
  border-radius: 6px;
}

.skip-link:focus  {
  top: 12px;
}

.app-layout  {
  display: flex;
  min-height: 100dvh;
  background: var(--bg-sidebar);
}

.sidebar  {
  flex: 0 0 272px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
  color: #e4eadf;
  background: var(--bg-sidebar);
}

.sidebar :focus-visible  {
  outline-color: #c9ddae;
}

.brand  {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 4px;
  min-height: 52px;
}

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

.brand-top-tools  {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  flex-shrink: 0;
}

.brand-date-pill  {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #a4bea8;
  letter-spacing: 0.1px;
  min-width: 0;
  white-space: nowrap;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  line-height: 1;
}

.brand-date-pill:hover  {
  color: #ffffff;
}

.date-sep  {
  opacity: 0.45;
  font-size: 10px;
  margin: 0 1px;
  color: #a4bea8;
}

.brand-date-pill .date-full  {
  display: inline;
}

.brand-date-pill .date-short  {
  display: none;
}

.date-live-dot  {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.8);
  flex-shrink: 0;
  animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse  {
  0%, 100%  { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.4; transform: scale(0.8); }
}

.date-badge-pill  {
  font-size: 11px;
  font-weight: 500;
  color: #bde4c3;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  white-space: nowrap;
}

.brand-top-tools .privacy-btn  {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #a4bea8;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 150ms ease, transform 150ms ease;
}

.brand-top-tools .privacy-btn:hover  {
  color: #ffffff;
  transform: scale(1.1);
}

.brand-top-tools .privacy-btn:active  {
  transform: scale(0.9);
}

.brand-top-tools .privacy-btn svg  {
  width: 14.5px;
  height: 14.5px;
}

.day-date-tag  {
  font-size: 11px;
  font-weight: 500;
  color: #426053;
  background: rgba(25, 44, 35, 0.08);
  border: 1px solid rgba(25, 44, 35, 0.12);
  padding: 1.5px 8px;
  border-radius: 6px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.1px;
}

.brand-avatar-link  {
  display: flex;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 160ms cubic-bezier(0.4, 0, 0.2, 1), filter 160ms ease;
  cursor: pointer;
}

.brand-avatar-link:hover  {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.brand-avatar-link:active  {
  transform: scale(0.95);
}

.brand-avatar  {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 20%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  display: block;
}

.brand-text-block  {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-title,
.brand-name  {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.35px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand-title span,
.brand-name span  {
  color: #bbcdbd;
  font-weight: 400;
  margin-left: 4px;
}

.brand-handle  {
  font-size: 11.5px;
  font-weight: 450;
  letter-spacing: .05px;
  color: #a2bca5;
  text-decoration: none;
  width: max-content;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: color 150ms ease, opacity 150ms ease;
  line-height: 1.2;
}

.brand-handle:hover  {
  color: #ffffff;
  text-decoration: underline;
}

.brand-bini  {
  color: #c4dec7;
  font-weight: 400;
  opacity: 0.9;
  display: inline !important;
  white-space: nowrap !important;
}

.brand-handle:active  {
  opacity: 0.75;
}

.workspace-label  {
  color: #b5c4b6;
  font-size: 12px;
  margin: 43px 12px 12px;
}

.side-nav  {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-link  {
  min-height: 44px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #bfcfbe;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
}

.nav-link:hover  {
  background: #243d2f;
  color: white;
}

.nav-link.active  {
  color: #f4faed;
  background: #34543b;
}

.nav-link.active .icon  {
  color: #d5e6b8;
}

.mobile-bottom-nav  {
  display: none;
}

.status-indicator-dot  {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}

.surplus-val  {
  color: #d9e9bf;
}

.sidebar-bottom  {
  margin-top: auto;
  border-top: 1px solid #3a4b3e;
  padding: 20px 9px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sheet-source  {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-source .icon  {
  color: #d5e6b8;
}

.sheet-source strong  {
  display: block;
  font-size: 12px;
  font-weight: 550;
}

.sheet-source span  {
  font-size: 11px;
  color: #b5c4b6;
}

.sidebar-day  {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #b5c4b6;
}

.sidebar-day strong  {
  font-weight: 550;
  color: #e4eadf;
}

.workspace-signature  {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bdccb9;
  font-size: 11px;
}

.workspace-signature small  {
  display: block;
  font-size: 11px;
}

.status-indicator-dot  {
  color: #a0b39a;
}

.workspace-main  {
  flex: 1;
  min-width: 0;
  background: var(--bg-canvas);
}

.app-top-header  {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 70px;
  padding: 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(246, 248, 245, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.breadcrumb  {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.breadcrumb strong  {
  font-weight: 500;
  color: var(--text-primary);
}

.breadcrumb-slash  {
  color: #86927e;
}

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

.header-date  {
  font-size: 12px;
  color: var(--text-muted);
}

.sync-progress-bar  {
  position: fixed;
  top: 0;
  height: 2px;
  z-index: 100;
  background: var(--accent-brand);
  transition: width 200ms,opacity 160ms;
}

.main-content  {
  width: 100%;
  max-width: 1530px;
  margin: auto;
  padding: 32px 34px 20px;
}

.spa-view  {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  animation: view-in 180ms ease-out;
}

.spa-view:not(.active)  {
  display: none;
}

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

.eyebrow  {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.page-intro h1  {
  font-size: clamp(27px,2.35vw,36px);
  font-weight: 550;
  letter-spacing: -1.3px;
  line-height: 1.15;
}

.heading-period  {
  display: none;
}

.page-subtitle  {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 10px;
}

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

.btn  {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font: 550 12px/1.3 var(--font-base);
  white-space: nowrap;
}

.btn-primary  {
  color: white;
  background: var(--accent-brand);
  border-color: var(--accent-brand);
}

.btn-primary:hover:not(:disabled)  {
  background: var(--accent-brand-hover);
}

.btn-secondary  {
  background: white;
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled)  {
  background: var(--bg-surface-hover);
}

.btn-quiet  {
  background: transparent;
  color: var(--text-secondary);
}

.btn-quiet:hover  {
  background: #e9eee3;
}

.btn-icon  {
  min-width: 44px;
  padding: 10px;
  background: transparent;
}

.btn-icon:hover  {
  background: var(--bg-surface-hover);
}

.btn:active:not(:disabled)  {
  filter: brightness(.95);
}

.btn-quiet.is-loading .icon  {
  animation: spin 800ms linear infinite;
}

.section-meta  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.meta-divider  {
  padding: 0 6px;
  color: #a5af9d;
}

.sync-live-badge  {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.sync-live-badge.success  {
  color: var(--accent-brand);
}

.sync-live-badge.error  {
  color: var(--accent-rose);
}

.sync-spinner  {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.loading .sync-spinner  {
  width: 10px;
  height: 10px;
  background: none;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  animation: spin 800ms linear infinite;
}

.dashboard-notice  {
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid #dfc3a6;
  border-radius: 6px;
  color: #755025;
  background: #faf2e5;
  font-size: 13px;
}

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

.kpi-banner-card  {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  background: white;
}

.kpi-banner-card.kpi-featured  {
  background: #244e38;
  border-color: #244e38;
  color: white;
}

.card-meta-label  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.card-meta-label .icon  {
  width: 16px;
  height: 16px;
  color: #82907c;
}

.metric-symbol  {
  font-size: 12px;
  color: #dce8c7;
}

.kpi-featured .card-meta-label  {
  color: #e0e9d5;
}

.card-hero-number  {
  font-size: clamp(21px,2.05vw,32px);
  font-weight: 550;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 15px 0 19px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.card-footer-row  {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 11px;
}

.card-footer-row strong  {
  color: var(--text-primary);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.card-footer-row strong.caution  {
  color: var(--accent-amber);
}

.kpi-featured .card-footer-row  {
  border-color: #507059;
  color: #d7e4c8;
}

.kpi-featured .card-footer-row strong  {
  color: #f1f5df;
}

.shimmer-loading  {
  color: transparent !important;
  background: #e6eadf;
  border-radius: 4px;
  animation: loading 1.4s ease-in-out infinite;
}

.kpi-featured .shimmer-loading  {
  background: #44684b;
}

.dashboard-split-grid  {
  display: grid;
  grid-template-columns: minmax(0,2.05fr) minmax(285px,1fr);
  gap: 18px;
  align-items: stretch;
}

.dashboard-bottom-grid  {
  display: grid;
  grid-template-columns: minmax(0,2.3fr) minmax(270px,1fr);
  gap: 18px;
  align-items: start;
}

.saas-card  {
  min-width: 0;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 22px;
}

.card-header-bar  {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.card-header-bar h2  {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.35px;
  font-weight: 600;
}

.card-subheading  {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.chart-header-controls  {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.range-control  {
  display: inline-flex;
  align-items: center;
  background: #f3f5ef;
  border-radius: 6px;
  padding: 3px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.range-control::-webkit-scrollbar  {
  display: none;
}

.range-presets,
.range-months  {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.range-divider  {
  width: 1px;
  height: 18px;
  background: #d8ded2;
  margin: 0 4px;
  flex-shrink: 0;
}

.range-control button  {
  min-height: 34px;
  min-width: 40px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.range-control button.active  {
  background: white;
  color: var(--accent-brand);
  border-color: var(--border-subtle);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.range-control button:hover:not(.active)  {
  color: var(--accent-brand);
  background: #e9eddf;
}

.month-label-short  {
  display: none;
}

@media (max-width: 640px) {
  .month-label-full  {
    display: none;
  }
  .month-label-short  {
    display: inline;
  }
  .range-control button  {
    padding: 6px 8px;
    font-size: 10.5px;
    min-width: 34px;
  }
}

.zoom-btn-group  {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px;
}

.btn-zoom  {
  padding: 7px;
  min-width: 32px;
  min-height: 34px;
  color: var(--text-muted);
  background: transparent;
}

.btn-zoom:hover:not(:disabled)  {
  background: var(--bg-surface-hover);
}

.btn-zoom .icon  {
  width: 15px;
  height: 15px;
}

.chart-meta  {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.chart-total  {
  display: block;
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -.7px;
  font-variant-numeric: tabular-nums;
}

.chart-period  {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.chart-totals-group  {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.chart-stat-block  {
  display: flex;
  flex-direction: column;
}

.chart-surplus-val  {
  color: #1f633d;
}

.chart-surplus-val.is-negative  {
  color: #b33927;
}

.chart-series  {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.chart-series button  {
  min-height: 34px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
}

.chart-series button:hover  {
  background: var(--bg-surface-subtle);
}

.chart-series button.is-muted  {
  opacity: .55;
  text-decoration: line-through;
}

.series-dot,.legend-dot  {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}

.series-omzet  {
  background: var(--chart-omzet);
}

.series-modal  {
  background: var(--chart-modal);
}

.series-surplus  {
  background: var(--chart-surplus);
}

.series-deficit  {
  background: #b95c48;
}

.series-legend-note  {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 7px;
}

.chart-container-fluid  {
  position: relative;
  width: 100%;
  height: 270px;
}

.chart-container-large  {
  height: 410px;
}

.chart-container-fluid canvas  {
  max-width: 100%;
}

.chart-empty  {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text-muted);
  text-align: center;
  background: white;
  font-size: 13px;
}

.chart-footnote  {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin-top: 17px;
  font-size: 10px;
  color: var(--text-muted);
}

.zoom-badge-info  {
  font-variant-numeric: tabular-nums;
}

.operational-panel-card .card-header-bar  {
  margin-bottom: 18px;
}

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

.day-picker-container label  {
  font-size: 12px;
  color: var(--text-muted);
}

select  {
  border: 1px solid var(--border-medium);
  border-radius: 5px;
  color: var(--text-primary);
  background: white;
  min-height: 42px;
  padding: 8px 28px 8px 12px;
  font-size: 12px;
}

.day-picker-container select  {
  min-width: 123px;
}

.daily-surplus  {
  padding: 18px;
  background: #edf3e4;
  border-radius: 6px;
  margin-bottom: 16px;
}

.surplus-label  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-brand);
  font-size: 12px;
}

.surplus-label span  {
  font-size: 11px;
  color: #536a45;
}

.daily-surplus>strong  {
  display: block;
  margin: 11px 0 10px;
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -.7px;
  color: var(--accent-brand);
  font-variant-numeric: tabular-nums;
}

.surplus-caption  {
  display: flex;
  justify-content: space-between;
  color: #526746;
  font-size: 11px;
}

.daily-stat-list  {
  margin: 0 0 15px;
}

.daily-stat-row  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
}

.daily-stat-row strong  {
  font-weight: 550;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.status-pill-group  {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-badge  {
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.pill-ready  {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
}

.pill-sold  {
  background: #f0f2eb;
  color: #52604d;
}

.pill-claim  {
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
}

.daily-sold-accounts-box  {
  margin-top: 14px;
  padding: 10px 12px;
  background: #f4f6ee;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--border-subtle);
}

.daily-sold-label  {
  font-size: 11px;
  font-weight: 550;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.daily-sold-tags  {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sold-type-tag  {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.sold-type-tag .sold-qty  {
  color: var(--accent-brand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.daily-channel-chips  {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.daily-channel-chips div  {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.daily-channel-chips strong  {
  font-weight: 550;
  padding-left: 3px;
  color: var(--text-primary);
}

.quick-nav-card  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0 0;
}

.quick-nav-text strong  {
  display: block;
  font-size: 13px;
  font-weight: 550;
}

.quick-nav-text span  {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 3px;
}

.kpi-mini-strip  {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: white;
}

.mini-kpi-card  {
  padding: 19px 22px;
  min-width: 0;
}

.mini-kpi-card+.mini-kpi-card  {
  border-left: 1px solid var(--border-subtle);
}

.mini-kpi-label  {
  font-size: 12px;
  color: var(--text-muted);
}

.mini-kpi-val  {
  display: block;
  margin-top: 10px;
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}

.table-panel-card  {
  padding: 22px 0 0;
}

.table-panel-card>.card-header-bar,.table-toolbar  {
  padding: 0 22px;
}

.table-heading  {
  display: flex;
  align-items: center;
  gap: 9px;
}

.count-badge  {
  background: #f0f3e8;
  padding: 2px 7px;
  font-size: 11px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.section-kicker  {
  font-size: 11px;
  color: var(--text-muted);
}

.table-toolbar  {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.search-field  {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--border-medium);
  border-radius: 5px;
  padding: 0 11px;
  color: var(--text-muted);
  flex: 1;
  max-width: 270px;
}

.search-field:focus-within  {
  outline: 2px solid var(--accent-brand);
  outline-offset: 2px;
}

.search-field input  {
  border: none;
  outline: none;
  width: 100%;
  height: 42px;
  color: var(--text-primary);
  font-size: 12px;
  background: transparent;
}

.search-field input::placeholder  {
  color: var(--text-muted);
}

.table-scroll-wrapper  {
  overflow-x: auto;
  width: 100%;
}

.saas-data-table  {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 12px;
}

.saas-data-table th  {
  background: #f7f8f4;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 12px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  white-space: nowrap;
}

.saas-data-table th button  {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: none;
  font-size: 11px;
}

.saas-data-table th:not(:first-child) button  {
  margin-left: auto;
}

.saas-data-table [aria-sort="descending"] button,.saas-data-table [aria-sort="ascending"] button  {
  color: var(--accent-brand);
  font-weight: 600;
}

.saas-data-table td  {
  padding: 15px 12px;
  border-bottom: 1px solid #edf0e8;
  vertical-align: middle;
}

.saas-data-table th:first-child,.saas-data-table td:first-child  {
  padding-left: 22px;
}

.saas-data-table th:last-child,.saas-data-table td:last-child  {
  padding-right: 22px;
}

.saas-data-table tbody tr:hover  {
  background: var(--bg-surface-hover);
}

.numeric  {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.product-cell  {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-logo-img,.product-avatar  {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex-shrink: 0;
}

.product-logo-img  {
  object-fit: cover;
}

.product-avatar  {
  display: grid;
  place-items: center;
  background: #edf0e6;
  font-size: 11px;
  color: #556848;
  font-weight: 600;
}

.product-name  {
  font-weight: 550;
}

.table-currency  {
  white-space: nowrap;
  font-weight: 550;
}

.tag-badge  {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.tag-ready  {
  color: var(--text-secondary);
  background: #f1f3ec;
}

.tag-claim  {
  color: var(--accent-amber);
  background: var(--accent-amber-bg);
}

.val-caution  {
  color: var(--accent-amber);
}

.stock-count  {
  font-weight: 550;
}

.table-empty,.sheet-table-message  {
  padding: 34px 22px !important;
  text-align: center;
  color: var(--text-muted);
}

.table-footnote  {
  padding: 16px 22px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}

.donut-chart-wrapper  {
  height: 192px;
  position: relative;
  max-width: 220px;
  margin: 24px auto;
}

.donut-chart-wrapper canvas  {
  max-width: 100%;
}

.donut-center  {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-center strong  {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.donut-center span  {
  color: var(--text-muted);
  font-size: 11px;
}

.product-legend  {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.legend-item  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.legend-label  {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.legend-value  {
  white-space: nowrap;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.page-footer  {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 16px;
  padding: 22px 0 0;
  margin-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 10px;
  color: var(--text-muted);
}

.footer-separator  {
  padding: 0 6px;
}

.custom-modal-overlay  {
  position: fixed;
  inset: 0;
  z-index: 150;
  align-items: center;
  justify-content: center;
  background: rgba(19,33,24,.48);
  padding: 24px;
}

.custom-modal-card  {
  background: white;
  border-radius: 12px;
  box-shadow: 0 24px 80px #10261740;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  animation: view-in 160ms ease-out;
}

.pin-card  {
  width: min(100%,410px);
  padding: 32px;
}

.pin-icon-wrap  {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #edf3e4;
  border-radius: 8px;
  color: var(--accent-brand);
  margin-bottom: 22px;
}

.pin-icon-wrap .icon  {
  width: 22px;
  height: 22px;
}

.pin-card h2  {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -.5px;
}

.modal-desc  {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 9px;
}

.pin-input-wrap  {
  margin-top: 25px;
}

.pin-input-wrap label  {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

#pinInputField  {
  width: 100%;
  height: 54px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  text-align: center;
  font-size: 25px;
  letter-spacing: 13px;
  padding-left: 20px;
  color: var(--text-primary);
}

#pinInputField[aria-invalid="true"]  {
  border-color: var(--accent-rose);
}

.pin-error-text  {
  color: var(--accent-rose);
  font-size: 12px;
  margin-top: 10px;
}

.modal-btn-row  {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.modal-btn-row .btn  {
  flex: 1;
}

.full-sheet-card  {
  width: 100%;
  height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sheet-toolbar-header  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.sheet-meta-title  {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sheet-icon  {
  color: var(--accent-brand);
}

.sheet-filename  {
  font-size: 16px;
  font-weight: 550;
}

.sheet-status-tag  {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

.sheet-toolbar-actions  {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.new-row-quick-bar  {
  padding: 20px 22px;
  background: #f6f8f1;
  border-bottom: 1px solid var(--border-subtle);
  overflow-y: auto;
  max-height: 48dvh;
  flex-shrink: 0;
}

.new-row-quick-bar h3  {
  font-size: 14px;
  margin-bottom: 16px;
}

.quick-form-grid  {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: end;
  gap: 14px;
}

.quick-form-grid label  {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.field-wide  {
  grid-column: span 2;
}

.sheet-input-field  {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--border-medium);
  border-radius: 5px;
  background: white;
  color: var(--text-primary);
  font-size: 13px;
}

.sheet-formula-bar  {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  flex-shrink: 0;
}

.formula-info  {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
}

.spreadsheet-viewport  {
  flex: 1;
  min-height: 100px;
  overflow: auto;
}

.google-sheets-grid  {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 1650px;
  font-size: 12px;
}

.google-sheets-grid th  {
  padding: 11px 10px;
  background: #f0f3e9;
  text-align: left;
  font-weight: 550;
  color: var(--text-secondary);
  position: sticky;
  top: 0;
  z-index: 2;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.google-sheets-grid td  {
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  min-width: 95px;
  padding: 0;
}

.google-sheets-grid td:nth-child(3)  {
  min-width: 235px;
}

.google-sheets-grid .row-number-cell  {
  min-width: 40px;
  text-align: center;
  color: var(--text-muted);
  background: #f6f7f3;
  padding: 7px;
}

.sheet-cell-edit  {
  width: 100%;
  min-height: 38px;
  border: none;
  border-radius: 0;
  padding: 8px 10px;
  background: transparent;
  font-size: 12px;
  color: var(--text-primary);
}

.sheet-cell-edit:focus  {
  outline: 2px solid var(--accent-brand);
  outline-offset: -2px;
  background: #f2f5e9;
}

.cell-sold  {
  background: #f2f5eb;
}

.cell-stanby  {
  background: #edf3e4;
}

.cell-klaim,.cell-proses  {
  background: #faf3e6;
}

.sheet-cell-edit.is-saving  {
  background: #fcf0d6;
}

.sheet-cell-edit.is-saved  {
  background: #e3f1de;
}

.sheet-cell-edit.is-error  {
  background: #fbe9e4;
  outline: 1px solid var(--accent-rose);
  outline-offset: -1px;
}

.sheet-cell-retry  {
  border: 1px solid #c59083;
  color: #9a3f31;
  background: #fff5f1;
  border-radius: 4px;
  min-height: 32px;
  margin: 3px 6px 6px;
  font-size: 11px;
  padding: 4px 9px;
}

#sheetSaveStatus[data-state="error"],.sheet-table-message.is-error  {
  color: var(--accent-rose);
}

#sheetSaveStatus[data-state="saving"]  {
  color: var(--accent-amber);
}

#sheetSaveStatus[data-state="saved"]  {
  color: var(--accent-brand);
}

.toast-region  {
  position: fixed;
  z-index: 200;
  bottom: max(24px,env(safe-area-inset-bottom));
  right: 24px;
  max-width: min(380px,calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast  {
  background: #263d2e;
  color: white;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 5px 25px #192c2320;
  animation: view-in 160ms ease;
}

.toast-error  {
  background: #8c3f34;
}

.chart-footnote .zoom-btn-group  {
  flex-basis: auto;
  margin-right: auto;
}

.chart-footnote  {
  align-items: center;
}

.chart-footnote>span:last-child  {
  flex-basis: 100%;
}

.page-actions .day-picker-container  {
  margin-bottom: 0;
}

.is-negative  {
  color: var(--accent-rose) !important;
}

.kpi-featured .is-negative,.sidebar .is-negative  {
  color: #f1bca0 !important;
}

@keyframes spin  {
  to  {
    transform: rotate(360deg);
  }
}

@keyframes loading  {
  50%  {
    opacity: .55;
  }
}

@keyframes view-in  {
  from  {
    opacity: .4;
    transform: translateY(4px);
  }
  to  {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1600px)  {
  .main-content  {
    padding-top: 40px;
  }
  .dashboard-split-grid  {
    grid-template-columns: minmax(0,2.3fr) minmax(310px,1fr);
  }
  .chart-container-fluid  {
    height: 305px;
  }
  .chart-container-large  {
    height: 450px;
  }
}

@media (max-width: 1200px) and (min-width: 901px)  {
  .sidebar  {
    flex-basis: 198px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-content  {
    padding: 26px 24px 20px;
  }
  .app-top-header  {
    padding: 0 24px;
  }
  .header-date  {
    display: none;
  }
  .page-intro  {
    align-items: flex-start;
  }
  .page-actions  {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .kpi-banner-grid  {
    gap: 10px;
  }
  .kpi-banner-card  {
    padding: 16px;
  }
  .card-hero-number  {
    font-size: 22px;
  }
  .dashboard-split-grid  {
    grid-template-columns: minmax(0,1.65fr) minmax(265px,1fr);
  }
  .saas-card  {
    padding: 18px;
  }
  .dashboard-bottom-grid  {
    grid-template-columns: minmax(0,1fr);
  }
  .donut-panel-card  {
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    gap: 16px;
    align-items: center;
  }
  .donut-chart-wrapper  {
    width: 180px;
    height: 180px;
    margin: 0;
  }
  .product-legend  {
    margin: 0;
  }
  .chart-container-fluid  {
    height: 290px;
  }
  .chart-container-large  {
    height: 390px;
  }
}

@media (max-width: 900px)  {
  .app-layout  {
    display: block;
  }
  .sidebar  {
    position: sticky;
    top: 0;
    z-index: 95;
    height: auto;
    padding: max(12px, env(safe-area-inset-top, 12px)) 20px 12px;
    width: 100%;
    overflow: visible;
    background: var(--bg-sidebar);
    transition: background 260ms ease, backdrop-filter 260ms ease, -webkit-backdrop-filter 260ms ease, border-bottom 260ms ease, box-shadow 260ms ease;
  }
  .sidebar.is-scrolled  {
    background: rgba(25, 44, 35, 0.78) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px -4px rgba(10, 24, 15, 0.35) !important;
  }
  .brand  {
    min-height: 44px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 0;
  }
  .brand-left  {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto !important;
    min-width: 0;
    white-space: nowrap;
  }
  .brand-avatar  {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
  .brand-title,
  .brand-name  {
    font-size: 16px;
    font-weight: 700;
  }
  .brand-title span,
  .brand-name span  {
    display: inline;
    margin-left: 3px;
    font-size: 16px;
    font-weight: 400;
    color: #e4efe5;
  }
  .brand-handle  {
    font-size: 11px;
    color: #a2bca5;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
    display: inline-block;
  }
  .brand-bini  {
    display: inline !important;
    white-space: nowrap !important;
  }
  .brand-top-tools  {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-shrink: 0;
  }
  .brand-top-tools .privacy-btn  {
    width: 22px;
    height: 22px;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .brand-top-tools .privacy-btn svg  {
    width: 14.5px;
    height: 14.5px;
  }
  .brand-date-pill  {
    font-size: 10.5px;
    gap: 4px;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }
  .date-badge-pill  {
    font-size: 10.5px;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }
  .workspace-label,.sidebar-bottom  {
    display: none;
  }
  .sidebar .side-nav,
  .side-nav  {
    display: none !important;
  }
  .page-actions.desktop-only,
  .page-actions .btn  {
    display: none !important;
  }
  .mobile-bottom-nav  {
    position: fixed;
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 390px);
    height: 62px;
    padding: 0 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
      0 16px 36px -4px rgba(18, 38, 25, 0.16),
      0 4px 14px -2px rgba(18, 38, 25, 0.08),
      inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.95),
      inset 0 -1px 1px 0 rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 120;
  }
  .mobile-nav-link  {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 48px;
    height: 48px;
    padding: 4px 2px;
    border-radius: 14px;
    text-decoration: none;
    background: transparent;
    border: none;
    color: #384639;
    font-size: 10.5px;
    font-weight: 550;
    cursor: pointer;
    transition: all 160ms cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-link .icon  {
    width: 18px;
    height: 18px;
    stroke-width: 1.85;
    color: currentColor;
    transition: transform 160ms ease, color 160ms ease;
  }
  .mobile-nav-link span  {
    letter-spacing: -0.15px;
    line-height: 1;
    white-space: nowrap;
  }
  .mobile-nav-link:hover  {
    color: var(--text-primary);
  }
  .mobile-nav-link.active  {
    color: var(--accent-brand);
    font-weight: 700;
  }
  .mobile-nav-link.active .icon  {
    color: var(--accent-brand);
    transform: scale(1.12);
  }
  .mobile-nav-link:active  {
    transform: scale(0.92);
  }
  .mobile-nav-btn:disabled  {
    opacity: 0.45;
    cursor: default;
  }
  .mobile-nav-action-btn  {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .action-btn-pill  {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 38px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: #1a3325;
    box-shadow: 
      0 2px 8px rgba(18, 36, 25, 0.08),
      inset 0 1px 1px rgba(255, 255, 255, 1);
    transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .action-btn-pill .icon  {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
  }
  .mobile-nav-action-btn:hover .action-btn-pill,
  .mobile-nav-action-btn:active .action-btn-pill  {
    transform: scale(0.92);
    background: var(--accent-brand);
    color: #ffffff;
    border-color: var(--accent-brand);
    box-shadow: 0 4px 14px rgba(35, 92, 70, 0.35);
  }
  .app-top-header  {
    position: relative;
    top: auto;
    z-index: 10;
    height: 60px;
    padding: 0 22px;
  }
  .main-content  {
    padding: 25px 22px 105px;
  }
  html  {
    scroll-padding-bottom: 105px;
  }
  .header-date  {
    display: none;
  }
  .dashboard-split-grid  {
    grid-template-columns: minmax(0,1.65fr) minmax(260px,1fr);
    gap: 14px;
  }
  .dashboard-bottom-grid  {
    grid-template-columns: minmax(0,1fr);
  }
  .kpi-banner-grid  {
    gap: 10px;
  }
  .kpi-banner-card  {
    padding: 16px;
  }
  .card-hero-number  {
    font-size: 23px;
  }
  .saas-card  {
    padding: 18px;
  }
  .table-panel-card  {
    padding: 20px 0 0;
  }
  .btn  {
    min-height: 44px;
  }
  .range-control button,.chart-series button  {
    min-height: 44px;
  }
  .btn-zoom  {
    min-width: 44px;
    min-height: 44px;
  }
  .chart-container-fluid  {
    height: 285px;
  }
  .chart-container-large  {
    height: 360px;
  }
  .donut-panel-card  {
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    gap: 18px;
    align-items: center;
  }
  .donut-chart-wrapper  {
    width: 180px;
    height: 180px;
    margin: 0;
  }
  .product-legend  {
    margin: 0;
  }
  .quick-form-grid  {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  select,.sheet-input-field  {
    min-height: 44px;
  }
}

@media (max-width: 700px)  {
  .sidebar  {
    padding: max(11px, env(safe-area-inset-top, 11px)) 16px 11px;
  }
  .brand  {
    gap: 13px;
    min-height: 48px;
  }
  .brand-avatar  {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .brand-title,
  .brand-name  {
    font-size: 19px;
    font-weight: 700;
  }
  .brand-title span,
  .brand-name span  {
    font-size: 19px;
    font-weight: 400;
  }
  .brand-handle  {
    font-size: 12px;
    color: #a2bca5;
    white-space: nowrap;
  }
  .sidebar .side-nav,
  .side-nav  {
    display: none !important;
  }
  .app-top-header  {
    padding: 0 16px;
    gap: 10px;
  }
  .breadcrumb  {
    gap: 7px;
    font-size: 11px;
  }
  .breadcrumb>span:first-child,.breadcrumb-slash  {
    display: none;
  }
  .header-right-actions  {
    gap: 4px;
  }
  .sync-live-badge  {
    font-size: 10px;
  }
  .btn-quiet  {
    padding: 9px;
  }
  .btn-quiet .icon  {
    width: 16px;
  }
  .btn-quiet span  {
    display: none;
  }
  .btn-quiet  {
    min-width: 44px;
  }
  .main-content  {
    padding: 20px 16px 115px !important;
  }
  .spa-view  {
    gap: 18px;
  }
  .page-intro  {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 1px;
  }
  .page-intro h1  {
    font-size: 30px;
  }
  .page-subtitle  {
    font-size: 13px;
    max-width: 350px;
    margin-top: 8px;
  }
  .eyebrow  {
    margin-bottom: 6px;
  }
  .page-actions.desktop-only,
  .page-actions .btn  {
    display: none !important;
  }
  .page-actions  {
    flex-wrap: wrap;
    gap: 8px;
  }
  .page-actions .day-picker-container  {
    flex-basis: 100%;
    margin-bottom: 0;
  }
  .section-meta  {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 5px;
  }
  .kpi-banner-grid  {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .kpi-banner-card  {
    padding: 15px 13px;
    border-radius: 8px;
  }
  .card-meta-label  {
    font-size: 11px;
    gap: 4px;
  }
  .card-meta-label .icon  {
    width: 14px;
    height: 14px;
  }
  .card-hero-number  {
    font-size: clamp(18px,5vw,27px);
    letter-spacing: -.6px;
    margin: 15px 0;
  }
  .card-footer-row  {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 10px;
    padding-top: 10px;
  }
  .dashboard-split-grid,.dashboard-bottom-grid  {
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
  }
  .saas-card  {
    padding: 18px;
    border-radius: 8px;
  }
  .card-header-bar  {
    margin-bottom: 16px;
    gap: 15px;
  }
  .card-header-bar h2  {
    font-size: 16px;
  }
  .chart-header-controls  {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .range-control  {
    order: -1;
  }
  .range-control button  {
    padding: 7px 10px;
  }
  .chart-meta  {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 9px;
  }
  .chart-total  {
    font-size: 25px;
  }
  .chart-series  {
    gap: 5px;
  }
  .chart-series button  {
    padding: 7px 8px;
  }
  .chart-container-fluid,.chart-container-large  {
    height: 245px;
  }
  .chart-footnote  {
    font-size: 10px;
    margin-top: 14px;
  }
  .quick-nav-card  {
    flex-direction: column;
    align-items: stretch;
    padding-top: 18px;
  }
  .quick-nav-card .btn  {
    align-self: flex-start;
  }
  .kpi-mini-strip  {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .mini-kpi-card  {
    padding: 17px;
  }
  .mini-kpi-card:nth-child(3)  {
    border-left: none;
  }
  .mini-kpi-card:nth-child(n+3)  {
    border-top: 1px solid var(--border-subtle);
  }
  .mini-kpi-label  {
    font-size: 11px;
  }
  .mini-kpi-val  {
    font-size: 22px;
  }
  .table-panel-card  {
    padding: 18px 0 0;
  }
  .table-panel-card>.card-header-bar,.table-toolbar  {
    padding: 0 18px;
  }
  .table-toolbar  {
    flex-wrap: wrap;
  }
  .search-field  {
    flex-basis: 100%;
    max-width: none;
  }
  .search-field input  {
    min-height: 44px;
    font-size: 16px;
  }
  #productFilter  {
    width: 100%;
  }
  .table-scroll-wrapper  {
    border-radius: 0 0 8px 8px;
  }
  .section-kicker  {
    display: none;
  }
  .table-footnote  {
    padding: 15px 18px;
  }
  .donut-panel-card  {
    display: block;
  }
  .donut-chart-wrapper  {
    width: 200px;
    height: 200px;
    margin: 24px auto;
  }
  .product-legend  {
    margin-top: 20px;
  }
  .legend-item  {
    font-size: 12px;
  }
  .page-footer  {
    font-size: 10px;
    margin-top: 24px;
    padding-top: 18px;
    gap: 6px;
  }
  .custom-modal-overlay  {
    padding: 12px;
  }
  .custom-modal-card  {
    max-height: calc(100dvh - 24px);
  }
  .pin-card  {
    padding: 28px 24px;
  }
  .full-sheet-card  {
    height: calc(100dvh - 24px);
  }
  .sheet-toolbar-header  {
    padding: 15px;
    gap: 12px;
  }
  .sheet-meta-title  {
    align-items: flex-start;
  }
  .sheet-filename  {
    font-size: 14px;
  }
  .sheet-status-tag  {
    font-size: 11px;
  }
  .sheet-toolbar-actions  {
    gap: 6px;
    width: 100%;
  }
  .sheet-toolbar-actions .btn  {
    font-size: 11px;
    padding: 9px 10px;
  }
  .sheet-toolbar-actions .btn-icon  {
    margin-left: auto;
  }
  .new-row-quick-bar  {
    padding: 18px 15px;
    max-height: 42dvh;
  }
  .quick-form-grid  {
    gap: 13px 10px;
  }
  .sheet-input-field  {
    font-size: 16px;
  }
  .sheet-formula-bar  {
    padding: 10px 15px;
  }
  .formula-info  {
    flex-basis: 100%;
    margin: 0;
  }
  .sheet-cell-edit  {
    min-height: 44px;
  }
  .sheet-cell-retry  {
    min-height: 44px;
  }
  .toast-region  {
    right: 16px;
    left: 16px;
    max-width: none;
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 80px));
  }
}

@media (max-width: 359px)  {
  .main-content  {
    padding-left: 12px;
    padding-right: 12px;
  }
  .card-meta-label .icon  {
    display: none;
  }
  .card-hero-number  {
    font-size: 17px;
  }
  .sidebar .side-nav,
  .side-nav  {
    display: none !important;
  }
  .mobile-bottom-nav  {
    width: calc(100% - 16px);
    height: 58px;
    padding: 0 4px;
  }
  .mobile-nav-link  {
    font-size: 9.5px;
    min-width: 38px;
  }
  .mobile-nav-link .icon  {
    width: 16px;
    height: 16px;
  }
  .action-btn-pill  {
    width: 42px;
    height: 34px;
  }
  .quick-form-grid  {
    grid-template-columns: minmax(0,1fr);
  }
  .field-wide  {
    grid-column: auto;
  }
  .sheet-toolbar-actions  {
    flex-wrap: wrap;
  }
}

@keyframes tuingPop  {
  0%  {
    opacity: 0.3;
    transform: scale(0.88);
  }
  65%  {
    transform: scale(1.04);
  }
  100%  {
    opacity: 1;
    transform: scale(1);
  }
}

.tuing-pop  {
  animation: tuingPop 380ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Mode Privasi / Blur Nominal */
.privacy-btn  {
  position: relative;
  transition: all 180ms ease;
}

body.privacy-mode .privacy-btn  {
  background: rgba(35, 92, 70, 0.15) !important;
  color: var(--accent-brand) !important;
}

body.privacy-mode .brand-top-tools .privacy-btn  {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #34d399 !important;
}

@media (max-width: 440px)  {
  .brand-date-pill .date-full  {
    display: none !important;
  }
  .brand-date-pill .date-short  {
    display: inline !important;
  }
}

body.privacy-mode .privacy-btn .icon-eye  {
  display: none !important;
}

body.privacy-mode .privacy-btn .icon-eye-off  {
  display: inline-block !important;
}

body.privacy-mode #kpiTotalOmzet,
body.privacy-mode #kpiSurplusKas,
body.privacy-mode #kpiTotalModal,
body.privacy-mode #dayOmzet,
body.privacy-mode #dayModal,
body.privacy-mode #daySurplus,
body.privacy-mode .chart-total,
body.privacy-mode .table-card td:nth-child(5),
body.privacy-mode .privacy-blur  {
  filter: blur(8.5px);
  user-select: none;
  transition: filter 220ms ease;
}

body.privacy-mode #kpiTotalOmzet:hover,
body.privacy-mode #kpiSurplusKas:hover,
body.privacy-mode #kpiTotalModal:hover,
body.privacy-mode #dayOmzet:hover,
body.privacy-mode #dayModal:hover,
body.privacy-mode #daySurplus:hover,
body.privacy-mode .chart-total:hover,
body.privacy-mode .table-card td:nth-child(5):hover  {
  filter: blur(0px);
}

/* Margin Badge Pill */
.card-footer-values  {
  display: flex;
  align-items: center;
  gap: 7px;
}

.kpi-margin-pill  {
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6.5px;
  border-radius: 9999px;
  letter-spacing: 0.15px;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #ebf5ee;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.kpi-margin-pill.negative  {
  background: rgba(255, 99, 71, 0.22);
  color: #ffd2cc;
  border-color: rgba(255, 99, 71, 0.35);
}

/* Pull to Refresh */
.pull-to-refresh  {
  display: none;
  overflow: hidden;
  height: 0px;
  opacity: 0;
  transform: translateY(-8px);
  transition: height 200ms cubic-bezier(0.2, 0.9, 0.3, 1), opacity 200ms ease, transform 200ms ease;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
}

.pull-to-refresh.visible  {
  display: flex;
}

.pull-to-refresh .pull-indicator  {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(25, 44, 35, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease;
}

.pull-to-refresh .pull-icon  {
  width: 15px;
  height: 15px;
  color: var(--accent-brand);
}

.pull-to-refresh.refreshing .pull-icon  {
  animation: pullSpin 650ms linear infinite;
}

@keyframes pullSpin  {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce)  {
  *,*::before,*::after  {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
