:root {
    --tl-bg: #fbf6f7;
    --tl-card: #fff;
    --tl-line: #f0d7dd;
    --tl-shadow: 0 18px 40px rgba(60, 20, 35, .08);
    --tl-text: #2a1b22;
    --tl-muted: #7a5a66;
    --tl-pink: #f2b8c7;
    --tl-pink-2: #f7c6d3;
    --tl-gold: #d6b06a;

    --ok: #1f6f4a;
    --ok-bg: rgba(31, 111, 74, .12);
    --ok-br: rgba(31, 111, 74, .28);

    --warn: #7a5a16;
    --warn-bg: rgba(214, 176, 106, .18);
    --warn-br: rgba(214, 176, 106, .35);

    --bad: #a6374a;
    --bad-bg: rgba(166, 55, 74, .14);
    --bad-br: rgba(166, 55, 74, .28);
}

/* CONTENEDOR */
.cc-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 16px 28px;
}

/* HERO */
.cc-hero {
    background: linear-gradient(135deg, rgba(242, 184, 199, .28), rgba(214, 176, 106, .14));
    border: 1px solid var(--tl-line);
    border-radius: 22px;
    box-shadow: var(--tl-shadow);
    padding: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.cc-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--tl-gold), var(--tl-pink));
    box-shadow: 0 10px 18px rgba(214, 176, 106, .26);
    flex: 0 0 auto;
}

.cc-hero h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -.4px;
    color: var(--tl-text);
}

.cc-hero .sub {
    margin: 4px 0 0;
    color: var(--tl-muted);
    font-weight: 800;
    font-size: 13px;
}

.cc-mini {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    background: rgba(255, 255, 255, .78);
    font-weight: 900;
    font-size: 12px;
    color: var(--tl-muted);
}

.mini-chip.ok {
    border-color: var(--ok-br);
    background: var(--ok-bg);
    color: var(--ok);
}

.mini-chip.warn {
    border-color: var(--warn-br);
    background: var(--warn-bg);
    color: var(--warn);
}

/* BOTONES */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 950;
    text-decoration: none;
    color: var(--tl-text);
    border: 0;
    background: linear-gradient(180deg, var(--tl-pink), var(--tl-pink-2));
    box-shadow: 0 14px 24px rgba(242, 184, 199, .22);
    transition: transform .14s ease, box-shadow .14s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(60, 20, 35, .10);
}

.btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    background: rgba(255, 255, 255, .75);
    font-weight: 950;
    color: var(--tl-muted);
    white-space: nowrap;
}

/* STATS */
.cc-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 16px;
}

.stat {
    background: var(--tl-card);
    border: 1px solid var(--tl-line);
    border-radius: 20px;
    box-shadow: var(--tl-shadow);
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: "";
    position: absolute;
    inset: -40px -60px auto auto;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(242, 184, 199, .55), rgba(214, 176, 106, .18));
    transform: rotate(12deg);
    pointer-events: none;
}

.stat>* {
    position: relative;
}

.stat-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat .ico {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(240, 215, 221, .9);
    background: rgba(255, 255, 255, .78);
    font-size: 18px;
}

.stat .k {
    font-size: 11px;
    font-weight: 950;
    color: var(--tl-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.stat .v {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 950;
    color: var(--tl-text);
}

.stat .t {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
    color: var(--tl-muted);
}

/* acentos suaves por tarjeta */
.s-apertura .ico {
    background: rgba(214, 176, 106, .16);
}

.s-efectivo .ico {
    background: rgba(31, 111, 74, .10);
}

.s-sistema .ico {
    background: rgba(242, 184, 199, .18);
}

.s-total .ico {
    background: rgba(242, 226, 189, .28);
}

/* TABLA */
.table-card {
    background: var(--tl-card);
    border: 1px solid var(--tl-line);
    border-radius: 22px;
    box-shadow: var(--tl-shadow);
    overflow: hidden;
}

.table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--tl-line);
    background: rgba(251, 246, 247, .55);
}

.table-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 950;
    color: var(--tl-text);
}

.badge {
    font-size: 12px;
    font-weight: 900;
    color: var(--tl-muted);
    border: 1px solid var(--tl-line);
    background: rgba(255, 255, 255, .86);
    padding: 6px 10px;
    border-radius: 999px;
}

/* scroll solo si falta */
.table-wrap {
    width: 100%;
    overflow: auto;
}

.tul-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 820px;
    /* ayuda a que en móvil scrollee bonito */
}

.tul-table th,
.tul-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(240, 215, 221, .75);
    font-weight: 800;
    color: var(--tl-text);
    font-size: 13px;
    white-space: nowrap;
}

.tul-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tl-muted);
    background: rgba(251, 246, 247, .55);
    position: sticky;
    top: 0;
    z-index: 1;
}

.tul-table tbody tr:hover td {
    background: rgba(242, 184, 199, .08);
}

.empty {
    color: var(--tl-muted);
    font-weight: 800;
}

/* PILL ESTADO */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    font-weight: 950;
    font-size: 11px;
    letter-spacing: .02em;
}

.pill.correcto {
    background: var(--ok-bg);
    border-color: var(--ok-br);
    color: var(--ok);
}

.pill.sobra {
    background: var(--warn-bg);
    border-color: var(--warn-br);
    color: var(--warn);
}

.pill.falta {
    background: var(--bad-bg);
    border-color: var(--bad-br);
    color: var(--bad);
}

/* PAGINACIÓN */
.pager {
    padding: 12px 16px;
    border-top: 1px solid var(--tl-line);
    background: rgba(251, 246, 247, .45);
}

/* RESPONSIVE */
@media (max-width:980px) {
    .cc-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .cc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:520px) {
    .cc-stats {
        grid-template-columns: 1fr;
    }

    .cc-hero h1 {
        font-size: 24px;
    }

    .btn-primary,
    .btn-disabled {
        width: 100%;
    }
}
