/* Bundle: core */

body.login-bg {
    /* Ruta relativa desde assets/css/style.css hacia assets/img */
    background-image: url("../img/Wallpaper_Fundocol.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    /* que ocupe toda la pantalla */
    min-height: 100vh;
    /* al menos el alto de la ventana */
}

/* Card centrada */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}

.login-card {
    background: #fff;
    padding: 48px 32px 32px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    max-width: 360px;
    width: min(100%, 360px);
}

.logo-login {
    width: 115px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.login-card h2 {
    margin-bottom: 24px;
    color: #2980b9;
    letter-spacing: 1px;
}

.login-message {
    color: #14532d;
    background: #dcfce7;
    border: 1px solid #86efac;
    padding: 10px 15px;
    margin-bottom: 16px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.login-card form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-card input {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: border .2s;
    width: 100%;
    box-sizing: border-box;
}

.login-card input:focus {
    border-color: #2980b9;
    outline: none;
}

.login-card button {
    padding: 12px;
    border-radius: 8px;
    background: #2980b9;
    color: #fff;
    font-size: 16px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
}

.login-card button:hover {
    background: #1e5a8a;
}

.login-error {
    color: #c0392b;
    background: #fbeee6;
    border: 1px solid #f9c0b3;
    padding: 10px 15px;
    margin-bottom: 16px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
}

/*DASHBOARD*/

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fff;
}

.main-dashboard {
    min-height: 100vh;
    background: #fff;
    padding-top: 80px;
    /* igual o mayor a la altura del navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-top {
    width: 100vw;
    min-width: 100vw;
    height: 68px;
    background: linear-gradient(90deg, #14223f 0%, #1a2f58 55%, #1a284d 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
    padding: 0 32px 0 18px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    backdrop-filter: blur(6px);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-item {
    display: flex;
    align-items: center;
}

.navbar-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    margin-right: 6px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
    padding: 4px;
    object-fit: contain;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 150px;
}

.notif-bell {
    color: #e2e8f0;
    font-size: 1.5em;
    position: relative;
    text-decoration: none;
    transition: color .14s, transform .12s;
}

.notif-bell:hover {
    color: #fff;
    transform: translateY(-1px);
}

.notif-count {
    position: absolute;
    top: -7px;
    right: -8px;
    background: #e63946;
    color: #fff;
    font-size: 0.85em;
    border-radius: 50%;
    padding: 2px 7px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(44, 62, 80, 0.08);
}

.navbar-avatar-container {
    position: relative;
    cursor: pointer;
}

.navbar-avatar {
    width: 40px;
    height: 40px;
    background: #4072e0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05em;
    user-select: none;
    transition: background .2s, transform .12s;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
    border: 2px solid #fff;
    appearance: none;
    border-width: 2px;
    cursor: pointer;
}

.navbar-avatar:hover {
    background: #225a89;
    transform: translateY(-1px);
}

.navbar-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 16px 34px rgba(30, 50, 100, 0.16);
    border-radius: 12px;
    z-index: 1000;
    padding: 12px 0;
    animation: navbarDrop 0.19s ease;
    flex-direction: column;
    align-items: stretch;
}

.navbar-dropdown.show {
    display: flex;
}

@keyframes navbarDrop {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-user-name {
    font-weight: 600;
    color: #2876b9;
    padding: 0 20px 8px 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f1f1;
    display: block;
}

.navbar-dropdown-link {
    color: #222;
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: background .12s;
}

.navbar-dropdown-link:hover {
    background: #f1f4fa;
    color: #e63946;
}

@media (max-width: 700px) {
    .navbar-top {
        height: 60px;
        padding: 0 14px;
    }

    .navbar-logo {
        width: 36px;
        height: 36px;
    }

    .navbar-right {
        gap: 12px;
    }

    .navbar-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.95em;
    }
}

/* Estilos Odoo-style del dashboard */
.odoo-menu {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 0;
    padding: 30px 10px 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.odoo-menu-title {
    text-align: center;
    margin-bottom: 36px;
    margin-top: 10px;
}

.odoo-menu-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    border-radius: 13px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.odoo-menu-title h1 {
    margin: 0;
    font-size: 2.1em;
    font-weight: bold;
    letter-spacing: 1px;
    color: #15467b;
}

.odoo-menu-title p {
    color: #41596b;
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 1.12em;
}

.odoo-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 8px;
}

/* Cards mismas, sin cambio aquí */
.odoo-module-card {
    background: linear-gradient(125deg, #e3f0fa 30%, #f9fbfc 100%);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(80, 90, 120, 0.09);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 0 20px 0;
    /* <--- MENOS padding lateral */
    text-decoration: none;
    color: #15467b;
    transition: transform 0.13s, box-shadow 0.14s;
    position: relative;
    min-height: 160px;
    border: 1.5px solid #e3e8f0;
    min-width: 190px;
    /* <--- Nuevo: mínimo más ancho */
    max-width: 340px;
    /* <--- Nuevo: máximo más ancho */
    width: 95%;
    /* <--- O puedes usar width fijo si quieres */
}

.odoo-module-card:hover {
    transform: translateY(-8px) scale(1.055);
    box-shadow: 0 10px 36px rgba(31, 100, 135, .14);
    background: linear-gradient(115deg, #bad8f3 30%, #e7f1fa 100%);
}

.odoo-module-icon {
    font-size: 3.1em;
    color: #2177ce;
    margin-bottom: 18px;
}

.odoo-module-name {
    font-weight: 700;
    font-size: 1.22em;
    text-align: center;
    letter-spacing: 0.5px;
}

@media (max-width: 1100px) {
    .odoo-modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
        max-width: 760px;
    }

    .odoo-module-card {
        max-width: 420px;
    }
}

@media (max-width: 700px) {
    .odoo-modules-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 98vw;
    }

    .odoo-module-card {
        max-width: 99vw;
        min-width: unset;
        padding: 18px 0 14px 0;
    }
}

/*modulo Usuarios*/

.odoo-submenu {
    display: flex;
    gap: 26px;
    margin-bottom: 36px;
    justify-content: center;
    background: #f7fafd;
    border-radius: 12px;
    padding: 12px 8px;
    box-shadow: 0 2px 12px rgba(30, 60, 140, 0.05);
    width: 100%;
    max-width: 800px;
}

.odoo-submenu-link {
    font-weight: 600;
    font-size: 1.12em;
    color: #2876b9;
    text-decoration: none;
    padding: 7px 18px;
    border-radius: 7px;
    transition: background .14s, color .12s;
}

.odoo-submenu-link.active,
.odoo-submenu-link:hover {
    background: #2876b9;
    color: #fff;
}

.odoo-module-content {
    margin-top: 10px;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(30, 70, 140, 0.04);
    padding: 30px 22px;
}

/*roles*/

.odoo-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 9px rgba(31, 38, 135, .05);
    margin-bottom: 10px;
}

.odoo-table th,
.odoo-table td {
    border-bottom: 1px solid #e7eaf6;
    padding: 12px 9px;
    text-align: left;
}

.odoo-table th {
    background: #f4f7fd;
    font-weight: 600;
    color: #225a89;
}

.odoo-table tr:last-child td {
    border-bottom: none;
}

.odoo-btn,
.odoo-btn-min {
    border: none;
    background: #2876b9;
    color: #fff;
    padding: 8px 18px;
    border-radius: 7px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background .14s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 3px;
}

.odoo-btn-min {
    padding: 7px 13px;
    font-size: 0.98em;
    border-radius: 6px;
}

.odoo-btn:hover,
.odoo-btn-min:hover {
    background: #225a89;
}

.odoo-inline-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

/*M O D U L O C O M P R A S*/

.odoo-subsubmenu {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
    justify-content: center;
    background: #f7fafd;
    border-radius: 14px;
    padding: 10px 8px;
    box-shadow: 0 2px 12px rgba(30, 60, 140, 0.05);
    width: 100%;
    max-width: 650px;
}

.odoo-subsubmenu-link {
    font-weight: 600;
    font-size: 1.08em;
    color: #1a284d;
    background: none;
    text-decoration: none;
    padding: 8px 28px;
    border-radius: 8px;
    transition: background .13s, color .11s;
    margin: 0 2px;
    display: inline-block;
}

.odoo-subsubmenu-link.active,
.odoo-subsubmenu-link:hover {
    background: #2876b9;
    color: #fff;
}

.odoo-subsubmenu-link,
.odoo-subsubmenu-link:visited,
.odoo-subsubmenu-link:hover,
.odoo-subsubmenu-link:active,
.odoo-subsubmenu-link.active {
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
}

/*C O T I Z A C I O N*/

.cotizacion-wrapper {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 3px 24px rgba(44, 62, 80, .08);
    padding: 40px 36px 30px 36px;
    margin-bottom: 40px;
}

.cotizacion-title {
    text-align: center;
    color: #1a284d;
    font-weight: 700;
    margin-bottom: 24px;
}

.cotizacion-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}

.cotizacion-field label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #215182;
}

.cotizacion-field input,
.cotizacion-field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.2px solid #c7d7ea;
    font-size: 1em;
    margin-top: 3px;
}

.cotizacion-products-block {
    background: #f7fafd;
    border-radius: 12px;
    padding: 19px 14px 16px 14px;
    margin-bottom: 22px;
    box-shadow: 0 1px 7px rgba(50, 70, 130, .05);
}

.cotizacion-products-label {
    font-weight: 700;
    color: #1a284d;
    margin-bottom: 5px;
    display: block;
}

.cotizacion-products-table {
    width: 100%;
    background: #fff;
    margin-bottom: 11px;
    border-radius: 7px;
    box-shadow: 0 1px 5px rgba(31, 38, 135, .04);
    font-size: 0.99em;
}

.cotizacion-products-table th,
.cotizacion-products-table td {
    border-bottom: 1px solid #e2e8f8;
    padding: 9px 8px;
}

.cotizacion-products-table th {
    background: #e7f2fc;
    color: #1a284d;
    font-weight: 600;
}

.cotizacion-products-table tr:last-child td {
    border-bottom: none;
}

.cotizacion-products-add {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.cotizacion-products-add input {
    flex: none;
    padding: 7px 8px;
    border-radius: 7px;
    border: 1.2px solid #c7d7ea;
    font-size: 1em;
}

.cotizacion-cards-title {
    font-weight: 700;
    color: #225a89;
    margin: 19px 0 14px 0;
    text-align: left;
}

.cotizacion-cards-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    justify-content: center;
}

.cotizacion-card {
    background: #f4fafd;
    border-radius: 14px;
    box-shadow: 0 1px 8px rgba(60, 70, 120, .07);
    padding: 18px 17px 13px 17px;
    width: 210px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.cotizacion-card-header {
    color: #2876b9;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 5px;
}

.cotizacion-card-field label {
    font-weight: 500;
    color: #215182;
    font-size: 0.97em;
    margin-bottom: 2px;
}

.cotizacion-card-field input[type="text"],
.cotizacion-card-field input[type="number"] {
    width: 100%;
    border-radius: 7px;
    border: 1.2px solid #c7d7ea;
    padding: 7px 7px;
    font-size: 1em;
}

.cotizacion-card-field input[type="file"] {
    background: #fff;
    border: none;
    font-size: 0.98em;
    margin-top: 2px;
}


/* === Dashboard modules (2026-02-05) === */
.main-dashboard {
    background: radial-gradient(circle at 10% 0%, #f0f7ff 0%, #ffffff 55%, #f7fbff 100%);
}

.odoo-menu {
    max-width: 1300px;
    padding: 26px 18px 40px 18px;
    position: relative;
}

.odoo-menu-title {
    background: linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
    border-radius: 20px;
    padding: 26px 22px 22px 22px;
    box-shadow: 0 14px 34px rgba(15, 76, 129, 0.10);
    border: 1px solid #e6eef9;
    max-width: 980px;
    margin: 0 auto 6px auto;
    position: relative;
    overflow: hidden;
}

.odoo-menu-title::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(14, 165, 233, 0) 60%);
}

.odoo-menu-title::after {
    content: '';
    position: absolute;
    left: -40px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 60%);
}

.odoo-menu-title h1 {
    font-size: 2.2em;
    color: #0f4c81;
    letter-spacing: .6px;
}

.odoo-menu-title p {
    color: #4b6378;
    font-weight: 500;
}

.odoo-menu-logo {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e6eef9;
    box-shadow: 0 8px 18px rgba(15, 76, 129, 0.10);
}

.odoo-modules-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px;
    max-width: 1180px;
    margin-top: 22px;
}

.odoo-module-card {
    padding: 30px 12px 22px 12px;
    min-height: 180px;
    border: 1.5px solid #e5edf7;
    background: linear-gradient(135deg, #f4f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.odoo-module-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 36px rgba(15, 76, 129, 0.14);
}

.odoo-module-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.10) 0%, rgba(14, 165, 233, 0) 55%);
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}

.odoo-module-card:hover::after {
    opacity: 1;
}

.odoo-module-icon {
    color: #0ea5e9;
}

.odoo-module-name {
    color: #0f4c81;
}

/* Igualar ancho del submenú entre Compras y Compras Consorcios */
:is(.compras-index-page, .consorcios-index-page, .compras-menu-page, .consorcios-menu-page) .odoo-menu {
    max-width: 1180px;
}

:is(.compras-index-page, .consorcios-index-page, .compras-menu-page, .consorcios-menu-page) .odoo-modules-grid.odoo-menu-options {
    max-width: 980px;
}

@media (max-width: 900px) {
    .odoo-menu-title h1 {
        font-size: 1.6em;
    }

    .odoo-menu-logo {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 600px) {
    .main-dashboard {
        padding-top: 70px;
    }

    .odoo-menu-title {
        padding: 16px 12px;
    }

    .odoo-modules-grid {
        gap: 14px;
    }

    .odoo-module-card {
        padding: 18px 8px 14px 8px;
        min-height: 140px;
    }
}


/* === UX polish overrides (2026-02-04) === */
body.login-bg {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
}

body.login-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 105, 161, .55) 0%, rgba(14, 165, 233, .35) 45%, rgba(255, 255, 255, .65) 100%);
    z-index: -1;
}

body.login-bg::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 45%);
    z-index: -1;
}

.login-container {
    padding: 34px 20px;
}

.login-card {
    width: min(640px, 96vw);
    padding: 56px 42px 40px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 40px rgba(2, 132, 199, .18);
}

.logo-login {
    width: 132px;
    margin-bottom: 24px;
}

.login-card h2 {
    color: #0f4c81;
    font-weight: 800;
    letter-spacing: .6px;
    font-size: 2rem;
    margin-bottom: 26px;
}

.login-card form {
    gap: 18px;
}

.login-card input {
    background: #f8fafc;
    border: 1.5px solid #dbe4ee;
    font-size: 1.05rem;
    padding: 14px 15px;
    border-radius: 10px;
}

.login-card input:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .18);
}

.login-card button {
    background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow: 0 10px 20px rgba(14, 165, 233, .22);
    font-size: 1.06rem;
    padding: 14px;
    border-radius: 10px;
}

.login-card button:hover {
    background: linear-gradient(90deg, #0284c7 0%, #1d4ed8 100%);
}

.login-error {
    font-weight: 600;
}

@media (max-width: 640px) {
    .login-card {
        width: min(460px, 94vw);
        padding: 40px 24px 30px;
    }

    .logo-login {
        width: 116px;
        margin-bottom: 18px;
    }

    .login-card h2 {
        font-size: 1.65rem;
    }
}

.login-card.login-card-wide {
    width: min(860px, 96vw) !important;
    max-width: 860px !important;
}

.login-card.login-card-enterprise {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 26px 58px rgba(15, 23, 42, 0.18);
}

.login-enterprise-shell {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(430px, 1.35fr);
}

.login-enterprise-brand {
    background: linear-gradient(155deg, #0f2f57 0%, #0f4c81 52%, #1d6ec4 100%);
    color: #e2ecf9;
    padding: 44px 34px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}

.login-enterprise-brand .logo-login {
    width: 146px;
    margin: 0 0 6px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 22px rgba(8, 35, 66, 0.28);
}

.login-brand-kicker {
    margin: 0;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #bfdbfe;
}

.login-brand-title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
}

.login-brand-copy {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #dbeafe;
    max-width: 34ch;
}

.login-enterprise-form {
    padding: 42px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-kicker {
    margin: 0;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #4f89be;
    font-weight: 700;
}

.login-enterprise-form h2 {
    margin: 10px 0 8px;
    color: #123f6b;
    font-size: 2.02rem;
}

.login-form-copy {
    margin: 0 0 20px;
    color: #5f738a;
    font-size: 0.95rem;
}

.login-form-enterprise {
    width: 100%;
    display: grid;
    gap: 11px;
}

.login-form-enterprise label {
    font-size: 0.86rem;
    font-weight: 700;
    color: #184e77;
    margin-top: 2px;
}

.login-form-enterprise input {
    width: 100%;
}

.login-form-enterprise button {
    margin-top: 8px;
}

@media (max-width: 960px) {
    .login-card.login-card-wide {
        width: min(760px, 96vw) !important;
        max-width: 760px !important;
    }

    .login-enterprise-shell {
        grid-template-columns: 1fr;
    }

    .login-enterprise-brand {
        padding: 28px 24px;
        gap: 10px;
    }

    .login-enterprise-form {
        padding: 30px 24px 28px;
    }

    .login-enterprise-form h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 640px) {
    .login-card.login-card-wide {
        width: min(460px, 94vw) !important;
        max-width: 460px !important;
    }

    .login-enterprise-brand .logo-login {
        width: 126px;
    }

    .login-brand-title {
        font-size: 1.35rem;
    }

    .login-enterprise-form {
        padding: 24px 18px 22px;
    }
}

/* === GLOBAL RESPONSIVE GUARD (mobile-first) === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.navbar-top {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-inline: clamp(12px, 2.4vw, 24px) !important;
}

.navbar-right {
    min-width: 0 !important;
}

.navbar-spacer {
    height: 68px !important;
}

@media (max-width: 700px) {
    .navbar-spacer {
        height: 60px !important;
    }
}

.main-dashboard,
.odoo-menu,
.erp-card,
.compra-card,
.form-contenedor,
.aprobacion-box,
.detalle-box,
.purchase-workspace,
.purchase-shell,
.container,
.container-fluid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.odoo-modules-grid,
.solicitudes-index-page .cards-submenu,
.inventarios-index-page .inventory-home-grid,
.inventarios-papeleria-index-page .inv-cards {
    width: min(100%, 1400px) !important;
    max-width: min(100%, 1400px) !important;
    margin-inline: auto !important;
    padding-inline: clamp(10px, 2vw, 18px) !important;
    gap: clamp(12px, 2vw, 28px) !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
}

.odoo-module-card,
.solicitudes-index-page .card-sm,
.inventarios-papeleria-index-page .inv-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.table-responsive,
.erp-table-wrap,
.tabla-fijas,
.admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > table,
.erp-table-wrap > table,
.tabla-fijas > table,
.admin-table-wrap > table {
    width: 100%;
}
