/* =====================================================================
   AMBIENTE ECOLOGICO PERU · ERP  —  Hoja de estilos principal
   ===================================================================== */
:root {
  --eco-primario: #1b7f4b;
  --eco-primario-osc: #136238;
  --eco-primario-claro: #e7f5ed;
  --eco-acento: #8cc63f;
  --eco-sidebar: #0f2e22;
  --eco-sidebar-2: #12392a;
  --eco-sidebar-txt: #cfe3d8;
  --eco-fondo: #f3f6f4;
  --eco-card: #ffffff;
  --eco-borde: #e3e9e5;
  --eco-texto: #1f2a24;
  --eco-muted: #6b7a72;
  --eco-sombra: 0 1px 2px rgba(16, 40, 28, .04), 0 4px 16px rgba(16, 40, 28, .06);
  --sidebar-ancho: 262px;
  --topbar-alto: 62px;
  --bs-primary: #1b7f4b;
  --bs-primary-rgb: 27, 127, 75;
  --bs-link-color: #1b7f4b;
  --bs-link-color-rgb: 27, 127, 75;
  --bs-link-hover-color: #136238;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-border-radius: .55rem;
}
[data-bs-theme="dark"] {
  --eco-fondo: #0f1512;
  --eco-card: #17201b;
  --eco-borde: #26332c;
  --eco-texto: #e4ece7;
  --eco-muted: #93a69b;
  --eco-primario-claro: #163626;
  --eco-sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  --bs-body-bg: #0f1512;
  --bs-link-color: #5cc98f;
  --bs-link-color-rgb: 92, 201, 143;
}
html, body { height: 100%; }
body.erp { background: var(--eco-fondo); color: var(--eco-texto); font-size: .9rem; }

.btn-primary { --bs-btn-bg: var(--eco-primario); --bs-btn-border-color: var(--eco-primario); --bs-btn-hover-bg: var(--eco-primario-osc);
  --bs-btn-hover-border-color: var(--eco-primario-osc); --bs-btn-active-bg: var(--eco-primario-osc); --bs-btn-disabled-bg: var(--eco-primario); --bs-btn-disabled-border-color: var(--eco-primario); }
.btn-outline-primary { --bs-btn-color: var(--eco-primario); --bs-btn-border-color: var(--eco-primario); --bs-btn-hover-bg: var(--eco-primario);
  --bs-btn-hover-border-color: var(--eco-primario); --bs-btn-active-bg: var(--eco-primario); }
.text-primary { color: var(--eco-primario) !important; }
.bg-primary { background-color: var(--eco-primario) !important; }
.form-control:focus, .form-select:focus { border-color: #7cc49d; box-shadow: 0 0 0 .2rem rgba(27, 127, 75, .15); }
.form-check-input:checked { background-color: var(--eco-primario); border-color: var(--eco-primario); }
.progress-bar { background-color: var(--eco-primario); }

/* ----------------------------- Sidebar ----------------------------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-ancho); z-index: 1040;
  background: linear-gradient(180deg, var(--eco-sidebar) 0%, var(--eco-sidebar-2) 100%);
  color: var(--eco-sidebar-txt); display: flex; flex-direction: column; transition: transform .25s ease, width .25s ease;
}
.sidebar .marca { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.07); text-decoration: none; }
.sidebar .marca img { width: 40px; height: 40px; }
.sidebar .marca .t1 { color: #fff; font-weight: 800; font-size: .95rem; line-height: 1.05; letter-spacing: .3px; }
.sidebar .marca .t2 { color: var(--eco-acento); font-size: .68rem; font-weight: 600; letter-spacing: 2.2px; }
.sidebar .menu { flex: 1; overflow-y: auto; padding: .6rem .55rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.sidebar .menu-link, .sidebar .menu-grupo > button {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .75rem; margin-bottom: 2px; border: 0; background: none;
  color: var(--eco-sidebar-txt); border-radius: .55rem; text-decoration: none; font-weight: 500; font-size: .88rem; text-align: left;
}
.sidebar .menu-link i, .sidebar .menu-grupo > button > i:first-child { font-size: 1.1rem; width: 1.3rem; text-align: center; opacity: .9; }
.sidebar .menu-link:hover, .sidebar .menu-grupo > button:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar .menu-link.activo { background: var(--eco-primario); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.sidebar .menu-grupo > button .flecha { margin-left: auto; transition: transform .2s; font-size: .75rem; }
.sidebar .menu-grupo > button[aria-expanded="true"] .flecha { transform: rotate(90deg); }
.sidebar .menu-grupo > button[aria-expanded="true"] { color: #fff; }
.sidebar .submenu { padding: .15rem 0 .35rem 2.05rem; }
.sidebar .submenu a {
  display: flex; align-items: center; justify-content: space-between; padding: .38rem .7rem; color: #a9c6b7; text-decoration: none;
  font-size: .84rem; border-radius: .45rem; position: relative;
}
.sidebar .submenu a::before { content: ''; position: absolute; left: -.85rem; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.25); transform: translateY(-50%); }
.sidebar .submenu a:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar .submenu a.activo { color: #fff; background: rgba(140,198,63,.16); font-weight: 600; }
.sidebar .submenu a.activo::before { background: var(--eco-acento); }
.sidebar .pie { padding: .7rem 1.1rem; font-size: .72rem; color: #7f9d8e; border-top: 1px solid rgba(255,255,255,.07); }
.badge-menu { background: #f0ad4e; color: #2b1d00; font-size: .68rem; border-radius: 1rem; padding: .15rem .45rem; font-weight: 700; }

/* ----------------------------- Main / topbar ----------------------------- */
.main { margin-left: var(--sidebar-ancho); width: calc(100% - var(--sidebar-ancho)); max-width: 100%; min-width: 0;
  min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .25s ease, width .25s ease; overflow-x: clip; }
.topbar {
  position: sticky; top: 0; z-index: 1030; height: var(--topbar-alto); display: flex; align-items: center; gap: .75rem;
  padding: 0 1.25rem; background: color-mix(in srgb, var(--eco-card) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--eco-borde);
}
.topbar .buscador { position: relative; flex: 1; max-width: 520px; }
.topbar .buscador input { padding-left: 2.3rem; border-radius: 2rem; background: var(--eco-fondo); border-color: transparent; }
.topbar .buscador > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--eco-muted); }
.topbar .buscador kbd { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-size: .68rem; background: var(--eco-borde); color: var(--eco-muted); }
.topbar .resultados { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--eco-card); border: 1px solid var(--eco-borde);
  border-radius: .8rem; box-shadow: var(--eco-sombra); max-height: 70vh; overflow-y: auto; display: none; z-index: 1050; }
.topbar .resultados.abierto { display: block; }
.topbar .resultados .grupo { padding: .4rem .9rem .1rem; font-size: .7rem; text-transform: uppercase; color: var(--eco-muted); font-weight: 700; letter-spacing: .6px; }
.topbar .resultados a { display: block; padding: .45rem .9rem; color: var(--eco-texto); text-decoration: none; }
.topbar .resultados a:hover, .topbar .resultados a.sel { background: var(--eco-primario-claro); }
.topbar .resultados a small { display: block; color: var(--eco-muted); }
.chip-dispositivo { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 2rem; font-size: .75rem;
  background: var(--eco-fondo); border: 1px solid var(--eco-borde); color: var(--eco-muted); cursor: pointer; white-space: nowrap; }
.chip-dispositivo .punto { width: 8px; height: 8px; border-radius: 50%; background: #adb5bd; }
.chip-dispositivo.conectado .punto { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--eco-primario), var(--eco-acento)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.btn-icono-top { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 0;
  background: transparent; color: var(--eco-muted); font-size: 1.15rem; }
.btn-icono-top:hover { background: var(--eco-fondo); color: var(--eco-texto); }
.contenido { padding: 1.35rem 1.5rem 2.5rem; flex: 1; min-width: 0; max-width: 100%; }

body.sidebar-colapsado .sidebar { transform: translateX(-100%); }
body.sidebar-colapsado .main { margin-left: 0; width: 100%; }
.sidebar-fondo { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .main { margin-left: 0; width: 100%; }
  body.sidebar-abierto .sidebar { transform: translateX(0); }
  body.sidebar-abierto .sidebar-fondo { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1035; }
  .contenido { padding: 1rem .9rem 2rem; }
  .topbar { padding: 0 .75rem; }
}

/* ----------------------------- Encabezado de página ----------------------------- */
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.page-header h1 { font-size: 1.35rem; font-weight: 750; margin: 0; display: flex; align-items: center; gap: .6rem; }
.page-header h1 .icono-titulo { width: 40px; height: 40px; border-radius: .7rem; background: var(--eco-primario-claro); color: var(--eco-primario);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.page-header .sub { color: var(--eco-muted); font-size: .83rem; margin-top: .15rem; }

/* ----------------------------- Tarjetas ----------------------------- */
.card { background: var(--eco-card); border: 1px solid var(--eco-borde); border-radius: .9rem; box-shadow: var(--eco-sombra); }
.card-header { background: transparent; border-bottom: 1px solid var(--eco-borde); font-weight: 650; padding: .8rem 1.1rem; }
.card-header .bi { color: var(--eco-primario); }
.kpi { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; height: 100%; text-decoration: none; color: inherit; }
a.kpi:hover { color: inherit; }
.kpi .icono { width: 48px; height: 48px; border-radius: .85rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.kpi .titulo { font-size: .75rem; color: var(--eco-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.kpi .valor { font-size: 1.25rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.kpi .nota { font-size: .75rem; color: var(--eco-muted); }
.kpi-grande .valor { font-size: 1.55rem; }
@media (max-width: 575.98px) { .kpi { gap: .6rem; padding: .8rem; } .kpi .icono { width: 38px; height: 38px; font-size: 1.1rem; }
  .kpi .valor { font-size: 1.05rem; white-space: normal; } .peso-display .valor { font-size: 2.6rem; } }
.i-primary { background: rgba(27,127,75,.12); color: var(--eco-primario); }
.i-success { background: rgba(25,135,84,.12); color: #198754; }
.i-info { background: rgba(13,110,253,.1); color: #0d6efd; }
.i-warning { background: rgba(255,193,7,.18); color: #b98500; }
.i-danger { background: rgba(220,53,69,.1); color: #dc3545; }
.i-secondary { background: rgba(108,117,125,.12); color: #6c757d; }
.i-dark { background: rgba(33,37,41,.1); color: #212529; }

/* ----------------------------- Badges suaves ----------------------------- */
.badge { font-weight: 600; letter-spacing: .2px; }
.badge-soft-primary { background: rgba(27,127,75,.12); color: #146c43; }
.badge-soft-success { background: rgba(25,135,84,.13); color: #0f6b40; }
.badge-soft-info { background: rgba(13,110,253,.11); color: #0b5ed7; }
.badge-soft-warning { background: rgba(255,193,7,.22); color: #8a6100; }
.badge-soft-danger { background: rgba(220,53,69,.12); color: #b02a37; }
.badge-soft-secondary { background: rgba(108,117,125,.14); color: #565e64; }
.badge-soft-dark { background: rgba(33,37,41,.12); color: #212529; }
[data-bs-theme="dark"] .badge-soft-primary, [data-bs-theme="dark"] .badge-soft-success { color: #6fdca2; }
[data-bs-theme="dark"] .badge-soft-info { color: #79b0ff; }
[data-bs-theme="dark"] .badge-soft-warning { color: #ffd166; }
[data-bs-theme="dark"] .badge-soft-danger { color: #ff8a95; }
[data-bs-theme="dark"] .badge-soft-secondary, [data-bs-theme="dark"] .badge-soft-dark { color: #c4ccd1; }
.color-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; }

/* ----------------------------- Listas ----------------------------- */
.barra-lista { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--eco-borde); }
.barra-lista .busqueda { position: relative; flex: 1 1 280px; max-width: 460px; }
.barra-lista .busqueda i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--eco-muted); }
.barra-lista .busqueda input { padding-left: 2.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .7rem 1rem 0; }
.chips a { padding: .3rem .8rem; border-radius: 2rem; font-size: .78rem; font-weight: 600; text-decoration: none; color: var(--eco-muted);
  background: var(--eco-fondo); border: 1px solid var(--eco-borde); }
.chips a:hover { color: var(--eco-primario); border-color: #a9d8bd; }
.chips a.activo { background: var(--eco-primario); color: #fff; border-color: var(--eco-primario); }
.panel-filtros { padding: .9rem 1rem; background: var(--eco-fondo); border-bottom: 1px solid var(--eco-borde); }
.panel-filtros label { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--eco-muted); letter-spacing: .4px; margin-bottom: .2rem; }
.card, .row, .row > * { min-width: 0; }
.table-responsive {
  max-width: 100%;
  max-height: calc(100vh - 23rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  scrollbar-color: #8eaa9b #e6eee9;
}
.table-responsive::-webkit-scrollbar { height: 12px; width: 12px; }
.table-responsive::-webkit-scrollbar-thumb { background: #8eaa9b; border-radius: 6px; border: 2px solid #e6eee9; }
.table-responsive::-webkit-scrollbar-track { background: #e6eee9; }
.table-responsive > .tabla-erp { width: max-content; min-width: 100%; }
.tabla-erp { margin: 0; font-size: .855rem; }
.tabla-erp thead th { background: var(--eco-fondo); color: var(--eco-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .45px;
  font-weight: 700; border-bottom: 1px solid var(--eco-borde); white-space: nowrap; padding: .65rem .75rem; position: sticky; top: 0; z-index: 1; }
.tabla-erp thead th a { color: inherit; text-decoration: none; }
.tabla-erp tbody a:not(.btn-accion), .list-group-item a, .card-header a { text-decoration: none; }
.tabla-erp tbody a:not(.btn-accion):hover { text-decoration: underline; }
.tabla-erp td { padding: .6rem .75rem; vertical-align: middle; border-color: var(--eco-borde); white-space: nowrap; }
.tabla-erp td.wrap, .tabla-erp td .wrap { white-space: normal; }
.tabla-erp tbody tr:hover td { background: color-mix(in srgb, var(--eco-primario-claro) 55%, transparent); }
.tabla-erp tfoot td { background: var(--eco-primario-claro); font-weight: 750; border-top: 2px solid #b7dcc6; }
.tabla-erp .fila-anulada td:not(.col-acciones) { opacity: .55; }
.tabla-erp .fila-anulada td:not(.col-acciones) a { text-decoration: line-through; }
.col-acciones { white-space: nowrap; width: 1%; text-align: right; }
.btn-accion { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: .5rem;
  border: 1px solid transparent; font-size: .95rem; transition: all .15s; }
.btn-accion.a-info { background: rgba(13,110,253,.08); color: #0b5ed7; }
.btn-accion.a-primary { background: rgba(27,127,75,.1); color: var(--eco-primario); }
.btn-accion.a-danger { background: rgba(220,53,69,.08); color: #dc3545; }
.btn-accion.a-warning { background: rgba(255,152,0,.12); color: #c96d00; }
.btn-accion.a-success { background: rgba(25,135,84,.1); color: #198754; }
.btn-accion.a-secondary { background: rgba(108,117,125,.1); color: #495057; }
.btn-accion:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.12); filter: brightness(.95); }
.btn-accion.deshabilitado { opacity: .3; pointer-events: none; }
[data-bs-theme="dark"] .btn-accion.a-secondary { color: #ced4da; }
.pie-lista { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem 1rem; border-top: 1px solid var(--eco-borde); font-size: .82rem; color: var(--eco-muted); }
.pagination { --bs-pagination-active-bg: var(--eco-primario); --bs-pagination-active-border-color: var(--eco-primario); --bs-pagination-color: var(--eco-primario); margin: 0; }
.vacio { padding: 3rem 1rem; text-align: center; color: var(--eco-muted); }
.vacio i { font-size: 2.6rem; opacity: .35; display: block; margin-bottom: .5rem; }

/* ----------------------------- Formularios ----------------------------- */
.form-label { font-weight: 600; font-size: .8rem; margin-bottom: .25rem; }
.form-text { font-size: .74rem; }
.errorlist { list-style: none; padding: 0; margin: .25rem 0 0; color: #dc3545; font-size: .78rem; }
.seccion-titulo { font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 750; color: var(--eco-primario); margin: 1.2rem 0 .6rem;
  display: flex; align-items: center; gap: .5rem; }
.seccion-titulo::after { content: ''; flex: 1; height: 1px; background: var(--eco-borde); }
.ts-wrapper.form-select, .ts-wrapper.form-control { padding: 0; }
.ts-control { border-radius: var(--bs-border-radius); min-height: 38px; }
.ts-dropdown { z-index: 1060; }
.dato-ficha { padding: .55rem 0; border-bottom: 1px dashed var(--eco-borde); }
.dato-ficha .et { font-size: .72rem; text-transform: uppercase; color: var(--eco-muted); font-weight: 650; letter-spacing: .3px; }
.dato-ficha .va { font-weight: 600; }

/* ----------------------------- Balanza / POS ----------------------------- */
.peso-display { background: #0b1a12; border-radius: 1rem; padding: 1rem 1.25rem; color: #39ff88; font-family: 'Share Tech Mono', 'Consolas', monospace;
  box-shadow: inset 0 0 22px rgba(57,255,136,.12), var(--eco-sombra); position: relative; }
.peso-display .valor { font-size: 3.4rem; line-height: 1; text-align: right; letter-spacing: 2px; text-shadow: 0 0 12px rgba(57,255,136,.45); }
.peso-display .unidad { font-size: 1.2rem; margin-left: .35rem; opacity: .8; }
.peso-display .estado { font-family: 'Inter', sans-serif; font-size: .72rem; display: flex; gap: .7rem; color: #7ccfa0; text-transform: uppercase; letter-spacing: 1px; }
.peso-display .estado .estable { color: #39ff88; font-weight: 700; }
.peso-display .estado .inestable { color: #ffc861; font-weight: 700; }
.peso-display.desconectado { color: #5c6f64; }
.peso-display.desconectado .valor { text-shadow: none; }
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .55rem; }
.material-tile { border: 2px solid var(--eco-borde); border-radius: .85rem; padding: .65rem .5rem; text-align: center; background: var(--eco-card); cursor: pointer;
  transition: all .15s; user-select: none; position: relative; }
.material-tile:hover { border-color: #9fd3b5; transform: translateY(-2px); box-shadow: var(--eco-sombra); }
.material-tile.sel { border-color: var(--eco-primario); background: var(--eco-primario-claro); box-shadow: 0 0 0 3px rgba(27,127,75,.15); }
.material-tile .ico { font-size: 1.6rem; }
.material-tile .nom { font-weight: 700; font-size: .8rem; line-height: 1.15; margin-top: .2rem; }
.material-tile .pre { font-size: .75rem; color: var(--eco-muted); }
.material-tile .pre b { color: var(--eco-primario); }
.material-tile .pactado { position: absolute; top: 4px; right: 6px; font-size: .62rem; }
.total-pos { background: linear-gradient(135deg, var(--eco-primario), #23a061); color: #fff; border-radius: 1rem; padding: 1rem 1.2rem; }
.total-pos .monto { font-size: 2rem; font-weight: 800; }
.alerta-prov { border-radius: .75rem; padding: .6rem .8rem; font-size: .84rem; display: flex; gap: .6rem; align-items: center; }
.paso { width: 26px; height: 26px; border-radius: 50%; background: var(--eco-primario); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }

/* ----------------------------- Login ----------------------------- */
.login-fondo { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--eco-fondo); }
.login-arte { background: radial-gradient(circle at 20% 20%, rgba(140,198,63,.35), transparent 50%), linear-gradient(150deg, #0f2e22 0%, #1b7f4b 100%);
  color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-arte::after { content: ''; position: absolute; width: 520px; height: 520px; border: 60px solid rgba(255,255,255,.05); border-radius: 50%; right: -180px; bottom: -180px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-card { width: 100%; max-width: 400px; }
@media (max-width: 860px) { .login-fondo { grid-template-columns: 1fr; } .login-arte { display: none; } }

/* ----------------------------- Varios ----------------------------- */
.toast-container { z-index: 1090; }
.modal-pdf .modal-dialog { max-width: min(1100px, 96vw); }
.visor-pdf { height: 78vh; overflow: auto; background: #525659; border-radius: 0 0 .5rem .5rem; padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; }
.visor-pdf canvas { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.45); flex-shrink: 0; }
.visor-pdf .estado-pdf { color: #e9ecef; margin: auto; text-align: center; max-width: 420px; }
.tabla-mini td, .tabla-mini th { padding: .4rem .5rem; font-size: .82rem; }
.cursor-pointer { cursor: pointer; }
.chart-box { position: relative; width: 100%; min-width: 0; }
.min-w-0 { min-width: 0; }
.fw-800 { font-weight: 800; }
.text-soles { font-variant-numeric: tabular-nums; }
.reporte-card { transition: all .15s; cursor: pointer; }
.reporte-card:hover { transform: translateY(-3px); border-color: #a9d8bd; }
.reporte-card.sel { border-color: var(--eco-primario); box-shadow: 0 0 0 3px rgba(27,127,75,.15); }
.matriz-permisos th { font-size: .7rem; text-transform: uppercase; color: var(--eco-muted); }
.matriz-permisos td.celda { text-align: center; width: 80px; }
.matriz-permisos .heredado { outline: 2px solid #22c55e; outline-offset: 1px; }
.nivel-1 td { font-weight: 700; background: var(--eco-primario-claro); }
.nivel-2 td:nth-child(2) { padding-left: 1.5rem; }
.denominacion { max-width: 110px; }
@media print { .sidebar, .topbar, .no-print { display: none !important; } .main { margin: 0; } }
