/* =============================================================================
   SABORA · RESTO DE PANTALLAS
   -----------------------------------------------------------------------------
   Extraído de los bloques <style> que vivían dentro de los .razor. Se conserva
   el origen de cada tramo para poder seguir migrándolo a componentes.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Pages/Chat/Chat.razor
   -------------------------------------------------------------------------- */
    .chat-layout {
        display: grid;
        grid-template-columns: 350px 1fr;
        height: calc(100vh - 140px); /* Slightly more space for header/footer */
        background-color: #f0f2f5;
        border-radius: 12px;
        overflow: hidden;
        margin: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid #e0e0e0;
        min-height: 500px; /* Ensure a minimum usable height */
    }

    /* Sidebar Styles */
    .chat-sidebar {
        background-color: white;
        border-right: 1px solid #e0e0e0;
        display: flex;
        flex-direction: column;
        min-height: 0; /* Crucial for grid/flex containment */
    }

    .sidebar-header {
        padding: 15px 20px;
        background-color: #f0f2f5;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

    .search-container {
        padding: 10px 15px;
        background-color: white;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }

    .conversations-list {
        flex: 1;
        overflow-y: auto;
        min-height: 0; /* Ensure it scrolls instead of expanding */
    }

    .conversation-item {
        padding: 12px 16px;
        display: flex;
        align-items: center;
        cursor: pointer;
        transition: background-color 0.2s;
        border-bottom: 1px solid #f5f5f5;
    }

    .conversation-item:hover {
        background-color: #f5f5f5;
    }

    .conversation-item.active {
        background-color: #ebebeb;
    }

    .avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        margin-right: 12px;
        background-color: #008069;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
        font-weight: bold;
    }

    .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .conversation-info {
        flex: 1;
        min-width: 0;
    }

    .conversation-name {
        font-weight: 600;
        color: #111b21;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .conversation-last-msg {
        font-size: 0.85rem;
        color: #667781;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Main Chat Styles */
    .chat-main {
        display: flex;
        flex-direction: column;
        background-color: var(--sb-whatsapp-canvas);
        position: relative;
        height: 100%;
        overflow: hidden;
        min-height: 0; /* Key for flexbox overflow */
    }

    .chat-main::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.06;
        background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
        pointer-events: none;
        z-index: var(--sb-z-base);
    }

    .chat-header {
        padding: 12px 20px;
        background-color: #f0f2f5;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        align-items: center;
        z-index: var(--sb-z-raised);
        min-height: 60px;
        flex-shrink: 0;
    }

    .chat-header.clickable {
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .chat-header.clickable:hover {
        background-color: #ebebeb;
    }


    .messages-container {
        flex: 1;
        overflow-y: auto;
        padding: 20px 5%;
        display: flex;
        flex-direction: column-reverse;
        z-index: var(--sb-z-base);
        min-height: 0;
        background-color: transparent;
    }

    .message-bubble {
        max-width: 75%;
        padding: 8px 12px;
        margin-bottom: 4px;
        border-radius: 8px;
        position: relative;
        font-size: 0.95rem;
        line-height: 1.4;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
        word-wrap: break-word;
    }

    .message-my {
        align-self: flex-end;
        background-color: var(--sb-whatsapp-bubble);
        border-top-right-radius: 0;
        margin-right: 12px;
    }

    .message-my::before {
        content: "";
        position: absolute;
        top: 0;
        right: -8px;
        width: 10px;
        height: 12px;
        background-color: var(--sb-whatsapp-bubble);
        clip-path: polygon(0 0, 0% 100%, 100% 0);
    }

    .message-other {
        align-self: flex-start;
        background-color: white;
        border-top-left-radius: 0;
        margin-left: 12px;
    }

    .message-other::before {
        content: "";
        position: absolute;
        top: 0;
        left: -8px;
        width: 10px;
        height: 12px;
        background-color: white;
        clip-path: polygon(100% 0, 0 0, 100% 100%);
    }

    .message-time {
        font-size: 0.7rem;
        color: #667781;
        text-align: right;
        margin-top: 4px;
        display: block;
    }

    .chat-input-area {
        padding: 12px 16px;
        background-color: #f0f2f5;
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: var(--sb-z-raised);
        border-top: 1px solid #e0e0e0;
        flex-shrink: 0;
        min-height: 60px;
    }

    .chat-input {
        flex: 1;
        border: 1px solid #e0e0e0;
        border-radius: 20px;
        padding: 10px 18px;
        outline: none;
        font-size: 0.95rem;
        background-color: white;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .btn-icon-send {
        background-color: #008069;
        border: none;
        cursor: pointer;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        border-radius: 50%;
        transition: transform 0.2s, background-color 0.2s;
    }

    .btn-icon-send:hover {
        background-color: #006a57;
        transform: scale(1.05);
    }

    .btn-icon {
        background-color: transparent;
        border: none;
        cursor: pointer;
        color: #54656f;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        border-radius: 50%;
    }

    .btn-icon:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Pestañas de estado: todas / sin leer / leídas. */
    .chat-filtros {
        display: flex;
        gap: 6px;
        padding: 8px 12px 0;
        background-color: #f8f9fa;
    }

    .chat-filtros button {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 7px 8px;
        border: 1px solid #e0e0e0;
        border-radius: 20px;
        background: var(--sb-neutral-0);
        color: #667781;
        font-size: 0.78rem;
        font-weight: 700;
        cursor: pointer;
        transition: all .15s;
    }

    .chat-filtros button:hover { color: #008069; }

    .chat-filtros button.activo {
        background: #008069;
        border-color: #008069;
        color: var(--sb-neutral-0);
    }

    .chat-filtros .num {
        font-size: 0.7rem;
        font-weight: 800;
        opacity: .75;
    }

    /* Lo no leído se ve de un vistazo: nombre en negro y globo verde. */
    .conversation-name.sin-leer { font-weight: 800; color: #000; }
    .conversation-last-msg.sin-leer { color: #111b21; font-weight: 600; }

    .conversation-meta {
        margin-left: 8px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        white-space: nowrap;
    }

    .conversation-meta .hora { font-size: 0.7rem; color: #888; }

    .globo-no-leidos {
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        background: #25d366;
        color: var(--sb-neutral-0);
        font-size: 0.72rem;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-icon-danger { color: var(--sb-red-700); }
    .btn-icon-danger:disabled { opacity: .35; cursor: not-allowed; }

    .busqueda-persona {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 4px 0;
        min-width: 0;
    }

    .avatar-busqueda {
        width: 34px;
        height: 34px;
        margin-right: 0;
        font-size: 0.8rem;
    }

    .empty-state {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #667781;
        text-align: center;
        background-color: white;
        z-index: var(--sb-z-base);
    }

/* ----------------------------------------------------------------------------
   Pages/Enrollments/EnrollmentFlow.razor
   -------------------------------------------------------------------------- */
    .btn-action-premium {
        background: linear-gradient(135deg, #d43b1a 0%, #a32d14 100%);
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(212, 59, 26, 0.2);
        margin-right: 15px;
    }

    .btn-action-premium:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(212, 59, 26, 0.3);
        filter: brightness(1.1);
    }

    .btn-action-premium:active {
        transform: translateY(0);
    }

    .btn-dialog-primary {
        background: #d43b1a;
        color: white;
        border: none;
        padding: 10px 24px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.2s;
        letter-spacing: 0.5px;
    }

    .btn-dialog-primary:hover {
        background: #b53216;
        box-shadow: 0 4px 12px rgba(181, 50, 22, 0.2);
    }

    .btn-dialog-secondary {
        background: var(--sb-neutral-100);
        color: var(--sb-neutral-600);
        border: 1px solid var(--sb-neutral-200);
        padding: 10px 24px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.2s;
        letter-spacing: 0.5px;
    }

    .btn-dialog-secondary:hover {
        background: var(--sb-neutral-200);
    }

    .premium-dialog {
        border-radius: 20px !important;
        overflow: hidden;
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
    }

    .plan-select-inline {
        background: rgba(99, 102, 241, 0.08);
        color: var(--brand, #6366f1);
        border: 1.5px solid rgba(99, 102, 241, 0.25);
        border-radius: 8px;
        padding: 4px 8px;
        font-size: 0.78rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 6px center;
        padding-right: 24px;
    }

    .plan-select-inline:hover {
        border-color: var(--brand, #6366f1);
        background-color: rgba(99, 102, 241, 0.14);
    }

    .plan-select-inline:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    }

    /* Styles for Tabs and Payments */
    .enrolled-tabs {
        margin-top: 15px;
    }







    .debt-banner-compact {
        background: #fff1f0;
        border: 1px solid var(--sb-red-200);
        border-radius: 12px;
        padding: 10px 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .debt-info-small h5 { margin: 0; font-size: 0.65rem; color: var(--sb-red-800); text-transform: uppercase; font-weight: 800; }
    .debt-info-small .amount { font-size: 1.1rem; font-weight: 900; color: var(--sb-red-700); }

    .btn-bulk-pay-compact {
        background: var(--sb-red-700);
        color: white;
        border: none;
        padding: 6px 14px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.75rem;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 2px 4px rgba(185, 28, 28, 0.2);
    }

    .btn-bulk-pay-compact:hover {
        background: var(--sb-red-800);
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(185, 28, 28, 0.3);
    }

    .card-top-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }

    .action-delete-btn {
        color: var(--sb-red-700);
        border-color: var(--sb-red-200);
        background: linear-gradient(180deg, #fff5f5 0%, var(--sb-red-100) 100%);
    }

    .action-delete-btn:hover:not(:disabled) {
        color: var(--sb-red-800);
        border-color: var(--sb-red-200);
        box-shadow: 0 12px 24px rgba(185, 28, 28, 0.14);
    }

    .action-delete-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        box-shadow: none;
    }

    .delete-academic-modal {
        width: min(640px, calc(100vw - 32px));
        max-height: calc(100vh - 48px);
        overflow-y: auto;
    }

    .delete-academic-modal__header {
        background: linear-gradient(135deg, var(--sb-red-50) 0%, var(--sb-red-100) 100%);
    }

    .delete-academic-modal__profile {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
        background: var(--sb-neutral-0);
        border: 1px solid #fde2e4;
        margin-bottom: 18px;
    }

    .delete-academic-modal__avatar {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--sb-red-500) 0%, var(--sb-red-700) 100%);
        color: var(--sb-neutral-0);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        flex-shrink: 0;
    }

    .delete-academic-modal__identity h4 {
        margin: 0 0 4px;
        font-size: 1.1rem;
        font-weight: 800;
        color: #17213a;
    }

    .delete-academic-modal__identity p {
        margin: 0;
        color: var(--sb-neutral-500);
        font-size: 0.92rem;
    }

    .delete-academic-modal__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 18px;
    }

    .delete-academic-modal__tile {
        border-radius: 16px;
        padding: 14px 16px;
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
    }

    .delete-academic-modal__tile-label {
        display: block;
        font-size: 0.72rem;
        font-weight: 800;
        color: var(--sb-neutral-400);
        margin-bottom: 6px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .delete-academic-modal__tile-value {
        color: var(--sb-neutral-800);
        font-size: 0.96rem;
        font-weight: 700;
        word-break: break-word;
    }

    .delete-academic-modal__stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 18px;
    }

    .delete-academic-modal__stat {
        border-radius: 16px;
        padding: 16px;
        background: linear-gradient(180deg, var(--sb-neutral-0) 0%, var(--sb-neutral-50) 100%);
        border: 1px solid var(--sb-neutral-200);
        text-align: center;
    }

    .delete-academic-modal__stat strong {
        display: block;
        font-size: 1.35rem;
        color: #17213a;
        font-weight: 900;
        margin-bottom: 4px;
    }

    .delete-academic-modal__stat span {
        font-size: 0.78rem;
        color: var(--sb-neutral-500);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .delete-academic-modal__warning {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        padding: 16px;
        border-radius: 18px;
        background: linear-gradient(180deg, #fff5f5 0%, var(--sb-red-50) 100%);
        border: 1px solid var(--sb-red-200);
        margin-bottom: 18px;
    }

    .delete-academic-modal__warning i {
        color: var(--sb-red-700);
        font-size: 1.1rem;
        margin-top: 2px;
    }

    .delete-academic-modal__warning strong {
        display: block;
        color: var(--sb-red-800);
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .delete-academic-modal__warning p {
        margin: 0;
        color: var(--sb-red-800);
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .delete-academic-modal__actions {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
    }

    .delete-academic-modal__confirm {
        border: none;
        background: linear-gradient(135deg, var(--sb-red-700) 0%, var(--sb-red-800) 100%);
        color: var(--sb-neutral-0);
        border-radius: 12px;
        padding: 12px 22px;
        font-size: 0.9rem;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 12px 24px rgba(185, 28, 28, 0.16);
    }

    .delete-academic-modal__confirm:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 16px 28px rgba(185, 28, 28, 0.22);
    }

    .delete-academic-modal__confirm:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        box-shadow: none;
    }

    @media (max-width: 720px) {
        .delete-academic-modal__grid,
        .delete-academic-modal__stats {
            grid-template-columns: 1fr;
        }

        .delete-academic-modal__actions {
            flex-direction: column-reverse;
        }

        .delete-academic-modal__confirm,
        .delete-academic-modal__actions .btn-dialog-secondary {
            width: 100%;
            justify-content: center;
        }
    }

    /* Aviso de por qué la reinscripción no pudo saltar sola al pago. */
    .aviso-reinscripcion {
        display: flex;
        align-items: flex-start;
        gap: 11px;
        margin-bottom: 18px;
        padding: 13px 16px;
        border-radius: 14px;
        background: var(--sb-blue-50);
        border: 1px solid var(--sb-blue-200);
        color: #1e3a8a;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .aviso-reinscripcion i {
        margin-top: 2px;
        color: var(--sb-blue-600);
        font-size: 1rem;
    }

/* ----------------------------------------------------------------------------
   Pages/Enrollments/QuickUserModal.razor
   -------------------------------------------------------------------------- */
    .rol-opciones { display: flex; gap: 10px; }
    .rol-opcion {
        flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        height: 44px; border-radius: 10px; border: 1px solid var(--sb-neutral-200); background: var(--sb-neutral-0);
        color: var(--sb-neutral-500); font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: all .15s;
    }
    .rol-opcion:hover { border-color: var(--sb-neutral-300); }
    .rol-opcion.activo { background: var(--sb-brand); border-color: var(--sb-brand); color: var(--sb-neutral-0); }

/* ----------------------------------------------------------------------------
   Pages/PreInscripciones/NuevaPreInscripcion.razor
   -------------------------------------------------------------------------- */
    /* Extras no cubiertos por enrollment-flow.css (casilla, textarea, botones de acción). */
    .preins-two-col {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 16px;
    }

    @media (max-width: 640px) {
        .preins-two-col { grid-template-columns: 1fr; }
    }

    /* La foto del alumno seleccionado rellena el avatar (enrollment-flow.css sólo contempla iniciales). */
    .student-pill .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
    }

    /* Input de importe: mismo aspecto que .search (buscador de alumno) para que se vean consistentes. */
    .preins-num::-webkit-outer-spin-button,
    .preins-num::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    .preins-num {
        -moz-appearance: textfield;
        appearance: textfield;
        font-weight: 600;
    }

    .preins-hint {
        margin: 6px 2px 0;
        font-size: 0.76rem;
        color: var(--sb-neutral-400);
        font-weight: 600;
    }

    .preins-no-results {
        padding: 14px;
        border-bottom: 1px solid var(--border2, #edf0f7);
        text-align: center;
    }
    .preins-no-results p {
        margin: 0 0 10px;
        font-size: 0.86rem;
        color: var(--sb-neutral-500);
    }
    .preins-link {
        background: none;
        border: none;
        padding: 0;
        font: inherit;
        font-weight: 700;
        color: var(--brand, #d43b1a);
        cursor: pointer;
        text-decoration: underline;
    }


    /* Casilla de "el adelanto es la matrícula". */
    .preins-check {
        display: flex; align-items: flex-start; gap: 10px; margin-top: 12px;
        padding: 11px 13px; border: 1px solid var(--sb-neutral-200); border-radius: 12px;
        background: var(--sb-neutral-50); cursor: pointer;
    }
    .preins-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--sb-red-600); cursor: pointer; }
    .preins-check span { display: flex; flex-direction: column; gap: 2px; }
    .preins-check b { font-size: 0.85rem; color: var(--sb-neutral-900); }
    .preins-check small { font-size: 0.76rem; color: var(--sb-neutral-500); line-height: 1.4; }

    .preins-textarea {
        width: 100%;
        border: 1px solid var(--border, #e6e9f2);
        border-radius: var(--radius2, 14px);
        padding: 12px 14px;
        font-size: 14px;
        color: #2a3655;
        font-family: inherit;
        outline: none;
        resize: vertical;
        min-height: 84px;
        background: var(--sb-neutral-0);
        box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
    }
    .preins-textarea:focus {
        border-color: var(--brand, #d43b1a);
        box-shadow: 0 4px 12px rgba(212, 59, 26, 0.1);
    }

    .preins-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 16px;
        margin-top: 22px;
        padding-top: 18px;
        border-top: 1px solid var(--border2, #edf0f7);
    }

    .btn-guardar-brand {
        background: linear-gradient(135deg, var(--brand, #d43b1a) 0%, #a5250d 100%);
        color: var(--sb-neutral-0);
        border: none;
        border-radius: var(--radius2, 14px);
        padding: 13px 28px;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.4px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 8px 20px rgba(212, 59, 26, 0.25);
        transition: all 0.2s ease;
    }
    .btn-guardar-brand:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(212, 59, 26, 0.35);
    }
    .btn-guardar-brand:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        box-shadow: none;
    }

    .preins-user-loading {
        margin-top: 8px;
        font-size: 0.78rem;
        color: var(--sb-neutral-400);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .btn-anadir-linea {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 10px 18px; border-radius: var(--radius2, 14px);
        background: var(--sb-neutral-0); color: var(--brand, #d43b1a);
        border: 1.5px solid var(--brand, #d43b1a);
        font-weight: 700; font-size: 0.86rem; cursor: pointer; transition: all .15s;
    }
    .btn-anadir-linea:hover { background: var(--sb-brand-50); }

    .preins-cart {
        margin: 20px 0 24px; border: 1px solid var(--border, #e6e9f2);
        border-radius: var(--radius2, 14px); overflow: hidden; background: var(--sb-neutral-0);
        box-shadow: 0 2px 8px rgba(18, 26, 44, .04);
    }
    .preins-cart-item:last-of-type { border-bottom: none; }
    /* Aire entre bloques del formulario */
    .panel-body .field-group { margin-bottom: 18px; }
    .preins-cart-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 10px 14px; background: var(--sb-neutral-50); border-bottom: 1px solid var(--border2, #edf0f7);
        font-size: 0.78rem; font-weight: 800; color: var(--sb-neutral-600); text-transform: uppercase; letter-spacing: .04em;
    }
    .preins-cart-count {
        background: var(--brand, #d43b1a); color: var(--sb-neutral-0); border-radius: 999px;
        padding: 1px 9px; font-size: 0.75rem;
    }
    .preins-cart-item {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 12px 14px; border-bottom: 1px solid var(--border2, #edf0f7);
    }
    .preins-cart-total {
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px 14px; background: #f0fdf4; font-weight: 800; color: var(--sb-neutral-900);
    }
    .btn-quitar-linea {
        background: var(--sb-neutral-0); border: 1px solid var(--sb-red-200); color: var(--sb-red-700);
        border-radius: 8px; padding: 5px 9px; cursor: pointer; transition: all .15s;
    }
    .btn-quitar-linea:hover { background: var(--sb-red-100); }

    .preins-denied {
        margin: 48px auto;
        max-width: 560px;
        padding: 44px;
        text-align: center;
        background: var(--sb-neutral-0);
        border-radius: var(--radius, 18px);
        border: 1px solid var(--border2, #edf0f7);
        box-shadow: var(--shadow2, 0 6px 20px rgba(18, 26, 44, .06));
        color: var(--sb-neutral-400);
    }

    /* Desplegable de curso alineado con el resto de inputs: mismo alto y borde. */
    .field-group .sb-dd-toggle {
        min-height: 48px;
        border-radius: var(--radius, 18px);
        border: 1px solid var(--border2, #edf0f7);
    }

/* ----------------------------------------------------------------------------
   Pages/Reviews/ReviewsModeration.razor
   -------------------------------------------------------------------------- */
    /* Pastillas de contadores de la cabecera. */
    .reviews-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
    .reviews-pill {
        display: flex; align-items: center; gap: 8px; padding: 8px 14px;
        border-radius: 999px; background: var(--sb-neutral-100); border: 1px solid var(--sb-neutral-200);
        font-size: 0.85rem; color: var(--sb-neutral-700); font-weight: 600;
    }
    .reviews-pill b { font-size: 1rem; color: var(--sb-neutral-850); }
    .reviews-pill.is-pending { background: #fff7ed; border-color: var(--sb-amber-200); color: #9a3412; }
    .reviews-pill.is-pending b { color: #9a3412; }
    .reviews-pill.is-hidden { background: var(--sb-neutral-100); border-color: var(--sb-neutral-300); color: var(--sb-neutral-600); }
    .reviews-pill.is-hidden b { color: var(--sb-neutral-600); }
    /* Reportadas sin revisar: en rojo sólo cuando hay alguna, para que destaque de verdad. */
    .reviews-pill.is-reported { background: var(--sb-red-50); border-color: var(--sb-red-200); color: var(--sb-red-700); }
    .reviews-pill.is-reported b { color: var(--sb-red-700); }

    .reviews-filters {
        display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
        margin-bottom: 16px; text-align: left;
    }
    .reviews-filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
    .reviews-filter-field label { font-size: 0.78rem; font-weight: 700; color: var(--sb-neutral-500); text-transform: uppercase; }
    .reviews-filter-check { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }

    .reviews-author { display: flex; align-items: center; gap: 10px; text-align: left; }
    .reviews-avatar {
        flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
        object-fit: cover; background: var(--sb-neutral-100); border: 1px solid var(--sb-neutral-200);
    }
    .reviews-avatar-initials {
        display: flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, #f97316, var(--sb-brand)); border-color: var(--sb-brand);
        color: var(--sb-neutral-0); font-weight: 800; font-size: 0.78rem; text-transform: uppercase;
    }
    .reviews-author-name { font-weight: 600; color: var(--sb-neutral-850); }
    .reviews-author-mail { font-size: 0.75rem; color: var(--sb-neutral-400); }
    .reviews-anon-tag {
        display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
        background: #ede9fe; color: #5b21b6; font-size: 0.68rem; font-weight: 700;
    }

    .reviews-stars { color: var(--sb-amber-500); letter-spacing: 1px; white-space: nowrap; }
    .reviews-stars .off { color: var(--sb-neutral-300); }

    .reviews-text { text-align: left; white-space: pre-wrap; }
    .reviews-title { font-weight: 600; color: var(--sb-neutral-850); }
    .reviews-more {
        display: inline-block; margin-top: 4px; color: #4C5AA4;
        font-size: 0.78rem; font-weight: 700; cursor: pointer;
    }
    .reviews-reply {
        margin-top: 6px; padding: 6px 10px; border-left: 3px solid #4C5AA4;
        background: var(--sb-neutral-50); font-size: 0.82rem; color: var(--sb-neutral-600); text-align: left;
    }
    .reviews-motive { margin-top: 6px; font-size: 0.78rem; color: var(--sb-red-700); text-align: left; }

    .reviews-flag {
        display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
        border-radius: 999px; background: var(--sb-red-50); color: var(--sb-red-700);
        font-size: 0.75rem; font-weight: 700;
    }
    .reviews-modal-field { display: flex; flex-direction: column; gap: 6px; text-align: left; margin-bottom: 12px; }
    .reviews-modal-field label { font-size: 0.8rem; font-weight: 700; color: var(--sb-neutral-600); }
    .reviews-modal-quote {
        background: var(--sb-neutral-50); border: 1px solid var(--sb-neutral-200); border-radius: 8px;
        padding: 10px 12px; text-align: left; margin-bottom: 14px; color: var(--sb-neutral-600);
    }
