/* R12.11 inicial: camada visual. Sem alteração de dados, rotas ou permissões. */
html:not([data-theme="dark"]) #app-shell {
  --bg:#f7f7f8; --card:#fff; --text:#344047; --muted:#69747c; --line:#e0e3e6;
  --dimi-ui-bg:#f7f7f8; --dimi-ui-radius:8px;
  --dimi-audit-surface:#fff; --dimi-audit-surface-2:#f7f7f8;
  --dimi-audit-text:#344047; --dimi-audit-text-2:#465159;
  --dimi-audit-muted:#69747c; --dimi-audit-border:#e0e3e6;
  --dimi-audit-table-head:#f6f7f8; --dimi-audit-table-zebra:#fafafa;
}
html:not([data-theme="dark"]) #app-shell .sidebar {
  background:#f4f4f5!important;color:#485057!important;border-right:1px solid #e0e3e6!important;
}
html:not([data-theme="dark"]) #app-shell .dimi674-platform-brand {
  background:#0e1e28!important;border-radius:6px;padding:12px!important;
}
html:not([data-theme="dark"]) #app-shell .shop-brand-trigger {
  background:#0e1e28!important;border:0!important;border-radius:7px!important;
}
html:not([data-theme="dark"]) #app-shell #main-nav {gap:2px!important;}
html:not([data-theme="dark"]) #app-shell .nav-item {
  color:#4a5258!important;font-weight:500!important;border-radius:4px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  padding:11px 12px!important;transform:none!important;
}
html:not([data-theme="dark"]) #app-shell .nav-item:hover,
html:not([data-theme="dark"]) #app-shell .nav-item.active {
  color:#167447!important;background:#e5ece8!important;box-shadow:inset 3px 0 #167447!important;
}
html:not([data-theme="dark"]) #app-shell .stock-sidebar-subnav,
html:not([data-theme="dark"]) #app-shell .product-side-nested {
  background:transparent!important;border-left-color:#d4dad6!important;
}
html:not([data-theme="dark"]) #app-shell .stock-sidebar-subnav button,
html:not([data-theme="dark"]) #app-shell .product-side-nested button {
  color:#555f65!important;background:transparent!important;font-weight:500!important;
}
html:not([data-theme="dark"]) #app-shell .stock-sidebar-subnav button:hover,
html:not([data-theme="dark"]) #app-shell .product-side-nested button:hover,
html:not([data-theme="dark"]) #app-shell .stock-sidebar-subnav button.active {
  color:#167447!important;background:#e5ece8!important;
}
html:not([data-theme="dark"]) #app-shell .sidebar-footer {border-top-color:#d9dfe1!important;}
html:not([data-theme="dark"]) #app-shell .sidebar-footer #current-user-mini {color:#555f65!important;}
html:not([data-theme="dark"]) #app-shell .sidebar-footer .btn {color:#485057!important;border-color:#cdd5d8!important;}
html:not([data-theme="dark"]) #app-shell .main {background:#f7f7f8!important;}
html:not([data-theme="dark"]) #app-shell .topbar {
  background:#0e1e28!important;color:#fff!important;border:0!important;border-radius:0!important;
  margin:0!important;box-shadow:none!important;backdrop-filter:none!important;
}
html:not([data-theme="dark"]) #app-shell .topbar h2,
html:not([data-theme="dark"]) #app-shell .topbar #page-title {color:#fff!important;}
html:not([data-theme="dark"]) #app-shell .topbar #page-subtitle {color:#b7c4cb!important;}
html:not([data-theme="dark"]) #app-shell .topbar-user-btn,
html:not([data-theme="dark"]) #app-shell .d650-icon,
html:not([data-theme="dark"]) #app-shell .dimi7969-header-icon,
html:not([data-theme="dark"]) #app-shell .dimi674-top-customize {
  background:#233540!important;color:#fff!important;border-color:#40515c!important;
}
html:not([data-theme="dark"]) #app-shell .card,
html:not([data-theme="dark"]) #app-shell .table-wrap,
html:not([data-theme="dark"]) #app-shell .gc-section,
html:not([data-theme="dark"]) #app-shell .v4-box,
html:not([data-theme="dark"]) #app-shell .v4-card,
html:not([data-theme="dark"]) #app-shell .panel {
  border-radius:8px!important;border-color:#e0e3e6!important;box-shadow:0 1px 3px rgba(0,0,0,.025)!important;
}
html:not([data-theme="dark"]) #app-shell .dashboard-kpi-cards .card:before {display:none!important;}
html:not([data-theme="dark"]) #app-shell .metric-value {color:#283239!important;font-weight:650!important;}
html:not([data-theme="dark"]) #app-shell .btn.primary {
  background:#167447!important;box-shadow:none!important;color:#fff!important;
}
html:not([data-theme="dark"]) #app-shell .btn.primary:hover {background:#125c39!important;}
html:not([data-theme="dark"]) #app-shell .btn {border-radius:5px!important;}
@media(min-width:1101px) {
  #app-shell{grid-template-columns:238px minmax(0,1fr)!important;}
}
@media print {
  #app-shell .sidebar,#app-shell .topbar{display:none!important;}
  #app-shell{display:block!important;}
}

/* Correção localizada de contraste: cabeçalho e rodapé lateral R12.11. */
html:root #app-shell .topbar #current-user-top-name,
html:root #app-shell .topbar .topbar-user-chevron,
html:root #app-shell .topbar .d650-ai small {
  color:#f1f5f9!important;
}
html:root #app-shell .topbar #current-user-top-role {
  color:#dce7ef!important;
}
html:root #app-shell .topbar .d650-icon .dimi-v787-icon,
html:root #app-shell .topbar #dimi674-top-customize .dimi-v787-icon,
html:root #app-shell .topbar .dimi7969-header-icon .dimi-v787-icon {
  color:#f1f5f9!important;opacity:1!important;
}
html:not([data-theme="dark"]) #app-shell .sidebar-footer .theme-card-title,
html:not([data-theme="dark"]) #app-shell .sidebar-footer #current-user-mini .current-user-mini-copy b {
  color:#334155!important;
}
html:not([data-theme="dark"]) #app-shell .sidebar-footer #current-user-mini .current-user-mini-copy span {
  color:#526170!important;
}
html:not([data-theme="dark"]) #app-shell .sidebar-footer #dimi674-sidebar-customize {
  color:#166534!important;background:#e5f3eb!important;border-color:#b5d8c2!important;
}
html:not([data-theme="dark"]) #app-shell .sidebar-footer #dimi674-sidebar-customize:hover {
  color:#166534!important;background:#d6ebde!important;
}
