:root {
    --nzt-bg: #020617;
    --nzt-bg-soft: #07111f;
    --nzt-panel: rgba(8, 15, 32, 0.86);
    --nzt-panel-strong: rgba(15, 23, 42, 0.94);
    --nzt-border: rgba(148, 163, 184, 0.22);
    --nzt-border-strong: rgba(34, 211, 238, 0.34);
    --nzt-text: #e5e7eb;
    --nzt-muted: #94a3b8;
    --nzt-muted-2: #64748b;
    --nzt-cyan: #22d3ee;
    --nzt-cyan-soft: rgba(34, 211, 238, 0.14);
    --nzt-green: #22c55e;
    --nzt-red: #ef4444;
    --nzt-red-soft: rgba(127, 29, 29, 0.28);
    --nzt-yellow: #f59e0b;
    --nzt-radius-lg: 26px;
    --nzt-radius-md: 18px;
    --nzt-radius-sm: 14px;
    --nzt-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    color: var(--nzt-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.13), transparent 32%),
        radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.10), transparent 30%),
        linear-gradient(180deg, #020617 0%, #030712 48%, #000000 100%);
    overflow-x: hidden;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

.nzt-page-shell {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 34px;
}

.nzt-page-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    align-items: center;
    gap: 12px;
    padding: 12px 0 16px;
    backdrop-filter: blur(18px);
}

.nzt-header-button {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.78);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nzt-header-button:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(15, 23, 42, 0.96);
}

.nzt-header-button i {
    font-size: 1.22rem;
}

.nzt-header-title {
    min-height: 54px;
    border-radius: 20px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.11), transparent 34%),
        rgba(15, 23, 42, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.nzt-header-title span {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    color: var(--nzt-cyan);
    font-weight: 900;
}

.nzt-header-title strong {
    margin-top: 5px;
    font-size: 0.94rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #f8fafc;
}

.nzt-ingresos-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    margin-top: 8px;
    margin-bottom: 18px;
    padding: 24px;
    border-radius: var(--nzt-radius-lg);
    border: 1px solid rgba(34, 211, 238, 0.24);
    background:
        radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.13), transparent 36%),
        radial-gradient(circle at 88% 12%, rgba(34, 197, 94, 0.09), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.90));
    box-shadow: var(--nzt-shadow);
}

.nzt-eyebrow {
    margin: 0 0 8px;
    color: var(--nzt-cyan);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.nzt-ingresos-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.08em;
    line-height: 0.95;
    color: #f8fafc;
}

.nzt-ingresos-hero p:not(.nzt-eyebrow) {
    max-width: 690px;
    margin: 12px 0 0;
    color: rgba(203, 213, 225, 0.88);
    font-size: 0.98rem;
    line-height: 1.55;
}

.nzt-primary-action,
.nzt-save-button,
.nzt-soft-button {
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    font-weight: 850;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nzt-primary-action,
.nzt-save-button {
    color: #03131b;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    border-color: rgba(103, 232, 249, 0.55);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.22);
}

.nzt-primary-action:hover,
.nzt-save-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.30);
}

.nzt-soft-button {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.76);
    border-color: rgba(148, 163, 184, 0.24);
}

.nzt-soft-button:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.34);
    background: rgba(30, 41, 59, 0.82);
}

.nzt-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.nzt-summary-card {
    min-height: 108px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.08), transparent 34%),
        rgba(15, 23, 42, 0.78);
    padding: 18px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
}

.nzt-summary-card span {
    display: block;
    color: var(--nzt-muted);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 850;
}

.nzt-summary-card strong {
    display: block;
    margin-top: 12px;
    color: #bbf7d0;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

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

.nzt-panel {
    border-radius: var(--nzt-radius-lg);
    border: 1px solid var(--nzt-border);
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.06), transparent 35%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(8, 15, 32, 0.86));
    box-shadow: var(--nzt-shadow);
    overflow: hidden;
}

.nzt-form-panel {
    position: sticky;
    top: 88px;
}

.nzt-panel-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.nzt-panel-kicker {
    display: block;
    color: var(--nzt-cyan);
    font-size: 0.70rem;
    letter-spacing: 0.16em;
    font-weight: 900;
}

.nzt-panel-header h2 {
    margin: 5px 0 0;
    color: #f8fafc;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.nzt-form-panel > .nzt-field,
.nzt-form-panel > .nzt-two-columns,
.nzt-form-panel > .nzt-switch-row,
.nzt-form-panel > .nzt-form-actions,
.nzt-form-error {
    margin-left: 18px;
    margin-right: 18px;
}

.nzt-field {
    margin-bottom: 14px;
}

.nzt-field label {
    display: block;
    margin-bottom: 7px;
    color: rgba(203, 213, 225, 0.92);
    font-size: 0.78rem;
    font-weight: 800;
}

.nzt-field input,
.nzt-field select {
    width: 100%;
    min-height: 44px;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.72);
    color: #f8fafc;
    outline: none;
    padding: 0 13px;
    font-size: 0.92rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nzt-field input::placeholder {
    color: rgba(148, 163, 184, 0.62);
}

.nzt-field input:focus,
.nzt-field select:focus {
    border-color: rgba(34, 211, 238, 0.62);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.10);
    background: rgba(2, 6, 23, 0.88);
}

.nzt-field input[type="date"] {
    color-scheme: dark;
}

.nzt-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nzt-switch-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    margin-top: 2px;
    margin-bottom: 18px;
    cursor: pointer;
    color: rgba(203, 213, 225, 0.92);
}

.nzt-switch-row input {
    display: none;
}

.nzt-switch-row span {
    position: relative;
    width: 44px;
    height: 25px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: rgba(2, 6, 23, 0.86);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.nzt-switch-row span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    background: #e2e8f0;
    transform: translateY(-50%);
    transition: transform 0.18s ease, background 0.18s ease;
}

.nzt-switch-row input:checked + span {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.70);
}

.nzt-switch-row input:checked + span::after {
    transform: translate(19px, -50%);
    background: #86efac;
}

.nzt-switch-row strong {
    grid-column: 2;
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.86rem;
    font-weight: 750;
}

.nzt-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 18px;
}

.nzt-form-error {
    display: none;
    margin-top: 0;
    margin-bottom: 14px;
    padding: 12px 13px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.42);
    background: rgba(127, 29, 29, 0.20);
    color: #fecaca;
    font-size: 0.86rem;
    line-height: 1.42;
}

.nzt-form-error.show {
    display: block;
}

.nzt-filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) 150px 130px 142px 142px auto;
    gap: 10px;
    align-items: end;
    padding: 18px 18px 4px;
}

.nzt-filter-actions {
    display: flex;
    gap: 8px;
    align-items: end;
    padding-bottom: 14px;
}

.nzt-list-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(8, 47, 73, 0.28);
    color: #bae6fd;
    font-size: 0.80rem;
    font-weight: 850;
    white-space: nowrap;
}

.nzt-table-shell {
    width: 100%;
    overflow-x: auto;
    padding: 0 0 8px;
}

.nzt-table {
    width: 100%;
    border-collapse: collapse;
    color: #e5e7eb;
}

.nzt-table th,
.nzt-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    text-align: left;
    vertical-align: middle;
}

.nzt-table th {
    color: rgba(148, 163, 184, 0.96);
    font-size: 0.70rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 900;
    background: rgba(2, 6, 23, 0.42);
    white-space: nowrap;
}

.nzt-table td {
    color: rgba(226, 232, 240, 0.94);
    font-size: 0.91rem;
}

.nzt-table tbody tr {
    transition: background 0.18s ease;
}

.nzt-table tbody tr:hover td {
    background: rgba(34, 211, 238, 0.035);
}

.nzt-income-name {
    display: block;
    max-width: 250px;
    color: #f8fafc;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nzt-money {
    color: #bbf7d0;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.nzt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 29px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.65);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.nzt-badge-transferencia {
    border-color: rgba(34, 211, 238, 0.34);
    background: rgba(8, 47, 73, 0.28);
    color: #bae6fd;
}

.nzt-badge-efectivo {
    border-color: rgba(34, 197, 94, 0.36);
    background: rgba(20, 83, 45, 0.24);
    color: #bbf7d0;
}

.nzt-badge-gifcard {
    border-color: rgba(245, 158, 11, 0.40);
    background: rgba(120, 53, 15, 0.22);
    color: #fde68a;
}

.nzt-badge-fijo {
    border-color: rgba(34, 211, 238, 0.30);
    background: rgba(34, 211, 238, 0.10);
    color: #a5f3fc;
}

.nzt-badge-variable {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.62);
    color: #cbd5e1;
}

.nzt-actions-cell {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nzt-icon-button {
    width: 37px;
    height: 37px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.76);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nzt-icon-button:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.44);
    color: #67e8f9;
    background: rgba(15, 23, 42, 0.96);
}

.nzt-icon-button-danger:hover {
    border-color: rgba(248, 113, 113, 0.58);
    color: #fecaca;
    background: rgba(127, 29, 29, 0.26);
}

.nzt-empty-state {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(148, 163, 184, 0.90);
    text-align: center;
}

.nzt-empty-state i {
    font-size: 2rem;
    color: var(--nzt-cyan);
}

.nzt-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9998;
    min-width: 280px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 13px 16px;
    border-radius: 18px;
    border: 1px solid rgba(34, 197, 94, 0.34);
    background: rgba(2, 6, 23, 0.94);
    color: #bbf7d0;
    font-size: 0.90rem;
    font-weight: 750;
    text-align: center;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.96);
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(14px);
}

.nzt-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.nzt-toast.error {
    border-color: rgba(239, 68, 68, 0.42);
    color: #fecaca;
}

.nzt-hidden {
    display: none !important;
}

.nzt-text-end {
    text-align: right !important;
}

@media (max-width: 1240px) {
    .nzt-layout-grid {
        grid-template-columns: 1fr;
    }

    .nzt-form-panel {
        position: static;
    }

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

    .nzt-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .nzt-page-shell {
        width: min(100% - 22px, 1440px);
        padding-top: 10px;
    }

    .nzt-page-header {
        grid-template-columns: 48px 1fr 48px;
        gap: 9px;
        padding-bottom: 12px;
    }

    .nzt-header-button {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .nzt-header-title {
        min-height: 48px;
        border-radius: 17px;
    }

    .nzt-ingresos-hero {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 24px;
    }

    .nzt-primary-action {
        width: 100%;
    }

    .nzt-summary-grid {
        grid-template-columns: 1fr;
    }

    .nzt-two-columns,
    .nzt-filter-grid {
        grid-template-columns: 1fr;
    }

    .nzt-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nzt-soft-button,
    .nzt-save-button {
        width: 100%;
    }

    .nzt-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nzt-list-badge {
        width: 100%;
    }

    .nzt-table thead {
        display: none;
    }

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

    .nzt-table tbody tr {
        margin: 14px 12px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 18px;
        overflow: hidden;
        background: rgba(15, 23, 42, 0.62);
    }

    .nzt-table td {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        padding: 13px 14px;
    }

    .nzt-table td::before {
        content: attr(data-label);
        color: rgba(148, 163, 184, 0.92);
        font-size: 0.68rem;
        letter-spacing: 0.13em;
        text-transform: uppercase;
        font-weight: 900;
        flex-shrink: 0;
    }

    .nzt-actions-cell {
        justify-content: flex-end;
        width: 100%;
    }

    .nzt-income-name {
        max-width: 190px;
        text-align: right;
    }
}

.nzt-paginator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.nzt-page-button {
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.76);
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.nzt-page-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.44);
    color: #67e8f9;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.10);
}

.nzt-page-button.active {
    border-color: rgba(34, 211, 238, 0.70);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.92), rgba(6, 182, 212, 0.90));
    color: #03131b;
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.22);
}

.nzt-page-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.nzt-page-info {
    width: 100%;
    text-align: center;
    color: rgba(148, 163, 184, 0.92);
    font-size: 0.78rem;
    font-weight: 750;
    margin-top: 4px;
}