/* Painel principal - camada visual premium, sem alterar Firebase/CRUD/mapa. */
:root{
  --cmd-bg:#02070a;
  --cmd-panel:rgba(7,17,20,.82);
  --cmd-panel-2:rgba(9,24,27,.78);
  --cmd-border:rgba(148,255,207,.16);
  --cmd-border-strong:rgba(52,255,142,.34);
  --cmd-text:#f4fff8;
  --cmd-muted:rgba(225,244,236,.68);
  --cmd-green:#10e982;
  --cmd-blue:#1aa8ff;
  --cmd-yellow:#f8b319;
  --cmd-red:#ff553f;
  --cmd-purple:#8d5cff;
  --cmd-shadow:0 18px 48px rgba(0,0,0,.34);
}

/* Painel > Mapa do territorio: preview mais proximo com controles de zoom. */
body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
#dashboard #dashboardMapPreviewPanel.dashboard-map-preview-panel{
  min-height:430px !important;
  height:clamp(420px,45vh,560px) !important;
  border-radius:18px !important;
}

body.dashboard-command-premium #dashboard #dashboardMiniMap,
#dashboard #dashboardMiniMap{
  cursor:grab !important;
}

body.dashboard-command-premium #dashboard .dashboard-mini-map-controls,
#dashboard .dashboard-mini-map-controls{
  position:absolute !important;
  top:14px !important;
  right:14px !important;
  z-index:120 !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  padding:7px !important;
  border-radius:999px !important;
  background:rgba(2,14,9,.78) !important;
  border:1px solid rgba(105,255,164,.28) !important;
  box-shadow:0 18px 38px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter:blur(12px) !important;
  pointer-events:auto !important;
}

body.dashboard-command-premium #dashboard .dashboard-mini-map-controls button,
#dashboard .dashboard-mini-map-controls button{
  appearance:none !important;
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  border:1px solid rgba(117,255,175,.26) !important;
  border-radius:999px !important;
  background:linear-gradient(180deg,rgba(7,39,24,.96),rgba(2,15,10,.98)) !important;
  color:#f2fff5 !important;
  -webkit-text-fill-color:#f2fff5 !important;
  font:900 18px/1 Inter,system-ui,sans-serif !important;
  cursor:pointer !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-shadow:0 10px 22px rgba(0,0,0,.26) !important;
  transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease !important;
}

body.dashboard-command-premium #dashboard .dashboard-mini-map-controls button:hover,
#dashboard .dashboard-mini-map-controls button:hover{
  transform:translateY(-1px) !important;
  border-color:rgba(91,255,150,.62) !important;
  background:linear-gradient(135deg,#0a7039,#1fd36d) !important;
  color:#021109 !important;
  -webkit-text-fill-color:#021109 !important;
  box-shadow:0 14px 30px rgba(31,211,109,.20) !important;
}

body.dashboard-command-premium #dashboard .dashboard-mini-map-controls .dashboard-mini-map-reset,
#dashboard .dashboard-mini-map-controls .dashboard-mini-map-reset{
  width:auto !important;
  min-width:74px !important;
  padding:0 12px !important;
  font-size:12px !important;
  letter-spacing:0 !important;
}

body.dashboard-command-premium #dashboard .dashboard-map-label,
#dashboard .dashboard-map-label{
  bottom:16px !important;
  left:16px !important;
  z-index:100 !important;
}

@media(max-width:760px){
  body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
  #dashboard #dashboardMapPreviewPanel.dashboard-map-preview-panel{
    min-height:340px !important;
    height:340px !important;
  }

  body.dashboard-command-premium #dashboard .dashboard-mini-map-controls,
  #dashboard .dashboard-mini-map-controls{
    top:10px !important;
    right:10px !important;
    gap:6px !important;
  }
}

body.dashboard-command-premium,
body.dashboard-command-premium.caio-emerald-ui{
  background:
    linear-gradient(90deg, rgba(38,255,139,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(38,255,139,.026) 1px, transparent 1px),
    radial-gradient(circle at 68% 0%, rgba(21,233,130,.10), transparent 34%),
    linear-gradient(180deg,#01060a 0%,#031015 48%,#02070a 100%) !important;
  background-size:42px 42px,42px 42px,auto,auto !important;
  color:var(--cmd-text) !important;
}

body.dashboard-command-premium *,
body.dashboard-command-premium *::before,
body.dashboard-command-premium *::after{
  box-sizing:border-box;
  letter-spacing:0 !important;
}

body.dashboard-command-premium #appShell,
body.dashboard-command-premium .main,
body.dashboard-command-premium .content,
body.dashboard-command-premium .premium-content,
body.dashboard-command-premium .page{
  background:transparent !important;
  color:var(--cmd-text) !important;
}

body.dashboard-command-premium #appShell::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    linear-gradient(120deg, transparent 0 28%, rgba(16,233,130,.07) 49%, transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 36%);
  opacity:.72;
}

body.dashboard-command-premium #appShell > *{
  position:relative;
  z-index:1;
}

/* Busca global premium */
body.dashboard-command-premium .global-search-backdrop,
body.dashboard-command-premium #globalSearchPremium{
  position:fixed !important;
  inset:0 !important;
  z-index:2147482500 !important;
  display:none !important;
  align-items:flex-start !important;
  justify-content:center !important;
  padding:88px 18px 24px !important;
  background:rgba(0,6,9,.58) !important;
  backdrop-filter:blur(14px) saturate(130%) !important;
  -webkit-backdrop-filter:blur(14px) saturate(130%) !important;
}

body.dashboard-command-premium .global-search-backdrop.open,
body.dashboard-command-premium #globalSearchPremium.open{
  display:flex !important;
}

body.dashboard-command-premium .global-search-backdrop.open:not(.is-user-open),
body.dashboard-command-premium #globalSearchPremium.open:not(.is-user-open),
body.dashboard-command-premium .global-search-backdrop:not(.is-user-open),
body.dashboard-command-premium #globalSearchPremium:not(.is-user-open){
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

body.dashboard-command-premium .global-search-backdrop.open.is-user-open,
body.dashboard-command-premium #globalSearchPremium.open.is-user-open{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}

body.dashboard-command-premium .global-search-modal{
  width:min(920px,calc(100vw - 28px)) !important;
  max-height:min(76vh,760px) !important;
  overflow:hidden !important;
  border-radius:10px !important;
  border:1px solid rgba(96,255,176,.25) !important;
  background:
    radial-gradient(circle at 80% 0%,rgba(16,233,130,.12),transparent 36%),
    linear-gradient(180deg,rgba(8,24,28,.96),rgba(2,10,14,.94)) !important;
  box-shadow:0 34px 90px rgba(0,0,0,.52),0 0 0 1px rgba(255,255,255,.035) inset !important;
  color:#f4fff8 !important;
}

body.dashboard-command-premium .global-search-head{
  min-height:68px !important;
  padding:14px !important;
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) auto !important;
  gap:12px !important;
  align-items:center !important;
  border-bottom:1px solid rgba(96,255,176,.12) !important;
  background:rgba(255,255,255,.025) !important;
}

body.dashboard-command-premium .global-search-head .big-lupa{
  width:42px !important;
  height:42px !important;
  border-radius:8px !important;
  display:grid !important;
  place-items:center !important;
  background:rgba(16,233,130,.10) !important;
  border:1px solid rgba(16,233,130,.20) !important;
  color:#10e982 !important;
  font-size:0 !important;
}

body.dashboard-command-premium .global-search-head .big-lupa::before{
  content:"";
  width:18px;
  height:18px;
  border:2px solid currentColor;
  border-radius:999px;
  box-shadow:10px 10px 0 -8px currentColor;
  transform:rotate(-8deg);
}

body.dashboard-command-premium .global-search-head input{
  width:100% !important;
  height:42px !important;
  border:1px solid rgba(96,255,176,.14) !important;
  outline:0 !important;
  border-radius:8px !important;
  padding:0 13px !important;
  background:rgba(0,0,0,.18) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:14px !important;
  font-weight:750 !important;
}

body.dashboard-command-premium .global-search-head input::placeholder{
  color:rgba(244,255,248,.56) !important;
  -webkit-text-fill-color:rgba(244,255,248,.56) !important;
}

body.dashboard-command-premium .global-search-head button{
  height:36px !important;
  min-width:54px !important;
  border:1px solid rgba(96,255,176,.16) !important;
  border-radius:8px !important;
  background:rgba(255,255,255,.04) !important;
  color:rgba(244,255,248,.78) !important;
  font-size:11px !important;
  font-weight:900 !important;
}

body.dashboard-command-premium .command-search-filters{
  display:flex !important;
  gap:8px !important;
  padding:12px 14px 0 !important;
  overflow:auto !important;
}

body.dashboard-command-premium .command-search-filter{
  flex:0 0 auto;
  height:30px;
  padding:0 11px;
  border-radius:999px;
  border:1px solid rgba(96,255,176,.14);
  background:rgba(255,255,255,.035);
  color:rgba(244,255,248,.78);
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}

body.dashboard-command-premium .command-search-filter.active{
  background:rgba(16,233,130,.16);
  border-color:rgba(16,233,130,.34);
  color:#fff;
  box-shadow:0 0 24px rgba(16,233,130,.10);
}

body.dashboard-command-premium .global-search-results{
  max-height:calc(min(76vh,760px) - 124px) !important;
  overflow:auto !important;
  padding:12px 14px 14px !important;
}

body.dashboard-command-premium .global-search-row{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:12px !important;
  min-height:62px !important;
  padding:10px !important;
  margin:0 0 8px !important;
  border-radius:8px !important;
  border:1px solid rgba(96,255,176,.10) !important;
  background:rgba(255,255,255,.035) !important;
  cursor:pointer !important;
  transition:transform .16s ease,border-color .16s ease,background .16s ease !important;
}

body.dashboard-command-premium .global-search-row:hover,
body.dashboard-command-premium .global-search-row.active{
  transform:translateY(-1px) !important;
  border-color:rgba(16,233,130,.30) !important;
  background:rgba(16,233,130,.08) !important;
}

body.dashboard-command-premium .global-search-ico{
  width:42px !important;
  height:42px !important;
  border-radius:8px !important;
  display:grid !important;
  place-items:center !important;
  background:linear-gradient(135deg,rgba(16,233,130,.24),rgba(26,168,255,.12)) !important;
  border:1px solid rgba(96,255,176,.18) !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:950 !important;
}

body.dashboard-command-premium .global-search-title{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:14px !important;
  font-weight:850 !important;
  line-height:1.15 !important;
}

body.dashboard-command-premium .global-search-meta{
  margin-top:4px !important;
  color:rgba(225,244,236,.62) !important;
  -webkit-text-fill-color:rgba(225,244,236,.62) !important;
  font-size:12px !important;
  line-height:1.2 !important;
}

body.dashboard-command-premium .global-search-tag{
  justify-self:end !important;
  border-radius:999px !important;
  padding:5px 9px !important;
  border:1px solid rgba(96,255,176,.16) !important;
  background:rgba(16,233,130,.10) !important;
  color:#b9ffdc !important;
  font-size:10px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

body.dashboard-command-premium .global-search-empty{
  padding:28px !important;
  text-align:center !important;
  color:rgba(225,244,236,.70) !important;
  font-weight:850 !important;
}

/* Sidebar */
body.dashboard-command-premium .sidebar{
  width:248px !important;
  min-width:248px !important;
  padding:18px 12px !important;
  background:
    linear-gradient(180deg, rgba(4,17,22,.96), rgba(2,9,12,.98)) !important;
  border-right:1px solid rgba(131,255,206,.14) !important;
  box-shadow:20px 0 52px rgba(0,0,0,.32) !important;
  color:var(--cmd-text) !important;
}

body.dashboard-command-premium .sidebar-top{
  gap:18px !important;
}

body.dashboard-command-premium .brand,
body.dashboard-command-premium .brand-mini,
body.dashboard-command-premium .brand-logo-shell{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

body.dashboard-command-premium .brand strong,
body.dashboard-command-premium .brand span,
body.dashboard-command-premium .sidebar strong,
body.dashboard-command-premium .sidebar span,
body.dashboard-command-premium .sidebar small{
  color:var(--cmd-text) !important;
  -webkit-text-fill-color:var(--cmd-text) !important;
}

body.dashboard-command-premium .sidebar small{
  color:var(--cmd-muted) !important;
  -webkit-text-fill-color:var(--cmd-muted) !important;
}

body.dashboard-command-premium .nav{
  gap:6px !important;
}

body.dashboard-command-premium .nav-item,
body.dashboard-command-premium .nav-subitem,
body.dashboard-command-premium .menu-group-toggle{
  min-height:42px !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  padding:10px 12px !important;
  border-radius:8px !important;
  border:1px solid transparent !important;
  background:transparent !important;
  color:rgba(239,252,246,.82) !important;
  -webkit-text-fill-color:rgba(239,252,246,.82) !important;
  font-weight:650 !important;
  font-size:14px !important;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease !important;
}

body.dashboard-command-premium .nav-item:hover,
body.dashboard-command-premium .nav-subitem:hover,
body.dashboard-command-premium .menu-group-toggle:hover{
  transform:translateX(2px) !important;
  background:rgba(255,255,255,.055) !important;
  border-color:rgba(130,255,205,.14) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

body.dashboard-command-premium .nav-item.active,
body.dashboard-command-premium .nav-subitem.active,
body.dashboard-command-premium .menu-group.open > .menu-group-toggle{
  background:linear-gradient(135deg,rgba(17,233,130,.26),rgba(17,233,130,.10)) !important;
  border-color:rgba(17,233,130,.34) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  box-shadow:0 0 0 1px rgba(17,233,130,.06),0 14px 34px rgba(17,233,130,.12) !important;
}

body.dashboard-command-premium .nav-item.active::before,
body.dashboard-command-premium .nav-subitem.active::before{
  content:none !important;
}

.command-sidebar-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:currentColor;
}

.command-sidebar-icon svg{
  width:18px;
  height:18px;
  display:block;
}

body.dashboard-command-premium .sidebar-foot{
  padding-top:14px !important;
  border-top:1px solid rgba(148,255,207,.12) !important;
}

body.dashboard-command-premium .sidebar .user-card{
  border-radius:8px !important;
  padding:14px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.03)) !important;
  border:1px solid rgba(148,255,207,.14) !important;
  box-shadow:var(--cmd-shadow) !important;
}

body.dashboard-command-premium .sidebar .btn,
body.dashboard-command-premium .btn-soft{
  border-radius:8px !important;
}

/* Header */
body.dashboard-command-premium .topbar{
  min-height:76px !important;
  padding:14px 18px !important;
  margin:0 0 12px !important;
  background:rgba(2,10,14,.74) !important;
  border:0 !important;
  border-bottom:1px solid rgba(148,255,207,.10) !important;
  box-shadow:none !important;
  backdrop-filter:blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(135%) !important;
}

body.dashboard-command-premium .topbar > .top-left,
body.dashboard-command-premium .topbar > .top-right{
  display:none !important;
}

.command-topbar-inner{
  width:100%;
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  gap:16px;
  align-items:center;
}

.command-live-pill,
.command-date-filter,
.command-filter-btn,
.command-icon-btn,
.command-avatar{
  min-height:38px;
  border-radius:8px;
  border:1px solid rgba(148,255,207,.14);
  background:rgba(255,255,255,.035);
  color:var(--cmd-text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 13px;
  font-size:13px;
  font-weight:700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.command-live-pill{
  color:var(--cmd-green);
  border-color:rgba(17,233,130,.22);
  background:rgba(17,233,130,.055);
}

.command-live-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--cmd-green);
  box-shadow:0 0 16px rgba(17,233,130,.86);
}

.command-search-shell{
  height:42px;
  border-radius:8px;
  border:1px solid rgba(148,255,207,.14);
  background:rgba(255,255,255,.035);
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 13px;
  color:rgba(243,255,248,.76);
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.command-search-shell svg,
.command-icon-btn svg,
.command-date-filter svg,
.command-filter-btn svg{
  width:17px;
  height:17px;
  flex:0 0 17px;
}

.command-search-shell span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.command-search-kbd{
  margin-left:auto;
  color:rgba(243,255,248,.54);
  font-size:12px;
}

.command-top-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
}

.command-refresh-btn{
  min-width:126px;
  justify-content:center;
  white-space:nowrap;
}

.command-refresh-btn.is-loading,
.command-refresh-btn:disabled{
  opacity:.78;
  cursor:wait;
  background:rgba(34,197,94,.12);
  border-color:rgba(34,197,94,.34);
}

.command-icon-btn{
  width:42px;
  padding:0;
  position:relative;
}

.command-icon-btn[data-badge]::after{
  content:attr(data-badge);
  position:absolute;
  right:5px;
  top:4px;
  width:15px;
  height:15px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--cmd-green);
  color:#02100b;
  font-size:9px;
  font-weight:900;
}

.command-avatar{
  width:42px;
  padding:0;
  color:#02100b;
  background:linear-gradient(135deg,#0de582,#1bbf69);
  border-color:rgba(17,233,130,.38);
  font-weight:950;
}

/* Dashboard grid */
body.dashboard-command-premium #dashboard{
  width:100% !important;
  max-width:1680px !important;
  margin:0 auto !important;
  padding:0 18px 28px !important;
  display:grid !important;
  grid-template-columns:repeat(12,minmax(0,1fr)) !important;
  gap:12px !important;
  align-items:start !important;
}

body.dashboard-command-premium #dashboard::before,
body.dashboard-command-premium #dashboard::after{
  content:none !important;
}

body.dashboard-command-premium #dashboardTopHero,
body.dashboard-command-premium #dashboard > .hero-card,
body.dashboard-command-premium #dashboard > .dashboard-quick-card,
body.dashboard-command-premium #dashboard > .dashboard-card-radar,
body.dashboard-command-premium #dashboard > .grid-2,
body.dashboard-command-premium #dashboard > .dashboard-insights-grid,
body.dashboard-command-premium #dashboardOpsPanel{
  display:none !important;
}

/* Fecha de vez o painel premium: blocos legados continuam no DOM,
   mas nao entram na composicao visual do dashboard principal. */
body.dashboard-command-premium.dashboard-operational-clean #dashboard > #dashboardOpsPanel.dashboard-ops-grid,
body.dashboard-command-premium.dashboard-operational-clean #dashboard > .grid-2,
body.dashboard-command-premium.dashboard-operational-clean #dashboard > .dashboard-insights-grid,
body.dashboard-command-premium #dashboard > .dashboard-card-recent,
body.dashboard-command-premium #dashboard > .dashboard-card-before,
body.dashboard-command-premium #dashboard > .dashboard-card-kpi,
body.dashboard-command-premium #dashboard > .dashboard-card-category,
body.dashboard-command-premium #dashboard > .dashboard-card-status,
body.dashboard-command-premium #dashboard > .dashboard-card-bairro,
body.dashboard-command-premium #dashboard > .dashboard-card-agenda,
body.dashboard-command-premium #dashboard > .dashboard-card-base,
body.dashboard-command-premium #dashboard > .dashboard-card-line{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
  position:static !important;
  inset:auto !important;
  left:auto !important;
  top:auto !important;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  overflow:hidden !important;
}

body.dashboard-command-premium #dashboard > .stats-grid{
  order:1 !important;
  grid-column:1 / -1 !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(7,minmax(0,1fr)) !important;
  gap:10px !important;
  margin:0 !important;
}

body.dashboard-command-premium #dashboard > .dashboard-map-card,
body.dashboard-command-premium #dashboard > .dashboard-card-map,
body.dashboard-command-premium #dashboard .dashboard-map-card.dashboard-card-map{
  order:3 !important;
  grid-column:1 / -1 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  justify-self:center !important;
  align-self:start !important;
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  position:relative !important;
  left:auto !important;
  top:auto !important;
  height:auto !important;
  min-height:0 !important;
  overflow:hidden !important;
  flex-direction:column !important;
  gap:6px !important;
  padding:10px !important;
  border-radius:8px !important;
  border:1px solid rgba(38,211,126,.28) !important;
  background:
    radial-gradient(circle at 82% -18%,rgba(17,233,130,.18),transparent 40%),
    linear-gradient(180deg,rgba(9,30,25,.92),rgba(3,12,15,.86)) !important;
  box-shadow:0 24px 70px rgba(0,0,0,.44),0 0 54px rgba(17,233,130,.1),inset 0 1px 0 rgba(255,255,255,.055) !important;
}

body.dashboard-command-premium #dashboard .dashboard-map-card .card-head,
body.dashboard-command-premium #dashboard .dashboard-card-map .card-head{
  min-height:34px !important;
  margin:0 !important;
  padding:0 2px 0 0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  border:0 !important;
  background:transparent !important;
}

body.dashboard-command-premium #dashboard .dashboard-map-card .card-head h3,
body.dashboard-command-premium #dashboard .dashboard-card-map .card-head h3{
  margin:0 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:16px !important;
  line-height:1.08 !important;
  font-weight:850 !important;
  letter-spacing:0 !important;
}

body.dashboard-command-premium #dashboard .dashboard-map-card .card-head-action,
body.dashboard-command-premium #dashboard .dashboard-card-map .card-head-action{
  min-height:34px !important;
  padding:0 14px !important;
  border-radius:8px !important;
  border:1px solid rgba(148,255,207,.2) !important;
  background:rgba(234,255,244,.94) !important;
  color:#064527 !important;
  -webkit-text-fill-color:#064527 !important;
  box-shadow:0 14px 34px rgba(0,0,0,.25),0 0 22px rgba(17,233,130,.12) !important;
  font-size:11px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

body.dashboard-command-premium #dashboard #dashboardMapSummary,
body.dashboard-command-premium #dashboard #dashboardMapLegend,
body.dashboard-command-premium #dashboard .dashboard-map-summary,
body.dashboard-command-premium #dashboard .dashboard-map-legend{
  display:none !important;
}

body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
body.dashboard-command-premium #dashboard .dashboard-map-preview-panel{
  position:relative !important;
  flex:1 1 auto !important;
  width:100% !important;
  min-height:310px !important;
  height:clamp(310px,34vh,430px) !important;
  border-radius:8px !important;
  overflow:hidden !important;
  border:1px solid rgba(91,255,171,.28) !important;
  background:#06110d !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 0 0 1px rgba(0,0,0,.28) !important;
}

body.dashboard-command-premium #dashboard #dashboardMiniMap,
body.dashboard-command-premium #dashboard #dashboardMiniMap.leaflet-container{
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  width:100% !important;
  height:100% !important;
  min-height:310px !important;
  display:block !important;
  background:#06110d !important;
}

body.dashboard-command-premium #dashboard .dashboard-mini-map-overlay{
  position:absolute !important;
  inset:0 !important;
  z-index:2 !important;
  pointer-events:none !important;
  background:
    linear-gradient(180deg,rgba(2,8,10,.08),rgba(2,8,10,.2)),
    radial-gradient(circle at 50% 52%,transparent 38%,rgba(0,0,0,.2) 100%) !important;
  mix-blend-mode:multiply;
}

body.dashboard-command-premium #dashboard .dashboard-map-label{
  position:absolute !important;
  left:50% !important;
  bottom:14px !important;
  transform:translateX(-50%) !important;
  z-index:3 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:32px !important;
  padding:0 16px !important;
  border-radius:999px !important;
  background:rgba(4,12,16,.72) !important;
  border:1px solid rgba(148,255,207,.2) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  box-shadow:0 10px 30px rgba(0,0,0,.4) !important;
  backdrop-filter:blur(12px) saturate(130%) !important;
  -webkit-backdrop-filter:blur(12px) saturate(130%) !important;
  font-size:18px !important;
  font-weight:900 !important;
}

body.dashboard-command-premium .card,
body.dashboard-command-premium .panel,
body.dashboard-command-premium .analytics-card,
body.dashboard-command-premium .table-wrap{
  border-radius:8px !important;
  border:1px solid var(--cmd-border) !important;
  background:
    linear-gradient(180deg,rgba(9,25,29,.86),rgba(4,12,16,.78)) !important;
  color:var(--cmd-text) !important;
  box-shadow:var(--cmd-shadow), inset 0 1px 0 rgba(255,255,255,.04) !important;
  backdrop-filter:blur(14px) saturate(125%) !important;
  -webkit-backdrop-filter:blur(14px) saturate(125%) !important;
}

body.dashboard-command-premium .card:hover,
.command-chart-card:hover,
.command-bottom-kpi:hover,
body.dashboard-command-premium .stat:hover{
  transform:translateY(-2px);
  border-color:var(--cmd-border-strong) !important;
  box-shadow:0 20px 58px rgba(0,0,0,.38),0 0 34px rgba(17,233,130,.07),inset 0 1px 0 rgba(255,255,255,.055) !important;
}

body.dashboard-command-premium .stat{
  min-height:120px !important;
  border-radius:8px !important;
  padding:13px 13px 12px !important;
  position:relative !important;
  overflow:hidden !important;
  display:grid !important;
  grid-template-columns:1fr auto !important;
  grid-template-rows:34px 27px 18px !important;
  gap:6px 8px !important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease !important;
}

body.dashboard-command-premium .stat::before{
  content:"";
  position:absolute;
  inset:auto 14px 0;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--cmd-green),transparent);
  opacity:.58;
  box-shadow:0 0 20px rgba(17,233,130,.28);
}

body.dashboard-command-premium .stat::after{
  content:"";
  position:absolute;
  right:-16px;
  top:12px;
  width:80px;
  height:80px;
  border-radius:8px;
  background:linear-gradient(135deg,rgba(17,233,130,.16),transparent);
  opacity:.72;
  transform:rotate(14deg);
}

.command-kpi-icon{
  width:28px;
  height:28px;
  border-radius:8px;
  display:grid;
  place-items:center;
  color:var(--cmd-green);
  background:rgba(17,233,130,.11);
  border:1px solid rgba(17,233,130,.18);
  box-shadow:0 0 24px rgba(17,233,130,.12);
  position:relative;
  z-index:1;
}

.command-kpi-icon svg{
  width:16px;
  height:16px;
}

body.dashboard-command-premium .stat[data-tone="blue"] .command-kpi-icon{color:var(--cmd-blue);background:rgba(26,168,255,.11);border-color:rgba(26,168,255,.22)}
body.dashboard-command-premium .stat[data-tone="yellow"] .command-kpi-icon{color:var(--cmd-yellow);background:rgba(248,179,25,.12);border-color:rgba(248,179,25,.24)}
body.dashboard-command-premium .stat[data-tone="purple"] .command-kpi-icon{color:var(--cmd-purple);background:rgba(141,92,255,.13);border-color:rgba(141,92,255,.24)}
body.dashboard-command-premium .stat[data-tone="red"] .command-kpi-icon{color:var(--cmd-red);background:rgba(255,85,63,.12);border-color:rgba(255,85,63,.24)}

body.dashboard-command-premium .stat .label{
  position:relative;
  z-index:1;
  grid-column:1;
  color:rgba(243,255,248,.88) !important;
  -webkit-text-fill-color:rgba(243,255,248,.88) !important;
  max-width:96px;
  font-size:10px !important;
  line-height:1.05 !important;
  font-weight:760 !important;
  text-transform:none !important;
}

body.dashboard-command-premium .stat strong{
  position:relative;
  z-index:1;
  grid-column:1;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:22px !important;
  line-height:1 !important;
  font-weight:950 !important;
  margin:2px 0 0 !important;
}

body.dashboard-command-premium .stat small,
.command-stat-growth{
  position:relative;
  z-index:1;
  color:var(--cmd-green) !important;
  -webkit-text-fill-color:var(--cmd-green) !important;
  font-size:10px !important;
  font-weight:700 !important;
  white-space:nowrap;
}

.command-stat-growth.is-down{
  color:var(--cmd-red) !important;
  -webkit-text-fill-color:var(--cmd-red) !important;
}

.command-sparkline{
  position:relative;
  z-index:1;
  grid-column:2;
  grid-row:2 / span 2;
  align-self:end;
  width:50px;
  height:24px;
  color:var(--cmd-green);
  opacity:.96;
}

.command-sparkline svg{
  width:50px;
  height:24px;
  display:block;
}

/* Premium analytics */
#dashboardCommandAnalytics{
  order:3;
  grid-column:1 / -1;
  width:100%;
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:12px;
  animation:commandFadeIn .42s ease both;
}

.command-chart-card,
.command-ranking-card,
.command-bottom-kpi{
  min-width:0;
  border-radius:8px;
  border:1px solid var(--cmd-border);
  background:
    linear-gradient(180deg,rgba(9,25,29,.84),rgba(3,11,15,.76));
  box-shadow:var(--cmd-shadow), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(14px) saturate(125%);
  -webkit-backdrop-filter:blur(14px) saturate(125%);
  overflow:hidden;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.command-chart-card{
  padding:13px 14px 12px;
  min-height:206px;
}

.command-chart-card.is-large{grid-column:span 4;}
.command-chart-card.is-medium{grid-column:span 3;}
.command-chart-card.is-small{grid-column:span 3;}
.command-chart-card.is-half{grid-column:span 4;}
.command-ranking-card{grid-column:span 2;}

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

.command-card-head h3{
  margin:0;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:15px;
  line-height:1.18;
  font-weight:780;
}

.command-card-head span,
.command-mini-action{
  color:var(--cmd-muted) !important;
  -webkit-text-fill-color:var(--cmd-muted) !important;
  font-size:11px;
  font-weight:700;
}

.command-mini-action{
  min-height:28px;
  padding:0 10px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(148,255,207,.12);
  background:rgba(255,255,255,.03);
  cursor:pointer;
  font-family:inherit;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,color .16s ease;
}

.command-mini-action:hover{
  transform:translateY(-1px);
  border-color:rgba(16,233,130,.38);
  background:rgba(16,233,130,.10);
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

.command-chart-shell{
  position:relative;
  width:100%;
  height:164px;
}

.command-chart-card.is-large .command-chart-shell{height:178px;}
.command-chart-card.is-half .command-chart-shell{height:154px;}

.command-chart-shell canvas{
  width:100% !important;
  height:100% !important;
}

.command-ranking-card{
  padding:13px 14px 12px;
  min-height:206px;
  max-height:238px;
}

.command-ranking-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.command-rank-row,
.command-assessor-row{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 54px;
  gap:7px;
  align-items:center;
}

.command-rank-index{
  width:22px;
  height:22px;
  border-radius:999px;
  display:grid;
  place-items:center;
  color:#dfffee;
  border:1px solid rgba(255,255,255,.16);
  font-size:11px;
  font-weight:850;
}

.command-rank-name,
.command-assessor-name{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(246,255,250,.92);
  font-size:12px;
  font-weight:700;
}

.command-rank-bar,
.command-assessor-bar{
  height:6px;
  margin-top:5px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  overflow:hidden;
}

.command-rank-bar i,
.command-assessor-bar i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--cmd-green),#19c67a);
}

.command-rank-value{
  color:#fff;
  font-size:11px;
  font-weight:760;
  text-align:right;
  white-space:nowrap;
}

.command-assessor-avatar{
  width:24px;
  height:24px;
  border-radius:999px;
  display:grid;
  place-items:center;
  color:#02100b;
  background:linear-gradient(135deg,#e9fff5,#0de582);
  font-size:11px;
  font-weight:900;
  overflow:hidden;
}

.command-assessor-avatar img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.command-bottom-grid{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
}

.command-operational-strip{
  order:2;
  grid-column:1 / -1;
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0;
}

.command-operational-card{
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--cmd-border);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(8,24,27,.88),rgba(3,11,14,.8));
  box-shadow:var(--cmd-shadow),inset 0 1px 0 rgba(255,255,255,.035);
}

.command-operational-card header{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:7px;
}

.command-operational-icon{
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  flex:0 0 23px;
  border:1px solid rgba(17,233,130,.2);
  border-radius:7px;
  color:var(--cmd-green);
  background:rgba(17,233,130,.08);
}

.command-operational-icon svg{width:13px;height:13px}

.command-operational-card h3{
  margin:0;
  color:#fff;
  font-size:12px;
  line-height:1.15;
  font-weight:800;
}

.command-operational-list{
  display:grid;
  gap:4px;
}

.command-operational-list div{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  padding-top:4px;
  border-top:1px solid rgba(148,255,207,.07);
}

.command-operational-list strong,
.command-operational-list small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.command-operational-list strong{
  color:rgba(244,255,248,.92);
  font-size:10px;
}

.command-operational-list small,
.command-operational-list p{
  margin:0;
  color:var(--cmd-muted);
  font-size:9px;
  font-weight:700;
}

body.dashboard-command-premium #dashboard > .command-bottom-grid{
  order:2;
  grid-column:1 / -1;
  width:100%;
  margin:2px 0 2px;
  animation:commandFadeIn .38s ease both;
}

.command-bottom-kpi{
  min-height:118px;
  padding:13px;
  position:relative;
}

.command-bottom-kpi h4{
  margin:0 0 12px;
  color:#fff;
  font-size:13px;
  line-height:1.18;
  font-weight:760;
}

.command-bottom-main{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
}

.command-bottom-value{
  color:#fff;
  font-size:28px;
  line-height:1;
  font-weight:950;
}

.command-bottom-label{
  color:var(--cmd-green);
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}

.command-gauge{
  width:68px;
  height:36px;
  border-radius:68px 68px 0 0;
  border:5px solid rgba(255,255,255,.08);
  border-bottom:0;
  position:relative;
  overflow:hidden;
}

.command-gauge::after{
  content:"";
  position:absolute;
  inset:-5px;
  border-radius:68px 68px 0 0;
  border:5px solid var(--cmd-green);
  border-bottom:0;
  clip-path:polygon(0 0,var(--gauge,80%) 0,var(--gauge,80%) 100%,0 100%);
}

.command-alert-icon{
  width:38px;
  height:38px;
  border-radius:8px;
  display:grid;
  place-items:center;
  color:var(--cmd-red);
  border:1px solid rgba(255,85,63,.22);
  background:rgba(255,85,63,.10);
}

.command-ranking-modal-overlay{
  position:fixed;
  inset:0;
  z-index:2147482200;
  display:grid;
  place-items:center;
  padding:22px;
  background:rgba(0,6,8,.72);
  backdrop-filter:blur(16px) saturate(130%);
  -webkit-backdrop-filter:blur(16px) saturate(130%);
  animation:commandFadeIn .18s ease both;
}

.command-ranking-modal{
  width:min(620px,calc(100vw - 28px));
  max-height:min(760px,82vh);
  overflow:hidden;
  border-radius:12px;
  border:1px solid rgba(120,255,190,.22);
  background:
    radial-gradient(circle at 82% 0%,rgba(16,233,130,.14),transparent 36%),
    linear-gradient(180deg,rgba(8,27,24,.98),rgba(1,8,9,.98));
  color:#f5fff8;
  box-shadow:0 34px 90px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.06);
}

.command-ranking-modal-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:18px;
  border-bottom:1px solid rgba(148,255,207,.12);
}

.command-ranking-modal-head span{
  display:block;
  margin-bottom:3px;
  color:var(--cmd-green);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.command-ranking-modal-head h3{
  margin:0;
  font-size:21px;
  line-height:1.1;
}

.command-ranking-modal-head p{
  margin:7px 0 0;
  color:rgba(225,244,236,.70);
  font-size:12px;
  font-weight:700;
}

.command-ranking-close{
  width:36px;
  height:36px;
  border-radius:8px;
  border:1px solid rgba(148,255,207,.16);
  background:rgba(255,255,255,.04);
  color:#fff;
  font-size:22px;
  font-weight:800;
  cursor:pointer;
}

.command-ranking-modal-list{
  max-height:calc(min(760px,82vh) - 116px);
  overflow:auto;
  padding:12px 18px 18px;
}

.command-ranking-modal-row{
  display:grid;
  grid-template-columns:32px 38px minmax(0,1fr) 58px;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:9px 0;
  border-bottom:1px solid rgba(148,255,207,.08);
}

.command-ranking-modal-row > strong{
  color:rgba(244,255,248,.62);
  font-size:12px;
  text-align:center;
}

.command-ranking-modal-avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(135deg,#e9fff5,#0de582);
  color:#02100b;
  font-size:12px;
  font-weight:950;
}

.command-ranking-modal-avatar img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.command-ranking-modal-info b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#fff;
  font-size:13px;
}

.command-ranking-modal-info i{
  display:block;
  height:7px;
  margin-top:6px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}

.command-ranking-modal-info em{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--cmd-green),#19c67a);
}

.command-ranking-modal-value{
  justify-self:end;
  color:#fff;
  font-size:13px;
  font-weight:900;
}

.command-ranking-empty{
  padding:22px;
  text-align:center;
  color:rgba(225,244,236,.72);
  font-size:13px;
  font-weight:800;
}

.command-satisfaction-page{
  width:100%;
  min-height:calc(100vh - 120px);
}

.command-satisfaction-hero{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
  padding:20px;
  border-radius:12px;
  border:1px solid rgba(148,255,207,.16);
  background:
    radial-gradient(circle at 82% 0%,rgba(250,204,21,.10),transparent 34%),
    linear-gradient(180deg,rgba(8,26,24,.94),rgba(2,10,12,.92));
  box-shadow:var(--cmd-shadow), inset 0 1px 0 rgba(255,255,255,.05);
}

.command-satisfaction-hero span{
  display:inline-flex;
  margin-bottom:8px;
  color:#facc15;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}

.command-satisfaction-hero h1{
  margin:0;
  color:#fff;
  font-size:clamp(28px,3.2vw,46px);
  line-height:1;
  font-weight:950;
}

.command-satisfaction-hero p{
  max-width:680px;
  margin:10px 0 0;
  color:rgba(225,244,236,.72);
  font-weight:750;
}

.command-satisfaction-score{
  min-width:190px;
  display:grid;
  place-items:center;
  padding:16px;
  border-radius:12px;
  border:1px solid rgba(250,204,21,.22);
  background:rgba(250,204,21,.08);
}

.command-satisfaction-score strong{
  color:#fff;
  font-size:36px;
  line-height:1;
  font-weight:1000;
}

.command-satisfaction-score small{
  margin-top:6px;
  color:#fde68a;
  font-size:12px;
  font-weight:900;
}

.command-satisfaction-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:12px;
}

.command-satisfaction-card{
  grid-column:span 6;
  min-height:260px;
  padding:16px;
  border-radius:12px;
  border:1px solid rgba(148,255,207,.14);
  background:linear-gradient(180deg,rgba(9,25,29,.88),rgba(3,11,15,.82));
  box-shadow:var(--cmd-shadow), inset 0 1px 0 rgba(255,255,255,.04);
}

.command-satisfaction-card h3{
  margin:0 0 12px;
  color:#fff;
  font-size:16px;
  font-weight:850;
}

.command-satisfaction-chart{
  height:220px;
}

.command-satisfaction-list{
  grid-column:span 6;
}

.command-satisfaction-row,
.command-satisfaction-comment{
  display:grid;
  gap:6px;
  padding:12px 0;
  border-bottom:1px solid rgba(148,255,207,.09);
}

.command-satisfaction-row{
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
}

.command-satisfaction-row strong,
.command-satisfaction-comment p{
  margin:0;
  color:#fff;
  font-size:13px;
  font-weight:850;
}

.command-satisfaction-row span{
  color:#facc15;
  font-size:15px;
  letter-spacing:1px !important;
  white-space:nowrap;
}

.command-satisfaction-row small,
.command-satisfaction-comment small,
.command-satisfaction-empty,
.command-satisfaction-loading{
  color:rgba(225,244,236,.68);
  font-size:12px;
  font-weight:750;
}

.command-satisfaction-comment p{
  line-height:1.45;
}

.command-satisfaction-empty,
.command-satisfaction-loading{
  padding:22px;
  text-align:center;
}

@media(max-width:900px){
  .command-satisfaction-hero{
    flex-direction:column;
  }
  .command-satisfaction-card,
  .command-satisfaction-list{
    grid-column:1 / -1;
  }
  .command-satisfaction-row{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   Executive dashboard v2.1 - structural width repair
   Neutralizes legacy inline/grid remnants without touching data.
   ========================================================= */
html body.dashboard-command-premium #appShell > .main,
html body.dashboard-command-premium #appShell .content.premium-content{
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
}

html body.dashboard-command-premium #appShell .content.premium-content{
  display:block !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

html body.dashboard-command-premium #dashboard.page.active{
  position:relative !important;
  inset:auto !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-auto-flow:row !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

html body.dashboard-command-premium #dashboard > .stats-grid,
html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map,
html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  right:auto !important;
  grid-column:1 / -1 !important;
  justify-self:stretch !important;
  align-self:start !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  transform:none !important;
  box-sizing:border-box !important;
}

html body.dashboard-command-premium #dashboard > .stats-grid{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}

html body.dashboard-command-premium #dashboard > .stats-grid > .stat{
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  right:auto !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}

html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map,
html body.dashboard-command-premium #dashboard .dashboard-map-card.dashboard-card-map{
  display:flex !important;
  flex-direction:column !important;
}

html body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
html body.dashboard-command-premium #dashboard .dashboard-map-preview-panel{
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  box-sizing:border-box !important;
}

html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}

html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics > *{
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  transform:none !important;
  box-sizing:border-box !important;
}

@media(max-width:1400px){
  html body.dashboard-command-premium #dashboard > .stats-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:900px){
  html body.dashboard-command-premium #dashboard > .stats-grid,
  html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:minmax(0,1fr) !important;
  }
}

/* Loading refinado */
body.dashboard-command-premium.caio-tab-loading .page.active{
  opacity:.82 !important;
  filter:blur(.8px) saturate(.96) !important;
}

@keyframes commandFadeIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

#commandMobileDock{
  display:none;
}

@media(max-width:1500px){
  body.dashboard-command-premium #dashboard > .stats-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
  .command-bottom-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .command-chart-card.is-large{grid-column:span 6;}
  .command-chart-card.is-medium,
  .command-chart-card.is-small,
  .command-ranking-card{grid-column:span 6;}
}

@media(max-width:1080px){
  .command-operational-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.dashboard-command-premium .sidebar{
    width:78px !important;
    min-width:78px !important;
  }
  body.dashboard-command-premium .nav-item,
  body.dashboard-command-premium .nav-subitem,
  body.dashboard-command-premium .menu-group-toggle{
    justify-content:center !important;
    padding:10px !important;
  }
  body.dashboard-command-premium .nav-item > span:not(.command-sidebar-icon),
  body.dashboard-command-premium .nav-subitem > span:not(.command-sidebar-icon),
  body.dashboard-command-premium .menu-group-toggle > span:not(.command-sidebar-icon),
  body.dashboard-command-premium .sidebar .user-card small,
  body.dashboard-command-premium .sidebar .user-card strong{
    display:none !important;
  }
  .command-topbar-inner{
    grid-template-columns:auto 1fr;
  }
  .command-top-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}

@media(max-width:760px){
  .command-operational-strip{
    grid-template-columns:1fr;
  }
  body.dashboard-command-premium .shell{
    display:block !important;
  }
  body.dashboard-command-premium .sidebar{
    display:none !important;
  }
  body.dashboard-command-premium .topbar{
    min-height:auto !important;
    padding:12px !important;
  }
  .command-topbar-inner{
    grid-template-columns:1fr;
    gap:10px;
  }
  .command-top-actions{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
  }
  .command-date-filter,
  .command-filter-btn{
    grid-column:span 2;
  }
  body.dashboard-command-premium #dashboard{
    padding:0 10px 86px !important;
    grid-template-columns:1fr !important;
  }
  body.dashboard-command-premium #dashboard > .stats-grid,
  .command-bottom-grid{
    grid-template-columns:1fr !important;
  }
  body.dashboard-command-premium #dashboard > .dashboard-map-card,
  body.dashboard-command-premium #dashboard > .dashboard-card-map,
  body.dashboard-command-premium #dashboard .dashboard-map-card.dashboard-card-map{
    grid-column:1 / -1 !important;
    max-width:none !important;
  }
  body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
  body.dashboard-command-premium #dashboard .dashboard-map-preview-panel{
    min-height:300px !important;
    height:320px !important;
  }
  #dashboardCommandAnalytics{
    grid-template-columns:1fr;
  }
  .command-chart-card,
  .command-chart-card.is-large,
  .command-chart-card.is-medium,
  .command-chart-card.is-small,
  .command-chart-card.is-half,
  .command-ranking-card{
    grid-column:1 / -1;
  }
  #commandMobileDock{
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;
    z-index:2147481500;
    min-height:58px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:6px;
    padding:7px;
    border-radius:8px;
    border:1px solid rgba(148,255,207,.18);
    background:rgba(3,12,16,.88);
    backdrop-filter:blur(18px) saturate(135%);
    -webkit-backdrop-filter:blur(18px) saturate(135%);
    box-shadow:0 18px 50px rgba(0,0,0,.42);
  }
  #commandMobileDock button{
    min-width:0;
    min-height:44px;
    border:0;
    border-radius:8px;
    background:transparent;
    color:rgba(244,255,248,.82);
    display:grid;
    place-items:center;
    font-size:11px;
    font-weight:750;
  }
  #commandMobileDock button.active{
    color:#02100b;
    background:var(--cmd-green);
  }
}

/* Sidebar: mantém somente um ícone por item do menu. */
body.dashboard-command-premium .sidebar .nav-item::before,
body.dashboard-command-premium .sidebar .nav-subitem::before,
body.dashboard-command-premium .sidebar .menu-group-toggle::before,
body.dashboard-command-premium .grouped-nav .nav-item::before,
body.dashboard-command-premium .grouped-nav .nav-subitem::before,
body.dashboard-command-premium .grouped-nav .menu-group-toggle::before{
  content:none !important;
  display:none !important;
  width:0 !important;
  min-width:0 !important;
  margin:0 !important;
}

body.dashboard-command-premium .sidebar .nav-item > .command-sidebar-icon ~ .command-sidebar-icon,
body.dashboard-command-premium .sidebar .nav-subitem > .command-sidebar-icon ~ .command-sidebar-icon,
body.dashboard-command-premium .sidebar .menu-group-toggle > .command-sidebar-icon ~ .command-sidebar-icon,
body.dashboard-command-premium .grouped-nav .nav-item > .command-sidebar-icon ~ .command-sidebar-icon,
body.dashboard-command-premium .grouped-nav .nav-subitem > .command-sidebar-icon ~ .command-sidebar-icon,
body.dashboard-command-premium .grouped-nav .menu-group-toggle > .command-sidebar-icon ~ .command-sidebar-icon{
  display:none !important;
}

body.dashboard-command-premium .sidebar .nav-item:has(> .command-sidebar-icon) > .sidebar-lucide,
body.dashboard-command-premium .sidebar .nav-subitem:has(> .command-sidebar-icon) > .sidebar-lucide,
body.dashboard-command-premium .sidebar .menu-group-toggle:has(> .command-sidebar-icon) > .sidebar-lucide,
body.dashboard-command-premium .grouped-nav .nav-item:has(> .command-sidebar-icon) > .sidebar-lucide,
body.dashboard-command-premium .grouped-nav .nav-subitem:has(> .command-sidebar-icon) > .sidebar-lucide,
body.dashboard-command-premium .grouped-nav .menu-group-toggle:has(> .command-sidebar-icon) > .sidebar-lucide{
  display:none !important;
}

body.dashboard-command-premium .sidebar .nav-item:has(> .caio-menu-icon) > .command-sidebar-icon,
body.dashboard-command-premium .sidebar .nav-subitem:has(> .caio-menu-icon) > .command-sidebar-icon,
body.dashboard-command-premium .sidebar .menu-group-toggle:has(> .caio-menu-icon) > .command-sidebar-icon,
body.dashboard-command-premium .grouped-nav .nav-item:has(> .caio-menu-icon) > .command-sidebar-icon,
body.dashboard-command-premium .grouped-nav .nav-subitem:has(> .caio-menu-icon) > .command-sidebar-icon,
body.dashboard-command-premium .grouped-nav .menu-group-toggle:has(> .caio-menu-icon) > .command-sidebar-icon{
  display:none !important;
}

/* =========================================================
   Dashboard enterprise polish - Linear / Vercel / Stripe feel
   Escopo: somente painel/dashboard. Nao altera dados, rotas ou Firebase.
   ========================================================= */
body.dashboard-command-premium{
  --cmd-bg:#07110f;
  --cmd-panel:rgba(10,15,15,.85);
  --cmd-panel-2:#0b1715;
  --cmd-border:rgba(255,255,255,.06);
  --cmd-border-strong:rgba(255,255,255,.08);
  --cmd-text:#ffffff;
  --cmd-muted:rgba(255,255,255,.65);
  --cmd-green:#00E38C;
  --cmd-blue:#2DD4BF;
  --cmd-shadow:0 4px 20px rgba(0,0,0,.15);
  background:#07110f !important;
  background-image:
    radial-gradient(circle at 70% -10%,rgba(0,227,140,.07),transparent 30%),
    linear-gradient(180deg,#07110f 0%,#06100e 100%) !important;
  color:#fff !important;
  font-family:Inter,"Plus Jakarta Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif !important;
}

body.dashboard-command-premium #appShell::before,
body.dashboard-command-premium #dashboard::before,
body.dashboard-command-premium #dashboard::after{
  opacity:0 !important;
  display:none !important;
}

body.dashboard-command-premium #dashboard{
  gap:20px !important;
  color:#fff !important;
}

body.dashboard-command-premium #dashboard > .stats-grid,
body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics,
body.dashboard-command-premium #dashboard > .command-operational-strip,
body.dashboard-command-premium #dashboard > .command-bottom-grid{
  gap:20px !important;
}

body.dashboard-command-premium #dashboard :is(
  .card,
  .analytics-card,
  .stat,
  .command-kpi-card,
  .command-chart-card,
  .command-ranking-card,
  .command-operational-card,
  .command-bottom-kpi,
  .dashboard-map-card,
  .dashboard-card-map,
  .dashboard-op-card
){
  background:rgba(10,15,15,.85) !important;
  background-image:none !important;
  border:1px solid rgba(255,255,255,.06) !important;
  border-radius:18px !important;
  box-shadow:0 4px 20px rgba(0,0,0,.15) !important;
  outline:0 !important;
  transition:transform .2s ease,border-color .2s ease,background-color .2s ease,box-shadow .2s ease !important;
}

body.dashboard-command-premium #dashboard :is(
  .card,
  .analytics-card,
  .stat,
  .command-kpi-card,
  .command-chart-card,
  .command-ranking-card,
  .command-operational-card,
  .command-bottom-kpi,
  .dashboard-map-card,
  .dashboard-card-map,
  .dashboard-op-card
)::before,
body.dashboard-command-premium #dashboard :is(
  .card,
  .analytics-card,
  .stat,
  .command-kpi-card,
  .command-chart-card,
  .command-ranking-card,
  .command-operational-card,
  .command-bottom-kpi,
  .dashboard-map-card,
  .dashboard-card-map,
  .dashboard-op-card
)::after{
  opacity:0 !important;
  box-shadow:none !important;
  filter:none !important;
}

body.dashboard-command-premium #dashboard :is(.command-chart-card,.command-ranking-card,.command-operational-card,.command-bottom-kpi):hover,
body.dashboard-command-premium #dashboard :is(.dashboard-map-card,.dashboard-card-map,.stat):hover{
  transform:translateY(-2px) !important;
  border-color:rgba(255,255,255,.10) !important;
  box-shadow:0 10px 30px rgba(0,0,0,.22) !important;
}

body.dashboard-command-premium #dashboard :is(.command-chart-card,.command-ranking-card,.command-operational-card,.command-bottom-kpi){
  padding:24px !important;
}

body.dashboard-command-premium #dashboard .command-kpi-card,
body.dashboard-command-premium #dashboard .stat.card{
  min-height:92px !important;
  padding:18px 20px !important;
  overflow:hidden !important;
}

body.dashboard-command-premium #dashboard .command-kpi-icon,
body.dashboard-command-premium #dashboard .command-alert-icon{
  background:rgba(0,227,140,.10) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:none !important;
  color:#00E38C !important;
}

body.dashboard-command-premium #dashboard :is(h1,h2,h3,.command-card-head h3,.card-head h3,.analytics-card-head strong){
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-weight:600 !important;
  letter-spacing:0 !important;
}

body.dashboard-command-premium #dashboard :is(p,small,span,.command-card-head span,.analytics-card-head span,.command-mini-action){
  color:rgba(255,255,255,.65) !important;
  -webkit-text-fill-color:rgba(255,255,255,.65) !important;
  font-weight:400 !important;
}

body.dashboard-command-premium #dashboard .stat strong,
body.dashboard-command-premium #dashboard .command-bottom-kpi strong{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-weight:600 !important;
}

body.dashboard-command-premium #dashboard .command-stat-growth,
body.dashboard-command-premium #dashboard .command-bottom-kpi small{
  color:rgba(255,255,255,.65) !important;
  -webkit-text-fill-color:rgba(255,255,255,.65) !important;
}

body.dashboard-command-premium #dashboard .command-sparkline{
  color:#00E38C !important;
  opacity:.78 !important;
  filter:none !important;
}

/* Mapa como peca central do painel */
body.dashboard-command-premium #dashboard > .dashboard-map-card,
body.dashboard-command-premium #dashboard > .dashboard-card-map,
body.dashboard-command-premium #dashboard .dashboard-map-card.dashboard-card-map{
  padding:18px !important;
  border-color:rgba(255,255,255,.08) !important;
  min-height:520px !important;
  overflow:hidden !important;
}

body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
body.dashboard-command-premium #dashboard .dashboard-map-preview-panel{
  height:clamp(460px,50vh,620px) !important;
  min-height:460px !important;
  border-radius:16px !important;
  border:1px solid rgba(255,255,255,.05) !important;
  background:#07110f !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

body.dashboard-command-premium #dashboard #dashboardMiniMap,
body.dashboard-command-premium #dashboard #dashboardMiniMap.leaflet-container,
body.dashboard-command-premium #dashboard .leaflet-container{
  background:#07110f !important;
  border-radius:16px !important;
}

body.dashboard-command-premium #dashboard .dashboard-mini-map-overlay{
  background:linear-gradient(180deg,rgba(7,17,15,.14),rgba(7,17,15,.28)) !important;
  opacity:.65 !important;
}

body.dashboard-command-premium #dashboard .dashboard-mini-map-controls{
  background:rgba(11,23,21,.78) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 4px 20px rgba(0,0,0,.22) !important;
  backdrop-filter:blur(10px) !important;
}

body.dashboard-command-premium #dashboard .dashboard-mini-map-controls button,
body.dashboard-command-premium #dashboard .card-head-action,
body.dashboard-command-premium #dashboard .command-mini-action{
  background:rgba(255,255,255,.03) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  color:rgba(255,255,255,.82) !important;
  -webkit-text-fill-color:rgba(255,255,255,.82) !important;
  box-shadow:none !important;
  transition:transform .2s ease,border-color .2s ease,background-color .2s ease !important;
}

body.dashboard-command-premium #dashboard .dashboard-mini-map-controls button:hover,
body.dashboard-command-premium #dashboard .card-head-action:hover,
body.dashboard-command-premium #dashboard .command-mini-action:hover{
  transform:translateY(-1px) !important;
  background:rgba(0,227,140,.10) !important;
  border-color:rgba(0,227,140,.26) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

body.dashboard-command-premium #dashboard .dashboard-map-label,
body.dashboard-command-premium #dashboard .dashboard-mini-map-legend,
body.dashboard-command-premium #dashboard .leaflet-control{
  background:rgba(11,23,21,.78) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 4px 20px rgba(0,0,0,.18) !important;
  color:rgba(255,255,255,.82) !important;
}

body.dashboard-command-premium #dashboard .leaflet-control-zoom a{
  background:rgba(11,23,21,.92) !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.08) !important;
}

body.dashboard-command-premium #dashboard .leaflet-tooltip,
body.dashboard-command-premium #dashboard .leaflet-popup-content-wrapper,
body.dashboard-command-premium #dashboard .leaflet-popup-tip{
  background:#0b1715 !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.28) !important;
}

/* Charts e rankings com acabamento executivo */
body.dashboard-command-premium #dashboardCommandAnalytics{
  grid-template-columns:repeat(12,minmax(0,1fr)) !important;
  gap:20px !important;
}

body.dashboard-command-premium #dashboard .command-chart-shell{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  min-height:230px !important;
  padding:4px 0 0 !important;
}

body.dashboard-command-premium #dashboard .command-chart-card.is-large .command-chart-shell{
  min-height:250px !important;
}

body.dashboard-command-premium #dashboard canvas{
  filter:none !important;
}

body.dashboard-command-premium #dashboard .command-ranking-list{
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
}

body.dashboard-command-premium #dashboard .command-ranking-row,
body.dashboard-command-premium #dashboard .command-operational-list > div,
body.dashboard-command-premium #dashboard .dashboard-op-row,
body.dashboard-command-premium #dashboard .dashboard-territory-row{
  background:transparent !important;
  border:0 !important;
  border-bottom:1px solid rgba(255,255,255,.06) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:10px 0 !important;
  transition:background-color .2s ease,transform .2s ease !important;
}

body.dashboard-command-premium #dashboard .command-ranking-row:hover,
body.dashboard-command-premium #dashboard .command-operational-list > div:hover,
body.dashboard-command-premium #dashboard .dashboard-op-row:hover,
body.dashboard-command-premium #dashboard .dashboard-territory-row:hover{
  background:rgba(255,255,255,.025) !important;
  transform:translateY(-1px) !important;
}

body.dashboard-command-premium #dashboard .command-ranking-row:last-child,
body.dashboard-command-premium #dashboard .command-operational-list > div:last-child,
body.dashboard-command-premium #dashboard .dashboard-op-row:last-child,
body.dashboard-command-premium #dashboard .dashboard-territory-row:last-child{
  border-bottom:0 !important;
}

body.dashboard-command-premium #dashboard .command-ranking-number,
body.dashboard-command-premium #dashboard .command-ranking-row b{
  border-color:rgba(255,255,255,.10) !important;
  background:rgba(255,255,255,.035) !important;
  color:rgba(255,255,255,.82) !important;
}

body.dashboard-command-premium #dashboard .dashboard-territory-bar,
body.dashboard-command-premium #dashboard .command-gauge{
  background:rgba(255,255,255,.05) !important;
  box-shadow:none !important;
}

body.dashboard-command-premium #dashboard .dashboard-territory-bar i,
body.dashboard-command-premium #dashboard .command-gauge::before{
  background:linear-gradient(90deg,#00E38C,#2DD4BF) !important;
  box-shadow:none !important;
}

body.dashboard-command-premium #dashboard .badge,
body.dashboard-command-premium #dashboard .tag,
body.dashboard-command-premium #dashboard .dashboard-op-row em{
  background:rgba(0,227,140,.10) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  color:rgba(255,255,255,.78) !important;
  box-shadow:none !important;
}

@media(max-width:1500px){
  body.dashboard-command-premium #dashboardCommandAnalytics{
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  }
}

@media(max-width:760px){
  body.dashboard-command-premium #dashboard{
    gap:14px !important;
  }

  body.dashboard-command-premium #dashboard > .dashboard-map-card,
  body.dashboard-command-premium #dashboard > .dashboard-card-map,
  body.dashboard-command-premium #dashboard .dashboard-map-card.dashboard-card-map{
    min-height:390px !important;
    padding:12px !important;
  }

  body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
  body.dashboard-command-premium #dashboard .dashboard-map-preview-panel{
    min-height:340px !important;
    height:340px !important;
  }

  body.dashboard-command-premium #dashboard :is(.command-chart-card,.command-ranking-card,.command-operational-card,.command-bottom-kpi){
    padding:18px !important;
  }
}

/* Executive dashboard v2: clean SaaS command center */
body.dashboard-command-premium{
  --exec-bg:#07110F;
  --exec-card:#0B1715;
  --exec-card-rgb:11,23,21;
  --exec-green:#00E38C;
  --exec-teal:#2DD4BF;
  --exec-line:rgba(255,255,255,.06);
  --exec-line-strong:rgba(255,255,255,.10);
  --exec-text:#FFFFFF;
  --exec-muted:rgba(255,255,255,.65);
}

body.dashboard-command-premium .premium-content,
body.dashboard-command-premium .main,
body.dashboard-command-premium #dashboard{
  background:#07110F !important;
}

body.dashboard-command-premium .topbar{
  min-height:64px !important;
  height:64px !important;
  max-height:64px !important;
  padding:0 22px !important;
  border:0 !important;
  border-bottom:1px solid var(--exec-line) !important;
  border-radius:0 !important;
  background:rgba(7,17,15,.88) !important;
  box-shadow:none !important;
  backdrop-filter:blur(14px) !important;
  overflow:visible !important;
}

body.dashboard-command-premium .topbar > .top-left,
body.dashboard-command-premium .topbar > .top-right{
  display:none !important;
}

body.dashboard-command-premium .command-topbar-inner{
  width:100% !important;
  min-height:64px !important;
  height:64px !important;
  display:grid !important;
  grid-template-columns:minmax(280px,1fr) auto !important;
  align-items:center !important;
  gap:14px !important;
  padding:0 !important;
  margin:0 !important;
}

body.dashboard-command-premium .command-live-pill,
body.dashboard-command-premium .command-search-shell,
body.dashboard-command-premium .command-date-filter,
body.dashboard-command-premium .command-filter-btn,
body.dashboard-command-premium .command-icon-btn,
body.dashboard-command-premium .gab-notifications-bell,
body.dashboard-command-premium .command-avatar{
  height:40px !important;
  border-radius:12px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  background:rgba(255,255,255,.025) !important;
  color:rgba(255,255,255,.86) !important;
  box-shadow:none !important;
}

body.dashboard-command-premium .command-live-pill{
  padding:0 14px !important;
  font-size:12px !important;
  font-weight:700 !important;
}

body.dashboard-command-premium .command-live-dot{
  background:var(--exec-green) !important;
  box-shadow:none !important;
}

body.dashboard-command-premium .command-live-pill,
body.dashboard-command-premium .command-live-dot{
  display:none !important;
  visibility:hidden !important;
  width:0 !important;
  min-width:0 !important;
  max-width:0 !important;
  height:0 !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  pointer-events:none !important;
}

body.dashboard-command-premium .command-search-shell{
  width:min(680px,100%) !important;
  justify-content:flex-start !important;
  padding:0 14px !important;
}

body.dashboard-command-premium .command-search-shell svg{
  width:17px !important;
  height:17px !important;
  color:rgba(255,255,255,.72) !important;
}

body.dashboard-command-premium .command-search-shell span{
  color:rgba(255,255,255,.55) !important;
  font-size:14px !important;
}

body.dashboard-command-premium .command-search-kbd{
  margin-left:auto !important;
  color:rgba(255,255,255,.42) !important;
  border:0 !important;
  background:transparent !important;
}

body.dashboard-command-premium .command-top-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  min-width:0 !important;
  overflow:visible !important;
}

body.dashboard-command-premium .command-date-filter,
body.dashboard-command-premium .command-filter-btn{
  padding:0 13px !important;
  font-size:12px !important;
  font-weight:700 !important;
}

body.dashboard-command-premium .command-date-filter svg,
body.dashboard-command-premium .command-filter-btn svg{
  width:16px !important;
  height:16px !important;
  color:rgba(255,255,255,.70) !important;
}

body.dashboard-command-premium .gab-notifications{
  z-index:90 !important;
}

body.dashboard-command-premium .gab-notifications-bell{
  width:40px !important;
  padding:0 !important;
}

body.dashboard-command-premium .gab-notifications.has-unread .gab-notifications-bell{
  border-color:rgba(239,68,68,.42) !important;
  box-shadow:none !important;
}

body.dashboard-command-premium .command-avatar{
  width:40px !important;
  min-width:40px !important;
  display:grid !important;
  place-items:center !important;
  background:var(--exec-green) !important;
  color:#02110c !important;
  font-size:14px !important;
  font-weight:800 !important;
  border-color:transparent !important;
}

body.dashboard-command-premium #dashboard{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:20px !important;
  padding:22px !important;
  max-width:100% !important;
}

body.dashboard-command-premium #dashboard > .stats-grid{
  order:1 !important;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:20px !important;
  margin:0 !important;
  width:100% !important;
}

body.dashboard-command-premium #dashboard > .stats-grid > .stat{
  height:100px !important;
  min-height:100px !important;
  padding:20px 22px !important;
  border-radius:18px !important;
  background:rgba(10,15,15,.90) !important;
  border:1px solid var(--exec-line) !important;
  box-shadow:0 8px 24px rgba(0,0,0,.12) !important;
  transform:none !important;
}

body.dashboard-command-premium #dashboard > .stats-grid > .stat::before,
body.dashboard-command-premium #dashboard > .stats-grid > .stat::after,
body.dashboard-command-premium #dashboard .command-kpi-icon,
body.dashboard-command-premium #dashboard .command-sparkline{
  display:none !important;
  content:none !important;
}

body.dashboard-command-premium #dashboard > .stats-grid > .stat strong{
  font-size:31px !important;
  line-height:1 !important;
  font-weight:700 !important;
  color:#fff !important;
}

body.dashboard-command-premium #dashboard > .stats-grid > .stat .label{
  margin:0 !important;
  color:rgba(255,255,255,.76) !important;
  font-size:13px !important;
  font-weight:500 !important;
}

body.dashboard-command-premium #dashboard > .stats-grid > .stat small{
  margin-top:2px !important;
  color:rgba(0,227,140,.82) !important;
  font-size:11px !important;
  font-weight:600 !important;
}

body.dashboard-command-premium #cmdBottomGrid,
body.dashboard-command-premium #cmdOperationalStrip,
body.dashboard-command-premium #cmdChartStatus,
body.dashboard-command-premium #cmdChartRadar,
body.dashboard-command-premium #cmdChartCategory,
body.dashboard-command-premium #cmdChartRate,
body.dashboard-command-premium #cmdRankAssessor,
body.dashboard-command-premium #cmdChartTime,
body.dashboard-command-premium #cmdChartPriority,
body.dashboard-command-premium #cmdChartChannel{
  display:none !important;
}

body.dashboard-command-premium #dashboard > .dashboard-map-card,
body.dashboard-command-premium #dashboard > .dashboard-card-map,
body.dashboard-command-premium #dashboard .dashboard-map-card.dashboard-card-map{
  order:2 !important;
  min-height:560px !important;
  padding:20px !important;
  border-radius:18px !important;
  background:rgba(10,15,15,.90) !important;
  border:1px solid var(--exec-line) !important;
  box-shadow:0 8px 24px rgba(0,0,0,.12) !important;
  overflow:hidden !important;
}

body.dashboard-command-premium #dashboard .dashboard-map-card .card-head,
body.dashboard-command-premium #dashboard .dashboard-card-map .card-head{
  min-height:40px !important;
  padding:0 0 14px !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
}

body.dashboard-command-premium #dashboard .dashboard-map-card .card-head h3,
body.dashboard-command-premium #dashboard .dashboard-card-map .card-head h3{
  font-size:18px !important;
  font-weight:600 !important;
}

body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
body.dashboard-command-premium #dashboard .dashboard-map-preview-panel{
  height:500px !important;
  min-height:500px !important;
  border-radius:16px !important;
  border:1px solid rgba(255,255,255,.05) !important;
  background:#07110F !important;
  box-shadow:none !important;
}

body.dashboard-command-premium #dashboard .dashboard-mini-map-controls,
body.dashboard-command-premium #dashboard .dashboard-mini-map-legend,
body.dashboard-command-premium #dashboard .dashboard-map-label,
body.dashboard-command-premium #dashboard .leaflet-control{
  background:rgba(11,23,21,.72) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:14px !important;
  box-shadow:0 8px 24px rgba(0,0,0,.12) !important;
  backdrop-filter:blur(12px) !important;
}

body.dashboard-command-premium #dashboard .dashboard-mini-map-controls button,
body.dashboard-command-premium #dashboard .card-head-action{
  height:34px !important;
  border-radius:10px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  background:rgba(255,255,255,.035) !important;
  color:rgba(255,255,255,.84) !important;
  box-shadow:none !important;
}

body.dashboard-command-premium #dashboardCommandAnalytics{
  order:3 !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:20px !important;
  width:100% !important;
  margin:0 !important;
}

body.dashboard-command-premium #dashboardCommandAnalytics > *{
  min-width:0 !important;
  grid-column:auto !important;
}

body.dashboard-command-premium #dashboard :is(.command-chart-card,.command-ranking-card,.command-activity-card){
  min-height:330px !important;
  padding:24px !important;
  border-radius:18px !important;
  background:rgba(10,15,15,.90) !important;
  border:1px solid var(--exec-line) !important;
  box-shadow:0 8px 24px rgba(0,0,0,.12) !important;
  overflow:hidden !important;
}

body.dashboard-command-premium #dashboard .command-card-head{
  min-height:auto !important;
  padding:0 0 18px !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
}

body.dashboard-command-premium #dashboard .command-card-head h3{
  margin:0 !important;
  font-size:18px !important;
  font-weight:600 !important;
  color:#fff !important;
}

body.dashboard-command-premium #dashboard .command-card-head span,
body.dashboard-command-premium #dashboard .command-mini-action{
  color:var(--exec-muted) !important;
  font-size:12px !important;
  font-weight:500 !important;
}

body.dashboard-command-premium #dashboard .command-chart-shell{
  min-height:245px !important;
  height:245px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
}

body.dashboard-command-premium #dashboard .command-ranking-list{
  gap:0 !important;
}

body.dashboard-command-premium #dashboard .command-rank-row{
  min-height:36px !important;
  padding:9px 0 !important;
  border-bottom:1px solid rgba(255,255,255,.055) !important;
  background:transparent !important;
  border-radius:0 !important;
}

body.dashboard-command-premium #dashboard .command-rank-index{
  width:22px !important;
  height:22px !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.035) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  color:rgba(255,255,255,.72) !important;
}

body.dashboard-command-premium #dashboard .command-rank-name{
  color:rgba(255,255,255,.78) !important;
  font-size:13px !important;
  font-weight:500 !important;
}

body.dashboard-command-premium #dashboard .command-rank-value{
  color:rgba(255,255,255,.70) !important;
  font-size:12px !important;
  font-weight:600 !important;
}

body.dashboard-command-premium #dashboard .command-activity-card{
  display:flex !important;
  flex-direction:column !important;
}

body.dashboard-command-premium #dashboard .command-activity-table{
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
  min-width:0 !important;
  overflow:hidden !important;
}

body.dashboard-command-premium #dashboard .command-activity-row{
  display:grid !important;
  grid-template-columns:1.12fr .9fr .78fr .82fr 1fr !important;
  align-items:center !important;
  gap:10px !important;
  min-height:38px !important;
  padding:8px 0 !important;
  border-bottom:1px solid rgba(255,255,255,.055) !important;
  color:rgba(255,255,255,.72) !important;
  font-size:12px !important;
}

body.dashboard-command-premium #dashboard .command-activity-row span{
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  color:inherit !important;
}

body.dashboard-command-premium #dashboard .command-activity-head{
  min-height:28px !important;
  padding-top:0 !important;
  color:rgba(255,255,255,.42) !important;
  font-size:10px !important;
  font-weight:700 !important;
  text-transform:uppercase !important;
  letter-spacing:.04em !important;
}

body.dashboard-command-premium #dashboard .command-activity-empty{
  padding:18px 0 !important;
  color:var(--exec-muted) !important;
  font-size:13px !important;
}

body.dashboard-command-premium #dashboard :is(.command-chart-card,.command-ranking-card,.command-activity-card,.dashboard-map-card,.dashboard-card-map,.stat){
  transition:transform .2s ease,border-color .2s ease,background-color .2s ease,box-shadow .2s ease !important;
}

body.dashboard-command-premium #dashboard :is(.command-chart-card,.command-ranking-card,.command-activity-card,.dashboard-map-card,.dashboard-card-map,.stat):hover{
  transform:translateY(-2px) !important;
  border-color:rgba(255,255,255,.10) !important;
  box-shadow:0 10px 26px rgba(0,0,0,.16) !important;
}

@media(max-width:1400px){
  body.dashboard-command-premium #dashboardCommandAnalytics{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  body.dashboard-command-premium #dashboard > .stats-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media(max-width:900px){
  body.dashboard-command-premium .command-topbar-inner{
    grid-template-columns:1fr !important;
    height:auto !important;
    min-height:64px !important;
    padding:10px 0 !important;
  }

  body.dashboard-command-premium .topbar{
    height:auto !important;
    max-height:none !important;
  }

  body.dashboard-command-premium .command-search-shell{
    width:100% !important;
  }

  body.dashboard-command-premium .command-top-actions{
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
  }

  body.dashboard-command-premium #dashboard > .stats-grid,
  body.dashboard-command-premium #dashboardCommandAnalytics{
    grid-template-columns:1fr !important;
  }

  body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
  body.dashboard-command-premium #dashboard .dashboard-map-preview-panel{
    height:380px !important;
    min-height:380px !important;
  }

  body.dashboard-command-premium #dashboard > .dashboard-map-card,
  body.dashboard-command-premium #dashboard > .dashboard-card-map,
  body.dashboard-command-premium #dashboard .dashboard-map-card.dashboard-card-map{
    min-height:440px !important;
  }
}

/* =========================================================
   Executive dashboard v2.2 - final layout lock
   Keeps the panel full-width from first paint and prevents
   the old operational dashboard from squeezing current cards.
   ========================================================= */
html body.dashboard-command-premium #appShell,
html body.dashboard-command-premium #appShell > .main,
html body.dashboard-command-premium #appShell .content.premium-content{
  min-width:0 !important;
  max-width:none !important;
  overflow:visible !important;
}

html body.dashboard-command-premium #appShell .content.premium-content{
  display:block !important;
  width:auto !important;
}

html body.dashboard-command-premium #dashboard,
html body.dashboard-command-premium #dashboard.page,
html body.dashboard-command-premium #dashboard.page.active{
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-auto-flow:row !important;
  align-items:start !important;
  gap:20px !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:22px !important;
  overflow:visible !important;
  transform:none !important;
  box-sizing:border-box !important;
}

html body.dashboard-command-premium #dashboard > .stats-grid,
html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map,
html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  grid-column:1 !important;
  justify-self:stretch !important;
  align-self:start !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  transform:none !important;
  box-sizing:border-box !important;
}

html body.dashboard-command-premium #dashboard > .stats-grid{
  order:1 !important;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:20px !important;
}

html body.dashboard-command-premium #dashboard > .stats-grid > .stat{
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  height:100px !important;
  min-height:100px !important;
  margin:0 !important;
  transform:none !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}

html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map,
html body.dashboard-command-premium #dashboard .dashboard-map-card.dashboard-card-map{
  order:2 !important;
  display:flex !important;
  flex-direction:column !important;
  min-height:560px !important;
  overflow:hidden !important;
}

html body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
html body.dashboard-command-premium #dashboard .dashboard-map-preview-panel{
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:500px !important;
  height:500px !important;
  box-sizing:border-box !important;
}

html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
  order:3 !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:20px !important;
}

html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics > *{
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  right:auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  transform:none !important;
  box-sizing:border-box !important;
}

html body.dashboard-command-premium #dashboard > #dashboardOpsPanel,
html body.dashboard-command-premium #dashboard > .grid-2,
html body.dashboard-command-premium #dashboard > .dashboard-insights-grid,
html body.dashboard-command-premium #dashboard > .dashboard-quick-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-radar,
html body.dashboard-command-premium #dashboard > .dashboard-card-before,
html body.dashboard-command-premium #dashboard > .dashboard-card-recent{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
  position:static !important;
  inset:auto !important;
  left:auto !important;
  width:auto !important;
  height:auto !important;
  overflow:hidden !important;
}

@media(max-width:1400px){
  html body.dashboard-command-premium #dashboard > .stats-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:900px){
  html body.dashboard-command-premium #dashboard{
    padding:14px !important;
  }

  html body.dashboard-command-premium #dashboard > .stats-grid,
  html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:minmax(0,1fr) !important;
  }

  html body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
  html body.dashboard-command-premium #dashboard .dashboard-map-preview-panel{
    min-height:380px !important;
    height:380px !important;
  }
}

/* =========================================================
   Executive dashboard v2.3 - legacy module quarantine
   If cached legacy code adds dashboard-operational-clean, it
   must not be allowed to squeeze the premium dashboard.
   ========================================================= */
html body.dashboard-command-premium.dashboard-operational-clean #dashboard,
html body.dashboard-command-premium.dashboard-operational-clean #dashboard.page,
html body.dashboard-command-premium.dashboard-operational-clean #dashboard.page.active{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-auto-flow:row !important;
  gap:20px !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  padding:22px !important;
  overflow:visible !important;
  transform:none !important;
}

html body.dashboard-command-premium.dashboard-operational-clean #dashboard > .stats-grid,
html body.dashboard-command-premium.dashboard-operational-clean #dashboard > .dashboard-map-card,
html body.dashboard-command-premium.dashboard-operational-clean #dashboard > .dashboard-card-map,
html body.dashboard-command-premium.dashboard-operational-clean #dashboard > #dashboardCommandAnalytics{
  grid-column:1 / -1 !important;
  justify-self:stretch !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  position:relative !important;
  left:auto !important;
  right:auto !important;
  margin:0 !important;
  transform:none !important;
}

html body.dashboard-command-premium.dashboard-operational-clean #dashboard > .stats-grid{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:20px !important;
}

html body.dashboard-command-premium.dashboard-operational-clean #dashboard > #dashboardOpsPanel,
html body.dashboard-command-premium.dashboard-operational-clean #dashboard > .grid-2,
html body.dashboard-command-premium.dashboard-operational-clean #dashboard > .dashboard-insights-grid,
html body.dashboard-command-premium.dashboard-operational-clean #dashboard > .dashboard-quick-card,
html body.dashboard-command-premium.dashboard-operational-clean #dashboard > .dashboard-card-radar,
html body.dashboard-command-premium.dashboard-operational-clean #dashboardTopHero{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
  position:static !important;
  inset:auto !important;
  left:auto !important;
  width:auto !important;
  height:auto !important;
  overflow:hidden !important;
}

/* =========================================================
   Executive dashboard v2.4 - full-span guard
   If any late legacy rule restores a 12-column grid, premium
   sections must span the whole row instead of the first column.
   ========================================================= */
html body.dashboard-command-premium #dashboard > .stats-grid,
html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map,
html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
  grid-column:1 / -1 !important;
  justify-self:stretch !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
}

html body.dashboard-command-premium #dashboard > .stats-grid{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}

html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map{
  display:flex !important;
  flex-direction:column !important;
}

/* =========================================================
   Executive dashboard v2.5 - late inline guard
   Legacy map scripts used inline styles after load. Keep every
   premium dashboard section full-width in grid or flex contexts.
   ========================================================= */
html body.dashboard-command-premium #appShell,
html body.dashboard-command-premium #appShell > .main,
html body.dashboard-command-premium #appShell .content.premium-content{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  box-sizing:border-box !important;
}

html body.dashboard-command-premium #dashboard{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-auto-columns:minmax(0,1fr) !important;
}

html body.dashboard-command-premium #dashboard > .stats-grid,
html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map,
html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
  grid-column:1 / -1 !important;
  flex:0 0 100% !important;
  inline-size:100% !important;
  max-inline-size:none !important;
  justify-self:stretch !important;
  align-self:start !important;
}

/* =========================================================
   Executive dashboard v2.6 - shell width lock
   The premium dashboard must own the full main column even when
   old shell/layout styles are applied late by legacy modules.
   ========================================================= */
html.dashboard-command-premium-mode body #appShell:not(.hidden),
html body.dashboard-command-premium #appShell:not(.hidden){
  display:grid !important;
  grid-template-columns:248px minmax(0,1fr) !important;
  width:100vw !important;
  max-width:100vw !important;
  min-width:0 !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}

html.dashboard-command-premium-mode body #appShell > .main,
html body.dashboard-command-premium #appShell > .main{
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  overflow-x:hidden !important;
  box-sizing:border-box !important;
}

html.dashboard-command-premium-mode body #appShell .content.premium-content,
html body.dashboard-command-premium #appShell .content.premium-content{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

html.dashboard-command-premium-mode body #dashboard,
html body.dashboard-command-premium #dashboard{
  width:100% !important;
  inline-size:100% !important;
  min-width:0 !important;
  max-width:none !important;
  contain:none !important;
}

@media(max-width:900px){
  html.dashboard-command-premium-mode body #appShell:not(.hidden),
  html body.dashboard-command-premium #appShell:not(.hidden){
    grid-template-columns:minmax(0,1fr) !important;
  }
}

/* =========================================================
   Executive dashboard v2.7 - definitive full-width lock
   The Painel must always fill the available main column. This
   guard wins over old grid/inline styles that can run after load.
   ========================================================= */
html.dashboard-command-premium-mode body.dashboard-command-premium,
html.dashboard-command-premium-mode body.dashboard-command-premium *{
  box-sizing:border-box;
}

html.dashboard-command-premium-mode body.dashboard-command-premium #appShell:not(.hidden),
html body.dashboard-command-premium #appShell:not(.hidden){
  display:grid !important;
  grid-template-columns:248px minmax(0,1fr) !important;
  justify-content:stretch !important;
  align-items:stretch !important;
  gap:0 !important;
  width:100vw !important;
  max-width:100vw !important;
  min-width:0 !important;
  overflow-x:hidden !important;
  transform:none !important;
}

html.dashboard-command-premium-mode body.dashboard-command-premium #appShell > .main,
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell main.main,
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell .main-content,
html body.dashboard-command-premium #appShell > .main,
html body.dashboard-command-premium #appShell main.main,
html body.dashboard-command-premium #appShell .main-content{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  width:100% !important;
  inline-size:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:0 !important;
  overflow-x:hidden !important;
  transform:none !important;
}

html.dashboard-command-premium-mode body.dashboard-command-premium #appShell .content.premium-content,
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell .main > .content,
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell .main-content > .content,
html body.dashboard-command-premium #appShell .content.premium-content,
html body.dashboard-command-premium #appShell .main > .content,
html body.dashboard-command-premium #appShell .main-content > .content{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  width:100% !important;
  inline-size:100% !important;
  max-width:none !important;
  min-width:0 !important;
  overflow:visible !important;
  transform:none !important;
}

html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard,
html.dashboard-command-premium-mode body.dashboard-command-premium section#dashboard.page,
html.dashboard-command-premium-mode body.dashboard-command-premium section#dashboard.page.active,
html body.dashboard-command-premium #dashboard,
html body.dashboard-command-premium section#dashboard.page,
html body.dashboard-command-premium section#dashboard.page.active{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-auto-columns:minmax(0,1fr) !important;
  grid-auto-flow:row !important;
  justify-content:stretch !important;
  align-items:start !important;
  justify-self:stretch !important;
  align-self:stretch !important;
  width:100% !important;
  inline-size:100% !important;
  max-width:none !important;
  min-width:0 !important;
  flex:1 1 auto !important;
  margin:0 !important;
  padding:22px !important;
  gap:20px !important;
  overflow:visible !important;
  transform:none !important;
  contain:none !important;
}

html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > .stats-grid,
html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > .dashboard-map-card,
html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > .dashboard-card-map,
html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics,
html body.dashboard-command-premium #dashboard > .stats-grid,
html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map,
html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  grid-column:1 / -1 !important;
  justify-self:stretch !important;
  align-self:start !important;
  width:100% !important;
  inline-size:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  transform:none !important;
}

html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > .stats-grid,
html body.dashboard-command-premium #dashboard > .stats-grid{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:20px !important;
}

html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > .stats-grid > .stat,
html body.dashboard-command-premium #dashboard > .stats-grid > .stat{
  width:auto !important;
  inline-size:auto !important;
  max-width:none !important;
  min-width:0 !important;
  flex:1 1 auto !important;
  transform:none !important;
}

html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > .dashboard-map-card,
html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > .dashboard-card-map,
html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard .dashboard-map-card.dashboard-card-map,
html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map,
html body.dashboard-command-premium #dashboard .dashboard-map-card.dashboard-card-map{
  display:flex !important;
  flex-direction:column !important;
  min-height:560px !important;
}

html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard #dashboardMiniMap,
html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard .dashboard-map-preview-panel,
html body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
html body.dashboard-command-premium #dashboard #dashboardMiniMap,
html body.dashboard-command-premium #dashboard .dashboard-map-preview-panel{
  width:100% !important;
  inline-size:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:500px !important;
  transform:none !important;
}

html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics,
html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:20px !important;
}

@media(max-width:1200px){
  html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > .stats-grid,
  html body.dashboard-command-premium #dashboard > .stats-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics,
  html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:900px){
  html.dashboard-command-premium-mode body.dashboard-command-premium #appShell:not(.hidden),
  html body.dashboard-command-premium #appShell:not(.hidden){
    grid-template-columns:minmax(0,1fr) !important;
  }

  html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard,
  html body.dashboard-command-premium #dashboard{
    padding:16px !important;
  }
}

@media(max-width:760px){
  html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > .stats-grid,
  html body.dashboard-command-premium #dashboard > .stats-grid,
  html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics,
  html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:minmax(0,1fr) !important;
  }
}

/* =========================================================
   Executive dashboard v2.8 - final stable width lock
   Keeps Painel full-width from first paint; legacy hidden
   sections never become visible as 1px columns.
   ========================================================= */
html.dashboard-command-premium-mode,
html.dashboard-command-premium-mode body.dashboard-command-premium,
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell,
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell *{
  box-sizing:border-box !important;
}
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell:not(.hidden),
html body.dashboard-command-premium #appShell:not(.hidden){
  display:grid !important;
  grid-template-columns:248px minmax(0,1fr) !important;
  width:100vw !important;
  max-width:100vw !important;
  min-width:0 !important;
  overflow:hidden !important;
  justify-content:stretch !important;
  align-items:stretch !important;
  transform:none !important;
}
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell > .main,
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell main.main,
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell .main-content,
html body.dashboard-command-premium #appShell > .main,
html body.dashboard-command-premium #appShell main.main,
html body.dashboard-command-premium #appShell .main-content{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  width:100% !important;
  inline-size:100% !important;
  min-width:0 !important;
  max-width:none !important;
  overflow-x:hidden !important;
  transform:none !important;
}
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell .content.premium-content,
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell .main > .content,
html.dashboard-command-premium-mode body.dashboard-command-premium #appShell .main-content > .content,
html body.dashboard-command-premium #appShell .content.premium-content,
html body.dashboard-command-premium #appShell .main > .content,
html body.dashboard-command-premium #appShell .main-content > .content{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  width:100% !important;
  inline-size:100% !important;
  min-width:0 !important;
  max-width:none !important;
  overflow:visible !important;
  transform:none !important;
}
html.dashboard-command-premium-mode body.dashboard-command-premium section#dashboard.page,
html.dashboard-command-premium-mode body.dashboard-command-premium section#dashboard.page.active,
html.dashboard-command-premium-mode body.dashboard-command-premium #dashboard,
html body.dashboard-command-premium section#dashboard.page,
html body.dashboard-command-premium section#dashboard.page.active,
html body.dashboard-command-premium #dashboard{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-auto-columns:minmax(0,1fr) !important;
  grid-auto-flow:row !important;
  align-items:stretch !important;
  justify-items:stretch !important;
  width:100% !important;
  inline-size:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:22px !important;
  gap:20px !important;
  overflow:visible !important;
  transform:none !important;
  contain:none !important;
}
html body.dashboard-command-premium #dashboard > .stats-grid,
html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map,
html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
  grid-column:1 / -1 !important;
  justify-self:stretch !important;
  align-self:stretch !important;
  width:100% !important;
  inline-size:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  transform:none !important;
}
html body.dashboard-command-premium #dashboard > .stats-grid{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:20px !important;
}
html body.dashboard-command-premium #dashboard > .stats-grid > .stat{
  width:auto !important;
  inline-size:auto !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:100px !important;
  height:100px !important;
  margin:0 !important;
  transform:none !important;
}
html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map,
html body.dashboard-command-premium #dashboard .dashboard-map-card.dashboard-card-map{
  display:flex !important;
  flex-direction:column !important;
  min-height:560px !important;
  height:auto !important;
  overflow:hidden !important;
}
html body.dashboard-command-premium #dashboard #dashboardMapPreviewPanel,
html body.dashboard-command-premium #dashboard #dashboardMiniMap,
html body.dashboard-command-premium #dashboard .dashboard-map-preview-panel{
  width:100% !important;
  inline-size:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:390px !important;
  transform:none !important;
}
html body.dashboard-command-premium #dashboard > #dashboardOpsPanel,
html body.dashboard-command-premium #dashboard > .grid-2,
html body.dashboard-command-premium #dashboard > .dashboard-insights-grid,
html body.dashboard-command-premium #dashboard > .dashboard-quick-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-radar,
html body.dashboard-command-premium #dashboard > .dashboard-card-before,
html body.dashboard-command-premium #dashboard > .dashboard-card-recent,
html body.dashboard-command-premium #dashboardTopHero{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
  position:static !important;
  inset:auto !important;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  max-width:none !important;
  overflow:hidden !important;
}
@media(max-width:1200px){
  html body.dashboard-command-premium #dashboard > .stats-grid,
  html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:900px){
  html.dashboard-command-premium-mode body.dashboard-command-premium #appShell:not(.hidden),
  html body.dashboard-command-premium #appShell:not(.hidden){
    grid-template-columns:minmax(0,1fr) !important;
  }
  html body.dashboard-command-premium #dashboard{
    padding:16px !important;
  }
}
@media(max-width:760px){
  html body.dashboard-command-premium #dashboard > .stats-grid,
  html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:minmax(0,1fr) !important;
  }
}

/* =========================================================
   Executive dashboard v2.9 - immutable html scope
   The html mode flag is installed in <head>, before auth/menu scripts.
   It cannot be lost when body classes are synchronized after mount.
   ========================================================= */
html.dashboard-command-premium-mode body #appShell:not(.hidden){
  display:grid !important;
  grid-template-columns:248px minmax(0,1fr) !important;
  width:100vw !important;
  max-width:100vw !important;
  min-width:0 !important;
  overflow-x:hidden !important;
}
html.dashboard-command-premium-mode body #appShell > .main,
html.dashboard-command-premium-mode body #appShell .content.premium-content{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  width:100% !important;
  inline-size:100% !important;
  min-width:0 !important;
  max-width:none !important;
}
html.dashboard-command-premium-mode body #dashboard,
html.dashboard-command-premium-mode body section#dashboard.page,
html.dashboard-command-premium-mode body section#dashboard.page.active{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-auto-columns:minmax(0,1fr) !important;
  grid-auto-flow:row !important;
  width:100% !important;
  inline-size:100% !important;
  min-width:0 !important;
  max-width:none !important;
  justify-items:stretch !important;
  align-items:stretch !important;
  margin:0 !important;
  transform:none !important;
}
html.dashboard-command-premium-mode body #dashboard > .stats-grid,
html.dashboard-command-premium-mode body #dashboard > .dashboard-map-card,
html.dashboard-command-premium-mode body #dashboard > .dashboard-card-map,
html.dashboard-command-premium-mode body #dashboard > #dashboardCommandAnalytics{
  grid-column:1 / -1 !important;
  width:100% !important;
  inline-size:100% !important;
  min-width:0 !important;
  max-width:none !important;
  justify-self:stretch !important;
  align-self:stretch !important;
  transform:none !important;
}
html.dashboard-command-premium-mode body #dashboard > .stats-grid{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:20px !important;
}
html.dashboard-command-premium-mode body #dashboard > .dashboard-map-card,
html.dashboard-command-premium-mode body #dashboard > .dashboard-card-map{
  display:flex !important;
  flex-direction:column !important;
  min-height:560px !important;
}
html.dashboard-command-premium-mode body #dashboard #dashboardMapPreviewPanel,
html.dashboard-command-premium-mode body #dashboard #dashboardMiniMap{
  width:100% !important;
  inline-size:100% !important;
  min-width:0 !important;
  max-width:none !important;
}
@media(max-width:1200px){
  html.dashboard-command-premium-mode body #dashboard > .stats-grid,
  html.dashboard-command-premium-mode body #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:900px){
  html.dashboard-command-premium-mode body #appShell:not(.hidden){
    grid-template-columns:minmax(0,1fr) !important;
  }
}
@media(max-width:760px){
  html.dashboard-command-premium-mode body #dashboard > .stats-grid,
  html.dashboard-command-premium-mode body #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:minmax(0,1fr) !important;
  }
}

/* =========================================================
   Executive dashboard v3.0 - stable vertical root
   The root dashboard no longer uses the legacy shared grid. Older dashboard
   CSS/JS can briefly rewrite that grid into narrow tracks; a flex column root
   keeps the Painel full-width while inner KPI/analytics sections remain grids.
   ========================================================= */
html.dashboard-command-premium-mode body #dashboard,
html.dashboard-command-premium-mode body section#dashboard.page,
html.dashboard-command-premium-mode body section#dashboard.page.active,
html body.dashboard-command-premium #dashboard,
html body.dashboard-command-premium section#dashboard.page,
html body.dashboard-command-premium section#dashboard.page.active{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:20px !important;
  width:100% !important;
  inline-size:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:22px !important;
  overflow:visible !important;
  transform:none !important;
  contain:none !important;
  box-sizing:border-box !important;
}

html.dashboard-command-premium-mode body #dashboard > .stats-grid,
html body.dashboard-command-premium #dashboard > .stats-grid{
  flex:0 0 auto !important;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:20px !important;
  width:100% !important;
  inline-size:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

html.dashboard-command-premium-mode body #dashboard > .dashboard-map-card,
html.dashboard-command-premium-mode body #dashboard > .dashboard-card-map,
html body.dashboard-command-premium #dashboard > .dashboard-map-card,
html body.dashboard-command-premium #dashboard > .dashboard-card-map{
  flex:0 0 auto !important;
  width:100% !important;
  inline-size:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:560px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

html.dashboard-command-premium-mode body #dashboard > #dashboardCommandAnalytics,
html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
  flex:0 0 auto !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:20px !important;
  width:100% !important;
  inline-size:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

@media(max-width:1200px){
  html.dashboard-command-premium-mode body #dashboard > .stats-grid,
  html body.dashboard-command-premium #dashboard > .stats-grid,
  html.dashboard-command-premium-mode body #dashboard > #dashboardCommandAnalytics,
  html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:760px){
  html.dashboard-command-premium-mode body #dashboard,
  html body.dashboard-command-premium #dashboard{
    padding:16px !important;
  }
  html.dashboard-command-premium-mode body #dashboard > .stats-grid,
  html body.dashboard-command-premium #dashboard > .stats-grid,
  html.dashboard-command-premium-mode body #dashboard > #dashboardCommandAnalytics,
  html body.dashboard-command-premium #dashboard > #dashboardCommandAnalytics{
    grid-template-columns:minmax(0,1fr) !important;
  }
}
