/*!
 * CISTI Admin - Estilos
 * Concepto visual: "etiqueta de activo". Barra lateral tinta azul profunda, superficies frías,
 * y un acento ámbar que recuerda las etiquetas de inventario pegadas en los equipos.
 */
:root {
  --app-primary: #0D5C78; --app-primary-rgb: 13, 92, 120; --app-secondary: #5B6B7A; --app-accent: #F2A900;
  --app-success: #1F9D6B; --app-danger: #D64545; --app-sidebar-bg: #0B2233; --app-sidebar-text: #C9D6E0;
  --app-body-bg: #EEF2F5; --app-font: 'Manrope'; --app-font-size: 15px; --app-radius: 10px;
  --sidebar-w: 264px; --sidebar-w-compact: 76px; --topbar-h: 64px;
  --surface: #ffffff; --line: #dde4ea; --ink: #16242f; --muted: #66788a;
}
[data-bs-theme="dark"] {
  --app-body-bg: #0f171e; --surface: #16212b; --line: #26333f; --ink: #e3eaf0; --muted: #91a2b1;
}

/* Bootstrap enlazado a las variables de personalización */
:root, [data-bs-theme] {
  --bs-primary: var(--app-primary); --bs-primary-rgb: var(--app-primary-rgb);
  --bs-success: var(--app-success); --bs-danger: var(--app-danger);
  --bs-link-color: var(--app-primary); --bs-link-color-rgb: var(--app-primary-rgb); --bs-link-hover-color: var(--app-primary);
  --bs-border-radius: var(--app-radius); --bs-border-radius-sm: calc(var(--app-radius) * .7); --bs-border-radius-lg: calc(var(--app-radius) * 1.3);
  --bs-body-font-family: var(--app-font), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-font-size: var(--app-font-size);
  --bs-focus-ring-color: rgba(var(--app-primary-rgb), .25);
}
[data-bs-theme="dark"] { --bs-body-bg: var(--app-body-bg); --bs-body-color: var(--ink); --bs-border-color: var(--line); --bs-secondary-bg: #1c2833; --bs-tertiary-bg: #1a2530; }

body { background: var(--app-body-bg); color: var(--ink); font-family: var(--bs-body-font-family); font-size: var(--app-font-size); font-feature-settings: "tnum" 1; }
.btn-primary { --bs-btn-bg: var(--app-primary); --bs-btn-border-color: var(--app-primary); --bs-btn-hover-bg: color-mix(in srgb, var(--app-primary) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--app-primary) 85%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--app-primary) 75%, #000); --bs-btn-disabled-bg: var(--app-primary); --bs-btn-disabled-border-color: var(--app-primary); }
.btn-outline-primary { --bs-btn-color: var(--app-primary); --bs-btn-border-color: var(--app-primary); --bs-btn-hover-bg: var(--app-primary); --bs-btn-hover-border-color: var(--app-primary); --bs-btn-active-bg: var(--app-primary); }
.text-primary { color: var(--app-primary) !important; }
.text-bg-primary { background: var(--app-primary) !important; }
.bg-primary { background-color: var(--app-primary) !important; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--app-primary); }
.form-check-input:checked { background-color: var(--app-primary); border-color: var(--app-primary); }
.pagination { --bs-pagination-active-bg: var(--app-primary); --bs-pagination-active-border-color: var(--app-primary); }
.btn-light { --bs-btn-bg: transparent; --bs-btn-border-color: transparent; --bs-btn-hover-bg: rgba(var(--app-primary-rgb), .08); }
:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 2px; }
a { text-underline-offset: 2px; }

/* ---------------- Estructura ---------------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--app-sidebar-bg); color: var(--app-sidebar-text);
  display: flex; flex-direction: column; z-index: 1040; transition: width .2s ease, transform .25s ease;
}
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; transition: margin .2s ease; }
.content { padding: 24px clamp(14px, 2.4vw, 32px) 32px; flex: 1; }

.brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-logo { max-height: 40px; max-width: 150px; object-fit: contain; }
.brand-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: calc(var(--app-radius) * .8);
  background: var(--app-accent); color: var(--app-sidebar-bg); font-size: 18px; }
.brand-icon.lg { width: 64px; height: 64px; font-size: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--app-sidebar-text); opacity: .7; font-size: .76rem; }

.side-nav { flex: 1; overflow-y: auto; padding: 8px 10px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-section { font-size: .72rem; font-weight: 700; color: var(--app-sidebar-text); opacity: .5; padding: 16px 12px 6px; }
.nav-link-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; color: var(--app-sidebar-text); text-decoration: none;
  border-radius: calc(var(--app-radius) * .8); font-weight: 500; font-size: .93rem; position: relative;
}
.nav-link-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link-item.active { background: rgba(255,255,255,.09); color: #fff; }
.nav-link-item.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--app-accent); }
.nav-link-item .caret { margin-left: auto; font-size: .7rem; transition: transform .2s; }
.nav-link-item[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-link-item i:first-child { width: 20px; text-align: center; opacity: .9; }
.sub-nav { padding-left: 14px; }
.nav-link-item.sub { font-size: .86rem; padding: 7px 12px; }
.nav-link-item.sub.current { color: var(--app-accent); }
.sidebar-foot { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; align-items: center; font-size: .75rem; }
.sidebar-foot a { color: var(--app-sidebar-text); opacity: .7; text-decoration: none; }
.version-tag { background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 20px; color: #fff; }

body.sidebar-compact .sidebar { width: var(--sidebar-w-compact); }
body.sidebar-compact .main { margin-left: var(--sidebar-w-compact); }
body.sidebar-compact .brand-text, body.sidebar-compact .nav-link-item span, body.sidebar-compact .nav-section,
body.sidebar-compact .caret, body.sidebar-compact .sidebar-foot a { display: none; }
body.sidebar-compact .nav-link-item { justify-content: center; }
body.sidebar-compact .sub-nav { padding-left: 0; }
body.sidebar-compact .brand { justify-content: center; padding-inline: 0; }
.sidebar-backdrop { display: none; }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 1030; height: var(--topbar-h); display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(12px, 2vw, 28px); background: color-mix(in srgb, var(--app-body-bg) 82%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.btn-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); border: 0; }
.btn-icon:hover { background: rgba(var(--app-primary-rgb), .1); color: var(--app-primary); }
.page-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.page-heading i { color: var(--app-primary); }
.page-heading h1 { font-size: 1.12rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.global-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.global-search input { padding-left: 40px; border-radius: 40px; background: var(--surface); border-color: var(--line); }
.global-search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .7rem; background: var(--app-body-bg); color: var(--muted); border: 1px solid var(--line); }
.search-results { width: 100%; max-height: 420px; overflow-y: auto; margin-top: 6px !important; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.user-chip { display: flex; align-items: center; gap: 8px; border-radius: 40px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .88rem; }
.user-chip img, .avatar-initial { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-initial { display: grid; place-items: center; background: var(--app-primary); color: #fff; font-weight: 700; }

.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px clamp(14px, 2.4vw, 32px); border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.app-footer a { color: inherit; }

/* ---------------- Tarjetas y tablero ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--app-radius); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--app-radius); padding: 20px; }
.panel h3 { font-size: 1rem; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.panel h3 i { color: var(--app-primary); }
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--app-radius); overflow: hidden; }
.kpi { padding: 18px 20px; border-right: 1px solid var(--line); text-decoration: none; color: inherit; display: block; }
.kpi:last-child { border-right: 0; }
.kpi:hover { background: rgba(var(--app-primary-rgb), .04); }
.kpi .v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.kpi .l i { color: var(--app-primary); }
.hero-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 22px 24px; border-radius: var(--app-radius);
  background: var(--app-sidebar-bg); color: #fff; position: relative; overflow: hidden; }
.hero-value .amount { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.hero-value p { margin: 0; color: var(--app-sidebar-text); }
.hero-value::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border: 22px solid var(--app-accent); border-radius: 50%; opacity: .18; }
.chart-box { position: relative; height: 260px; }
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.list-clean li:last-child { border-bottom: 0; }
.list-clean .ico { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(var(--app-primary-rgb), .1); color: var(--app-primary); font-size: .85rem; }
.list-clean small { color: var(--muted); }

/* Etiqueta de activo: el elemento distintivo del sistema */
.asset-tag { display: inline-flex; align-items: center; font-weight: 700; font-size: .8rem; letter-spacing: .02em; padding: 2px 9px 2px 7px;
  border-radius: 4px; background: color-mix(in srgb, var(--app-accent) 16%, var(--surface)); border-left: 3px solid var(--app-accent); white-space: nowrap; }

/* ---------------- CRUD ---------------- */
.crud-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.crud-head h2 { font-size: 1.45rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.crud-head h2 i { color: var(--app-primary); }
.crud-head p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.crud-count { color: var(--muted); font-size: .9rem; }
.crud-count span { font-weight: 800; color: var(--ink); font-size: 1.2rem; }
.crud-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--app-radius) var(--app-radius) 0 0; }
.crud-search { max-width: 380px; flex: 1 1 240px; }
.crud-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.crud-table-wrap { background: var(--surface); border: 1px solid var(--line); min-height: 160px; }
.crud.loading .crud-table-wrap { opacity: .55; pointer-events: none; }
.crud-table { --bs-table-bg: transparent; font-size: .9rem; }
.crud-table thead th { font-size: .78rem; font-weight: 700; color: var(--muted); background: color-mix(in srgb, var(--app-body-bg) 60%, var(--surface)); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.crud-table th.sortable { cursor: pointer; user-select: none; }
.crud-table th.sortable i { opacity: .35; font-size: .7rem; }
.crud-table td { border-color: var(--line); }
.crud-table td.inline-ok { cursor: cell; }
.crud-table td.inline-ok:hover { box-shadow: inset 0 -2px 0 rgba(var(--app-primary-rgb), .35); }
.crud-table .col-check { width: 36px; }
.crud-table .col-actions { width: 1%; white-space: nowrap; }
.crud-table tr.flash td { animation: flash 1.2s ease; }
@keyframes flash { from { background: color-mix(in srgb, var(--app-accent) 30%, transparent); } }
.crud-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--app-radius) var(--app-radius); }
.crud-hint { font-size: .78rem; color: var(--muted); margin: 8px 2px 0; }
.thumb { width: 40px; height: 40px; border-radius: calc(var(--app-radius) * .6); object-fit: cover; background: var(--app-body-bg); display: inline-grid; place-items: center; color: var(--muted); border: 1px solid var(--line); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); vertical-align: middle; }
.secret .mask { letter-spacing: .1em; }
.inline-editor { min-width: 140px; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 30px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 600; }
.chip:hover { border-color: var(--app-primary); color: var(--app-primary); }
.chip.active { background: var(--app-primary); border-color: var(--app-primary); color: #fff; }
[data-embedded] .crud-toolbar, .tab-pane .crud-toolbar { border-radius: var(--app-radius) var(--app-radius) 0 0; }

/* Formularios y detalle */
.modal-content { border: 0; border-radius: calc(var(--app-radius) * 1.3); background: var(--surface); }
.modal-header { border-bottom: 1px solid var(--line); }
.modal-header .modal-title i { color: var(--app-primary); }
.modal-footer { border-top: 1px solid var(--line); }
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: 4px; }
.form-control, .form-select { border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--app-primary); box-shadow: 0 0 0 .2rem rgba(var(--app-primary-rgb), .15); }
.image-field { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.image-preview { width: 120px; height: 120px; border-radius: var(--app-radius); border: 2px dashed var(--line); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 2rem; background: var(--app-body-bg); flex: none; }
.image-preview.drag { border-color: var(--app-primary); background: rgba(var(--app-primary-rgb), .08); }
.image-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.image-actions { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; flex: 1; min-width: 220px; }
.image-actions .progress, .image-actions small { flex-basis: 100%; }
.detail-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.detail-img { width: 96px; height: 96px; object-fit: contain; border-radius: var(--app-radius); background: #fff; border: 1px solid var(--line); flex: none; }
.placeholder-icon { display: grid; place-items: center; font-size: 2rem; color: var(--app-primary); background: rgba(var(--app-primary-rgb), .08); }
.detail-tabs { --bs-nav-underline-link-active-color: var(--app-primary); border-bottom: 1px solid var(--line); flex-wrap: nowrap; overflow-x: auto; }
.detail-tabs .nav-link { white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 24px; margin: 0; }
.detail-grid > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-grid .wide { grid-column: 1 / -1; }
.detail-grid dt { font-size: .76rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.detail-grid dd { margin: 0; word-break: break-word; }
.detail-grid .pre { white-space: pre-wrap; }
.json-table th { width: 220px; font-weight: 600; text-transform: capitalize; }

/* Línea de tiempo */
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 16px; }
.timeline li::before { content: ''; position: absolute; left: -27px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--tl, var(--app-primary)); }
.timeline .when { font-size: .78rem; color: var(--muted); }

/* Buscador web */
.web-result { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.web-result img { width: 92px; height: 92px; object-fit: cover; border-radius: calc(var(--app-radius) * .7); flex: none; }
.web-result h6 { margin: 0 0 4px; font-weight: 700; }
.web-result p { margin: 0 0 4px; color: var(--ink); font-size: .9rem; max-width: 80ch; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.img-card { margin: 0; border: 1px solid var(--line); border-radius: var(--app-radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.img-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.img-card figcaption { padding: 8px; display: flex; flex-direction: column; font-size: .8rem; min-width: 0; }
.img-card small { color: var(--muted); font-size: .72rem; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.link-tile { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--app-radius); text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 600; font-size: .9rem; }
.link-tile:hover { border-color: var(--app-primary); color: var(--app-primary); }
.link-tile i { color: var(--app-primary); width: 20px; text-align: center; }

/* Módulos, apariencia, actualizaciones */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.module-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--app-radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.module-card.off { opacity: .65; }
.module-card .mi { width: 44px; height: 44px; border-radius: calc(var(--app-radius) * .8); display: grid; place-items: center; background: rgba(var(--app-primary-rgb), .1); color: var(--app-primary); font-size: 1.2rem; flex: none; }
.module-card h4 { font-size: 1rem; font-weight: 700; margin: 0; }
.module-card p { font-size: .85rem; color: var(--muted); margin: 0; flex: 1; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--app-radius); padding: 28px; text-align: center; color: var(--muted); cursor: pointer; background: var(--surface); }
.dropzone:hover, .dropzone.drag { border-color: var(--app-primary); color: var(--app-primary); background: rgba(var(--app-primary-rgb), .04); }
.dropzone i { font-size: 2rem; display: block; margin-bottom: 8px; }
.preset { width: 100%; border: 1px solid var(--line); border-radius: var(--app-radius); padding: 8px; background: var(--surface); text-align: left; font-size: .8rem; font-weight: 600; }
.preset span { display: flex; height: 22px; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.preset span i { flex: 1; }
.preset:hover { border-color: var(--app-primary); }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type=color] { width: 46px; height: 38px; padding: 3px; flex: none; }
.settings-nav .nav-link { color: var(--ink); border-radius: calc(var(--app-radius) * .8); text-align: left; font-weight: 600; }
.settings-nav .nav-link.active { background: rgba(var(--app-primary-rgb), .1); color: var(--app-primary); }

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: rgba(var(--app-primary-rgb), .45); margin-bottom: 12px; }
.empty-state.small { padding: 28px 10px; }
.empty-state.small i { font-size: 2rem; }
.empty-state h2 { color: var(--ink); font-weight: 800; }

/* Avisos */
.toast { color: #fff; border-radius: var(--app-radius); }
.toast-success { background: var(--app-success); }
.toast-danger { background: var(--app-danger); }
.toast-warning { background: #B7791F; }
.toast-info { background: var(--app-primary); }
.toast .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* ---------------- Inicio de sesión ---------------- */
.login-page { background: var(--app-body-bg); }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--app-sidebar-bg) center / cover no-repeat;
  background-image: radial-gradient(circle at 85% 15%, rgba(var(--app-primary-rgb), .9), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 48px); }
.login-art h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: 24px 0 6px; }
.login-art p { font-size: 1.1rem; opacity: .85; }
.login-logo { max-height: 72px; max-width: 220px; object-fit: contain; background: #fff; padding: 8px 12px; border-radius: var(--app-radius); }
.login-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.login-points li { display: flex; gap: 12px; align-items: center; opacity: .92; }
.login-points i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--app-accent); }
.asset-tag-deco { align-self: flex-start; display: flex; gap: 14px; padding: 8px 14px; border-left: 4px solid var(--app-accent); background: rgba(255,255,255,.08); font-weight: 700; font-size: .8rem; letter-spacing: .04em; }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 410px; }
.login-card h1 { font-weight: 800; font-size: 1.8rem; letter-spacing: -.02em; }
.login-credit { margin-top: 28px; font-size: .78rem; color: var(--muted); text-align: center; }
.login-credit a { color: inherit; }

/* ---------------- Responsivo ---------------- */
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; }
  .main { margin-left: 0 !important; }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1035; }
  body.sidebar-compact .brand-text, body.sidebar-compact .nav-link-item span, body.sidebar-compact .nav-section { display: revert; }
  .global-search { max-width: none; }
  .global-search kbd { display: none; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
@media (max-width: 640px) {
  .page-heading h1 { display: none; }
  .topbar { gap: 6px; }
  .kpi { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .sidebar, .topbar, .app-footer, .crud-toolbar, .crud-footer, .col-actions, .col-check { display: none !important; } .main { margin: 0 !important; } }
