/* Estilos para encabezados ordenables */
.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.sortable:hover {
    background-color: #f8f9fa;
}

/* ========================================
   DEPARTAMENTOS - DISEÑO DE CARDS
   ======================================== */

.departamento-card {
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.departamento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.25);
    border-color: #4e73df;
}

.departamento-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e3e6f0;
    background: #fff;
}

.departamento-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4e73df;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.departamento-count {
    font-size: 0.875rem;
    color: #858796;
}

.departamento-card-body {
    padding: 1.25rem 1.5rem;
    background: #fff;
    flex-grow: 1;
}

.puestos-placeholder {
    padding: 1rem;
    background: #f8f9fc;
    border-radius: 6px;
    text-align: center;
}

.puestos-placeholder p {
    color: #858796;
}

.puestos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.puestos-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e3e6f0;
    display: flex;
    align-items: center;
}

.puestos-list li:last-child {
    border-bottom: none;
}

.puestos-list li i {
    color: #4e73df;
    margin-right: 0.5rem;
    font-size: 0.5rem;
    vertical-align: middle;
}

.puestos-scroll-container {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar personalizado webkit */
.puestos-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.puestos-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.puestos-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.puestos-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #b3b3b3;
}

/* Grid spacing mejorado */
.row.g-3 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .departamento-card {
        margin-bottom: 1rem;
    }
    
    .departamento-card-header,
    .departamento-card-body {
        padding: 1rem 1.25rem;
    }
}
