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: 100vw;
    height: 100vh;
}

.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: 320px;
    max-width: 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-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;
}

.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;
}

.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: 64px;
    background: #1a284d;
    /* Azul oscuro elegante */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 8px rgba(44, 62, 80, 0.10);
    padding: 0 38px 0 18px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    margin-right: 8px;
    box-shadow: 0 1px 2px rgba(30, 60, 120, 0.05);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 150px;
}

.notif-bell {
    color: #fff;
    font-size: 1.6em;
    position: relative;
    text-decoration: none;
}

.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: 38px;
    height: 38px;
    background: #4072e0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    user-select: none;
    transition: background .2s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.09);
    border: 2px solid #fff;
}

.navbar-avatar:hover {
    background: #225a89;
}

.navbar-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    background: #fff;
    min-width: 170px;
    box-shadow: 0 8px 28px rgba(30, 50, 100, 0.13);
    border-radius: 10px;
    z-index: 1000;
    padding: 13px 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;
}

/* 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;
}

@media (max-width: 900px) {
    .cotizacion-cards-row {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .cotizacion-wrapper {
        padding: 20px 8vw 16px 8vw;
    }
}