: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;
}

/* WRAP */
.rep-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 16px 28px;
}

/* HEADER */
.rep-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.rep-title h1 {
    margin: 6px 0 4px;
    font-size: 30px;
    letter-spacing: -.4px;
    color: var(--tl-text);
}

.rep-title p {
    margin: 0;
    font-weight: 800;
    color: var(--tl-muted);
}

.rep-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    background: rgba(242, 184, 199, .18);
    font-weight: 950;
    font-size: 12px;
    color: var(--tl-muted);
}

.rep-btn {
    border: 0;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 950;
    color: var(--tl-text);
    background: linear-gradient(180deg, var(--tl-pink), var(--tl-pink-2));
    box-shadow: 0 14px 24px rgba(242, 184, 199, .22);
}

.rep-btn:hover {
    transform: translateY(-1px);
}

/* KPIs */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

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

.kpi-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 220px at 20% 0%, rgba(242, 184, 199, .22), transparent 60%),
        radial-gradient(900px 220px at 90% 10%, rgba(214, 176, 106, .14), transparent 60%);
    pointer-events: none;
}

.kpi-card>* {
    position: relative;
}

.kpi-label {
    font-weight: 950;
    color: var(--tl-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.kpi-value {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 950;
    color: var(--tl-text);
}

.kpi-sub {
    margin-top: 6px;
    font-weight: 800;
    color: var(--tl-muted);
    font-size: 12px;
}

.kpi-card.warn .kpi-value {
    color: #7a3f4f;
}

/* CARD TABLE */
.rep-card {
    background: var(--tl-card);
    border: 1px solid var(--tl-line);
    border-radius: 24px;
    box-shadow: var(--tl-shadow);
    padding: 14px;
}

.rep-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

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

.muted {
    font-weight: 800;
    color: var(--tl-muted);
    font-size: 12px;
}

.chip {
    display: inline-flex;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    background: rgba(242, 184, 199, .16);
    font-weight: 950;
    font-size: 12px;
    color: var(--tl-muted);
}

/* TABLE */
.table-wrap {
    overflow: auto;
    border-radius: 16px;
}

.rep-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 880px;
}

.rep-table thead th {
    text-align: left;
    font-size: 11px;
    letter-spacing: .6px;
    text-transform: uppercase;
    font-weight: 950;
    color: var(--tl-muted);
    background: rgba(251, 246, 247, .7);
    border-bottom: 1px solid rgba(240, 215, 221, .95);
    padding: 12px 12px;
}

.rep-table tbody td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(240, 215, 221, .75);
    font-weight: 850;
    color: var(--tl-text);
    background: #fff;
}

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

.num {
    text-align: right;
    white-space: nowrap;
}

.total {
    font-weight: 950;
}

.emp {
    font-weight: 950;
    color: var(--tl-muted);
}

.empty {
    text-align: center;
    color: var(--tl-muted);
    font-weight: 900;
    padding: 18px;
}

.rep-pagination {
    padding: 10px 4px 0;
}

/* RESPONSIVE */
@media(max-width: 980px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rep-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    background: rgba(242, 184, 199, .18);
    font-weight: 950;
    color: var(--tl-muted);
    width: fit-content;
}

.status-pill.ok {
    background: linear-gradient(180deg, rgba(242, 184, 199, .28), rgba(214, 176, 106, .12));
}

.status-pill .tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #21c55d;
    /* verde check */
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.rep-btn.disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
    filter: grayscale(.2);
}

.pill-btn {
    border: 1px solid var(--tl-line);
    background: rgba(255, 255, 255, .9);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
    color: var(--tl-text);
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(60, 20, 35, .06);
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
    white-space: nowrap;
}

.pill-btn:hover {
    background: rgba(242, 184, 199, .22);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(60, 20, 35, .10);
}

.pill-btn.primary {
    background: linear-gradient(90deg, var(--tl-pink), var(--tl-gold));
    border-color: transparent;
    color: #2a1b22;
}

.pill-btn.primary:hover {
    filter: saturate(1.05);
}
