:root {
    --navy-950: #010712;
    --navy-900: #020b19;
    --navy-850: #061326;
    --navy-800: #09192e;
    --navy-700: #0d2441;
    --blue: #1676c8;
    --blue-soft: #46a7f3;
    --gold: #f3b633;
    --gold-soft: #ffd36b;
    --ink: #f5f7fb;
    --muted: #9aa8bb;
    --line: rgba(154, 174, 201, .16);
    --green: #37c979;
    --red: #ff6474;
    --sidebar: 280px;
    --shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--navy-950);
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 84% 7%, rgba(21, 111, 193, .17), transparent 29rem),
        radial-gradient(circle at 35% 100%, rgba(243, 182, 51, .05), transparent 30rem),
        linear-gradient(145deg, var(--navy-900), #041020 58%, #020913);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px);
    background-size: 42px 42px;
}

a {
    color: inherit;
}

.topbar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--sidebar);
    min-height: 100vh;
    padding: 26px 20px 22px;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    background: linear-gradient(180deg, rgba(6, 21, 42, .98), rgba(2, 10, 23, .99));
    border-right: 1px solid var(--line);
    box-shadow: 18px 0 55px rgba(0, 0, 0, .18);
    color: #fff;
}

.topbar::after {
    position: absolute;
    inset: auto -90px -110px auto;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(20, 110, 190, .12);
    content: "";
    filter: blur(3px);
}

.brand {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    min-height: 69px;
    flex: 0 0 auto;
    overflow: hidden;
    background: url("/assets/images/kondra-logo.svg?v=20260812c") left center / min(215px, 100%) auto no-repeat;
    font-size: 0;
    text-decoration: none;
}

.topbar nav {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 0;
    padding: 8px 5px 10px 0;
    overflow: auto;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 5px;
    scrollbar-color: rgba(255, 255, 255, .17) transparent;
    scrollbar-width: thin;
}

.topbar nav::before {
    display: none;
    content: "";
}

.topbar nav a,
.nav-group-toggle {
    position: relative;
    display: flex;
    min-height: 45px;
    padding: 11px 14px 11px 43px;
    border: 1px solid transparent;
    border-radius: 11px;
    align-items: center;
    color: #b9c6d8;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.topbar nav a::before {
    position: absolute;
    left: 15px;
    width: 15px;
    height: 15px;
    border: 1.7px solid currentColor;
    border-radius: 5px;
    content: "";
    opacity: .85;
}

.topbar nav a:hover,
.topbar nav a:focus-visible,
.nav-group-toggle:hover,
.nav-group-toggle:focus-visible {
    background: rgba(36, 124, 202, .12);
    border-color: rgba(59, 157, 239, .22);
    color: #fff;
    transform: translateX(2px);
}

.topbar nav a.active {
    background: linear-gradient(100deg, #0c64ac, #124a81);
    border-color: rgba(96, 188, 255, .35);
    box-shadow: 0 9px 28px rgba(0, 81, 150, .28);
    color: #fff;
}

.nav-group {
    display: grid;
    gap: 4px;
}

.nav-group-toggle {
    width: 100%;
    min-height: 38px;
    padding: 8px 34px 8px 13px;
    background: transparent;
    color: #73849a;
    cursor: pointer;
    font-size: .68rem;
    letter-spacing: .12em;
    text-align: left;
    text-transform: uppercase;
}

.nav-group-toggle::after {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-68%) rotate(45deg);
    transition: transform .18s ease;
}

.nav-group.expanded .nav-group-toggle::after {
    transform: translateY(-25%) rotate(225deg);
}

.nav-group-links {
    display: none;
    gap: 4px;
}

.nav-group.expanded .nav-group-links {
    display: grid;
}

.topbar form {
    position: relative;
    z-index: 1;
    margin: 0;
}

.logout {
    width: 100%;
    min-height: 46px;
    padding: 9px 18px;
    border: 1px solid rgba(243, 182, 51, .44);
    border-radius: 11px;
    background: rgba(243, 182, 51, .08);
    color: var(--gold-soft);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.logout:hover {
    background: var(--gold);
    color: #101827;
}

.container {
    width: calc(100% - var(--sidebar) - 64px);
    max-width: 1480px;
    margin: 0 32px 70px calc(var(--sidebar) + 32px);
    padding-top: 38px;
}

.container.narrow,
.narrow {
    max-width: 900px;
}

.cycle-grid { display:grid; margin-bottom:24px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }
.cycle-card { display:grid; align-content:start; gap:14px; }
.cycle-card h2,.cycle-card p { margin:0; }
.cycle-card form,.cycle-card .button,.new-cycle form { width:100%; }
.cycle-card button,.cycle-card .button,.new-cycle button { display:block; width:100%; text-align:center; }
.progress { height:9px; overflow:hidden; background:rgba(255,255,255,.08); border-radius:99px; }
.progress span { display:block; height:100%; background:linear-gradient(90deg,var(--blue),var(--gold)); border-radius:inherit; }
.new-cycle { margin-bottom:24px; }

.heading {
    position: relative;
    margin-bottom: 25px;
    padding: 3px 0 4px;
}

.heading p {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.heading h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.heading span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.panel,
.data-card {
    padding: 26px;
    background: linear-gradient(145deg, rgba(15, 33, 57, .91), rgba(9, 23, 42, .96));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.panel {
    margin-bottom: 18px;
}

.panel h2,
.data-card h2,
.data-card h3 {
    margin-top: 0;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.metrics article,
.metric-card {
    position: relative;
    display: grid;
    min-height: 154px;
    padding: 22px 22px 20px 80px;
    overflow: hidden;
    align-content: center;
    background: linear-gradient(145deg, rgba(17, 38, 65, .96), rgba(9, 25, 46, .98));
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
}

.metrics article:not(.metric-card) {
    padding: 22px;
}

.metric-card::after {
    position: absolute;
    inset: auto -38px -60px auto;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgba(25, 130, 219, .08);
    content: "";
}

.metric-card i {
    position: absolute;
    top: 31px;
    left: 21px;
    display: grid;
    width: 46px;
    height: 46px;
    background: linear-gradient(140deg, #0c78c7, #0a477f);
    border: 1px solid rgba(104, 195, 255, .25);
    border-radius: 50%;
    place-items: center;
    color: #fff;
    font-size: .74rem;
    font-style: normal;
    font-weight: 900;
    box-shadow: 0 9px 24px rgba(0, 92, 168, .27);
}

.metric-card:nth-child(2n) i {
    background: linear-gradient(140deg, #d89211, #9a5b00);
    color: #fff8e8;
}

.metrics span,
.metrics small,
.metric-card span,
.metric-card small {
    color: var(--muted);
}

.metrics strong,
.metric-card strong {
    margin: 4px 0;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: clamp(1.45rem, 2.25vw, 2rem);
    letter-spacing: -.025em;
}

.metric-card small {
    font-size: .78rem;
}

.dashboard-grid,
.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .85fr);
    gap: 18px;
    margin-top: 18px;
}

.dashboard-columns > *,
.dashboard-grid > *,
.admin-columns > * {
    min-width: 0;
}

.admin-columns {
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr);
}

.panel-title {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.panel-title span {
    color: var(--gold);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.panel-title h2 {
    margin: 3px 0 0;
    font-size: 1.2rem;
}

.panel-title > a {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #a9c5df;
    font-size: .78rem;
    text-decoration: none;
}

.quick-grid {
    display: grid;
    gap: 10px;
}

.quick-grid a {
    display: grid;
    padding: 14px 15px;
    background: rgba(4, 15, 30, .52);
    border: 1px solid var(--line);
    border-radius: 11px;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease;
}

.quick-grid a:hover {
    border-color: rgba(243, 182, 51, .55);
    transform: translateY(-2px);
}

.quick-grid b {
    color: #fff;
}

.quick-grid span {
    margin-top: 2px;
    color: var(--muted);
    font-size: .78rem;
}

.summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.summary-list > div {
    min-height: 88px;
    padding: 15px;
    background: rgba(3, 15, 30, .5);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.summary-list span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
}

.summary-list strong {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

label {
    display: block;
    margin: 17px 0 7px;
    color: #e8edf5;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 49px;
    padding: 11px 13px;
    background: rgba(2, 12, 26, .78);
    border: 1px solid #30435b;
    border-radius: 9px;
    color: #fff;
    font: inherit;
}

textarea {
    min-height: 125px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue-soft);
    outline: 3px solid rgba(36, 143, 230, .15);
}

input::placeholder,
textarea::placeholder {
    color: #728096;
}

button,
.button,
.btn {
    min-height: 45px;
    padding: 10px 17px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(100deg, #0873c6, #07518e);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

.panel form > button {
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
}

.payment-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.payment-hero h1,
.payment-card h1 {
    margin: 4px 0;
    color: #fff;
    font-size: clamp(2.4rem, 7vw, 4rem);
}

.payment-hero span,
.empty,
.expiry {
    color: var(--muted);
}

.payment-hero form {
    min-width: 250px;
}

.payment-hero form button {
    width: 100%;
}

.pending-pix-action {
    display: grid;
    min-width: 250px;
    gap: 10px;
}

.pending-pix-action .button {
    display: grid;
    min-height: 50px;
    place-items: center;
}

.pending-pix-action small {
    color: var(--muted);
    text-align: center;
}

.payment-link {
    display: inline-block;
    padding: 9px 13px;
    border: 1px solid rgba(74, 168, 242, .35);
    border-radius: 8px;
    color: #8dccff;
    font-weight: 800;
    text-decoration: none;
}

.eyebrow {
    margin: 0;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.payment-card {
    text-align: center;
}

.back {
    display: inline-block;
    margin-bottom: 12px;
    color: #a9c5df;
}

.qr {
    display: block;
    width: min(280px, 100%);
    margin: 22px auto;
    background: #fff;
    border: 8px solid #fff;
    border-radius: 12px;
}

.copy-button {
    width: 100%;
    margin-top: 10px;
}

.copy-feedback {
    min-height: 24px;
    color: var(--green);
    font-weight: 700;
}

.approved-message {
    padding: 15px;
    background: rgba(24, 155, 88, .12);
    border-radius: 10px;
    color: #78e3a8;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(154, 168, 188, .15);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
}

.status-approved {
    background: rgba(55, 201, 121, .13);
    color: #78e3a8;
}

.status-pending,
.status-processing {
    background: rgba(243, 182, 51, .13);
    color: var(--gold-soft);
}

.status-rejected,
.status-cancelled,
.status-expired {
    background: rgba(255, 100, 116, .13);
    color: #ff9ca7;
}

.portal-menu-button,
.portal-menu-overlay {
    display: none;
}

.readonly-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 21px;
}

.readonly-grid div,
.detail-grid > div {
    padding: 15px;
    background: rgba(3, 15, 30, .5);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.readonly-grid span,
.detail-grid span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}

.readonly-grid strong,
.detail-grid strong {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.notice {
    padding: 13px 15px;
    background: rgba(18, 115, 192, .12);
    border-left: 4px solid var(--blue);
    color: #b7cde1;
}

.alert {
    padding: 13px 15px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-weight: 700;
}

.success,
.alert-success {
    background: rgba(24, 155, 88, .12);
    border: 1px solid rgba(55, 201, 121, .32);
    color: #78e3a8;
}

.error,
.alert-error {
    background: rgba(207, 48, 67, .12);
    border: 1px solid rgba(255, 100, 116, .32);
    color: #ff9ca7;
}

.table-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 11px;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    background: rgba(2, 12, 26, .46);
    color: #7f91a8;
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

tbody tr:hover {
    background: rgba(35, 119, 190, .06);
}

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

.data-card {
    margin-bottom: 15px;
}

.welcome .eyebrow {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.welcome h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

small,
.muted,
p {
    color: inherit;
}

@media (max-width: 1180px) {
    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-columns,
    .admin-columns,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    :root {
        --sidebar: min(86vw, 310px);
    }

    .topbar {
        position: fixed;
        inset: 0 auto 0 0;
        width: var(--sidebar);
        height: 100dvh;
        min-height: 0;
        padding: 22px 18px max(18px, env(safe-area-inset-bottom));
        overflow: hidden;
        gap: 16px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .brand {
        width: 205px;
        min-height: 64px;
    }

    .topbar nav {
        width: 100%;
        padding: 4px 3px 8px 0;
        overflow: auto;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 5px;
    }

    .topbar nav a {
        min-width: 0;
        min-height: 43px;
        padding: 10px 12px 10px 42px;
    }

    .topbar nav a::before {
        display: block;
    }

    .topbar nav a:hover {
        transform: translateX(2px);
    }

    .topbar form {
        position: relative;
        top: auto;
        right: auto;
        flex: 0 0 auto;
        padding-bottom: 2px;
    }

    .logout {
        width: 100%;
    }

    .container,
    .container.narrow,
    .narrow {
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        margin: 0 auto 50px;
        padding-top: 82px;
        overflow: hidden;
    }

    .portal-menu-button {
        position: fixed;
        top: 18px;
        left: 18px;
        z-index: 45;
        display: grid;
        width: 48px;
        height: 48px;
        padding: 12px;
        background: linear-gradient(145deg, #0c64ac, #073f72);
        border: 1px solid rgba(96, 188, 255, .35);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
        place-content: center;
        gap: 4px;
    }

    .portal-menu-button span {
        display: block;
        width: 23px;
        height: 2px;
        background: #fff;
        border-radius: 10px;
    }

    .portal-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        background: rgba(0, 4, 12, .74);
        border: 0;
        border-radius: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    body.portal-menu-open {
        overflow: hidden;
    }

    body.portal-menu-open .topbar {
        transform: translateX(0);
    }

    body.portal-menu-open .portal-menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.portal-menu-open .portal-menu-button {
        left: calc(var(--sidebar) - 62px);
    }

    .payment-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .payment-hero form {
        min-width: 0;
    }

    .pending-pix-action {
        min-width: 0;
    }

    .payment-history .table-wrap {
        overflow: visible;
        border: 0;
    }

    .payment-history table,
    .payment-history tbody,
    .payment-history tr,
    .payment-history td {
        display: block;
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .payment-history thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .payment-history tbody {
        display: grid;
        gap: 12px;
    }

    .payment-history tr {
        padding: 14px;
        background: rgba(2, 12, 26, .55);
        border: 1px solid var(--line);
        border-radius: 12px;
    }

    .payment-history td {
        display: grid;
        padding: 8px 0;
        border-bottom: 1px solid var(--line);
        grid-template-columns: minmax(72px, .65fr) minmax(0, 1.35fr);
        gap: 10px;
        overflow-wrap: anywhere;
    }

    .payment-history td:last-child {
        align-items: center;
        border-bottom: 0;
    }

    .payment-history td::before {
        content: attr(data-label);
        color: #7f91a8;
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .dashboard-columns,
    .admin-columns,
    .dashboard-grid {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-columns .table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .admin-columns table,
    .admin-columns tbody,
    .admin-columns tr,
    .admin-columns td {
        display: block;
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .admin-columns thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .admin-columns tbody {
        display: grid;
        gap: 12px;
    }

    .admin-columns tr {
        padding: 14px;
        background: rgba(2, 12, 26, .55);
        border: 1px solid var(--line);
        border-radius: 12px;
    }

    .admin-columns td {
        display: grid;
        padding: 8px 0;
        border-bottom: 1px solid var(--line);
        grid-template-columns: minmax(82px, .7fr) minmax(0, 1.3fr);
        gap: 10px;
        overflow-wrap: anywhere;
    }

    .admin-columns td:last-child {
        border-bottom: 0;
    }

    .admin-columns td::before {
        color: #7f91a8;
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .admin-columns td:nth-child(1)::before {
        content: "Nome";
    }

    .admin-columns td:nth-child(2)::before {
        content: "E-mail";
    }

    .admin-columns td:nth-child(3)::before {
        content: "Perfil";
    }

    .admin-columns td:nth-child(4)::before {
        content: "Status";
    }

    .admin-columns td:nth-child(5)::before {
        content: "Cadastro";
    }
}

@media (max-width: 580px) {
    .metrics,
    .readonly-grid,
    .detail-grid,
    .summary-list {
        grid-template-columns: 1fr;
    }

    .metric-card,
    .metrics article {
        min-height: 135px;
    }

    .panel,
    .data-card {
        padding: 20px;
        border-radius: 15px;
    }

    .heading h1 {
        font-size: 2rem;
    }

    .brand {
        width: 175px;
    }
}

/* Tabelas responsivas globais: tabela no desktop e cartões no celular. */
@media (max-width: 820px) {
    .table-wrap.responsive-cards {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .table-wrap.responsive-cards table,
    .table-wrap.responsive-cards tbody,
    .table-wrap.responsive-cards tr,
    .table-wrap.responsive-cards td {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
    }

    .table-wrap.responsive-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        border: 0;
        white-space: nowrap;
    }

    .table-wrap.responsive-cards tbody {
        display: grid;
        gap: 14px;
    }

    .table-wrap.responsive-cards tbody > tr {
        padding: 14px 16px;
        overflow: hidden;
        background: rgba(2, 12, 26, .55);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    }

    .table-wrap.responsive-cards tbody > tr:hover {
        background: rgba(2, 12, 26, .55);
    }

    .table-wrap.responsive-cards td {
        display: grid;
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
        align-items: start;
        grid-template-columns: minmax(88px, .72fr) minmax(0, 1.28fr);
        gap: 12px;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .table-wrap.responsive-cards td:last-child {
        border-bottom: 0;
    }

    .table-wrap.responsive-cards td::before {
        content: attr(data-label);
        color: #7f91a8;
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .05em;
        line-height: 1.45;
        text-transform: uppercase;
    }

    .table-wrap.responsive-cards td[colspan] {
        grid-template-columns: 1fr;
    }

    .table-wrap.responsive-cards td[colspan]::before,
    .table-wrap.responsive-cards td:empty::before {
        display: none;
    }

    .table-wrap.responsive-cards td .button,
    .table-wrap.responsive-cards td button,
    .table-wrap.responsive-cards td form {
        max-width: 100%;
    }

    .table-wrap.responsive-cards.is-empty::after {
        display: block;
        padding: 18px;
        background: rgba(2, 12, 26, .4);
        border: 1px solid var(--line);
        border-radius: 12px;
        color: #95a4b8;
        content: "Nenhum registro encontrado.";
        text-align: center;
    }
}

@media (max-width: 420px) {
    .table-wrap.responsive-cards td {
        grid-template-columns: minmax(76px, .65fr) minmax(0, 1.35fr);
        gap: 9px;
    }
}

/* ===== Correção responsiva da página de indicações ===== */
.referral-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:16px;
}

.referral-actions .button,
.referral-actions button{
    flex:1 1 220px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

@media (max-width:768px){
    .referral-actions{
        flex-direction:column;
    }

    .referral-actions .button,
    .referral-actions button{
        width:100%;
        flex:1 1 auto;
    }
}
/* ===== Fim da correção ===== */

