:root {
    --ink: #121826;
    --muted: #657085;
    --line: #d8dfd5;
    --paper: #f8faf7;
    --emerald: #0f6b4f;
    --emerald-strong: #094733;
    --gold: #c69a2f;
    --lime: #9fc85b;
    --danger: #b42318;
    --success: #117a4f;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(145deg, rgba(9, 71, 51, 0.96), rgba(18, 24, 38, 0.95)),
        var(--emerald-strong);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2 {
    margin: 0;
    line-height: 1.06;
}

h1 {
    max-width: 760px;
    font-size: clamp(2.2rem, 6vw, 5.3rem);
}

h2 {
    font-size: clamp(1.55rem, 4vw, 1.95rem);
}

.auth-card {
    width: min(100%, 370px);
    display: block;
    padding: clamp(16px, 3vh, 22px) 24px;
    background: #ffffff;
    border: 1px solid rgba(15, 107, 79, 0.12);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.login-logo {
    width: clamp(82px, 14vh, 104px);
    height: auto;
    display: block;
    margin: 0 auto 10px;
    background: #ffffff;
    padding: 6px;
    border-radius: 4px;
}

.form-header {
    margin-bottom: 14px;
    text-align: center;
}

.auth-form {
    display: none;
    gap: 10px;
}

.auth-form.is-active {
    display: grid;
}

label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 13px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(15, 107, 79, 0.14);
}

textarea {
    min-height: 120px;
    padding: 12px 13px;
    resize: vertical;
    line-height: 1.45;
}

.phone-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.phone-grid select {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 56px;
}

.eye-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--emerald);
    background: #eef5eb;
    cursor: pointer;
}

.eye-btn span {
    width: 20px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.eye-btn span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.primary-btn,
.secondary-btn {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-strong));
}

.secondary-btn {
    color: var(--emerald-strong);
    background: #eef5eb;
    border: 1px solid #cfdcc8;
}

.verify-btn {
    color: #111111;
    background: #f3c53f;
    border: 1px solid #d7ab20;
}

.approve-btn {
    color: #111111;
    background: #19a56b;
    border: 1px solid #0f7a50;
}

.cancel-btn {
    color: #111111;
    background: #ef6b67;
    border: 1px solid #cf4d48;
}

.notice {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 700;
}

.notice.success {
    color: var(--success);
    background: #e7f6ee;
}

.notice.error {
    color: var(--danger);
    background: #fff0ee;
}

@media (max-width: 860px) {
    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 520px) {
    .auth-shell {
        padding: 16px;
    }

    .auth-card {
        padding: 18px;
    }

    .phone-grid {
        grid-template-columns: 1fr;
    }
}

.app-body {
    min-height: 100vh;
    background: #f4f7f2;
}

.app-header {
    z-index: 10;
    min-height: 64px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 8px clamp(14px, 3vw, 38px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(15, 107, 79, 0.14);
    backdrop-filter: blur(14px);
}

.app-brand img {
    width: 68px;
    display: block;
}

.app-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
}

.app-nav a,
.user-chip a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--emerald-strong);
    font-weight: 800;
    text-decoration: none;
}

.app-nav a {
    background: #edf4ea;
}

.app-nav a.is-active,
.app-nav a:hover,
.user-chip a {
    color: #ffffff;
    background: var(--emerald);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    min-width: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    flex-wrap: wrap;
}

.user-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chip-main {
    max-width: 260px;
}

.balance-chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(15, 107, 79, 0.16);
    border-radius: 8px;
    color: var(--emerald-strong);
    background: #edf4ea;
}

.profile-chip {
    width: 34px;
    padding: 0;
    font-size: 0.95rem;
}

.app-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.app-view {
    display: none;
}

.app-view.is-active {
    display: block;
}

.hero-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 22px;
    align-items: stretch;
    padding: clamp(26px, 5vw, 54px);
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(9, 71, 51, 0.98), rgba(18, 24, 38, 0.95)),
        var(--emerald-strong);
    box-shadow: 0 22px 70px rgba(11, 34, 32, 0.2);
}

.hero-band h1 {
    max-width: 760px;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.hero-copy {
    max-width: 680px;
    margin: 18px 0 0;
    color: #dcebe4;
    font-size: 1.08rem;
    line-height: 1.6;
}

.session-card,
.info-panel,
.objective-card {
    border: 1px solid rgba(15, 107, 79, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
}

.session-card {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 22px;
    color: var(--ink);
}

.session-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.referral-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
}

.referral-row p {
    margin: 0;
}

.referral-label {
    color: var(--muted);
    font-weight: 700;
}

.copy-code-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--emerald);
    cursor: pointer;
}

.copy-code-btn span {
    width: 18px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 4px;
    position: relative;
}

.copy-code-btn span::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 18px;
    left: -7px;
    top: 4px;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: var(--emerald);
}

.icon-badge {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    font-size: 0.78rem;
    font-weight: 900;
}

.content-grid,
.objective-grid {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

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

.info-panel {
    display: flex;
    gap: 16px;
    padding: 22px;
}

.info-panel.wide {
    grid-column: 1 / -1;
}

.info-panel h2,
.section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.info-panel p,
.objective-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.info-panel p + p {
    margin-top: 12px;
}

.objectives-section {
    margin-top: 28px;
}

.projects-section {
    margin-top: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.section-heading .eyebrow {
    width: 100%;
}

.balance-pill {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border: 1px solid rgba(15, 107, 79, 0.16);
    border-radius: 8px;
    color: var(--emerald-strong);
    background: #edf4ea;
    font-weight: 800;
}

.objective-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    position: relative;
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 20px;
    border: 1px solid rgba(15, 107, 79, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 38px rgba(11, 34, 32, 0.08);
}

.project-card.is-locked {
    background: rgba(255, 255, 255, 0.72);
}

.project-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-medal {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #edf4ea;
    font-size: 1.4rem;
}

.project-card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.project-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.project-metrics {
    display: grid;
    gap: 8px;
}

.project-metrics span {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.project-metrics strong {
    color: var(--emerald-strong);
    font-size: 1rem;
}

.project-card form {
    margin: 0;
}

.project-card .primary-btn {
    width: 100%;
}

.primary-btn:disabled {
    color: #748070;
    background: #dfe7dc;
    cursor: not-allowed;
}

.project-status {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--emerald-strong);
    background: #edf4ea;
    font-size: 0.82rem;
    font-weight: 900;
}

.filters-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 10px 0 18px;
}

.filters-bar label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.filters-bar input,
.filters-bar select {
    min-height: 40px;
}

.employee-local-filter {
    max-width: 360px;
    margin: 0 0 16px;
}

.employee-local-filter label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.filters-feedback {
    min-height: 20px;
    margin: 0 0 10px;
    color: var(--muted);
    font-weight: 800;
}

.inline-notice {
    margin: 0;
}

.success-feedback {
    color: var(--success);
}

.error-feedback {
    color: var(--danger);
}

.recharge-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 18px;
}

.recharge-card,
.recharge-form,
.table-card {
    border: 1px solid rgba(15, 107, 79, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 38px rgba(11, 34, 32, 0.08);
}

.recharge-card {
    display: flex;
    gap: 16px;
    padding: 22px;
}

.recharge-card h3,
.table-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.wallet-address {
    margin: 0;
    padding: 0;
    border-radius: 0;
    color: #111111;
    background: transparent;
    font-size: 0.86rem;
    font-weight: 400;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.compact-copy .wallet-address {
    min-height: auto;
    display: inline-block;
    padding-right: 8px;
}

.compact-copy .copy-wallet-btn {
    width: 34px;
    height: 34px;
    margin-left: auto;
}

.compact-copy .copy-wallet-btn span {
    width: 15px;
    height: 19px;
}

.compact-copy .copy-wallet-btn span::before {
    width: 12px;
    height: 16px;
    left: -6px;
    top: 3px;
}

.wallet-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: stretch;
}

.copy-wallet-btn {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--emerald);
    cursor: pointer;
}

.copy-wallet-btn span {
    width: 18px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 4px;
    position: relative;
}

.copy-wallet-btn span::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 18px;
    left: -7px;
    top: 4px;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: var(--emerald);
}

.copy-feedback {
    min-height: 18px;
    margin: 6px 0 0;
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 900;
}

.network-note {
    margin: 12px 0 0;
    color: var(--gold);
    font-weight: 900;
}

.recharge-form {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.recharge-form small {
    color: var(--muted);
    font-weight: 700;
}

.table-card {
    margin-top: 18px;
    padding: 22px;
}

.table-wrap {
    overflow-x: auto;
}

.employee-table-card .table-wrap {
    max-height: 520px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.mailbox-table-wrap {
    max-height: 430px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.data-table th,
.data-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(15, 107, 79, 0.12);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--emerald-strong);
    background: #edf4ea;
    font-size: 0.82rem;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 1;
}

.txid-cell {
    max-width: 360px;
    overflow-wrap: anywhere;
}

.mailbox-table {
    min-width: 840px;
}

.mailbox-message-cell {
    max-width: 420px;
    color: var(--muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.action-buttons .primary-btn,
.action-buttons .secondary-btn {
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
}

.action-buttons .verify-btn,
.action-buttons .approve-btn,
.action-buttons .cancel-btn {
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
}

.action-buttons .approve-form {
    margin: 0;
}

.edit-btn {
    color: #111111;
    background: #6fb7ff;
    border: 1px solid #4d93d8;
}

.message-btn {
    color: #111111;
    background: #eef5eb;
    border: 1px solid #cfdcc8;
}

.status-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--emerald-strong);
    background: #edf4ea;
    font-weight: 900;
}

.status-pill.cancelled {
    color: #111111;
    background: #f3b4b1;
}

.objective-card {
    padding: 20px;
}

.objective-card h3 {
    margin: 14px 0 8px;
    font-size: 1.05rem;
}

.module-links {
    padding-bottom: 18px;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #cfdcc8;
    color: var(--emerald-strong);
    background: #eef5eb;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.pagination-btn.is-active {
    color: #ffffff;
    background: var(--emerald);
    border-color: var(--emerald);
}

.pagination-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.profile-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(15, 107, 79, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 38px rgba(11, 34, 32, 0.08);
}

.profile-card-head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.profile-card-head h3 {
    margin: 0;
    font-size: 1.2rem;
}

.profile-card-head p,
.wallet-current {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.profile-form {
    display: grid;
    gap: 12px;
}

.permission-checks {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 170px;
}

.permission-check {
    display: inline-grid;
    grid-template-columns: 16px auto;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid #cfdcc8;
    border-radius: 8px;
    color: var(--emerald-strong);
    background: #eef5eb;
    font-size: 0.82rem;
    font-weight: 900;
}

.permission-check input[type="checkbox"] {
    width: 16px !important;
    min-height: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    accent-color: var(--emerald);
}

.employees-table td[data-label="Referidos"] {
    display: grid;
    gap: 4px;
}

.employees-table td[data-label="Referidos"] strong {
    color: var(--emerald-strong);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(10, 22, 20, 0.48);
}

.modal-backdrop.is-open {
    display: flex;
}

.message-modal {
    width: min(100%, 520px);
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(15, 107, 79, 0.16);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.message-modal-head,
.message-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.message-modal h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--emerald);
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
}

.mail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    align-items: start;
    gap: 18px;
}

.employee-mail-card {
    min-width: 0;
}

.employee-mail-thread {
    max-height: min(62vh, 620px);
    overflow: auto;
    padding-right: 6px;
    align-content: start;
    -webkit-overflow-scrolling: touch;
}

.mail-reply-form {
    align-self: start;
    align-content: start;
    grid-auto-rows: max-content;
}

.mail-reply-form textarea {
    min-height: 180px;
    max-height: 360px;
}

.mail-reply-form .primary-btn {
    width: 100%;
    min-height: 44px;
    align-self: start;
}

.mail-thread {
    display: grid;
    gap: 12px;
}

.mail-message {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(15, 107, 79, 0.12);
    border-radius: 8px;
    background: #ffffff;
}

.mail-message.from-admin {
    border-left: 4px solid var(--emerald);
}

.mail-message.from-employee {
    border-left: 4px solid var(--gold);
}

.mail-message p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.mail-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    flex-wrap: wrap;
}

.admin-mail-thread .message-btn {
    justify-self: start;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    accent-color: var(--emerald);
}

@media (max-width: 900px) {
    .app-header {
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    .app-brand {
        grid-row: span 2;
    }

    .app-nav {
        justify-content: flex-start;
    }

    .user-chip {
        grid-column: 2;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-band,
    .content-grid,
    .objective-grid,
    .project-grid,
    .profile-layout,
    .mail-layout,
    .recharge-layout,
    .filters-bar {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 680px) {
    .employee-mail-thread {
        max-height: 58vh;
        padding-right: 4px;
    }

    .mail-reply-form textarea {
        min-height: 150px;
    }

    .chip-main {
        max-width: 100%;
    }

    .balance-chip {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1100px) and (min-width: 901px) {
    .app-header {
        grid-template-columns: auto 1fr;
    }

    .app-nav {
        justify-content: flex-end;
    }

    .user-chip {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 560px) {
    .app-main {
        width: min(100% - 20px, 1180px);
        padding-top: 16px;
    }

    .app-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-nav a {
        padding: 0 8px;
    }

    .info-panel {
        display: grid;
    }

    .recharge-card {
        display: grid;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 920px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 0.82rem;
    }

    .txid-cell {
        max-width: 260px;
    }

    .wallet-address {
        max-width: 240px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .action-buttons {
        gap: 6px;
    }

    .action-buttons .primary-btn,
    .action-buttons .secondary-btn,
    .action-buttons .verify-btn,
    .action-buttons .approve-btn,
    .action-buttons .edit-btn,
    .action-buttons .cancel-btn,
    .action-buttons .message-btn {
        min-height: 32px;
        padding: 0 8px;
        font-size: 0.78rem;
    }
}

@media (max-width: 760px) {
    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table {
        min-width: 0;
    }

    .data-table tr {
        border-bottom: 1px solid rgba(15, 107, 79, 0.12);
        padding: 10px 0;
    }

    .data-table td {
        border: 0;
        padding: 8px 10px;
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 8px;
        align-items: start;
    }

    .data-table td::before {
        content: attr(data-label);
        font-size: 0.74rem;
        text-transform: uppercase;
        letter-spacing: 0;
        color: var(--emerald-strong);
        font-weight: 900;
    }

    .txid-cell,
    .wallet-address {
        max-width: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        overflow-wrap: normal;
        word-break: normal;
    }

    .data-table td > * {
        min-width: 0;
    }

    .data-table td[data-label="Teléfono"],
    .data-table td[data-label="Observación"],
    .data-table td[data-label="Acción"] {
        overflow: hidden;
    }

    .data-table td[data-label="Hash o TxID"],
    .data-table td[data-label="Billetera"],
    .data-table td[data-label="Fecha"],
    .data-table td[data-label="Teléfono"],
    .data-table td[data-label="Valor"],
    .data-table td[data-label="Monto"],
    .data-table td[data-label="Estado"],
    .data-table td[data-label="Observación"],
    .data-table td[data-label="Acción"] {
        overflow: hidden;
    }

    .withdrawals-table td[data-label="Billetera"],
    .withdrawals-table td[data-label="Hash o TxID"],
    .recharges-table td[data-label="Billetera"],
    .recharges-table td[data-label="Hash o TxID"] {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .withdrawals-table .wallet-address,
    .withdrawals-table .txid-cell,
    .recharges-table .wallet-address,
    .recharges-table .txid-cell {
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .withdrawals-table .compact-copy,
    .recharges-table .compact-copy {
        gap: 6px;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .action-buttons .primary-btn,
    .action-buttons .secondary-btn,
    .action-buttons .verify-btn,
    .action-buttons .approve-btn,
    .action-buttons .edit-btn,
    .action-buttons .cancel-btn,
    .action-buttons .message-btn {
        width: fit-content;
    }

    .permission-checks {
        gap: 6px;
    }

    .compact-copy {
        grid-template-columns: minmax(0, 1fr) 34px;
        align-items: center;
    }
}
