/* ◆ DAVID (2026-06-24): glam GLOBAL de los catálogos de Herramientas·Opciones (clases cat-*).
   Antes vivía scoped en SpCatalogoSimple.razor.css, por lo que NO llegaba a los catálogos
   especializados (Aula, Moneda, Retribución, TipoAsistencia, TipoComprobante, EstadoMateria,
   Link, Etiquetas). Movido acá una sola vez → todos los catálogos quedan con estilo. */
.cat-wrap { padding: 4px 2px 18px; }

.cat-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cat-spacer { flex: 1 1 auto; }

.cat-search { position: relative; display: flex; align-items: center; flex: 0 1 320px; }
.cat-search i { position: absolute; left: 12px; color: #9a96c4; font-size: 13px; }
.cat-search input {
    width: 100%; padding: 9px 12px 9px 34px; border: 1px solid #ddd9f3; border-radius: 10px;
    background: #fff; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.cat-search input:focus { border-color: #5F57BF; box-shadow: 0 0 0 3px rgba(95,87,191,.12); }

.cat-btn {
    border: 1px solid #ddd9f3; background: #fff; color: #4a43a0; border-radius: 10px;
    padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s, transform .08s;
}
.cat-btn:hover { background: #f3f2fb; }
.cat-btn:active { transform: translateY(1px); }
.cat-btn-primary { background: linear-gradient(135deg, #5F57BF 0%, #4a43a0 100%); color: #fff; border-color: transparent; }
.cat-btn-primary:hover { box-shadow: 0 3px 10px rgba(95,87,191,.32); background: linear-gradient(135deg, #6a62cf 0%, #524bb0 100%); }
.cat-btn-ok { background: #5F57BF; color: #fff; border-color: transparent; }
.cat-btn-ok:hover { background: #4a43a0; }
.cat-btn-cancel { background: #f3f4f6; color: #555; }
.cat-btn-ghost { padding: 6px 9px; }
.cat-btn-ghost:hover { background: #efeefb; }
.cat-btn-del:hover { background: #fdecec; color: #c0392b; }

.cat-edit {
    background: linear-gradient(135deg, #f7f6fd 0%, #efeefb 100%);
    border: 1px solid #ddd9f3; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.cat-edit-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-field { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.cat-field-grow { flex: 1 1 260px; }
.cat-field label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #8a86b8; font-weight: 600; }
.cat-field input, .cat-field select {
    padding: 8px 10px; border: 1px solid #ddd9f3; border-radius: 8px; background: #fff; font-size: 14px; outline: none;
}
.cat-field input:focus, .cat-field select:focus { border-color: #5F57BF; box-shadow: 0 0 0 3px rgba(95,87,191,.12); }
.cat-edit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.cat-error { margin-top: 10px; color: #c0392b; font-size: 13px; font-weight: 600; }

.cat-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.cat-table thead th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #8a86b8;
    font-weight: 700; padding: 8px 12px; border-bottom: 2px solid #ece9f8;
}
.cat-table tbody td { padding: 9px 12px; border-bottom: 1px solid #f0eef9; color: #2d2860; }
.cat-table tbody tr:hover { background: #faf9fe; }

.cat-lock { color: #b59a2a; margin-right: 6px; font-size: 12px; }

.cat-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.cat-pill-on { background: rgba(40,167,69,.12); color: #1e7e34; }
.cat-pill-off { background: rgba(120,120,120,.12); color: #6c757d; }

.cat-swatch {
    display: inline-block; width: 26px; height: 26px; border-radius: 6px; border: 1px solid #ddd9f3;
    vertical-align: middle; box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}

.cat-empty {
    padding: 26px; text-align: center; color: #8a86b8; background: #faf9fe;
    border: 1px dashed #ddd9f3; border-radius: 12px; font-size: 14px;
}
