:root {
    --tl-bg: #fbf6f7;
    --tl-card: #ffffff;
    --tl-line: #f0d7dd;
    --tl-shadow: 0 14px 30px rgba(60, 20, 35, .08);
    --tl-text: #2a1b22;
    --tl-muted: #7a5a66;

    --tl-pink: #f2b8c7;
    --tl-pink-2: #f7c6d3;
    --tl-gold: #d6b06a;

    --ok: #c9f7d1;
    --ok-b: #7be08a;
    --bad: #ffd1d1;
    --bad-b: #ff8a8a;
}

.page {
    max-width: 1100px;
    margin: 26px auto;
    padding: 0 16px;
}

.card-shell {
    background: var(--tl-card);
    border: 1px solid var(--tl-line);
    border-radius: 18px;
    box-shadow: var(--tl-shadow);
    overflow: hidden;
}

.head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 10px 18px;
}

.title {
    margin: 0;
    font-size: 26px;
    color: var(--tl-text);
    letter-spacing: -.3px;
}

.sub {
    margin: 6px 0 0 0;
    color: var(--tl-muted);
    font-weight: 600;
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 14px 18px;
}

.search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--tl-line);
    border-radius: 14px;
    background: rgba(242, 184, 199, .12);
}

.search .ico {
    opacity: .8;
}

.search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-weight: 700;
    color: var(--tl-text);
}

.meta .pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    background: rgba(255, 255, 255, .9);
    color: var(--tl-muted);
    font-weight: 900;
    font-size: 12px;
}

.table-wrap {
    padding: 0 12px 14px 12px;
}

.tul-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--tl-line);
}

.tul-table thead th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    letter-spacing: .6px;
    color: var(--tl-muted);
    background: rgba(242, 184, 199, .10);
    border-bottom: 1px solid var(--tl-line);
    font-weight: 900;
}

.tul-table tbody td {
    padding: 14px 14px;
    border-bottom: 1px solid var(--tl-line);
    color: var(--tl-text);
    font-weight: 700;
    background: #fff;
}

.tul-table tbody tr:hover td {
    background: rgba(247, 198, 211, .14);
}

.tul-table tbody tr:last-child td {
    border-bottom: 0;
}

.strong {
    font-weight: 950;
}

.empty {
    text-align: center;
    color: var(--tl-muted);
    padding: 18px 14px !important;
}

/* badges */
.role,
.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    font-weight: 950;
    font-size: 12px;
}

.role.admin {
    background: rgba(214, 176, 106, .18);
    border-color: rgba(214, 176, 106, .35);
    color: #6b4a1d;
}

.role.vendor {
    background: rgba(242, 184, 199, .20);
    border-color: rgba(242, 184, 199, .50);
    color: #7a2f45;
}

.status.on {
    background: var(--ok);
    border-color: var(--ok-b);
    color: #165c2a;
}

.status.off {
    background: var(--bad);
    border-color: var(--bad-b);
    color: #7a1a1a;
}

/* acciones */
.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.btn {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    color: var(--tl-text);
    font-weight: 900;
    background: #fff;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(90deg, var(--tl-pink), var(--tl-gold));
    border-color: rgba(0, 0, 0, .04);
}

.btn-sm {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    color: var(--tl-text);
    background: #fff;
    font-weight: 900;
    cursor: pointer;
}

.btn-sm:hover,
.btn:hover {
    background: rgba(242, 184, 199, .18);
}

.btn-sm.danger {
    border-color: rgba(255, 138, 138, .55);
}

.btn-sm.danger:hover {
    background: rgba(255, 138, 138, .18);
}

/* alerts */
.alert {
    margin: 0 18px 10px 18px;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    border: 1px solid var(--tl-line);
}

.alert.ok {
    background: rgba(201, 247, 209, .55);
    border-color: rgba(123, 224, 138, .7);
    color: #165c2a;
}

.alert.err {
    background: rgba(255, 209, 209, .55);
    border-color: rgba(255, 138, 138, .7);
    color: #7a1a1a;
}

.pager {
    padding: 8px 18px 16px 18px;
}
