/* ==========================================================================
   Censo Residencial - skin inspirado en Cloudbeds sobre la estructura de
   Gentelella (nav-md / left_col / top_nav / right_col / x_panel).
   Puede cargarse después de build/css/custom.min.css de Gentelella.
   ========================================================================== */

:root {
    --primary: #1f5eff;
    --primary-600: #1449d6;
    --primary-50: #eef3ff;
    --navy: #0e1b33;
    --navy-2: #15284a;
    --ink: #1b2537;
    --ink-2: #475467;
    --muted: #7a8699;
    --bg: #f2f4f8;
    --card: #ffffff;
    --line: #e3e7ee;
    --line-2: #eef1f5;
    --ok: #0e9f6e;
    --ok-50: #e6f6ef;
    --warn: #c77800;
    --warn-50: #fff4e0;
    --bad: #d92d20;
    --bad-50: #fdeceb;
    --r-lg: 14px;
    --r: 10px;
    --r-sm: 8px;
    --shadow: 0 1px 2px rgba(14, 27, 51, .04), 0 2px 8px rgba(14, 27, 51, .05);
    --sidebar: 248px;
    --sidebar-sm: 76px;
}

/* ---------------------------------------------------------------- base -- */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Figtree', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}
a { color: var(--primary); }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.fw-600 { font-weight: 600; }
.req { color: var(--bad); }
:focus-visible { outline: 3px solid rgba(31, 94, 255, .35); outline-offset: 2px; }
.text-muted { color: var(--muted) !important; }

/* ------------------------------------------------ estructura Gentelella -- */
.container.body { width: 100%; max-width: 100%; padding: 0; }
.main_container { display: flex; min-height: 100vh; }

.left_col {
    width: var(--sidebar);
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1040;
    display: flex; flex-direction: column;
    background: var(--navy);
    background-image: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    transition: width .2s ease, transform .25s ease;
    overflow-y: auto; overflow-x: hidden;
}
.nav_title { height: 68px; display: flex; align-items: center; padding: 0 18px; flex-shrink: 0; }
.site_title {
    display: flex; align-items: center; gap: 12px;
    color: #fff; font-weight: 700; font-size: 17px; white-space: nowrap;
}
.site_title:hover { color: #fff; text-decoration: none; }
.site_title .logo {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 11px; background: var(--primary);
    display: grid; place-items: center; font-size: 18px; color: #fff;
}

.profile { display: flex; align-items: center; gap: 12px; padding: 10px 18px 18px; }
.profile_pic {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff;
    display: grid; place-items: center; font-weight: 600;
}
.profile_info span { color: rgba(255, 255, 255, .5); font-size: 12px; }
.profile_info h2 { color: #fff; font-size: 14.5px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

.menu_section h3 {
    color: rgba(255, 255, 255, .45); font-size: 12px; font-weight: 600; letter-spacing: .02em;
    padding: 0 22px; margin: 6px 0 8px;
}
.side-menu { list-style: none; padding: 0 12px; margin: 0; display: block; }
.side-menu li { margin-bottom: 2px; }
.side-menu li a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--r);
    color: rgba(255, 255, 255, .72); font-weight: 500; white-space: nowrap;
}
.side-menu li a .fa { width: 20px; text-align: center; font-size: 16px; }
.side-menu li a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.side-menu li.active a { background: var(--primary); color: #fff; }

.sidebar-footer { margin-top: auto; padding: 14px 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sidebar-footer a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r);
    color: rgba(255, 255, 255, .6); white-space: nowrap;
}
.sidebar-footer a .fa { width: 20px; text-align: center; }
.sidebar-footer a:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }

.content_wrap { flex: 1; min-width: 0; margin-left: var(--sidebar); display: flex; flex-direction: column; transition: margin-left .2s ease; }

/* Menú compacto (nav-sm) */
body.nav-sm .left_col { width: var(--sidebar-sm); }
body.nav-sm .content_wrap { margin-left: var(--sidebar-sm); }
body.nav-sm .nav-text { display: none; }
body.nav-sm .side-menu li a, body.nav-sm .sidebar-footer a { justify-content: center; }
body.nav-sm .profile, body.nav-sm .nav_title { justify-content: center; padding-left: 0; padding-right: 0; }

.top_nav {
    height: 68px; position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav_menu { height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.toggle {
    width: 40px; height: 40px; border: 0; border-radius: var(--r);
    background: transparent; color: var(--ink-2); font-size: 18px;
}
.toggle:hover { background: var(--line-2); }
.top-search {
    align-items: center; gap: 10px; flex: 0 1 460px;
    background: var(--bg); border: 1px solid transparent; border-radius: 999px; padding: 0 16px; height: 40px;
}
.top-search:focus-within { background: #fff; border-color: var(--primary); }
.top-search .fa { color: var(--muted); }
.top-search input { border: 0; background: transparent; width: 100%; outline: none; color: var(--ink); }
.user-profile { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; border-radius: 999px; padding: 4px 12px 4px 4px; }
.user-profile:hover { background: var(--line-2); }
.user-profile:focus { box-shadow: none; }

.avatar-sm {
    display: inline-grid; place-items: center; vertical-align: middle;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: 12.5px;
}

.right_col { flex: 1; padding: 26px 28px 10px; }
.app-footer {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding: 16px 28px 22px; font-size: 13px; color: var(--ink-2);
}

.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
    .left_col { transform: translateX(-100%); width: var(--sidebar); }
    body.sidebar-open .left_col { transform: none; }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(14, 27, 51, .45); z-index: 1035; }
    .content_wrap, body.nav-sm .content_wrap { margin-left: 0; }
    body.nav-sm .nav-text { display: initial; }
    .right_col { padding: 18px 14px 8px; }
    .nav_menu { padding: 0 12px; }
    .app-footer { padding: 14px; }
}

/* ------------------------------------------------------ títulos página -- */
.page-title {
    display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px;
    margin-bottom: 20px;
}
.page-title h3 { font-size: 24px; margin: 0 0 4px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--ink-2); }
.crumbs .fa { margin: 0 8px; }

/* -------------------------------------------------------------- paneles -- */
.x_panel {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden;
}
.x_title {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 15px 20px; border-bottom: 1px solid var(--line-2);
}
.x_title h2 { font-size: 15.5px; font-weight: 700; margin: 0; }
.x_title h2 .fa { color: var(--muted); margin-right: 6px; }
.x_title h2 small { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 13px; }
.x_content { padding: 20px; }

/* -------------------------------------------------------- formularios -- */
label { font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.form-control, .custom-select {
    height: 42px; border-radius: var(--r-sm); border: 1px solid #d3d9e3;
    color: var(--ink); font-size: 14.5px; background-color: #fff;
}
textarea.form-control { height: auto; min-height: 90px; }
.form-control:focus, .custom-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31, 94, 255, .12);
}
.form-control[readonly] { background: var(--bg); }
.form-control.is-invalid, .custom-select.is-invalid { border-color: var(--bad); background-image: none; padding-right: .75rem; }
.invalid-feedback { color: var(--bad); font-size: 12.5px; }
#f_placa { text-transform: uppercase; }

.input-icon { position: relative; }
.input-icon > .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .form-control { padding-left: 40px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 6px 10px; }

.form-section { padding-bottom: 8px; margin-bottom: 22px; border-bottom: 1px dashed var(--line); }
.form-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.form-section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.fs-icon {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--r);
    background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 16px;
}
.form-section-head h4 { font-size: 16px; margin: 0 0 2px; }
.form-section-head p { font-size: 13px; color: var(--muted); margin: 0; }

.form-actions {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 20px; background: #fafbfd; border-top: 1px solid var(--line-2);
    position: sticky; bottom: 0; z-index: 5;
}

/* --------------------------------------------------------------- botones -- */
.btn { border-radius: var(--r-sm); font-weight: 600; padding: .5rem 1rem; font-size: 14px; }
.btn-sm { padding: .32rem .7rem; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: .7rem 1.4rem; font-size: 15.5px; border-radius: var(--r); }
.btn .fa { margin-right: 4px; }
.btn-sm .fa:only-child, .btn .fa:only-child { margin-right: 0; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-600); border-color: var(--primary-600); }
.btn-primary:not(:disabled):not(.disabled):active { background: var(--primary-600); border-color: var(--primary-600); }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-light:hover { background: var(--line-2); border-color: #d6dce6; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.btn-link { font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.btn-row form { margin: 0; }

/* ------------------------------------------------------------- badges -- */
.badge { font-weight: 600; font-size: 12px; padding: .35em .7em; border-radius: 999px; }
.badge-soft-success { background: var(--ok-50); color: var(--ok); }
.badge-soft-warning { background: var(--warn-50); color: var(--warn); }
.badge-soft-danger { background: var(--bad-50); color: var(--bad); }
.badge-soft-muted { background: var(--line-2); color: var(--ink-2); }

/* -------------------------------------------------------------- tablas -- */
.table { color: var(--ink); }
.table thead th {
    background: #fafbfd; border-top: 0; border-bottom: 1px solid var(--line);
    color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 12px 20px; white-space: nowrap;
}
.table td { padding: 13px 20px; vertical-align: middle; border-top: 1px solid var(--line-2); }
.table-hover tbody tr:hover { background: #f7f9fd; }
tr[data-href] { cursor: pointer; }
.apt-cell { display: flex; flex-direction: column; }
.apt-num { font-weight: 700; font-size: 15.5px; color: var(--ink); }
a.apt-num:hover { color: var(--primary); }
.table-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.pagination .page-link { border: 0; border-radius: var(--r-sm) !important; margin: 0 2px; color: var(--ink-2); min-width: 32px; text-align: center; }
.pagination .page-item.active .page-link { background: var(--primary); color: #fff; }

/* ----------------------------------------------------------- búsqueda -- */
.search-panel { padding: 22px; }
.search-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search-main { position: relative; flex: 1 1 380px; }
.search-main .fa { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; }
.search-main .form-control { height: 52px; padding-left: 48px; font-size: 16px; border-radius: var(--r); }
.search-form .custom-select { height: 52px; width: auto; min-width: 170px; border-radius: var(--r); }
.search-form .btn-primary { height: 52px; padding: 0 26px; border-radius: var(--r); }

.seg { display: inline-flex; background: var(--bg); border-radius: var(--r); padding: 4px; height: 52px; align-items: center; }
.seg label { margin: 0; padding: 0 14px; height: 44px; display: flex; align-items: center; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; color: var(--ink-2); }
.seg label.on { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:focus-within { outline: 3px solid rgba(31, 94, 255, .35); }

.progress-strip {
    display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center;
    margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2);
}
.ps-main { flex: 1 1 320px; font-size: 13.5px; }
.ps-main .progress { height: 8px; border-radius: 999px; background: var(--line-2); margin-top: 8px; }
.ps-main .progress-bar { background: var(--primary); border-radius: 999px; }
.ps-item { display: flex; align-items: baseline; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.ps-num { font-size: 20px; font-weight: 700; color: var(--ink); }

.activity-list { list-style: none; margin: 0; padding: 6px 0; }
.activity-list a { display: flex; gap: 12px; align-items: center; padding: 10px 18px; color: var(--ink); }
.activity-list a:hover { background: #f7f9fd; text-decoration: none; }
.act-body { display: flex; flex-direction: column; min-width: 0; }
.act-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-date { font-size: 12.5px; color: var(--muted); }
.apt-chip {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    min-width: 54px; height: 32px; padding: 0 10px; border-radius: var(--r-sm);
    background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: 13px;
}
.apt-chip-lg { height: 36px; font-size: 14.5px; }

/* ------------------------------------------------------------ pestañas -- */
.tabs-soft { border: 0; gap: 6px; margin-bottom: 14px; }
.tabs-soft .nav-link {
    border: 1px solid transparent; border-radius: var(--r); color: var(--ink-2); font-weight: 600; padding: 9px 16px;
}
.tabs-soft .nav-link:hover { background: #fff; border-color: var(--line); }
.tabs-soft .nav-link.active { background: #fff; color: var(--primary); border-color: var(--line); box-shadow: var(--shadow); }
.tabs-soft .nav-link.disabled { opacity: .5; }
.tab-count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--line-2); font-size: 12px; text-align: center; margin-left: 4px; }
.tabs-soft .nav-link.active .tab-count { background: var(--primary-50); }
.filter-box { flex: 1 1 240px; max-width: 340px; }

/* --------------------------------------------------------- listas meta -- */
.meta-list + .btn-row { margin-top: 14px; }
.table td .btn { white-space: nowrap; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 13.5px; }
.meta-list dt { font-weight: 500; color: var(--muted); }
.meta-list dd { margin: 0; text-align: right; font-weight: 600; }
.panel-danger-zone { border-color: #f6d2cf; }
.panel-danger-zone h6 { font-weight: 700; color: var(--bad); margin-bottom: 4px; }

/* -------------------------------------------------------- estado vacío -- */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state > .fa { font-size: 30px; color: var(--primary); background: var(--primary-50); width: 64px; height: 64px; line-height: 64px; border-radius: 18px; margin-bottom: 14px; }
.empty-state h5 { font-size: 16px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 14px; }

/* --------------------------------------------------------- modales -- */
.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(14, 27, 51, .18); }
.modal-header { border-bottom: 1px solid var(--line-2); padding: 16px 22px; }
.modal-title { font-weight: 700; font-size: 17px; }
.modal-body { padding: 20px 22px; }
.modal-footer { border-top: 1px solid var(--line-2); padding: 14px 22px; }
.confirm-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--bad-50); color: var(--bad); display: grid; place-items: center; font-size: 22px; }
.alert { border-radius: var(--r); border: 0; }
.alert-success { background: var(--ok-50); color: #05603a; }
.alert-danger { background: var(--bad-50); color: #912018; }
.alert-warning { background: var(--warn-50); color: #7a4a00; }
.alert-info { background: var(--primary-50); color: #1a3fa0; }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 30px rgba(14, 27, 51, .12); padding: 6px; }
.dropdown-item { border-radius: var(--r-sm); padding: 8px 12px; }
.dropdown-item .fa { width: 18px; color: var(--muted); }

/* ----------------------------------------------------------- toasts -- */
#toast-zone { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.app-toast {
    display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 360px;
    padding: 12px 16px; border-radius: var(--r); background: var(--navy); color: #fff; font-weight: 500;
    box-shadow: 0 10px 30px rgba(14, 27, 51, .25);
    opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.app-toast.show { opacity: 1; transform: none; }
.app-toast.is-ok .fa { color: #4ade80; }
.app-toast.is-error .fa { color: #fca5a5; }

/* ------------------------------------------------------------- login -- */
.login-page { background: #fff; }
.login-shell { display: flex; min-height: 100vh; }
.login-aside {
    flex: 0 0 44%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    padding: 44px 52px; color: #fff; background: var(--navy);
    background-image: radial-gradient(circle at 85% 10%, rgba(31, 94, 255, .45), transparent 45%), linear-gradient(180deg, var(--navy), var(--navy-2));
}
.login-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.login-brand .logo { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); display: grid; place-items: center; }
.login-aside h1 { color: #fff; font-size: 34px; line-height: 1.15; max-width: 440px; margin-bottom: 14px; }
.login-aside p { color: rgba(255, 255, 255, .7); font-size: 16px; max-width: 420px; }
.login-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: rgba(255, 255, 255, .8); }
.login-points .fa { width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 9px; background: rgba(255, 255, 255, .1); margin-right: 10px; }
.login-main { flex: 1; display: grid; place-items: center; padding: 30px 20px; background: var(--bg); }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 26px; margin-bottom: 4px; }
.login-foot { text-align: center; color: var(--muted); font-size: 12.5px; margin: 22px 0 0; }
@media (max-width: 860px) {
    .login-shell { flex-direction: column; }
    .login-aside { flex: none; padding: 28px 24px; }
    .login-aside h1 { font-size: 24px; }
    .login-points { display: none; }
}

/* ------------------------------------------------- formulario público -- */
.public-page { background: var(--bg); }
.public-header { background: var(--navy); padding: 14px 0; }
.public-inner { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.public-header .public-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.public-header .apt-chip { background: rgba(255, 255, 255, .12); color: #fff; }
.public-main { padding-top: 28px; padding-bottom: 40px; }
.public-intro { margin-bottom: 22px; }
.public-intro h1 { font-size: 28px; margin-bottom: 6px; }
.public-intro p { color: var(--ink-2); max-width: 640px; }
.res-row { padding: 14px 0 2px; border-top: 1px dashed var(--line); }
.res-row:first-child { border-top: 0; padding-top: 0; }
.btn-icon-del { flex-shrink: 0; margin-left: 6px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--muted); padding: 0; }
.btn-icon-del:hover { color: var(--bad); border-color: #f3c3bf; background: var(--bad-50); }
.public-submit {
    position: sticky; bottom: 0; padding: 14px 0; text-align: right;
    background: linear-gradient(180deg, rgba(242, 244, 248, 0), var(--bg) 35%);
}
.custom-control-label { font-weight: 500; color: var(--ink-2); font-size: 13.5px; }
.custom-control-input:checked ~ .custom-control-label::before { background: var(--primary); border-color: var(--primary); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status-card { text-align: center; padding: 48px 28px; max-width: 560px; margin: 30px auto; }
.status-card h2 { font-size: 22px; }
.status-icon { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 28px; }
.status-icon.ok { background: var(--ok-50); color: var(--ok); }
.status-icon.warn { background: var(--warn-50); color: var(--warn); }
@media (max-width: 575.98px) {
    .public-submit .btn { width: 100%; }
    .search-form .custom-select, .seg, .search-form .btn-primary { width: 100%; }
    .seg label { flex: 1; justify-content: center; }
}

/* ---------------------------------------------------- movimiento / print -- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
    .left_col, .top_nav, .app-footer, .tabs-soft, .form-actions, .page-title .btn, .col-xl-4, .x_title .btn, .x_title .filter-box, #toast-zone { display: none !important; }
    .content_wrap { margin-left: 0 !important; }
    .col-xl-8 { max-width: 100%; flex: 0 0 100%; }
    .tab-content > .tab-pane { display: block !important; opacity: 1 !important; }
    .x_panel { box-shadow: none; break-inside: avoid; }
    body { background: #fff; }
    .form-control, .custom-select { border: 0; border-bottom: 1px solid #ccc; border-radius: 0; }
}

/* ------------------------------------------------ enlace global -- */
.subhead { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 4px 0 10px; }
.mini-log { list-style: none; padding: 0; margin: 0; }
.mini-log li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-top: 1px solid var(--line-2); }
.mini-log li:first-child { border-top: 0; }
.link-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.link-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.link-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.link-status.on .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-50); }
.link-status.off .dot { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-50); }
.qr-box { width: 172px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.qr-box img, .qr-box canvas { width: 150px !important; height: 150px !important; display: block; }
.stat-inline { display: flex; flex-wrap: wrap; gap: 8px 28px; }
@media (max-width: 767.98px) { .link-hero { grid-template-columns: 1fr; } }

/* identificación pública */
.ident-card { max-width: 560px; margin: 0 auto 20px; }
.ident-card .x_content { padding: 28px; }
.ident-card h2 { font-size: 21px; margin-bottom: 6px; }
.ident-note { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); background: var(--primary-50); border-radius: var(--r); padding: 12px 14px; margin-top: 18px; }
.ident-note .fa { color: var(--primary); margin-top: 3px; }
.public-intro .cambiar { font-weight: 600; font-size: 13.5px; }

/* ------------------------------------------------ marca de la entidad -- */
.logo.has-img { background: #fff; padding: 3px; overflow: hidden; }
.logo.has-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.logo-chip { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 5px 10px; height: 44px; }
.logo-chip img { max-height: 34px; max-width: 170px; width: auto; height: auto; }
.logo-chip-lg { height: 60px; padding: 8px 14px; border-radius: 12px; }
.logo-chip-lg img { max-height: 44px; max-width: 220px; }

.brand-upload { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-top: 1px dashed var(--line); }
.bu-preview { flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: repeating-conic-gradient(#f3f5f9 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.bu-logo { width: 180px; height: 90px; padding: 10px; }
.bu-logo img { max-width: 100%; max-height: 100%; }
.bu-icono { width: 90px; height: 90px; padding: 8px; }
.bu-icono img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.bu-empty { color: var(--muted); font-size: 13px; text-align: center; }
.bu-body { flex: 1; min-width: 0; }
.custom-file-label { border-radius: var(--r-sm); height: 42px; line-height: 1.9; border-color: #d3d9e3; overflow: hidden; }
.custom-file-label::after { height: 40px; line-height: 1.9; border-radius: 0 var(--r-sm) var(--r-sm) 0; content: attr(data-browse); }
@media (max-width: 575.98px) { .brand-upload { flex-direction: column; } }

.mock-sidebar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--navy); color: #fff; font-weight: 700; }
.mock-sidebar .logo { width: 38px; height: 38px; border-radius: 11px; background: var(--primary); display: grid; place-items: center; color: #fff; }
.mock-sidebar .logo.has-img { background: #fff; }
.mock-public { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--navy); color: #fff; font-weight: 700; }
.mock-public .logo { width: 38px; height: 38px; border-radius: 11px; background: var(--primary); display: grid; place-items: center; }
.mock-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px 10px 0 0; background: var(--bg); border: 1px solid var(--line); border-bottom: 0; font-size: 13px; max-width: 100%; }
.mock-tab img { width: 16px; height: 16px; object-fit: contain; }
.mock-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.login-brand .logo.has-img { width: 40px; height: 40px; border-radius: 12px; }
.public-header .logo.has-img { width: 38px; height: 38px; }

/* ------------------------------------------------------- importación -- */
.dropzone {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 32px 20px; border: 2px dashed #c8d1e0; border-radius: var(--r-lg); background: #fafbfd;
    text-align: center; cursor: pointer; margin: 0; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--primary); background: var(--primary-50); }
.dropzone > .fa { font-size: 34px; color: var(--primary); margin-bottom: 6px; }
.dz-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.dz-sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.dz-file { margin-top: 8px; font-weight: 700; color: var(--ok); }
.dz-file:empty { display: none; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.imp-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.imp-stat { flex: 1 1 130px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fafbfd; display: flex; flex-direction: column; }
.imp-stat .n { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.imp-stat span:last-child { font-size: 13px; color: var(--ink-2); }
.imp-stat.is-bad { border-color: #f6d2cf; background: var(--bad-50); }
.imp-stat.is-bad .n { color: var(--bad); }
.table-scroll { max-height: 460px; overflow-y: auto; }
.table-scroll thead th { position: sticky; top: 0; z-index: 1; }
.table-sm td, .table-sm th { padding: 8px 14px; }
