/* Atlas1 navigation: quiet surfaces, precise spacing, cyan wayfinding. */
body:has(.atlas-sidebar) { --navigation-width: 216px; }
.atlas-sidebar {
  inset: 14px auto 14px 14px; width: var(--navigation-width); padding: 22px 14px 14px;
  background: linear-gradient(165deg, #191e1f 0%, #111617 48%, #101415 100%);
  border: 1px solid #293032; border-radius: 12px;
  box-shadow: 0 12px 36px #0002, inset 0 1px #ffffff04;
}
.sidebar-brand { padding: 0 10px 25px; gap: 11px; font-size: 23px; letter-spacing: -.9px; font-weight: 650; color: #edf2f3; }
.atlas-mark { width: 34px; height: 36px; border-radius: 8px; border: 1px solid #048ba877; background: linear-gradient(145deg,#048BA8,#2E4057); box-shadow: inset 0 1px #ffffff25; }
.atlas-mark svg { width: 23px; height: 23px; fill: none; stroke: #f1f5f5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-edition { padding-left: 45px; font-size: 8px; letter-spacing: 2px; color: #839498; margin-top: -10px; }
.sidebar-section-label { margin: 22px 12px 12px; color: #77878b; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.sidebar-links { gap: 5px; }
.sidebar-links a { position: relative; min-height: 43px; margin: 0; padding: 11px 13px; gap: 12px; font-size: 12px; font-weight: 450; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #a6b2b5; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.sidebar-links svg { width: 17px; height: 17px; color: #7f9197; stroke-width: 1.6; }
.sidebar-links a:not([aria-current='page']):hover { background: #ffffff05; border-color: #ffffff06; color: #e4eeee; }
.sidebar-links a:hover svg { color: #c2d6dc; }
.sidebar-links a[aria-current='page'] { color: #eff7f8; border-color: #048ba836; background: linear-gradient(105deg,#048ba823,#048ba808); box-shadow: none; }
.sidebar-links a[aria-current='page']::before { content: ''; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: #048BA8; }
.sidebar-links a[aria-current='page']::after { content: ''; width: 4px; height: 4px; margin-left: auto; border-radius: 50%; background: #048BA8; }
.sidebar-links a[aria-current='page'] svg { color: #048BA8; }
.sidebar-settings { border-top: 1px solid #293032; padding-top: 12px; }
.sidebar-footer { margin-top: 13px; padding: 14px 12px 3px; border-top: 0; line-height: 1.7; }
.sidebar-footer-label { color: #97a8ac; font-size: 8px; letter-spacing: 1.3px; }
.sidebar-footer p { color: #788b91; margin-top: 4px; font-size: 10px; }
.sidebar-footer > span:last-child { font-size: 9px; color: #66787d; }
body:has(.atlas-sidebar) .topbar {
  margin-left: calc(var(--navigation-width) + 42px); margin-right: 26px; height: 72px; padding: 0;
  background: transparent; border-bottom: 1px solid #242b2d; gap: 18px; box-shadow: none;
}
.topbar .logo { display: none; }
.shell-breadcrumb { font-size: 12px; gap: 13px; }
.shell-breadcrumb > span:first-child { color: #71858b; }
.shell-breadcrumb strong { color: #d7e1e3; font-weight: 500; }
.breadcrumb-divider { font-size: 15px; color: #48595f; }
.workspace-pill-btn { min-height: 36px; padding: 8px 13px; border: 1px solid #303a3e; border-radius: 7px; background: linear-gradient(150deg,#1c2325,#171d1f); gap: 10px; font-size: 12px; }
.workspace-pill-btn:hover { border-color: #048ba877; }
.workspace-icon::before { width: 6px; height: 6px; border-radius: 2px; }
.workspace-caret { color: #7b8d94; }
.workspace-menu, .search-results { background: #171d1f; border: 1px solid #334045; border-radius: 9px; box-shadow: 0 16px 40px #0007; }
.workspace-menu-item { border-radius: 5px; }
.topbar-search { width: 250px; position: relative; }
.topbar-search::before { content: ''; position: absolute; left: 12px; top: 12px; width: 9px; height: 9px; border: 1.5px solid #7b8d94; border-radius: 50%; pointer-events: none; }
.topbar-search::after { content: ''; position: absolute; left: 21px; top: 22px; width: 5px; height: 1.5px; transform: rotate(45deg); background: #7b8d94; pointer-events: none; }
.topbar-search input { min-height: 36px; border-radius: 7px; padding: 9px 12px 9px 33px; background: #13191b; border: 1px solid #293438; font-size: 11px; }
.topbar-search input:focus { border-color: #048BA8; box-shadow: 0 0 0 3px #048ba814; }
.topbar-logout button { color: #87999f; font-size: 11px; border: 1px solid #2b363a; border-radius: 6px; padding: 8px 12px; }
body:has(.atlas-sidebar) main { margin-left: calc(var(--navigation-width) + 42px); padding: 25px 26px 50px 0; }
@media(max-width:1100px) {
  body:has(.atlas-sidebar) { --navigation-width: 185px; }
  .sidebar-brand { font-size: 21px; }
  .topbar-search { width: 190px; }
  .shell-breadcrumb { gap: 8px; font-size: 11px; }
}
@media(max-width:800px) {
  body:has(.atlas-sidebar) .topbar { margin: 0 16px; padding: 14px 0; height: auto; gap: 12px; }
  body:has(.atlas-sidebar) main { margin-left: 0; padding: 20px 16px 40px; }
  .topbar .logo { display: block; color: #e5edef; font-size: 18px; letter-spacing: -.6px; }
  .mobile-navigation summary { padding: 8px 11px; background: #192123; border: 1px solid #303d41; border-radius: 6px; }
  .mobile-navigation nav { top: 39px; padding: 8px; background: #171d1f; }
  .topbar-search { width: 100%; }
}
@media(prefers-reduced-motion:reduce) { .sidebar-links a { transition: none; } }

/* Compact workspace: give the data the space instead of stacked toolbars. */
body:has(.atlas-sidebar) .topbar { height: 50px; }
body:has(.atlas-sidebar) main { padding-top: 14px; }
.overview-heading { gap: 10px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.overview-heading > div:first-child { margin-right: auto; }
.overview-heading h1 { font-size: 18px; }
.overview-heading p { margin-top: 3px; }
.layout-toolbar { margin: 0; gap: 10px; }
.layout-toolbar > span:first-child { display: none; }
.layout-toolbar .btn { min-height: 29px; }
.layout-status:empty { display: none; }
.customizable-board { gap: 12px; }
.customizable-board > .layout-full-panel { padding-top: 0; padding-right: 32px; }
.customizable-board > .layout-full-panel > .panel-drag-handle { top: 4px; right: 0; }
#casino-strip-section { margin: 0; }
.casino-strip-head { margin: 0; min-height: 32px; align-items: center; }
.casino-strip-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.casino-strip-sub { margin: 0; font-size: 10px; }
#kpi-pulse .kpi-pulse { margin: 0; padding: 8px 10px; }
@media(max-width:800px) {
  body:has(.atlas-sidebar) .topbar { height: auto; padding: 10px 0; }
  body:has(.atlas-sidebar) main { padding-top: 12px; }
  .overview-heading { flex-direction: row; }
  .casino-strip-title { gap: 3px; }
}

/* Pack shorter panels into available rows instead of reserving tall empty cells. */
.compact-panel-grid { grid-auto-rows: 8px; grid-auto-flow: row dense; }
.compact-panel-grid > [data-widget] { align-self: start; }
.compact-panel-grid .dashboard-casino-panel > .casino-card { height: auto; }

/* One overview command bar; no repeated page-title row. */
.overview-nav-controls { display: flex; align-items: center; gap: 8px; }
.overview-nav-controls .overview-source-link { padding: 7px 10px; }
.overview-nav-controls .layout-toolbar { flex-wrap: nowrap; }
body:has(.customizable-board) main { padding-top: 8px; }
body:has(.customizable-board) .topbar { height: 46px; }
body:has(.customizable-board) .casino-strip-sub { display: none; }
body:has(.customizable-board) .casino-strip-head { min-height: 28px; }
body:has(.customizable-board) .casino-strip-title h2 { margin: 0; }
.compact-panel-grid { grid-auto-rows: 1px; gap: 8px; }
@media(max-width:1100px) {
  body:has(.customizable-board) .shell-breadcrumb > span { display: none; }
  body:has(.customizable-board) .topbar { gap: 9px; }
}
@media(max-width:800px) {
  body:has(.customizable-board) .topbar { height: auto; }
  .overview-nav-controls { order: 6; width: 100%; justify-content: flex-end; }
}

.casino-dashboard-heading {display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap;}
.casino-dashboard-heading > div {margin-right:auto;}
.casino-dashboard-heading h1 {font-size:18px;margin:0 0 4px;}
.casino-dashboard-heading .muted {font-size:10px;}

.topbar-logout:has(#preview-session-note) { display: flex; align-items: center; gap: 8px; }
.topbar-logout button:disabled { opacity: .55; cursor: default; }
#preview-session-note { color: #87999f; font-size: 10px; white-space: nowrap; }
