.breadcrumb {
    background-color: white !important;
    padding: 5px 20px !important;
    margin-bottom: 0;
    list-style: none;
    border: 1px solid #e9ecef;
}

.breadcrumb a {
    color: #4a4a4a;;
    font-weight: 400;
}

.card .card-header .card-title {
    font-size: 1.3rem;
    font-weight: bold;
}





.table-sm th, .table-sm td {
    padding: 0.2rem;
}

.table thead tr {
    background-color: #ececec !important;
    color: #000000 !important;
}

.table thead th {
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
}

.password-progress {
    margin-top: 10px;
    margin-bottom: 0;
}

.dataTables_scroll {
    overflow: auto;
}

.form-control-checkbox {
    height: 25px;
    width: 25px;
    text-align: center;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.cursor-pointer {
    cursor: pointer;
}

a.card-icon p.desc {
    text-align: center;
    font-size: 12px !important;
}

a.card-icon {
    text-decoration: none !important;
    color: black !important;
    border: 1px solid #dee2e6 !important;
}

.card-icon-selected {
    background-color: #fdedbc;
}

a.card-icon:hover {
    background-color: #fdedbc;
    animation: shakeY;
    animation-duration: 2s;
}

.img-small {
    width: 20px;
    height: 20px;
}

.loading {
    font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    position: absolute;
    top: 36%;
    width: 100%;
}

.dropdown-menu {
    min-width: 240px !important;
    border-radius: 8px;
}

.occupied-date {
    background-color: #28A745 !important;
    color: white !important;
    border-radius: 50%;
    font-weight: bold;
}
.occupied-date-pendient {
    background-color: #FFC107 !important;
    color: white !important;
    border-radius: 50%;
    font-weight: bold;
}








/* ==========================================
   ESTILOS PARA CALENDARIO DE SALARIOS
   ========================================== */

/* Transición suave al hacer hover */
.flatpickr-day {
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.flatpickr-day:hover {
    transform: scale(1.15) !important;
    z-index: 10 !important;
}

/* Efecto de pulso para semanas listas para pagar */
.flatpickr-day.ready-to-pay {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* Efecto de brillo para semanas pagadas */
.flatpickr-day.already-paid {
    animation: glow-green 2.5s infinite;
}

@keyframes glow-green {
    0% { box-shadow: 0 0 5px rgba(40, 167, 69, 0.5); }
    50% { box-shadow: 0 0 15px rgba(40, 167, 69, 0.8); }
    100% { box-shadow: 0 0 5px rgba(40, 167, 69, 0.5); }
}

/* Estilo cuando está seleccionado */
.flatpickr-day.selected {
    background: #6f42c1 !important;
    border-color: #6f42c1 !important;
    color: white !important;
}

.flatpickr-day.startRange.selected,
.flatpickr-day.endRange.selected {
    background: #5a32a3 !important;
    border-color: #5a32a3 !important;
}

/* Rango seleccionado */
.flatpickr-day.inRange {
    background: rgba(111, 66, 193, 0.15) !important;
    border-color: transparent !important;
}

/* Tooltip al hacer hover */
.flatpickr-day[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Leyenda del calendario */
.flatpickr-calendar .legend-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 15px;
    margin-top: 8px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 4px 4px;
    font-size: 11px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

/* Notificaciones */
.alert.position-fixed {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Badge de indicador en días */
.flatpickr-day .day-badge {
    position: absolute;
    font-size: 8px;
    top: 1px;
    right: 1px;
    line-height: 1;
}














/*nuevos  */
/* Botones de filtro: muy pequeños y con color */
#employee_heading_filters .filter-chip {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    height: 17px !important;

    margin: 1px 1px 0 0 !important;
    padding: 1px 4px !important;

    border: 1px solid #b9dce6 !important;
    border-radius: 4px !important;
    background: #e9f7fb !important;
    color: #082690 !important;

    font-size: 8px !important;
    font-weight: 600 !important;
    line-height: 12px !important;
    box-shadow: none !important;
    white-space: nowrap;
}

/* Al seleccionar un rubro */
#employee_heading_filters .filter-chip.btn-info {
    border-color: #17a2b8 !important;
    background: #17a2b8 !important;
    color: #ffffff !important;
}

/* Número dentro del filtro, si existe */
#employee_heading_filters .filter-chip .badge {
    margin-left: 2px !important;
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 7px !important;
}




#employee_heading_filters .filter-chip {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    height: 17px !important;
    margin: 1px 1px 0 0 !important;
    padding: 1px 4px !important;

    border: 1px solid #b9dce6 !important;
    border-radius: 4px !important;
    background: #e9f7fb !important;
    color: #087990 !important;

    font-size: 8px !important;
    font-weight: 600 !important;
    line-height: 12px !important;
    box-shadow: none !important;
    white-space: nowrap;
}

/* Rubro seleccionado */
#employee_heading_filters .filter-chip.btn-info {
    border-color: #17a2b8 !important;
    background: #17a2b8 !important;
    color: #fff !important;
}

/* Número dentro del filtro */
#employee_heading_filters .filter-chip .badge {
    margin-left: 2px !important;
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 7px !important;
}






/* Cabecera derecha: título y filtros compactos */
.production-panel-header {
    display: block;
    padding-top: .45rem;
    padding-bottom: .45rem;
}

.production-panel-header .card-title {
    display: block;
    margin: 0 0 3px 0;
    font-size: 14px;
}

.line-filter-toolbar {
    display: block;
    margin: 0;
}

.line-filter-toolbar > .line-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 2px;
}

.line-filter-label {
    min-width: 66px;
    color: #6c757d;
    font-size: 9px;
    font-weight: 700;
    line-height: 17px;
    text-transform: none;
}

/* Botones pequeños del lado derecho */
#line_heading_filters .filter-chip,
#line_rule_type_filters .filter-chip {
    width: auto !important;
    min-width: 0 !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 1px 5px !important;

    border-radius: 4px !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    line-height: 8 px !important;
    box-shadow: none !important;
    white-space: nowrap;
}


/* Presentaciones: mismo estilo visual que filtros del panel izquierdo */
/* #line_presentation_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
} */

#line_presentation_filters .filter-chip {
    width: auto !important;
    min-width: 0 !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 1px 4px !important;

    border-radius: 4px !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    line-height: 12px !important;
    white-space: nowrap;
    box-shadow: none !important;
}

/* Panel izquierdo compacto */
#employee_list .employee-item {
    padding: 7px 10px !important;
}

#employee_list .employee-name {
    display: block;
    font-size: 12px !important;
    line-height: 15px;
    font-weight: 700;
}

#employee_list .employee-dni {
    display: block;
    margin-top: 1px;
    font-size: 10px !important;
    font-weight: 700;
    line-height: 12px;
    color: #495057;
    letter-spacing: .15px;
}

#employee_list .employee-meta-row {
    margin-top: 2px;
    font-size: 10px !important;
}

#employee_list .employee-heading-badge,
#employee_list .employee-stats,
#employee_list .badge {
    font-size: 9px !important;
    line-height: 13px !important;
}
/* Más separación entre el rubro y los registros */
#employee_list .employee-stats {
    margin-left: 7px !important;
}








/* Encabezados */
table.dataTable thead th,
table.dataTable thead td {
    padding: 4px 18px 4px 6px !important;
    vertical-align: middle !important;
    white-space: nowrap;
    position: relative;
}

/* Flechas centradas */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    top: 50% !important;
    transform: translateY(-50%);
    font-size: 10px;
}

/* Ubicación horizontal */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before {
    right: 8px;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    right: 2px;
}













.table th {
    padding: 0.15rem 1.2rem 0.15rem 0.15rem; /* deja espacio a la derecha */
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
    white-space: nowrap;
}

.table td {
    padding: 0.055rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}



.content-header {

    padding-top: 7px;
    padding-bottom: 0px;
}




/* =========================================================
   DASHBOARD HORIZONTAL CARD
   ========================================================= */

.dashboard-wrapper {
    min-height: calc(100vh - 55px);
    padding: 10px 12px;
    background-color: #f4f6f9;
}

.dashboard-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-right: 8px;
    padding-left: 8px;
}

.dashboard-main-card {
    margin-bottom: 0;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Encabezado principal */

.dashboard-header {
    min-height: 48px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background-color: #ffffff;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #202124;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.dashboard-title i {
    font-size: 17px;
}

.dashboard-user-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
}

.dashboard-user-menu .nav-item {
    margin: 0 !important;
}

.dashboard-user-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 0 !important;
    cursor: pointer;
    white-space: nowrap;
}

.dashboard-logout {
    font-size: 14px;
}

/* Cuerpo */

.dashboard-body {
    padding: 10px 16px 14px;
}

/* Pestañas */

.dashboard-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid #dce1e6;
    scrollbar-width: thin;
}

.dashboard-tabs .nav-item {
    flex: 0 0 auto;
    margin-bottom: -1px;
}

.dashboard-tabs .nav-link {
    min-height: 40px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 5px 5px 0 0;
    border: 1px solid transparent;
    color: #007bff;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.dashboard-tabs .nav-link:hover {
    background-color: #f6f8fa;
    border-color: #e2e6ea #e2e6ea transparent;
}

.dashboard-tabs .nav-link.active {
    color: #343a40;
    font-weight: 500;
    background-color: #ffffff;
    border-color: #dee2e6 #dee2e6 #ffffff;
}

/* Contenido */

.dashboard-tab-content {
    padding-top: 12px;
}

/* Grid adaptable */

.dashboard-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
    width: 100%;
}

/* Tarjeta de cada módulo */

a.dashboard-module-card {
    min-width: 0;
    min-height: 128px;
    margin: 0;
    padding: 13px 10px 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    overflow: hidden;

    text-decoration: none !important;
    color: #1f2328 !important;

    background-color: #ffffff;
    border: 1px solid #dfe3e8 !important;
    border-radius: 6px;

    box-shadow: 0 4px 12px rgba(31, 35, 40, 0.09);

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background-color 0.16s ease;
}

a.dashboard-module-card:hover {
    background-color: #fffaf0;
    border-color: #e2aa39 !important;
    box-shadow: 0 7px 17px rgba(31, 35, 40, 0.14);
    transform: translateY(-2px);

    /*
    Elimina la animación shakeY anterior.
    */
    animation: none;
}

/* Icono */

.dashboard-module-icon {
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-module-icon i {
    font-size: 39px;
    line-height: 1;
    color: #050505;
}

.dashboard-module-icon img {
    width: auto;
    max-width: 48px;
    height: 43px;
    object-fit: contain;
}

/* Texto */

.dashboard-module-content {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.dashboard-module-title {
    min-height: 38px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;

    color: #050505;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.18;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dashboard-module-description {
    width: 100%;
    margin: 5px 0 0;
    overflow: hidden;

    color: #252525;
    font-size: 11px !important;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.dashboard-empty {
    grid-column: 1 / -1;
    padding: 25px;
    color: #6c757d;
    text-align: center;
}

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

@media (min-width: 1400px) {
    .dashboard-module-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .dashboard-module-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .dashboard-module-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .dashboard-module-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-user-text {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .dashboard-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .dashboard-header {
        padding: 8px 11px;
    }

    .dashboard-body {
        padding: 8px 11px 12px;
    }

    .dashboard-profile-text,
    .dashboard-user-text {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .dashboard-wrapper {
        padding: 6px;
    }

    .dashboard-container {
        padding: 0;
    }

    .dashboard-header {
        min-height: 43px;
        padding: 7px 9px;
    }

    .dashboard-title {
        font-size: 15px;
    }

    .dashboard-user-menu {
        gap: 11px;
    }

    .dashboard-user-text,
    .dashboard-profile-text {
        display: none;
    }

    .dashboard-body {
        padding: 7px 8px 10px;
    }

    .dashboard-tabs .nav-link {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .dashboard-tab-content {
        padding-top: 9px;
    }

    .dashboard-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    a.dashboard-module-card {
        min-height: 112px;
        padding: 10px 7px 8px;
        gap: 5px;
    }

    .dashboard-module-icon {
        height: 37px;
    }

    .dashboard-module-icon i {
        font-size: 33px;
    }

    .dashboard-module-title {
        min-height: 34px;
        font-size: 14px;
    }

    .dashboard-module-description {
        font-size: 10px !important;
    }
}