.main-header {
    position: fixed;
    width: 100%;
}

.content-wrapper {
    padding-top: 50px;
    min-height: calc(100vh - 51px);
}

button[disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.roles-container > div {
    padding: 5px;
}

.rol-item {
    background-color: #e8f0fe;
    color: #1a73e8;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #c6dafc;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* igual que antes */
    justify-content: space-between;
    text-align: center;
    height: 100%;
    width: 100%;
}

.tag-rol .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

#rolesSeleccionados > .col-6,
#rolesSeleccionados > .col-md-3 {
    display: flex;
}

footer, .sidebar-toggle {
    font-size: 14px !important;
    line-height: 1.42857143 !important;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-bottom: -7px;
}
.switch input { display: none; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
    align-self: auto !important;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 2px; bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #5cb85c;
}
input:checked + .slider:before {
    transform: translateX(26px);
}

.fila-subida {
    animation: resaltaSube 1s;
    background-color: #d4edda !important; /* Verde claro */
}
.fila-bajada {
    animation: resaltaBaja 1s;
    background-color: #f8d7da !important; /* Rojo claro */
}
@keyframes resaltaSube {
    0%   { background-color: #d4edda; }
    100% { background-color: transparent; }
}
@keyframes resaltaBaja {
    0%   { background-color: #f8d7da; }
    100% { background-color: transparent; }
}








.permisos-opciones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 16px; /* Separación entre filas y columnas */
    justify-items: center;
    align-items: center;
    margin-top: 8px;
}



form > .box-body {
    display: flex;
    flex-wrap: wrap;
}
