/* ═══════════════════════════════════════════════════
   ADMIN PANEL — Premium Dark Theme
   ═══════════════════════════════════════════════════ */

/* ── Override body for admin ── */
body.admin-body {
  background: linear-gradient(180deg, #111827 0%, #171E2E 50%, #0F172A 100%);
  min-height: 100vh;
  color-scheme: dark;
}

body.admin-body header {
  background: rgba(15, 23, 42, .85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

body.admin-body nav ul li a {
  color: rgba(255, 255, 255, .6);
}

body.admin-body nav ul li a:hover,
body.admin-body nav ul li a.active {
  background: rgba(225, 29, 72, .12);
  color: var(--red);
}

/* Branding - Logo + Text sync with site */
.logo {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-img {
  height: 42px;
  width: auto;
  border-radius: 8px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: .9;
  font-family: 'Outfit', sans-serif;
}
.brand-main {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}
.brand-sub {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}

.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 1rem; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }

/* ── Shell ── */
.admin-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Hero ── */
.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.admin-hero h1 {
  color: #fff;
  font-size: 1.8rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.admin-hero p {
  color: rgba(255, 255, 255, .8);
  font-size: .92rem;
}

.admin-hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.admin-button {
  border: none;
  border-radius: var(--radius-full);
  padding: .8rem 1.2rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.admin-button.primary {
  background: var(--grad-red);
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 29, 72, .25);
}

.admin-button.primary:hover {
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.admin-button.secondary {
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .1);
}

.admin-button.secondary:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .2);
}

.admin-button[disabled] {
  opacity: .5;
  cursor: wait;
}

/* ── KPI Cards ── */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.admin-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.admin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-blue);
  opacity: 0;
  transition: opacity .3s;
}

.admin-card:hover::before {
  opacity: 1;
}

.admin-card:hover {
  background: rgba(255, 255, 255, .07);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}

.admin-card small {
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: .75rem;
  display: block;
}

.admin-card .value {
  font-size: 2rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  background: var(--grad-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: .35rem;
}

/* ── Reports UI ── */
.report-card {
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.report-card:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.08);
}

.report-card i {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #60A5FA; /* Brighter blue */
}

.report-card h4 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.report-card p {
  color: rgba(255, 255, 255, .7);
  font-size: 0.85rem;
}

/* ── Layout ── */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  align-items: start;
}

/* ── Sidebar ── */
.admin-sidebar {
  position: sticky;
  top: 100px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 1rem;
}

.admin-menu {
  list-style: none;
  display: grid;
  gap: .3rem;
}

.admin-menu button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: .8rem .9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, .45);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
}

.admin-menu button i {
  width: 18px;
  text-align: center;
}

.admin-menu button:hover {
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .8);
}

.admin-menu button.active {
  background: rgba(225, 29, 72, .12);
  color: var(--red);
  box-shadow: inset 3px 0 0 var(--red);
}

/* ── Content Sections ── */
.admin-content {
  display: grid;
  gap: 1rem;
}

.admin-section {
  display: none;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.admin-section.active {
  display: block;
  animation: fadeInUp .4s ease both;
}

.admin-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-panel-title h3 {
  color: #fff;
  font-size: 1.15rem;
}

/* ── Grid helpers ── */
.admin-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .9rem;
}

.span-12 {
  grid-column: span 12;
}

.span-8 {
  grid-column: span 8;
}

.span-6 {
  grid-column: span 6;
}

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

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

/* ── Forms ── */
.admin-form {
  display: grid;
  gap: .85rem;
}

.admin-form label {
  display: grid;
  gap: .35rem;
  font-size: .86rem;
  color: rgba(255, 255, 255, .45);
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  font-family: inherit;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  outline: none;
  transition: var(--transition);
}

select option {
  background-color: #0F172A;
  color: #fff;
}

.admin-form select option {
  background-color: #0c1527;
  color: #fff;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px var(--blue-glow);
  background: rgba(255, 255, 255, .06);
}

.admin-form input::placeholder {
  color: rgba(255, 255, 255, .25);
}

.admin-form textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-form input.is-invalid,
.admin-form select.is-invalid,
.admin-form textarea.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.field-hint {
  font-size: .78rem;
  color: rgba(255, 255, 255, .3);
}

/* ── Preview ── */
.preview-card {
  border: 1px dashed rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, .02);
  display: grid;
  gap: .75rem;
}

.preview-card strong {
  color: rgba(255, 255, 255, .6);
}

.preview-card img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .2);
}

#product-preview-gallery img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .2);
}

.preview-meta {
  display: grid;
  gap: .35rem;
}

/* ── Toolbar ── */
.admin-toolbar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-toolbar input,
.admin-toolbar select {
  padding: .75rem 1rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.admin-toolbar select option {
  background-color: #0c1527;
  color: #fff;
}

.admin-toolbar input:focus,
.admin-toolbar select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

/* ── Tables ── */
.admin-table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.admin-table th,
.admin-table td {
  padding: .85rem .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.admin-table thead th {
  background: rgba(255, 255, 255, .06);
  padding: 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .8);
  border-bottom: 2px solid rgba(255, 255, 255, .1);
}

.admin-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  vertical-align: middle;
  color: rgba(255, 255, 255, .9);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

/* ── Actions & Buttons ── */
.admin-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.icon-btn {
  border: none;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  padding: .55rem .7rem;
  cursor: pointer;
  color: rgba(255, 255, 255, .5);
  transition: var(--transition);
}

.icon-btn:hover {
  background: rgba(37, 99, 235, .15);
  color: var(--blue-mid);
}

/* ── Charts ── */
.chart-list {
  display: grid;
  gap: .7rem;
}

.chart-item {
  display: grid;
  gap: .35rem;
}

.chart-item span {
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
}

.chart-bar-track {
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--grad-red);
}

/* ── Split Panels ── */
.split-panels {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1rem;
}

.split-panels>div {
  min-width: 0;
}

.split-panels h4 {
  color: rgba(255, 255, 255, .6);
  margin-bottom: .75rem;
}

/* ── Status ── */
.admin-status {
  margin-top: .85rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}

.admin-status.show {
  display: block;
}

.admin-status.success {
  background: rgba(22, 163, 74, .12);
  color: #4ade80;
}

.admin-status.error {
  background: rgba(225, 29, 72, .12);
  color: #fb7185;
}

/* ── Misc ── */
.empty-state {
  padding: 1.5rem;
  border: 1px dashed rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  text-align: center;
  color: rgba(255, 255, 255, .3);
}

.mini-muted {
  color: rgba(255, 255, 255, .35);
  font-size: .82rem;
}

.order-items {
  display: grid;
  gap: .25rem;
}

/* ── Gallery ── */
.gallery-manager {
  display: grid;
  gap: .75rem;
}

.gallery-dropzone {
  border: 2px dashed rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, .02);
  color: rgba(255, 255, 255, .3);
  transition: var(--transition);
}

.gallery-dropzone.dragover {
  border-color: var(--red);
  background: rgba(225, 29, 72, .05);
  color: var(--red);
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .75rem;
}

.gallery-item {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  padding: .5rem;
  background: rgba(255, 255, 255, .03);
  display: grid;
  gap: .45rem;
}

.gallery-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-item.is-cover {
  box-shadow: 0 0 0 2px rgba(225, 29, 72, .3);
}

.gallery-item .mini-actions {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.mini-btn {
  border: none;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: .35rem .5rem;
  font-size: .72rem;
  cursor: pointer;
  color: rgba(255, 255, 255, .5);
  transition: var(--transition);
}

.mini-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.mini-btn.primary {
  background: rgba(225, 29, 72, .12);
  color: var(--red);
}

/* ── Loading ── */
.admin-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.admin-loading-overlay.show {
  display: flex;
}

.admin-loading-card {
  min-width: 280px;
  max-width: 92vw;
  background: rgba(30, 41, 59, .95);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}

.admin-loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(225, 29, 72, .15);
  border-top-color: var(--red);
  animation: spin .8s linear infinite;
  flex: 0 0 auto;
}

.loading-label {
  font-weight: 700;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

body.admin-busy .admin-content {
  pointer-events: none;
  opacity: .6;
}

/* ── Tabs for Form ── */
.admin-form-container {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--radius-lg);
  padding: 2rem;
  animation: slideUp .4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.admin-tabs {
  display: flex;
  gap: .5rem;
  border-bottom: 2px solid rgba(255, 255, 255, .05);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: .88rem;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: .75rem 1.25rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: rgba(255, 255, 255, .8);
}

.admin-tab-btn.active {
  color: var(--blue-mid);
  border-bottom-color: var(--blue-mid);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
  animation: fadeIn .4s ease both;
}

.file-input-premium {
  padding: 1.5rem !important;
  border: 2px dashed rgba(255, 255, 255, .1) !important;
  text-align: center;
  background: rgba(255, 255, 255, .02) !important;
  cursor: pointer;
}

.file-input-premium:hover {
  border-color: rgba(255, 255, 255, .3) !important;
}

.sticky-preview {
  position: sticky;
  top: 120px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1400px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .split-panels {
    grid-template-columns: 1fr;
  }

  .span-8,
  .span-6,
  .span-4,
  .span-3,
  .span-2 {
    grid-column: span 12;
  }
}


/* ═══ ADMIN LOGIN ═══ */
.admin-login-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #0B1120 0%, #1E3A8A 50%, #0F172A 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

.admin-login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(225, 29, 72, .1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(37, 99, 235, .15) 0%, transparent 60%);
}

.admin-login-card {
  width: min(100%, 440px);
  position: relative;
  z-index: 1;
  background: rgba(30, 41, 59, .8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
  padding: 2.5rem;
  animation: scaleIn .5s cubic-bezier(.16, 1, .3, 1) both;
}

.admin-login-card .login-logo {
  display: block;
  max-height: 56px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .3));
}

.admin-login-card h1 {
  margin: 0 0 .35rem;
  font-size: 1.8rem;
  color: #fff;
  text-align: center;
}

.admin-login-card>p {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, .45);
  text-align: center;
  font-size: .92rem;
}

.admin-login-card form {
  display: grid;
  gap: 1rem;
}

.admin-login-card label {
  display: grid;
  gap: .4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .45);
  font-size: .88rem;
}

.admin-login-card input {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  font: inherit;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.admin-login-card input::placeholder {
  color: rgba(255, 255, 255, .25);
}

.admin-login-card input:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px var(--blue-glow);
  background: rgba(255, 255, 255, .08);
}

.admin-login-card button[type="submit"] {
  width: 100%;
  border: none;
  border-radius: var(--radius-full);
  padding: 1rem;
  background: var(--grad-red);
  color: #fff;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  font-size: .95rem;
  box-shadow: 0 4px 20px rgba(225, 29, 72, .3);
}

.admin-login-card button[type="submit"]:hover {
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.admin-login-status {
  display: none;
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
}

.admin-login-status.show {
  display: block;
}

.admin-login-status.error {
  background: rgba(225, 29, 72, .12);
  color: #fb7185;
}

.admin-login-status.info {
  background: rgba(37, 99, 235, .12);
  color: #93c5fd;
}

.admin-login-help {
  margin-top: 1.25rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .3);
  text-align: center;
}

/* ── Utility Classes (Fixing Inline Styles) ── */
.u-mb-1 {
  margin-bottom: 1rem !important;
}

.u-mb-2 {
  margin-bottom: 2rem !important;
}

.u-mt-0 {
  margin-top: 0 !important;
}

.u-hide {
  display: none !important;
}

.u-show {
  display: block !important;
}

.u-flex {
  display: flex !important;
  align-items: center;
  gap: .5rem;
}

.u-flex-between {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.u-text-white {
  color: #fff !important;
}

.u-text-red {
  color: var(--red) !important;
}

.u-text-orange {
  color: #f97316 !important;
}

.u-no-decoration {
  text-decoration: none !important;
}

.u-w-full {
  width: 100% !important;
}

.u-max-w-400 {
  max-width: 400px !important;
}

.u-min-h-120 {
  min-height: 120px !important;
}

.u-bg-blue {
  background: var(--blue) !important;
}

.u-gap-1 {
  gap: 1rem !important;
}

.section-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 1rem;
  padding-top: 1rem;
}

.header-divider {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.login-icon {
  margin-right: .4rem;
  color: var(--blue-mid);
}

.p-preview-desc {
  line-height: 1.4;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Print Styles ── */
@media print {
  @page { margin: 1cm; }
  
  body.admin-body {
    background: #fff !important;
    color: #000 !important;
  }
  
  header, 
  nav,
  .admin-sidebar, 
  .admin-hero, 
  .admin-grid,
  .admin-toolbar, 
  .admin-actions, 
  #report-filters,
  .admin-panel-title p,
  .admin-tabs,
  .admin-hero-actions,
  button,
  .icon-btn,
  .admin-button,
  #admin-auth-guard,
  .admin-loading-overlay {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .admin-layout {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .admin-shell {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    display: block !important;
  }

  .admin-content {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .admin-section {
    display: none !important;
  }

  .admin-section.active {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #report-view-container {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  .admin-table-wrap {
    border: none !important;
    overflow: visible !important;
  }

  .admin-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
  }

  .admin-table th, .admin-table td {
    border-bottom: 1px solid #ddd !important;
    color: #000 !important;
  }

  .admin-card {
    background: #f9f9f9 !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}