/* =========================================================
   NZT QUICK INGRESO
   Acción rápida visual para registrar ingresos desde Home
   ========================================================= */

.nzt-income-backdrop {
    position: fixed;
    inset: 0;
    z-index: 140;
    background:
        radial-gradient(circle at 50% 12%, rgba(34, 211, 238, 0.10), transparent 36%),
        rgba(2, 6, 23, 0.70);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.nzt-income-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.nzt-income-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 150;
    width: min(100% - 22px, 430px);
    max-height: calc(100dvh - 28px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    border-radius: 26px;
    border: 1px solid rgba(34, 211, 238, 0.48);
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.13), transparent 34%),
        radial-gradient(circle at 90% 8%, rgba(96, 165, 250, 0.10), transparent 32%),
        linear-gradient(180deg, rgba(8, 15, 32, 0.99), rgba(2, 6, 23, 0.99));
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.62),
        0 0 32px rgba(34, 211, 238, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    overflow: hidden;
    transform: translateX(-50%) translateY(-46%) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.26s ease,
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.nzt-income-modal.is-open {
    transform: translateX(-50%) translateY(-50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

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

.nzt-income-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #47f5ff;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.16em;
}

.nzt-income-head span i {
    font-size: 0.96rem;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.65);
}

.nzt-income-head h3 {
    margin: 5px 0 0;
    color: #f8fafc;
    font-size: 1.38rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.nzt-income-head button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.48);
    color: rgba(226, 232, 240, 0.94);
    display: grid;
    place-items: center;
    padding: 0;
}

.nzt-income-body {
    overflow-y: auto;
    padding: 16px 18px 12px;
}

.nzt-income-kicker {
    margin: 0 0 8px;
    color: rgba(203, 213, 225, 0.82);
    font-size: 0.78rem;
    line-height: 1.2;
}

.nzt-income-intro {
    margin: 0 0 15px;
    color: rgba(248, 250, 252, 0.92);
    font-size: 0.84rem;
    line-height: 1.55;
}

.nzt-income-list {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.17);
}

.nzt-income-card {
    position: relative;
    display: grid;
    gap: 11px;
    border-radius: 19px;
    border: 1px solid rgba(148, 163, 184, 0.30);
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.07), transparent 32%),
        rgba(2, 6, 23, 0.48);
    padding: 14px;
}

.nzt-income-card-head {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nzt-income-card-head strong {
    color: #f8fafc;
    font-size: 0.80rem;
    font-weight: 760;
}

.nzt-income-remove {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.52);
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
    display: none;
    place-items: center;
    padding: 0;
}

.nzt-income-remove.is-visible {
    display: grid;
}

.nzt-income-field {
    display: grid;
    gap: 6px;
}

.nzt-income-field label {
    color: rgba(203, 213, 225, 0.92);
    font-size: 0.73rem;
    font-weight: 720;
}

.nzt-income-field input,
.nzt-income-field select {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.74);
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
    font-size: 0.88rem;
    outline: none;
    padding: 0 12px;
}

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

.nzt-income-field input:focus,
.nzt-income-field select:focus {
    border-color: rgba(34, 211, 238, 0.70);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.10);
}

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

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

.nzt-income-add {
    min-height: 44px;
    margin-top: 13px;
    border-radius: 14px;
    border: 1px solid rgba(34, 211, 238, 0.72);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.92), rgba(34, 211, 238, 0.92));
    color: #03111f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    font-size: 0.84rem;
    font-weight: 850;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.20);
}

.nzt-income-foot {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.nzt-income-secondary,
.nzt-income-primary {
    min-height: 42px;
    border-radius: 13px;
    padding: 0 16px;
    font-size: 0.84rem;
    font-weight: 840;
}

.nzt-income-secondary {
    border: 1px solid rgba(226, 232, 240, 0.62);
    background: rgba(2, 6, 23, 0.22);
    color: #f8fafc;
}

.nzt-income-primary {
    border: 1px solid rgba(34, 197, 94, 0.56);
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.96), rgba(34, 197, 94, 0.92));
    color: #ffffff;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.16);
}

.nzt-income-toast {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 40;
    width: min(calc(100% - 64px), 300px);
    min-height: 52px;
    display: none;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%) translateY(-50%) scale(0.96);
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.48);
    background:
        radial-gradient(circle at 14% 50%, rgba(34, 197, 94, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(3, 12, 24, 0.98), rgba(2, 6, 23, 0.98));
    color: #bbf7d0;
    padding: 13px 16px;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.35;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.58),
        0 0 28px rgba(34, 197, 94, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    pointer-events: none;
}

.nzt-income-toast.is-open {
    display: flex;
    animation: nztIncomeToastIn 0.18s ease forwards;
}

.nzt-income-toast.is-error {
    border-color: rgba(248, 113, 113, 0.52);
    background:
        radial-gradient(circle at 14% 50%, rgba(248, 113, 113, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(24, 8, 14, 0.98), rgba(2, 6, 23, 0.98));
    color: #fecaca;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.58),
        0 0 28px rgba(248, 113, 113, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

@keyframes nztIncomeToastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-46%) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-50%) scale(1);
    }
}

.nzt-income-toast.is-open {
    display: flex;
}

.nzt-income-toast.is-error {
    border-color: rgba(248, 113, 113, 0.44);
    background:
        radial-gradient(circle at 12% 50%, rgba(248, 113, 113, 0.16), transparent 36%),
        rgba(2, 6, 23, 0.96);
    color: #fecaca;
}

@media (max-width: 430px) {
    .nzt-income-modal {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 24px;
    }

    .nzt-income-head {
        padding: 16px 15px 12px;
    }

    .nzt-income-body {
        padding: 14px 15px 12px;
    }

    .nzt-income-foot {
        padding: 13px 15px 16px;
    }

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

    .nzt-income-secondary,
    .nzt-income-primary {
        flex: 1;
        padding: 0 12px;
    }
}

/* =========================================================
   QUICK INGRESO - SELECT PROPIO Y SWITCH FIJO
   ========================================================= */

.nzt-income-select {
    position: relative;
}

.nzt-income-select-button {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.74);
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
    display: grid;
    grid-template-columns: 1fr 22px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 720;
}

.nzt-income-select-button i {
    color: rgba(203, 213, 225, 0.82);
    font-size: 0.9rem;
    transition: transform 0.18s ease;
}

.nzt-income-select.is-open .nzt-income-select-button {
    border-color: rgba(34, 211, 238, 0.70);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.10);
}

.nzt-income-select.is-open .nzt-income-select-button i {
    transform: rotate(180deg);
}

.nzt-income-select-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 7px);
    z-index: 20;
    display: none;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(34, 211, 238, 0.34);
    background:
        radial-gradient(circle at 14% 0%, rgba(34, 211, 238, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.99), rgba(2, 6, 23, 0.99));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.48),
        0 0 24px rgba(34, 211, 238, 0.10);
}

.nzt-income-select.is-open .nzt-income-select-panel {
    display: grid;
}

.nzt-income-select-option {
    min-height: 46px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: transparent;
    color: rgba(226, 232, 240, 0.94);
    display: grid;
    grid-template-columns: 1fr 22px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 780;
}

.nzt-income-select-option:last-child {
    border-bottom: 0;
}

.nzt-income-select-option i {
    display: none;
    color: #47f5ff;
    font-size: 1rem;
}

.nzt-income-select-option.is-selected {
    color: #ffffff;
    background: rgba(8, 47, 73, 0.34);
}

.nzt-income-select-option.is-selected i {
    display: block;
}

.nzt-income-select-option:active {
    background: rgba(34, 211, 238, 0.12);
}

.nzt-income-switch {
    min-height: 48px;
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 15px;
    border: 1px solid rgba(34, 211, 238, 0.20);
    background: rgba(15, 23, 42, 0.34);
    cursor: pointer;
}

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

.nzt-income-switch span {
    width: 44px;
    height: 25px;
    position: relative;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(2, 6, 23, 0.72);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.nzt-income-switch span::after {
    content: "";
    width: 19px;
    height: 19px;
    position: absolute;
    left: 3px;
    top: 2px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.88);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.34);
    transition:
        transform 0.18s ease,
        background 0.18s ease;
}

.nzt-income-switch input:checked + span {
    border-color: rgba(34, 211, 238, 0.70);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.84), rgba(34, 211, 238, 0.84));
    box-shadow:
        0 0 16px rgba(34, 211, 238, 0.22),
        inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.nzt-income-switch input:checked + span::after {
    transform: translateX(18px);
    background: #ffffff;
}

.nzt-income-switch strong {
    color: rgba(226, 232, 240, 0.94);
    font-size: 0.80rem;
    line-height: 1.2;
    font-weight: 780;
}

/* =========================================================
   QUICK INGRESO - DATE PICKER NZT
   Reemplaza calendario nativo del navegador
   ========================================================= */

.nzt-income-date {
    position: relative;
}

.nzt-income-date-button {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.74);
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
    display: grid;
    grid-template-columns: 1fr 22px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 720;
}

.nzt-income-date-button i {
    color: rgba(203, 213, 225, 0.82);
    font-size: 0.95rem;
}

.nzt-income-date.is-open .nzt-income-date-button {
    border-color: rgba(34, 211, 238, 0.70);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.10);
}

.nzt-income-date-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    display: none;
    border-radius: 18px;
    border: 1px solid rgba(34, 211, 238, 0.36);
    background:
        radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.13), transparent 36%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.99), rgba(2, 6, 23, 0.99));
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.56),
        0 0 26px rgba(34, 211, 238, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    padding: 12px;
}

.nzt-income-date.is-open .nzt-income-date-panel {
    display: block;
}

.nzt-income-date-head {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.nzt-income-date-head strong {
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 850;
    text-align: center;
}

.nzt-income-date-head button {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.42);
    color: #dffaff;
    display: grid;
    place-items: center;
    padding: 0;
}

.nzt-income-date-week,
.nzt-income-date-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.nzt-income-date-week {
    margin-bottom: 6px;
}

.nzt-income-date-week span {
    min-height: 24px;
    display: grid;
    place-items: center;
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.68rem;
    font-weight: 900;
}

.nzt-income-date-days span {
    min-height: 34px;
}

.nzt-income-date-day {
    min-height: 34px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(248, 250, 252, 0.92);
    font-size: 0.82rem;
    font-weight: 760;
    display: grid;
    place-items: center;
    padding: 0;
}

.nzt-income-date-day:active {
    background: rgba(34, 211, 238, 0.12);
}

.nzt-income-date-day.is-selected {
    border-color: rgba(34, 211, 238, 0.72);
    background:
        radial-gradient(circle at 50% 30%, rgba(71, 245, 255, 0.24), transparent 44%),
        rgba(8, 145, 178, 0.42);
    color: #ffffff;
    box-shadow:
        0 0 16px rgba(34, 211, 238, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}