/*
 * ==========================================================
 * ABM COLORES - MVP
 * ==========================================================
 */

#btnABMColores {
    cursor: pointer;
    min-width: 36px;
    min-height: 36px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

#abmColores {
    z-index: 1000;
}

.abm-maestro-contenido {
    width: min(1100px, 94vw);
    max-height: 90vh;
    overflow: auto;
}

.abm-maestro-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.abm-maestro-cabecera h2 {
    margin: 0;
}

.abm-maestro-cerrar {
    min-width: 40px;
    min-height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
}

.abm-colores-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.abm-colores-toolbar button,
.abm-maestro-acciones button {
    min-height: 38px;
    padding: 6px 14px;
    cursor: pointer;
}

.abm-maestro-mensaje {
    min-height: 24px;
    margin: 6px 0;
    font-weight: bold;
}

.abm-mensaje-error {
    color: #a00000;
}

.abm-colores-tabla-wrap {
    overflow-x: auto;
    width: 100%;
}

.abm-maestro-tabla {
    width: 100%;
    border-collapse: collapse;
}

.abm-maestro-tabla th,
.abm-maestro-tabla td {
    border: 1px solid #bbb;
    padding: 7px;
    text-align: left;
    white-space: nowrap;
}

.abm-maestro-tabla tbody tr {
    cursor: pointer;
}

.abm-maestro-tabla tbody tr:hover {
    background: #eeeeee;
}

.abm-maestro-tabla tbody tr.abm-fila-seleccionada {
    outline: 2px solid #555;
    background: #e8e8e8;
}

.abm-maestro-formulario {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #bbb;
}

.abm-maestro-formulario h3 {
    margin-top: 0;
}

.abm-maestro-formulario label {
    display: block;
    margin: 10px 0;
    font-weight: bold;
}

.abm-maestro-formulario input[type="text"],
.abm-maestro-formulario textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 8px;
    font-size: 1rem;
}

.abm-check-activo {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.abm-check-activo input {
    width: auto !important;
    margin: 0 !important;
}

.abm-maestro-acciones {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

@media (max-width: 600px) {

    .abm-maestro-contenido {
        width: 96vw;
        max-height: 92vh;
    }

    .abm-colores-toolbar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .abm-colores-toolbar button {
        width: 100%;
    }

    .abm-maestro-tabla th,
    .abm-maestro-tabla td {
        padding: 5px;
        font-size: 0.85rem;
    }

}
