:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #eeeeee;
  --text: #121212;
  --muted: #666666;
  --line: #dddddd;
  --primary: #1f1f1f;
  --primary-dark: #000000;
  --accent: #dbeafe;
  --danger: #1f3a5f;
  --success: #333333;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

body#page-top {
  background: #f8f9fc;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 32px;
}

h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
  outline: none;
}

input:required,
select:required,
textarea:required,
.required-visual {
  border-color: #dc2626;
  border-width: 2px;
}

input:required:focus,
select:required:focus,
textarea:required:focus,
.required-visual:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 180, 180, 0.45);
}

input:disabled {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}

input[readonly].goal-field {
  background: #eef4ff;
  color: #1f3a5f;
  cursor: not-allowed;
  font-weight: 900;
}

input[readonly][required] {
  background: #f3f6fb;
  cursor: not-allowed;
}

.conditional-field {
  display: none;
}

.conditional-field.show {
  display: grid;
}

.login-body {
  background:
    linear-gradient(120deg, rgba(18, 18, 18, 0.88), rgba(80, 80, 80, 0.82)),
    url("https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=1600&q=80") center center/cover no-repeat;
}

.login-shell {
  width: min(100%, 420px);
}

.login-panel,
.install-card {
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #121212;
  background: var(--accent);
  font-weight: 900;
}

.login-logo {
  display: block;
  width: min(230px, 100%);
  height: auto;
  margin: 0 auto 26px;
}

.anniversary-logo {
  width: min(260px, 100%);
  max-height: 220px;
  object-fit: contain;
}

.login-card {
  border-radius: 0.5rem;
}

.brand-mark.small {
  width: 36px;
  height: 36px;
  margin: 0;
  font-size: 13px;
}

.eyebrow {
  margin-bottom: 7px;
  color: #1f3a5f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.form-stack {
  display: grid;
  gap: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 900;
}

.nav-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 700;
}

.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 1.5rem 3rem;
}

.sidebar {
  background: linear-gradient(180deg, #1f3a5f 0%, #202733 100%) !important;
}

.sidebar-brand {
  min-height: 88px;
  padding: 12px !important;
}

.sidebar-brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.sidebar .nav-item .nav-link {
  font-weight: 800;
}

.topbar {
  height: auto;
  min-height: 72px;
}

.app-text-accent {
  color: #1f3a5f;
}

.page-title,
.section-heading,
.toolbar-band,
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.user-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: #fff;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.btn.primary {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.btn.icon {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
}

.btn.full {
  width: 100%;
}

.alert {
  margin: 18px 0;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 800;
}

.alert.success {
  color: #1f1f1f;
  background: #eeeeee;
}

.alert.danger {
  color: #1f3a5f;
  background: #eef4ff;
}

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

.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(135deg, #1f3a5f 0%, #202733 76%);
  color: #fff;
  box-shadow: var(--shadow);
}

.dash-hero .eyebrow {
  color: var(--accent);
}

.dash-hero h2 {
  margin-bottom: 6px;
  font-size: 34px;
}

.dash-hero p {
  margin-bottom: 0;
  color: #d8d8d8;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-hero .btn {
  border-color: rgba(255, 255, 255, 0.2);
}

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

.dash-total article {
  display: grid;
  gap: 8px;
  border: 0;
  border-left: 0.25rem solid #1f3a5f;
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dash-total span,
.dash-store-card span,
.dash-store-card small {
  color: var(--muted);
  font-weight: 800;
}

.dash-total strong {
  font-size: 25px;
}

.dash-stores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.dash-store-card {
  border: 0;
  border-top: 0.25rem solid #1f3a5f;
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dash-store-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dash-store-card h2 {
  margin-bottom: 5px;
  font-size: 26px;
}

.dash-store-content {
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(420px, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.dash-store-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.dash-store-main > div {
  display: grid;
  gap: 7px;
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface-2);
}

.dash-store-main strong {
  font-size: 27px;
}

.dash-store-foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.days-progress {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.days-progress-head,
.days-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.days-progress-head span,
.days-scale small {
  color: var(--muted);
  font-weight: 800;
}

.days-progress-head strong {
  color: #1f3a5f;
  font-size: 20px;
}

.days-bar {
  height: 14px;
  margin: 12px 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.days-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f3a5f, #4f75a3);
}

.billing-chart {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.billing-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.billing-chart h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
}

.billing-chart p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.billing-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 245px;
  overflow-x: auto;
  padding: 10px 4px 0;
}

.billing-bar-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 7px;
  min-width: 54px;
  height: 230px;
}

.billing-bar-value {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.billing-bar-track {
  display: flex;
  align-items: flex-end;
  width: 26px;
  height: 145px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.billing-bar-track span {
  display: block;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #4f75a3, #1f3a5f);
}

.billing-bar-item small {
  color: var(--muted);
  font-weight: 900;
}

.chart-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
}

.dash-store-foot span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.dash-store-foot strong {
  color: var(--text);
  font-size: 17px;
}

.dash-bottom-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.65fr;
  gap: 18px;
}

.dash-action-card {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 0;
  border-left: 0.25rem solid #1f3a5f;
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dash-table {
  margin-bottom: 0;
}

.settings-grid,
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.settings-card,
.ranking-card {
  border: 0;
  border-left: 0.25rem solid #1f3a5f;
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.settings-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ranking-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ranking-card h2,
.settings-card h2 {
  margin-bottom: 6px;
}

.ranking-card strong {
  display: block;
  color: var(--text);
  font-size: 24px;
}

.ranking-position {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: #1f3a5f;
  font-weight: 900;
  flex: 0 0 auto;
}

.empty-ranking {
  grid-column: 1 / -1;
}

.print-report {
  display: grid;
  gap: 18px;
}

.report-cover,
.report-kpis article,
.report-section-card {
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.report-cover {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 26px;
  border-left: 0.25rem solid #1f3a5f;
}

.report-cover h2 {
  margin-bottom: 6px;
  font-size: 30px;
}

.report-cover p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.report-cover-meta {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.report-cover-meta span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-radius: var(--radius);
  padding: 9px 11px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
}

.report-cover-meta strong {
  color: var(--text);
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.report-kpis article {
  display: grid;
  gap: 7px;
  padding: 20px;
  border-top: 0.25rem solid #1f3a5f;
}

.report-kpis span,
.report-kpis small {
  color: var(--muted);
  font-weight: 800;
}

.report-kpis strong {
  font-size: 24px;
}

.report-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.report-section-card {
  padding: 24px;
}

.report-section-card h2 {
  margin-bottom: 8px;
}

.report-table {
  min-width: 0;
}

.metric-card,
.form-section,
.table-shell,
.filter-band,
.detail-panel,
.toolbar-band,
.report-head {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  font-size: 26px;
}

.toolbar-band,
.filter-band,
.report-head {
  margin-bottom: 22px;
  padding: 20px;
}

.month-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.store-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.store-result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.store-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-metrics span {
  display: grid;
  gap: 5px;
  border-radius: var(--radius);
  padding: 13px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
}

.store-metrics strong {
  color: var(--text);
  font-size: 18px;
}

.table-shell,
.form-section,
.detail-panel {
  margin-bottom: 18px;
  padding: 22px;
}

.table-wrap {
  overflow-x: auto;
}

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

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

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

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

.row-actions form,
.report-actions form {
  margin: 0;
}

.danger-btn {
  border-color: #dc2626;
  color: #dc2626;
  background: #fff;
}

.danger-btn:hover {
  color: #fff;
  background: #dc2626;
}

.report-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.users-table {
  min-width: 760px;
}

.users-table td {
  vertical-align: top;
}

.user-type {
  display: block;
  margin-bottom: 5px;
  font-weight: 900;
}

.users-table small {
  color: var(--muted);
  font-weight: 700;
}

.report-form {
  display: grid;
  gap: 6px;
}

.daily-form {
  gap: 18px;
}

.daily-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.daily-hero h2 {
  margin-bottom: 6px;
  font-size: 28px;
}

.daily-actions,
.modal-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.current-day-badge,
.modal-date-label {
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #eef4ff;
  color: #1f3a5f;
  font-weight: 800;
}

.current-day-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  gap: 5px;
}

.modal-date-label {
  margin-bottom: 18px;
}

.modal-button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-action-btn {
  align-items: flex-start;
  flex-direction: column;
  height: auto;
  min-height: 70px;
  padding: 13px 15px;
  text-align: left;
  white-space: normal;
}

.modal-action-btn span {
  color: var(--text);
  font-weight: 900;
}

.modal-action-btn small {
  color: var(--muted);
  font-weight: 700;
}

.modal-subtitle {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 900;
}

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

.seller-launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.seller-card {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-left: 0.25rem solid #1f3a5f;
  border-radius: var(--radius);
  padding: 15px;
  background: #fff;
}

.seller-card.has-sale {
  background: #eef4ff;
}

.seller-card strong,
.seller-card span {
  display: block;
}

.seller-card strong {
  color: var(--text);
  font-size: 16px;
}

.seller-total {
  margin-top: 5px;
  color: #1f3a5f;
  font-size: 20px;
  font-weight: 900;
}

.seller-sale-btn {
  width: 100%;
}

.compact-section {
  margin-bottom: 0;
}

.daily-top-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.daily-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.9fr;
  gap: 18px;
}

.daily-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-title h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.panel-title span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #1f3a5f;
  background: #eef4ff;
  font-weight: 900;
}

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

.wide-modal {
  width: min(100%, 760px);
}

.grid-2,
.grid-3,
.grid-4,
.grid-5,
.sales-grid,
.filters,
.detail-grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sales-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filters {
  align-items: flex-end;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.filters .btn {
  height: 46px;
  margin-bottom: 0;
}

.filter-action {
  display: flex;
  align-items: flex-end;
  height: 83px;
}

.filter-action .btn {
  width: 100%;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.switch-row {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 10px;
}

.switch-row input {
  width: 20px;
  height: 20px;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding: 16px 0;
  background: linear-gradient(rgba(244, 246, 248, 0), var(--bg) 22%);
}

dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 18px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 900;
}

.full-panel {
  width: 100%;
}

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

.tag-list span {
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--surface-2);
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(21, 33, 43, 0.56);
}

.modal.open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(100%, 520px);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
  font-size: 22px;
}

.modal-metrics {
  display: grid;
  gap: 10px;
}

.credentials {
  margin: 20px 0;
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface-2);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .summary-grid,
  .dash-total,
  .grid-4,
  .grid-5,
  .sales-grid,
  .detail-grid,
  .dash-stores,
  .dash-bottom-grid,
  .dash-store-content,
  .daily-grid,
  .daily-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .topbar,
  .page-title,
  .toolbar-band,
  .report-head,
  .month-heading,
  .daily-hero,
  .dash-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    justify-content: flex-start;
  }

  .summary-grid,
  .store-result-grid,
  .dash-total,
  .dash-stores,
  .dash-store-main,
  .dash-store-foot,
  .dash-store-content,
  .dash-bottom-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .sales-grid,
  .daily-grid,
  .daily-top-grid,
  .mini-grid,
  .filters,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .store-metrics {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }

  .metric-card strong {
    font-size: 22px;
  }
}

@media print {
  body,
  body#page-top {
    background: #fff !important;
  }

  #accordionSidebar,
  .sidebar,
  .topbar,
  .navbar,
  .nav-actions,
  .btn,
  .sticky-actions,
  .no-print {
    display: none !important;
  }

  #wrapper,
  #content-wrapper,
  #content {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .print-report {
    gap: 10px;
  }

  .report-cover,
  .report-kpis article,
  .report-section-card,
  .detail-panel,
  .report-head {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  .report-kpis,
  .report-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  table {
    min-width: 0;
  }
}
