/* Etapa 1: scoped MAP shell + Inicio. Operational modules keep their styles. */
body #appShell {--home-accent:#1affe4;--home-text:#14212b;--home-muted:#536171;--home-border:#e5e9ed}
body #appShell .sidebar,body.sidebar-collapsed #appShell .sidebar {background:#131e26;border-right:0}
body #appShell .sidebar-brand,body.sidebar-collapsed #appShell .sidebar-brand {background:#131e26;border:0;height:88px;min-height:88px;padding:0!important;align-items:center}
body #appShell .sidebar-brand-logo-wrap {background:transparent;border-radius:0;width:136px!important;transform:translateY(-20px)!important}
body #appShell .sidebar-brand-logo {width:136px!important;max-width:100%!important}
body.sidebar-collapsed #appShell .sidebar-brand-logo-wrap {width:26px!important}
body #appShell .sidebar-section-title {color:#a3b2bc;font-weight:400;letter-spacing:.08em}
body #appShell .sidebar-section+.sidebar-section {border-color:#2b3740}
body #appShell .sidebar-item {position:relative;min-height:40px;margin-block:3px;color:#edf2f5;background:transparent;box-shadow:none;border-radius:6px;font-weight:400}
body #appShell .sidebar-item .sidebar-icon {color:inherit}
body #appShell .sidebar-item:hover {background:#25333d;color:#fff}
body #appShell .sidebar-item.active {background:#25343c;color:var(--home-accent);box-shadow:none}
body #appShell .sidebar-item.active::before {display:block;content:"";position:absolute;inset:7px auto 7px 0;width:3px;background:var(--home-accent);border-radius:2px}
body #appShell .sidebar-item-disabled {color:#8997a2}
body #appShell .topbar {background:#fff;gap:20px}
body #appShell .topbar-right {margin-left:auto;flex-shrink:0}
body #appShell .dbx-global-search {display:flex;align-items:center;gap:10px;flex:1;max-width:700px;min-width:0;border:1px solid var(--home-border);border-radius:8px;padding:5px 12px;height:34px;box-sizing:border-box;color:var(--home-muted)}
body #appShell .dbx-global-search svg {width:19px;height:19px;flex-shrink:0}
body #appShell .dbx-global-search input {width:100%;min-width:0;height:22px;padding:0;background:transparent;border:0;box-shadow:none;font:400 13px var(--sans);color:var(--home-muted);opacity:1;cursor:default}
body #appShell .dbx-global-search input::placeholder {color:#647383;opacity:1}
body #appShell .topbar-icon-badge {background:#1affe4;color:#14212b}
body #appShell #topbarAvatar {border-radius:50%!important;background:#b3ebee!important;color:#13232c!important}
body #appShell .dbx-user-menu-wrap {gap:10px}
body #appShell .dbx-topbar-identity {display:flex;flex-direction:column;gap:2px;max-width:160px;min-width:0;font-size:12px;line-height:1.3;color:var(--home-text)}
body #appShell .dbx-topbar-identity span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body #appShell #topbarRol {font-size:10px;color:var(--home-muted)}
body #appShell .main-content {background:#f8fafb}
body #sec-dashboard .dbx-home-legacy[hidden] {display:none!important}
body #sec-dashboard .dbx-home {font-family:var(--sans);color:var(--home-text);min-width:0}
body #sec-dashboard .dbx-home-header {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
body #sec-dashboard .dbx-home h1 {font-family:inherit;font-size:28px;line-height:1.25;font-weight:550;letter-spacing:-.025em;margin:0 0 7px}
body #sec-dashboard .dbx-home-header p {margin:0;color:var(--home-muted);font-size:14px}
body #sec-dashboard .dbx-home h2 {font-family:inherit;font-size:14px;font-weight:500;line-height:1.45;margin:0 0 12px;color:var(--home-text)}
body #sec-dashboard .dbx-home-muted {font-size:11px;font-weight:400;line-height:1.5;color:var(--home-muted);margin:4px 0 12px}
body #sec-dashboard .dbx-home-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
body #sec-dashboard .dbx-home-card {min-width:0;background:#fff;border:1px solid var(--home-border);border-radius:10px;padding:20px;box-shadow:0 2px 6px #15233303}
body #sec-dashboard .dbx-home-metric {display:flex;align-items:flex-start;gap:14px;min-height:180px}
body #sec-dashboard .dbx-home-metric-content {min-width:0}
body #sec-dashboard .dbx-home-metric h2 {margin:0 0 8px}
body #sec-dashboard .dbx-home-value {font-size:42px;font-weight:500;line-height:1.1;letter-spacing:-.03em;margin-bottom:12px}
body #sec-dashboard .dbx-home-icon {display:flex;align-items:center;justify-content:center;flex:0 0 48px;height:52px;border-radius:12px;background:#e1f7ef;color:#159b80}
body #sec-dashboard .dbx-home-icon.blue {background:#e5f0ff;color:#1675ee}
body #sec-dashboard .dbx-home-icon.orange {background:#fff0df;color:#ed7a16}
body #sec-dashboard .dbx-home-icon.violet {background:#eee7ff;color:#7344d9}
body #sec-dashboard .dbx-home-icon svg {width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body #sec-dashboard button.dbx-home-link {font:400 12px var(--sans);line-height:1.4;padding:5px 0;background:transparent;border:0;box-shadow:none;color:#007e83;cursor:pointer;text-align:left;white-space:normal}
body #sec-dashboard button.dbx-home-link:hover {color:#005d61;text-decoration:underline}
body #sec-dashboard button.dbx-home-link:focus-visible {outline:2px solid #007e83;outline-offset:3px}
body #sec-dashboard .dbx-home-overview {display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:16px;margin-bottom:20px}
body #sec-dashboard .dbx-home-unavailable {min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--home-muted);gap:8px}
body #sec-dashboard .dbx-home-unavailable p {font-size:14px;margin:0}
body #sec-dashboard .dbx-home-unavailable span {font-size:12px;line-height:1.6;max-width:250px}
body #sec-dashboard #inicioAttention {max-height:290px;overflow:auto;scrollbar-width:thin;padding-right:4px}
body #sec-dashboard .dbx-home-distribution {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px}
body #sec-dashboard .dbx-home-donut {position:relative;width:148px;flex:0 0 148px;height:148px}
body #sec-dashboard .dbx-home-donut svg {display:block;width:100%;height:100%}
body #sec-dashboard .dbx-home-donut-total {position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:27px;font-weight:500;pointer-events:none}
body #sec-dashboard .dbx-home-donut-total small {font-size:11px;font-weight:400;color:var(--home-muted)}
body #sec-dashboard .dbx-home-legend {flex:1 1 140px;min-width:0}
body #sec-dashboard .dbx-home-state-label {display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:8px;font-size:11px;line-height:1.4;margin:0 0 9px;overflow-wrap:anywhere}
body #sec-dashboard .dbx-home-legend-dot {width:8px;height:8px;border-radius:50%}
body #sec-dashboard .dbx-home-chart-note {margin-top:14px;font-size:10px}
body #sec-dashboard .dbx-home-bars {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;padding-top:12px}
body #sec-dashboard .dbx-home-bar-column {min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10px;color:var(--home-muted)}
body #sec-dashboard .dbx-home-bar-track {display:flex;align-items:flex-end;justify-content:center;height:165px;width:100%;border-bottom:1px solid var(--home-border);background:repeating-linear-gradient(to top,transparent 0,transparent 40px,#eef2f4 41px,transparent 42px)}
body #sec-dashboard .dbx-home-bar {width:65%;max-width:26px;background:#12b8b0;border-radius:3px 3px 0 0}
body #sec-dashboard .dbx-home-bar-value {color:var(--home-text);font-variant-numeric:tabular-nums}
body #sec-dashboard .dbx-home-alert {display:flex;align-items:center;gap:10px;padding:9px 10px;margin:0 0 8px;font-size:12px;line-height:1.5;border:1px solid var(--home-border);border-radius:7px;background:#fafbfc;overflow-wrap:anywhere}
body #sec-dashboard .dbx-home-alert p {margin:0;min-width:0}
body #sec-dashboard .dbx-home-alert-marker {flex:0 0 26px;height:28px;display:flex;align-items:center;justify-content:center;background:#fff3dc;color:#956200;border-radius:6px;font-size:16px}
body #sec-dashboard .dbx-home-alert.danger .dbx-home-alert-marker {background:#fff0f1;color:#be3a4f}
body #sec-dashboard .dbx-home-event {display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--home-border);font-size:12px;overflow-wrap:anywhere}
body #sec-dashboard .dbx-home-event-marker {display:flex;align-items:center;justify-content:center;width:34px;height:36px;border-radius:8px;background:#e5f6f3;color:#188c80;font-size:20px}
body #sec-dashboard .dbx-home-event-title {font-size:12px;color:var(--home-text);margin-bottom:3px}
body #sec-dashboard .dbx-home-event:last-child {border-bottom:0}
body #sec-dashboard .dbx-home-event .dbx-home-muted {margin:0}
@media(max-width:1200px){body #sec-dashboard .dbx-home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body #sec-dashboard .dbx-home-overview{grid-template-columns:repeat(2,minmax(0,1fr))}body #sec-dashboard .dbx-home-overview>:first-child{grid-column:1/-1}body #sec-dashboard .dbx-home-unavailable{min-height:120px}body #appShell .dbx-topbar-identity{max-width:100px}}
@media(max-width:760px){body #appShell .topbar{gap:8px;padding-inline:10px}body #appShell .dbx-topbar-identity{display:none}body #appShell .dbx-global-search{padding-inline:8px}body #sec-dashboard .dbx-home-overview{grid-template-columns:1fr}body #sec-dashboard .dbx-home-event{grid-template-columns:1fr 1fr;gap:6px}body #sec-dashboard .dbx-home-card{padding:16px}body #sec-dashboard .dbx-home h1{font-size:24px}}
@media(max-width:760px){body #sec-dashboard .dbx-home-metrics{grid-template-columns:1fr}}
@media(max-width:480px){body #sec-dashboard .dbx-home-metric{min-height:150px}body #appShell .dbx-global-search svg{display:none}body #appShell .dbx-global-search input{font-size:11px}}
@media(max-width:480px){body #sec-dashboard .dbx-home-header{align-items:flex-start;flex-direction:column}body #sec-dashboard .dbx-home h1{overflow-wrap:anywhere}}
@media(max-width:760px){body #sec-dashboard .dbx-home-event{grid-template-columns:34px minmax(0,1fr);gap:8px 12px}body #sec-dashboard .dbx-home-event time,body #sec-dashboard .dbx-home-event button{grid-column:2}body #sec-dashboard .dbx-home-bars{gap:5px}}
