/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-jyv2nvgo2w] { display: flex; height: 100vh; overflow: hidden; }

.sb-inner[b-jyv2nvgo2w] { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

.sb-brand[b-jyv2nvgo2w] {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.15);
    min-height: 60px; flex-shrink: 0; transition: padding .2s ease;
}
.sb-brand--collapsed[b-jyv2nvgo2w] { justify-content: center; padding: 18px 0; }
.sb-brand-icon[b-jyv2nvgo2w] {
    font-size: 1.3rem; flex-shrink: 0; width: 24px; text-align: center;
    line-height: 1; color: #fff;
}
.sb-brand-name[b-jyv2nvgo2w] {
    font-weight: 700; font-size: 1rem; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: -.2px; text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.sb-footer[b-jyv2nvgo2w] { margin-top: auto; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.12); flex-shrink: 0; }

.sidebar-rail-toggle[b-jyv2nvgo2w] {
    position: absolute; top: 66px; right: -17px; z-index: 4100;
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid #fff; background: #050505; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.sidebar-rail-toggle:hover[b-jyv2nvgo2w] { background: #1f2937; }
.sidebar-rail-toggle i[b-jyv2nvgo2w] { font-size: .8rem; }

/* -- Main content flex column ------------------------------------------ */
.main-content[b-jyv2nvgo2w] { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow: hidden; }
.page-body[b-jyv2nvgo2w] { flex: 1; overflow-y: auto; padding: 24px; }

/* -- Footer ----------------------------------------------------------- */
.app-footer[b-jyv2nvgo2w] {
    height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 24px; font-size: 11px; color: #64748b;
    border-top: 1px solid var(--border); background: #f8fafc;
}
.footer-sep[b-jyv2nvgo2w] { color: #cbd5e1; }
/* [PP-SELLO-VERSION] Legible sin gritar: quien lo busca lo encuentra, quien no, no lo nota. */
.footer-build[b-jyv2nvgo2w] { color: #94a3b8; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.footer-powered[b-jyv2nvgo2w] { color: #1976d2; }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.sb-nav[b-0j90m6tuxy] {
    display: flex; flex-direction: column;
    padding: 6px 0; overflow-y: auto; overflow-x: hidden;
    flex: 1;
}
/* Scrollbar discreto */
.sb-nav[b-0j90m6tuxy]::-webkit-scrollbar { width: 6px; }
.sb-nav[b-0j90m6tuxy]::-webkit-scrollbar-track { background: transparent; }
.sb-nav[b-0j90m6tuxy]::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }
.sb-nav[b-0j90m6tuxy]::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.18); }

/* -- NavLink ---------------------------------------------------------- */
/* ::deep — el <a> lo renderiza el componente NavLink (frontera de componente):
   el CSS aislado no lo alcanza sin esto y las opciones quedan sin estilo. */
.sb-nav[b-0j90m6tuxy]  .sb-link {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 18px; color: #e2e8f0 !important;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    font-size: .86rem; font-weight: 500;
    margin: 1px 0;
    letter-spacing: 0;
}
.sb-nav[b-0j90m6tuxy]  .sb-link:hover {
    background: rgba(255,255,255,.05);
    color: #fff !important;
}
.sb-nav[b-0j90m6tuxy]  .sb-link.active {
    background: rgba(46,163,242,.12) !important;
    border-left-color: var(--primary, #2ea3f2) !important;
    color: #fff !important;
    font-weight: 600;
}
.sb-nav[b-0j90m6tuxy]  .sb-link.active .sb-icon { color: var(--primary, #2ea3f2) !important; opacity: 1 !important; }

/* Home link */
.sb-nav[b-0j90m6tuxy]  .sb-link--home { padding-left: 18px; margin-bottom: 4px; }

/* Icon-only (collapsed) */
.sb-nav[b-0j90m6tuxy]  .sb-link--icon {
    display: flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; padding: 0; margin: 2px auto;
    border-left: none !important; border-radius: 8px;
    box-sizing: border-box;
}
.sb-nav[b-0j90m6tuxy]  .sb-link--icon:hover { background: rgba(255,255,255,.08); }
.sb-nav[b-0j90m6tuxy]  .sb-link--icon.active { background: rgba(46,163,242,.18); }

/* Icon */
.sb-nav[b-0j90m6tuxy]  .sb-icon {
    font-size: .95rem; flex-shrink: 0; width: 22px; text-align: center; line-height: 1;
    color: rgba(255,255,255,.7);
}
.sb-nav[b-0j90m6tuxy]  .sb-link--icon .sb-icon { width: auto; margin: 0; }
.sb-nav[b-0j90m6tuxy]  .sb-label {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1; font-size: .86rem;
}
/* Hojas del árbol: hasta 2 líneas — opciones largas del HAT deben distinguirse
   ("... - En proceso" vs "... - Todas"), no truncarse idénticas. */
.sb-nav[b-0j90m6tuxy]  li > .sb-link .sb-label {
    white-space: normal; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* -- Group (categoría) - estilo DPO uppercase con border-top --------- */
.sb-group[b-0j90m6tuxy] { margin-top: 6px; border-top: 1px solid rgba(255,255,255,.06); }
.sb-group:first-of-type[b-0j90m6tuxy] { border-top: none; }
.sb-group-header[b-0j90m6tuxy] {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 14px 18px 6px; background: none; border: none;
    cursor: pointer; color: rgba(255,255,255,.45);
    font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    transition: color .15s; font-family: inherit;
}
.sb-group-header:hover[b-0j90m6tuxy] { color: rgba(255,255,255,.7); }
.sb-group-label[b-0j90m6tuxy] { flex: 1; text-align: left; }

.sb-chevron[b-0j90m6tuxy] {
    width: 11px; height: 11px; flex-shrink: 0;
    color: rgba(255,255,255,.35);
    transform: rotate(-90deg); transition: transform .2s ease;
}
.sb-chevron--open[b-0j90m6tuxy] { transform: rotate(0deg); }

.sb-items[b-0j90m6tuxy] { list-style: none; padding: 0; margin: 0; }

/* -- Subcarpetas del HAT - variante "accordion" (token layout.menu) -- */
.sb-subfolder[b-0j90m6tuxy] { list-style: none; }
.sb-sub-header[b-0j90m6tuxy] {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 7px 18px;
    background: none; border: none; cursor: pointer;
    color: #cbd5e1; font-size: .84rem; font-weight: 600;
    font-family: inherit; text-align: left;
    transition: color .15s, background .15s;
}
.sb-sub-header:hover[b-0j90m6tuxy] { color: #fff; background: rgba(255,255,255,.04); }
.sb-sub-header .sb-chevron[b-0j90m6tuxy] { width: 10px; height: 10px; flex-shrink: 0; }
.sb-sub-label[b-0j90m6tuxy] {
    flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* -- Cascada flotante del HAT (Design Kit Monet / Isel) --------------- */
/* El sidebar muestra solo los grupos top; los submenús son paneles oscuros
   que se abren a la derecha con :hover, anidados a N niveles. El sidebar
   NO debe recortar los paneles → overflow visible (pocos grupos, sin scroll). */
.sb-nav--fly[b-0j90m6tuxy] { overflow: visible; }

.fly-root[b-0j90m6tuxy] { list-style: none; margin: 0; padding: 4px 0; }
.fly-group[b-0j90m6tuxy] { position: relative; }
.sb-nav[b-0j90m6tuxy]  .fly-group-row,
.fly-group-row[b-0j90m6tuxy] {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px; cursor: default;
    color: #e2e8f0; font-size: .9rem; font-weight: 600;
    text-decoration: none;
}
.fly-group:hover > .fly-group-row[b-0j90m6tuxy],
.sb-nav[b-0j90m6tuxy]  .fly-group:hover > .fly-group-row {
    background: var(--primary, #1e5aa8); color: #fff;
}
.fly-caret[b-0j90m6tuxy] { margin-left: auto; opacity: .55; font-size: .7rem; }

.fly-panel[b-0j90m6tuxy] {
    display: none; position: absolute; left: 100%; top: 0; z-index: 4000;
    min-width: 280px; max-width: 420px;
    background: #161616; border: 1px solid rgba(255,255,255,.08);
    box-shadow: 6px 10px 28px rgba(0,0,0,.45);
    list-style: none; margin: 0; padding: 4px 0;
}
.fly-group:hover > .fly-panel[b-0j90m6tuxy],
.fly-item:hover > .fly-panel[b-0j90m6tuxy] { display: block; }
/* Scroll solo en paneles de hojas (el overflow recortaría cascadas anidadas) */
.fly-panel--scroll[b-0j90m6tuxy] { max-height: 72vh; overflow-y: auto; }
.fly-panel--scroll[b-0j90m6tuxy]::-webkit-scrollbar { width: 6px; }
.fly-panel--scroll[b-0j90m6tuxy]::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

.fly-item[b-0j90m6tuxy] { position: relative; }
.fly-row[b-0j90m6tuxy] {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px; cursor: default;
    color: #e8e8e8; font-size: .875rem; white-space: nowrap;
}
.fly-item:hover > .fly-row[b-0j90m6tuxy] { background: var(--primary, #1e5aa8); color: #fff; }
.fly-text[b-0j90m6tuxy] { flex: 1; overflow: hidden; text-overflow: ellipsis; }

.sb-nav[b-0j90m6tuxy]  .fly-link {
    display: block; padding: 9px 16px;
    color: #e8e8e8 !important; text-decoration: none;
    font-size: .875rem; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.sb-nav[b-0j90m6tuxy]  .fly-link:hover { background: var(--primary, #1e5aa8); color: #fff !important; }
.sb-nav[b-0j90m6tuxy]  .fly-link.active { background: rgba(46,163,242,.22); color: #fff !important; }

/* -- Footer del sidebar (usuario + logout) --------------------------- */
.sb-user-info[b-0j90m6tuxy] {
    margin-top: auto;
    padding: 12px 18px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; color: rgba(255,255,255,.7);
    background: rgba(0,0,0,.18);
}
.sb-user-info--collapsed[b-0j90m6tuxy] {
    justify-content: center; width: 100%;
    padding: 12px 0; box-sizing: border-box;
}
.sb-user-icon[b-0j90m6tuxy] {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #2ea3f2) 0%, var(--primary-light, #47b5ff) 100%);
    color: #fff; font-weight: 700; font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sb-user-name[b-0j90m6tuxy] {
    flex: 1; font-weight: 600;
    color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-logout[b-0j90m6tuxy] {
    color: rgba(252,165,165,.85); text-decoration: none;
    font-size: 11px; font-weight: 600;
    transition: color .15s;
}
.sb-logout:hover[b-0j90m6tuxy] { color: #fca5a5; text-decoration: underline; }
/* /Components/Pages/Home.razor.rz.scp.css */
/* -- Hero ---------------------------------------------------------------- */
.home-hero[b-ddt16x6sn1] {
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, #312e81 100%);
    color: #fff;
    padding: 48px 32px 40px;
    margin: -24px -24px 0;
}
.home-hero-inner[b-ddt16x6sn1] { max-width: 760px; }
.home-muni[b-ddt16x6sn1] {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 1.35rem; font-weight: 700; color: #fff;
    letter-spacing: -0.01em; margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.home-muni-icon[b-ddt16x6sn1] { font-size: 1.2rem; line-height: 1; }
.home-title[b-ddt16x6sn1] {
    font-size: 2rem; font-weight: 700;
    letter-spacing: -0.03em; margin-bottom: 8px;
}
.home-subtitle[b-ddt16x6sn1] {
    font-size: 1rem; color: #c7d2fe;
    margin-bottom: 20px; line-height: 1.5;
}
.home-subtitle strong[b-ddt16x6sn1] { color: #fff; font-weight: 600; }
.home-pills[b-ddt16x6sn1] { display: flex; flex-wrap: wrap; gap: 8px; }
.home-pill[b-ddt16x6sn1] {
    font-size: 0.75rem; font-weight: 600;
    padding: 4px 12px; border-radius: 20px; letter-spacing: 0.02em;
}
.home-pill--primary[b-ddt16x6sn1]  { background: rgba(var(--primary-rgb),.3); color: #c7d2fe; border: 1px solid rgba(99,102,241,.5); }
.home-pill--success[b-ddt16x6sn1]  { background: rgba(16,185,129,.25); color: #6ee7b7; border: 1px solid rgba(16,185,129,.4); }
.home-pill--neutral[b-ddt16x6sn1]  { background: rgba(255,255,255,.10); color: #e0e7ff; border: 1px solid rgba(255,255,255,.15); }
.home-pill--info[b-ddt16x6sn1]     { background: rgba(6,182,212,.25);  color: #67e8f9; border: 1px solid rgba(6,182,212,.4); }
.home-pill--warn[b-ddt16x6sn1]     { background: rgba(245,158,11,.20); color: #fcd34d; border: 1px solid rgba(245,158,11,.35); }

/* -- Hero top row ----------------------------------------------------- */
.home-hero-top[b-ddt16x6sn1] {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 16px;
}
.home-hero-date[b-ddt16x6sn1] {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem; color: #c7d2fe; text-align: right;
    white-space: nowrap;
}
.home-live-dot[b-ddt16x6sn1] {
    width: 8px; height: 8px; border-radius: 50%;
    background: #10b981; flex-shrink: 0;
    animation: livePulse-b-ddt16x6sn1 2s ease-in-out infinite;
}
@keyframes livePulse-b-ddt16x6sn1 {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.3); }
}

/* -- KPI Row ----------------------------------------------------------- */
.home-kpi-row[b-ddt16x6sn1] {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin: 20px 0 0;
}
.home-kpi-card[b-ddt16x6sn1] {
    border-radius: 10px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    border: 1px solid rgba(255,255,255,.06);
    transition: transform .2s;
}
.home-kpi-card:hover[b-ddt16x6sn1] { transform: translateY(-2px); }
.home-kpi--blue[b-ddt16x6sn1]   { background: rgba(25,118,210,.08); border-color: rgba(25,118,210,.2); }
.home-kpi--purple[b-ddt16x6sn1] { background: rgba(157,78,221,.08); border-color: rgba(157,78,221,.2); }
.home-kpi--green[b-ddt16x6sn1]  { background: rgba(46,160,67,.08);  border-color: rgba(46,160,67,.2); }
.home-kpi--orange[b-ddt16x6sn1] { background: rgba(255,152,0,.08);  border-color: rgba(255,152,0,.2); }
.hkc-icon[b-ddt16x6sn1] { font-size: 1.5rem; flex-shrink: 0; }
.hkc-body[b-ddt16x6sn1] { display: flex; flex-direction: column; }
.hkc-num[b-ddt16x6sn1]  {
    font-size: 1.6rem; font-weight: 800; line-height: 1;
    font-family: 'Cascadia Code', 'Consolas', monospace;
}
.hkc-lbl[b-ddt16x6sn1]  { font-size: 0.7rem; color: #8b949e; margin-top: 2px; }

/* -- Sections ------------------------------------------------------------- */
.home-section[b-ddt16x6sn1] { margin-top: 36px; }
.home-section-title[b-ddt16x6sn1] {
    font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-muted); margin-bottom: 16px;
}

/* -- Entity cards --------------------------------------------------------- */
.home-cards-grid[b-ddt16x6sn1] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.home-entity-card[b-ddt16x6sn1] {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    display: flex; align-items: center; gap: 16px;
    cursor: pointer; transition: all .15s ease; box-shadow: var(--shadow);
}
.home-entity-card:hover[b-ddt16x6sn1] {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.1);
    transform: translateY(-1px);
}
.hec-icon[b-ddt16x6sn1] { font-size: 2rem; flex-shrink: 0; }
.hec-body[b-ddt16x6sn1] { flex: 1; min-width: 0; }
.hec-name[b-ddt16x6sn1] { font-weight: 600; font-size: 1rem; color: var(--text); }
.hec-count[b-ddt16x6sn1] { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.hec-loading[b-ddt16x6sn1]  { color: #d1d5db; font-style: italic; }
.hec-services[b-ddt16x6sn1] { font-size: 0.7rem; color: #484f58; margin-top: 2px; }
.hec-arrow[b-ddt16x6sn1] {
    font-size: 1.1rem; color: var(--primary);
    font-weight: 700; flex-shrink: 0;
    opacity: 0; transition: opacity .15s;
}
.home-entity-card:hover .hec-arrow[b-ddt16x6sn1] { opacity: 1; }

/* -- Portal de Módulos -------------------------------------------------- */
.home-portal[b-ddt16x6sn1] { margin-top: 36px; }
.portal-grid[b-ddt16x6sn1] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.module-card[b-ddt16x6sn1] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all .2s ease;
}
.module-card:hover[b-ddt16x6sn1] {
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.mc-header[b-ddt16x6sn1] {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.mc-icon[b-ddt16x6sn1] { font-size: 2rem; flex-shrink: 0; }
.mc-header-info[b-ddt16x6sn1] { flex: 1; }
.mc-title[b-ddt16x6sn1] {
    font-size: 1.1rem; font-weight: 700;
    color: var(--text); margin: 0; line-height: 1.2;
}
.mc-subtitle[b-ddt16x6sn1] {
    font-size: .75rem; color: var(--text-muted);
    display: block; margin-top: 2px;
}
.mc-desc[b-ddt16x6sn1] {
    font-size: .7rem; color: #484f58;
    display: block; margin-top: 1px; font-style: italic;
}
.mc-list[b-ddt16x6sn1] { display: flex; flex-direction: column; }
.mc-item[b-ddt16x6sn1] {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    text-decoration: none; color: var(--text);
    border-top: 1px solid rgba(255,255,255,.03);
    transition: all .12s ease;
}
.mc-item:hover[b-ddt16x6sn1] {
    background: rgba(99,102,241,.06);
    padding-left: 24px;
}
.mc-item-icon[b-ddt16x6sn1] { font-size: 1rem; flex-shrink: 0; opacity: .7; }
.mc-item-name[b-ddt16x6sn1] { flex: 1; font-size: .88rem; font-weight: 500; }
.mc-item-count[b-ddt16x6sn1] {
    font-size: .78rem; color: var(--text-muted);
    font-family: 'Cascadia Code', 'Consolas', monospace;
    min-width: 30px; text-align: right;
}
.mc-loading[b-ddt16x6sn1] { color: #555; font-style: italic; font-size: .7rem; }
.mc-item-svc[b-ddt16x6sn1] {
    font-size: .65rem; background: rgba(var(--primary-rgb),.1);
    color: var(--primary); padding: 2px 6px; border-radius: 4px;
    font-weight: 600; white-space: nowrap;
}
.mc-item-arrow[b-ddt16x6sn1] {
    font-size: .9rem; color: var(--primary); font-weight: 700;
    opacity: 0; transition: opacity .12s;
}
.mc-item:hover .mc-item-arrow[b-ddt16x6sn1] { opacity: 1; }

/* Module card color variants */
.mc--blue .mc-header[b-ddt16x6sn1] { background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(59,130,246,.03)); }
.mc--blue[b-ddt16x6sn1] { border-color: rgba(59,130,246,.15); }
.mc--purple .mc-header[b-ddt16x6sn1] { background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(139,92,246,.03)); }
.mc--purple[b-ddt16x6sn1] { border-color: rgba(139,92,246,.15); }
.mc--amber .mc-header[b-ddt16x6sn1] { background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(245,158,11,.03)); }
.mc--amber[b-ddt16x6sn1] { border-color: rgba(245,158,11,.15); }
.mc--green .mc-header[b-ddt16x6sn1] { background: linear-gradient(135deg, rgba(16,185,129,.08), rgba(16,185,129,.03)); }
.mc--green[b-ddt16x6sn1] { border-color: rgba(16,185,129,.15); }

/* Chart section */
.home-chart-section[b-ddt16x6sn1] { margin-top: 32px; }
.home-chart-card[b-ddt16x6sn1] {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

@media (max-width: 768px) {
    .portal-grid[b-ddt16x6sn1] { grid-template-columns: 1fr; }
}

/* -- Features ------------------------------------------------------------- */
.home-features[b-ddt16x6sn1] { display: flex; flex-direction: column; gap: 12px; }
.home-feature[b-ddt16x6sn1] {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 20px;
    display: flex; align-items: flex-start; gap: 16px; box-shadow: var(--shadow);
}
.hf-icon[b-ddt16x6sn1] { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.hf-body strong[b-ddt16x6sn1] { display: block; font-size: .9rem; color: var(--text); margin-bottom: 4px; }
.hf-body p[b-ddt16x6sn1] { font-size: .82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* -- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
    .home-kpi-row[b-ddt16x6sn1] { grid-template-columns: repeat(2, 1fr); }
    .home-hero-top[b-ddt16x6sn1] { flex-direction: column; gap: 10px; }
}
@media (max-width: 600px) {
    .home-kpi-row[b-ddt16x6sn1] { grid-template-columns: 1fr 1fr; }
}
/* /Components/Shared/AiAssistant.razor.rz.scp.css */
/* -- FAB ------------------------------------------------------------------- */
.ai-fab[b-rg9353ipy1] {
    position: fixed; bottom: 28px; right: 28px; z-index: 1100;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(99,102,241,.45);
    transition: transform .2s, box-shadow .2s;
}
.ai-fab:hover[b-rg9353ipy1] { transform: scale(1.08); box-shadow: 0 6px 20px rgba(99,102,241,.55); }
.ai-fab svg[b-rg9353ipy1] { width: 24px; height: 24px; }
.ai-fab--pulse[b-rg9353ipy1] { animation: ai-pulse-b-rg9353ipy1 1.6s ease-in-out infinite; }
@keyframes ai-pulse-b-rg9353ipy1 {
    0%,100% { box-shadow: 0 4px 16px rgba(99,102,241,.45); }
    50%      { box-shadow: 0 4px 24px rgba(99,102,241,.75); }
}

/* -- Overlay --------------------------------------------------------------- */
.ai-overlay[b-rg9353ipy1] {
    position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1099;
    animation: ai-fade-in-b-rg9353ipy1 .2s ease;
}
@keyframes ai-fade-in-b-rg9353ipy1 { from { opacity: 0; } to { opacity: 1; } }

/* -- Drawer ---------------------------------------------------------------- */
.ai-drawer[b-rg9353ipy1] {
    position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw;
    z-index: 1100; background: var(--surface); border-left: 1px solid var(--border);
    box-shadow: -4px 0 32px rgba(0,0,0,.12); display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.ai-drawer--open[b-rg9353ipy1] { transform: translateX(0); }

/* -- Header ---------------------------------------------------------------- */
.ai-drawer-header[b-rg9353ipy1] {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.ai-drawer-title[b-rg9353ipy1] { display: flex; align-items: center; gap: 12px; }
.ai-avatar[b-rg9353ipy1] {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .03em;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ai-title-text[b-rg9353ipy1] { font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.ai-title-sub[b-rg9353ipy1]  { font-size: .75rem; color: var(--text-muted); margin-top: 1px; }
.ai-close-btn[b-rg9353ipy1] {
    background: none; border: none; cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 6px; transition: background .15s, color .15s; flex-shrink: 0;
}
.ai-close-btn:hover[b-rg9353ipy1] { background: #f3f4f6; color: var(--text); }
.ai-close-btn svg[b-rg9353ipy1] { width: 18px; height: 18px; }

/* -- Body ------------------------------------------------------------------ */
.ai-drawer-body[b-rg9353ipy1] {
    flex: 1; overflow-y: auto; padding: 20px 16px;
    display: flex; flex-direction: column; gap: 4px; scroll-behavior: smooth;
}

/* -- Welcome + Suggestions ------------------------------------------------- */
.ai-welcome[b-rg9353ipy1] {
    text-align: center; padding: 24px 16px 12px;
    color: var(--text-muted); font-size: .88rem; line-height: 1.6;
}
.ai-welcome-icon[b-rg9353ipy1] { font-size: 2.4rem; margin-bottom: 10px; display: block; }
.ai-welcome strong[b-rg9353ipy1] { color: var(--text); }
.ai-suggestions-label[b-rg9353ipy1] {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--text-muted); margin: 16px 0 8px;
}
.ai-suggestions[b-rg9353ipy1] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ai-chip[b-rg9353ipy1] {
    background: #f9fafb; border: 1px solid var(--border); border-radius: 20px;
    padding: 6px 14px; font-size: .8rem; color: var(--text);
    cursor: pointer; transition: all .15s; text-align: left; line-height: 1.4;
}
.ai-chip:hover[b-rg9353ipy1] { background: rgba(99,102,241,.07); border-color: var(--primary); color: var(--primary); }

/* -- Message Bubbles ------------------------------------------------------- */
.ai-bubble[b-rg9353ipy1] { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
.ai-bubble--user[b-rg9353ipy1] { flex-direction: row-reverse; }
.ai-bubble-avatar[b-rg9353ipy1] {
    width: 30px; height: 30px; border-radius: 50%;
    background: #e5e7eb; color: var(--text-muted);
    font-size: .62rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}
.ai-bubble--user      .ai-bubble-avatar[b-rg9353ipy1] { background: rgba(var(--primary-rgb),.1); color: var(--primary); }
.ai-bubble--assistant .ai-bubble-avatar[b-rg9353ipy1] { background: var(--primary); color: #fff; }
.ai-bubble-content[b-rg9353ipy1] { max-width: 78%; display: flex; flex-direction: column; gap: 3px; }
.ai-bubble--user .ai-bubble-content[b-rg9353ipy1] { align-items: flex-end; }
.ai-bubble-text[b-rg9353ipy1] {
    padding: 10px 14px; border-radius: 12px;
    font-size: .875rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.ai-bubble--user      .ai-bubble-text[b-rg9353ipy1] { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.ai-bubble--assistant .ai-bubble-text[b-rg9353ipy1] { background: #f3f4f6; color: var(--text); border-bottom-left-radius: 4px; }
.ai-bubble-time[b-rg9353ipy1] { font-size: .68rem; color: var(--text-muted); padding: 0 4px; }

/* -- Typing Dots ----------------------------------------------------------- */
.ai-typing-dots[b-rg9353ipy1] { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; }
.ai-typing-dots span[b-rg9353ipy1] {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--text-muted); display: inline-block;
    animation: ai-bounce-b-rg9353ipy1 1.2s ease-in-out infinite;
}
.ai-typing-dots span:nth-child(2)[b-rg9353ipy1] { animation-delay: .18s; }
.ai-typing-dots span:nth-child(3)[b-rg9353ipy1] { animation-delay: .36s; }
@keyframes ai-bounce-b-rg9353ipy1 {
    0%,80%,100% { transform: translateY(0);    opacity: .5; }
    40%          { transform: translateY(-6px); opacity: 1;  }
}

/* -- Cursor ---------------------------------------------------------------- */
.ai-cursor[b-rg9353ipy1] { display: inline-block; animation: ai-blink-b-rg9353ipy1 .9s step-end infinite; margin-left: 1px; }
@keyframes ai-blink-b-rg9353ipy1 { 0%,100% { opacity: .8; } 50% { opacity: 0; } }

/* -- Footer / Input -------------------------------------------------------- */
.ai-drawer-footer[b-rg9353ipy1] { border-top: 1px solid var(--border); padding: 12px 14px 10px; flex-shrink: 0; }
.ai-input-row[b-rg9353ipy1] { display: flex; gap: 8px; align-items: center; }
.ai-input[b-rg9353ipy1] {
    flex: 1; border: 1px solid var(--border); border-radius: 20px;
    padding: 9px 16px; font-size: .875rem; font-family: inherit;
    color: var(--text); background: #f9fafb; outline: none;
    transition: border-color .15s, background .15s;
}
.ai-input:focus[b-rg9353ipy1] { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.1); }
.ai-input:disabled[b-rg9353ipy1] { opacity: .6; cursor: not-allowed; }
.ai-send-btn[b-rg9353ipy1] {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background .15s, transform .15s;
}
.ai-send-btn:hover:not(:disabled)[b-rg9353ipy1] { background: var(--primary-dark); transform: scale(1.06); }
.ai-send-btn:disabled[b-rg9353ipy1] { opacity: .45; cursor: not-allowed; }
.ai-send-btn svg[b-rg9353ipy1] { width: 18px; height: 18px; }
.ai-footer-note[b-rg9353ipy1] { font-size: .68rem; color: var(--text-muted); text-align: center; margin-top: 8px; opacity: .75; }
/* /Components/Shared/RefPicker.razor.rz.scp.css */
/* RefPicker — Design Kit Monet: sobrio, corporativo, denso.
   Casillas pequeñas y adyacentes (bordes colapsados), botones cuadrados discretos. */

.refpicker[b-pxdnfdfjmp] {
    display: inline-block;
    max-width: 100%;
}

.refpicker-row[b-pxdnfdfjmp] {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: wrap; /* ley de la casa: los flotantes no bastan sin flex-wrap */
    max-width: 100%;
}

.refpicker-part[b-pxdnfdfjmp] {
    height: 28px;
    padding: 2px 6px;
    font-family: var(--font-family, Inter, 'Segoe UI', sans-serif);
    font-size: 12.5px;
    color: var(--text, #1e293b);
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 0;
    margin-left: -1px; /* colapsa el borde con la casilla anterior */
    min-width: 4ch;
    outline: none;
    box-sizing: border-box;
}

.refpicker-part:first-child[b-pxdnfdfjmp] {
    margin-left: 0;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.refpicker-part:focus[b-pxdnfdfjmp] {
    border-color: var(--primary, #1e5aa8);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 30, 90, 168), .18);
    position: relative;
    z-index: 2; /* el foco levanta la casilla sobre los bordes colapsados */
}

.refpicker-part[b-pxdnfdfjmp]::placeholder {
    color: var(--text-muted, #94a3b8);
    opacity: .75;
    font-size: 11.5px;
}

.refpicker-part:disabled[b-pxdnfdfjmp] {
    background: #f1f5f9;
    color: var(--text-muted, #64748b);
    cursor: not-allowed;
}

.refpicker-btn[b-pxdnfdfjmp] {
    height: 28px;
    width: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted, #64748b);
    background: #f6f8fa;
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 0;
    margin-left: -1px; /* pegado a la última casilla */
    cursor: pointer;
    box-sizing: border-box;
    transition: background .12s ease, color .12s ease;
}

.refpicker-btn:last-child[b-pxdnfdfjmp] {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.refpicker-btn:hover:not(:disabled)[b-pxdnfdfjmp] {
    background: #e8edf3;
    color: var(--primary, #1e5aa8);
}

.refpicker-btn:focus-visible[b-pxdnfdfjmp] {
    outline: none;
    border-color: var(--primary, #1e5aa8);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 30, 90, 168), .18);
    position: relative;
    z-index: 2;
}

.refpicker-btn:disabled[b-pxdnfdfjmp] {
    opacity: .45;
    cursor: not-allowed;
}

.refpicker-desc[b-pxdnfdfjmp] {
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--text-muted, #64748b);
    max-width: 60ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* [PP-PICKER-DESCRIPCION] Clave de N partes: lo legible va A LA DERECHA de los botones,
   en la MISMA fila (asimetría de Angular). Hereda ellipsis/nowrap de .refpicker-desc. */
.refpicker-desc--inline[b-pxdnfdfjmp] {
    margin: 0 0 0 8px;
    align-self: center;
}

/* [PP-PICKER-DESCRIPCION] La reserva estable evita que los campos vecinos salten al alternar
   descripción/código. Se acota al contenedor: en ancho estrecho no desborda ni manda los botones
   a otra fila. En edición la casilla recupera su width de clave; sólo queda libre la reserva. */
.refpicker--single-resolved[b-pxdnfdfjmp] {
    width: min(100%, calc(60ch + 55px));
}

.refpicker--single-resolved .refpicker-row[b-pxdnfdfjmp] {
    width: 100%;
    flex-wrap: nowrap;
}

.refpicker--single-resolved .refpicker-btn[b-pxdnfdfjmp] {
    flex: 0 0 28px;
}

/* La descripción deja de heredar el width inline de la clave. field-sizing mide el contenido
   renderizado; size es el respaldo para navegadores anteriores. El límite conserva elipsis y
   title para textos excepcionalmente largos. */
.refpicker-part--resuelta[b-pxdnfdfjmp] {
    field-sizing: content;
    width: auto;
    max-width: calc(100% - 55px);
    min-width: 0;
    flex: 0 1 auto;
    color: var(--text, #1e293b);
    text-overflow: ellipsis;
}

/* Contenido del diálogo: sólo nuestro contenedor; la rejilla es de Syncfusion
   y no se pelea con ella (el CSS scoped de Blazor GANA). */
.refpicker-grid-wrap[b-pxdnfdfjmp] {
    padding: 2px 0;
}

/* [PP-CATALOGO-SERVIDOR] Fila de búsqueda del modo servidor: misma familia visual que las
   casillas de clave, pero ancha — aquí se teclea texto libre, no un código. */
.refpicker-searchrow[b-pxdnfdfjmp] {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 6px;
}

.refpicker-search[b-pxdnfdfjmp] {
    flex: 1 1 auto;
    height: 28px;
    padding: 2px 8px;
    font-family: var(--font-family, Inter, 'Segoe UI', sans-serif);
    font-size: 12.5px;
    color: var(--text, #1e293b);
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 3px 0 0 3px;
    outline: none;
    box-sizing: border-box;
}

.refpicker-search:focus[b-pxdnfdfjmp] {
    border-color: var(--primary, #1e5aa8);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 30, 90, 168), .18);
    position: relative;
    z-index: 2;
}

/* El aviso de ventana truncada: informativo, no alarmista — pero VISIBLE. */
.refpicker-window-hint[b-pxdnfdfjmp] {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--text-muted, #64748b);
    align-self: center;
    padding-left: 8px;
}
