/* ==========================================================================
 * Panel de salón (staff) — complementa las clases nlc-perfil-* de carnet.css.
 * Introducido en la v3.7. Paleta Limaná: #f32535, #1b1e34, #C2D5ED, #E8ECF0.
 * ========================================================================== */

/* El dashboard necesita más ancho que el card de perfil estándar. */
.nlc-staff-wrapper .nlc-staff-dashboard {
    max-width: 860px;
}

/* --- Barra superior con sesión --- */
.nlc-staff-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}
.nlc-staff-session {
    text-align: right;
    font-size: 13px;
    color: #575760;
    white-space: nowrap;
}
.nlc-staff-who {
    display: block;
    font-weight: 600;
    color: #1b1e34;
    margin-bottom: 2px;
}
.nlc-staff-logout {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f32535;
    text-decoration: none;
}
.nlc-staff-logout:hover { text-decoration: underline; }

/* --- Indicador de miembros --- */
.nlc-staff-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7f9fb;
    border: 1px solid #C2D5ED;
    border-radius: 4px;
    padding: 26px 20px;
    margin-bottom: 26px;
}
.nlc-staff-kpi-number {
    font-family: 'Didot LT Pro Roman', 'Didot', 'Georgia', serif;
    font-size: 46px;
    line-height: 1;
    color: #1b1e34;
}
.nlc-staff-kpi-label {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #7AAECB;
}

/* --- Buscador --- */
.nlc-staff-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.nlc-staff-search-input {
    flex: 1 1 240px;
    margin: 0;
}
.nlc-staff-search-btn {
    margin: 0;
    flex: 0 0 auto;
}
.nlc-staff-clear {
    font-size: 12px;
    color: #575760;
    text-decoration: none;
}
.nlc-staff-clear:hover { color: #f32535; }

/* --- Tabla de miembros --- */
.nlc-staff-table-wrap {
    overflow-x: auto;
}
.nlc-staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #1b1e34;
}
.nlc-staff-table thead th {
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7a7a8a;
    padding: 10px 12px;
    border-bottom: 2px solid #C2D5ED;
}
.nlc-staff-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf1f6;
    vertical-align: middle;
}
.nlc-staff-table tbody tr:hover {
    background: #f7f9fb;
}
.nlc-staff-rowaction {
    text-align: right;
    white-space: nowrap;
}
.nlc-staff-edit-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f32535;
    text-decoration: none;
    border: 1px solid #f32535;
    border-radius: 2px;
    padding: 6px 14px;
    transition: background .15s, color .15s;
}
.nlc-staff-edit-link:hover {
    background: #f32535;
    color: #fff;
}
.nlc-staff-empty {
    text-align: center;
    color: #7a7a8a;
    padding: 26px 12px;
}

/* --- Pie / paginación --- */
.nlc-staff-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    font-size: 12px;
    color: #7a7a8a;
    flex-wrap: wrap;
}
.nlc-staff-pages {
    display: inline-flex;
    gap: 6px;
}
.nlc-staff-page {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    padding: 5px 8px;
    border: 1px solid #C2D5ED;
    border-radius: 2px;
    color: #1b1e34;
    text-decoration: none;
}
.nlc-staff-page.current {
    background: #1b1e34;
    color: #fff;
    border-color: #1b1e34;
}

/* --- Barra de edición --- */
.nlc-staff-editbar {
    margin-bottom: 18px;
}
.nlc-staff-back {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #7AAECB;
    text-decoration: none;
}
.nlc-staff-back:hover { color: #f32535; }

.nlc-staff-pending {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #b58a00;
}

/* --- Checkbox de validación (reusa estilos nlc-exp-*) --- */
.nlc-staff-notify {
    margin-top: 6px;
    padding: 16px 18px;
    background: #f7f9fb;
    border-left: 3px solid #f32535;
    border-radius: 2px;
}

/* --- Botón secundario (reenviar carnet) --- */
.nlc-staff-resend-wrap {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #edf1f6;
    text-align: center;
}
.nlc-staff-secondary-btn {
    background: #fff;
    color: #1b1e34;
    border: 1px solid #1b1e34;
    border-radius: 2px;
    padding: 12px 22px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.nlc-staff-secondary-btn:hover    { background: #1b1e34; color: #fff; }
.nlc-staff-secondary-btn:disabled { opacity: .55; cursor: default; }

/* --- Botón / fila de escaneo --- */
.nlc-staff-scanrow {
    margin-bottom: 18px;
    text-align: center;
}
.nlc-staff-scan-btn {
    margin: 0;
    width: 100%;
}

/* --- Overlay del escáner --- */
.nlc-staff-scan-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27,30,52,.72);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.nlc-staff-scan-modal {
    background: #fff;
    border-radius: 6px;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.nlc-staff-scan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1f6;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1b1e34;
}
.nlc-staff-scan-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #7a7a8a;
    cursor: pointer;
    padding: 0 4px;
}
.nlc-staff-scan-close:hover { color: #f32535; }
.nlc-staff-reader {
    width: 100%;
    min-height: 260px;
    background: #000;
}
.nlc-staff-reader video { width: 100% !important; display: block; }
.nlc-staff-scan-hint {
    margin: 0;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #575760;
    text-align: center;
}

/* --- Vista de solo lectura --- */
.nlc-staff-view {
    margin: 4px 0 24px;
    border-top: 1px solid #edf1f6;
}
.nlc-staff-view-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 2px;
    border-bottom: 1px solid #edf1f6;
}
.nlc-staff-view-row dt {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7a7a8a;
    margin: 0;
    flex: 0 0 40%;
}
.nlc-staff-view-row dd {
    margin: 0;
    text-align: right;
    color: #1b1e34;
    font-size: 14px;
    word-break: break-word;
}
.nlc-staff-view-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.nlc-staff-view-actions .nlc-perfil-btn { margin-top: 0; }

/* --- Contraste: texto SIEMPRE blanco sobre fondo rojo (v3.9) ---
 * El tema del sitio pinta de rojo la cabecera de la tabla y sobrescribe el
 * color de los enlaces. Forzamos blanco (y fijamos el fondo rojo) para
 * garantizar la lectura en las secciones del panel de salón. */
.nlc-staff-wrapper .nlc-perfil-btn,
.nlc-staff-wrapper a.nlc-perfil-btn,
.nlc-staff-wrapper a.nlc-perfil-btn:hover,
.nlc-staff-wrapper a.nlc-perfil-btn:focus {
    color: #fff !important;
}
.nlc-staff-wrapper .nlc-staff-table thead th {
    background: #f32535;
    color: #fff !important;
    border-bottom-color: #d01f2e;
}
/* El botón "Ver" (enlace) sobre su estado hover rojo también en blanco */
.nlc-staff-wrapper .nlc-staff-edit-link:hover,
.nlc-staff-wrapper .nlc-staff-edit-link:focus {
    color: #fff !important;
}

/* --- Responsive: tabla apilada en móvil --- */
@media (max-width: 640px) {
    .nlc-staff-wrapper .nlc-staff-dashboard {
        padding: 32px 22px;
    }
    .nlc-staff-table thead { display: none; }
    .nlc-staff-table, .nlc-staff-table tbody, .nlc-staff-table tr, .nlc-staff-table td {
        display: block;
        width: 100%;
    }
    .nlc-staff-table tr {
        border: 1px solid #edf1f6;
        border-radius: 3px;
        margin-bottom: 12px;
        padding: 6px 4px;
    }
    .nlc-staff-table tbody td {
        border: none;
        padding: 7px 12px;
        text-align: right;
    }
    .nlc-staff-table tbody td::before {
        content: attr(data-label);
        float: left;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #7a7a8a;
    }
    .nlc-staff-rowaction { text-align: center; }
    .nlc-staff-rowaction::before { display: none; }
    .nlc-staff-edit-link { display: inline-block; margin-top: 4px; }
}
