:root {
    --bg: #0f172a;
    --bg-elevated: #111827;
    --bg-card: #020617;
    --border-subtle: #1f2937;
    --accent: #f97316;
    --accent-soft: rgba(249, 115, 22, 0.08);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #eab308;
    --text: var(--text-main);
    --text-color: var(--text-main);
}

:root {
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #1f2937 0, #020617 40%, #000 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 1.4rem 0 1rem;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a.btn,
.btn {
    min-height: 44px;
}

input,
select,
textarea {
    min-height: 44px;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

select option {
    background-color: #020617;
    color: var(--text-main);
}

.amount,
.money,
.total,
.balance,
.ndh-sum-value {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ndh-sum-tile,
.ndh-sum-value {
    min-width: 0;
}

.no-print {
    display: initial;
}

@media print {
    html,
    body {
        background: #fff !important;
        color: #111 !important;
    }

    a[href]::after {
        content: "" !important;
    }

    .no-print {
        display: none !important;
    }

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        margin: 12mm;
    }
}