/* =====================================================================
   ArcelorApp - capa de diseno sobre SmartAdmin (Bootstrap 4).
   Basada en el buzon publico de webapp (clases bp-*), con los colores de
   ArcelorMittal: naranja #FF3700 y carbon #33373D.
   Se carga despues de app.bundle.css y cust-theme-arcelor.css.
   Prefijo de clases: ap-*
   ===================================================================== */
:root {
    --ap-p: #33373D;            /* carbon: encabezados, menu, superficies oscuras */
    --ap-p-2: #24272c;
    --ap-on-p: #ffffff;
    --ap-accent: #FF3700;       /* naranja de marca: acentos, iconos, decorado */
    --ap-accent-strong: #D52E00;/* naranja para botones y texto (contraste AA con blanco) */
    --ap-accent-soft: #fff0eb;
    --ap-ink: #1f2329;
    --ap-muted: #5f6670;
    --ap-line: #e4e6ea;
    --ap-bg: #f4f5f7;
    --ap-tint: #fff4f0;
    --ap-ok: #1a9b6c;
    --ap-ok-bg: #e8f7f0;
    --ap-err: #c93a3a;
    --ap-err-bg: #fdeeee;
    --ap-warn: #a86400;
    --ap-warn-bg: #fff5e0;
    --ap-radius: 16px;
    --ap-shadow: 0 10px 34px rgba(31, 35, 41, .08);
}

/* ---------- Base ---------- */
body { color: var(--ap-ink); }
.ap-muted { color: var(--ap-muted) !important; }
.ap-accent { color: var(--ap-accent-strong) !important; }
a { color: var(--ap-accent-strong); }
a:hover { color: #a82400; }

/* ---------- Encabezado oscuro con circulos (login, reset, titulo de pagina) ---------- */
.ap-hero { position: relative; background: var(--ap-p); color: var(--ap-on-p); overflow: hidden; }
.ap-hero::before, .ap-hero::after { content: ""; position: absolute; border-radius: 50%; background: var(--ap-accent); pointer-events: none; }
.ap-hero::before { width: 520px; height: 520px; right: -170px; top: -280px; opacity: .22; filter: blur(2px); }
.ap-hero::after { width: 300px; height: 300px; left: -120px; bottom: -190px; opacity: .14; }
.ap-hero > * { position: relative; z-index: 1; }
.ap-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 500; opacity: .8; }
.ap-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); border-radius: 999px; padding: 5px 13px; font-size: 13px; color: inherit; }
.ap-pill i { color: var(--ap-accent); }

/* Titulo de cada pantalla interna */
.ap-pagehead { border-radius: var(--ap-radius); padding: 22px 26px 24px; margin-bottom: 22px; box-shadow: var(--ap-shadow); }
.ap-pagehead h1 { color: #fff; font-size: 22px; font-weight: 500; margin: 2px 0 0; line-height: 1.25; text-wrap: balance; }
.ap-pagehead p { margin: 6px 0 0; opacity: .82; font-size: 14px; max-width: 760px; }
.ap-pagehead .ap-pagehead-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: var(--ap-accent); flex-shrink: 0; }
.ap-pagehead .ap-pagehead-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-self: center; }

/* ---------- Tarjetas ---------- */
.ap-card { background: #fff; border-radius: var(--ap-radius); box-shadow: var(--ap-shadow); border: 1px solid var(--ap-line); }
.ap-card-pad { padding: 24px 26px; }
.ap-card-head { display: flex; align-items: center; gap: 12px; padding: 18px 26px; border-bottom: 1px solid var(--ap-line); }
.ap-card-head h2 { font-size: 16px; font-weight: 500; margin: 0; color: var(--ap-ink); }
.ap-card-head .ap-card-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--ap-tint); color: var(--ap-accent-strong); display: inline-flex; align-items: center; justify-content: center; }
.ap-card-head .ap-card-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Paneles de SmartAdmin con el mismo look */
.panel { border-radius: var(--ap-radius); border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow); overflow: hidden; }
.panel-hdr { border-bottom: 1px solid var(--ap-line); background: #fff; }
.panel-hdr h2 { font-weight: 500; }

/* ---------- Botones ---------- */
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; background: var(--ap-accent-strong); color: #fff; font-size: 15px; font-weight: 500; padding: 12px 24px; cursor: pointer; box-shadow: 0 8px 20px rgba(213, 46, 0, .22); transition: transform .15s, box-shadow .15s, opacity .2s, background .15s; text-decoration: none; }
.ap-btn:hover:not(:disabled), .ap-btn:focus:not(:disabled) { color: #fff; text-decoration: none; background: #bf2900; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(213, 46, 0, .28); }
.ap-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.ap-btn:focus-visible { outline: 3px solid var(--ap-accent); outline-offset: 2px; }
.ap-btn-block { width: 100%; }
.ap-btn-lg { padding: 14px 28px; font-size: 16px; }
.ap-btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.ap-btn-ghost { background: #fff; color: var(--ap-ink); border: 1.5px solid var(--ap-line); box-shadow: none; }
.ap-btn-ghost:hover:not(:disabled), .ap-btn-ghost:focus:not(:disabled) { background: var(--ap-bg); color: var(--ap-ink); box-shadow: none; }
.ap-btn-dark { background: var(--ap-p); box-shadow: none; }
.ap-btn-dark:hover:not(:disabled) { background: var(--ap-p-2); }
.ap-btn-onhero { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); box-shadow: none; }
.ap-btn-onhero:hover:not(:disabled) { background: rgba(255,255,255,.22); }

/* Los botones primarios de Bootstrap/SmartAdmin usan el naranja con buen contraste */
.btn-primary { background-color: var(--ap-accent-strong); border-color: var(--ap-accent-strong); }
.btn-primary:hover, .btn-primary:focus { background-color: #bf2900; border-color: #bf2900; }

/* ---------- Formularios ---------- */
.ap-label { font-weight: 500; font-size: 12.5px; color: var(--ap-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 7px; display: block; }
.ap-input, .ap-form .form-control, .ap-form .custom-select { height: 46px; border-radius: 12px; border: 1.5px solid var(--ap-line); font-size: 15px; padding: 0 14px; width: 100%; color: var(--ap-ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.ap-form textarea.form-control { height: auto; padding: 10px 14px; }
.ap-input::placeholder, .ap-form .form-control::placeholder { color: #9aa1ab; }
.ap-input:focus, .ap-form .form-control:focus, .ap-form .custom-select:focus { outline: 0; border-color: var(--ap-accent); box-shadow: 0 0 0 4px rgba(255, 55, 0, .14); }
.ap-input.is-err, .ap-form .is-invalid { border-color: var(--ap-err) !important; }
.ap-field { position: relative; margin-bottom: 16px; }
.ap-field-ico { position: absolute; left: 15px; top: 37px; color: #9aa1ab; pointer-events: none; }
.ap-field.has-ico .ap-input { padding-left: 42px; }
.ap-hint { color: var(--ap-muted); font-size: 13px; margin: 6px 0 0; }
.ap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.ap-grid .ap-col-2 { grid-column: span 2; }
.ap-grid .ap-col-3 { grid-column: 1 / -1; }

/* Pestanas con deslizador (como Nacional / Extranjera del buzon) */
.ap-tabs { position: relative; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; background: var(--ap-bg); border-radius: 12px; padding: 5px; margin-bottom: 22px; }
.ap-tab { position: relative; z-index: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 500; font-size: 14.5px; color: var(--ap-muted); cursor: pointer; transition: color .2s; }
.ap-tab[aria-selected="true"] { color: #fff; }
.ap-tab:focus-visible { outline: 2px solid var(--ap-accent); outline-offset: 2px; }
.ap-glider { position: absolute; top: 5px; bottom: 5px; left: 5px; background: var(--ap-p); border-radius: 9px; box-shadow: 0 4px 12px rgba(0,0,0,.18); transition: transform .28s cubic-bezier(.4,0,.2,1); }

/* ---------- Mensajes ---------- */
.ap-msg { display: none; margin: 12px 0 0; border-radius: 12px; padding: 11px 14px; font-size: 14px; animation: ap-in .3s ease both; }
.ap-msg.is-on, .ap-msg.is-ok, .ap-msg.is-err, .ap-msg.is-warn { display: flex; gap: 10px; align-items: flex-start; }
.ap-msg.is-ok { background: var(--ap-ok-bg); color: #0d6b49; }
.ap-msg.is-err { background: var(--ap-err-bg); color: #9c2424; }
.ap-msg.is-warn { background: var(--ap-warn-bg); color: #7a4a00; }
.ap-msg i { margin-top: 2px; }

/* ---------- Pasos numerados ---------- */
.ap-step { display: grid; grid-template-columns: 34px 1fr; gap: 0 14px; padding-bottom: 26px; position: relative; }
.ap-step:last-of-type { padding-bottom: 0; }
.ap-step::before { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--ap-line); }
.ap-step:last-of-type::before { display: none; }
.ap-num { width: 34px; height: 34px; border-radius: 50%; background: var(--ap-tint); color: var(--ap-accent-strong); font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s; }
.ap-step.is-done .ap-num { background: var(--ap-ok); color: #fff; }
.ap-step h2 { font-size: 16px; font-weight: 500; line-height: 34px; margin: 0; }
.ap-step-body { grid-column: 2; }
.ap-step.is-locked .ap-step-body { opacity: .45; pointer-events: none; user-select: none; }
.ap-step.is-locked .ap-num { background: var(--ap-bg); color: var(--ap-muted); }

/* ---------- Zona para soltar archivos ---------- */
.ap-drop { border: 2px dashed #cfd3d9; border-radius: var(--ap-radius); background: var(--ap-tint); padding: 26px 20px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.ap-drop:hover, .ap-drop:focus-visible { border-color: var(--ap-accent); outline: 0; }
.ap-drop.is-over { border-color: var(--ap-accent); border-style: solid; background: #fff; transform: scale(1.01); box-shadow: 0 0 0 5px rgba(255, 55, 0, .12); }
.ap-drop-ico { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--ap-accent-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 6px 16px rgba(31,35,41,.10); margin-bottom: 10px; transition: transform .25s; }
.ap-drop.is-over .ap-drop-ico { transform: translateY(-4px); }
.ap-drop strong { display: block; font-size: 15.5px; font-weight: 500; }
.ap-drop span { color: var(--ap-muted); font-size: 13px; }
.ap-drop u { color: var(--ap-accent-strong); text-decoration: none; font-weight: 500; }
.ap-drop.has-file { border-style: solid; border-color: #a9dfc8; background: var(--ap-ok-bg); }
.ap-drop.has-file .ap-drop-ico { background: var(--ap-ok); color: #fff; }

.ap-files { list-style: none; padding: 0; margin: 12px 0 0; }
.ap-file { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--ap-line); border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; background: #fff; animation: ap-in .28s ease both; }
.ap-file-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--ap-tint); color: var(--ap-accent-strong); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ap-file-name { font-weight: 500; word-break: break-all; line-height: 1.3; }
.ap-file-meta { font-size: 12.5px; color: var(--ap-muted); }

/* Resultado con palomita animada */
.ap-resumen { display: none; align-items: center; gap: 14px; border-radius: var(--ap-radius); padding: 16px 18px; margin-top: 18px; animation: ap-in .35s ease both; }
.ap-resumen.is-on { display: flex; }
.ap-resumen.is-ok { background: var(--ap-ok-bg); color: #0d6b49; }
.ap-resumen.is-err { background: var(--ap-err-bg); color: #9c2424; }
.ap-resumen strong { display: block; font-size: 16px; font-weight: 500; }
.ap-check { width: 46px; height: 46px; flex-shrink: 0; }
.ap-check circle { stroke: currentColor; stroke-width: 3; fill: none; stroke-dasharray: 151; stroke-dashoffset: 151; animation: ap-draw .5s ease forwards; }
.ap-check path { stroke: currentColor; stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ap-draw .35s .4s ease forwards; }

/* ---------- Tablas ---------- */
.ap-table-wrap { border-radius: 12px; border: 1px solid var(--ap-line); overflow: auto; }
.ap-table { width: 100%; margin: 0; font-size: 14px; border-collapse: separate; border-spacing: 0; }
.ap-table thead th { background: var(--ap-bg); color: var(--ap-muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--ap-line); padding: 11px 12px; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.ap-table td { padding: 11px 12px; border-bottom: 1px solid var(--ap-line); vertical-align: middle; }
.ap-table tbody tr:last-child td { border-bottom: 0; }
.ap-table tbody tr:hover td { background: #fbfbfc; }
.ap-table tbody tr.is-selected td { background: var(--ap-tint); }
.ap-num-col { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-empty { text-align: center; color: var(--ap-muted); padding: 34px 16px !important; }
.ap-empty i { display: block; font-size: 28px; color: #c3c8cf; margin-bottom: 8px; }
table.dataTable thead th { font-weight: 500; }

/* Etiquetas de estatus */
.ap-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; border-radius: 999px; padding: 3px 10px; font-weight: 500; white-space: nowrap; }
.ap-tag-ok { background: var(--ap-ok-bg); color: #0d6b49; }
.ap-tag-err { background: var(--ap-err-bg); color: #9c2424; }
.ap-tag-warn { background: var(--ap-warn-bg); color: #7a4a00; }
.ap-tag-info { background: #eaf2fd; color: #1d4f91; }
.ap-tag-neutral { background: var(--ap-bg); color: var(--ap-muted); }

/* ---------- Indicadores (inicio, KPIs) ---------- */
.ap-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.ap-kpi { background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); padding: 18px 20px; box-shadow: var(--ap-shadow); }
.ap-kpi-label { font-size: 12.5px; color: var(--ap-muted); text-transform: uppercase; letter-spacing: .06em; }
.ap-kpi-val { font-size: 28px; font-weight: 500; line-height: 1.2; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ap-kpi-sub { font-size: 13px; color: var(--ap-muted); margin-top: 2px; }

/* Accesos rapidos del inicio */
.ap-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ap-tile { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); padding: 18px; color: var(--ap-ink); text-decoration: none; box-shadow: var(--ap-shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.ap-tile:hover, .ap-tile:focus { color: var(--ap-ink); text-decoration: none; transform: translateY(-2px); border-color: #ffc9b8; box-shadow: 0 14px 34px rgba(31,35,41,.12); }
.ap-tile-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ap-tint); color: var(--ap-accent-strong); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.ap-tile strong { display: block; font-weight: 500; font-size: 15px; }
.ap-tile span { color: var(--ap-muted); font-size: 13px; }

/* ---------- Pantallas publicas (login / contrasena) ---------- */
.ap-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--ap-bg); }
.ap-auth-hero { padding: 44px 56px; display: flex; flex-direction: column; }
.ap-auth-hero .ap-logo { height: 74px; width: auto; align-self: flex-start; }
.ap-auth-hero h1 { color: #fff; font-size: 34px; font-weight: 500; line-height: 1.15; margin: auto 0 14px; max-width: 520px; text-wrap: balance; }
.ap-auth-hero p.lead { opacity: .85; font-size: 16px; max-width: 480px; margin-bottom: 22px; }
.ap-auth-hero .ap-auth-foot { margin-top: 40px; font-size: 13px; opacity: .65; }
.ap-auth-hero .ap-auth-foot a { color: #fff; }
.ap-auth-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.ap-auth-card { width: 100%; max-width: 440px; }
.ap-auth-card h2 { font-size: 22px; font-weight: 500; margin: 0 0 4px; }
.ap-auth-card .ap-sub { color: var(--ap-muted); font-size: 14px; margin: 0 0 22px; }
.ap-linkbtn { border: 0; background: none; padding: 0; color: var(--ap-accent-strong); font-weight: 500; font-size: 14px; cursor: pointer; }
.ap-linkbtn:hover { text-decoration: underline; }
.ap-auth-mobile-logo { display: none; }

/* ---------- Menu lateral y encabezado (SmartAdmin) ---------- */
.page-sidebar, .page-logo, .nav-footer { background-color: var(--ap-p); background-image: none; }
.page-sidebar .page-logo { justify-content: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.page-logo .ap-sidebar-logo { height: 40px; width: auto; }
.nav-menu li.active > a { box-shadow: inset 3px 0 0 var(--ap-accent); }
.info-card .ap-avatar { width: 50px; height: 50px; min-width: 50px; font-size: 20px; border: 2px solid rgba(255,255,255,.35); }
.info-card .ap-info-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--ap-p) 0%, #4a4f57 100%); }
.info-card .ap-info-bg::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -50px; top: -70px; background: var(--ap-accent); opacity: .3; }
.ap-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ap-accent-strong); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; text-transform: uppercase; object-fit: cover; }
.ap-avatar-lg { width: 52px; height: 52px; font-size: 20px; }
.page-header .ap-user-name { font-weight: 500; max-width: 220px; }
.page-content { background: var(--ap-bg); }
.page-footer a { color: var(--ap-accent-strong); }

/* ---------- Animaciones y movil ---------- */
@keyframes ap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ap-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 991px) {
    .ap-auth { grid-template-columns: 1fr; }
    .ap-auth-hero { padding: 26px 22px 70px; }
    .ap-auth-hero h1 { font-size: 26px; margin-top: 26px; }
    .ap-auth-hero .ap-auth-foot { display: none; }
    .ap-auth-side { margin-top: -54px; padding: 0 14px 30px; align-items: flex-start; }
    .ap-auth-side .ap-card { width: 100%; }
}
@media (max-width: 767px) {
    .ap-card-pad { padding: 20px 16px; }
    .ap-card-head { padding: 16px; }
    .ap-pagehead { padding: 18px; }
    .ap-pagehead h1 { font-size: 19px; }
    .ap-grid { grid-template-columns: 1fr 1fr; }
    .ap-btn-lg { width: 100%; }
    .ap-auth-hero .ap-logo { height: 56px; }
}

/* ---------- Flujos guiados (alta de facturas y de pagos) ---------- */
.ap-flow .ap-card { margin-bottom: 18px; }
.ap-flow .ap-step { padding-bottom: 0; }
.ap-flow .ap-step::before { display: none; }
.ap-step-head { display: flex; align-items: flex-start; gap: 14px; }
.ap-step-head h2 { font-size: 17px; font-weight: 500; margin: 4px 0 2px; }
.ap-step-head p { color: var(--ap-muted); font-size: 13.5px; margin: 0; }
.ap-step-head .ap-step-state { margin-left: auto; }
.ap-card.is-locked { opacity: .55; }
.ap-card.is-locked .ap-step-body { pointer-events: none; user-select: none; }
.ap-card.is-done .ap-num { background: var(--ap-ok); color: #fff; }
.ap-card.is-current { border-color: #ffc9b8; box-shadow: 0 0 0 4px rgba(255,55,0,.07), var(--ap-shadow); }

/* Lista de requisitos (se palomean solos) */
.ap-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; }
.ap-checklist li { display: inline-flex; align-items: center; gap: 7px; color: var(--ap-muted); }
.ap-checklist li i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c3c8cf; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: transparent; }
.ap-checklist li.ok { color: #0d6b49; }
.ap-checklist li.ok i { background: var(--ap-ok); border-color: var(--ap-ok); color: #fff; }

/* Barra fija de envio */
.ap-sendbar { position: sticky; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border: 1px solid var(--ap-line); border-radius: var(--ap-radius); box-shadow: 0 -6px 26px rgba(31,35,41,.10); padding: 14px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.ap-sendbar .ap-sendbar-info { flex: 1 1 320px; min-width: 0; }
.ap-sendbar .ap-sendbar-info strong { display: block; font-weight: 500; }
.ap-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--ap-accent-strong); color: #fff; font-weight: 600; font-size: 13px; }
.ap-count.is-zero { background: var(--ap-bg); color: var(--ap-muted); }

/* Ayuda contextual dentro de un paso */
.ap-help { display: flex; gap: 10px; background: var(--ap-bg); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--ap-muted); margin-top: 12px; }
.ap-help i { color: var(--ap-accent-strong); margin-top: 2px; }

/* Filas seleccionables */
.ap-table tbody tr.is-selectable { cursor: pointer; }
.ap-table input.ap-check { width: 18px; height: 18px; accent-color: var(--ap-accent-strong); cursor: pointer; vertical-align: middle; }

/* select2 con el mismo look que los campos ap-* */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple { min-height: 46px; border-radius: 12px !important; border: 1.5px solid var(--ap-line) !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 43px; padding-left: 14px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection { border-color: var(--ap-accent) !important; box-shadow: 0 0 0 4px rgba(255,55,0,.14); }
.select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--ap-tint); border: 1px solid #ffc9b8; color: var(--ap-ink); border-radius: 999px; padding: 2px 10px; margin-top: 7px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ap-accent-strong); }
.dataTables_wrapper .dataTables_filter input { border-radius: 10px; border: 1.5px solid var(--ap-line); height: 38px; padding: 0 12px; }
.page-item.active .page-link { background-color: var(--ap-accent-strong); border-color: var(--ap-accent-strong); }
.page-link { color: var(--ap-accent-strong); }

/* Barra de la tabla: "Mostrar N" + exportar */
.dataTables_wrapper .dt-buttons { margin-left: 12px; }
.dataTables_wrapper .dataTables_length select { border-radius: 10px; border: 1.5px solid var(--ap-line); height: 38px; }

/* ---------- Tour guiado (comun/Scripts/ap-tour.js) ---------- */
.ap-tour-tapa { position: fixed; inset: 0; z-index: 4000; }
.ap-tour-luz { position: fixed; z-index: 4001; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(20, 22, 26, .62), 0 0 0 3px var(--ap-accent); pointer-events: none; transition: all .2s ease; }
.ap-tour-globo { position: fixed; z-index: 4002; width: 340px; max-width: calc(100vw - 24px); background: #fff; color: var(--ap-ink); border-radius: 14px; padding: 16px 18px; box-shadow: 0 18px 40px rgba(20, 22, 26, .35); display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--ap-accent); }
.ap-tour-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ap-tour-cab b { font-size: 16px; font-weight: 600; }
.ap-tour-cab span { font-size: 12px; color: var(--ap-muted); white-space: nowrap; }
.ap-tour-globo p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ap-muted); }
.ap-tour-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .ap-tour-luz { transition: none; } }
