/* ========================================================================
   CATEGORÍA DETAIL MODAL - Estilos específicos
   ======================================================================== */

#catEditOverlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#catEditOverlay.active {
    display: flex !important;
}

.cat-modal-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cat-modal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cat-modal-hdr-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.cat-modal-x {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cat-modal-x:hover {
    background: #e2e8f0;
    color: #475569;
}

.cat-modal-body {
    padding: 24px;
}

.cat-modal-lbl {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.cat-modal-inp,
.cat-modal-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.cat-modal-inp:focus,
.cat-modal-select:focus {
    outline: none;
    border-color: var(--mainColor);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cat-modal-ftr {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cat-mbtn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: inherit;
}

.cat-mbtn.ghost {
    background: white;
    border-color: #cbd5e1;
    color: #475569;
}

.cat-mbtn.ghost:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.cat-mbtn.primary {
    background: var(--mainColor, #2563eb);
    color: white;
}

.cat-mbtn.primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cat-mbtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Grid para múltiples inputs */
.cat-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cat-modal-grid.full {
    grid-template-columns: 1fr;
}

/* Chips para staff/horarios */
.cat-staff-chips-row,
.cat-horarios-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cat-staff-chip,
.cat-horario-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
}

.cat-staff-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}
