:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #e74c3c;
    --green: #2ecc71;
    --yellow: #f1c40f;
    --gray: #95a5a6;
    --dark: #34495e;
    --light: #ecf0f1;
}



body {
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}





.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
}





.search-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.section-titles {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.search-container {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark);
}

input, select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s ease;
}

    input:focus, select:focus {
        outline: none;
        border-color: var(--primary);
    }

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

    button:hover {
        background-color: var(--primary-dark);
    }

.button-group {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background-color: var(--gray);
}

    .btn-secondary:hover {
        background-color: #7f8c8d;
    }

.employee-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.employee-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--light);
    border-radius: 8px;
}

.employee-info-col {
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

    .tab.active {
        border-bottom-color: var(--primary);
        color: var(--primary);
        font-weight: 600;
    }

.attendance-calendar {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

    .attendance-calendar th, .attendance-calendar td {
        text-align: center;
        padding: 10px;
        border: 1px solid #ddd;
    }

    .attendance-calendar th {
        background-color: var(--primary);
        color: white;
    }

    .attendance-calendar td.weekend {
        background-color: #f8f9fa;
    }

.attendance-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.present {
    background-color: var(--green);
}

.absent {
    background-color: var(--secondary);
}

.not-set {
    background-color: var(--gray);
}

.financial-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.financial-card {
    flex: 1;
    min-width: 200px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card-label {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

.card-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
}

.summary-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.attendance-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-switch {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.service-button {
    flex: 1;
    padding: 15px;
    text-align: center;
    background-color: var(--light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .service-button.active {
        background-color: var(--primary);
        color: white;
    }

.footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.btn-save {
    background-color: var(--green);
}

    .btn-save:hover {
        background-color: #27ae60;
    }

.month-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.month-title {
    font-size: 18px;
    font-weight: 600;
}

.btn-month {
    background-color: transparent;
    color: var(--dark);
    border: 1px solid #ddd;
    padding: 5px 15px;
}

    .btn-month:hover {
        background-color: var(--light);
    }


/*control asistencia*/







.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.date-selector {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-display {
    font-size: 18px;
    font-weight: 600;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
    }

.btn-secondary {
    background-color: var(--gray);
    color: white;
}

    .btn-secondary:hover {
        background-color: #7f8c8d;
    }

.company-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.company-header {
    background-color: var(--primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
}

.company-address {
    font-size: 14px;
    opacity: 0.9;
}

.employees-list {
    padding: 0;
}

.employee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e3ebf6;
}

.employee-info2 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.employee-name {
    font-weight: 500;
}

.employee-position {
    font-size: 13px;
    color: var(--gray);
}

.attendance-actions {
    display: flex;
    gap: 10px;
}

.btn-attendance {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    min-width: 90px;
    transition: all 0.2s;
}

.btn-present {
    background-color: var(--gray);
    color: white;
}

    .btn-present:hover, .btn-present.active {
        background-color: var(--green);
    }

.btn-absent {
    background-color: var(--gray);
    color: white;
}

    .btn-absent:hover, .btn-absent.active {
        background-color: var(--secondary);
    }

.save-all {
    margin-top: 30px;
    text-align: center;
}

.btn-save {
    padding: 10px 30px;
    font-size: 16px;
    background-color: var(--green);
    color: white;
}

    .btn-save:hover {
        background-color: #27ae60;
    }

    .btn-save:disabled {
        background-color: var(--gray);
        cursor: not-allowed;
    }

.summary-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.section-titles {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.financial-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.financial-card {
    flex: 1;
    min-width: 200px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.card-label {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

.card-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    background-color: var(--green);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(200%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

    .notification.show {
        transform: translateX(0);
    }

    .notification.error {
        background-color: var(--secondary);
    }


.attendance-calendar th,
.attendance-calendar td {
    padding: 5px;
    font-size: 12px;
    min-width: 30px;
}

/* Estilo para el switch de turno doble */
.form-check.form-switch.form-check-custom {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.form-check-input.form-check-input-custom {
    width: 48px;
    height: 24px;
    cursor: pointer;
    background-color: #e9ecef;
    border: none;
}

    .form-check-input.form-check-input-custom:checked {
        background-color: var(--primary);
    }

.form-check-label {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

/* Estilo para el select de horas extras */
.extra-hours-select {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .extra-hours-select label {
        font-size: 14px;
        color: var(--dark);
        font-weight: 500;
    }

    .extra-hours-select select {
        padding: 8px 12px;
        border-radius: 6px;
        border: 1px solid #e3ebf6;
        background-color: white;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s;
        max-width: 80px;
    }

        .extra-hours-select select:hover {
            border-color: var(--primary);
        }

        .extra-hours-select select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
        }

/* Reorganización de los elementos de asistencia */
.attendance-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.attendance-buttons {
    display: flex;
    gap: 10px;
}
/* Botón trigger con diseño atractivo */
.view-trigger {
    font-weight: bold;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    border: none;
    cursor: pointer;
}

    .view-trigger:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
        color: #fff;
        text-decoration: none;
    }

/* Estilos del Modal */
/*.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 30px;
}

.modal-title {
    font-weight: bold;
    color: #fff;
    font-size: 1.5rem;
}

.btn-close {
    color: #fff;
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 0.8;
}

    .btn-close:hover {
        opacity: 1;
        transform: scale(1.1);
    }

.modal-body {
    padding: 30px;
}*/

/* Estilos para campos de solo lectura - Nuevo diseño tipo tarjeta */
/*.info-card {
    background: linear-gradient(to bottom right, #3b82f6, #1e40af);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .info-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .info-card.full-width {
        display: block;
    }

        .info-card.full-width .info-content {
            margin-left: 50px;
        }

.info-icon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    color: #bfdbfe;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    word-break: break-word;
}

    .info-value.empty {
        color: rgba(255, 255, 255, 0.6);
        font-style: italic;
    }*/

/* Botón de cerrar */
/*.btn-close-modal {
    padding: 10px 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #60a5fa;
    color: #60a5fa;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .btn-close-modal:hover {
        background: #60a5fa;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(96, 165, 250, 0.4);
    }*/

/* Efectos adicionales */
/*.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.required-indicator {
    color: #bfdbfe;
    margin-left: 2px;
}*/

/* Nuevo contenedor financiero más compacto */
.financial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.financial-column {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.financial-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border-left: 3px solid #3f51b5;
    min-height: 70px;
}

.financial-card.highlight {
    border-left-color: #ff9800;
}

.card-icon {
    font-size: 1.5rem;
    color: #3f51b5;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
}

.highlight .card-icon {
    color: #ff9800;
}

.card-content {
    flex-grow: 1;
}

.card-label {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.card-value {
    color: #212529;
    font-size: 1.2rem;
    font-weight: 600;
}

.total-section {
    margin-top: 15px;
}

.financial-total {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #28a745;
    width: 300px;
    margin-left: auto;
}

.total-icon {
    color: #28a745;
    font-size: 1.8rem;
}

.grand-total {
    font-size: 1.5rem;
    color: #28a745;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .financial-total {
        width: 100%;
    }
}

/* Estilo para mostrar datos de asistencia verticalmente */
.attendance-status-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 3px 0;
}

.attendance-status-vertical .attendance-count {
    color: #3f51b5;
    font-weight: bold;
    font-size: 12px;
}

.attendance-status-vertical .double-shift {
    color: #ff9800;
    font-weight: bold;
    font-size: 12px;
}

.attendance-status-vertical .inasistencias {
    color: #e53935;
    font-weight: bold;
    font-size: 12px;
}

/* Ajustar altura de las celdas para que quepa el contenido vertical */
.attendance-calendar td {
    height: 60px;
    vertical-align: middle;
}

.service-costs-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.service-cost-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-left: 3px solid #3f51b5;
    border-radius: 6px;
}

.service-type {
    font-weight: 500;
}

.service-price {
    font-weight: 600;
    color: #3f51b5;
}

.empty-message {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

#detalleImporteContainer .table {
    width: 100%;
    border-collapse: collapse;
}

#detalleImporteContainer .table th,
#detalleImporteContainer .table td {
    padding: 8px;
    text-align: right;
    border-bottom: 1px solid #e9ecef;
}

#detalleImporteContainer .table th:first-child,
#detalleImporteContainer .table td:first-child {
    text-align: left;
}

#detalleImporteContainer .table th {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

#detalleImporteContainer .table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Estilos para las diferentes filas de indicadores */
.attendance-count, .double-shift, .inasistencias, .horasExtras {
    text-align: center;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.attendance-count {
    background-color: #4CAF50;
    color: white;
}

.double-shift {
    background-color: #2196F3;
    color: white;
}

.inasistencias {
    background-color: #F44336;
    color: white;
}

.horasExtras {
    background-color: #FFC107;
    color: #000;
}

/* Asegurar que las celdas del calendario tengan un tamaño adecuado */
.attendance-calendar td {
    height: 30px;
    min-width: 30px;
    text-align: center;
    vertical-align: middle;
}

.pagos-config-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.08);
    padding: 32px 24px;
    margin-bottom: 32px;
    border: 1px solid #e3ebf6;
}
.pagos-config-card .section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    text-align: center;
}
.pagos-config-options {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
.frequency-option {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 350px;
    border: 1.5px solid #e3ebf6;
    border-radius: 12px;
    padding: 24px 18px;
    background: #f8f9fa;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(52, 152, 219, 0.04);
    position: relative;
}
.frequency-option.selected {
    box-shadow: 0 0 0 3px var(--primary);
    border-color: var(--primary);
    background: #eaf6fb;
}
.frequency-option .form-check {
    margin-bottom: 10px;
}
.frequency-option .form-check-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}
.frequency-option .small {
    color: #888;
    font-size: 13px;
}
.frequency-option .mt-2 {
    margin-top: 12px !important;
}
.range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}
.required-field:after {
    content: '*';
    color: var(--secondary);
    margin-left: 4px;
}