/* Reset y Base */
body { margin: 0; padding: 0; background-color: black; }

/* Header Principal */
.main-header {
    background-color: black;
    border-bottom: 2px solid #e0e0e0;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Navegación */
.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a:hover {
    background-color: #ffdf87;
    color: #000000;
}

.main-nav a.active {
    background-color: #fcc204;
    color: #000000;
}

/* Sección Usuario */
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.username {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: capitalize;
}

.btn-logout {
    background-color: #fcc204;
    color: black;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    transition: 0.3s;
}

.btn-logout:hover {
    background-color: #ffe678;
}

/* Contenedor principal para que el contenido no pegue al header */
.container {
    padding-top: 20px;
}

body { font-family: 'Segoe UI', sans-serif; background: #f0f2f5; margin: 0; }
.navbar { background: #333; padding: 1rem; text-align: center; margin-bottom: 20px; }
.navbar a { color: white; text-decoration: none; font-weight: bold; margin: 0 15px; }
.container { max-width: 800px; margin: auto; padding: 10px; }
.card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
h2 { color: #333; margin-top: 0; text-align: center; }

.filtro-local { display: flex; gap: 10px; margin-bottom: 20px; }
.filtro-local input { display: none; }
.filtro-local label { 
    flex: 1; text-align: center; padding: 12px; border: 2px solid #ddd; 
    border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s;
}
.filtro-local input:checked + label { border-color: #1a73e8; background: #e8f0fe; color: #1a73e8; }

.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; }
input, select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; }
.btn-submit { background: #333; color: white; border: none; width: 100%; padding: 15px; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; }

.input-group-custom {
    display: flex;
    width: 100%;
    height: 45px;
}

#sel_prov {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
    padding: 0 10px;
    font-size: 16px;
    background-color: white;
    outline: none;
    -webkit-appearance: none; /* Quita el estilo feo de algunos browsers */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.btn-plus-custom {
    width: 55px;
    background: #28a745;
    color: white;
    border: 1px solid #28a745;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal */
#modal_prov { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:100; }
.modal-content { background: white; width: 300px; margin: 100px auto; padding: 20px; border-radius: 10px; text-align: center; }

/* Resumen.php */

.filtros-superiores {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.filtro-local-mini { display: flex; gap: 5px; flex: 1; }
.filtro-local-mini input { display: none; }
.filtro-local-mini label { 
    padding: 8px 20px; border: 1px solid #ddd; border-radius: 6px; 
    cursor: pointer; background: white; font-weight: bold; font-size: 13px;
}
.filtro-local-mini input:checked + label { border-color: #1a73e8; background: #e8f0fe; color: #1a73e8; }

.selector-fecha select { padding: 8px; border-radius: 6px; border: 1px solid #ddd; font-weight: bold; }

.info-bar {
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.info-item { text-align: center; }
.info-item .label { display: block; font-size: 12px; color: #666; text-transform: uppercase; margin-bottom: 5px; }
.info-item .valor { font-size: 20px; font-weight: bold; color: #333; }

.text-green { color: #28a745 !important; }
.text-red { color: #dc3545 !important; }
.monto-discreto { font-size: 18px; font-weight: bold; color: #1a73e8; }
.estado-pagado { text-decoration: line-through; color: #aaa; }
.btn-check { cursor: pointer; border: none; background: #e8f0fe; color: #1a73e8; padding: 5px 10px; border-radius: 4px; font-size: 12px; }

/* Estilos para el estado pagado */
.fila-pagada { background-color: #f8f9fa !important; }
.texto-pagado { text-decoration: line-through; color: #adb5bd !important; }

.btn-check-pago {
    width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ddd;
    background: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; font-size: 14px;
}
.btn-check-pago.is-pagado {
    background: #28a745; border-color: #28a745; color: white;
}
.btn-check-pago:hover { transform: scale(1.1); }

.seccion-busqueda {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-busqueda {
    display: flex;
    gap: 10px;
    align-items: center;
}

.grupo-input {
    position: relative;
    flex: 1;
}

.grupo-input i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.grupo-input input, .grupo-input select {
    width: 100%;
    padding: 8px 10px 8px 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.grupo-input select {
    padding-left: 10px; /* El select no necesita espacio para el icono de lupa */
}

.btn-buscar {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-limpiar {
    color: #dc3545;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}