/* =====================================================================
 * PROINAS — Estilo del portal de clientes
 * Solo apariencia: no cambia datos, permisos ni lógica. Para volver al
 * aspecto original basta con quitar el <link> en themes/perfex/head.php.
 * ===================================================================== */

:root {
    --px-navy: #0b2e59;
    --px-blue: #1d4f9c;
    --px-blue-2: #2563c9;
    --px-sky: #e8f0fb;
    --px-sky-2: #f3f7fd;
    --px-ink: #0f1f38;
    --px-muted: #5b6b82;
    --px-line: #dfe7f2;
    --px-ok: #059669;
    --px-warn: #d97706;
    --px-bad: #dc2626;
    --px-radius: 14px;
    --px-shadow: 0 1px 2px rgba(11, 46, 89, .06), 0 8px 24px rgba(11, 46, 89, .07);
    --px-grad: linear-gradient(100deg, #0b2e59 0%, #1d4f9c 55%, #2563c9 100%);
}

/* ---------- Base ---------- */
body.customers {
    background: linear-gradient(180deg, #e9f0fa 0, #f4f7fc 380px, #f6f8fc 100%) fixed;
    color: var(--px-ink);
    -webkit-font-smoothing: antialiased;
}
body.customers a { transition: color .15s ease; }

/* ---------- Encabezado de dos niveles (escritorio) ---------- */
body.customers .navbar.header {
    border: 0;
    margin-bottom: 0;
    background: #fff;
    box-shadow: 0 2px 18px rgba(11, 46, 89, .10);
    position: relative;
    z-index: 30;
}
/* franja de color corporativo en el borde superior */
body.customers .navbar.header::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #f7c600 0 25%, #1d4f9c 25% 75%, #d52b1e 75% 100%);
}
body.customers .navbar.header .navbar-brand.logo {
    height: auto;
    padding: 14px 0;
    float: none;
    display: inline-block;
}
body.customers .navbar.header .navbar-brand.logo img {
    max-height: 64px !important;
    height: 64px;
    width: auto;
    transition: transform .25s ease;
}
body.customers .navbar.header .navbar-brand.logo:hover img { transform: scale(1.03); }

@media (min-width: 768px) {
    body.customers .navbar.header > .container { width: 100%; max-width: none; padding: 0; }
    body.customers .navbar.header .navbar-header {
        float: none;
        max-width: 1170px;
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        align-items: center;
        min-height: 92px;
    }
    /* barra de menú azul a todo lo ancho */
    body.customers .navbar.header .navbar-collapse {
        background: var(--px-grad);
        padding: 0;
    }
    body.customers .navbar.header .navbar-collapse > .navbar-nav {
        float: none !important;
        max-width: 1170px;
        margin: 0 auto !important;
        padding: 8px 15px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }
    body.customers .navbar.header .navbar-nav > li { float: none; }
    body.customers .navbar.header .navbar-nav > li > a {
        color: rgba(255, 255, 255, .92) !important;
        font-weight: 600;
        font-size: 14px;
        padding: 9px 15px !important;
        border-radius: 999px;
        background: transparent;
        transition: background .18s ease, color .18s ease, transform .18s ease;
    }
    body.customers .navbar.header .navbar-nav > li > a:hover,
    body.customers .navbar.header .navbar-nav > li > a:focus {
        background: rgba(255, 255, 255, .16) !important;
        color: #fff !important;
        transform: translateY(-1px);
    }
    body.customers .navbar.header .navbar-nav > li.active > a,
    body.customers .navbar.header .navbar-nav > li.active > a:hover {
        background: #fff !important;
        color: var(--px-navy) !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    }
    /* el menú cabe en una sola línea */
    body.customers .navbar.header .navbar-collapse > .navbar-nav { flex-wrap: nowrap; }
    body.customers .navbar.header .navbar-collapse,
    body.customers .navbar.header .navbar-collapse > .navbar-nav { position: static !important; }

    /* perfil: arriba a la derecha, en la franja blanca junto al logo */
    body.customers .navbar.header .navbar-nav > li.customers-nav-item-profile {
        position: absolute;
        top: 50px; /* 4px franja + mitad de los 92px de la zona del logo */
        transform: translateY(-50%);
        right: max(15px, calc((100% - 1170px) / 2 + 15px));
    }
    body.customers .navbar.header .navbar-nav > li.customers-nav-item-profile > a {
        display: flex !important;
        align-items: center;
        gap: 10px;
        background: var(--px-sky) !important;
        color: var(--px-navy) !important;
        padding: 6px 16px 6px 6px !important;
        border: 1px solid var(--px-line);
        box-shadow: none !important;
    }
    body.customers .navbar.header .navbar-nav > li.customers-nav-item-profile > a::after {
        content: "Mi perfil";
        font-weight: 700;
        font-size: 13px;
    }
    body.customers .navbar.header .navbar-nav > li.customers-nav-item-profile > a:hover {
        background: #fff !important;
        border-color: var(--px-blue);
        transform: none;
    }
    body.customers .navbar.header .navbar-nav > li.customers-nav-item-profile .dropdown-menu {
        right: 0; left: auto; margin-top: 8px;
    }
    body.customers .navbar.header .client-profile-image-small {
        border: 2px solid #fff;
        box-shadow: 0 0 0 2px var(--px-blue);
        border-radius: 50%;
        width: 34px; height: 34px;
        margin: 0 !important;
    }
}

/* ---------- Íconos del menú ---------- */
body.customers .navbar.header .navbar-nav > li[class*="customers-nav-item-"]:not(.customers-nav-item-profile) > a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    font-size: 13px;
    opacity: .9;
}
body.customers .navbar.header .customers-nav-item-estimate-request > a::before { content: "\f07a"; } /* carrito */
body.customers .navbar.header .customers-nav-item-knowledge-base   > a::before { content: "\f02d"; } /* libro */
body.customers .navbar.header .customers-nav-item-projects         > a::before { content: "\f0ae"; } /* tareas */
body.customers .navbar.header .customers-nav-item-invoices         > a::before { content: "\f570"; } /* factura */
body.customers .navbar.header .customers-nav-item-contracts        > a::before { content: "\f56c"; } /* contrato */
body.customers .navbar.header .customers-nav-item-estimates        > a::before { content: "\f468"; } /* pedidos */
body.customers .navbar.header .customers-nav-item-proposals        > a::before { content: "\f15c"; } /* cotización */
body.customers .navbar.header .customers-nav-item-subscriptions    > a::before { content: "\f021"; } /* suscripción */
body.customers .navbar.header .customers-nav-item-aqualife-client-area > a::before { content: "\f043"; } /* gota */
body.customers .navbar.header .customers-nav-item-support          > a::before { content: "\f590"; } /* soporte */

/* menú desplegable del perfil */
body.customers .navbar.header .dropdown-menu {
    border: 0;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(11, 46, 89, .18);
}
body.customers .navbar.header .dropdown-menu > li > a {
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 500;
}
body.customers .navbar.header .dropdown-menu > li > a:hover {
    background: var(--px-sky);
    color: var(--px-blue);
}

/* ---------- Encabezado en celular ---------- */
@media (max-width: 767px) {
    body.customers .navbar.header .navbar-brand.logo img { height: 48px; max-height: 48px !important; }
    body.customers .navbar.header .navbar-toggle {
        margin-top: 22px;
        border: 0;
        background: var(--px-sky);
        border-radius: 10px;
    }
    body.customers .navbar.header .navbar-toggle .icon-bar { background: var(--px-navy); }
    body.customers .navbar.header .navbar-collapse { background: var(--px-grad); border: 0; }
    body.customers .navbar.header .navbar-nav > li > a { color: #fff !important; font-weight: 600; border-radius: 10px; }
    body.customers .navbar.header .navbar-nav > li.active > a { background: #fff !important; color: var(--px-navy) !important; }
}

/* ---------- Contenido ---------- */
body.customers #wrapper { padding-top: 26px; }

/* submenú Archivos / Calendario como chips */
body.customers .customer-top-submenu { margin-bottom: 6px; }
body.customers .customer-top-submenu > li > a {
    background: #fff;
    border: 1px solid var(--px-line);
    border-radius: 999px;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 600;
    color: var(--px-blue) !important;
    box-shadow: var(--px-shadow);
}
body.customers .customer-top-submenu > li > a:hover {
    background: var(--px-blue);
    border-color: var(--px-blue);
    color: #fff !important;
}

/* títulos de sección con acento de color */
body.customers #content h4.tw-font-semibold,
body.customers #content h4.tw-font-medium,
body.customers #content .projects-summary-heading,
body.customers #content .invoices-quick-info-heading,
body.customers #content .section-heading {
    color: var(--px-navy) !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
    position: relative;
    padding-left: 14px;
}
body.customers #content h4.tw-font-semibold::before,
body.customers #content h4.tw-font-medium::before,
body.customers #content .projects-summary-heading::before,
body.customers #content .invoices-quick-info-heading::before {
    content: "";
    position: absolute;
    left: 0; top: 15%;
    width: 5px; height: 70%;
    border-radius: 4px;
    background: var(--px-grad);
}

/* tarjetas */
body.customers .panel_s {
    border: 0 !important;
    border-radius: var(--px-radius) !important;
    box-shadow: var(--px-shadow) !important;
    overflow: hidden;
    animation: pxFadeUp .35s ease both;
}
body.customers .panel_s .panel-body { border: 0 !important; padding: 22px; }
body.customers .panel_s .panel-heading {
    background: var(--px-sky-2);
    border-bottom: 1px solid var(--px-line);
    font-weight: 700;
    color: var(--px-navy);
}
@keyframes pxFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* tarjetas pequeñas del inicio (resumen de proyectos) */
body.customers .section-client-dashboard .tw-rounded-md,
body.customers .section-client-dashboard .tw-border {
    border-radius: 12px !important;
    transition: transform .18s ease, box-shadow .18s ease;
}
body.customers .section-client-dashboard .tw-border:hover {
    transform: translateY(-2px);
    box-shadow: var(--px-shadow);
}

/* ---------- Tablas ---------- */
body.customers table.dataTable,
body.customers .table {
    border-collapse: separate !important;
    border-spacing: 0;
}
body.customers .table > thead > tr > th,
body.customers table.dataTable thead th {
    background: var(--px-sky) !important;
    color: var(--px-navy) !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 2px solid #c9d8ee !important;
    border-top: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
body.customers .table > thead > tr > th:first-child { border-top-left-radius: 10px; }
body.customers .table > thead > tr > th:last-child  { border-top-right-radius: 10px; }
body.customers .table > tbody > tr > td {
    border-top: 1px solid var(--px-line) !important;
    vertical-align: middle;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
}
body.customers .table > tbody > tr { transition: background .15s ease; }
body.customers .table > tbody > tr:hover > td { background: var(--px-sky-2); }
body.customers .table a { color: var(--px-blue); font-weight: 600; }

/* paginación y buscador de las tablas */
body.customers .dataTables_filter input,
body.customers .dataTables_length select,
body.customers .form-control,
body.customers .bootstrap-select > .dropdown-toggle {
    border-radius: 10px !important;
    border-color: var(--px-line) !important;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
body.customers .form-control:focus,
body.customers .dataTables_filter input:focus {
    border-color: var(--px-blue-2) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 201, .15) !important;
}
body.customers .pagination > li > a,
body.customers .pagination > li > span { border-radius: 8px !important; margin: 0 2px; border-color: var(--px-line); color: var(--px-blue); }
body.customers .pagination > .active > a,
body.customers .pagination > .active > span { background: var(--px-blue) !important; border-color: var(--px-blue) !important; color: #fff !important; }

/* ---------- Etiquetas de estado ---------- */
body.customers .label,
body.customers .badge {
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .01em;
}

/* ---------- Botones ---------- */
body.customers .btn { border-radius: 10px; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
body.customers .btn:hover { transform: translateY(-1px); }
body.customers .btn-primary,
body.customers .btn-info {
    background: var(--px-grad) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(29, 79, 156, .28);
}
body.customers .btn-primary:hover,
body.customers .btn-info:hover { box-shadow: 0 8px 22px rgba(29, 79, 156, .38); }
body.customers .btn-default { border-color: var(--px-line); color: var(--px-navy); }
body.customers .btn-default:hover { border-color: var(--px-blue); color: var(--px-blue); background: #fff; }

/* barras de progreso (información rápida de facturas) */
body.customers .progress { border-radius: 999px; background: #e7eef8; box-shadow: none; height: 12px; }
body.customers .progress-bar { border-radius: 999px; }

/* ---------- Pantalla de inicio de sesión ---------- */
body.customers.customers_login {
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(37, 99, 201, .25), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, rgba(11, 46, 89, .30), transparent 60%),
        linear-gradient(180deg, #eaf1fb, #f6f8fc) fixed;
}
body.customers.customers_login .navbar.header .navbar-collapse { display: none !important; }
body.customers.customers_login .login-heading { color: var(--px-navy); font-weight: 800; }
body.customers.customers_login .panel_s { box-shadow: 0 20px 50px rgba(11, 46, 89, .16) !important; }
body.customers.customers_login .navbar.header .navbar-header { justify-content: center; }

/* ---------- Pie de página ---------- */
body.customers footer,
body.customers .footer {
    background: var(--px-navy);
    color: rgba(255, 255, 255, .75);
    border: 0;
}
body.customers footer a { color: #fff; }

/* =====================================================================
 * 1. Banda de título de cada página + 3. tarjeta del asesor
 * ===================================================================== */
body.customers .px-band {
    background:
        radial-gradient(600px 200px at 85% 0%, rgba(37, 99, 201, .14), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #eef4fc 100%);
    border-bottom: 1px solid var(--px-line);
}
body.customers .px-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 22px;
    flex-wrap: wrap;
}
body.customers .px-crumbs { font-size: 12px; color: var(--px-muted); margin-bottom: 4px; }
body.customers .px-crumbs a { color: var(--px-blue); font-weight: 600; }
body.customers .px-crumbs .px-sep { margin: 0 6px; opacity: .6; }
body.customers .px-band-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--px-navy);
    letter-spacing: -.02em;
}
body.customers .px-band-sub { margin: 4px 0 0; color: var(--px-muted); font-size: 14px; }
body.customers .px-band-action {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px; padding: 7px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--px-line);
    color: var(--px-blue) !important; font-weight: 600; font-size: 13px;
    box-shadow: var(--px-shadow);
}
body.customers .px-band-action:hover { background: var(--px-blue); color: #fff !important; border-color: var(--px-blue); }

body.customers .px-asesor {
    display: flex; align-items: center; gap: 12px;
    background: #fff;
    border: 1px solid var(--px-line);
    border-radius: 16px;
    padding: 10px 12px 10px 10px;
    box-shadow: var(--px-shadow);
}
body.customers .px-asesor-foto img {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; box-shadow: 0 0 0 2px var(--px-blue);
}
body.customers .px-asesor-info { display: flex; flex-direction: column; line-height: 1.25; }
body.customers .px-asesor-info small { color: var(--px-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
body.customers .px-asesor-info b { color: var(--px-navy); font-size: 14px; }
body.customers .px-asesor-info span { color: var(--px-muted); font-size: 12px; }
body.customers .px-asesor-acts { display: flex; gap: 6px; margin-left: 6px; }
body.customers .px-asesor-acts a {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; font-size: 16px;
    transition: transform .15s ease, box-shadow .15s ease;
}
body.customers .px-asesor-acts a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(11, 46, 89, .2); }
body.customers .px-wa { background: #25d366; color: #fff !important; }
body.customers .px-mail { background: var(--px-sky); color: var(--px-blue) !important; }

/* el título ya está en la banda: se ocultan los títulos repetidos de cada página */
body.customers .section-heading-invoices,
body.customers .section-heading-estimates,
body.customers .section-heading-proposals,
body.customers .section-heading-contracts { display: none !important; }

@media (max-width: 767px) {
    body.customers .px-band-title { font-size: 21px; }
    body.customers .px-asesor { width: 100%; }
}

/* =====================================================================
 * 2. Tarjetas del inicio
 * ===================================================================== */
body.customers .px-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 6px 0 22px;
}
body.customers .px-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff;
    border-radius: var(--px-radius);
    padding: 18px;
    box-shadow: var(--px-shadow);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    animation: pxFadeUp .35s ease both;
}
body.customers .px-card::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: var(--px-tono, var(--px-blue));
    opacity: .85;
}
body.customers .px-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(11, 46, 89, .12);
    border-color: var(--px-line);
    text-decoration: none;
}
body.customers .px-card-ico {
    width: 46px; height: 46px; border-radius: 13px; flex: none;
    display: grid; place-items: center; font-size: 19px;
    background: var(--px-tono-bg, var(--px-sky)); color: var(--px-tono, var(--px-blue));
}
body.customers .px-card-body { display: flex; flex-direction: column; min-width: 0; }
body.customers .px-card-lbl { color: var(--px-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
body.customers .px-card-val { color: var(--px-ink); font-size: 22px; font-weight: 800; margin-top: 2px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.customers .px-card-sub { color: var(--px-muted); font-size: 12px; margin-top: 2px; }
body.customers .px-tono-blue  { --px-tono: #1d4f9c; --px-tono-bg: #e8f0fb; }
body.customers .px-tono-red   { --px-tono: #dc2626; --px-tono-bg: #fdecec; }
body.customers .px-tono-red .px-card-val { color: #dc2626; }
body.customers .px-tono-green { --px-tono: #059669; --px-tono-bg: #e7f7f0; }
body.customers .px-tono-aqua  { --px-tono: #0891b2; --px-tono-bg: #e3f6fa; }
body.customers .px-cards .px-card:nth-child(2) { animation-delay: .05s; }
body.customers .px-cards .px-card:nth-child(3) { animation-delay: .1s; }
body.customers .px-cards .px-card:nth-child(4) { animation-delay: .15s; }

body.customers .px-ultimas { margin-bottom: 24px; }
body.customers .px-ultimas-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px 6px;
}
body.customers .px-ultimas-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--px-navy); }
body.customers .px-ultimas-head h3 i { color: var(--px-blue); margin-right: 6px; }
body.customers .px-ultimas-head a { color: var(--px-blue); font-weight: 700; font-size: 13px; }
body.customers .px-ultimas .table { margin: 0; }
body.customers .px-ultimas .table td,
body.customers .px-ultimas .table th { padding-left: 20px !important; padding-right: 20px !important; }

/* =====================================================================
 * 4. Pie de página corporativo
 * ===================================================================== */
body.customers .px-footer {
    background: linear-gradient(120deg, #071f3d 0%, #0b2e59 55%, #123f7a 100%) !important;
    color: rgba(255, 255, 255, .78);
    padding: 40px 0 0;
    margin-top: 40px;
    position: relative;
}
body.customers .px-footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #f7c600 0 25%, #2563c9 25% 75%, #d52b1e 75% 100%);
}
body.customers .px-footer-cols > div { margin-bottom: 24px; }
body.customers .px-footer-brand img { max-height: 56px; width: auto; margin-bottom: 12px; }
body.customers .px-footer-brand p { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .7); margin: 0; }
body.customers .px-footer h5 {
    color: #fff; font-weight: 800; font-size: 13px;
    text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 14px;
}
body.customers .px-footer ul { list-style: none; margin: 0; padding: 0; }
body.customers .px-footer li { margin-bottom: 10px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
body.customers .px-footer li i { width: 16px; color: #7fb2ff; margin-top: 3px; text-align: center; }
body.customers .px-footer li .fa-whatsapp { color: #25d366; }
body.customers .px-footer a { color: #fff !important; }
body.customers .px-footer a:hover { color: #9cc3ff !important; text-decoration: none; }
body.customers .px-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 16px 0 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    text-align: center;
}

/* =====================================================================
 * 5. Estados con color e ícono
 * ===================================================================== */
body.customers .label {
    display: inline-flex !important; align-items: center; gap: 5px;
    border: 1px solid transparent !important;
}
body.customers .label::before {
    font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px;
}
body.customers .label-success { background: #e7f7f0 !important; color: #047857 !important; border-color: #a7e3c9 !important; }
body.customers .label-success::before { content: "\f00c"; }   /* check */
body.customers .label-danger  { background: #fdecec !important; color: #b91c1c !important; border-color: #f5b5b5 !important; }
body.customers .label-danger::before  { content: "\f00d"; }   /* x */
body.customers .label-warning { background: #fff5e6 !important; color: #b45309 !important; border-color: #fbd49a !important; }
body.customers .label-warning::before { content: "\f017"; }   /* reloj */
body.customers .label-info    { background: #e8f0fb !important; color: #1d4f9c !important; border-color: #b9cff0 !important; }
body.customers .label-info::before    { content: "\f1d8"; }   /* enviado */
body.customers .label-primary { background: #e8f0fb !important; color: #0b2e59 !important; border-color: #b9cff0 !important; }
body.customers .label-default { background: #f1f4f8 !important; color: #475569 !important; border-color: #dbe2ea !important; }
body.customers .label-default::before { content: "\f304"; }   /* lápiz (borrador) */

/* montos de las tablas más legibles */
body.customers .table td.total,
body.customers .table td[data-order] { font-variant-numeric: tabular-nums; }

/* =====================================================================
 * Ajustes de alineación del menú (v2)
 * El tema original pone line-height:85px y display:inline a los enlaces;
 * aquí se neutraliza y se alinean menú, banda y contenido al mismo ancho.
 * ===================================================================== */
body.customers .navbar.header .navbar-nav > li > a {
    line-height: 1.2 !important;
    height: auto !important;
    white-space: nowrap;
}

@media (min-width: 768px) {
    /* mismo ancho que el contenido de la página (container de Bootstrap) */
    body.customers .navbar.header .navbar-header,
    body.customers .navbar.header .navbar-collapse > .navbar-nav,
    body.customers .px-band > .container { width: 750px; max-width: 100%; }

    body.customers .navbar.header .navbar-header { min-height: 84px; }

    body.customers .navbar.header .navbar-collapse > .navbar-nav {
        flex-wrap: wrap;          /* si no caben, pasan a una segunda fila ordenada */
        justify-content: flex-start;
        row-gap: 4px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    body.customers .navbar.header .navbar-nav > li { flex: 0 0 auto; }
    body.customers .navbar.header .navbar-nav > li > a {
        display: inline-flex !important;
        align-items: center;
        gap: 7px;
        padding: 9px 13px !important;
        font-size: 13.5px;
    }
    body.customers .navbar.header .navbar-nav > li[class*="customers-nav-item-"]:not(.customers-nav-item-profile) > a::before {
        margin-right: 0;
    }

    /* botón "Mi perfil": compacto, centrado en la franja blanca */
    body.customers .navbar.header .navbar-nav > li.customers-nav-item-profile {
        top: 46px;
        right: max(15px, calc((100% - 750px) / 2 + 15px));
    }
    body.customers .navbar.header .navbar-nav > li.customers-nav-item-profile > a {
        height: 46px !important;
        padding: 5px 16px 5px 5px !important;
        border-radius: 999px;
    }
}
@media (min-width: 992px) {
    body.customers .navbar.header .navbar-header,
    body.customers .navbar.header .navbar-collapse > .navbar-nav,
    body.customers .px-band > .container { width: 970px; }
    body.customers .navbar.header .navbar-nav > li.customers-nav-item-profile { right: max(15px, calc((100% - 970px) / 2 + 15px)); }
}
@media (min-width: 1200px) {
    body.customers .navbar.header .navbar-header,
    body.customers .navbar.header .navbar-collapse > .navbar-nav,
    body.customers .px-band > .container { width: 1170px; }
    body.customers .navbar.header .navbar-nav > li.customers-nav-item-profile { right: max(15px, calc((100% - 1170px) / 2 + 15px)); }
    body.customers .navbar.header .navbar-nav > li > a { padding: 9px 15px !important; font-size: 14px; }
}

/* en pantallas medianas se ocultan los íconos para que quepa el texto */
@media (min-width: 768px) and (max-width: 991px) {
    body.customers .navbar.header .navbar-nav > li[class*="customers-nav-item-"]:not(.customers-nav-item-profile) > a::before { display: none; }
    body.customers .navbar.header .navbar-nav > li > a { padding: 8px 11px !important; font-size: 13px; }
}

/* banda: texto a la izquierda, asesor a la derecha, siempre alineados */
body.customers .px-band-inner { padding-left: 15px; padding-right: 15px; }
body.customers .px-band-text { flex: 1 1 320px; min-width: 0; }
body.customers .px-asesor { flex: 0 0 auto; }

/* =====================================================================
 * Ajuste del pie de página (v2): el tema original fija height:50px.
 * ===================================================================== */
body.customers footer.px-footer {
    height: auto !important;
    min-height: 0;
    padding: 44px 0 0 !important;
    margin-top: 48px !important;
    border-top: 0 !important;
    overflow: hidden;
}
body.customers footer.px-footer > .container { position: relative; z-index: 1; }
body.customers .px-footer-cols { display: flex; flex-wrap: wrap; }
body.customers .px-footer-cols > div { float: none; }
body.customers .px-footer-brand img { max-height: 54px; display: block; }
body.customers .px-footer h5 { margin-top: 6px; }
body.customers .px-footer li { color: rgba(255, 255, 255, .85); }
body.customers .px-footer-bottom { margin-top: 8px; }
@media (max-width: 767px) {
    body.customers footer.px-footer { padding-top: 32px !important; text-align: left; }
    body.customers .px-footer-cols > div { width: 100%; }
}
