/* Digital Curator — Unified Dark Glass Design System */

:root {
  --dc-bg: #060912;
  --dc-bg-elevated: #0c1220;
  --dc-surface: rgba(14, 20, 36, 0.78);
  --dc-surface-hover: rgba(20, 28, 48, 0.88);
  --dc-glass: rgba(255, 255, 255, 0.05);
  --dc-glass-hover: rgba(255, 255, 255, 0.08);
  --dc-border: rgba(255, 255, 255, 0.07);
  --dc-border-strong: rgba(255, 255, 255, 0.12);
  --dc-text: #eef2f7;
  --dc-text-muted: #8b9cb3;
  --dc-text-dim: #5c6b82;
  --dc-accent: #e879f9;
  --dc-accent-2: #818cf8;
  --dc-teal: #2dd4bf;
  --dc-blue: #38bdf8;
  --dc-gradient: linear-gradient(135deg, #f472b6 0%, #a855f7 45%, #6366f1 100%);
  --dc-gradient-subtle: linear-gradient(135deg, rgba(244, 114, 182, 0.15), rgba(99, 102, 241, 0.12));
  --dc-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --dc-radius: 1rem;
  --dc-radius-lg: 1.25rem;
  --dc-sidebar-w: 16rem;
}

/* ── Ambient background ── */
.dc-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 10% -8%, rgba(168, 85, 247, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 8%, rgba(45, 212, 191, 0.1), transparent 50%),
    radial-gradient(ellipse 45% 35% at 50% 105%, rgba(99, 102, 241, 0.1), transparent 55%),
    var(--dc-bg);
}

.dc-app {
  color: var(--dc-text);
  background: transparent !important;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ── Layout shell ── */
.dc-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--dc-sidebar-w);
  height: 100vh;
  height: 100dvh;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: rgba(8, 12, 22, 0.82) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--dc-border) !important;
  box-shadow: 4px 0 48px rgba(0, 0, 0, 0.35);
}

.dc-main {
  margin-left: var(--dc-sidebar-w);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.dc-app main {
  position: relative;
  z-index: 1;
}

.dc-page-body {
  flex: 1;
  padding: 1.75rem 2rem 2.5rem;
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
}

/* ── Sidebar brand & nav ── */
.dc-sidebar .dc-brand-icon {
  background: var(--dc-gradient) !important;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.dc-sidebar-divider {
  border-color: var(--dc-border) !important;
}

.dc-nav-link {
  color: var(--dc-text-muted) !important;
  border: 1px solid transparent;
  border-radius: 0.875rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dc-nav-link:hover {
  background: var(--dc-glass-hover) !important;
  color: var(--dc-text) !important;
  border-color: var(--dc-border);
}

.dc-nav-link.active {
  background: var(--dc-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.32);
}

.dc-nav-section {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dc-text-dim);
  padding: 0.25rem 0.75rem 0.5rem;
}

/* ── Page header bar ── */
.dc-page-bar,
.dc-app main > header.sticky,
.dc-app main > header[class*="sticky"] {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 2rem;
  background: rgba(6, 9, 18, 0.82) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dc-border) !important;
  box-shadow: none !important;
}

.dc-page-bar-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dc-gradient-subtle);
  border: 1px solid var(--dc-border);
}

.dc-page-bar-icon .material-symbols-outlined {
  background: var(--dc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Cards & panels ── */
.dc-card {
  background: var(--dc-surface) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dc-border) !important;
  border-radius: var(--dc-radius-lg);
  box-shadow: var(--dc-shadow);
}

.dc-stat {
  padding: 1.25rem 1.5rem;
  border-radius: var(--dc-radius-lg);
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  box-shadow: var(--dc-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dc-stat:hover {
  border-color: var(--dc-border-strong);
  transform: translateY(-1px);
}

.dc-stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dc-stat-value.accent {
  background: var(--dc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dc-stat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dc-text-muted);
  margin-top: 0.375rem;
}

.dc-chart-card {
  padding: 1.5rem;
  min-height: 280px;
}

.dc-chart-card h3 {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--dc-text);
  margin-bottom: 0.25rem;
}

.dc-chart-card p {
  font-size: 0.6875rem;
  color: var(--dc-text-muted);
  margin-bottom: 1rem;
}

.dc-chart-wrap {
  position: relative;
  height: 220px;
}

/* ── Buttons ── */
.dc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.75rem;
  border: 1px solid var(--dc-border);
  background: var(--dc-glass);
  color: var(--dc-text-muted);
  transition: all 0.15s ease;
}

.dc-btn:hover {
  background: var(--dc-glass-hover);
  color: var(--dc-text);
  border-color: var(--dc-border-strong);
}

.dc-btn-primary {
  background: var(--dc-gradient) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.dc-btn-primary:hover {
  filter: brightness(1.08);
}

.dc-btn-success {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #6ee7b7 !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

.dc-btn-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}

/* ── Surfaces: remap legacy light Tailwind utilities ── */
.dc-app .bg-white,
.dc-app .bg-white\/70,
.dc-app .bg-white\/80 {
  background: var(--dc-surface) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dc-border);
  box-shadow: var(--dc-shadow);
}

.dc-app .bg-background,
.dc-app .bg-\[\#f8fafc\],
.dc-app .bg-\[\#f7f9fb\],
.dc-app .bg-\[\#f2f4f6\],
.dc-app .bg-\[\#f2f4f6\]\/50,
.dc-app .bg-\[\#e0e3e5\],
.dc-app .bg-\[\#e6e8ea\],
.dc-app .bg-\[\#eceef0\],
.dc-app .bg-surface,
.dc-app .bg-surface-container,
.dc-app .bg-surface-container-low,
.dc-app .bg-surface-container-high {
  background: var(--dc-glass) !important;
  border-color: var(--dc-border) !important;
}

.dc-app .bg-slate-50,
.dc-app .bg-slate-100,
.dc-app .bg-slate-200,
.dc-app .bg-slate-100\/50 {
  background: rgba(255, 255, 255, 0.04) !important;
}

.dc-app .hover\:bg-slate-50:hover,
.dc-app .hover\:bg-slate-100:hover,
.dc-app .hover\:bg-slate-200:hover,
.dc-app .hover\:bg-\[\#f7f9fb\]:hover,
.dc-app .hover\:bg-\[\#e6e8ea\]:hover {
  background: var(--dc-glass-hover) !important;
}

.dc-app .bg-blue-50 { background: rgba(59, 130, 246, 0.1) !important; border: 1px solid rgba(59, 130, 246, 0.18); }
.dc-app .bg-emerald-50 { background: rgba(16, 185, 129, 0.1) !important; border: 1px solid rgba(16, 185, 129, 0.18); }
.dc-app .bg-amber-50 { background: rgba(245, 158, 11, 0.1) !important; border: 1px solid rgba(245, 158, 11, 0.18); }
.dc-app .bg-emerald-100 { background: rgba(16, 185, 129, 0.15) !important; }
.dc-app .bg-violet-50 { background: rgba(139, 92, 246, 0.1) !important; }
.dc-app .bg-red-50 { background: rgba(239, 68, 68, 0.1) !important; border: 1px solid rgba(239, 68, 68, 0.18); }
.dc-app .bg-green-50 { background: rgba(16, 185, 129, 0.1) !important; border: 1px solid rgba(16, 185, 129, 0.18); }
.dc-app .border-amber-200 { border-color: rgba(245, 158, 11, 0.22) !important; }
.dc-app .text-green-700,
.dc-app .text-green-600 { color: #6ee7b7 !important; }
.dc-app .text-amber-700 { color: #fcd34d !important; }
.dc-app .text-red-500 { color: #f87171 !important; }
.dc-app .bg-slate-100.rounded-full { background: rgba(255, 255, 255, 0.07) !important; }

/* ── Typography ── */
.dc-app .text-slate-900,
.dc-app .text-on-surface,
.dc-app .text-on-background {
  color: var(--dc-text) !important;
}

.dc-app .text-slate-800,
.dc-app .text-slate-700,
.dc-app .text-slate-600 {
  color: #c8d3e0 !important;
}

.dc-app .text-slate-500,
.dc-app .text-slate-400,
.dc-app .text-on-surface-variant {
  color: var(--dc-text-muted) !important;
}

.dc-app .text-\[\#0050cb\],
.dc-app .text-blue-700,
.dc-app .text-emerald-700,
.dc-app .text-amber-700,
.dc-app .text-violet-700 {
  color: #c4b5fd !important;
}

.dc-app .text-emerald-600 { color: #6ee7b7 !important; }
.dc-app .text-emerald-500 { color: #34d399 !important; }
.dc-app .text-amber-500 { color: #fbbf24 !important; }
.dc-app .text-blue-400 { color: #7dd3fc !important; }
.dc-app .text-red-700,
.dc-app .text-red-600 { color: #fca5a5 !important; }

/* ── Borders & dividers ── */
.dc-app .border-slate-100,
.dc-app .border-slate-200,
.dc-app .border-slate-200\/60,
.dc-app .border-slate-200\/70,
.dc-app .border-\[\#c2c6d8\]\/15,
.dc-app .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
.dc-app .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--dc-border) !important;
}

/* ── Inputs & selects ── */
.dc-app input:not([type="checkbox"]):not([type="radio"]),
.dc-app select,
.dc-app textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--dc-text) !important;
  border: 1px solid var(--dc-border) !important;
  border-radius: 0.75rem !important;
}

.dc-app input::placeholder,
.dc-app textarea::placeholder {
  color: var(--dc-text-dim) !important;
}

.dc-app input:focus,
.dc-app select:focus,
.dc-app textarea:focus {
  outline: none !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12) !important;
}

.dc-app select option {
  background: #141926;
  color: var(--dc-text);
}

/* ── Primary & legacy buttons ── */
.dc-app .bg-\[\#0050cb\],
.dc-app .bg-gradient-to-br.from-\[\#0050cb\].to-\[\#0066ff\],
.dc-app .from-\[\#0050cb\].to-\[\#0066ff\] {
  background: var(--dc-gradient) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.28);
}

.dc-app .bg-slate-900 {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid var(--dc-border-strong);
}

.dc-app .hover\:bg-blue-700:hover,
.dc-app .hover\:bg-slate-700:hover,
.dc-app .hover\:bg-slate-900:hover {
  filter: brightness(1.08);
}

.dc-app .file\:bg-\[\#0050cb\]::file-selector-button,
.dc-app input[type="file"]::file-selector-button {
  background: var(--dc-gradient) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0.75rem !important;
}

/* Leyte Division — organic luxury identity */
:root {
  --dc-bg: #f4f5ed;
  --dc-bg-elevated: #ecefe2;
  --dc-surface: rgba(255, 255, 251, 0.96);
  --dc-surface-hover: #f8f9f2;
  --dc-glass: #f0f3e8;
  --dc-glass-hover: #e8eee0;
  --dc-border: #d9dfcf;
  --dc-border-strong: #c5cfba;
  --dc-text: #183225;
  --dc-text-muted: #65756b;
  --dc-text-dim: #94a096;
  --dc-accent: #17633a;
  --dc-accent-2: #8ea84a;
  --dc-teal: #2f7550;
  --dc-blue: #32704f;
  --dc-gradient: linear-gradient(135deg, #1a6840 0%, #0e4d31 100%);
  --dc-gradient-subtle: linear-gradient(135deg, rgba(23, 99, 58, 0.11), rgba(142, 168, 74, 0.13));
  --dc-shadow: 0 18px 45px rgba(41, 70, 48, 0.09);
  --dc-radius: 1rem;
  --dc-radius-lg: 1.35rem;
}

.dc-app {
  font-family: 'DM Sans', system-ui, sans-serif;
}

.dc-ambient {
  background:
    radial-gradient(ellipse 38% 34% at 92% 4%, rgba(142, 168, 74, 0.15), transparent 72%),
    radial-gradient(ellipse 38% 32% at 18% 100%, rgba(23, 99, 58, 0.09), transparent 72%),
    linear-gradient(180deg, #f4f5ed 0%, #fafbf6 50%, #f1f3e9 100%) !important;
}

.dc-ambient::before,
.dc-ambient::after {
  content: "";
  position: absolute;
  width: 23rem;
  height: 13rem;
  border: 1px solid rgba(23, 99, 58, 0.08);
  border-radius: 100% 0 100% 0;
  transform: rotate(-24deg);
}

.dc-ambient::before { right: -7rem; top: 8rem; }
.dc-ambient::after { left: 9rem; bottom: -6rem; transform: rotate(22deg); }

.dc-sidebar {
  background: rgba(251, 252, 246, 0.94) !important;
  border-right-color: #dbe2d2 !important;
  box-shadow: 12px 0 36px rgba(35, 65, 42, 0.06) !important;
}

.dc-sidebar .dc-brand-icon {
  background: #fff !important;
  padding: 0.15rem;
  border: 1px solid rgba(23, 99, 58, 0.15);
  box-shadow: 0 8px 22px rgba(23, 99, 58, 0.15) !important;
}

.dc-sidebar .text-white { color: var(--dc-text) !important; }

.dc-nav-link {
  border-radius: 0.9rem;
}

.dc-nav-link:hover {
  background: #eef2e7 !important;
  color: #174c31 !important;
  border-color: #d8e0ce !important;
}

.dc-nav-link.active {
  background: linear-gradient(135deg, #e3ebda, #eef2e5) !important;
  color: #145b36 !important;
  border-color: #cbd9c2 !important;
  box-shadow: inset 3px 0 0 #17633a !important;
}

.dc-nav-section {
  color: #8a998d !important;
  letter-spacing: 0.18em;
}

.dc-page-bar,
.dc-app main > header.sticky,
.dc-app main > header[class*="sticky"] {
  background: rgba(248, 249, 242, 0.86) !important;
  border-bottom-color: #dce2d3 !important;
}

.dc-page-bar h1,
.dc-page-bar h2,
.dc-dashboard-topbar h1,
.dc-dashboard-topbar h2,
.dc-page-body > div:first-child h1,
.dc-page-body > div:first-child h2 {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.035em !important;
}

.dc-btn-primary,
.dc-app .bg-\[\#0050cb\],
.dc-app .bg-gradient-to-br.from-\[\#0050cb\].to-\[\#0066ff\],
.dc-app .from-\[\#0050cb\].to-\[\#0066ff\] {
  background: var(--dc-gradient) !important;
  box-shadow: 0 10px 24px rgba(23, 99, 58, 0.2) !important;
}

.dc-app input:focus,
.dc-app select:focus,
.dc-app textarea:focus {
  border-color: rgba(23, 99, 58, 0.48) !important;
  box-shadow: 0 0 0 4px rgba(23, 99, 58, 0.1) !important;
}

.dc-crm-dashboard {
  --crm-bg: #f4f5ed;
  --crm-surface: #fffffb;
  --crm-surface-soft: #f7f8f1;
  --crm-line: #d9dfcf;
  --crm-line-soft: #e9ede3;
  --crm-text: #183225;
  --crm-muted: #65756b;
  --crm-dim: #96a197;
  --crm-primary: #17633a;
  --crm-primary-dark: #0e4d31;
  --crm-teal: #3c7a56;
  --crm-amber: #a5792d;
  --crm-rose: #b54c52;
  --crm-shadow: 0 18px 45px rgba(41, 70, 48, 0.09);
  --crm-shadow-soft: 0 8px 24px rgba(41, 70, 48, 0.07);
  background: transparent;
}

.dc-crm-dashboard .dc-dashboard-topbar {
  background: rgba(248, 249, 242, 0.88) !important;
  border-bottom-color: #d9dfcf !important;
}

.dc-crm-dashboard h2 {
  font-family: 'Fraunces', Georgia, serif;
  color: #163d29 !important;
}

.dc-crm-dashboard .dc-search-input:focus,
.dc-crm-dashboard .dc-filter-control:focus {
  border-color: rgba(23, 99, 58, 0.5) !important;
  box-shadow: 0 0 0 4px rgba(23, 99, 58, 0.1) !important;
}

.dc-crm-dashboard .dc-filter-control.is-active {
  border-color: rgba(23, 99, 58, 0.42) !important;
  background: #eef4e8 !important;
}

.dc-crm-dashboard .dc-inventory-table thead tr,
.dc-crm-dashboard .dc-table-footer {
  background: #f4f6ee !important;
}

.dc-crm-dashboard .dc-inventory-table tbody tr:nth-child(even) {
  background: #fbfcf7;
}

.dc-crm-dashboard .dc-inventory-table tbody tr:hover {
  background: #f0f4e9 !important;
}

.dc-crm-dashboard .dc-inventory-table td div.bg-\[\#f2f4f6\],
.dc-crm-dashboard .dc-category-card .bg-white\/70,
.dc-crm-dashboard .bg-\[\#0050cb\]\/10,
.dc-crm-dashboard .bg-blue-100 {
  background: #edf3e8 !important;
  color: #17633a !important;
  border-color: #d7e3cf !important;
}

.dc-crm-dashboard .dc-category-card {
  border-radius: 1.4rem;
}

.dc-crm-dashboard .dc-category-card:hover {
  border-color: #bfcdb7 !important;
  transform: translateY(-2px);
}

.dc-crm-dashboard .dc-fab,
.dc-crm-dashboard .dc-action-primary {
  background: var(--dc-gradient) !important;
  box-shadow: 0 16px 34px rgba(23, 99, 58, 0.25) !important;
}

.dc-auth-hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(205, 190, 104, 0.28), transparent 32%),
    linear-gradient(145deg, #1c6b42, #0e4a2f);
}

.dc-auth-hero::before {
  background: radial-gradient(ellipse at 50% 125%, rgba(255,255,255,0.12), transparent 58%);
}

/* ── Rounded corners & shadows ── */
.dc-app .rounded-xl,
.dc-app .rounded-2xl,
.dc-app .rounded-3xl {
  border-radius: var(--dc-radius-lg);
}

.dc-app .shadow-sm,
.dc-app .shadow-md,
.dc-app .shadow-xl,
.dc-app .shadow-2xl {
  box-shadow: var(--dc-shadow) !important;
}

/* ── Stat / hero numbers ── */
.dc-app .text-\[\#0050cb\],
.dc-app .text-\[\#006c49\] {
  background: var(--dc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Status badges ── */
.dc-app .bg-blue-100 { background: rgba(59, 130, 246, 0.15) !important; color: #93c5fd !important; }
.dc-app .bg-\[\#6cf8bb\]\/40 { background: rgba(16, 185, 129, 0.15) !important; color: #6ee7b7 !important; }
.dc-app .bg-\[\#ffdbd0\] { background: rgba(251, 146, 60, 0.15) !important; color: #fdba74 !important; }
.dc-app .bg-gray-100 { background: rgba(148, 163, 184, 0.12) !important; color: #cbd5e1 !important; }
.dc-app .bg-\[\#0050cb\]\/10 { background: rgba(168, 85, 247, 0.12) !important; color: #e9d5ff !important; }
.dc-app .bg-violet-100 { background: rgba(139, 92, 246, 0.15) !important; color: #c4b5fd !important; }

/* ── Tables ── */
.dc-app thead tr,
.dc-app .bg-\[\#f2f4f6\]\/60 {
  background: rgba(255, 255, 255, 0.03) !important;
}

.dc-app tbody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.dc-table-wrap {
  overflow: hidden;
  border-radius: var(--dc-radius-lg);
  border: 1px solid var(--dc-border);
  background: var(--dc-surface);
  box-shadow: var(--dc-shadow);
}

/* ── Modals ── */
.dc-app .fixed.inset-0 > .absolute.inset-0.bg-black\/50 {
  background: rgba(4, 6, 12, 0.78) !important;
  backdrop-filter: blur(8px);
}

.dc-app .fixed .relative.bg-white {
  background: rgba(12, 18, 32, 0.96) !important;
  border: 1px solid var(--dc-border-strong);
  backdrop-filter: blur(24px);
}

/* ── Scrollbar ── */
.dc-app ::-webkit-scrollbar { width: 5px; height: 5px; }
.dc-app ::-webkit-scrollbar-track { background: transparent; }
.dc-app ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 99px; }
.dc-app ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

/* ── Toasts ── */
.dc-app .toast.success {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.92), rgba(59, 130, 246, 0.92)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dc-app .toast.error {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.92), rgba(236, 72, 153, 0.92)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Auth pages ── */
.dc-auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.dc-auth-card {
  background: rgba(12, 18, 32, 0.88);
  backdrop-filter: blur(24px);
  border: 1px solid var(--dc-border-strong);
  border-radius: 1.75rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.dc-auth-hero {
  background: var(--dc-gradient);
  border-radius: 1.75rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.dc-auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath fill='rgba(255,255,255,0.08)' d='M0 80 Q100 20 200 60 T400 40 V120 H0 Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
  opacity: 0.8;
}

.dc-btn-primary {
  background: var(--dc-gradient) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0.875rem !important;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.32);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.dc-btn-primary:hover {
  filter: brightness(1.06);
}

.dc-btn-primary:active {
  transform: scale(0.98);
}

/* CRM dashboard refinement */
.dc-crm-dashboard {
  --crm-bg: #f5f7fb;
  --crm-surface: #ffffff;
  --crm-surface-soft: #f9fbfd;
  --crm-line: #dbe3ef;
  --crm-line-soft: #edf1f6;
  --crm-text: #172033;
  --crm-muted: #66758c;
  --crm-dim: #95a1b2;
  --crm-primary: #1f6feb;
  --crm-primary-dark: #174ea6;
  --crm-teal: #0f9f8f;
  --crm-amber: #b7791f;
  --crm-rose: #d92d52;
  --crm-shadow: 0 18px 44px rgba(26, 37, 63, 0.08);
  --crm-shadow-soft: 0 8px 24px rgba(26, 37, 63, 0.06);
  background:
    linear-gradient(180deg, rgba(245, 247, 251, 0.98), rgba(250, 252, 255, 0.98));
  color: var(--crm-text);
}

.dc-crm-dashboard .dc-dashboard-topbar {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid var(--crm-line) !important;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.02) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dc-crm-dashboard .dc-dashboard-content {
  width: 100%;
}

.dc-crm-dashboard h2,
.dc-crm-dashboard h3,
.dc-crm-dashboard h4,
.dc-crm-dashboard .text-on-surface,
.dc-crm-dashboard .text-slate-900,
.dc-crm-dashboard .text-slate-800,
.dc-crm-dashboard .text-slate-700,
.dc-crm-dashboard .text-slate-600 {
  color: var(--crm-text) !important;
  -webkit-text-fill-color: currentColor;
}

.dc-crm-dashboard .text-on-surface-variant,
.dc-crm-dashboard .text-slate-500,
.dc-crm-dashboard .text-slate-400 {
  color: var(--crm-muted) !important;
}

.dc-crm-dashboard .text-\[\#0050cb\],
.dc-crm-dashboard .text-blue-700 {
  color: var(--crm-primary) !important;
  -webkit-text-fill-color: currentColor !important;
}

.dc-crm-dashboard .text-\[\#006c49\],
.dc-crm-dashboard .text-emerald-700 {
  color: var(--crm-teal) !important;
  -webkit-text-fill-color: currentColor !important;
}

.dc-crm-dashboard .bg-\[\#0050cb\]\/10 {
  background: #eaf2ff !important;
  color: var(--crm-primary) !important;
}

.dc-crm-dashboard h2 {
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.dc-crm-dashboard p {
  line-height: 1.65;
}

.dc-crm-dashboard .dc-search-input,
.dc-crm-dashboard .dc-filter-control,
.dc-crm-dashboard select,
.dc-crm-dashboard input:not([type="checkbox"]):not([type="radio"]) {
  background: var(--crm-surface) !important;
  color: var(--crm-text) !important;
  border: 1px solid var(--crm-line) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.03) !important;
}

.dc-crm-dashboard .dc-search-input::placeholder {
  color: var(--crm-dim) !important;
}

.dc-crm-dashboard .dc-search-input:focus,
.dc-crm-dashboard .dc-filter-control:focus {
  border-color: rgba(31, 111, 235, 0.46) !important;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1) !important;
}

.dc-crm-dashboard .dc-filter-control.is-active {
  border-color: rgba(31, 111, 235, 0.45) !important;
  background: #f3f7ff !important;
}

.dc-crm-dashboard .dc-action-primary {
  background: linear-gradient(135deg, var(--crm-primary), var(--crm-primary-dark)) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 10px 24px rgba(31, 111, 235, 0.22) !important;
}

.dc-crm-dashboard .dc-action-secondary,
.dc-crm-dashboard .dc-icon-button {
  background: var(--crm-surface) !important;
  color: var(--crm-text) !important;
  border: 1px solid var(--crm-line) !important;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.04) !important;
}

.dc-crm-dashboard .dc-action-secondary:hover,
.dc-crm-dashboard .dc-icon-button:hover {
  background: var(--crm-surface-soft) !important;
  border-color: #c7d2e2 !important;
}

.dc-crm-dashboard .dc-kpi,
.dc-crm-dashboard .dc-analytics-card,
.dc-crm-dashboard .dc-inventory-panel {
  background: var(--crm-surface) !important;
  border: 1px solid var(--crm-line) !important;
  box-shadow: var(--crm-shadow) !important;
}

.dc-crm-dashboard .dc-kpi {
  min-height: 7.25rem;
}

.dc-crm-dashboard .dc-kpi span:first-child,
.dc-crm-dashboard .dc-kpi .text-\[\#0050cb\],
.dc-crm-dashboard .dc-kpi .text-\[\#006c49\] {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
}

.dc-crm-dashboard .dc-kpi:first-child span:first-child {
  color: var(--crm-primary) !important;
}

.dc-crm-dashboard .dc-kpi:last-child span:first-child {
  color: var(--crm-teal) !important;
}

.dc-crm-dashboard .dc-inventory-table {
  color: var(--crm-text);
  font-size: 0.8125rem;
}

.dc-crm-dashboard .dc-inventory-table thead tr {
  background: #f7f9fc !important;
  border-bottom: 1px solid var(--crm-line);
}

.dc-crm-dashboard .dc-inventory-table th {
  color: #65738a !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.dc-crm-dashboard .dc-inventory-table tbody tr {
  border-bottom: 1px solid var(--crm-line-soft);
}

.dc-crm-dashboard .dc-inventory-table tbody tr:nth-child(even) {
  background: #fbfcfe;
}

.dc-crm-dashboard .dc-inventory-table tbody tr:hover {
  background: #f3f7ff !important;
}

.dc-crm-dashboard .dc-inventory-table code {
  background: #f2f5f9 !important;
  color: #536177 !important;
  border: 1px solid #e4e9f1;
  border-radius: 0.5rem;
  font-size: 0.725rem;
}

.dc-crm-dashboard .dc-inventory-table td {
  vertical-align: middle;
}

.dc-crm-dashboard .dc-inventory-table td div.bg-\[\#f2f4f6\] {
  background: #eef5ff !important;
  color: var(--crm-primary) !important;
  border: 1px solid #d9e8ff;
  box-shadow: none !important;
}

.dc-crm-dashboard .dc-row-actions {
  opacity: 1;
}

.dc-crm-dashboard .dc-row-actions a,
.dc-crm-dashboard .dc-row-actions button {
  border: 1px solid transparent;
}

.dc-crm-dashboard .dc-row-actions a:hover,
.dc-crm-dashboard .dc-row-actions button:hover {
  background: var(--crm-surface) !important;
  border-color: var(--crm-line);
  box-shadow: var(--crm-shadow-soft) !important;
}

.dc-crm-dashboard .dc-table-footer {
  background: #fbfcfe !important;
  border-top: 1px solid var(--crm-line) !important;
}

.dc-crm-dashboard .dc-table-footer select {
  background: var(--crm-surface) !important;
  color: var(--crm-text) !important;
}

.dc-crm-dashboard .bg-blue-100 {
  background: #eaf2ff !important;
  color: #1d5fd1 !important;
}

.dc-crm-dashboard .bg-\[\#6cf8bb\]\/40 {
  background: #e8f8f4 !important;
  color: #087968 !important;
}

.dc-crm-dashboard .bg-\[\#ffdbd0\] {
  background: #fff3e6 !important;
  color: #a15c00 !important;
}

.dc-crm-dashboard .bg-gray-100 {
  background: #eef1f5 !important;
  color: #667085 !important;
}

.dc-crm-dashboard .dc-analytics-card {
  overflow: hidden;
}

.dc-crm-dashboard .dc-analytics-card h3,
.dc-crm-dashboard .lg\:col-span-2 > .flex h3 {
  color: var(--crm-primary) !important;
}

.dc-crm-dashboard .dc-analytics-card .bg-slate-100,
.dc-crm-dashboard .dc-analytics-card .bg-black\/5,
.dc-crm-dashboard .dc-category-card .bg-black\/5 {
  background: #edf2f7 !important;
}

.dc-crm-dashboard .dc-category-card {
  background: var(--crm-surface) !important;
  border: 1px solid var(--crm-line) !important;
  box-shadow: var(--crm-shadow-soft) !important;
  min-height: 9.5rem;
}

.dc-crm-dashboard .dc-category-card:hover {
  border-color: #c7d2e2 !important;
  transform: translateY(-1px);
}

.dc-crm-dashboard .dc-category-card .bg-white\/70 {
  background: #f3f7ff !important;
  color: var(--crm-primary) !important;
  border: 1px solid #d9e8ff;
  box-shadow: none !important;
}

.dc-crm-dashboard .dc-category-card h4 {
  font-weight: 800;
}

.dc-crm-dashboard .dc-category-card .text-blue-600,
.dc-crm-dashboard .dc-category-card .text-purple-600,
.dc-crm-dashboard .dc-category-card .text-slate-600 {
  color: var(--crm-primary) !important;
}

.dc-crm-dashboard .dc-category-card .text-emerald-600,
.dc-crm-dashboard .dc-category-card .text-teal-600 {
  color: var(--crm-teal) !important;
}

.dc-crm-dashboard .dc-category-card .text-orange-600,
.dc-crm-dashboard .dc-category-card .text-yellow-600 {
  color: var(--crm-amber) !important;
}

.dc-crm-dashboard .dc-category-card .text-red-600 {
  color: var(--crm-rose) !important;
}

.dc-crm-dashboard .dc-fab {
  background: linear-gradient(135deg, var(--crm-primary), var(--crm-primary-dark)) !important;
  box-shadow: 0 18px 38px rgba(31, 111, 235, 0.28) !important;
}

@media (max-width: 900px) {
  .dc-crm-dashboard .dc-dashboard-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .dc-crm-dashboard .dc-dashboard-content {
    padding: 1.25rem;
  }
}

/* Unified light CRM system */
:root {
  --dc-bg: #f5f7fb;
  --dc-bg-elevated: #eef3f9;
  --dc-surface: #ffffff;
  --dc-surface-hover: #f8fafc;
  --dc-glass: #f7f9fc;
  --dc-glass-hover: #eef4fb;
  --dc-border: #dbe3ef;
  --dc-border-strong: #c5d1e2;
  --dc-text: #172033;
  --dc-text-muted: #637083;
  --dc-text-dim: #97a3b4;
  --dc-accent: #1f6feb;
  --dc-accent-2: #0f9f8f;
  --dc-teal: #0f9f8f;
  --dc-blue: #1f6feb;
  --dc-gradient: linear-gradient(135deg, #1f6feb 0%, #174ea6 100%);
  --dc-gradient-subtle: linear-gradient(135deg, rgba(31, 111, 235, 0.12), rgba(15, 159, 143, 0.1));
  --dc-shadow: 0 16px 42px rgba(26, 37, 63, 0.08);
  --dc-radius: 0.75rem;
  --dc-radius-lg: 1rem;
}

.dc-ambient {
  background: linear-gradient(180deg, #f5f7fb 0%, #fbfcff 48%, #f7f9fc 100%) !important;
}

.dc-app {
  background: var(--dc-bg) !important;
  color: var(--dc-text) !important;
}

.dc-sidebar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-right: 1px solid var(--dc-border) !important;
  box-shadow: 8px 0 28px rgba(26, 37, 63, 0.06) !important;
}

.dc-sidebar .dc-brand-icon {
  background: var(--dc-gradient) !important;
  box-shadow: 0 12px 24px rgba(31, 111, 235, 0.18) !important;
}

.dc-sidebar .text-white,
.dc-app .text-white:not(.dc-action-primary):not(.dc-fab):not(button):not(a) {
  color: var(--dc-text) !important;
}

.dc-nav-link {
  color: var(--dc-text-muted) !important;
  border-radius: 0.75rem;
}

.dc-nav-link:hover {
  background: var(--dc-glass-hover) !important;
  color: var(--dc-text) !important;
  border-color: var(--dc-border) !important;
}

.dc-nav-link.active {
  background: #eef5ff !important;
  color: var(--dc-accent) !important;
  border-color: #cfe0ff !important;
  box-shadow: none !important;
}

.dc-nav-section {
  color: var(--dc-text-dim) !important;
}

.dc-page-bar,
.dc-app main > header.sticky,
.dc-app main > header[class*="sticky"] {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid var(--dc-border) !important;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.02) !important;
}

.dc-card,
.dc-stat,
.dc-table-wrap,
.dc-app .bg-white,
.dc-app .bg-white\/70,
.dc-app .bg-white\/80 {
  background: var(--dc-surface) !important;
  border: 1px solid var(--dc-border) !important;
  box-shadow: var(--dc-shadow) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dc-app .bg-slate-50,
.dc-app .bg-slate-100,
.dc-app .bg-slate-200,
.dc-app .bg-\[\#f2f4f6\],
.dc-app .bg-\[\#f2f4f6\]\/50,
.dc-app .bg-\[\#f2f4f6\]\/60,
.dc-app .bg-\[\#f2f4f6\]\/30,
.dc-app .bg-\[\#e0e3e5\],
.dc-app .bg-\[\#e6e8ea\],
.dc-app .bg-\[\#f7f9fb\] {
  background: var(--dc-glass) !important;
}

.dc-app .hover\:bg-slate-50:hover,
.dc-app .hover\:bg-slate-100:hover,
.dc-app .hover\:bg-slate-200:hover,
.dc-app .hover\:bg-\[\#f7f9fb\]:hover,
.dc-app .hover\:bg-\[\#e6e8ea\]:hover {
  background: var(--dc-glass-hover) !important;
}

.dc-app .text-slate-900,
.dc-app .text-slate-800,
.dc-app .text-slate-700,
.dc-app .text-slate-600,
.dc-app .text-on-surface,
.dc-app .text-on-background {
  color: var(--dc-text) !important;
  -webkit-text-fill-color: currentColor !important;
}

.dc-app .text-slate-500,
.dc-app .text-slate-400,
.dc-app .text-on-surface-variant {
  color: var(--dc-text-muted) !important;
}

.dc-app input:not([type="checkbox"]):not([type="radio"]),
.dc-app select,
.dc-app textarea {
  background: var(--dc-surface) !important;
  color: var(--dc-text) !important;
  border: 1px solid var(--dc-border) !important;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.03) !important;
}

.dc-app input::placeholder,
.dc-app textarea::placeholder {
  color: var(--dc-text-dim) !important;
}

.dc-app input:focus,
.dc-app select:focus,
.dc-app textarea:focus {
  border-color: rgba(31, 111, 235, 0.46) !important;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1) !important;
}

.dc-app select option {
  background: #ffffff;
  color: var(--dc-text);
}

.dc-btn {
  background: var(--dc-surface) !important;
  color: var(--dc-text) !important;
  border: 1px solid var(--dc-border) !important;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.04) !important;
}

.dc-btn:hover {
  background: var(--dc-glass-hover) !important;
  border-color: var(--dc-border-strong) !important;
}

.dc-btn-primary,
.dc-app .bg-\[\#0050cb\],
.dc-app .bg-gradient-to-br.from-\[\#0050cb\].to-\[\#0066ff\],
.dc-app .from-\[\#0050cb\].to-\[\#0066ff\] {
  background: var(--dc-gradient) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 24px rgba(31, 111, 235, 0.2) !important;
}

.dc-btn-success {
  background: #e8f8f4 !important;
  color: #087968 !important;
  border-color: #c7eee6 !important;
}

.dc-btn-danger {
  background: #fff1f2 !important;
  color: #be123c !important;
  border-color: #ffd5dc !important;
}

.dc-stat-value.accent,
.dc-page-bar-icon .material-symbols-outlined,
.dc-app .text-\[\#0050cb\],
.dc-app .text-blue-700,
.dc-app .text-violet-700 {
  background: none !important;
  color: var(--dc-accent) !important;
  -webkit-text-fill-color: currentColor !important;
}

.dc-stat-value {
  color: var(--dc-text) !important;
}

.dc-app thead tr {
  background: #f7f9fc !important;
}

.dc-app tbody tr {
  border-bottom: 1px solid var(--dc-border) !important;
}

.dc-app tbody tr:nth-child(even) {
  background: #fbfcfe;
}

.dc-app tbody tr:hover {
  background: #f3f7ff !important;
}

.dc-table-wrap {
  border-radius: 1rem;
  overflow: hidden;
}

.dc-app .bg-blue-100 {
  background: #eaf2ff !important;
  color: #1d5fd1 !important;
}

.dc-app .bg-violet-100 {
  background: #f1edff !important;
  color: #6d28d9 !important;
}

.dc-app .bg-green-100,
.dc-app .bg-emerald-100 {
  background: #e8f8f4 !important;
  color: #087968 !important;
}

.dc-app .bg-red-100,
.dc-app .bg-red-50 {
  background: #fff1f2 !important;
  color: #be123c !important;
}

.dc-app .fixed .relative.bg-white {
  background: #ffffff !important;
  border: 1px solid var(--dc-border) !important;
  box-shadow: 0 24px 70px rgba(26, 37, 63, 0.16) !important;
}

.dc-app .fixed.inset-0 > .absolute.inset-0.bg-black\/50 {
  background: rgba(15, 23, 42, 0.32) !important;
  backdrop-filter: blur(6px);
}

.dc-report-dashboard .dc-page-body {
  max-width: 86rem;
}

.dc-report-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.dc-import-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dc-import-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem;
  border: 1px solid var(--dc-border);
  border-radius: 1rem;
  background: var(--dc-surface);
  box-shadow: 0 8px 20px rgba(26, 37, 63, 0.05);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dc-import-card:hover {
  border-color: var(--dc-border-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(26, 37, 63, 0.08);
}

.dc-import-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dc-accent);
  background: #eef5ff;
  flex-shrink: 0;
}

.dc-report-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
}

.dc-report-template {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--dc-border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(26, 37, 63, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.dc-report-template:hover {
  transform: translateY(-1px);
  border-color: #c7d2e2;
  box-shadow: 0 14px 28px rgba(26, 37, 63, 0.08);
}

.dc-report-template.is-active {
  background: #f3f8ff;
  border-color: #9fc2ff;
  box-shadow: 0 16px 34px rgba(31, 111, 235, 0.12);
}

.dc-report-template .material-symbols-outlined {
  grid-row: 1 / span 2;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #eef5ff;
  color: #1f6feb;
}

.dc-report-template strong {
  color: #172033;
  font-size: 0.84rem;
  line-height: 1.15;
}

.dc-report-template small {
  color: #637083;
  font-size: 0.72rem;
  line-height: 1.25;
}

.dc-report-filter-card {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: 1rem;
  box-shadow: var(--dc-shadow);
}

.dc-pdf-review {
  background: #ffffff;
  border: 1px solid var(--dc-border);
  border-radius: 1rem;
  box-shadow: var(--dc-shadow);
  overflow: hidden;
}

.dc-pdf-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #edf2f7;
  background: #fbfcfe;
}

.dc-pdf-review-header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 850;
  color: #172033;
}

.dc-pdf-review-header p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: #637083;
}

.dc-pdf-review-notice {
  margin: 1rem 1.25rem 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #dbe8ff;
  border-radius: 0.875rem;
  background: #f3f8ff;
  color: #174ea6;
  font-size: 0.8rem;
  font-weight: 700;
}

.dc-pdf-review-notice.is-error {
  background: #fff1f2;
  border-color: #ffd5dc;
  color: #be123c;
}

.dc-pdf-review-notice.is-success {
  background: #e8f8f4;
  border-color: #c7eee6;
  color: #087968;
}

.dc-pdf-review-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  padding: 1rem 1.25rem 1.25rem;
}

.dc-pdf-review-table th {
  padding: 0.65rem 0.5rem;
  color: #65738a;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  background: transparent !important;
}

.dc-pdf-review-table td {
  padding: 0.4rem 0.5rem;
  border-top: 1px solid #edf2f7;
}

.dc-pdf-review-table input:not([type="checkbox"]),
.dc-pdf-review-table select {
  width: 100%;
  min-height: 2.15rem;
  border-radius: 0.625rem !important;
  font-size: 0.78rem;
}

.dc-confidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #1f6feb;
  font-size: 0.72rem;
  font-weight: 900;
}

.dc-pdf-empty {
  padding: 2rem !important;
  text-align: center;
  color: #637083;
  font-weight: 700;
}

.dc-app table {
  font-variant-numeric: tabular-nums;
}

.dc-app .dc-card,
.dc-app .dc-stat,
.dc-app .dc-report-filter-card,
.dc-app .dc-import-card,
.dc-app .dc-table-wrap,
.dc-app .dc-pdf-review {
  border-radius: 1rem;
}

.dc-report-table table {
  border-collapse: separate;
  border-spacing: 0 0.55rem;
  padding: 0 0.875rem 0.875rem;
}

.dc-report-table th {
  color: #65738a !important;
  white-space: nowrap;
  border: 0 !important;
  padding-top: 1rem !important;
  padding-bottom: 0.65rem !important;
  background: transparent !important;
}

.dc-report-table td {
  border: 0 !important;
  background: transparent;
}

.dc-report-table tbody tr:last-child td {
  border-bottom: 0;
}

.dc-report-table {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 1.125rem !important;
  box-shadow: 0 18px 44px rgba(26, 37, 63, 0.08) !important;
}

.dc-report-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid #edf2f7;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dc-report-table-header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: #172033;
}

.dc-report-table-header p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: #637083;
}

.dc-report-table-total {
  min-width: 5.25rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #dbe8ff;
  border-radius: 0.875rem;
  background: #eef5ff;
  text-align: center;
}

.dc-report-table-total span {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  color: #1f6feb;
}

.dc-report-table-total small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #637083;
}

.dc-report-row {
  box-shadow: 0 1px 0 #e8eef6;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.dc-report-row td {
  background: #ffffff !important;
  border-top: 1px solid #e8eef6 !important;
  border-bottom: 1px solid #e8eef6 !important;
}

.dc-report-row td:first-child {
  border-left: 1px solid #e8eef6 !important;
  border-radius: 0.875rem 0 0 0.875rem;
}

.dc-report-row td:last-child {
  border-right: 1px solid #e8eef6 !important;
  border-radius: 0 0.875rem 0.875rem 0;
}

.dc-report-row:nth-child(even) td {
  background: #fbfdff !important;
}

.dc-report-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26, 37, 63, 0.08);
}

.dc-report-row:hover td {
  background: #f6faff !important;
  border-color: #cfe0ff !important;
}

.dc-report-item-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #172033;
}

.dc-report-model,
.dc-report-table tbody .text-sm.text-slate-500 {
  display: inline-flex;
  max-width: 100%;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #f3f6fa;
  color: #637083 !important;
  font-size: 0.75rem;
  font-weight: 650;
}

.dc-report-quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.dc-report-quantity.is-asset {
  color: #1d5fd1;
  background: #eaf2ff;
  border: 1px solid #cfe0ff;
}

.dc-report-quantity.is-supply {
  color: #087968;
  background: #e8f8f4;
  border: 1px solid #c7eee6;
}

.dc-report-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.75rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dc-report-badge.is-asset {
  color: #1d5fd1;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
}

.dc-report-badge.is-supply {
  color: #087968;
  background: #ecfbf8;
  border: 1px solid #c7eee6;
}

.dc-report-summary-row td {
  background: #f7faff !important;
  border-top: 1px solid #dbe8ff !important;
  border-bottom: 1px solid #dbe8ff !important;
  color: #172033 !important;
}

.dc-report-summary-row td:first-child {
  border-left: 1px solid #dbe8ff !important;
  border-radius: 0.875rem 0 0 0.875rem;
}

.dc-report-summary-row td:last-child {
  border-right: 1px solid #dbe8ff !important;
  border-radius: 0 0.875rem 0.875rem 0;
}

/* Receipt-style report table */
.dc-report-table {
  max-width: 68rem;
  margin-left: auto;
  margin-right: auto;
  background:
    linear-gradient(90deg, transparent 0, transparent 0.85rem, rgba(23, 32, 51, 0.035) 0.85rem, rgba(23, 32, 51, 0.035) 0.9rem, transparent 0.9rem),
    #fffdf8 !important;
  border: 1px solid #eadfcb !important;
  border-radius: 0.875rem !important;
  box-shadow: 0 24px 55px rgba(68, 53, 30, 0.12) !important;
  position: relative;
}

.dc-report-table::before,
.dc-report-table::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background-image: linear-gradient(90deg, #d8c8ae 45%, transparent 45%);
  background-size: 8px 1px;
  opacity: 0.85;
}

.dc-report-table::before {
  top: 4.9rem;
}

.dc-report-table::after {
  bottom: 4.2rem;
}

.dc-report-table-header {
  padding: 1.35rem 1.5rem 1.1rem;
  background: transparent;
  border-bottom: 0;
  text-align: left;
}

.dc-report-table-header h2 {
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dc-report-table-header p {
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #7a6a55;
}

.dc-report-table-total {
  background: #fff7e8;
  border-color: #eadfcb;
  border-radius: 0.5rem;
}

.dc-report-table-total span {
  color: #8a5a13;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dc-report-table table {
  border-spacing: 0 !important;
  padding: 0 1.25rem 1.1rem !important;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dc-report-table thead tr {
  background: transparent !important;
}

.dc-report-table th {
  padding-top: 1.1rem !important;
  padding-bottom: 0.8rem !important;
  color: #7a6a55 !important;
  border-bottom: 2px solid #2f2a22 !important;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.dc-report-row {
  box-shadow: none !important;
  transform: none !important;
}

.dc-report-row td {
  padding-top: 0.72rem !important;
  padding-bottom: 0.72rem !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px dotted #cdbfaa !important;
}

.dc-report-row td:first-child,
.dc-report-row td:last-child {
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}

.dc-report-row:nth-child(even) td {
  background: rgba(138, 90, 19, 0.025) !important;
}

.dc-report-row:hover td {
  background: rgba(31, 111, 235, 0.045) !important;
  border-color: #b9c9df !important;
}

.dc-report-item-name {
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  color: #2f2a22;
}

.dc-report-model,
.dc-report-table tbody .text-sm.text-slate-500 {
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: #7a6a55 !important;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.dc-report-quantity {
  min-width: auto;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: #2f2a22 !important;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  font-weight: 900;
}

.dc-report-badge {
  min-width: 4.25rem;
  padding: 0.25rem 0.45rem;
  border-radius: 0.35rem;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.dc-report-badge.is-asset {
  color: #174ea6;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
}

.dc-report-badge.is-supply {
  color: #087968;
  background: #ecfbf8;
  border: 1px solid #c7eee6;
}

.dc-report-summary-row td {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 2px solid #2f2a22 !important;
  color: #2f2a22 !important;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dc-report-summary-row td:first-child,
.dc-report-summary-row td:last-child {
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 1100px) {
  .dc-report-actions {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .dc-import-grid {
    grid-template-columns: 1fr;
  }

  .dc-report-template-grid {
    grid-template-columns: 1fr;
  }
}

/* Inventory table fit and readability */
.dc-crm-dashboard .dc-inventory-panel {
  width: 100%;
}

.dc-crm-dashboard .dc-inventory-table {
  table-layout: fixed;
  min-width: 1040px;
}

.dc-crm-dashboard .dc-inventory-table .dc-col-property { width: 9%; }
.dc-crm-dashboard .dc-inventory-table .dc-col-equipment { width: 19%; }
.dc-crm-dashboard .dc-inventory-table .dc-col-serial { width: 14%; }
.dc-crm-dashboard .dc-inventory-table .dc-col-category { width: 8%; }
.dc-crm-dashboard .dc-inventory-table .dc-col-status { width: 9%; }
.dc-crm-dashboard .dc-inventory-table .dc-col-finance { width: 12%; }
.dc-crm-dashboard .dc-inventory-table .dc-col-health { width: 11%; }
.dc-crm-dashboard .dc-inventory-table .dc-col-assigned { width: 12%; }
.dc-crm-dashboard .dc-inventory-table .dc-col-updated { width: 10%; }
.dc-crm-dashboard .dc-inventory-table .dc-col-actions { width: 10%; }

.dc-crm-dashboard .dc-inventory-table th,
.dc-crm-dashboard .dc-inventory-table td {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.dc-crm-dashboard .dc-inventory-table th {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.dc-crm-dashboard .dc-inventory-table td {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.dc-crm-dashboard .dc-inventory-row {
  height: 4.35rem;
}

.dc-crm-dashboard .dc-inventory-table td:nth-child(2) .p-2 {
  width: 2.125rem;
  height: 2.125rem;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dc-crm-dashboard .dc-inventory-table td:nth-child(2) .material-symbols-outlined {
  font-size: 1.15rem !important;
}

.dc-crm-dashboard .dc-inventory-table td:nth-child(6) .space-y-1 {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.dc-crm-dashboard .dc-inventory-table td:nth-child(6) .text-\[10px\] {
  line-height: 1.1;
}

.dc-crm-dashboard .dc-inventory-table th {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-crm-dashboard .dc-inventory-table td {
  overflow: hidden;
}

.dc-crm-dashboard .dc-inventory-table td code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.dc-crm-dashboard .dc-inventory-table td:nth-child(2) > .flex {
  min-width: 0;
}

.dc-crm-dashboard .dc-inventory-table td:nth-child(2) > .flex > div:last-child {
  min-width: 0;
}

.dc-crm-dashboard .dc-row-actions {
  justify-content: flex-end;
  gap: 0.125rem !important;
  white-space: nowrap;
}

.dc-crm-dashboard .dc-row-actions a,
.dc-crm-dashboard .dc-row-actions button {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dc-crm-dashboard .dc-row-actions .material-symbols-outlined {
  font-size: 1rem !important;
}

@media (min-width: 1380px) {
  .dc-crm-dashboard .dc-inventory-table {
    min-width: 0;
  }
}
