:root {
  --bg-page: #070b14;
  --bg-shell: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.86);
  --bg-card-hover: rgba(24, 34, 58, 0.96);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-amber: #fbbf24;
  --accent-orange: #ea580c;
  --accent-cyan: #38bdf8;
  --accent-emerald: #34d399;
  --accent-red: #fca5a5;
}

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

html, body {
  min-height: 100%;
  background: var(--bg-page);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.14), transparent 40%),
    radial-gradient(circle at 88% 4%, rgba(56, 189, 248, 0.12), transparent 40%);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

button, input {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.page-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 14px 36px;
}

.app-shell {
  background: linear-gradient(175deg, #0b1120 0%, #0f172a 60%, #090d16 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.app-shell.admin-active {
  border-color: rgba(16, 185, 129, 0.4);
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.14), transparent 40%),
    radial-gradient(circle at 90% 6%, rgba(56, 189, 248, 0.12), transparent 40%),
    linear-gradient(175deg, #0b1120 0%, #0f172a 60%, #090d16 100%);
}

/* Header */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

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

.logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.34);
}

.admin-active .logo-badge {
  background: linear-gradient(135deg, #10b981, #0284c7);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.34);
}

.brand h1 {
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  font-weight: 800;
  letter-spacing: 0.35px;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-active .brand-sub {
  color: var(--accent-emerald);
  font-weight: 600;
}

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

/* Admin Navigation Bar */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.34);
}

.admin-nav-left,
.admin-nav-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill-admin-user {
  background: rgba(16, 185, 129, 0.16);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.42);
}

.nav-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-tab {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-secondary);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-tab:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--text-primary);
}

.nav-tab.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(2, 132, 199, 0.28));
  border-color: rgba(16, 185, 129, 0.65);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.22);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-domain {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.36);
}

.pill-sync {
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.36);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: rgba(30, 41, 59, 0.9);
  color: var(--text-primary);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.95);
  transform: translateY(-1px);
}

.btn:focus-visible,
.chip:focus-visible,
.yr-card:focus-visible,
.bar-col:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-primary {
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.42);
}

.btn-primary:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.25);
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1120;
  border-color: transparent;
}

.btn-amber:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.36);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.24);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 15px 17px;
}

.kpi-card.hero {
  border-color: rgba(245, 158, 11, 0.46);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.13), var(--bg-card));
}

.kpi-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kpi-val {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.2;
}

.kpi-val.amber { color: var(--accent-amber); }
.kpi-val.green { color: var(--accent-emerald); }
.kpi-val.cyan { color: var(--accent-cyan); }

.kpi-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Public Chart */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.section-hdr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.section-hdr h2 {
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
}

.section-hdr span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.chart-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.bars-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 8px;
  align-items: end;
  min-width: 680px;
  height: 188px;
  padding-top: 10px;
}

.bar-col {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  cursor: pointer;
  padding: 0;
}

.bar-val {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.bar-track {
  width: 100%;
  height: 126px;
  display: flex;
  align-items: flex-end;
  background: rgba(30, 41, 59, 0.44);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 3px;
  transition: border-color 0.15s ease;
}

.bar-col.selected .bar-track,
.bar-col:hover .bar-track {
  border-color: rgba(56, 189, 248, 0.65);
}

.bar {
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  transition: height 0.25s ease;
}

.bar.peak {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.bar.ytd {
  background: linear-gradient(180deg, #34d399, #059669);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.bar-yr {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Public Year Cards */
.yr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.yr-card {
  text-align: left;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 13px 15px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.yr-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.yr-card.selected {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.yr-card.is-ytd {
  border-color: rgba(16, 185, 129, 0.46);
  background: rgba(16, 185, 129, 0.08);
}

.yr-card.is-peak {
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(245, 158, 11, 0.08);
}

.yr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.yr-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.yr-share {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.yr-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.yr-tag.ytd { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }
.yr-tag.peak { background: rgba(245, 158, 11, 0.2); color: var(--accent-amber); }

.yr-amt {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.yr-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.yr-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: 3px;
}

.yr-card.is-ytd .yr-date {
  color: var(--accent-emerald);
}

.yr-card.is-peak .yr-date {
  color: var(--accent-amber);
}

.yr-date.is-empty {
  color: var(--text-muted);
  font-weight: 500;
}

/* Admin Search & Filters */
.search-panel {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.search-input-wrap {
  position: relative;
  flex: 1 1 280px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px 10px 40px;
  border-radius: 12px;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.85);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.chip.active {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.5);
}

/* Admin Responsive + Sortable Table (modern-web-guidance patterns) */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(620px, 68vh);
  container-type: inline-size;
}

#admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-inline-size: 620px;
}

#admin-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: #172033;
}

#admin-table th {
  text-align: left;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
  background: #172033;
}

#admin-table th:not(:has(> button)) {
  padding: 12px 16px;
}

#admin-table th > button {
  width: 100%;
  min-height: 40px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

#admin-table th.num,
#admin-table th.num > button,
#admin-table td.col-amt,
#admin-table td.col-disc {
  text-align: right;
  justify-content: flex-end;
}

.sort-ind {
  display: inline-block;
  font-size: 0.72rem;
  opacity: 0.45;
}

th[aria-sort="ascending"] .sort-ind::after {
  content: "▲";
  opacity: 1;
  color: var(--accent-cyan);
}

th[aria-sort="descending"] .sort-ind::after {
  content: "▼";
  opacity: 1;
  color: var(--accent-cyan);
}

th:not([aria-sort]) .sort-ind::after {
  content: "↕";
}

#admin-table td {
  padding: 11px 16px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  vertical-align: middle;
}

#admin-table tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.42);
}

#admin-table tbody tr:hover td {
  background: rgba(30, 41, 59, 0.58);
}

.col-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  width: 168px;
}

.yr-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-amber);
  margin-right: 6px;
}

.col-name {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.38;
}

.col-amt {
  font-weight: 800;
  color: var(--accent-cyan);
  white-space: nowrap;
  width: 122px;
  font-variant-numeric: tabular-nums;
}

.col-disc {
  white-space: nowrap;
  width: 114px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.disc-saved { color: var(--accent-emerald); }
.disc-none { color: #64748b; }

.empty-state {
  padding: 34px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Native Modal Dialog */
dialog {
  margin: auto;
  max-width: 450px;
  width: calc(100% - 28px);
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 18px;
  background: #0f172a;
  color: var(--text-primary);
  padding: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(5px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dlg-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dlg-hdr h1 {
  font-size: 1.12rem;
  font-weight: 800;
}

.dlg-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.field-lbl {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.dlg-msg {
  font-size: 0.8rem;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: none;
}

.dlg-msg.visible { display: block; }
.dlg-msg.error { background: rgba(239, 68, 68, 0.16); color: var(--accent-red); border: 1px solid rgba(239, 68, 68, 0.35); }
.dlg-msg.info { background: rgba(56, 189, 248, 0.14); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.35); }

.dlg-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(2, 132, 199, 0.25));
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.5);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.34), rgba(2, 132, 199, 0.38));
}

.google-auth-box {
  margin: 14px 0 16px;
}

.btn-google {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.btn-google:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.18);
}

.btn-google:disabled {
  opacity: 0.65;
  cursor: wait;
}

.google-g-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 22px 16px;
  border-radius: 14px;
  border: 2px dashed rgba(56, 189, 248, 0.42);
  background: rgba(15, 23, 42, 0.65);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
}

.drop-icon {
  font-size: 1.75rem;
}

.drop-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.drop-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.import-preview {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(2, 6, 23, 0.55);
}

.import-summary {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.import-yr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.import-yr-pill {
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #e0f2fe;
}

.import-yr-pill.dup-only {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--text-muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--text-primary);
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: none;
}

.toast.visible {
  display: block;
}

.footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: #64748b;
}

@container (width < 600px) {
  #admin-table {
    min-inline-size: 0;
  }
  #admin-table,
  #admin-table thead,
  #admin-table tbody,
  #admin-table tr,
  #admin-table td {
    display: block;
    width: 100%;
  }
  #admin-table thead {
    display: none;
  }
  #admin-table tbody tr {
    margin-bottom: 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.78);
  }
  #admin-table td {
    padding: 4px 0;
    border: none;
    text-align: left !important;
    width: auto !important;
  }
  #admin-table td::before {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-right: 6px;
  }
  #admin-table td:nth-child(1)::before { content: "Order Date: "; }
  #admin-table td:nth-child(2)::before { content: "Product: "; }
  #admin-table td:nth-child(3)::before { content: "Total Amount: "; }
  #admin-table td:nth-child(4)::before { content: "Discounts: "; }
}

@media (max-width: 960px) {
  .kpi-grid,
  .yr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 15px;
    border-radius: 16px;
  }
  .kpi-grid,
  .yr-grid {
    grid-template-columns: 1fr;
  }
}
