﻿/* =====================================
   REGISTRO CONTROL - Ajustado Layout
   ===================================== */

/* Evitamos redefinir :root */
.rc-page {
    padding: 10px 5px 40px 5px;
}

/* ================= HEADER ================= */

.rc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.rc-title h1 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.rc-title p {
    margin: 4px 0 0 0;
    font-size: .9rem;
    opacity: .7;
}

/* ================= TABLERO ================= */

.rc-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* ================= TARJETAS ================= */

.rc-card {
    border-radius: 16px;
    padding: 16px;
    transition: .25s ease;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.08);
}

    /* Verde - Disponible */
    .rc-card.is-free {
        background: linear-gradient(145deg, rgba(40,167,69,.15), rgba(40,167,69,.05));
        border: 1px solid rgba(40,167,69,.4);
    }

    /* Rojo - Ocupado */
    .rc-card.is-busy {
        background: linear-gradient(145deg, rgba(220,53,69,.15), rgba(220,53,69,.05));
        border: 1px solid rgba(220,53,69,.5);
    }

    /* Hover */
    .rc-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,.4);
    }

/* ================= CABECERA TARJETA ================= */

.rc-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rc-card__name {
    font-weight: 600;
    font-size: 1rem;
}

.rc-badge {
    font-size: .75rem;
    padding: 5px 10px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* Badge colores */
.rc-card.is-free .rc-badge {
    background: rgba(40,167,69,.2);
    color: #4dff8b;
}

.rc-card.is-busy .rc-badge {
    background: rgba(220,53,69,.25);
    color: #ff6b7a;
}

/* ================= FILAS ================= */

.rc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: .9rem;
}

.rc-label {
    opacity: .7;
}

.rc-value {
    font-weight: 600;
}

/* ================= BOTONES ================= */

.rc-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rc-btn {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: .2s ease;
}

/* Registrar */
.rc-btn--ok {
    background: #198754;
    color: white;
}

    .rc-btn--ok:hover {
        background: #157347;
    }

/* Cobrar */
.rc-btn--warn {
    background: #ffc107;
    color: #000;
}

    .rc-btn--warn:hover {
        background: #e0a800;
    }

/* Reimprimir */
.rc-btn--ghost {
    background: rgba(255,255,255,.1);
    color: white;
}

    .rc-btn--ghost:hover {
        background: rgba(255,255,255,.2);
    }
