/* ==========================================================================
   ATLAS RUGS Â· ISTANBUL â€” SCOPED ENTERPRISE DASHBOARD STYLESHEET
   Strictly scoped to body.atlas-dash-route / #atlasDashboardRoot
   ========================================================================== */

body.atlas-dash-route {
  --bg-canvas: #F8F6F1;
  --bg-surface: #FFFFFF;
  --bg-subtle: #FBF9F5;
  --bg-hover: #F3EFE6;
  --bg-rail: #14110F;
  --bg-hero: #14110F;

  --border: #E7E1D5;
  --border-strong: #D6CEBE;
  --border-rail: rgba(212, 175, 55, 0.16);

  --ink: #14110F;
  --ink-2: #5D544A;
  --ink-3: #8E8477;

  --gold: #B59438;
  --gold-bright: #D4AF37;
  --gold-soft: rgba(181, 148, 56, 0.10);
  --gold-border: rgba(181, 148, 56, 0.34);

  --emerald: #166549;
  --emerald-bg: rgba(22, 101, 73, 0.09);
  --amber: #B45309;
  --amber-bg: rgba(180, 83, 9, 0.09);
  --rose: #B91C1C;
  --rose-bg: rgba(185, 28, 28, 0.08);

  --shadow-sm: 0 1px 3px rgba(20, 17, 15, 0.03), 0 1px 2px rgba(20, 17, 15, 0.02);
  --shadow-md: 0 10px 28px -8px rgba(20, 17, 15, 0.08);
  --shadow-drawer: -16px 0 48px rgba(20, 17, 15, 0.16);

  --rail-w: 64px;
  --bar-h: 56px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  background-color: #F7F5F0 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A23F' stroke-width='0.9' stroke-opacity='0.09'%3E%3Cpolygon points='48,6 90,48 48,90 6,48'/%3E%3Cpolygon points='48,20 76,48 48,76 20,48'/%3E%3Cpolygon points='48,34 62,48 48,62 34,48'/%3E%3Cpath d='M0 0 L16 16 M96 0 L80 16 M0 96 L16 80 M96 96 L80 80'/%3E%3Ccircle cx='48' cy='48' r='3'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(201, 162, 63, 0.025) 0px, rgba(201, 162, 63, 0.025) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(139, 58, 43, 0.02) 0px, rgba(139, 58, 43, 0.02) 1px, transparent 1px, transparent 4px) !important;
  background-size: 96px 96px, auto, auto !important;
  color: var(--ink) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

html[data-theme="dark"] body.atlas-dash-route {
  --bg-canvas: #120F0D;
  --bg-surface: #191512;
  --bg-subtle: #201B17;
  --bg-hover: #28211C;
  --bg-rail: #0D0A09;
  --bg-hero: #0D0A09;

  --border: rgba(212, 175, 55, 0.15);
  --border-strong: rgba(212, 175, 55, 0.28);
  --border-rail: rgba(212, 175, 55, 0.14);

  --ink: #F5F1E9;
  --ink-2: #BFB5A7;
  --ink-3: #857B6F;

  --gold: #D4AF37;
  --gold-bright: #E6C55A;
  --gold-soft: rgba(212, 175, 55, 0.13);
  --gold-border: rgba(212, 175, 55, 0.34);

  --emerald: #34D399;
  --emerald-bg: rgba(52, 211, 153, 0.12);
  --amber: #FBBF24;
  --amber-bg: rgba(251, 191, 36, 0.12);
  --rose: #F87171;
  --rose-bg: rgba(248, 113, 113, 0.12);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-drawer: -20px 0 60px rgba(0, 0, 0, 0.65);

  background-color: #120F0D !important;
}

html[data-theme="dark"] body.atlas-dash-route .main-wrapper .page-wrapper {
  background-color: #120F0D !important;
}

/* Keep native Angular Espresso sidebar & header visible on ALL routes;
   on dashboard routes, hide only the legacy inner dashboard component */
body.atlas-dash-route .main-wrapper .page-wrapper > :not(#atlasDashboardRoot) {
  display: none !important;
}

body.atlas-dash-route .main-wrapper .page-wrapper {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  min-height: 100vh;
}

body.atlas-dash-route .main-wrapper .header {
  width: 260px !important;
  right: auto !important;
  background: #14110F !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

body.atlas-dash-route.mini-sidebar:not(.expand-menu) .main-wrapper .header {
  width: 80px !important;
}

body.atlas-dash-route .main-wrapper .header .header-center,
body.atlas-dash-route .main-wrapper .header #atlasErpHeaderControls {
  display: none !important;
}

#atlasDashboardRoot {
  display: none;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.atlas-dash-route #atlasDashboardRoot {
  display: block;
}

#atlasDashboardRoot *,
#atlasDashboardRoot *::before,
#atlasDashboardRoot *::after {
  box-sizing: border-box;
}

#atlasDashboardRoot .serif { font-family: 'Cormorant Garamond', Georgia, serif; }
#atlasDashboardRoot .mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

#atlasDashboardRoot button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

#atlasDashboardRoot input {
  font-family: inherit;
  color: inherit;
}

/* 3. 64px ESPRESSO LEFT RAIL */
#atlasDashboardRoot .shell {
  display: flex;
  min-height: 100vh;
}

#atlasDashboardRoot .rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  background: var(--bg-rail);
  border-right: 1px solid var(--border-rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 45;
  transition: transform 0.24s var(--ease);
}

#atlasDashboardRoot .rail-logo {
  height: var(--bar-h);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-rail);
  flex-shrink: 0;
}

#atlasDashboardRoot .rail-nav {
  flex: 1;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  overflow-y: auto;
}

#atlasDashboardRoot .rail-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9A9083;
  position: relative;
  transition: all 0.16s ease;
}

#atlasDashboardRoot .rail-btn svg {
  width: 18px;
  height: 18px;
}

#atlasDashboardRoot .rail-btn:hover {
  background: rgba(212, 175, 55, 0.11);
  color: #F5F1E9;
}

#atlasDashboardRoot .rail-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

#atlasDashboardRoot .rail-btn.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gold-bright);
}

#atlasDashboardRoot .rail-btn::after {
  content: attr(data-tip);
  position: absolute;
  left: 52px;
  background: #14110F;
  color: #F5F1E9;
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 60;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#atlasDashboardRoot .rail-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

#atlasDashboardRoot .rail-bottom {
  padding: 12px 0;
  border-top: 1px solid var(--border-rail);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#atlasDashboardRoot .stage {
  flex: 1;
  margin-left: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 4. 56px SINGLE-ROW TOP CONTROL BAR */
#atlasDashboardRoot .topbar {
  height: 60px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}

html[data-theme="dark"] body.atlas-dash-route #atlasDashboardRoot .topbar {
  background: rgba(25, 21, 18, 0.90);
}

#atlasDashboardRoot .bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

#atlasDashboardRoot .mobile-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

#atlasDashboardRoot .brand-stack {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

#atlasDashboardRoot .brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

#atlasDashboardRoot .fy-pill {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

#atlasDashboardRoot .cmd-box {
  position: relative;
  width: 230px;
}

#atlasDashboardRoot .cmd-box input {
  width: 100%;
  height: 33px;
  padding: 0 42px 0 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#atlasDashboardRoot .cmd-box input:focus {
  border-color: var(--gold);
  background: var(--bg-surface);
}

#atlasDashboardRoot .cmd-box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

#atlasDashboardRoot .cmd-kbd {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
}

#atlasDashboardRoot .bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#atlasDashboardRoot .curr-group {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

#atlasDashboardRoot .curr-btn {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all 0.14s ease;
}

#atlasDashboardRoot .curr-btn.active {
  background: var(--ink);
  color: #F8F6F1;
}

html[data-theme="dark"] body.atlas-dash-route #atlasDashboardRoot .curr-btn.active {
  background: var(--gold);
  color: #120F0D;
}

#atlasDashboardRoot .pending-pill {
  height: 32px;
  padding: 0 11px;
  border-radius: 99px;
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background 0.14s ease;
}

#atlasDashboardRoot .pending-pill:hover {
  background: rgba(181, 148, 56, 0.18);
}

#atlasDashboardRoot .pending-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 148, 56, 0.22);
}

#atlasDashboardRoot .theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: border-color 0.14s ease, color 0.14s ease;
}

#atlasDashboardRoot .theme-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
}

#atlasDashboardRoot .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #14110F;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

/* 5. WORKSPACE & EXECUTIVE HERO BANNER */
#atlasDashboardRoot .workspace {
  padding: 24px 28px 48px;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#atlasDashboardRoot .hero-banner {
  background: linear-gradient(135deg, #181411 0%, #110E0C 62%, #201913 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  padding: 24px 28px;
  color: #F8F6F1;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

#atlasDashboardRoot .hero-banner::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2.5px;
  background: linear-gradient(90deg, #8C6A21, #E6C55A, #B59438);
}

#atlasDashboardRoot .hero-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

#atlasDashboardRoot .hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D4AF37;
  display: flex;
  align-items: center;
  gap: 8px;
}

#atlasDashboardRoot .hero-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

#atlasDashboardRoot .hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  margin: 0;
}

#atlasDashboardRoot .verified-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid #D4AF37;
  color: #E6C55A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#atlasDashboardRoot .hero-desc {
  font-size: 13px;
  color: #C7BEB0;
  max-width: 520px;
  margin: 0;
}

#atlasDashboardRoot .hero-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

#atlasDashboardRoot .h-chip {
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.22);
  font-size: 11.5px;
  font-weight: 600;
  color: #EAE3D5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#atlasDashboardRoot .h-chip.clickable {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#atlasDashboardRoot .h-chip.clickable:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: #D4AF37;
}

#atlasDashboardRoot .hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(212, 175, 55, 0.18);
  position: relative;
  z-index: 2;
}

#atlasDashboardRoot .profit-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

#atlasDashboardRoot .profit-kicker {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #D4AF37;
}

#atlasDashboardRoot .profit-period-badge {
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 10.5px;
  font-weight: 600;
  color: #BFB5A7;
}

#atlasDashboardRoot .profit-main-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#atlasDashboardRoot .profit-val {
  font-size: 29px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
}

#atlasDashboardRoot .profit-yoy {
  font-size: 11.5px;
  font-weight: 600;
  color: #34D399;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#atlasDashboardRoot .profit-yoy span {
  color: #8E8477;
  font-weight: 500;
}

#atlasDashboardRoot .hero-bars-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 210px;
}

#atlasDashboardRoot .hero-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 52px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

#atlasDashboardRoot .hbar-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

#atlasDashboardRoot .hbar-fill {
  width: 100%;
  border-radius: 2px 2px 0 0;
  background: rgba(212, 175, 55, 0.42);
  border-top: 1.5px solid #E6C55A;
  transition: background 0.14s ease;
}

#atlasDashboardRoot .hbar-col:hover .hbar-fill,
#atlasDashboardRoot .hbar-col.current .hbar-fill {
  background: #D4AF37;
}

#atlasDashboardRoot .hero-bars-axis {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #8E8477;
}

#atlasDashboardRoot .hbar-tip {
  position: absolute;
  top: -32px;
  right: 0;
  background: #0D0A09;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #F8F6F1;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

#atlasDashboardRoot .hbar-tip.show { opacity: 1; }

#atlasDashboardRoot .pnl-bridge {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 11px;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
}

#atlasDashboardRoot .pnl-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
}

#atlasDashboardRoot .pnl-cell:not(:first-child) {
  padding-left: 12px;
  border-left: 1px solid rgba(212, 175, 55, 0.14);
}

#atlasDashboardRoot .pnl-k {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8E8477;
}

#atlasDashboardRoot .pnl-v {
  font-size: 12.5px;
  font-weight: 700;
  color: #EAE3D5;
}

/* 6. 6-COLUMN EXECUTIVE KPI STRIP */
#atlasDashboardRoot .kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

#atlasDashboardRoot .kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

#atlasDashboardRoot .kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
}

#atlasDashboardRoot .kpi-card.gold-card {
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--bg-surface) 100%);
  border-color: var(--gold-border);
}

#atlasDashboardRoot .kpi-card.gold-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

#atlasDashboardRoot .kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

#atlasDashboardRoot .kpi-lbl {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

#atlasDashboardRoot .kpi-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

#atlasDashboardRoot .kpi-val {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

#atlasDashboardRoot .kpi-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#atlasDashboardRoot .tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}

#atlasDashboardRoot .tag.pos { background: var(--emerald-bg); color: var(--emerald); }
#atlasDashboardRoot .tag.warn { background: var(--amber-bg); color: var(--amber); }
#atlasDashboardRoot .tag.neutral { background: var(--bg-subtle); color: var(--ink-3); border: 1px solid var(--border); }
#atlasDashboardRoot .tag.gold { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-border); }

#atlasDashboardRoot .mini-spark {
  width: 58px;
  height: 20px;
}

/* 7. CARDS, QUALITY TILES, CASH FLOW, APPROVALS & INVOICES */
#atlasDashboardRoot .card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0;
}

#atlasDashboardRoot .card-top {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

#atlasDashboardRoot .card-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#atlasDashboardRoot .card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

#atlasDashboardRoot .card-sub {
  font-size: 11.5px;
  color: var(--ink-3);
}

#atlasDashboardRoot .q-grid {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  flex: 1;
}

#atlasDashboardRoot .q-tile {
  padding: 15px 16px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: all 0.16s ease;
}

#atlasDashboardRoot .q-tile:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background: var(--bg-surface);
}

#atlasDashboardRoot .q-tile.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold);
}

#atlasDashboardRoot .q-tile-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

#atlasDashboardRoot .q-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

#atlasDashboardRoot .q-pcs {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold);
}

#atlasDashboardRoot .q-area {
  font-size: 10.5px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
}

#atlasDashboardRoot .q-bar {
  height: 4px;
  width: 100%;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}

#atlasDashboardRoot .q-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

#atlasDashboardRoot .q-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

#atlasDashboardRoot .reset-pill {
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--gold-border);
  background: var(--bg-subtle);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

#atlasDashboardRoot .bento-mid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

#atlasDashboardRoot .approval-body {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  flex: 1;
}

#atlasDashboardRoot .approval-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#atlasDashboardRoot .app-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 12.5px;
}

#atlasDashboardRoot .app-item.highlight {
  border-color: var(--gold-border);
  background: var(--gold-soft);
}

#atlasDashboardRoot .app-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

#atlasDashboardRoot .mix-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

#atlasDashboardRoot .donut-wrap {
  position: relative;
  width: 152px;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#atlasDashboardRoot .donut-center {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#atlasDashboardRoot .donut-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

#atlasDashboardRoot .donut-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-top: 3px;
}

#atlasDashboardRoot .action-btn-dark {
  padding: 7px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: #F8F6F1;
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#atlasDashboardRoot .action-btn-dark:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

html[data-theme="dark"] body.atlas-dash-route #atlasDashboardRoot .action-btn-dark {
  background: var(--gold);
  color: #120F0D;
}

#atlasDashboardRoot .cf-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}

#atlasDashboardRoot .cf-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

#atlasDashboardRoot .chart-box {
  position: relative;
  padding: 18px 22px 14px;
  flex: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
}

#atlasDashboardRoot .cf-svg {
  width: 100%;
  height: 205px;
  overflow: visible;
  cursor: crosshair;
}

#atlasDashboardRoot .cf-tip {
  position: absolute;
  pointer-events: none;
  background: #14110F;
  color: #F8F6F1;
  border: 1px solid var(--gold-border);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 15;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#atlasDashboardRoot .cf-tip.show { opacity: 1; }

#atlasDashboardRoot .inv-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

#atlasDashboardRoot .inv-table-wrap {
  overflow-x: auto;
  flex: 1;
}

#atlasDashboardRoot table.inv-mini-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

#atlasDashboardRoot .inv-mini-table thead th {
  padding: 10px 18px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  white-space: nowrap;
}

#atlasDashboardRoot .inv-mini-table tbody tr {
  height: 50px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.13s ease;
}

#atlasDashboardRoot .inv-mini-table tbody tr:last-child {
  border-bottom: none;
}

#atlasDashboardRoot .inv-mini-table tbody tr:hover {
  background: var(--bg-hover);
}

#atlasDashboardRoot .inv-mini-table td {
  padding: 8px 18px;
  font-size: 12.5px;
  white-space: nowrap;
}

#atlasDashboardRoot .inv-party-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#atlasDashboardRoot .inv-party-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 12.5px;
}

#atlasDashboardRoot .inv-party-meta {
  font-size: 11px;
  color: var(--ink-3);
}

#atlasDashboardRoot .inv-status {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#atlasDashboardRoot .inv-status.paid {
  background: var(--emerald-bg);
  color: var(--emerald);
}

#atlasDashboardRoot .inv-status.partial {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

#atlasDashboardRoot .inv-status.pending {
  background: var(--amber-bg);
  color: var(--amber);
}

/* 8. INTERACTIVE TABBED REGISTER */
#atlasDashboardRoot .seg-pills {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
}

#atlasDashboardRoot .seg-btn {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.14s ease;
}

#atlasDashboardRoot .seg-btn:hover { color: var(--ink); }

#atlasDashboardRoot .seg-btn.active {
  background: var(--ink);
  color: #F8F6F1;
}

html[data-theme="dark"] body.atlas-dash-route #atlasDashboardRoot .seg-btn.active {
  background: var(--gold);
  color: #120F0D;
}

#atlasDashboardRoot .filter-bar {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

#atlasDashboardRoot .reg-search {
  position: relative;
  width: 260px;
  max-width: 100%;
}

#atlasDashboardRoot .reg-search input {
  width: 100%;
  height: 35px;
  padding: 0 12px 0 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 12px;
  outline: none;
}

#atlasDashboardRoot .reg-search input:focus { border-color: var(--gold); }

#atlasDashboardRoot .reg-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

#atlasDashboardRoot .chip-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

#atlasDashboardRoot .chip {
  height: 31px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.14s ease;
}

#atlasDashboardRoot .chip:hover {
  border-color: var(--gold);
  color: var(--ink);
}

#atlasDashboardRoot .chip.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

#atlasDashboardRoot .toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  margin-right: 6px;
}

#atlasDashboardRoot .toggle-track {
  width: 34px;
  height: 18px;
  border-radius: 99px;
  background: var(--border-strong);
  position: relative;
  transition: background 0.16s ease;
}

#atlasDashboardRoot .toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.16s ease;
}

#atlasDashboardRoot .toggle-input { display: none; }
#atlasDashboardRoot .toggle-input:checked + .toggle-track { background: var(--gold); }
#atlasDashboardRoot .toggle-input:checked + .toggle-track::after { transform: translateX(16px); }

#atlasDashboardRoot .table-wrap { overflow-x: auto; }

#atlasDashboardRoot table.clean-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

#atlasDashboardRoot .clean-table thead th {
  padding: 12px 22px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  white-space: nowrap;
}

#atlasDashboardRoot .clean-table tbody tr {
  height: 50px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.13s ease;
}

#atlasDashboardRoot .clean-table tbody tr:last-child { border-bottom: none; }
#atlasDashboardRoot .clean-table tbody tr:hover { background: var(--bg-hover); }

#atlasDashboardRoot .clean-table td {
  padding: 0 22px;
  font-size: 13px;
  white-space: nowrap;
}

#atlasDashboardRoot .clean-table tfoot td {
  padding: 14px 22px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-strong);
  color: var(--ink);
  white-space: nowrap;
}

#atlasDashboardRoot .num-r { text-align: right; }

#atlasDashboardRoot .vault-badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--ink-2);
}

#atlasDashboardRoot .bal-open { font-weight: 700; color: var(--gold); }
#atlasDashboardRoot .bal-zero { color: var(--ink-3); }

/* 9. SLIDE-OVER INSPECTOR & APPROVAL DRAWER */
#atlasDashboardRoot .scrim {
  position: fixed;
  inset: 0;
  background: rgba(18, 15, 13, 0.48);
  backdrop-filter: blur(2px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

#atlasDashboardRoot .scrim.open { opacity: 1; pointer-events: auto; }

#atlasDashboardRoot .drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 460px;
  max-width: 100vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-drawer);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.24s var(--ease);
}

#atlasDashboardRoot .drawer.open { transform: translateX(0); }

#atlasDashboardRoot .drawer-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#atlasDashboardRoot .drawer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

#atlasDashboardRoot .drawer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

#atlasDashboardRoot .close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-2);
}

#atlasDashboardRoot .close-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
}

#atlasDashboardRoot .drawer-body {
  padding: 22px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#atlasDashboardRoot .rug-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
}

#atlasDashboardRoot .spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

#atlasDashboardRoot .spec-item {
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

#atlasDashboardRoot .spec-k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  margin-bottom: 3px;
}

#atlasDashboardRoot .spec-v {
  font-size: 14.5px;
  font-weight: 700;
}

#atlasDashboardRoot .drawer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}

#atlasDashboardRoot .drawer-table th {
  padding: 10px 12px;
  background: var(--bg-subtle);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

#atlasDashboardRoot .drawer-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
}

#atlasDashboardRoot .drawer-table tr:last-child td { border-bottom: none; }

#atlasDashboardRoot .approve-btn {
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--ink);
  color: #F8F6F1;
  font-size: 11px;
  font-weight: 700;
}

html[data-theme="dark"] body.atlas-dash-route #atlasDashboardRoot .approve-btn {
  background: var(--gold);
  color: #120F0D;
}

#atlasDashboardRoot .module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#atlasDashboardRoot .module-link-btn {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#atlasDashboardRoot .module-link-btn:hover {
  border-color: var(--gold);
  background: var(--bg-hover);
}

/* 10. RESPONSIVE ADAPTATIONS */
@media (max-width: 1360px) {
  #atlasDashboardRoot .kpi-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  #atlasDashboardRoot .hero-banner,
  #atlasDashboardRoot .bento-mid,
  #atlasDashboardRoot .inv-bento {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  #atlasDashboardRoot .rail { transform: translateX(-100%); }
  #atlasDashboardRoot .rail.open { transform: translateX(0); }
  #atlasDashboardRoot .stage { margin-left: 0; }
  #atlasDashboardRoot .mobile-btn { display: flex; }
  #atlasDashboardRoot .cmd-box, #atlasDashboardRoot .fy-pill { display: none; }
  #atlasDashboardRoot .topbar, #atlasDashboardRoot .workspace { padding-left: 16px; padding-right: 16px; }
  #atlasDashboardRoot .q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  #atlasDashboardRoot .kpi-grid-6,
  #atlasDashboardRoot .q-grid,
  #atlasDashboardRoot .approval-body {
    grid-template-columns: 1fr;
  }
  #atlasDashboardRoot .donut-wrap { margin: 0 auto; }
}

/* ==========================================================================
   11. ESPRESSO & GOLD RAIL MODULE FLYOUT MENU
   ========================================================================== */
#atlasDashboardRoot .rail-flyout-scrim {
  position: fixed;
  inset: 0 0 0 var(--rail-w);
  background: rgba(18, 15, 13, 0.35);
  z-index: 42;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

#atlasDashboardRoot .rail-flyout-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

#atlasDashboardRoot .rail-flyout {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--rail-w);
  width: 272px;
  max-width: calc(100vw - var(--rail-w));
  background: #14110F;
  border-right: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 16px 0 42px rgba(0, 0, 0, 0.42);
  z-index: 44;
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.22s var(--ease);
  color: #F5F1E9;
}

#atlasDashboardRoot .rail-flyout.open {
  transform: translateX(0);
}

#atlasDashboardRoot .flyout-head {
  height: var(--bar-h);
  padding: 0 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

#atlasDashboardRoot .flyout-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #E6C55A;
  margin: 0;
}

#atlasDashboardRoot .flyout-close {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: #BFB5A7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

#atlasDashboardRoot .flyout-close:hover {
  color: #FFFFFF;
  border-color: #D4AF37;
}

#atlasDashboardRoot .flyout-search {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

#atlasDashboardRoot .flyout-search input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #F5F1E9;
  font-size: 12px;
  outline: none;
}

#atlasDashboardRoot .flyout-search input:focus {
  border-color: #D4AF37;
  background: rgba(255, 255, 255, 0.08);
}

#atlasDashboardRoot .flyout-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#atlasDashboardRoot .flyout-item {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #D8CFC2;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

#atlasDashboardRoot .flyout-item:hover {
  background: rgba(212, 175, 55, 0.14);
  color: #FFFFFF;
}

#atlasDashboardRoot .flyout-item .flyout-arrow {
  color: #D4AF37;
  opacity: 0;
  font-size: 12px;
  transition: opacity 0.14s ease;
}

#atlasDashboardRoot .flyout-item:hover .flyout-arrow {
  opacity: 1;
}

#atlasDashboardRoot .flyout-divider {
  margin: 8px 6px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8E8477;
}

/* ==========================================================================
   12. INNER ERP MODULES THEME (MATCHING DASHBOARD ESPRESSO, ALABASTER & GOLD)
   Applies ONLY when body.atlas-erp-module is active (all inner routes)
   ========================================================================== */
body.atlas-erp-module {
  background-color: #F7F5F0 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A23F' stroke-width='0.9' stroke-opacity='0.09'%3E%3Cpolygon points='48,6 90,48 48,90 6,48'/%3E%3Cpolygon points='48,20 76,48 48,76 20,48'/%3E%3Cpolygon points='48,34 62,48 48,62 34,48'/%3E%3Cpath d='M0 0 L16 16 M96 0 L80 16 M0 96 L16 80 M96 96 L80 80'/%3E%3Ccircle cx='48' cy='48' r='3'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(201, 162, 63, 0.025) 0px, rgba(201, 162, 63, 0.025) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(139, 58, 43, 0.02) 0px, rgba(139, 58, 43, 0.02) 1px, transparent 1px, transparent 4px) !important;
  background-size: 96px 96px, auto, auto !important;
  color: #14110F !important;
  min-height: 100vh !important;
}

body.atlas-erp-module .main-wrapper .header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #E7E1D5 !important;
  box-shadow: 0 1px 3px rgba(20, 17, 15, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

body.atlas-erp-module .main-wrapper .header .header-left {
  background: #14110F !important;
  border-right: 1px solid rgba(212, 175, 55, 0.22) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16) !important;
}

body.atlas-erp-module .main-wrapper .header .header-center {
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
  min-width: 0 !important;
}

body.atlas-erp-module .main-wrapper .header .user-menu {
  display: none !important;
}

#atlasErpHeaderControls {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-right: 22px;
  flex-shrink: 0;
}

body.atlas-erp-module:not(.atlas-dash-route) .main-wrapper .header #atlasErpHeaderControls {
  display: flex !important;
}

#atlasErpHeaderControls .erp-ctl-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #E7E1D5;
  background: #FBF9F5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5D544A;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease;
}

#atlasErpHeaderControls .erp-ctl-btn:hover {
  border-color: #B59438;
  color: #14110F;
}

#atlasErpHeaderControls .erp-ctl-logout:hover {
  border-color: #B91C1C;
  color: #B91C1C;
}

#atlasErpHeaderControls .erp-ctl-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #14110F;
  border: 1px solid #B59438;
  color: #D4AF37;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

html[data-theme="dark"] #atlasErpHeaderControls .erp-ctl-btn {
  background: #201B17;
  border-color: rgba(212, 175, 55, 0.25);
  color: #BFB5A7;
}

html[data-theme="dark"] #atlasErpHeaderControls .erp-ctl-btn:hover {
  border-color: #D4AF37;
  color: #F5F1E9;
}

#atlasDashboardRoot .logout-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* Dark Mode Support Across All Inner ERP Modules */
html[data-theme="dark"] body.atlas-erp-module,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper {
  background-color: #120F0D !important;
  background-image:
    url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.9' stroke-opacity='0.07'%3E%3Cpolygon points='48,6 90,48 48,90 6,48'/%3E%3Cpolygon points='48,20 76,48 48,76 20,48'/%3E%3Cpolygon points='48,34 62,48 48,62 34,48'/%3E%3Cpath d='M0 0 L16 16 M96 0 L80 16 M0 96 L16 80 M96 96 L80 80'/%3E%3Ccircle cx='48' cy='48' r='3'/%3E%3C/g%3E%3C/svg%3E") !important;
  color: #F5F1E9 !important;
}

html[data-theme="dark"] body.atlas-erp-module .main-wrapper .header {
  background: rgba(25, 21, 18, 0.94) !important;
  border-bottom-color: rgba(212, 175, 55, 0.18) !important;
}

html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .card,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .modal-content,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .table-responsive,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .table,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper table tbody td {
  background-color: #191512 !important;
  color: #F5F1E9 !important;
  border-color: rgba(212, 175, 55, 0.16) !important;
}

html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper table tbody tr:hover,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper table tbody tr:hover td {
  background-color: #28211C !important;
}

html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper [style*="aliceblue"],
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper [style*="#d9edf7"],
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper [style*="#e3f2fd"],
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper [style*="#cfe2ff"],
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .bg-info,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .bg-light,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .setvaluecash ul li a {
  background-color: #201B17 !important;
  border-color: rgba(212, 175, 55, 0.22) !important;
  color: #F5F1E9 !important;
}

html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper input,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper select,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper textarea,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .form-control,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .form-select,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .ng-select .ng-select-container,
html[data-theme="dark"] body.atlas-erp-module .ng-dropdown-panel {
  background-color: #201B17 !important;
  color: #F5F1E9 !important;
  border-color: rgba(212, 175, 55, 0.24) !important;
}

html[data-theme="dark"] body.atlas-erp-module .ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
  background-color: #201B17 !important;
  color: #EAE3D5 !important;
}

html[data-theme="dark"] body.atlas-erp-module .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {
  background-color: #28211C !important;
  color: #E6C55A !important;
}

html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper label,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper h1,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper h2,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper h3,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper h4,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper h5,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper h6,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .total-order ul li h4,
html[data-theme="dark"] body.atlas-erp-module .main-wrapper .page-wrapper .total-order ul li h5 {
  color: #EAE3D5 !important;
}

/* ==========================================================================
   13. STOCK SUMMARY REPORT MODAL (MATCHING EXECUTIVE PDF LAYOUT)
   ========================================================================== */
#atlasReportBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 11, 9, 0.72);
  backdrop-filter: blur(4px);
  z-index: 1090;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  overflow-y: auto;
}

#atlasReportBackdrop.open {
  display: flex;
}

.atlas-report-shell {
  width: 860px;
  max-width: 100%;
  background: #FFFFFF;
  color: #14110F;
  border-radius: 14px;
  border: 1px solid #E7E1D5;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.atlas-report-toolbar {
  background: #14110F;
  color: #F8F6F1;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.atlas-report-toolbar-title {
  font-size: 13px;
  font-weight: 600;
  color: #E6C55A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.atlas-report-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.atlas-rep-btn {
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #F5F1E9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.atlas-rep-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: #D4AF37;
}

.atlas-rep-btn.primary {
  background: linear-gradient(135deg, #B59438, #D4AF37);
  color: #14110F;
  border-color: #D4AF37;
}

.atlas-rep-btn.primary:hover {
  filter: brightness(1.06);
}

.atlas-report-sheet {
  padding: 32px 36px;
  background: #FFFFFF;
  color: #14110F;
}

.atlas-rep-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #D4AF37;
}

.atlas-rep-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.atlas-rep-brand h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #14110F;
}

.atlas-rep-brand p {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #6E655A;
}

.atlas-rep-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.atlas-rep-badge {
  background: #14110F;
  color: #F8F6F1;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.atlas-rep-date {
  font-size: 11px;
  color: #6E655A;
}

.atlas-rep-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 22px;
}

.atlas-rep-kpi {
  border: 1px solid #E2DCD0;
  border-radius: 10px;
  background: #FAF9F6;
  padding: 14px 16px;
  text-align: center;
}

.atlas-rep-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: #14110F;
  line-height: 1.15;
}

.atlas-rep-kpi-lbl {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6E655A;
}

.atlas-rep-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E2DCD0;
}

.atlas-rep-table thead th {
  background: #14110F !important;
  color: #FFFFFF !important;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 14px;
  text-align: left;
}

.atlas-rep-table tbody td {
  padding: 10px 14px;
  font-size: 12.5px;
  color: #1F1B18;
  border-bottom: 1px solid #ECE7DD;
  background: #FFFFFF;
}

.atlas-rep-table tbody tr:nth-child(even) td {
  background: #FCFBF8;
}

.atlas-rep-qty-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  background: #F4EFE4;
  border: 1px solid #E2D6BA;
  font-size: 11.5px;
  font-weight: 700;
  color: #14110F;
}

.atlas-rep-share-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.atlas-rep-share-track {
  width: 72px;
  height: 5px;
  border-radius: 99px;
  background: #ECE7DD;
  overflow: hidden;
}

.atlas-rep-share-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #B59438, #D4AF37);
}

.atlas-rep-table tfoot td {
  background: #14110F !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 12.5px;
  padding: 13px 14px;
}

.atlas-rep-foot {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #E7E1D5;
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #8E8477;
}

@media print {
  body * {
    visibility: hidden !important;
  }
  #atlasReportBackdrop,
  #atlasReportBackdrop .atlas-report-sheet,
  #atlasReportBackdrop .atlas-report-sheet * {
    visibility: visible !important;
  }
  #atlasReportBackdrop {
    position: absolute !important;
    inset: 0 !important;
    background: #FFFFFF !important;
    padding: 0 !important;
  }
  .atlas-report-toolbar {
    display: none !important;
  }
  .atlas-report-shell {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
  }
}

body.atlas-erp-module .main-wrapper .header .header-center .row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  margin: 0 !important;
}

body.atlas-erp-module .main-wrapper .header .header-center .cmp-image,
body.atlas-erp-module .main-wrapper .header .header-center .row > .col-sm-3:first-child,
body.atlas-erp-module .main-wrapper .header .header-center .row > .col-sm-6 {
  display: none !important;
}

body.atlas-erp-module .main-wrapper .header .header-center .row > .col-sm-3:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  margin-left: auto !important;
  padding: 0 16px 0 0 !important;
}

body.atlas-erp-module.mini-sidebar .main-wrapper .header .header-left {
  width: 80px !important;
  padding: 0 !important;
  justify-content: center !important;
}

body.atlas-erp-module.mini-sidebar .main-wrapper .header .header-left .logo-normal {
  display: none !important;
}

body.atlas-erp-module.mini-sidebar .main-wrapper .header .header-left .logo-small {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

body.atlas-erp-module.mini-sidebar.expand-menu .main-wrapper .header .header-left {
  width: 260px !important;
  padding: 0 20px !important;
  justify-content: space-between !important;
}

body.atlas-erp-module.mini-sidebar.expand-menu .main-wrapper .header .header-left .logo-normal {
  display: inline-flex !important;
}

body.atlas-erp-module.mini-sidebar.expand-menu .main-wrapper .header .header-left .logo-small {
  display: none !important;
}

body.atlas-erp-module.mini-sidebar:not(.expand-menu) .main-wrapper .header #toggle_btn {
  opacity: 1 !important;
  position: fixed !important;
  left: 96px !important;
  top: 22px !important;
  z-index: 1002 !important;
}

body.atlas-erp-module.mini-sidebar:not(.expand-menu) .main-wrapper .header #toggle_btn::before,
body.atlas-erp-module.mini-sidebar:not(.expand-menu) .main-wrapper .header #toggle_btn:before {
  background: #B59438 !important;
  box-shadow: 0 6px #B59438, 0 12px #B59438 !important;
}

body.atlas-erp-module .main-wrapper .header #toggle_btn,
body.atlas-erp-module .main-wrapper .header .mobile_btn {
  color: #D4AF37 !important;
}

body.atlas-erp-module .main-wrapper .sidebar,
body.atlas-erp-module .main-wrapper .sidebar .slimScrollDiv,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-inner,
body.atlas-erp-module .main-wrapper .sidebar #sidebar-menu,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu {
  background: #14110F !important;
  background-color: #14110F !important;
  border-right: 1px solid rgba(212, 175, 55, 0.18) !important;
}

body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul li a,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul li a span,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu > ul > li > a span {
  color: #D8CFC2 !important;
}

body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul li a:hover,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul li a:hover span,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul li.submenu a.subdrop,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul li.submenu a.subdrop span {
  background: rgba(212, 175, 55, 0.12) !important;
  color: #F5F1E9 !important;
}

body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu > ul > li.active > a,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul li a.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(181, 148, 56, 0.10)) !important;
  color: #E6C55A !important;
  border: 1px solid rgba(212, 175, 55, 0.30) !important;
  border-radius: 8px !important;
}

body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu > ul > li.active > a span,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul li a.active span {
  color: #E6C55A !important;
}

body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu > ul > li.submenu ul,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul ul {
  background: #0D0A09 !important;
  background-color: #0D0A09 !important;
}

body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul ul li a,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul ul li a span {
  color: #BFB5A7 !important;
}

body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul ul li a:hover,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul ul li a:hover span,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul ul li a.active,
body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul ul li a.active span {
  color: #E6C55A !important;
  background: rgba(212, 175, 55, 0.10) !important;
}

body.atlas-erp-module .main-wrapper .sidebar .sidebar-menu ul li a img {
  filter: brightness(0) invert(0.82) sepia(0.35) saturate(1.4) hue-rotate(8deg) !important;
}

body.atlas-erp-module .main-wrapper .header .user-menu.nav > li > a .badge {
  background: #B59438 !important;
  background-color: #B59438 !important;
  color: #14110F !important;
}

body.atlas-erp-module .main-wrapper .header #toggle_btn,
body.atlas-erp-module .main-wrapper .header #toggle_btn i,
body.atlas-erp-module .main-wrapper .header #toggle_btn svg {
  color: #D4AF37 !important;
  background: transparent !important;
}

body.atlas-erp-module .main-wrapper .header #toggle_btn::before,
body.atlas-erp-module .main-wrapper .header #toggle_btn:before {
  background: #D4AF37 !important;
  box-shadow: 0 6px #D4AF37, 0 12px #D4AF37 !important;
}

body.atlas-erp-module .main-wrapper .header .bar-icon span {
  background-color: #D4AF37 !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper {
  min-height: 100vh !important;
  background-color: #F7F5F0 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A23F' stroke-width='0.9' stroke-opacity='0.09'%3E%3Cpolygon points='48,6 90,48 48,90 6,48'/%3E%3Cpolygon points='48,20 76,48 48,76 20,48'/%3E%3Cpolygon points='48,34 62,48 48,62 34,48'/%3E%3Cpath d='M0 0 L16 16 M96 0 L80 16 M0 96 L16 80 M96 96 L80 80'/%3E%3Ccircle cx='48' cy='48' r='3'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(201, 162, 63, 0.025) 0px, rgba(201, 162, 63, 0.025) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(139, 58, 43, 0.02) 0px, rgba(139, 58, 43, 0.02) 1px, transparent 1px, transparent 4px) !important;
  background-size: 96px 96px, auto, auto !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .card {
  border: 1px solid #E7E1D5 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(20, 17, 15, 0.04) !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper table thead,
body.atlas-erp-module .main-wrapper .page-wrapper table thead tr,
body.atlas-erp-module .main-wrapper .page-wrapper table thead th,
body.atlas-erp-module .main-wrapper .page-wrapper .table thead,
body.atlas-erp-module .main-wrapper .page-wrapper .table thead tr,
body.atlas-erp-module .main-wrapper .page-wrapper .table thead th {
  background: #14110F !important;
  background-color: #14110F !important;
  background-image: none !important;
  color: #E6C55A !important;
  border-color: rgba(212, 175, 55, 0.22) !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper table tfoot,
body.atlas-erp-module .main-wrapper .page-wrapper table tfoot tr,
body.atlas-erp-module .main-wrapper .page-wrapper table tfoot td,
body.atlas-erp-module .main-wrapper .page-wrapper table tfoot th {
  background: #14110F !important;
  background-color: #14110F !important;
  color: #E6C55A !important;
  border-color: rgba(212, 175, 55, 0.22) !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .nav-tabs .nav-link.active,
body.atlas-erp-module .main-wrapper .page-wrapper .nav-pills .nav-link.active {
  background: #14110F !important;
  background-color: #14110F !important;
  color: #E6C55A !important;
  border-color: #B59438 !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .nav-tabs .nav-link {
  color: #5D544A !important;
}

body.atlas-erp-module .main-wrapper .btn-primary,
body.atlas-erp-module .main-wrapper .btn-submit,
body.atlas-erp-module .main-wrapper .btn-added,
body.atlas-erp-module .main-wrapper .btn-info,
body.atlas-erp-module .main-wrapper .btn-success {
  background: #14110F !important;
  background-color: #14110F !important;
  border-color: #B59438 !important;
  color: #F8F6F1 !important;
}

body.atlas-erp-module .main-wrapper .btn-primary:hover,
body.atlas-erp-module .main-wrapper .btn-submit:hover,
body.atlas-erp-module .main-wrapper .btn-added:hover,
body.atlas-erp-module .main-wrapper .btn-info:hover,
body.atlas-erp-module .main-wrapper .btn-success:hover {
  background: linear-gradient(135deg, #B59438, #D4AF37) !important;
  border-color: #D4AF37 !important;
  color: #14110F !important;
}

body.atlas-erp-module ::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

body.atlas-erp-module ::-webkit-scrollbar-thumb {
  background: #B59438;
  border-radius: 4px;
}

body.atlas-erp-module ::-webkit-scrollbar-track {
  background: #14110F;
}

/* Unified Atlas Rugs Palette Across All Inner ERP Modules
   (Replaces leftover Softlogiz #00989E teal and #ff9f43 orange) */
body.atlas-erp-module .main-wrapper .page-wrapper a {
  color: #B59438;
}

body.atlas-erp-module .main-wrapper .page-wrapper .clr,
body.atlas-erp-module .main-wrapper .page-wrapper th.clr,
body.atlas-erp-module .main-wrapper .page-wrapper tr.clr,
body.atlas-erp-module .main-wrapper .page-wrapper thead.clr {
  background: #14110F !important;
  background-color: #14110F !important;
  color: #E6C55A !important;
  border-color: rgba(212, 175, 55, 0.24) !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .terms-add-icon,
body.atlas-erp-module .main-wrapper .page-wrapper .terms-add-icon a,
body.atlas-erp-module .main-wrapper .page-wrapper .terms-add-icon > a,
body.atlas-erp-module .main-wrapper .page-wrapper .btn-filters,
body.atlas-erp-module .main-wrapper .page-wrapper .scanner-set {
  background: #14110F !important;
  background-color: #14110F !important;
  background-image: none !important;
  border: 1px solid #B59438 !important;
  color: #E6C55A !important;
  border-radius: 6px !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .terms-add-icon a i,
body.atlas-erp-module .main-wrapper .page-wrapper .terms-add-icon a svg {
  color: #E6C55A !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .terms-add-icon:hover,
body.atlas-erp-module .main-wrapper .page-wrapper .terms-add-icon a:hover,
body.atlas-erp-module .main-wrapper .page-wrapper .btn-filters:hover,
body.atlas-erp-module .main-wrapper .page-wrapper .scanner-set:hover {
  background: linear-gradient(135deg, #B59438, #D4AF37) !important;
  color: #14110F !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper a.paymentmethod.activePaymnet,
body.atlas-erp-module .main-wrapper .page-wrapper .paymentmethod.activePaymnet,
body.atlas-erp-module .main-wrapper .page-wrapper .setvaluecash ul li a.active,
body.atlas-erp-module .main-wrapper .page-wrapper .setvaluecash ul li.active a,
body.atlas-erp-module .main-wrapper .page-wrapper .payment-tab.active {
  border-color: #B59438 !important;
  background: rgba(181, 148, 56, 0.14) !important;
  background-color: rgba(181, 148, 56, 0.14) !important;
  color: #14110F !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper a.paymentmethod.activePaymnet *,
body.atlas-erp-module .main-wrapper .page-wrapper .paymentmethod.activePaymnet *,
body.atlas-erp-module .main-wrapper .page-wrapper .setvaluecash ul li a.active *,
body.atlas-erp-module .main-wrapper .page-wrapper .setvaluecash ul li.active a * {
  color: #8C6A21 !important;
  filter: none !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper [style*="aliceblue"],
body.atlas-erp-module .main-wrapper .page-wrapper [style*="#d9edf7"],
body.atlas-erp-module .main-wrapper .page-wrapper [style*="#e3f2fd"],
body.atlas-erp-module .main-wrapper .page-wrapper [style*="#cfe2ff"],
body.atlas-erp-module .main-wrapper .page-wrapper .bg-info,
body.atlas-erp-module .main-wrapper .page-wrapper .bg-light {
  background-color: #FBF9F5 !important;
  border-color: #E7E1D5 !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .bg-secondary,
body.atlas-erp-module .main-wrapper .page-wrapper .text-bg-secondary {
  background-color: #14110F !important;
  color: #E6C55A !important;
  border-color: rgba(212, 175, 55, 0.25) !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .btn-secondary,
body.atlas-erp-module .main-wrapper .page-wrapper .btn-cancel {
  background: #2C241E !important;
  background-color: #2C241E !important;
  border-color: #5D544A !important;
  color: #F8F6F1 !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .btn-secondary:hover,
body.atlas-erp-module .main-wrapper .page-wrapper .btn-cancel:hover {
  background: #14110F !important;
  border-color: #B59438 !important;
  color: #E6C55A !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .form-control,
body.atlas-erp-module .main-wrapper .page-wrapper .form-select,
body.atlas-erp-module .main-wrapper .page-wrapper .ng-select .ng-select-container {
  border-color: #D6CEBE !important;
  border-radius: 8px !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .form-control:focus,
body.atlas-erp-module .main-wrapper .page-wrapper .form-select:focus,
body.atlas-erp-module .main-wrapper .page-wrapper input:focus,
body.atlas-erp-module .main-wrapper .page-wrapper select:focus,
body.atlas-erp-module .main-wrapper .page-wrapper textarea:focus,
body.atlas-erp-module .main-wrapper .page-wrapper .ng-select.ng-select-focused > .ng-select-container {
  border-color: #B59438 !important;
  box-shadow: 0 0 0 3px rgba(181, 148, 56, 0.14) !important;
  outline: none !important;
}

body.atlas-erp-module .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,
body.atlas-erp-module .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked,
body.atlas-erp-module .dropdown-item.active,
body.atlas-erp-module .dropdown-item:active {
  background-color: rgba(181, 148, 56, 0.15) !important;
  color: #14110F !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .btn-outline-primary {
  color: #B59438 !important;
  border-color: #B59438 !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .btn-outline-primary:hover {
  background: #B59438 !important;
  color: #14110F !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .page-item.active .page-link {
  background-color: #14110F !important;
  border-color: #B59438 !important;
  color: #E6C55A !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .table-hover tbody tr:hover,
body.atlas-erp-module .main-wrapper .page-wrapper table tbody tr:hover {
  background-color: #F3EFE6 !important;
}

body.atlas-erp-module .modal-header {
  background: #14110F !important;
  color: #E6C55A !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}

body.atlas-erp-module .modal-header .modal-title {
  color: #E6C55A !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 700 !important;
}

body.atlas-erp-module input[type="checkbox"],
body.atlas-erp-module input[type="radio"] {
  accent-color: #B59438 !important;
}

body.atlas-erp-module .inputcheck input:checked ~ .checkmark {
  border-color: #B59438 !important;
}

body.atlas-erp-module .inputcheck .checkmark:after {
  border-color: #B59438 !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .total-order ul li.total h4,
body.atlas-erp-module .main-wrapper .page-wrapper .total-order ul li.total h5 {
  color: #14110F !important;
}

body.atlas-erp-module .main-wrapper .page-wrapper .btn-totallabel,
body.atlas-erp-module .main-wrapper .page-wrapper .bg-dark,
body.atlas-erp-module .main-wrapper .page-wrapper .card-header {
  background-color: #14110F !important;
  color: #E6C55A !important;
  border-color: rgba(212, 175, 55, 0.22) !important;
}

body.atlas-erp-module .main-wrapper .atlas-erp-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #F5F1E9;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  text-decoration: none;
}

/* =====================================================================
   STOCK PICTURE STUDIO (#/stock-studio) — 3-PANE LUXURY ERP MODULE
   ===================================================================== */
body.atlas-studio-route .main-wrapper .page-wrapper > :not(#atlasStockStudioRoot) {
  display: none !important;
}

#atlasStockStudioRoot {
  --st-canvas: #F5F1E8;
  --st-surface: #FFFFFF;
  --st-subtle: #FAF8F3;
  --st-hover: #F3EFE6;
  --st-espresso: #1B1612;
  --st-espresso-hover: #2A221C;
  --st-border: #E7E1D6;
  --st-border-strong: #D6CEBE;
  --st-ink: #1B1612;
  --st-ink-2: #5D544A;
  --st-ink-3: #8F8578;
  --st-gold: #B59438;
  --st-gold-bright: #D4AF37;
  --st-gold-soft: rgba(181, 148, 56, 0.11);
  --st-gold-border: rgba(181, 148, 56, 0.38);
  --st-gold-bar: linear-gradient(90deg, #2A2118 0%, #C8A24A 52%, #F0D990 100%);
  --st-emerald: #17694C;
  --st-emerald-dot: #10B981;
  --st-emerald-bg: rgba(23, 105, 76, 0.09);
  --st-amber: #B45309;
  --st-amber-bg: rgba(180, 83, 9, 0.10);
  --st-shadow-card: 0 8px 30px rgba(20, 17, 15, 0.05);
  --st-shadow-sm: 0 2px 8px rgba(20, 17, 15, 0.035);
  --st-shadow-md: 0 14px 40px rgba(20, 17, 15, 0.12);
  --st-left-w: 288px;
  --st-right-w: 336px;
  --st-radius: 14px;
  --st-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --st-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238F8578' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

  color: var(--st-ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  padding: 12px 16px 24px;
  min-height: calc(100vh - 60px);
}

html[data-theme="dark"] #atlasStockStudioRoot {
  --st-canvas: #110E0C;
  --st-surface: #181411;
  --st-subtle: #1F1A16;
  --st-hover: #27211B;
  --st-espresso: #D4AF37;
  --st-espresso-hover: #E5C454;
  --st-border: rgba(212, 175, 55, 0.16);
  --st-border-strong: rgba(212, 175, 55, 0.28);
  --st-ink: #F5F1E9;
  --st-ink-2: #BFB5A7;
  --st-ink-3: #857B6F;
  --st-gold: #D4AF37;
  --st-gold-bright: #F0D990;
  --st-gold-soft: rgba(212, 175, 55, 0.14);
  --st-gold-bar: linear-gradient(90deg, #5A4518 0%, #D4AF37 52%, #F5DC93 100%);
  --st-emerald: #34D399;
  --st-emerald-dot: #34D399;
  --st-emerald-bg: rgba(52, 211, 153, 0.13);
  --st-amber: #FBBF24;
  --st-amber-bg: rgba(251, 191, 36, 0.13);
  --st-shadow-card: 0 10px 32px rgba(0, 0, 0, 0.42);
  --st-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --st-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23BFB5A7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

#atlasStockStudioRoot *, #atlasStockStudioRoot *::before, #atlasStockStudioRoot *::after {
  box-sizing: border-box;
}

#atlasStockStudioRoot .serif { font-family: 'Cormorant Garamond', Georgia, serif; }
#atlasStockStudioRoot .mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

#atlasStockStudioRoot button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

#atlasStockStudioRoot .gold-top-card {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow-card);
  position: relative;
  overflow: hidden;
}

#atlasStockStudioRoot .gold-top-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2.5px;
  background: var(--st-gold-bar);
  z-index: 6;
}

/* Compact ERP Sub-Toolbar (avoids duplicating main ERP header) */
#atlasStockStudioRoot .studio-subbar {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#atlasStockStudioRoot .sub-left,
#atlasStockStudioRoot .sub-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#atlasStockStudioRoot .st-brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--st-ink);
  margin: 0;
}

#atlasStockStudioRoot .istanbul-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--st-subtle);
  border: 1px solid var(--st-border);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-ink-2);
}

#atlasStockStudioRoot .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--st-emerald-dot);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
}

#atlasStockStudioRoot .sidebar-toggle-btn,
#atlasStockStudioRoot .btn-outline {
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--st-border);
  background: var(--st-subtle);
  color: var(--st-ink);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

#atlasStockStudioRoot .sidebar-toggle-btn:hover,
#atlasStockStudioRoot .btn-outline:hover {
  border-color: var(--st-gold);
  background: var(--st-hover);
}

#atlasStockStudioRoot .btn-primary {
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  background: var(--st-espresso);
  color: #FAF8F3;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
  white-space: nowrap;
}

html[data-theme="dark"] #atlasStockStudioRoot .btn-primary {
  color: #110E0C;
  font-weight: 700;
}

#atlasStockStudioRoot .btn-primary:hover {
  background: var(--st-espresso-hover);
}

#atlasStockStudioRoot .cmd-search {
  position: relative;
  flex: 1;
  min-width: 210px;
  max-width: 340px;
}

#atlasStockStudioRoot .cmd-search input {
  width: 100%;
  height: 34px;
  padding: 0 42px 0 32px;
  border-radius: 9px;
  border: 1px solid var(--st-border);
  background: var(--st-subtle);
  color: var(--st-ink);
  font-size: 12px;
  outline: none;
}

#atlasStockStudioRoot .cmd-search input:focus {
  border-color: var(--st-gold);
  background: var(--st-surface);
  box-shadow: 0 0 0 3px var(--st-gold-soft);
}

#atlasStockStudioRoot .cmd-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--st-ink-3);
  pointer-events: none;
}

#atlasStockStudioRoot .cmd-kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  font-size: 10px;
  font-weight: 600;
  color: var(--st-ink-3);
}

#atlasStockStudioRoot .seg-pill {
  display: inline-flex;
  background: var(--st-subtle);
  border: 1px solid var(--st-border);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}

#atlasStockStudioRoot .seg-btn {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--st-ink-2);
}

#atlasStockStudioRoot .seg-btn.active {
  background: var(--st-espresso);
  color: #FAF8F3;
}

html[data-theme="dark"] #atlasStockStudioRoot .seg-btn.active {
  background: var(--st-gold);
  color: #110E0C;
}

/* 3-Pane Studio Shell */
#atlasStockStudioRoot .studio-shell {
  display: grid;
  grid-template-columns: var(--st-left-w) minmax(0, 1fr) var(--st-right-w);
  gap: 14px;
  align-items: start;
  transition: grid-template-columns 0.22s var(--st-ease);
}

#atlasStockStudioRoot .studio-shell.filters-collapsed {
  grid-template-columns: 0px minmax(0, 1fr) var(--st-right-w);
  gap: 0 14px;
}

#atlasStockStudioRoot .studio-shell.filters-collapsed .filters-card {
  opacity: 0;
  pointer-events: none;
  border: none;
  width: 0;
  margin-right: -14px;
}

/* Left Pane — Smart Filters */
#atlasStockStudioRoot .filters-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 140px);
  position: sticky;
  top: 72px;
}

#atlasStockStudioRoot .filters-head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--st-border);
  background: var(--st-surface);
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-shrink: 0;
}

#atlasStockStudioRoot .fh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#atlasStockStudioRoot .fh-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

#atlasStockStudioRoot .filters-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--st-ink);
}

#atlasStockStudioRoot .active-count-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--st-gold-soft);
  border: 1px solid var(--st-gold-border);
  color: var(--st-gold);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#atlasStockStudioRoot .active-count-badge.is-zero { display: none; }

#atlasStockStudioRoot .reset-text-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--st-gold);
  padding: 2px 7px;
  border-radius: 6px;
}

#atlasStockStudioRoot .reset-text-btn:hover { background: var(--st-gold-soft); }

#atlasStockStudioRoot .fh-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--st-ink-3);
}

#atlasStockStudioRoot .presets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

#atlasStockStudioRoot .preset-btn {
  height: 29px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1px solid var(--st-border);
  background: var(--st-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--st-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#atlasStockStudioRoot .preset-btn:hover { border-color: var(--st-gold); color: var(--st-ink); }
#atlasStockStudioRoot .preset-btn.active {
  background: var(--st-espresso);
  border-color: var(--st-espresso);
  color: #FFFFFF;
}

html[data-theme="dark"] #atlasStockStudioRoot .preset-btn.active {
  background: var(--st-gold);
  border-color: var(--st-gold);
  color: #110E0C;
}

#atlasStockStudioRoot .filters-scroll {
  flex: 1;
  overflow-y: auto;
}

#atlasStockStudioRoot .f-section { border-bottom: 1px solid var(--st-border); }
#atlasStockStudioRoot .f-section:last-child { border-bottom: none; }

#atlasStockStudioRoot .f-sec-trigger {
  width: 100%;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#atlasStockStudioRoot .f-sec-trigger:hover { background: var(--st-subtle); }
#atlasStockStudioRoot .f-sec-title-wrap { display: flex; align-items: center; gap: 6px; }
#atlasStockStudioRoot .f-sec-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--st-ink-2);
}

#atlasStockStudioRoot .sec-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--st-gold-bright);
  opacity: 0;
}

#atlasStockStudioRoot .f-section.has-active .sec-active-dot { opacity: 1; }
#atlasStockStudioRoot .f-sec-chev { color: var(--st-ink-3); transition: transform 0.2s ease; }
#atlasStockStudioRoot .f-section.open .f-sec-chev { transform: rotate(180deg); }

#atlasStockStudioRoot .f-sec-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s var(--st-ease);
}

#atlasStockStudioRoot .f-section.open .f-sec-collapse { grid-template-rows: 1fr; }
#atlasStockStudioRoot .f-sec-inner { overflow: hidden; }
#atlasStockStudioRoot .f-sec-body {
  padding: 2px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

#atlasStockStudioRoot .f-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

#atlasStockStudioRoot .f-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-ink-3);
  display: block;
}

#atlasStockStudioRoot .f-label-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--st-gold);
}

#atlasStockStudioRoot .seg-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--st-subtle);
  border: 1px solid var(--st-border);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

#atlasStockStudioRoot .seg-3 button {
  padding: 5px 3px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--st-ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

#atlasStockStudioRoot .seg-3 button.active {
  background: var(--st-surface);
  color: var(--st-ink);
  box-shadow: 0 1px 3px rgba(20, 17, 15, 0.09);
}

#atlasStockStudioRoot .seg-3 button .seg-cnt { font-size: 9.5px; color: var(--st-ink-3); }
#atlasStockStudioRoot .seg-3 button.active .seg-cnt { color: var(--st-gold); font-weight: 700; }

#atlasStockStudioRoot .quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

#atlasStockStudioRoot .q-pill {
  height: 29px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--st-border);
  background: var(--st-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--st-ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

#atlasStockStudioRoot .q-pill:hover { border-color: var(--st-gold); color: var(--st-ink); }
#atlasStockStudioRoot .q-pill.active {
  background: var(--st-espresso);
  border-color: var(--st-espresso);
  color: #FFFFFF;
}

html[data-theme="dark"] #atlasStockStudioRoot .q-pill.active {
  background: var(--st-gold);
  border-color: var(--st-gold);
  color: #110E0C;
}

#atlasStockStudioRoot .q-pill-cnt { font-size: 9.5px; opacity: 0.78; }

#atlasStockStudioRoot .swatch-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 25px);
  justify-content: space-between;
  row-gap: 8px;
  padding: 2px;
}

#atlasStockStudioRoot .swatch-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1.5px solid rgba(27, 22, 18, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease;
}

#atlasStockStudioRoot .swatch-btn:hover { transform: scale(1.1); }
#atlasStockStudioRoot .swatch-btn.active {
  box-shadow: 0 0 0 2px var(--st-surface), 0 0 0 4px var(--st-gold);
}

#atlasStockStudioRoot .swatch-all {
  background: var(--st-subtle);
  border: 1.5px dashed var(--st-border-strong);
  color: var(--st-ink-2);
  font-size: 9px;
  font-weight: 700;
}

#atlasStockStudioRoot .swatch-check { display: none; width: 11px; height: 11px; }
#atlasStockStudioRoot .swatch-btn.active .swatch-check { display: block; }

#atlasStockStudioRoot .size-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
#atlasStockStudioRoot .input-unit-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
#atlasStockStudioRoot .input-unit-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#atlasStockStudioRoot .unit-sub { font-size: 9.5px; color: var(--st-ink-3); display: block; margin-bottom: 2px; }

#atlasStockStudioRoot .f-input,
#atlasStockStudioRoot .f-select {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--st-border);
  background: var(--st-subtle);
  color: var(--st-ink);
  font-size: 11.5px;
  outline: none;
}

#atlasStockStudioRoot .f-select {
  padding-right: 28px;
  background-image: var(--st-chev);
  background-repeat: no-repeat;
  background-position: right 8px center;
  appearance: none;
}

#atlasStockStudioRoot .filters-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--st-border);
  background: var(--st-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

#atlasStockStudioRoot .foot-clear-btn { font-size: 11px; font-weight: 700; color: var(--st-gold); }
#atlasStockStudioRoot .foot-clear-btn.hidden { display: none; }

/* Center Workspace */
#atlasStockStudioRoot .center-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

#atlasStockStudioRoot .kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#atlasStockStudioRoot .kpi-cell {
  padding: 12px 11px;
  border-right: 1px solid var(--st-border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#atlasStockStudioRoot .kpi-cell:last-child { border-right: none; }
#atlasStockStudioRoot .kpi-cell.selected-active { background: var(--st-gold-soft); }
#atlasStockStudioRoot .kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
#atlasStockStudioRoot .kpi-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-ink-3); }
#atlasStockStudioRoot .kpi-val { font-size: clamp(14px, 1.12vw, 18px); font-weight: 700; color: var(--st-ink); white-space: nowrap; }
html[data-theme="dark"] #atlasStockStudioRoot .kpi-lbl { color: #BFB5A7 !important; }
html[data-theme="dark"] #atlasStockStudioRoot .kpi-val { color: #F5F1E9 !important; }
#atlasStockStudioRoot .kpi-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--st-emerald-bg);
  color: var(--st-emerald);
}

#atlasStockStudioRoot .action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

#atlasStockStudioRoot .active-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
#atlasStockStudioRoot .rem-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--st-surface);
  border: 1px solid var(--st-gold-border);
  color: var(--st-gold);
  font-size: 11px;
  font-weight: 600;
}

#atlasStockStudioRoot .batch-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#atlasStockStudioRoot .sort-select {
  height: 34px;
  padding: 0 26px 0 10px;
  border-radius: 9px;
  border: 1px solid var(--st-border);
  background-color: var(--st-surface);
  background-image: var(--st-chev);
  background-repeat: no-repeat;
  background-position: right 8px center;
  appearance: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--st-ink);
}

#atlasStockStudioRoot .data-card {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#atlasStockStudioRoot .data-scroll {
  max-height: 64vh;
  overflow: auto;
}

#atlasStockStudioRoot table.studio-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

#atlasStockStudioRoot .studio-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--st-subtle);
  border-bottom: 1px solid var(--st-border);
  padding: 9px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-ink-3);
  white-space: nowrap;
}

#atlasStockStudioRoot .studio-table tbody tr {
  height: 54px;
  border-bottom: 1px solid var(--st-border);
  cursor: pointer;
}

#atlasStockStudioRoot .studio-table tbody tr:hover { background: var(--st-hover); }
#atlasStockStudioRoot .studio-table tbody tr.active-row {
  background: var(--st-gold-soft);
  box-shadow: inset 3px 0 0 var(--st-gold-bright);
}

#atlasStockStudioRoot .studio-table td { padding: 4px 10px; white-space: nowrap; vertical-align: middle; }
#atlasStockStudioRoot .chk-box { width: 15px; height: 15px; accent-color: var(--st-gold); cursor: pointer; }

#atlasStockStudioRoot .thumb-frame {
  width: 36px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--st-border-strong);
  background: var(--st-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#atlasStockStudioRoot .thumb-frame img { width: 100%; height: 100%; object-fit: cover; }
#atlasStockStudioRoot .stock-num { font-weight: 700; color: var(--st-gold); font-size: 12.5px; }
#atlasStockStudioRoot .q-main { font-weight: 600; color: var(--st-ink); font-size: 12px; }
#atlasStockStudioRoot .q-sub { font-size: 10.5px; color: var(--st-ink-3); }

#atlasStockStudioRoot .color-cell { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--st-ink-2); }
#atlasStockStudioRoot .swatch-pair { display: inline-flex; align-items: center; }
#atlasStockStudioRoot .swatch-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.22); }
#atlasStockStudioRoot .swatch-dot + .swatch-dot { margin-left: -4px; }

#atlasStockStudioRoot .status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
}

#atlasStockStudioRoot .status-pill.in-hand { background: var(--st-emerald-bg); color: var(--st-emerald); }
#atlasStockStudioRoot .status-pill.sold { background: var(--st-amber-bg); color: var(--st-amber); }

#atlasStockStudioRoot .gallery-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
}

#atlasStockStudioRoot .g-card {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--st-shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

#atlasStockStudioRoot .g-card:hover { transform: translateY(-2px); border-color: var(--st-gold); }
#atlasStockStudioRoot .g-card.active-card { border-color: var(--st-gold-bright); box-shadow: 0 0 0 1.5px var(--st-gold-bright); }

#atlasStockStudioRoot .g-media {
  position: relative;
  height: 170px;
  background: var(--st-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-bottom: 1px solid var(--st-border);
}

#atlasStockStudioRoot .g-media img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
#atlasStockStudioRoot .g-chk { position: absolute; top: 8px; left: 8px; z-index: 2; }
#atlasStockStudioRoot .g-status { position: absolute; top: 8px; right: 8px; z-index: 2; }
#atlasStockStudioRoot .g-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
#atlasStockStudioRoot .g-top { display: flex; justify-content: space-between; align-items: baseline; }

#atlasStockStudioRoot .pager-bar {
  padding: 9px 14px;
  border-top: 1px solid var(--st-border);
  background: var(--st-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--st-ink-2);
}

#atlasStockStudioRoot .pager-btns { display: flex; align-items: center; gap: 6px; }
#atlasStockStudioRoot .pager-btn {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  font-size: 11px;
  font-weight: 600;
}

#atlasStockStudioRoot .pager-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Right Pane — Single Picture Studio Inspector */
#atlasStockStudioRoot .studio-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 11px;
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

#atlasStockStudioRoot .studio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
#atlasStockStudioRoot .studio-eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--st-gold); }
#atlasStockStudioRoot .studio-stock-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--st-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

#atlasStockStudioRoot .nav-arrows { display: inline-flex; gap: 4px; }
#atlasStockStudioRoot .nav-arr {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--st-border);
  background: var(--st-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

#atlasStockStudioRoot .viewport-box {
  position: relative;
  height: 250px;
  border-radius: 11px;
  border: 1px solid var(--st-gold-border);
  background: var(--st-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

#atlasStockStudioRoot .viewport-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: transform 0.2s var(--st-ease);
}

#atlasStockStudioRoot .viewport-stage.zoomed { cursor: grab; }
#atlasStockStudioRoot .viewport-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

#atlasStockStudioRoot .watermark-layer {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
  background: rgba(17, 14, 12, 0.14);
  transform: rotate(-18deg);
}

#atlasStockStudioRoot .watermark-layer.show { display: flex; }
#atlasStockStudioRoot .wm-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(245, 220, 147, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
}

#atlasStockStudioRoot .studio-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
#atlasStockStudioRoot .wm-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid var(--st-border);
  background: var(--st-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--st-ink-2);
  cursor: pointer;
}

#atlasStockStudioRoot .switch-track { width: 32px; height: 17px; border-radius: 99px; background: var(--st-border-strong); position: relative; }
#atlasStockStudioRoot .switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.15s ease;
}

#atlasStockStudioRoot .wm-chk { display: none; }
#atlasStockStudioRoot .wm-chk:checked + .switch-track { background: var(--st-gold); }
#atlasStockStudioRoot .wm-chk:checked + .switch-track::after { transform: translateX(15px); }

#atlasStockStudioRoot .spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--st-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--st-subtle);
}

#atlasStockStudioRoot .spec-cell {
  padding: 7px 10px;
  border-right: 1px solid var(--st-border);
  border-bottom: 1px solid var(--st-border);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#atlasStockStudioRoot .spec-cell:nth-child(2n) { border-right: none; }
#atlasStockStudioRoot .spec-cell:nth-last-child(-n+2) { border-bottom: none; }
#atlasStockStudioRoot .spec-k { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-ink-3); }
#atlasStockStudioRoot .spec-v { font-size: 11.5px; font-weight: 700; color: var(--st-ink); }

#atlasStockStudioRoot .rug-tag-card {
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid var(--st-gold-border);
  background: #14110F;
  color: #F5F1E9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#atlasStockStudioRoot .tag-meta { display: flex; flex-direction: column; gap: 2px; }
#atlasStockStudioRoot .tag-kicker { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #D4AF37; }
#atlasStockStudioRoot .tag-stock { font-size: 15px; font-weight: 700; color: #FFFFFF; }
#atlasStockStudioRoot .tag-dims { font-size: 10.5px; color: #BFB5A7; }
#atlasStockStudioRoot .tag-print-btn {
  margin-top: 5px;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.16);
  color: #F0D990;
  font-size: 10px;
  font-weight: 700;
}

#atlasStockStudioRoot .qr-box { width: 56px; height: 56px; padding: 4px; border-radius: 8px; background: #FFFFFF; flex-shrink: 0; }

/* Studio Modals & Toast */
.atlas-st-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 14, 12, 0.78);
  backdrop-filter: blur(4px);
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.atlas-st-modal-backdrop.open { display: flex; }

.atlas-st-modal-panel {
  width: 100%;
  max-width: 940px;
  max-height: 90vh;
  background: #FFFFFF;
  color: #1B1612;
  border: 1px solid #E7E1D6;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .atlas-st-modal-panel {
  background: #181411;
  color: #F5F1E9;
  border-color: rgba(212, 175, 55, 0.28);
}

.atlas-st-modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid #E7E1D6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html[data-theme="dark"] .atlas-st-modal-head { border-color: rgba(212, 175, 55, 0.18); }

.atlas-st-lb-body {
  flex: 1;
  min-height: 400px;
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #FAF8F3;
}

html[data-theme="dark"] .atlas-st-lb-body { background: #110E0C; }
.atlas-st-lb-body img { max-width: 100%; max-height: 68vh; border-radius: 8px; }

.atlas-st-report-body {
  padding: 18px;
  overflow-y: auto;
  max-height: 74vh;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
}

.atlas-st-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1B1612;
  color: #F5F1E9;
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 99999;
}

.atlas-st-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1280px) {
  #atlasStockStudioRoot { --st-left-w: 260px; --st-right-w: 310px; }
}

@media (max-width: 1080px) {
  #atlasStockStudioRoot .studio-shell,
  #atlasStockStudioRoot .studio-shell.filters-collapsed {
    grid-template-columns: 1fr;
  }
  #atlasStockStudioRoot .studio-shell.filters-collapsed .filters-card { display: none; }
  #atlasStockStudioRoot .filters-card,
  #atlasStockStudioRoot .studio-card {
    position: static;
    max-height: none;
  }
  #atlasStockStudioRoot .kpi-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  #atlasStockStudioRoot { padding: 10px 10px 24px; }
  #atlasStockStudioRoot .istanbul-pill { display: none; }
  #atlasStockStudioRoot .cmd-search { min-width: 100%; }
}
