/*
Verdes chulos que combinan:
CLARITO: #86ba17
OSCURO: #538717
MODERNOS: #28a745, #20c997, #17a2b8
*/

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Lato', Helvetica, sans-serif;
    color: #2d3748;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}

a, .simulink {
    text-decoration: none;
    color: #28a745;
    cursor: pointer !important;
    transition: color 0.2s ease;
}

a:hover, .simulink:hover {
    color: #218838;
}

input {
    font-size: 15px;
}

p {
    clear: both;
    margin-bottom: 12px;
}

button {
    border: none;
    cursor: pointer;
}



    /* Estilo para las fotos de productos */
    .foto-producto {
        float: left;
        width: 80px;
        height: 80px;
        margin-right: 15px;
        margin-bottom: 10px;
        background-size: contain !important;
        background-repeat: no-repeat;
        border-radius: 10px;
        border: 2px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.2s ease;
    }

    .foto-producto:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-color: #28a745;
    }



/* ===========================================
   NUEVO SISTEMA DE LOGIN DROPDOWN MODERNO  
   =========================================== */

/* Contenedor principal del dropdown */
#user-dropdown-container {
    float: right;
    margin-top: 15px;
    margin-right: 10px;
}

/* Botón principal del usuario */
.btn-user {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    min-width: 140px;
    text-decoration: none !important;
}

.btn-user:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    color: white !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.btn-user:focus,
.btn-user:active {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    color: white !important;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    text-decoration: none !important;
}

.btn-user i {
    margin-right: 8px;
    font-size: 14px;
    color: white !important;
}

/* Asegurar que no haya conflictos con otros estilos de Bootstrap */
.dropdown-toggle.btn-user::after {
    color: white !important;
    margin-left: 8px;
}

.dropdown-toggle.btn-user:not(:disabled):not(.disabled):active,
.dropdown-toggle.btn-user:not(:disabled):not(.disabled).active {
    background: linear-gradient(135deg, #1e7e34 0%, #17a2b8 100%) !important;
    color: white !important;
    border: none !important;
}

/* Menú dropdown */
.user-dropdown-menu {
    min-width: 320px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-top: 8px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header del dropdown */
.dropdown-header h6 {
    color: #28a745;
    font-weight: 600;
    margin: 0;
    padding: 15px 20px 10px;
    font-size: 16px;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-header h6 i {
    margin-right: 8px;
}

/* Formulario de login */
.user-dropdown-menu form {
    padding: 15px 20px;
    background: #f8f9fa;
}

.user-dropdown-menu .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.user-dropdown-menu .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.user-dropdown-menu .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-dropdown-menu .btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
}

/* Items del dropdown */
.user-dropdown-menu .dropdown-item {
    padding: 12px 20px;
    color: #495057;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: block;
    width: 100%;
    clear: both;
    font-weight: 400;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.user-dropdown-menu .dropdown-item:hover,
.user-dropdown-menu .dropdown-item:focus {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9f7ef 100%);
    color: #28a745;
    border-left-color: #28a745;
    text-decoration: none;
}

.user-dropdown-menu .dropdown-item i {
    width: 18px;
    margin-right: 10px;
    color: #6c757d;
    font-size: 14px;
}

.user-dropdown-menu .dropdown-item:hover i {
    color: #28a745;
}

/* Separadores */
.user-dropdown-menu .dropdown-divider {
    margin: 0;
    border-color: #e9ecef;
}

/* Información de contacto */
.user-dropdown-menu .dropdown-item-text {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: block;
    width: 100%;
    color: #212529;
    text-align: inherit;
}

.user-dropdown-menu .dropdown-item-text small {
    line-height: 1.4;
    display: block;
    width: 100%;
}

.user-dropdown-menu .dropdown-item-text a {
    color: #28a745;
    text-decoration: none;
    display: inline;
}

.user-dropdown-menu .dropdown-item-text a:hover {
    color: #218838;
    text-decoration: underline;
}

/* ===========================================
   MODAL MODERNIZADO
   =========================================== */

#mdlUsuario .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
}

#mdlUsuario .modal-title {
    font-weight: 500;
    font-size: 18px;
}

#mdlUsuario .modal-title i {
    margin-right: 8px;
}

#mdlUsuario .close {
    color: white;
    opacity: 0.8;
    font-size: 1.5rem;
    text-shadow: none;
}

#mdlUsuario .close:hover {
    color: white;
    opacity: 1;
}

#mdlUsuario .modal-body {
    padding: 20px;
    min-height: 200px;
}

#mdlUsuario .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
}

/* ===========================================
   ESTILOS PARA EL SALDO MEJORADO
   =========================================== */

.saldo-container {
    max-width: 100%;
    margin: 0;
    font-family: 'Lato', sans-serif;
}

/* Sección del saldo actual */
.saldo-actual-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7ef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.saldo-header h3 {
    color: #28a745;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.saldo-header i {
    margin-right: 8px;
}

.saldo-amount {
    margin: 20px 0;
}

.saldo-numero {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
    display: inline-block;
}

.saldo-moneda {
    font-size: 1.8rem;
    font-weight: 500;
    color: #6c757d;
    margin-left: 5px;
}

.saldo-recarga {
    margin-top: 20px;
}

.btn-recarga {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border: none !important;
    transition: all 0.3s ease;
    display: inline-block !important;
}

.btn-recarga:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-recarga i {
    margin-right: 8px;
}

/* Sección de movimientos */
.movimientos-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.movimientos-header {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 15px 20px;
}

.movimientos-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.movimientos-header i {
    margin-right: 8px;
}

.no-movimientos {
    padding: 30px 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.no-movimientos i {
    margin-right: 8px;
    color: #28a745;
}

.movimientos-lista {
    max-height: 400px;
    overflow-y: auto;
}

.movimiento-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: flex-start;
    transition: background-color 0.2s ease;
}

.movimiento-item:last-child {
    border-bottom: none;
}

.movimiento-item:hover {
    background-color: #f8f9fa;
}

.movimiento-fecha {
    min-width: 120px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    margin-right: 15px;
    padding-top: 2px;
}

.movimiento-detalle {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.movimiento-detalle i {
    margin-right: 8px;
    font-size: 12px;
}

/* Iconos de movimientos de saldo */
.movimiento-detalle i.text-success {
    color: #28a745 !important;
}

.movimiento-detalle i.text-danger {
    color: #dc3545 !important;
}

.observacion {
    color: #6c757d;
    font-style: italic;
    display: block;
    margin-top: 5px;
}

/* ============================================
   ESTILOS PARA TABLA DE MOVIMIENTOS
   ============================================ */

.movimientos-tabla-container {
    padding: 0;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.movimientos-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.movimientos-tabla thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
}

.movimientos-tabla th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.movimientos-tabla th i {
    margin-right: 6px;
    opacity: 0.9;
}

.movimientos-tabla tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.movimientos-tabla tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.movimientos-tabla tbody tr:last-child {
    border-bottom: none;
}

.movimientos-tabla td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Columna Fecha */
.col-fecha {
    width: 120px;
}

.col-fecha .fecha-dia {
    display: block;
    font-weight: 600;
    color: #212529;
    font-size: 13px;
}

.col-fecha .fecha-hora {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
}

/* Columna Tipo */
.col-tipo {
    width: 120px;
}

.tipo-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.tipo-badge i {
    margin-right: 5px;
}

.tipo-ingreso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tipo-cargo {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tipo-ajuste {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Columna Cantidad */
.col-cantidad {
    width: 130px;
    text-align: right;
    font-weight: 700;
    font-size: 15px;
}

.cantidad-positiva {
    color: #28a745;
}

.cantidad-negativa {
    color: #dc3545;
}

.col-cantidad .signo {
    font-weight: 700;
}

.col-cantidad .valor {
    font-family: 'Courier New', monospace;
}

.col-cantidad .moneda {
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    margin-left: 2px;
}

/* Columna Saldo Final */
.col-saldo {
    width: 130px;
    text-align: right;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.col-saldo .saldo-valor {
    font-family: 'Courier New', monospace;
}

.col-saldo .moneda {
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    margin-left: 2px;
}

/* Columna Observaciones */
.col-observaciones {
    min-width: 200px;
    max-width: 350px;
    color: #495057;
    font-size: 13px;
}

.sin-concepto {
    color: #adb5bd;
    font-style: italic;
}

/* Animación de entrada para las filas */
@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movimiento-row {
    animation: fadeInRow 0.3s ease-out;
}

/* Scrollbar personalizado */
.movimientos-tabla-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.movimientos-tabla-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.movimientos-tabla-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.movimientos-tabla-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    /* Ajustar tabla en móviles */
    .movimientos-tabla {
        font-size: 12px;
    }

    .movimientos-tabla th,
    .movimientos-tabla td {
        padding: 8px 10px;
    }

    .movimientos-tabla th {
        font-size: 11px;
    }

    /* Ocultar columna de observaciones en móvil */
    .col-observaciones {
        display: none;
    }

    /* Ajustar anchos de columna */
    .col-fecha {
        width: auto;
        min-width: 80px;
    }

    .col-tipo {
        width: auto;
    }

    .tipo-badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    .col-cantidad,
    .col-saldo {
        width: auto;
        font-size: 13px;
    }

    .col-cantidad .moneda,
    .col-saldo .moneda {
        font-size: 10px;
    }

    .col-fecha .fecha-dia {
        font-size: 12px;
    }

    .col-fecha .fecha-hora {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .saldo-numero {
        font-size: 2rem;
    }

    .saldo-moneda {
        font-size: 1.4rem;
    }
    
    .movimiento-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .movimiento-fecha {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
        font-weight: 600;
    }
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

/* Tablet */
@media (max-width: 768px) {
    #user-dropdown-container {
        margin-top: 10px;
        margin-right: 5px;
    }
    
    .btn-user {
        font-size: 14px;
        padding: 8px 16px;
        min-width: 120px;
    }
    
    .user-dropdown-menu {
        min-width: 280px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    #user-dropdown-container {
        float: none;
        text-align: center;
        margin: 10px 0;
    }
    
    .btn-user {
        font-size: 14px;
        padding: 10px 20px;
        width: 100%;
        max-width: 250px;
    }
    
    .user-dropdown-menu {
        min-width: 100%;
        max-width: 350px;
        left: 50% !important;
        transform: translateX(-50%);
    }
    
    #mdlUsuario .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

/* ===========================================
   ESTILOS ORIGINALES MANTENIDOS
   =========================================== */

#intro-grupo{float:left; width: 100%; box-sizing: border-box;}

/* Ocultar el viejo sistema de login */
#loggin, #menu-usuario, #Acceso {
    display: none !important;
}

#div-usuario{clear:both; width:100%;}

#Subir {position: fixed; top:70px; left: calc(100% - 30px); width:30px; height:50px; cursor:pointer;
        background: url(../images/scroll-up.png) no-repeat;background-size: 100%; background-color: #666; background-position: 2px 10px; border-radius: 15px 0px 0px 0px; border-bottom:  solid thin #aaa;}
#Bajar {position: fixed; top:121px; left: calc(100% - 30px); width:30px; height:50px; cursor:pointer;
        background: url(../images/scroll-down.png) no-repeat;background-size: 100%; background-color: #666; background-position: 2px 10px; border-radius: 0px 0px 0px 15px;}

/* Capas generales de la página */
#bajo_cabecera {
    margin-top: 10px;
    min-height: 600px;
    max-width: 900px;
    margin: auto;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    #bajo_cabecera {
        padding: 15px;
        border-radius: 12px;
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}


/* Líneas de producto */
.linea_producto {
    clear: both;
    overflow: auto;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
    padding: 10px 4px;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.linea_producto:hover {
    background-color: #f9fafb;
}

.producto-destacado {
    background-color: #f0fdf4;
    border-left: 3px solid #28a745;
    padding-left: 8px;
}

.producto-destacado:hover {
    background-color: #dcfce7;
}

.proveedor-destacado .origen {
    color: #15803d;
    font-weight: 600;
}
.iconos {
    clear: both;
    margin: 8px 0;
}

.iconos div {
    height: 35px;
    width: 35px;
    float: left;
    margin-right: 8px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.iconos div:hover {
    transform: scale(1.1);
}
.ico-avalado{background: url(../images/ico/ico-avalado.png) no-repeat;background-size: 100%; }
.ico-eco{background: url(../images/ico/ico-eco.png) no-repeat;background-size: 100%; }
.ico-km0{background: url(../images/ico/ico-km0.png) no-repeat;background-size: 100%; }
.ico-aee{background: url(../images/ico/ico-aee.png) no-repeat;background-size: 100%; }
.ico-LaVidaBuena{background: url(../images/ico/ico-LaVidaBuena.png) no-repeat;background-size: 100%; }

#leyenda{clear: both; height: 50px;}
#leyenda .leyenda-ico{width:230px;}
#leyenda .txt-leyenda{font-size:14px; float:left; width:180px}

#linea-buscador {
    clear: both;
    float: right;
    height: 80px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#Buscador {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
    min-width: 200px;
}

#Buscador:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

#Buscador::placeholder {
    color: #9ca3af;
}

#ico-buscador {
    background: url(../images/ico/lupa.png) no-repeat;
    background-size: 70%;
    background-position: center;
    background-color: white;
    height: 30px;
    width: 30px;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

#ico-buscador:hover {
    background-color: #f0fdf4;
    border-color: #28a745;
    transform: scale(1.1);
}

#NingunProductoEncontrado {
    display: none;
    padding: 30px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    background: #f9fafb;
    border-radius: 12px;
    margin: 20px 0;
}

.linea_total {
    font-size: 24px;
    clear: both;
    font-weight: 700;
    color: #1f2937;
    width: auto;
    padding: 20px;
    display: inline-block;
    margin: auto;
    background: linear-gradient(135deg, #f9fafb 0%, #e9f7ef 100%);
    border-radius: 12px;
    border: 2px solid #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

#total, #total2 {
    float: left;
    margin-left: 8px;
    color: #28a745;
    font-family: 'Courier New', monospace;
}

.ver-desglose {
    float: right !important;
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-top: 10px;
    margin-right: 10px;
    padding: 6px;
    background: url(../images/ico/formula_precios.png) no-repeat;
    background-size: 60%;
    background-color: white;
    background-position: center;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.ver-desglose:hover {
    background-color: #f0fdf4;
    border-color: #28a745;
    transform: scale(1.1);
}

.ver-desglose-sin {
    float: right !important;
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-top: 10px;
    margin-right: 10px;
    padding: 6px;
    background: url(../images/ico/formula_precios_sin.png) no-repeat;
    background-size: 60%;
    background-color: white;
    background-position: center;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.ver-desglose-sin:hover {
    background-color: #f9fafb;
    border-color: #6c757d;
    transform: scale(1.1);
}

.categoria {
    clear: both;
    color: white;
    font-size: 18px;
    cursor: pointer;
    background-color: #28a745;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 0;
    margin-bottom: 1px;
    transition: background-color 0.2s ease;
    border-bottom: 3px solid #218838;
}

.categoria:hover {
    background-color: #20c997;
    border-bottom-color: #1ea085;
}

.bloque_categoria {
    display: none;
    margin-bottom: 20px;
}

/* Controles de formulario */
.bloque_datos{overflow:auto; margin-bottom:25px; width:100%; clear:both;}

.frm_linea {
    clear: both;
    margin-bottom: 16px;
}

.frm_campo {
    float: left;
    min-width: 200px;
    width: 100%;
    box-sizing: border-box;
    color: #1f2937 !important;
}

.frm_campo input,
.frm_campo textarea,
.frm_campo select {
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

.frm_campo input:focus,
.frm_campo textarea:focus,
.frm_campo select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.frm_campo textarea {
    resize: vertical;
    min-height: 100px;
}

.frm_campo select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.boton {
    float: left;
    text-align: center;
    padding: 12px 24px;
    color: white;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    cursor: pointer;
    min-width: 140px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
}

.boton:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.35);
}

.boton:active {
    transform: translateY(0);
}

#boton-aceptar {
    margin-top: 20px;
    float: right;
    font-size: 16px;
    padding: 14px 28px;
    min-width: 160px;
}
    
#detalles_proyecto{margin-bottom: 10px; font-size: 12px; }

.cantidad {
    text-align: right;
    border-radius: 8px;
    font-weight: 600;
}

.cantidad-sumar {
    float: right;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    font-size: 18px;
    padding: 4px 12px;
    margin: 0;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

.cantidad-sumar:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.cantidad-sumar:active {
    transform: scale(0.95);
}

#comentarios-ver{width: 100%; height: auto; border: none; background-color: transparent;}

/* ===========================================
   MODAL DE DESGLOSE DE PRECIOS
   =========================================== */

.modal-header-desglose {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-bottom: none;
    padding: 20px 24px;
    border-radius: 0.375rem 0.375rem 0 0;
}

.modal-header-desglose .modal-title {
    font-weight: 600;
    font-size: 18px;
}

.modal-header-desglose .modal-title i {
    margin-right: 8px;
}

.modal-header-desglose .close {
    color: white;
    opacity: 0.9;
    text-shadow: none;
    font-size: 1.5rem;
}

.modal-header-desglose .close:hover {
    opacity: 1;
}

.modal-body-desglose {
    padding: 0;
    background: #f9fafb;
}

.desglose-items {
    padding: 16px 0;
}

.desglose-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.desglose-item:hover {
    background-color: #f9fafb;
}

.desglose-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.desglose-label i {
    width: 18px;
    margin-right: 8px;
    color: #6b7280;
}

.desglose-pct {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.desglose-value {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Courier New', monospace;
}

.desglose-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-top: 2px solid #28a745;
}

.desglose-total-label {
    font-size: 16px;
    color: #15803d;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desglose-total-value {
    font-size: 20px;
    font-weight: 700;
    color: #15803d;
    font-family: 'Courier New', monospace;
}

#mdlDesglose .modal-dialog {
    max-width: 380px;
}

#mdlDesglose .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
    #mdlDesglose .modal-dialog {
        max-width: calc(100% - 20px);
        margin: 10px;
    }

    .desglose-item,
    .desglose-total {
        padding: 12px 16px;
    }

    .desglose-label {
        font-size: 13px;
    }

    .desglose-value {
        font-size: 14px;
    }

    .desglose-total-label {
        font-size: 15px;
    }

    .desglose-total-value {
        font-size: 18px;
    }
}
