﻿:root {
    --bg: #0b1020;
    --panel: #101a33;
    --panel-2: #0f1730;
    --text: #e7ecff;
    --muted: rgba(231,236,255,.65);
    --border: rgba(231,236,255,.10);
    --accent: #6ea8ff;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 600px at 20% 0%, rgba(110,168,255,.18), transparent 60%), radial-gradient(900px 500px at 80% 10%, rgba(141,110,255,.12), transparent 55%), var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, rgba(16,26,51,.92), rgba(15,23,48,.92));
    border-right: 1px solid var(--border);
    padding: 14px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 14px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(110,168,255,.18);
    border: 1px solid rgba(110,168,255,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: .5px;
}

.brand-title {
    font-weight: 700;
}

.brand-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

    .nav a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 10px;
        border-radius: 12px;
        border: 1px solid transparent;
        color: var(--muted);
    }

        .nav a.active,
        .nav a:hover {
            background: rgba(231,236,255,.06);
            border-color: var(--border);
            color: var(--text);
            text-decoration: none;
        }

.content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(11,16,32,.55);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

    .topbar .left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

.search {
    width: min(520px, 50vw);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(16,26,51,.55);
    color: var(--muted);
}

    .search input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text);
    }

.page {
    padding: 18px;
}

.card {
    background: rgba(16,26,51,.70);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

.h1 {
    font-size: 20px;
    margin: 0;
}

.muted {
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.col-12 {
    grid-column: span 12;
}

.col-6 {
    grid-column: span 6;
}

.col-4 {
    grid-column: span 4;
}

@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

    .field.grow {
        flex: 1;
        min-width: 220px;
    }

    .field input, .field select {
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: rgba(16,26,51,.55);
        color: var(--text);
        outline: none;
    }

.table-wrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    background: rgba(16,26,51,.45);
}

    .tbl th, .tbl td {
        padding: 12px 12px;
        border-bottom: 1px solid var(--border);
        text-align: left;
        white-space: nowrap;
    }

    .tbl thead th {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--muted);
        background: rgba(11,16,32,.35);
    }

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(231,236,255,.06);
    color: var(--text);
    cursor: pointer;
}

    .btn:hover {
        background: rgba(231,236,255,.10);
    }

    .btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.btn-primary {
    border-color: rgba(110,168,255,.40);
    background: rgba(110,168,255,.18);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 12px;
}

.badge-open {
    background: rgba(60, 200, 120, .14);
}

.badge-closed {
    background: rgba(255, 120, 120, .12);
}

/* --- Mejoras para Carreras --- */
.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .card-header .title {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

.filters {
    display: grid;
    grid-template-columns: 180px 220px 160px 1fr auto;
    gap: 10px;
    align-items: end;
    margin-top: 12px;
}

@media (max-width: 1100px) {
    .filters {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .field label {
        font-size: 12px;
        color: var(--muted);
    }

.table-wrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
    background: rgba(16,26,51,.35);
}

    .tbl th, .tbl td {
        padding: 12px 12px;
        border-bottom: 1px solid var(--border);
        text-align: left;
        white-space: nowrap;
    }

    .tbl thead th {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--muted);
        background: rgba(11,16,32,.35);
    }

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(231,236,255,.06);
    color: var(--text);
    cursor: pointer;
}

    .btn:hover {
        background: rgba(231,236,255,.10);
    }

    .btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.btn-primary {
    border-color: rgba(110,168,255,.40);
    background: rgba(110,168,255,.18);
}

.btn-danger {
    border-color: rgba(255,120,120,.35);
    background: rgba(255,120,120,.12);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 12px;
}

    .badge::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(231, 236, 255, .25);
    }

.badge-open {
    background: rgba(60, 200, 120, .14);
}

    .badge-open::before {
        background: rgba(60, 200, 120, .85);
    }

.badge-closed {
    background: rgba(255, 120, 120, .12);
}

    .badge-closed::before {
        background: rgba(255, 120, 120, .85);
    }

/* --- Detail page --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

    .breadcrumb a {
        color: var(--muted);
    }

        .breadcrumb a:hover {
            color: var(--text);
            text-decoration: none;
        }

.kpis {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.kpi {
    grid-column: span 3;
    background: rgba(16,26,51,.55);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}

@media (max-width: 1100px) {
    .kpi {
        grid-column: span 6;
    }
}

@media (max-width: 720px) {
    .kpi {
        grid-column: span 12;
    }
}

.kpi .label {
    font-size: 12px;
    color: var(--muted);
}

.kpi .value {
    font-size: 18px;
    font-weight: 700;
    margin-top: 6px;
}

.split {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 1100px) {
    .split {
        grid-template-columns: 1fr;
    }
}

.card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .card-title .left {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .card-title .right {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

.tbl td.wrap {
    white-space: normal;
    max-width: 420px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(231,236,255,.05);
    font-size: 12px;
}

    .pill strong {
        font-size: 12px;
    }

.hr {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

/* Simple modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}

.modal {
    width: min(720px, 96vw);
    background: rgba(16,26,51,.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 12px;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10000;
    width: min(420px, 92vw);
    background: rgba(16,26,51,.92);
    border: 1px solid rgba(110,168,255,.35);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

    .toast .t-title {
        font-weight: 700;
        margin-bottom: 4px;
    }

    .toast .t-body {
        color: var(--muted);
        font-size: 13px;
    }
.tbl tbody tr:hover {
    background: rgba(255,255,255,.05);
}

.tbl td {
    padding-top: 14px;
    padding-bottom: 14px;
}
input::placeholder {
    color: rgba(255,255,255,.45);
}
/* Buscador - Panel Admin */
.admin-search input::placeholder {
    color: rgba(255,255,255,.45);
}
.badge-scheduled {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
}

/* Panel de caballos */
.horses-panel {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.03);
    margin-top: 12px;
}

.horses-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ✅ Aquí está lo importante: scroll interno */
.horses-scroll {
    max-height: 260px; /* ~5 filas aprox. */
    overflow: auto;
}

.horses-table {
    width: 100%;
    border-collapse: collapse;
}

    .horses-table th,
    .horses-table td {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255,255,255,.06);
        vertical-align: middle;
    }

    .horses-table th {
        font-size: 12px;
        letter-spacing: .06em;
        opacity: .8;
    }

/* Responsive: en pantallas pequeñas baja el alto para no “comerse” botones */
@media (max-height: 780px) {
    .horses-scroll {
        max-height: 200px;
    }
}

/* Sidebar layout: full height + footer sticky */
.admin-shell {
    min-height: 100dvh;
}

.sidebar {
    height: 100dvh;
}

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0; /* clave para que el nav pueda scrollear */
}

/* Nav scrolleable */
.sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-bottom: 8px;
}

/* Footer fijo abajo (sin que lo tape el sistema) */
.sidebar-footer {
    position: sticky;
    bottom: 0;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.10);
    backdrop-filter: blur(10px);
}

/* Botón full width */
.sidebar-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Nav items con icono + texto */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-ico {
    width: 22px;
    text-align: center;
}

.nav-text {
    white-space: nowrap;
}

.brand-text {
    min-width: 0;
}

.brand-title, .brand-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RESPONSIVE: sidebar compacto (solo iconos) */
@media (max-width: 820px) {
    .sidebar {
        width: 76px;
    }

    .brand-text {
        display: none;
    }

    .nav-item {
        justify-content: center;
        gap: 0;
    }

    .nav-text {
        display: none;
    }

    .sidebar-logout {
        justify-content: center;
    }

    .logout-text {
        display: none;
    }
}
/* Asegura alto completo */
.admin-shell {
    min-height: 100dvh;
}

.sidebar {
    height: 100dvh;
}

/* Columna flex real */
.sidebar-inner {
    height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* El nav ocupa todo el espacio disponible */
.sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-bottom: 8px;
}

/* Footer SIEMPRE abajo, pero con “aire” */
.sidebar-footer {
    margin-top: auto; /* <- esto lo baja al fondo */
    padding: 12px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom)); /* <- no toca el borde */
    background: transparent; /* o deja tu background si quieres */
}

/* Botón full */
.sidebar-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.ix-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(3px);
    z-index: 2000;
}

.ix-modal {
    position: fixed;
    top: 8vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, 92vw);
    background: #12161f;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    z-index: 2001;
    box-shadow: 0 20px 80px rgba(0,0,0,.45);
}

.ix-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.ix-title {
    font-weight: 700;
    font-size: 16px;
}

.ix-sub {
    font-size: 12px;
    opacity: .8;
}

.ix-modal-body {
    padding: 14px 16px;
}

.ix-table {
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    overflow: hidden;
}
/* =========================
   Modal Premio por Tabla
   ========================= */

.ix-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.60);
    backdrop-filter: blur(4px);
    z-index: 9998;
}

.ix-modal {
    position: fixed;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, 94vw);
    background: #0f172a; /* azul oscuro */
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    z-index: 9999;
    box-shadow: 0 25px 90px rgba(0,0,0,.55);
    overflow: hidden;
}

.ix-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ix-title {
    font-weight: 700;
    font-size: 16px;
    color: rgba(255,255,255,.95);
}

.ix-sub {
    font-size: 12px;
    opacity: .85;
    color: rgba(255,255,255,.80);
}

.ix-modal-body {
    padding: 12px 16px 16px 16px;
    max-height: 70vh;
    overflow: auto;
}

/* tabla más limpia */
.ix-table {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
}

    .ix-table table {
        margin-bottom: 0;
    }

    .ix-table thead th {
        position: sticky;
        top: 0;
        background: rgba(15, 23, 42, .95);
        backdrop-filter: blur(4px);
        border-bottom: 1px solid rgba(255,255,255,.08);
        color: rgba(255,255,255,.85);
        font-weight: 600;
        z-index: 1;
    }

    .ix-table tbody td {
        border-color: rgba(255,255,255,.06);
        color: rgba(255,255,255,.90);
    }

    .ix-table tbody tr:hover {
        background: rgba(255,255,255,.03);
    }
/* =========================
   Modal Premio por Tabla
   ========================= */

.ix-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.60);
    backdrop-filter: blur(4px);
    z-index: 9998;
}

.ix-modal {
    position: fixed;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, 94vw);
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    z-index: 9999;
    box-shadow: 0 25px 90px rgba(0,0,0,.55);
    overflow: hidden;
}

.ix-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ix-title {
    font-weight: 700;
    font-size: 16px;
    color: rgba(255,255,255,.95);
}

.ix-sub {
    font-size: 12px;
    opacity: .85;
    color: rgba(255,255,255,.80);
}

.ix-modal-body {
    padding: 12px 16px 16px 16px;
    max-height: 70vh;
    overflow: auto;
}

.ix-table {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
}

    .ix-table thead th {
        position: sticky;
        top: 0;
        background: rgba(15, 23, 42, .95);
        backdrop-filter: blur(4px);
        border-bottom: 1px solid rgba(255,255,255,.08);
        color: rgba(255,255,255,.85);
        font-weight: 600;
        z-index: 1;
    }

    .ix-table tbody td {
        border-color: rgba(255,255,255,.06);
        color: rgba(255,255,255,.90);
    }

    .ix-table tbody tr:hover {
        background: rgba(255,255,255,.03);
    }
/* Drawer Premio por Tabla */
.ix-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    z-index: 9998;
}

.ix-modal {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(720px, 92vw);
    background: #0f172a;
    border-left: 1px solid rgba(255,255,255,.10);
    z-index: 9999;
    box-shadow: -25px 0 90px rgba(0,0,0,.55);
    overflow: hidden;
    border-radius: 0; /* drawer */
}

.ix-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ix-title {
    font-weight: 700;
    font-size: 16px;
    color: rgba(255,255,255,.95);
}

.ix-sub {
    font-size: 12px;
    opacity: .85;
    color: rgba(255,255,255,.80);
}

.ix-modal-body {
    padding: 12px 16px 16px;
    height: calc(100vh - 58px);
    overflow: auto;
}

.ix-table {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
}

    .ix-table thead th {
        position: sticky;
        top: 0;
        background: rgba(15, 23, 42, .95);
        backdrop-filter: blur(4px);
        border-bottom: 1px solid rgba(255,255,255,.08);
        color: rgba(255,255,255,.85);
        font-weight: 600;
        z-index: 1;
    }

    .ix-table tbody td {
        border-color: rgba(255,255,255,.06);
        color: rgba(255,255,255,.92);
    }

    .ix-table tbody tr:hover {
        background: rgba(255,255,255,.03);
    }
/* Inputs oscuros dentro del modal */
.ix-modal .form-control {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.95);
}

    .ix-modal .form-control::placeholder {
        color: rgba(255,255,255,.45);
    }

    .ix-modal .form-control:focus {
        outline: none;
        box-shadow: none;
        border-color: rgba(255,255,255,.22);
    }

/* Botones más limpios */
.ix-modal .btn {
    border-radius: 10px;
}

.ix-modal .btn-outline-light {
    border-color: rgba(255,255,255,.18);
    color: rgba(255,255,255,.90);
}

    .ix-modal .btn-outline-light:hover {
        background: rgba(255,255,255,.06);
    }

/* Toolbar del modal */
.ix-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

    .ix-toolbar .ix-grow {
        flex: 1;
    }

/* Mensajes */
.ix-alert {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    margin-bottom: 10px;
}

    .ix-alert.err {
        background: rgba(255,0,0,.07);
    }

    .ix-alert.ok {
        background: rgba(0,255,120,.07);
    }
/* ============================
   Premio por tabla - Modal UX
   ============================ */

.ix-modal {
    width: min(980px, calc(100vw - 56px));
    height: min(78vh, 720px); /* ✅ alto fijo */
    display: flex;
    flex-direction: column;
}

.ix-modal-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ix-modal-body {
    padding: 16px 18px 18px;
    flex: 1;
    overflow: hidden; /* ✅ evita que “crezca infinito” */
    display: flex;
    flex-direction: column;
    gap: 12px; /* ✅ separación entre bloques */
}

/* Toolbar */
.ix-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.ix-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
}

.ix-search-ico {
    opacity: .75;
    font-size: 14px;
    user-select: none;
}

.ix-search-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: rgba(255,255,255,.92) !important;
}

    .ix-search-input::placeholder {
        color: rgba(255,255,255,.45) !important;
    }

.ix-btn {
    border-radius: 12px;
    padding: 8px 12px;
}

/* Contenedor de tabla: scroll interno */
.ix-table-wrap {
    flex: 1;
    overflow: auto; /* ✅ scroll aquí */
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    padding: 10px;
}

    /* Header sticky dentro del scroll */
    .ix-table-wrap thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: rgba(10, 18, 35, .92);
        border-bottom: 1px solid rgba(255,255,255,.10) !important;
    }

    /* Más espacio en celdas y filas más legibles */
    .ix-table-wrap .table th,
    .ix-table-wrap .table td {
        padding: 10px 12px !important;
        border-color: rgba(255,255,255,.08) !important;
    }

    /* “Card rows”: separa filas visualmente */
    .ix-table-wrap .table {
        border-collapse: separate !important;
        border-spacing: 0 10px !important;
    }

    .ix-table-wrap tbody tr {
        background: rgba(255,255,255,.04);
    }

    .ix-table-wrap tbody td {
        border-top: 1px solid rgba(255,255,255,.08);
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

        .ix-table-wrap tbody td:first-child {
            border-left: 1px solid rgba(255,255,255,.08);
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
        }

        .ix-table-wrap tbody td:last-child {
            border-right: 1px solid rgba(255,255,255,.08);
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
        }

    /* Inputs dentro de la tabla */
    .ix-table-wrap input[type="number"] {
        max-width: 160px;
        border-radius: 10px;
    }

/* ✅ Activo verde, Inactivo gris (forzado para que se vea) */
.ix-modal .badge.text-bg-success {
    background: rgba(16, 185, 129, .22) !important;
    border: 1px solid rgba(16, 185, 129, .35) !important;
    color: rgba(205, 255, 235, .95) !important;
}

.ix-modal .badge.text-bg-secondary {
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    color: rgba(255,255,255,.85) !important;
}

/* Botón Guardar más consistente */
.ix-table-wrap .btn.btn-primary {
    border-radius: 12px;
    padding: 7px 12px;
}
.ix-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.ix-operator-pill {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(10,18,40,.45);
    display: inline-flex;
    align-items: center;
}

.ix-prize-btn {
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    white-space: nowrap;
}
/* ✅ Input + botón en una fila, y meta (Actual/Nota) en otra fila */
.posprof-line {
    display: grid;
    grid-template-columns: minmax(320px, 560px) auto;
    gap: 12px;
    align-items: start;
}

.posprof-line-field {
    margin: 0;
}

/* Botón alineado con el input (no con el texto de abajo) */
.posprof-line-action {
    display: flex;
    align-items: end;
}

/* Misma altura visual que el input */
.posprof-savebtn {
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Meta ocupa 2 columnas (bajo todo) */
.posprof-line-meta {
    grid-column: 1 / -1;
    font-size: 12px;
    opacity: .75;
    margin-top: -4px;
}

/* móvil */
@media (max-width:560px) {
    .posprof-line {
        grid-template-columns: 1fr;
    }

    .posprof-line-action .posprof-savebtn {
        width: 100%;
    }
}
