/* =========================================
   1. CONFIGURACIÓN DEL FONDO Y BASE
   ========================================= */
.bg-image {
    background-image: url('../sistema/imagen/fondo2.webp');
    background-size: cover;
    background-position: center;
    height: 100vh;
}

.container {
    background-color: rgba(0, 0, 0, 0.7) !important;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    border: 5px solid #c0c7ca;
}

/* =========================================
   2. MENÚ Y BOTONES 3D
   ========================================= */
.menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 10px;
    background-color: rgba(93, 102, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    z-index: 9999 !important;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.5);
}

.menu.active {
    display: block;
}

.menu ul {
    list-style: none;
    padding: 0;
}

.menu li {
    margin: 15px 0;
}

.menu a {
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.4), 
                inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}

.menu ul li a:hover {
    background-color: #072c0a;
    color: rgb(12, 158, 32);
    padding-left: 25px;
    border-left: 6px solid rgb(12, 158, 32); 
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.6), 
                inset 2px 2px 5px rgba(0, 0, 0, 0.5);
    transform: translateY(2px);
}

.menu-img {
    width: 50px;
    height: 50px;
    border-radius: 8px; 
    margin-right: 15px;
    object-fit: contain;
    filter: drop-shadow(-2px 2px 3px rgba(0,0,0,0.5));
}

.menu-toggle {
    font-size: 50px !important;
    cursor: pointer;
    padding: 10px;
    display: inline-block;
    user-select: none;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 10000;
    color: #fff;
    background-color: #C0C0C0;
    box-shadow: -3px 3px 10px rgba(0,0,0,0.3);
    border-radius: 0 0 10px 0;
}

/* =========================================
   3. FORMULARIOS E INPUTS
   ========================================= */
input[type="text"], 
input[type="email"], 
input[type="number"],
input[type="date"],
select {
    padding: 5px; 
    height: 30px; 
    font-size: 14px; 
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
}

label {
    display: inline-block;
    width: 120px; 
    text-align: left;
    margin-right: 10px; 
    color: #ffff99 !important; 
    font-weight: bold;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.1em; 
}

.select-destacado {
    border: 2px solid #007bff;
    background-color: #f8f9fa;
    padding: 5px;
    border-radius: 4px;
    font-weight: bold;
}

/* =========================================
   4. DETALLE DE ABONO Y FECHAS
   ========================================= */
.input-fecha-taller {
    background-color: rgba(30, 30, 30, 0.9) !important;
    color: #00FF00 !important; 
    border: 1px solid #444 !important;
    border-radius: 4px;
    color-scheme: dark; /* Mejora visual en inputs de fecha */
}

.input-fecha-taller::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.input-fecha-taller:focus {
    background-color: #000 !important;
    border-color: #28A745 !important;
    outline: none;
}

.invoice-card {
    background: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(10px);
    border: 2px solid #c0c7ca !important;
    border-radius: 12px;
    padding: 20px;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #fff;
}

.invoice-card .row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.invoice-card label {
    color: #ffff99 !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0;
    width: auto; 
}

data {
    color: #00d4ff !important;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1rem;
}

.invoice-card .row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #00d4ff !important;
}

.invoice-card .currency {
    color: #00FF00 !important;
    font-size: 1.8rem !important;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
    font-family: 'Arial Black', sans-serif;
}

/* =========================================
   5. CORRECCIÓN SELECTS (BLANCO SOBRE BLANCO)
   ========================================= */
.select-dark {
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
    border: 1px solid #444 !important;
}

/* ESTO DEBE ESTAR SIEMPRE AL FINAL PARA MÁXIMA ESPECIFICIDAD */
select.form-control option, 
.form-horizontal select option,
#CARNUM option,
#TIPFACNUM option,
#ESTFACNUM option,
select option {
    background-color: #222 !important;
    color: #ffffff !important;
    padding: 10px !important;
}

select.form-control, select {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
}

select.form-control, select {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
}