:root {
    --bg: #f4f9ff;
    --bg-soft: #edf5fd;
    --panel: #ffffff;
    --panel-soft: #f8fbff;
    --panel-strong: #eef6ff;
    --line: #d5e4f3;
    --line-strong: #c4d7ea;
    --text: #16324d;
    --muted: #66809b;
    --primary: #2f86df;
    --primary-dark: #1f69c4;
    --primary-soft: #e6f2ff;
    --danger: #be3f5d;
    --danger-soft: #fdebf0;
    --success: #238568;
    --success-soft: #e2f6ef;
    --warning: #a7711f;
    --shadow: 0 20px 42px rgba(47, 110, 173, 0.08);
    --shadow-soft: 0 12px 26px rgba(47, 110, 173, 0.05);
    --font-body: "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", Tahoma, sans-serif;
    --font-display: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    --radius-xl: 0;
    --radius-lg: 0;
    --radius-md: 0;
    --radius-sm: 0;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(86, 159, 231, 0.14), transparent 26%),
        radial-gradient(circle at left 16%, rgba(63, 143, 221, 0.08), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, var(--bg) 38%, #f2f7fd 100%);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.app-shell {
    padding: 22px;
    overflow-x: hidden;
}

.shell-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 20px;
    min-height: calc(100vh - 44px);
}

.sidebar-panel,
.topbar,
.content-card,
.hero-card,
.page-banner,
.data-card,
.form-panel,
.card,
.login-panel,
.login-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.sidebar-panel {
    border-radius: var(--radius-xl);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.brand-lockup {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    background: linear-gradient(145deg, #1b4f84 0%, #2f81c9 100%);
    box-shadow: 0 16px 32px rgba(41, 98, 160, 0.22);
}

.brand-mark--has-image {
    padding: 6px;
    background: rgba(255, 255, 255, 0.96);
    color: transparent;
    overflow: hidden;
}

.brand-mark__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.brand-lockup .brand-mark--has-image {
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand-lockup .brand-mark--has-image .brand-mark__image {
    width: 52px;
    height: 52px;
}

.brand-copy {
    min-width: 0;
    flex: 0 12 auto;
}

.brand-title {
    color: #173451;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.77rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.menu-stack {
    display: grid;
    gap: 14px;
}

.menu-group-card {
    display: grid;
    gap: 8px;
    padding: 11px;
    background: linear-gradient(180deg, #fcfeff 0%, #f2f8ff 100%);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.menu-group-card--dashboard {
    background: linear-gradient(180deg, #ffffff 0%, #edf6ff 100%);
}

.menu-group__title,
.eyebrow,
.topbar-chip,
.section-badge,
.kpi-label,
.stats-pill span,
.mini-stat span,
.tab-chip,
.voucher-register-pill,
.status-chip,
.code-badge,
.code-badge--soft,
.pill,
.pill-tag {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
}

.menu-group__title {
    color: var(--muted);
    padding: 0 4px;
}

.menu-link {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.menu-link::after {
    content: "";
    position: absolute;
    left: -14px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: transparent;
    transition: background 0.18s ease;
}

.menu-link:hover,
.menu-link.active {
    color: #0f4f96;
    background: linear-gradient(180deg, #ffffff 0%, #d8ebff 100%);
    border-color: #88bcf4;
    box-shadow: 0 10px 20px rgba(47, 134, 223, 0.14);
    transform: translateX(3px);
}

.menu-link.active::after {
    background: linear-gradient(180deg, var(--primary), #67b4ff);
}

.menu-link__icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #f1f8ff 0%, #e0efff 100%);
    font-family: var(--font-display);
    font-size: 0.68rem;
}

.menu-link.active .menu-link__icon,
.menu-link:hover .menu-link__icon {
    background: linear-gradient(180deg, #3d94ef 0%, #287bdd 100%);
    color: #fff;
    border-color: rgba(47, 134, 223, 0.32);
}

.menu-link__body {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.menu-link__title {
    color: var(--text);
    font-weight: 700;
    font-size: 0.84rem;
}

.menu-link__meta {
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.2;
}

.sidebar-user {
    margin-top: auto;
    padding: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
    color: var(--text);
}

.sidebar-user__label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.sidebar-user__name {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 1.02rem;
}

.sidebar-user__meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8rem;
}

.sidebar-user__actions {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.sidebar-user__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
}

.sidebar-user__action.active,
.sidebar-user__action:hover {
    background: linear-gradient(180deg, #ffffff 0%, #e6f2ff 100%);
    color: #0f4f96;
}

.button.sidebar-logout {
    display: inline-flex;
    width: 100%;
    margin-top: 12px;
    border-color: #e1b6be;
    background: linear-gradient(180deg, #fff8f9 0%, #fbecef 100%);
    color: #97263b;
    box-shadow: none;
}

.button.sidebar-logout:hover {
    border-color: #cb8f9b;
    background: linear-gradient(180deg, #fff1f4 0%, #f6dfe5 100%);
    color: #7f1e31;
}

.content-panel {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
}

.topbar {
    border-radius: var(--radius-xl);
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.page-title {
    margin: 0;
    color: #173451;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.06;
}

.page-subtitle,
.subtitle,
.muted {
    color: var(--muted);
}

.page-subtitle {
    margin: 8px 0 0;
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 6px;
    color: #6090bf;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-icon-link {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4e4f3;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    color: #215d9f;
    box-shadow: 0 10px 22px rgba(69, 126, 188, 0.08);
}

.topbar-icon-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.topbar-icon-link:hover,
.topbar-icon-link.active {
    color: #fff;
    border-color: #2b78d2;
    background: linear-gradient(180deg, #3288df 0%, #1f6bc4 100%);
}

.topbar-chip,
.section-badge,
.pill,
.pill-tag,
.code-badge,
.code-badge--soft,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
}

.topbar-chip,
.section-badge,
.pill,
.pill-tag,
.code-badge--soft {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.code-badge {
    min-width: 52px;
    background: linear-gradient(180deg, #2d7fd2 0%, #1f67bc 100%);
    color: #fff;
}

.page-body {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.card,
.content-card,
.page-banner,
.form-panel,
.data-card {
    border-radius: var(--radius-xl);
    padding: 24px 26px;
}

.hero-card,
.page-banner {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
}

.page-banner {
    background:
        linear-gradient(135deg, rgba(57, 127, 198, 0.08), rgba(255, 255, 255, 0.98)),
        linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.section-title {
    margin: 6px 0 0;
    font-family: var(--font-display);
    font-size: 1.42rem;
    line-height: 1.18;
    color: #18324e;
}

.section-copy {
    margin: 10px 0 0;
    max-width: 760px;
    color: var(--muted);
}

.stats-strip,
.hero-card__stats,
.dashboard-kpi-grid,
.dashboard-overview-grid,
.grid,
.quick-grid,
.dashboard-expense-stack,
.metric-grid,
.form-grid,
.form-grid-2,
.page-split,
.page-split--wide,
.tab-strip {
    display: grid;
    gap: 12px;
}

.stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(540px, 100%);
}

.stats-pill,
.mini-stat {
    padding: 16px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #eff7ff 100%);
    border: 1px solid var(--line);
}

.stats-pill strong,
.mini-stat strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #1b4f84;
}

.tab-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tab-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    background: linear-gradient(180deg, #ffffff 0%, #eff7ff 100%);
    border: 1px solid var(--line);
    color: #29537a;
}

.tab-chip:hover {
    background: linear-gradient(180deg, #3288df 0%, #1f6bc4 100%);
    border-color: #2a79d4;
    color: #fff;
}

.tab-chip.is-active {
    background: linear-gradient(180deg, #3288df 0%, #1f6bc4 100%);
    border-color: #2a79d4;
    color: #fff;
    box-shadow: 0 14px 26px rgba(47, 122, 198, 0.16);
}

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

.quick-card {
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
    border: 1px solid var(--line);
    color: #244d77;
    box-shadow: var(--shadow-soft);
}

.quick-card:hover {
    transform: translateY(-1px);
}

.quick-card__label {
    display: inline-block;
    color: #6090bf;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-card strong {
    display: block;
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 1.12rem;
}

.quick-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.grid {
    gap: 18px;
}

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

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

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

.page-split--wide {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
}

.dashboard-stack {
    display: grid;
    gap: 18px;
}

.kpi-grid {
    display: grid;
    gap: 18px;
}

.kpi-card {
    padding: 22px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
}

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

.dashboard-kpi-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    min-height: 90px;
    padding: 16px;
    color: #fff;
    box-shadow: 0 18px 36px rgba(42, 91, 145, 0.16);
}

.dashboard-kpi-card::before {
    content: "";
    position: absolute;
    right: -18px;
    top: -18px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-kpi-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    animation: dashboardCardGlow 2.8s linear infinite;
}

.dashboard-kpi-card__topline {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.dashboard-kpi-card__topline-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 1.54rem;
    line-height: 1;
    text-align: right;
}

.kpi-note {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.32;
    color: rgba(255, 255, 255, 0.92);
}

.dashboard-kpi-card__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    animation: dashboardIconFloat 2.6s ease-in-out infinite;
}

.dashboard-kpi-card__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.dashboard-kpi-card--blue { background: linear-gradient(145deg, #1b4f84 0%, #2f81c9 100%); }
.dashboard-kpi-card--sky { background: linear-gradient(145deg, #22618d 0%, #4fa6dd 100%); }
.dashboard-kpi-card--mint { background: linear-gradient(145deg, #1b6d73 0%, #31b0aa 100%); }
.dashboard-kpi-card--amber { background: linear-gradient(145deg, #8b5b1d 0%, #d59a35 100%); }
.dashboard-kpi-card--indigo { background: linear-gradient(145deg, #33428a 0%, #667bdb 100%); }
.dashboard-kpi-card--rose { background: linear-gradient(145deg, #8a3651 0%, #d56f94 100%); }

.dashboard-overview-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
}

.dashboard-section-heading {
    margin-bottom: 14px;
}

.dashboard-chart-card,
.dashboard-register-card {
    padding: 22px;
}

.dashboard-chart-card__legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-legend {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #425e7b;
    border: 1px solid #d7e5f2;
    background: #f8fbff;
}

.dashboard-legend--expense {
    border-color: #f1d59a;
}

.dashboard-legend--inflow {
    border-color: #b9e2cc;
}

.dashboard-legend--outflow {
    border-color: #f0c6cf;
}

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

.dashboard-chart-card__summary,
.voucher-toolbar__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.dashboard-chart-stat {
    padding: 10px 12px;
    background: linear-gradient(180deg, #fcfeff 0%, #f3f9ff 100%);
    border: 1px solid var(--line);
}

.dashboard-chart-stat span,
.dashboard-chart-stat em {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.25;
}

.dashboard-chart-stat strong {
    display: block;
    margin: 4px 0 3px;
    font-family: var(--font-display);
    font-size: 0.94rem;
    line-height: 1.15;
    color: #1d4d7d;
}

.dashboard-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    min-height: 280px;
    align-items: end;
    padding: 18px 14px 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 248, 255, 0.94) 100%),
        repeating-linear-gradient(
            to top,
            rgba(166, 194, 223, 0.2) 0,
            rgba(166, 194, 223, 0.2) 1px,
            transparent 1px,
            transparent 54px
        );
    border: 1px solid #dbe8f4;
}

.dashboard-chart--premium {
    position: relative;
    min-height: 316px;
    padding: 18px 16px 10px;
    background:
        radial-gradient(circle at top right, rgba(179, 216, 255, 0.34), transparent 28%),
        radial-gradient(circle at bottom left, rgba(217, 235, 255, 0.42), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 255, 0.98) 100%),
        repeating-linear-gradient(
            to top,
            rgba(177, 201, 226, 0.18) 0,
            rgba(177, 201, 226, 0.18) 1px,
            transparent 1px,
            transparent 56px
        );
}

.dashboard-chart--dense {
    gap: 4px;
    padding: 16px 10px 8px;
}

.dashboard-chart-empty {
    display: grid;
    place-items: center;
    min-height: 280px;
    color: var(--muted);
    border: 1px dashed #d6e4f1;
    background: linear-gradient(180deg, #fcfeff 0%, #f4f9ff 100%);
}

.dashboard-chart__item {
    position: relative;
    display: grid;
    gap: 8px;
    align-items: end;
    justify-items: center;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    animation: dashboardChartItemIn 0.72s cubic-bezier(0.2, 0.8, 0.22, 1) forwards;
    transition: transform 0.2s ease;
}

.dashboard-chart__item:nth-child(1) { animation-delay: 0.04s; }
.dashboard-chart__item:nth-child(2) { animation-delay: 0.12s; }
.dashboard-chart__item:nth-child(3) { animation-delay: 0.2s; }
.dashboard-chart__item:nth-child(4) { animation-delay: 0.28s; }
.dashboard-chart__item:nth-child(5) { animation-delay: 0.36s; }
.dashboard-chart__item:nth-child(6) { animation-delay: 0.44s; }

.dashboard-chart--dense .dashboard-chart__item {
    gap: 5px;
}

.dashboard-chart__item::before {
    content: "";
    position: absolute;
    width: 52px;
    height: 18px;
    background: radial-gradient(circle, rgba(140, 188, 241, 0.28) 0%, rgba(140, 188, 241, 0) 76%);
    bottom: 34px;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dashboard-chart__hovercard {
    position: absolute;
    left: 50%;
    top: -8px;
    z-index: 3;
    min-width: 132px;
    max-width: 164px;
    padding: 9px 10px;
    display: grid;
    gap: 3px;
    text-align: center;
    border: 1px solid rgba(205, 221, 237, 0.96);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 34px rgba(35, 88, 141, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px) scale(0.94);
    transform-origin: bottom center;
    transition: opacity 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.dashboard-chart__hovercard::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-right: 1px solid rgba(205, 221, 237, 0.96);
    border-bottom: 1px solid rgba(205, 221, 237, 0.96);
    transform: translateX(-50%) rotate(45deg);
}

.dashboard-chart__hovercard span {
    color: #5c789c;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-chart__hovercard strong {
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.1;
    margin: 0;
}

.dashboard-chart__hovercard em {
    color: var(--muted);
    font-size: 0.67rem;
    line-height: 1.2;
    font-style: normal;
}

.dashboard-chart__hovercard--expense span {
    color: #9a6716;
}

.dashboard-chart__hovercard--inflow span {
    color: #23744f;
}

.dashboard-chart__hovercard--outflow span {
    color: #a14b5f;
}

.dashboard-chart__hovercard--journal span {
    color: #2f86df;
}

.dashboard-chart__bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 228px;
}

.dashboard-chart--dense .dashboard-chart__bars {
    min-height: 212px;
}

.dashboard-chart__bar-track {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    width: 24px;
    height: 214px;
    padding: 0;
    background: transparent;
    border: 0;
    transition: transform 0.22s ease, filter 0.22s ease;
    overflow: visible;
}

.dashboard-chart--dense .dashboard-chart__bar-track {
    width: 18px;
    height: 198px;
}

.dashboard-chart__bar-track::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    width: 6px;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(198, 214, 231, 0.4) 0%, rgba(186, 205, 225, 0.88) 100%);
}

.dashboard-chart--dense .dashboard-chart__bar-track::before {
    width: 5px;
    top: 8px;
}

.dashboard-chart__bar-track--expense {
    filter: drop-shadow(0 8px 18px rgba(193, 123, 25, 0.12));
}

.dashboard-chart__bar-track--inflow {
    filter: drop-shadow(0 8px 18px rgba(47, 156, 103, 0.12));
}

.dashboard-chart__bar-track--outflow {
    filter: drop-shadow(0 8px 18px rgba(199, 75, 107, 0.12));
}

.dashboard-chart__bar-track--journal {
    filter: drop-shadow(0 8px 18px rgba(47, 134, 223, 0.12));
}

.dashboard-chart__bar-track--expense::before {
    background: linear-gradient(180deg, rgba(244, 210, 125, 0.42) 0%, rgba(193, 123, 25, 0.94) 100%);
}

.dashboard-chart__bar-track--inflow::before {
    background: linear-gradient(180deg, rgba(180, 233, 200, 0.42) 0%, rgba(47, 156, 103, 0.94) 100%);
}

.dashboard-chart__bar-track--outflow::before {
    background: linear-gradient(180deg, rgba(246, 190, 206, 0.42) 0%, rgba(199, 75, 107, 0.94) 100%);
}

.dashboard-chart__bar-track--journal::before {
    background: linear-gradient(180deg, rgba(191, 225, 255, 0.42) 0%, rgba(47, 134, 223, 0.94) 100%);
}

.dashboard-chart__bar {
    display: block;
    width: 6px;
    min-height: 8px;
    position: relative;
    border-radius: 999px 999px 0 0;
    animation: dashboardBarJellyIn 0.95s cubic-bezier(0.22, 0.9, 0.24, 1.08) both;
    transition: width 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.dashboard-chart--dense .dashboard-chart__bar {
    width: 5px;
}

.dashboard-chart__bar::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    bottom: 4px;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.dashboard-chart__bar::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -15px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: inherit;
    border: 4px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(33, 86, 142, 0.18);
}

.dashboard-chart--dense .dashboard-chart__bar::after {
    top: -12px;
    width: 22px;
    height: 22px;
    border-width: 3px;
}

.dashboard-chart__bar--debit,
.dashboard-chart__bar--journal {
    background: linear-gradient(180deg, #bfe1ff 0%, #5ca9f2 34%, #2f86df 100%);
    box-shadow: 0 14px 24px rgba(47, 134, 223, 0.22);
}

.dashboard-chart__bar--expense {
    background: linear-gradient(180deg, #f7e6b8 0%, #e5ae4f 34%, #c17b19 100%);
    box-shadow: 0 14px 24px rgba(193, 123, 25, 0.18);
}

.dashboard-chart__bar--inflow {
    background: linear-gradient(180deg, #d3f1df 0%, #68c18f 34%, #2f9c67 100%);
    box-shadow: 0 14px 24px rgba(47, 156, 103, 0.18);
}

.dashboard-chart__bar--outflow {
    background: linear-gradient(180deg, #f8d8df 0%, #e2839b 34%, #c74b6b 100%);
    box-shadow: 0 14px 24px rgba(199, 75, 107, 0.18);
}

.dashboard-chart__caption {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.2s ease, transform 0.2s ease;
}

.dashboard-chart--dense .dashboard-chart__caption {
    font-size: 0.66rem;
}

.dashboard-chart__meta {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.dashboard-chart--dense .dashboard-chart__meta {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
}

.dashboard-chart__item:hover {
    transform: translateY(-3px);
}

.dashboard-chart__item:hover::before {
    opacity: 1;
}

.dashboard-chart__item:hover .dashboard-chart__hovercard {
    opacity: 1;
    transform: translate(-50%, -12px) scale(1);
}

.dashboard-chart__item:hover .dashboard-chart__bar-track {
    transform: translateY(-4px);
    filter: saturate(1.08);
}

.dashboard-chart__item:hover .dashboard-chart__bar {
    width: 8px;
    filter: saturate(1.08) brightness(1.03);
    transform: scaleY(1.02);
}

.dashboard-chart--dense .dashboard-chart__item:hover .dashboard-chart__bar {
    width: 6px;
}

.dashboard-chart__item:hover .dashboard-chart__bar::after {
    box-shadow: 0 14px 28px rgba(33, 86, 142, 0.24);
}

.dashboard-chart__item:hover .dashboard-chart__caption {
    color: #0f4f96;
    transform: translateY(-1px);
}

.dashboard-chart__item:hover .dashboard-chart__meta {
    color: #476988;
}

.dashboard-expense-card {
    display: grid;
    gap: 14px;
}

.dashboard-expense-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    color: var(--muted);
    border: 1px dashed #d6e4f1;
    background: linear-gradient(180deg, #fcfeff 0%, #f4f9ff 100%);
}

.dashboard-expense-stack {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 6px;
}

.dashboard-expense-stack::-webkit-scrollbar {
    width: 8px;
}

.dashboard-expense-stack::-webkit-scrollbar-thumb {
    background: rgba(160, 183, 208, 0.9);
}

.dashboard-expense-stack::-webkit-scrollbar-track {
    background: rgba(231, 239, 247, 0.9);
}

.dashboard-expense-tile {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid #deebf6;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.96) 100%);
    box-shadow: 0 16px 30px rgba(34, 86, 140, 0.06);
}

.dashboard-expense-tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--expense-accent, #f0aa1f);
}

.dashboard-expense-tile::after {
    content: "";
    position: absolute;
    inset: auto -18px -18px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 171, 227, 0.1) 0%, rgba(120, 171, 227, 0) 72%);
}

.dashboard-expense-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(34, 86, 140, 0.1);
}

.dashboard-expense-tile__top,
.dashboard-expense-tile__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-expense-tile__title,
.dashboard-expense-tile__amount {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
}

.dashboard-expense-tile__title strong,
.dashboard-expense-tile__amount strong {
    color: var(--text);
    line-height: 1.15;
    font-family: var(--font-display);
}

.dashboard-expense-tile__title strong {
    font-size: 0.9rem;
}

.dashboard-expense-tile__title span,
.dashboard-expense-tile__footer span,
.dashboard-expense-tile__amount em {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.15;
    font-style: normal;
}

.dashboard-expense-tile__amount {
    justify-items: end;
    text-align: right;
}

.dashboard-expense-tile__amount strong {
    font-size: 0.95rem;
}

.dashboard-expense-tile__amount em {
    font-weight: 700;
    color: #47698c;
}

.dashboard-expense-tile__meter {
    position: relative;
    z-index: 1;
    height: 10px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(227, 236, 245, 0.76) 0%, rgba(214, 226, 238, 0.9) 100%);
}

.dashboard-expense-tile__meter-fill {
    display: block;
    height: 100%;
    background: var(--expense-fill, linear-gradient(90deg, #f6d27d 0%, #f0aa1f 60%, #df8a0d 100%));
    box-shadow: 0 10px 20px rgba(57, 110, 168, 0.14);
    animation: dashboardExpenseSweep 1s cubic-bezier(0.22, 0.85, 0.24, 1) both;
    transform-origin: left center;
}

.dashboard-expense-tile__footer {
    position: relative;
    z-index: 1;
}

.dashboard-expense-tile--amber {
    --expense-accent: #f0aa1f;
    --expense-fill: linear-gradient(90deg, #f8d77e 0%, #f0aa1f 55%, #dd890c 100%);
}

.dashboard-expense-tile--pink {
    --expense-accent: #df3b88;
    --expense-fill: linear-gradient(90deg, #f5a1c6 0%, #e74b95 55%, #d52c78 100%);
}

.dashboard-expense-tile--indigo {
    --expense-accent: #6170cb;
    --expense-fill: linear-gradient(90deg, #b9c1f1 0%, #7180d9 55%, #4a59b4 100%);
}

.dashboard-expense-tile--cyan {
    --expense-accent: #22add7;
    --expense-fill: linear-gradient(90deg, #9fe1ef 0%, #2ab8df 55%, #109fd0 100%);
}

.dashboard-expense-tile--lime {
    --expense-accent: #9fca2f;
    --expense-fill: linear-gradient(90deg, #d6ee90 0%, #a9d532 55%, #8fbe18 100%);
}

.dashboard-expense-tile--violet {
    --expense-accent: #9a6ff0;
    --expense-fill: linear-gradient(90deg, #d2bdf7 0%, #a177f1 55%, #7649d0 100%);
}

.dashboard-voucher-table__voucher,
.voucher-detail-table__account,
.hierarchy-card__header h3,
.subhead-block__title,
.metric,
.voucher-register-code__body strong {
    font-family: var(--font-display);
}

.dashboard-voucher-table {
    margin: 0;
}

.dashboard-voucher-table th {
    font-size: 0.72rem;
    padding: 11px 14px;
    border-bottom: 1px solid #dce8f3;
    background: rgba(246, 250, 255, 0.98);
}

.dashboard-voucher-table td {
    font-size: 0.82rem;
    padding: 11px 14px;
    vertical-align: middle;
}

.dashboard-voucher-table tbody tr:hover td {
    background: linear-gradient(180deg, #fcfeff 0%, #eef6ff 100%);
}

.dashboard-voucher-table__voucher {
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-voucher-table__remarks {
    max-width: 280px;
}

.dashboard-register-card__action {
    min-height: 34px;
    padding: 0.42rem 0.82rem;
    font-size: 0.78rem;
}

.dashboard-table-shell {
    border: 1px solid #dbe7f2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

@keyframes dashboardIconFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes dashboardChartItemIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dashboardBarJellyIn {
    0% {
        transform: scaleY(0.08) scaleX(0.82);
        transform-origin: bottom center;
        opacity: 0.35;
    }

    58% {
        transform: scaleY(1.08) scaleX(1.04);
        transform-origin: bottom center;
        opacity: 1;
    }

    76% {
        transform: scaleY(0.96) scaleX(0.98);
        transform-origin: bottom center;
    }

    100% {
        transform: scaleY(1) scaleX(1);
        transform-origin: bottom center;
        opacity: 1;
    }
}

@keyframes dashboardExpenseSweep {
    0% {
        transform: scaleX(0.08);
        opacity: 0.35;
    }

    60% {
        transform: scaleX(1.03);
        opacity: 1;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes dashboardCardGlow {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.75;
    }

    100% {
        opacity: 0.2;
    }
}

.hierarchy-stack {
    display: grid;
    gap: 14px;
}

.hierarchy-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
    padding: 18px;
}

.hierarchy-card__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.hierarchy-card__header h3 {
    margin: 0;
    font-size: 1.14rem;
}

.hierarchy-card__header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.subhead-block {
    padding: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.subhead-block + .subhead-block {
    margin-top: 12px;
}

.subhead-block__title {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #1d4d7d;
}

.subhead-block__title span {
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.8rem;
}

.card h3,
.content-card h3,
.content-card h2,
.card h2,
.card h4,
.content-card h4 {
    margin: 0 0 14px;
    color: #18324e;
}

.metric {
    color: #1c4e80;
    font-size: 2rem;
    line-height: 1;
}

.metric-label {
    margin-top: 8px;
    color: var(--muted);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2eef9;
    text-align: left;
    vertical-align: top;
}

th {
    color: #5f83a7;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.soft-table thead th,
.app-table thead th {
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.soft-table tbody tr:hover,
.app-table tbody tr:hover,
.voucher-detail-table tbody tr:hover {
    background: #fbfdff;
}

.text-right,
.text-end {
    text-align: right;
}

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

.text-nowrap,
.nowrap {
    white-space: nowrap;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #2d77cb;
    background: linear-gradient(180deg, #3288df 0%, #1f6bc4 100%);
    color: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(42, 111, 182, 0.16);
}

.button.secondary,
button.secondary {
    border-color: #cfe0f0;
    background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
    color: #215d9f;
}

.button.danger,
button.danger {
    border-color: #da9daf;
    background: linear-gradient(180deg, #df6e8f 0%, #bd4568 100%);
    color: #fff;
}

.button-outline {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.button-soft {
    border-color: var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #eff7ff 100%);
    color: #24588f;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.table-responsive {
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
}

.voucher-register-code {
    display: flex;
    align-items: center;
    gap: 10px;
}

.voucher-register-code__body {
    display: grid;
    gap: 2px;
}

.table-action-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
}

.table-action-btn--pdf {
    background: linear-gradient(180deg, #4a93d8 0%, #236bb4 100%);
    border-color: #2b78c9;
}

.table-action-btn--edit {
    background: linear-gradient(180deg, #33a68d 0%, #237d6a 100%);
    border-color: #2a8873;
}

.table-action-btn--delete {
    background: linear-gradient(180deg, #dc7896 0%, #bb4a6b 100%);
    border-color: #c85d7b;
}

.table-action-btn__icon svg,
.voucher-expand-btn__icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.inline-form {
    display: inline;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #456987;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cadceb;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    color: var(--text);
    padding: 11px 12px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #5da0e2;
    box-shadow: 0 0 0 3px rgba(76, 148, 222, 0.12);
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

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

.stack {
    display: grid;
    gap: 16px;
}

.alert {
    padding: 14px 16px;
    border-left: 4px solid transparent;
}

.alert.success {
    background: var(--success-soft);
    border-color: var(--success);
    color: #1e654f;
}

.alert.error {
    background: var(--danger-soft);
    border-color: var(--danger);
    color: #8b3149;
}

.empty-state,
.dashboard-chart-empty,
.dashboard-expense-empty {
    padding: 20px;
    border: 1px dashed var(--line-strong);
    color: var(--muted);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.empty-state.compact {
    padding: 12px 14px;
}

.voucher-register-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.voucher-register-toolbar__search {
    flex: 1 1 360px;
}

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

.voucher-register-search-shell {
    display: flex;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.voucher-register-search-input {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.voucher-register-toolbar__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.voucher-register-filter-btn,
.voucher-register-create-btn,
.voucher-register-page-nav {
    min-height: 36px;
}

.voucher-register-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.voucher-register-filter-btn__icon,
.table-action-btn__icon,
.voucher-expand-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.voucher-register-filter-panel {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.voucher-register-filter-field {
    display: grid;
    gap: 6px;
}

.voucher-register-filter-panel__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.voucher-register-filter-panel__actions,
.voucher-register-pagination {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.voucher-register-search-status {
    margin-bottom: 12px;
    color: var(--muted);
}

.voucher-register-table-shell {
    border: 1px solid #dbe7f2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.soft-table--voucher-register th,
.soft-table--voucher-register td {
    vertical-align: middle;
}

.voucher-expand-btn {
    min-height: 34px;
    width: 34px;
    padding: 0;
    border-color: var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
    color: #285d95;
}

.voucher-expand-btn[aria-expanded="true"] {
    background: linear-gradient(180deg, #3288df 0%, #1f6bc4 100%);
    color: #fff;
}

.voucher-register-detail-row__cell {
    padding: 0;
    border-bottom: 0;
}

.voucher-register-detail-card {
    margin: 0 12px 16px;
    padding: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.voucher-register-detail-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.voucher-register-detail-card__title strong {
    display: block;
    font-family: var(--font-display);
    color: #1a4d7d;
}

.voucher-register-detail-card__title span,
.voucher-register-detail-card__meta span {
    color: var(--muted);
}

.voucher-register-detail-card__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.voucher-register-remarks {
    max-width: 280px;
}

.status-chip {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    color: #376a9c;
    border: 1px solid var(--line);
}

.status-chip--enabled {
    color: var(--success);
    background: linear-gradient(180deg, #f7fffb 0%, #e7f8f1 100%);
    border-color: #bbdece;
}

.status-chip--muted {
    color: var(--muted);
}

.voucher-register-page-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.voucher-register-pagination__summary {
    color: var(--muted);
}

.voucher-register-pagination__controls,
.voucher-register-pagination__size {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.voucher-register-pagination__size span {
    color: var(--muted);
}

.voucher-register-page-number {
    min-height: 34px;
    min-width: 34px;
    padding: 0 10px;
}

.voucher-register-page-number.is-active {
    background: linear-gradient(180deg, #3288df 0%, #1f6bc4 100%);
    border-color: #2b78d2;
    color: #fff;
}

.d-none {
    display: none !important;
}

.voucher-lines-table-shell {
    overflow-x: auto;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(180deg, #edf4fb 0%, #e3edf7 100%);
}

.login-scene {
    width: min(1180px, 100%);
    position: relative;
}

.login-ambient {
    position: absolute;
    inset: -42px -36px -32px;
    pointer-events: none;
    overflow: hidden;
}

.login-ambient__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(14px);
    opacity: 0.8;
}

.login-ambient__glow--one {
    width: 320px;
    height: 320px;
    top: 24px;
    left: -92px;
    background: radial-gradient(circle, rgba(111, 185, 255, 0.18) 0%, rgba(111, 185, 255, 0.03) 66%, transparent 78%);
}

.login-ambient__glow--two {
    width: 280px;
    height: 280px;
    right: -56px;
    bottom: 30px;
    background: radial-gradient(circle, rgba(72, 147, 230, 0.15) 0%, rgba(72, 147, 230, 0.03) 64%, transparent 78%);
}

.login-ambient__mesh {
    position: absolute;
    inset: 20px 42px 18px 42px;
    background:
        linear-gradient(rgba(173, 202, 232, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(173, 202, 232, 0.09) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 18%, rgba(0, 0, 0, 0.95) 72%, transparent 100%);
    opacity: 0.34;
}

.login-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 0;
    min-height: 700px;
    background: #ffffff;
    border: 1px solid #d5e2ef;
    box-shadow: 0 20px 48px rgba(63, 102, 145, 0.14);
}

.login-copy {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 28px 34px 24px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.login-copy--feature {
    background:
        linear-gradient(180deg, rgba(10, 31, 57, 0.2) 0%, rgba(4, 21, 42, 0.38) 100%),
        linear-gradient(145deg, #153e68 0%, #1a4f81 48%, #102f4e 100%);
}

.login-copy::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    background:
        linear-gradient(138deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 24%, transparent 48%, transparent 72%, rgba(255, 255, 255, 0.05) 100%);
}

.login-copy::after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 520px;
    height: 520px;
    left: -92px;
    top: 72px;
    transform: rotate(-16deg);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-copy > * {
    position: relative;
    z-index: 1;
}

.login-copy__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.login-copy__brand-title {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.05;
}

.login-copy__brand-subtitle {
    color: rgba(220, 234, 248, 0.78);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-mark--login {
    width: 50px;
    height: 50px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-mark--login.brand-mark--has-image {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.34);
}

.login-copy__numbers {
    position: absolute;
    inset: 64px 32px 138px 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 2px 18px;
    opacity: 0.13;
    pointer-events: none;
    transform: rotate(-14deg);
}

.login-copy__numbers span {
    font-family: var(--font-display);
    font-size: clamp(3.1rem, 7.3vw, 5.1rem);
    font-weight: 200;
    line-height: 0.88;
    letter-spacing: 0.04em;
}

.login-copy__content {
    max-width: 100%;
    margin: auto 0 118px;
    padding-left: 24px;
}

.login-title {
    margin: 14px 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 2.8vw, 2.55rem);
    line-height: 1.15;
}

.login-text {
    color: rgba(231, 240, 249, 0.86);
    max-width: 360px;
    margin-bottom: 24px;
}

.login-card {
    padding: 0;
    background: #ffffff;
    border: 0;
    box-shadow: none;
}

.login-card--auth {
    display: grid;
    align-content: center;
    padding: 54px 58px;
}

.login-card__header h2 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.08;
    color: #173451;
}

.login-card__header p {
    color: var(--muted);
    margin-bottom: 0;
}

.login-submit-btn {
    width: 100%;
    min-height: 48px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-card__seed-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
}

.login-copy__microcopy {
    max-width: 100%;
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.6;
    background: linear-gradient(135deg, #ff5e70 0%, #ff4c73 100%);
    box-shadow: 0 14px 30px rgba(255, 77, 111, 0.24);
}

.login-copy__footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.login-copy__footer-note {
    max-width: 360px;
    color: rgba(221, 235, 248, 0.78);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
    text-transform: uppercase;
}

.login-copy__footer-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.login-copy__footer-chips span {
    color: rgba(222, 235, 248, 0.84);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.auth-form {
    margin-top: 20px;
}

.login-form-group {
    margin-bottom: 1rem;
}

.login-form-label {
    margin-bottom: 0.45rem;
    color: #173451;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.login-form-control {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 1px solid #cadceb;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    color: var(--text);
    outline: none;
}

.login-form-control:focus {
    border-color: #5da0e2;
    box-shadow: 0 0 0 3px rgba(76, 148, 222, 0.12);
}

.login-form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    color: #173451;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.login-form-check__input {
    width: auto;
    margin: 0;
}

.login-card .alert {
    margin-top: 18px;
    margin-bottom: 18px;
}

.install-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    min-height: 760px;
    background: #ffffff;
    border: 1px solid #d5e2ef;
    box-shadow: 0 20px 48px rgba(63, 102, 145, 0.14);
}

.install-copy {
    padding-bottom: 32px;
}

.install-copy__body {
    display: grid;
    gap: 18px;
    margin: auto 0;
    padding-left: 24px;
}

.install-checklist {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.install-checklist span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.install-card {
    align-content: start;
}

.install-form {
    display: grid;
    gap: 20px;
}

.install-form__section {
    display: grid;
    gap: 14px;
    padding-top: 4px;
}

.install-form__section-title {
    color: #173451;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
}

.install-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.install-form__grid-span {
    grid-column: 1 / -1;
}

.install-errors {
    margin: 10px 0 0;
    padding-left: 18px;
}

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

.summary-tile {
    padding: 16px 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.summary-tile span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.summary-tile strong {
    display: block;
    margin-top: 7px;
    font-family: var(--font-display);
    font-size: 1.14rem;
    color: #1a4d7d;
}

.statement-column {
    display: grid;
    gap: 14px;
}

.statement-group {
    padding: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.statement-group h4 {
    margin-bottom: 12px;
    color: #1a4d7d;
}

.statement-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5eff8;
}

.statement-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.statement-total {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 2px solid #d8e7f5;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-display);
}

.settings-preview {
    padding: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.settings-preview h3 {
    margin-bottom: 8px;
}

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

.settings-preview__details strong {
    display: block;
    color: #1a4d7d;
    margin-bottom: 2px;
}

hr {
    border: 0;
    border-top: 1px solid #dce8f4;
    margin: 18px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #2d77cb;
    background: linear-gradient(180deg, #3288df 0%, #1f6bc4 100%);
    color: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(42, 111, 182, 0.16);
}

.btn-sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
}

.btn-success {
    border-color: #238568;
    background: linear-gradient(180deg, #2aa57f 0%, #1c7b5f 100%);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.account-tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: auto;
    justify-self: start;
    align-self: start;
    margin: 0 0 12px;
    margin-right: auto;
    padding: 0 0 10px;
    border-bottom: 1px solid #dbe7f3;
}

.accounts-page-stack {
    display: grid;
    gap: 0;
    align-content: start;
}

.accounts-page-stack > .account-tabs {
    margin: 0 0 12px;
    margin-right: auto;
    padding: 0 0 10px;
}

.account-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 36px;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #4a6988;
    font-size: 0.84rem;
    font-weight: 700;
}

.account-tab.active,
.account-tab:hover {
    color: #0f4f96;
    background: #f5f9fe;
    border-color: #d4e3f3;
}

.account-tab__step {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf4fb;
    color: #296cbf;
    border: 1px solid #d6e4f1;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.account-tab__label {
    white-space: nowrap;
    line-height: 1.1;
}

.account-tab.active .account-tab__step,
.account-tab:hover .account-tab__step {
    background: #2e78d2;
    color: #fff;
    border-color: #2e78d2;
}

.page-inline-note {
    margin-bottom: 20px;
}

.page-inline-note--heads {
    padding: 14px 16px;
    background: linear-gradient(180deg, #fcfeff 0%, #f6fbff 100%);
    border: 1px solid #dce9f5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.page-inline-note--heads .section-heading {
    align-items: center;
    margin-bottom: 8px;
}

.page-inline-note--heads .section-badge {
    margin-bottom: 4px;
    padding: 4px 8px;
    font-size: 0.64rem;
    letter-spacing: 0.09em;
}

.page-inline-note--heads .section-title {
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.15;
}

.page-inline-note--heads .pill-tag {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 0.72rem;
}

.page-inline-note--heads .section-copy {
    font-size: 0.83rem;
    line-height: 1.45;
    color: #597796;
}

.subhead-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.subhead-create-button {
    min-height: 42px;
    min-width: 180px;
    padding-inline: 18px;
    box-shadow: 0 16px 30px rgba(21, 138, 88, 0.2);
}

.soft-table--heads,
.soft-table--subheads,
.soft-table--chartaccounts {
    border-collapse: separate;
    border-spacing: 0 4px;
}

.soft-table--heads thead th,
.soft-table--subheads thead th,
.soft-table--chartaccounts thead th {
    border-bottom: none;
    white-space: nowrap;
}

.soft-table--heads tbody td,
.soft-table--subheads tbody td,
.soft-table--chartaccounts tbody td {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
}

.soft-table--heads tbody td {
    background: #fbfdff;
}

.soft-table--subheads tbody td {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.soft-table--chartaccounts tbody td {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    padding-top: 12px;
    padding-bottom: 12px;
}

.soft-table--heads tbody tr td:first-child,
.soft-table--subheads tbody tr td:first-child,
.soft-table--chartaccounts tbody tr td:first-child {
    border-left: 1px solid var(--line);
}

.soft-table--heads tbody tr td:last-child,
.soft-table--subheads tbody tr td:last-child,
.soft-table--chartaccounts tbody tr td:last-child {
    border-right: 1px solid var(--line);
}

.head-row,
.subhead-row {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.head-row:hover td {
    background: #f4f9ff;
    border-color: var(--line-strong);
}

.subhead-row:hover td {
    background: linear-gradient(180deg, #fafdff 0%, #eef6ff 100%);
    border-color: var(--line-strong);
}

.count-badge,
.structure-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    white-space: nowrap;
}

.count-badge {
    min-width: 48px;
    padding: 9px 12px;
    color: var(--primary-dark);
    background: #eef6ff;
    border: 1px solid var(--line);
}

.structure-chip {
    padding: 9px 14px;
    color: #476887;
    background: #f7fbff;
    border: 1px solid var(--line);
    font-size: 0.84rem;
}

.head-title-cell,
.subhead-title-cell,
.chart-account-title-cell {
    display: grid;
    gap: 6px;
}

.subhead-parent-cell {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
}

.head-title-cell {
    gap: 4px;
}

.head-title-cell strong,
.subhead-title-cell strong,
.chart-account-title-cell strong {
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-display);
}

.head-title-cell span {
    color: var(--muted);
    font-size: 0.86rem;
}

.subhead-title-cell span,
.chart-account-title-cell span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.accounts-page-stack .code-badge {
    min-width: 56px;
    padding: 10px 14px;
    color: var(--primary-dark);
    background: #eef6ff;
    border: 1px solid var(--line);
    box-shadow: none;
}

.accounts-page-stack .code-badge--soft {
    min-width: 52px;
    padding: 9px 12px;
    color: #35689b;
    background: #f8fbff;
    border: 1px solid var(--line);
}

.order-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.drag-handle {
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    background: #f8fbff;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.sequence-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: #eef6ff;
    color: var(--primary-dark);
    font-weight: 700;
}

.chart-account-row--dragging {
    opacity: 0.65;
}

.blue-check {
    padding: 14px 16px;
    border: 1px solid #dce8f5;
    background: linear-gradient(180deg, #fcfeff 0%, #f5faff 100%);
}

.blue-check strong {
    display: block;
    color: #184a7d;
    font-family: var(--font-display);
}

.choice-check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
}

.choice-check input[type="checkbox"] {
    margin-right: 0;
    margin-top: 2px;
}

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

.field-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.modal-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

body.modal-open {
    overflow: hidden;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    overflow-y: auto;
    padding: 20px 14px;
}

.app-modal.is-open {
    display: block;
}

.app-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 41, 68, 0.45);
    opacity: 0;
}

.app-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(620px, calc(100vw - 28px));
    margin: 20px auto;
    max-height: calc(100vh - 40px);
    opacity: 0;
    transform: translateY(20px) scale(0.985);
}

.app-modal-card {
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 24px 54px rgba(55, 108, 170, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
}

.app-modal.is-open .app-modal__backdrop {
    animation: appModalBackdropIn 0.22s ease forwards;
}

.app-modal.is-open .app-modal__dialog {
    animation: appModalDialogIn 0.28s cubic-bezier(0.2, 0.8, 0.22, 1) forwards;
}

@keyframes appModalBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes appModalDialogIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.app-modal-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 18px 12px;
    background: linear-gradient(135deg, #2c6db0 0%, #184875 100%);
}

.app-modal-card__header .section-title {
    color: #fff;
}

.app-modal-card__header .section-copy {
    color: rgba(255, 255, 255, 0.84);
    max-width: 56ch;
}

.app-modal-card__header .section-badge {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.app-modal-card__body {
    padding: 12px 18px 18px;
    display: grid;
    gap: 14px;
    overflow-y: auto;
}

.btn-close {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    position: relative;
}

.btn-close::before,
.btn-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: currentColor;
}

.btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 1380px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 1180px) {
    .shell-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-overview-grid,
    .page-split,
    .page-split--wide,
    .grid-4,
    .grid-3,
    .grid-2,
    .form-grid,
    .form-grid-2,
    .voucher-register-filter-panel__grid,
    .report-summary-grid,
    .settings-preview__details {
        grid-template-columns: 1fr;
    }

    .stats-strip,
    .dashboard-chart-card__summary,
    .tab-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 0 8px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .login-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .install-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-copy {
        min-height: auto;
    }

    .login-card--auth {
        padding: 34px 30px;
    }

    .login-copy__content {
        margin: 104px 0 0;
        padding-left: 0;
    }

    .install-copy__body {
        padding-left: 0;
    }

    .login-copy__footer {
        margin-top: 30px;
        padding-top: 12px;
    }
}

@media (max-width: 768px) {
    .app-shell,
    .login-body {
        padding: 14px;
    }

    .login-scene {
        width: 100%;
    }

    .login-panel {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .install-panel {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .sidebar-panel,
    .topbar,
    .card,
    .content-card,
    .page-banner,
    .login-panel,
    .login-copy,
    .login-card {
        padding: 18px;
    }

    .page-banner,
    .hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-kpi-grid,
    .quick-grid,
    .stats-strip,
    .login-copy__numbers,
    .tab-strip {
        grid-template-columns: 1fr;
    }

    .app-modal__dialog {
        width: calc(100vw - 20px);
        margin: 20px auto;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .login-body {
        display: block;
        min-height: 100dvh;
        padding: 14px;
    }

    .login-copy {
        padding: 26px 22px;
    }

    .login-card--auth {
        order: -1;
        align-content: start;
        padding: 26px 22px;
    }

    .install-card {
        order: -1;
    }

    .login-copy__numbers {
        display: none;
    }

    .login-copy__content {
        margin-top: 18px;
    }

    .login-copy__footer {
        margin-top: 20px;
    }

    .login-title {
        font-size: 1.55rem;
    }

    .install-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .voucher-register-toolbar,
    .voucher-register-pagination,
    .section-heading,
    .voucher-register-detail-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-actions {
        justify-content: flex-start;
    }

    .account-tab {
        min-width: max-content;
        min-height: 34px;
        padding: 6px 10px;
    }

    .modal-form-actions {
        justify-content: stretch;
    }
}

/* Voucher register exact legacy overrides */
.voucher-register-code {
    display: flex;
    align-items: center;
    gap: 10px;
}

.voucher-register-code__body {
    display: grid;
    gap: 2px;
}

.voucher-register-code__body strong {
    font-size: 0.82rem;
    font-weight: 500;
    color: #173955;
}

.voucher-register-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.voucher-register-toolbar__search {
    flex: 1 1 320px;
    max-width: 560px;
}

.voucher-register-toolbar__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-wrap: nowrap;
}

.voucher-register-search-shell {
    position: relative;
}

.voucher-register-search-shell::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid #6b8aad;
    border-radius: 50%;
    transform: translateY(-58%);
    pointer-events: none;
}

.voucher-register-search-shell::after {
    content: "";
    position: absolute;
    left: 26px;
    top: calc(50% + 3px);
    width: 7px;
    height: 2px;
    background: #6b8aad;
    transform: rotate(45deg);
    transform-origin: left center;
    pointer-events: none;
}

.voucher-register-search-input {
    min-height: 38px;
    padding-left: 40px;
    border: 1px solid #d6e4f2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.voucher-register-pill {
    min-height: 32px;
    padding: 7px 11px;
    font-size: 0.72rem;
}

.voucher-register-pill span {
    font-size: 0.8rem;
}

.voucher-register-filter-btn {
    min-height: 32px;
    padding: 0.38rem 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #385a79;
    border-color: #d2deea;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
    white-space: nowrap;
}

.voucher-register-filter-btn:hover,
.voucher-register-filter-btn.is-open {
    color: #184978;
    border-color: #a9c4de;
    background: linear-gradient(180deg, #ffffff 0%, #e8f1fb 100%);
}

.voucher-register-filter-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
}

.voucher-register-filter-btn__icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.voucher-register-create-btn {
    min-height: 32px;
    padding: 0.38rem 0.78rem;
    font-size: 0.76rem;
    white-space: nowrap;
    border-color: #22915b;
    background: linear-gradient(180deg, #26a266 0%, #198c56 100%);
    box-shadow: 0 18px 30px rgba(42, 150, 95, 0.18);
}

.voucher-register-create-btn:hover {
    box-shadow: 0 18px 30px rgba(42, 150, 95, 0.24);
}

.voucher-register-filter-panel {
    margin: -2px 0 14px;
    padding: 14px;
    border: 1px solid #d7e4f0;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7fc 100%);
}

.voucher-register-filter-panel__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.voucher-register-filter-field {
    display: grid;
    gap: 6px;
}

.voucher-register-filter-field label {
    margin: 0;
    color: #607c96;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.voucher-register-filter-panel__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.voucher-register-filter-clear {
    min-height: 32px;
    padding: 0.38rem 0.8rem;
    font-size: 0.74rem;
}

.voucher-register-search-status {
    margin: -2px 0 12px;
    color: #5b7691;
    font-size: 0.77rem;
    line-height: 1.45;
}

.voucher-register-table-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: stable both-edges;
    transition: opacity 0.22s ease, transform 0.22s ease;
    transform-origin: top center;
}

.voucher-register-table-shell.is-page-animating {
    animation: voucherRegisterPageSwap 0.34s ease;
}

.soft-table--voucher-register {
    border-collapse: separate;
    border-spacing: 0 4px;
}

.soft-table--voucher-register thead th {
    border-bottom: none;
    white-space: nowrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

.soft-table--voucher-register tbody td {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding-top: 7px;
    padding-bottom: 7px;
    vertical-align: middle;
}

.soft-table--voucher-register tbody tr td:first-child {
    border-left: 1px solid var(--line);
}

.soft-table--voucher-register tbody tr td:last-child {
    border-right: 1px solid var(--line);
}

.soft-table--voucher-register tbody tr:hover td {
    background: linear-gradient(180deg, #fbfeff 0%, #eef6ff 100%);
    border-color: var(--line-strong);
}

.voucher-register-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #dbe6f1;
    flex-wrap: wrap;
}

.voucher-register-pagination__summary {
    color: #5e7892;
    font-size: 0.78rem;
}

.voucher-register-pagination__controls {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.voucher-register-pagination__size {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5e7892;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.voucher-register-pagination__size select {
    min-width: 72px;
    min-height: 32px;
    border-color: #d5e2ee;
    background-color: #ffffff;
    font-size: 0.76rem;
    width: auto;
}

.voucher-register-page-nav {
    min-height: 32px;
    padding: 0.38rem 0.82rem;
    font-size: 0.75rem;
    white-space: nowrap;
    color: #385a79;
    border-color: #d2deea;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
}

.voucher-register-page-nav:hover,
.voucher-register-page-nav:focus,
.voucher-register-page-nav:active {
    color: #183f66;
    border-color: #a9c4de;
    background: linear-gradient(180deg, #ffffff 0%, #e8f1fb 100%);
}

.voucher-register-page-nav:disabled,
.voucher-register-page-nav.disabled {
    color: #7d91a4;
    background: #f4f7fa;
    border-color: #d8e1e9;
}

.voucher-register-page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.voucher-register-page-number {
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    border: 1px solid #d4e0eb;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
    color: #486784;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.voucher-register-page-number:hover {
    transform: translateY(-1px);
    border-color: #9fbedc;
    background: linear-gradient(180deg, #ffffff 0%, #eaf3fb 100%);
    color: #1d5d95;
}

.voucher-register-page-number.is-active {
    border-color: #2a6eb0;
    background: linear-gradient(180deg, #3e82c3 0%, #275f95 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(39, 95, 149, 0.22);
}

.voucher-register-remarks {
    max-width: 420px;
    color: #5f7389;
    line-height: 1.35;
}

.voucher-register-attachment-badge {
    min-width: 108px;
    min-height: 28px;
    padding: 7px 10px;
    white-space: nowrap;
}

.voucher-register-actions-cell {
    width: 1%;
    white-space: nowrap;
    text-align: left;
}

.voucher-register-actions-stack {
    display: grid;
    justify-items: start;
    gap: 4px;
    min-width: 188px;
}

.voucher-register-user-tag {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 18px;
    padding: 2px 6px;
    border: 1px solid #d9e4ee;
    background: linear-gradient(180deg, #f8fbfe 0%, #eef4f9 100%);
    color: #6a7e92;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.voucher-register-actions {
    justify-content: flex-start;
}

.voucher-register-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.voucher-register-actions .inline-form {
    display: inline-flex;
    margin: 0;
}

.voucher-register-actions .table-action-btn {
    min-width: 64px;
    min-height: 30px;
    padding: 0.32rem 0.65rem;
    font-size: 0.74rem;
    white-space: nowrap;
}

.voucher-expand-btn {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border: 1px solid #d3e2f1;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    color: #245f9a;
    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;
}

.voucher-expand-btn:hover {
    transform: translateY(-1px);
    border-color: #8db9e4;
    background: linear-gradient(180deg, #ffffff 0%, #dfeeff 100%);
    color: #000000;
}

.voucher-expand-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.voucher-expand-btn__icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.18s ease;
}

.voucher-expand-btn.is-open .voucher-expand-btn__icon svg {
    transform: rotate(180deg);
}

.voucher-expand-btn.is-open {
    color: #000000;
}

.voucher-register-detail-row td {
    border-top: 0;
    padding-top: 0;
}

.voucher-register-detail-row__cell {
    padding: 0 0 12px;
    background: transparent;
}

.voucher-register-detail-card {
    border: 1px solid #c8d8e8;
    background: linear-gradient(180deg, #f3f8fe 0%, #e7f0fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    margin: 0;
    padding: 0;
}

.voucher-register-detail-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #cfdeec;
    margin-bottom: 0;
}

.voucher-register-detail-card__title {
    display: grid;
    gap: 3px;
}

.voucher-register-detail-card__title strong {
    font-size: 0.9rem;
    color: #153651;
}

.voucher-register-detail-card__title span {
    color: #5f7790;
    font-size: 0.77rem;
}

.voucher-register-detail-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.voucher-register-detail-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    color: #395673;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccdae8;
}

.voucher-detail-table {
    margin: 0;
}

.voucher-detail-table thead th {
    padding: 10px 14px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5b7691;
    border-bottom: 1px solid #d3e0ed;
    background: rgba(255, 255, 255, 0.72);
}

.voucher-detail-table tbody td {
    padding: 10px 14px;
    border-top: 0;
    border-bottom: 1px solid #dbe6f1;
    background: transparent;
    font-size: 0.84rem;
}

.voucher-detail-table__account {
    font-weight: 700;
    color: #173a57;
}

.voucher-detail-table__detail,
.voucher-detail-table__narration {
    color: #55718c;
}

.btn.table-action-btn,
.table-action-btn {
    min-width: 64px;
    min-height: 30px;
    padding: 0.32rem 0.65rem;
    border-radius: 0;
    border: 1px solid #d6e1ec;
    background: #ffffff;
    color: #274766;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.table-action-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 0;
    border: 1px solid #d6e1ec;
    background: #f7fbff;
}

.table-action-btn__icon svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.table-action-btn:hover {
    transform: translateY(-1px);
}

.table-action-btn:hover .table-action-btn__icon {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.table-action-btn--pdf {
    color: #48647d;
    border-color: #d4e0ea;
}

.table-action-btn--pdf:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #7b8fa5 0%, #576d85 100%);
    border-color: #576d85;
    box-shadow: 0 12px 22px rgba(69, 88, 109, 0.24);
}

.table-action-btn--pdf:hover .table-action-btn__icon {
    border-color: rgba(255, 255, 255, 0.72);
    background: #ffffff;
    color: #4d657e;
}

.table-action-btn--pdf:hover .table-action-btn__icon svg {
    fill: #4d657e;
}

.table-action-btn--edit {
    color: #245f9a;
    border-color: #c7d9ea;
}

.table-action-btn--edit:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #3470ae 0%, #1d5588 100%);
    border-color: #1d5588;
    box-shadow: 0 12px 22px rgba(24, 72, 117, 0.28);
}

.table-action-btn--delete {
    color: #a23838;
    border-color: #e7caca;
}

.table-action-btn--delete:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #c45151 0%, #9b3636 100%);
    border-color: #9b3636;
    box-shadow: 0 12px 22px rgba(141, 45, 45, 0.24);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 9px 14px;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
}

.status-chip--enabled {
    color: #146948;
    background: #eaf9f1;
    border-color: #c8ecd9;
}

.status-chip--muted {
    color: #5a718a;
    background: #f3f7fb;
    border-color: #d8e4ef;
}

@keyframes voucherRegisterPageSwap {
    0% {
        opacity: 0.45;
        transform: translateY(8px) scale(0.995);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 767.98px) {
    .voucher-register-pagination {
        align-items: flex-start;
    }

    .voucher-register-pagination__controls {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .voucher-register-toolbar__actions {
        flex-wrap: wrap;
        margin-left: 0;
        justify-content: flex-start;
    }

    .voucher-register-filter-panel__grid {
        grid-template-columns: 1fr;
    }
}

.app-toast-region {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1300;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
}

.app-toast {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 255, 0.98) 100%);
    box-shadow: 0 20px 42px rgba(40, 108, 184, 0.18);
    animation: toastSlideIn 0.32s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.app-toast.is-leaving {
    animation: toastSlideOut 0.28s ease forwards;
}

.app-toast--success {
    border-color: #bfe6d3;
}

.app-toast--error {
    border-color: #f0c9c9;
}

.app-toast__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.app-toast--success .app-toast__icon {
    background: linear-gradient(180deg, #3dbb85 0%, #15905e 100%);
}

.app-toast--error .app-toast__icon {
    background: linear-gradient(180deg, #ef7373 0%, #d64545 100%);
}

.app-toast__body {
    display: grid;
    gap: 4px;
}

.app-toast__body strong {
    color: var(--text);
    font-size: 0.98rem;
}

.app-toast__body span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.app-toast__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(74, 160, 244, 0.92) 45%, rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: toastProgressFlow 2.6s linear;
}

.app-toast--success .app-toast__progress {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(36, 174, 112, 0.92) 45%, rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
}

.app-toast--error .app-toast__progress {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(228, 89, 89, 0.92) 45%, rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
}

.btn-loader {
    font-weight: 700;
}

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translate3d(24px, -12px, 0) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes toastSlideOut {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate3d(24px, -8px, 0) scale(0.98);
    }
}

@keyframes toastProgressFlow {
    0% {
        transform: translateX(-42%);
        opacity: 1;
    }

    100% {
        transform: translateX(42%);
        opacity: 0.42;
    }
}

.voucher-layout {
    display: grid;
    gap: 18px;
}

.header-grid {
    grid-template-columns: minmax(220px, 1.05fr) minmax(180px, 0.8fr) minmax(220px, 1fr);
    gap: 14px 16px;
    align-items: start;
}

.field-span-full {
    grid-column: 1 / -1;
}

.field-span-two {
    grid-column: span 2;
}

.voucher-type-field {
    display: grid;
    gap: 8px;
}

.voucher-type-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.voucher-type-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid #d9e5ef;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.voucher-type-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.voucher-type-card:hover,
.voucher-type-card.is-selected {
    transform: translateY(-1px);
    border-color: #c9d8e5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: 0 12px 20px rgba(35, 88, 145, 0.07);
}

.voucher-type-card__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid #ccdceb;
    background: #ffffff;
    color: transparent;
}

.voucher-type-card.is-selected .voucher-type-card__check {
    border-color: #2a6cad;
    background: linear-gradient(180deg, #2d76cf 0%, #1a5b9e 100%);
    color: #ffffff;
}

.voucher-type-card__check svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.voucher-type-card__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #4c647a;
    background: #eef3f7;
}

.voucher-type-card__body strong {
    font-size: 0.74rem;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.voucher-number-box {
    display: grid;
    gap: 6px;
}

.voucher-number-input[disabled] {
    border-color: #d7e3ef;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
    color: #153657;
    opacity: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.voucher-number-box__hint {
    font-size: 0.76rem;
    color: #698097;
    padding-left: 2px;
}

.voucher-ajax-feedback {
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid transparent;
    font-size: 0.84rem;
    font-weight: 600;
}

.voucher-ajax-feedback--error {
    border-color: #efd0d0;
    background: #fff6f6;
    color: #ad3535;
}

.voucher-builder {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1.2fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) auto;
    gap: 12px;
    align-items: end;
}

.voucher-builder input,
.voucher-search-input {
    min-height: 40px;
    height: 40px;
    line-height: 1.2;
}

.voucher-builder__hidden {
    display: none;
}

.voucher-search-shell {
    position: relative;
}

.voucher-search-input {
    padding-right: 56px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.voucher-search-input--locked {
    background: linear-gradient(180deg, #f3f8fe 0%, #edf4fb 100%);
    color: #2d577f;
    cursor: default;
}

.voucher-search-shell::after {
    content: "+";
    position: absolute;
    top: 13px;
    right: 16px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.55;
    pointer-events: none;
}

.voucher-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 25;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid #c9dced;
    background: #ffffff;
    box-shadow: 0 20px 34px rgba(35, 84, 136, 0.14);
}

.voucher-search-option {
    width: 100%;
    border: 1px solid #dbe8f4;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    text-align: left;
    color: inherit;
}

.voucher-search-option:hover,
.voucher-search-option.is-active {
    border-color: #9fc2e2;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.voucher-search-option__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 6px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voucher-search-option__type--chart {
    background: #e2f0ff;
    color: #1f5b92;
}

.voucher-search-option__type--subsidiary {
    background: #ddf7ea;
    color: #1b7553;
}

.voucher-search-option__body {
    display: grid;
    gap: 3px;
}

.voucher-search-option__body strong {
    font-size: 0.94rem;
    line-height: 1.15;
}

.voucher-search-option__body span,
.voucher-search-empty {
    color: var(--muted);
    font-size: 0.8rem;
}

.voucher-search-empty {
    padding: 12px 14px;
    border: 1px dashed #cfe0ef;
    background: #f8fbff;
}

.voucher-totals-strip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.voucher-total-pill {
    min-width: 174px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 10px;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(37, 84, 132, 0.12);
}

.voucher-total-pill--debit {
    background: linear-gradient(135deg, #216eb4 0%, #0f4a86 100%);
}

.voucher-total-pill--credit {
    background: linear-gradient(135deg, #c45b40 0%, #972d2d 100%);
}

.voucher-total-pill__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    font-weight: 700;
}

.voucher-total-pill__label {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
}

.voucher-total-pill strong {
    font-size: 1.22rem;
    line-height: 1;
    justify-self: end;
}

.soft-table--voucher .voucher-account-cell {
    display: grid;
    gap: 3px;
}

.soft-table--voucher .voucher-account-cell strong {
    font-size: 0.95rem;
    line-height: 1.15;
}

.soft-table--voucher .voucher-account-cell span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.15;
}

.voucher-builder__actions,
.voucher-actions__buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.voucher-action-btn {
    min-height: 38px;
    padding: 0.5rem 0.92rem;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(19, 46, 74, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.voucher-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(19, 46, 74, 0.12);
}

.voucher-action-btn--pdf {
    border-color: #d5e0eb;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
    color: #143a63;
}

.voucher-action-btn--pdf:hover {
    border-color: #aac1d9;
    color: #0f3155;
}

.voucher-action-btn--new {
    border-color: #d6e2c7;
    background: linear-gradient(180deg, #fbfff6 0%, #edf8dd 100%);
    color: #476729;
}

.voucher-action-btn--new:hover {
    border-color: #b5ce93;
    color: #39541f;
}

.voucher-action-btn--back {
    border-color: #d8e0e9;
    background: linear-gradient(180deg, #fafcff 0%, #eef3f8 100%);
    color: #5d7389;
}

.voucher-action-btn--back:hover {
    border-color: #bac8d6;
    color: #41586f;
}

.voucher-action-btn--submit {
    border-color: #238568;
    background: linear-gradient(180deg, #2aa57f 0%, #1c7b5f 100%);
    color: #ffffff;
}

.voucher-action-btn--submit:hover {
    border-color: #19654e;
    color: #ffffff;
}

.voucher-action-btn.is-disabled {
    opacity: 0.55;
    pointer-events: none;
    box-shadow: none;
}

.voucher-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.balance-indicator {
    padding: 10px 12px;
    border: 1px solid #e2d7bb;
    background: #fffaf0;
    color: #8a6a25;
    font-size: 0.82rem;
    font-weight: 700;
}

.balance-indicator.balanced {
    border-color: #cbe7d7;
    background: #f3fbf6;
    color: #1d6b41;
}

.voucher-existing-files {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.voucher-existing-files__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f1f8ff 100%);
    border: 1px solid var(--line);
}

.voucher-existing-files__meta {
    display: grid;
    gap: 3px;
}

.voucher-existing-files__meta strong {
    font-size: 0.84rem;
    font-weight: 700;
}

.voucher-existing-files__meta span,
.voucher-existing-files__actions a,
.voucher-existing-files__remove {
    color: var(--muted);
    font-size: 0.76rem;
}

.voucher-existing-files__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.voucher-existing-files__remove input {
    width: auto;
    margin-right: 6px;
}

.voucher-layout #remarksField {
    min-height: 40px;
    height: 46px;
    resize: none;
}

@media (max-width: 1100px) {
    .ledger-filter-grid,
    .balance-sheet-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .balance-sheet-columns {
        grid-template-columns: 1fr;
    }

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

    .business-settings-form__grid--triple,
    .business-settings-form__grid--quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-grid,
    .voucher-builder {
        grid-template-columns: 1fr;
    }

    .field-span-two {
        grid-column: span 1;
    }

    .voucher-totals-strip,
    .voucher-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

.ledger-empty-state {
    padding: 24px 26px;
}

.ledger-empty-state__body {
    display: grid;
    gap: 8px;
}

.ledger-empty-state__body h3,
.ledger-empty-state__body p {
    margin: 0;
}

.ledger-page-stack {
    display: grid;
    gap: 14px;
}

.trial-balance-page-stack {
    display: grid;
    gap: 14px;
}

.balance-sheet-page-stack {
    display: grid;
    gap: 14px;
    align-content: start;
}

.trial-balance-results-shell {
    position: relative;
}

.trial-balance-results-shell.is-loading {
    min-height: 240px;
}

.trial-balance-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 0.7rem;
    justify-items: center;
    padding: 24px;
    border-radius: 22px;
    background: rgba(247, 251, 255, 0.84);
    backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.trial-balance-results-shell.is-loading .trial-balance-loading-overlay {
    opacity: 1;
}

.trial-balance-loading-badge {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid rgba(199, 218, 236, 0.96);
    box-shadow: 0 20px 42px rgba(31, 84, 136, 0.14);
    animation: trialBalanceLogoSpin 1.15s linear infinite;
    transform-origin: center;
}

.trial-balance-loading-badge--image {
    padding: 12px;
}

.trial-balance-loading-badge__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trial-balance-loading-badge__fallback {
    color: #1f5f98;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.trial-balance-loading-copy {
    color: #17395d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    animation: trialBalanceLoadingPulse 1.15s ease-in-out infinite;
}

.ledger-filter-card {
    display: grid;
    gap: 10px;
    align-content: start;
    align-self: start;
    min-height: 0;
    height: auto;
    padding: 18px 20px;
}

.ledger-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
}

.ledger-filter-bar__label {
    margin: 0;
}

.ledger-validation-summary {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 0.6rem;
    color: #b04545;
    font-size: 0.82rem;
    font-weight: 600;
}

.ledger-validation-summary:empty {
    display: none;
}

.ledger-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;
}

.ledger-toolbar__button {
    min-height: 32px;
    padding: 0.42rem 0.78rem;
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1.1;
    box-shadow: none;
}

.ledger-toolbar .btn-outline-light,
.ledger-filter-actions .btn-outline-light {
    border-color: #d5e3f0;
    background: #f7fbff;
    color: #24527e;
}

.ledger-toolbar .btn-outline-light:hover,
.ledger-filter-actions .btn-outline-light:hover {
    border-color: #bfd4e8;
    background: #eef6ff;
    color: #173955;
    box-shadow: 0 12px 24px rgba(47, 134, 223, 0.12);
}

.ledger-filter-form {
    margin: 0;
}

.ledger-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(2, minmax(180px, 0.8fr)) auto;
    gap: 0.85rem;
    align-items: end;
}

.ledger-filter-grid > div {
    min-width: 0;
}

.ledger-filter-card label {
    margin-bottom: 0.35rem;
    color: #18324d;
}

.ledger-filter-card input {
    min-height: 40px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.ledger-filter-card .voucher-search-shell {
    position: relative;
    isolation: isolate;
}

.ledger-filter-card .voucher-search-shell::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 18px;
    width: 14px;
    height: 14px;
    border: 2px solid #7a8fa7;
    border-radius: 50%;
    transform: translateY(-62%);
    opacity: 0.75;
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ledger-filter-card .voucher-search-shell::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 30px;
    width: 8px;
    height: 2px;
    background: #7a8fa7;
    transform: translateY(4px) rotate(45deg);
    opacity: 0.75;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.ledger-filter-card .voucher-search-shell.is-focused::before,
.ledger-filter-card .voucher-search-shell.is-focused::after,
.ledger-filter-card .voucher-search-shell.is-open::before,
.ledger-filter-card .voucher-search-shell.is-open::after {
    opacity: 1;
}

.ledger-filter-card .voucher-search-shell.is-focused::before,
.ledger-filter-card .voucher-search-shell.is-open::before {
    border-color: #2f86df;
    transform: translateY(-62%) scale(1.04);
}

.ledger-filter-card .voucher-search-shell.is-focused::after,
.ledger-filter-card .voucher-search-shell.is-open::after {
    background: #2f86df;
    transform: translateY(4px) rotate(45deg) scaleX(1.05);
}

.ledger-filter-card .voucher-search-input {
    position: relative;
    z-index: 1;
    min-height: 46px;
    padding-left: 48px;
    padding-right: 18px;
    border: 1px solid #d7e3ee;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(36, 83, 138, 0.04);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.ledger-filter-card .voucher-search-shell.is-focused .voucher-search-input,
.ledger-filter-card .voucher-search-shell.is-open .voucher-search-input {
    border-color: #aac9e8;
    box-shadow: 0 14px 34px rgba(47, 134, 223, 0.12);
    transform: translateY(-1px);
}

.ledger-filter-card .voucher-search-shell.has-selection .voucher-search-input {
    border-color: #c9dcec;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.ledger-filter-actions {
    display: flex;
    gap: 0.6rem;
    align-items: end;
    align-self: end;
}

.ledger-filter-actions .btn {
    min-height: 40px;
    padding: 0.65rem 1rem;
    box-shadow: none;
}

.ledger-filter-actions__button {
    min-width: 0;
    white-space: nowrap;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ledger-filter-actions__button:hover {
    transform: translateY(-1px);
}

.ledger-filter-actions__button--primary {
    box-shadow: 0 12px 24px rgba(47, 134, 223, 0.18);
}

.ledger-filter-actions__button--secondary {
    background: #f7fbff;
    border-color: #d5e3f0;
    color: #24527e;
}

.ledger-filter-actions__button--secondary:hover {
    background: #eef6ff;
    border-color: #bfd4e8;
    color: #173955;
}

.trial-balance-filter-card {
    display: grid;
    gap: 12px;
    padding: 20px 22px;
}

.trial-balance-filter-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.trial-balance-filter-card__eyebrow {
    margin: 0;
}

.trial-balance-export-button {
    min-height: 34px;
    padding: 0.42rem 0.82rem;
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1.1;
    box-shadow: none;
}

.trial-balance-export-button:hover {
    box-shadow: 0 12px 24px rgba(47, 134, 223, 0.12);
}

.trial-balance-filter-card__art {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    min-width: 98px;
    height: 44px;
    padding: 8px 6px 6px;
    overflow: visible;
}

.trial-balance-filter-card__art::before {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, rgba(179, 211, 239, 0.18) 0%, rgba(129, 181, 227, 0.72) 48%, rgba(179, 211, 239, 0.18) 100%);
}

.trial-balance-filter-card__art::after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: 1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(122, 185, 238, 0.96) 58%, rgba(78, 147, 212, 0.95) 100%);
    box-shadow: 0 0 0 5px rgba(125, 185, 236, 0.12), 0 0 18px rgba(104, 171, 230, 0.35);
    animation: trialBalanceTravel 2.8s ease-in-out infinite;
}

.trial-balance-filter-card__art-line {
    position: relative;
    z-index: 1;
    width: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(158, 203, 241, 0.95) 0%, rgba(82, 153, 216, 0.92) 100%);
    box-shadow: 0 8px 18px rgba(89, 150, 210, 0.18);
    transform-origin: bottom center;
    animation: trialBalancePulse 2.2s cubic-bezier(0.42, 0, 0.22, 1) infinite;
}

.trial-balance-filter-card__art-line--short {
    height: 12px;
    animation-delay: 0s;
}

.trial-balance-filter-card__art-line--mini {
    height: 8px;
    animation-delay: 0.08s;
}

.trial-balance-filter-card__art-line--mid {
    height: 20px;
    animation-delay: 0.16s;
}

.trial-balance-filter-card__art-line--tall {
    height: 29px;
    animation-delay: 0.32s;
}

.trial-balance-filter-card__art-glow {
    position: absolute;
    inset: auto -8px -24px auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 179, 238, 0.2) 0%, rgba(112, 179, 238, 0.08) 34%, rgba(112, 179, 238, 0) 72%);
    animation: trialBalanceGlow 2.4s ease-in-out infinite;
}

.trial-balance-filter-card__header h2,
.trial-balance-report-card__header h3 {
    margin: 0;
    color: #18324d;
}

.trial-balance-filter-card__header p:last-child,
.trial-balance-report-card__header p:last-child {
    margin: 0;
    color: #60788f;
}

.trial-balance-filter-form {
    margin: 0;
}

.trial-balance-progress {
    position: relative;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(217, 230, 242, 0.78);
    overflow: hidden;
    opacity: 0;
    transform: scaleX(0.98);
    transform-origin: left center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.trial-balance-progress__bar {
    display: block;
    width: 36%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8ec0ef 0%, #3d8bd0 52%, #8ec0ef 100%);
    transform: translateX(-120%);
}

.trial-balance-filter-form.is-loading .trial-balance-progress {
    opacity: 1;
    transform: scaleX(1);
}

.trial-balance-filter-form.is-loading .trial-balance-progress__bar {
    animation: trialBalanceProgressSlide 1.1s ease-in-out infinite;
}

.trial-balance-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 220px)) auto;
    gap: 0.9rem;
    align-items: end;
}

.trial-balance-filter-actions {
    display: flex;
    gap: 0.6rem;
    align-items: end;
}

.trial-balance-filter-actions .btn {
    min-height: 40px;
    padding: 0.65rem 1rem;
    box-shadow: none;
}

.trial-balance-filter-form.is-loading .trial-balance-submit-button {
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.trial-balance-filter-form.is-loading .trial-balance-submit-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.26) 48%, rgba(255, 255, 255, 0) 100%);
    background-size: 180px 100%;
    animation: trialBalanceButtonShimmer 1.05s ease-in-out infinite;
}

.trial-balance-report-card {
    padding-top: 18px;
    padding-bottom: 18px;
}

.trial-balance-report-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.trial-balance-report-card__tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

.trial-balance-report-card__eyebrow {
    margin: 0 0 0.2rem;
    color: #5b7694;
}

.trial-balance-report-card__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.soft-table--trial-balance thead th {
    background: #f6f9fc;
    color: #6a7f94;
    font-size: 0.69rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    vertical-align: middle;
}

.soft-table--trial-balance thead tr:first-child th {
    padding-top: 0.8rem;
    padding-bottom: 0.5rem;
}

.soft-table--trial-balance thead tr:last-child th {
    padding-top: 0.45rem;
    padding-bottom: 0.7rem;
}

.soft-table--trial-balance tbody td,
.soft-table--trial-balance tfoot th,
.soft-table--trial-balance tfoot td {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    vertical-align: middle;
    font-size: 0.85rem;
}

.soft-table--trial-balance tbody td {
    color: #35506a;
}

.soft-table--trial-balance tbody tr:hover td {
    background: rgba(245, 249, 252, 0.92);
}

.soft-table--trial-balance tfoot tr > * {
    background: #f4f8fb;
    color: #18324d;
    font-weight: 700;
}

.trial-balance-account-cell {
    display: grid;
    gap: 0.12rem;
}

.trial-balance-account-cell strong {
    color: #18324d;
    font-size: 0.9rem;
}

.trial-balance-account-cell span {
    color: #688097;
    font-size: 0.76rem;
}

.trial-balance-amount {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.balance-sheet-filter-card {
    display: grid;
    gap: 14px;
    padding: 20px 22px;
}

.balance-sheet-filter-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.balance-sheet-filter-card__header h2 {
    margin: 0;
    color: #18324d;
}

.balance-sheet-filter-card__header p:last-child {
    margin: 0.28rem 0 0;
    color: #60788f;
    max-width: 54ch;
}

.balance-sheet-filter-card__eyebrow {
    margin: 0;
}

.balance-sheet-filter-card__art {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
    min-width: 118px;
    height: 58px;
    padding: 10px 8px 5px;
    justify-content: center;
    overflow: visible;
}

.balance-sheet-filter-card__art::before {
    content: "";
    position: absolute;
    inset: auto 8px 3px 8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(180, 206, 232, 0.16) 0%, rgba(98, 161, 222, 0.92) 50%, rgba(180, 206, 232, 0.16) 100%);
}

.balance-sheet-filter-card__art::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(112, 179, 238, 0.98) 56%, rgba(76, 142, 207, 0.98) 100%);
    box-shadow: 0 0 0 5px rgba(126, 184, 235, 0.14), 0 0 16px rgba(106, 171, 230, 0.34);
    animation: balanceSheetPulseDot 2.5s ease-in-out infinite;
}

.balance-sheet-filter-card__art-column {
    position: relative;
    z-index: 1;
    width: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(186, 220, 250, 0.94) 0%, rgba(76, 142, 207, 0.94) 100%);
    box-shadow: 0 12px 24px rgba(73, 137, 202, 0.2);
    transform-origin: bottom center;
    animation: balanceSheetFloat 2.6s cubic-bezier(0.42, 0, 0.24, 1) infinite;
}

.balance-sheet-filter-card__art-column--left {
    height: 20px;
    animation-delay: 0s;
}

.balance-sheet-filter-card__art-column--mid {
    height: 38px;
    animation-delay: 0.16s;
}

.balance-sheet-filter-card__art-column--right {
    height: 28px;
    animation-delay: 0.3s;
}

.balance-sheet-filter-card__art-ring {
    position: absolute;
    right: 0;
    top: 2px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(126, 184, 235, 0.54);
    box-shadow: 0 0 0 12px rgba(126, 184, 235, 0.09);
    animation: balanceSheetRingPulse 2.8s ease-in-out infinite;
}

.balance-sheet-filter-form {
    margin: 0;
}

.balance-sheet-filter-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem 0.9rem;
    align-items: end;
}

.balance-sheet-filter-field {
    min-width: 0;
    flex: 0 1 168px;
}

.balance-sheet-filter-field[hidden] {
    display: none !important;
}

.balance-sheet-filter-input {
    min-height: 44px;
}

.balance-sheet-filter-actions {
    display: flex;
    gap: 0.6rem;
    align-items: end;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 0;
    margin-left: auto;
    flex: 0 0 auto;
}

.balance-sheet-filter-actions__submit {
    min-width: 190px;
    white-space: nowrap;
}

.balance-sheet-filter-actions__export {
    min-width: 116px;
    white-space: nowrap;
}

.balance-sheet-filter-actions .btn {
    width: auto;
}

.balance-sheet-progress {
    position: relative;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(217, 230, 242, 0.78);
    overflow: hidden;
    opacity: 0;
    transform: scaleX(0.98);
    transform-origin: left center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.balance-sheet-progress__bar {
    display: block;
    width: 36%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8ec0ef 0%, #3d8bd0 52%, #8ec0ef 100%);
    transform: translateX(-120%);
}

.balance-sheet-filter-form.is-loading .balance-sheet-progress {
    opacity: 1;
    transform: scaleX(1);
}

.balance-sheet-filter-form.is-loading .balance-sheet-progress__bar {
    animation: balanceSheetProgressSlide 1.1s ease-in-out infinite;
}

.balance-sheet-filter-form.is-loading .balance-sheet-filter-actions__submit {
    opacity: 0.8;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.balance-sheet-filter-form.is-loading .balance-sheet-filter-actions__submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.26) 48%, rgba(255, 255, 255, 0) 100%);
    background-size: 180px 100%;
    animation: balanceSheetButtonShimmer 1.05s ease-in-out infinite;
}

.balance-sheet-results {
    display: grid;
    gap: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: relative;
}

.balance-sheet-results.is-loading {
    min-height: 260px;
}

.balance-sheet-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 0.7rem;
    justify-items: center;
    padding: 24px;
    border-radius: 22px;
    background: rgba(247, 251, 255, 0.84);
    backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.balance-sheet-results.is-loading .balance-sheet-loading-overlay {
    opacity: 1;
}

.balance-sheet-loading-badge {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid rgba(199, 218, 236, 0.96);
    box-shadow: 0 20px 42px rgba(31, 84, 136, 0.14);
    animation: balanceSheetLogoSpin 1.15s linear infinite;
    transform-origin: center;
}

.balance-sheet-loading-badge--image {
    padding: 12px;
}

.balance-sheet-loading-badge__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.balance-sheet-loading-badge__fallback {
    color: #1f5f98;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.balance-sheet-loading-copy {
    color: #17395d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    animation: balanceSheetLoadingPulse 1.15s ease-in-out infinite;
}

.balance-sheet-summary-card {
    padding: 18px 20px;
}

.balance-sheet-summary-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.balance-sheet-summary-card__header h3 {
    margin: 0;
}

.balance-sheet-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.42rem 0.88rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.balance-sheet-status--good {
    background: rgba(220, 244, 234, 0.96);
    color: #1f714f;
}

.balance-sheet-status--warn {
    background: rgba(255, 236, 228, 0.96);
    color: #a15739;
}

.balance-sheet-report-card {
    padding-top: 18px;
    padding-bottom: 18px;
}

.balance-sheet-report-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.balance-sheet-report-card__eyebrow {
    margin: 0 0 0.2rem;
}

.balance-sheet-report-card__header p:last-child {
    margin: 0;
    color: #60788f;
}

.balance-sheet-report-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.balance-sheet-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.82rem;
    border-radius: 999px;
    background: rgba(238, 245, 252, 0.96);
    color: #315572;
    font-size: 0.8rem;
    font-weight: 700;
}

.balance-sheet-chip--warn {
    background: rgba(255, 237, 229, 0.96);
    color: #a15739;
}

.balance-sheet-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.balance-sheet-columns--single {
    grid-template-columns: minmax(0, 1fr);
}

.balance-sheet-column {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(208, 223, 238, 0.96);
    border-radius: 18px;
    background: linear-gradient(180deg, #fcfeff 0%, #f7fbff 100%);
}

.balance-sheet-column--right {
    background: linear-gradient(180deg, #fffefd 0%, #fbf7f2 100%);
}

.balance-sheet-column__header {
    display: grid;
    gap: 0.15rem;
}

.balance-sheet-column__eyebrow {
    color: #66809a;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.balance-sheet-column__header h4 {
    margin: 0;
    color: #18324d;
}

.balance-sheet-group {
    border: 1px solid rgba(216, 228, 240, 0.92);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.balance-sheet-group--muted {
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.balance-sheet-group--earnings {
    border-color: rgba(199, 221, 240, 0.96);
    background: linear-gradient(180deg, #fafdff 0%, #f3f9ff 100%);
}

.balance-sheet-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(244, 248, 251, 0.86);
}

.balance-sheet-group__header > div {
    display: grid;
    gap: 0.15rem;
}

.balance-sheet-group__header strong {
    color: #18324d;
}

.balance-sheet-group__header span {
    color: #6d8398;
    font-size: 0.78rem;
}

.balance-sheet-group__amount {
    color: #173955;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.balance-sheet-group__amount--negative {
    color: #a15739;
}

.balance-sheet-lines {
    display: grid;
}

.balance-sheet-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-top: 1px solid rgba(227, 235, 243, 0.9);
}

.balance-sheet-lines .balance-sheet-line:first-child {
    border-top: 0;
}

.balance-sheet-line__label {
    display: grid;
    gap: 0.14rem;
}

.balance-sheet-line__label strong {
    color: #173955;
}

.balance-sheet-line__label span {
    color: #6f859a;
    font-size: 0.76rem;
}

.balance-sheet-line__amount {
    color: #173955;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.balance-sheet-line__amount--negative {
    color: #a15739;
}

.balance-sheet-column__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #eef6ff 0%, #e4f0fb 100%);
}

.balance-sheet-column__total--right {
    background: linear-gradient(180deg, #f9f2eb 0%, #f4e7da 100%);
}

.balance-sheet-column__total span {
    color: #4f6a85;
    font-size: 0.8rem;
    font-weight: 700;
}

.balance-sheet-column__total strong {
    color: #18324d;
    font-size: 1rem;
}

.income-statement-page-stack {
    display: grid;
    gap: 14px;
    align-content: start;
}

.income-statement-filter-card {
    display: grid;
    gap: 14px;
    padding: 20px 22px;
}

.income-statement-filter-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.income-statement-filter-card__eyebrow {
    margin: 0;
}

.income-statement-filter-card__art {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
    min-width: 120px;
    height: 58px;
    padding: 10px 8px 4px;
    justify-content: center;
    overflow: visible;
}

.income-statement-filter-card__art-bar {
    position: relative;
    z-index: 1;
    width: 12px;
    border-radius: 999px 999px 0 0;
    transform-origin: bottom center;
    box-shadow: 0 12px 24px rgba(85, 144, 205, 0.16);
    animation: incomeStatementBarPulse 2.5s cubic-bezier(0.42, 0, 0.24, 1) infinite;
}

.income-statement-filter-card__art-bar--one {
    height: 18px;
    background: linear-gradient(180deg, rgba(165, 231, 196, 0.95) 0%, rgba(58, 170, 110, 0.92) 100%);
    animation-delay: 0s;
}

.income-statement-filter-card__art-bar--two {
    height: 34px;
    background: linear-gradient(180deg, rgba(186, 221, 250, 0.95) 0%, rgba(76, 142, 207, 0.92) 100%);
    animation-delay: 0.18s;
}

.income-statement-filter-card__art-bar--three {
    height: 24px;
    background: linear-gradient(180deg, rgba(248, 209, 163, 0.95) 0%, rgba(220, 132, 65, 0.92) 100%);
    animation-delay: 0.34s;
}

.income-statement-filter-card__art-wave {
    position: absolute;
    inset: auto 6px -2px 6px;
    height: 20px;
    border-bottom: 3px solid rgba(90, 153, 214, 0.9);
    border-radius: 0 0 999px 999px;
}

.income-statement-filter-form {
    margin: 0;
}

.income-statement-filter-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem 0.9rem;
    align-items: end;
}

.income-statement-filter-field {
    min-width: 0;
    flex: 0 1 168px;
}

.income-statement-filter-field[hidden] {
    display: none !important;
}

.income-statement-filter-input {
    min-height: 44px;
}

.income-statement-filter-actions {
    display: flex;
    gap: 0.6rem;
    align-items: end;
    flex-wrap: wrap;
    flex: 0 0 auto;
    justify-content: flex-end;
    padding-top: 0;
    margin-left: auto;
}

.income-statement-filter-actions__submit {
    min-width: 190px;
    white-space: nowrap;
}

.income-statement-filter-actions__export {
    min-width: 116px;
    white-space: nowrap;
}

.income-statement-filter-actions .btn {
    width: auto;
}

.income-statement-progress {
    position: relative;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(217, 230, 242, 0.78);
    overflow: hidden;
    opacity: 0;
    transform: scaleX(0.98);
    transform-origin: left center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.income-statement-progress__bar {
    display: block;
    width: 36%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8ec0ef 0%, #3d8bd0 52%, #8ec0ef 100%);
    transform: translateX(-120%);
}

.income-statement-filter-form.is-loading .income-statement-progress {
    opacity: 1;
    transform: scaleX(1);
}

.income-statement-filter-form.is-loading .income-statement-progress__bar {
    animation: incomeStatementProgressSlide 1.1s ease-in-out infinite;
}

.income-statement-filter-form.is-loading .income-statement-filter-actions__submit {
    opacity: 0.8;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.income-statement-filter-form.is-loading .income-statement-filter-actions__submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.26) 48%, rgba(255, 255, 255, 0) 100%);
    background-size: 180px 100%;
    animation: incomeStatementButtonShimmer 1.05s ease-in-out infinite;
}

.income-statement-results {
    display: grid;
    gap: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: relative;
}

.income-statement-results.is-loading {
    min-height: 260px;
}

.income-statement-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 0.7rem;
    justify-items: center;
    padding: 24px;
    border-radius: 22px;
    background: rgba(247, 251, 255, 0.84);
    backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.income-statement-results.is-loading .income-statement-loading-overlay {
    opacity: 1;
}

.income-statement-loading-badge {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid rgba(199, 218, 236, 0.96);
    box-shadow: 0 20px 42px rgba(31, 84, 136, 0.14);
    animation: incomeStatementLogoSpin 1.15s linear infinite;
    transform-origin: center;
}

.income-statement-loading-badge--image {
    padding: 12px;
}

.income-statement-loading-badge__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.income-statement-loading-badge__fallback {
    color: #1f5f98;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.income-statement-loading-copy {
    color: #17395d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    animation: incomeStatementLoadingPulse 1.15s ease-in-out infinite;
}

.income-statement-warning-card {
    display: grid;
    gap: 10px;
    border: 1px solid #efcf90;
    background: linear-gradient(180deg, #fffaf0 0%, #fff5e6 100%);
}

.income-statement-warning-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #8b5319;
}

.income-statement-warning-card__header span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.income-statement-warning-card__body {
    display: grid;
    gap: 0.45rem;
}

.income-statement-warning-card__body p {
    margin: 0;
    color: #7a5528;
    font-size: 0.9rem;
    line-height: 1.45;
}

.income-statement-report-card {
    display: grid;
    gap: 14px;
}

.income-statement-report-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.income-statement-report-card__eyebrow {
    margin: 0 0 0.2rem;
    color: #5b7694;
}

.income-statement-report-card__header p:last-child {
    margin: 0;
    color: #60788f;
}

.income-statement-report-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.income-statement-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4c6987;
    border: 1px solid #d7e4f0;
    background: #f8fbff;
}

.income-statement-chip--good {
    color: #1e7753;
    border-color: #c3e2d2;
    background: #edf8f1;
}

.income-statement-chip--warn {
    color: #9c5d1a;
    border-color: #efcf90;
    background: #fff7e8;
}

.income-statement-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.income-statement-columns--single {
    grid-template-columns: minmax(0, 1fr);
}

.income-statement-column {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #deebf6;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.96) 100%);
}

.income-statement-column--expense {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 244, 0.95) 100%);
}

.income-statement-column__header {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.income-statement-column__eyebrow {
    color: #64809d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.income-statement-column__header h4 {
    margin: 0;
    color: #18324d;
}

.income-statement-group {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e2edf7;
    background: rgba(255, 255, 255, 0.94);
}

.income-statement-group--muted {
    background: rgba(249, 252, 255, 0.9);
}

.income-statement-group--net {
    border-color: #d9e4fb;
    background: linear-gradient(180deg, rgba(249, 251, 255, 0.98) 0%, rgba(243, 247, 255, 0.95) 100%);
}

.income-statement-group__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.income-statement-group__header > div {
    display: grid;
    gap: 0.18rem;
}

.income-statement-group__header strong {
    color: #18324d;
}

.income-statement-group__header span {
    color: #668199;
    font-size: 0.74rem;
}

.income-statement-group__amount {
    color: #18324d;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.income-statement-group__amount--good {
    color: #1e7753;
}

.income-statement-group__amount--negative {
    color: #a34c5d;
}

.income-statement-lines {
    display: grid;
}

.income-statement-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(221, 233, 244, 0.84);
}

.income-statement-lines .income-statement-line:first-child {
    border-top: 0;
    padding-top: 0;
}

.income-statement-line__label {
    display: grid;
    gap: 0.12rem;
}

.income-statement-line__label strong {
    color: #23415e;
    font-size: 0.88rem;
}

.income-statement-line__label span {
    color: #688097;
    font-size: 0.74rem;
}

.income-statement-line__amount {
    color: #18324d;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.income-statement-line__amount--negative {
    color: #a24d5e;
}

.income-statement-column__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 0.9rem;
    border-top: 2px solid #dce8f3;
}

.income-statement-column__total span {
    color: #5f7993;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.income-statement-column__total strong {
    color: #18324d;
    font-size: 1rem;
    font-weight: 900;
}

@keyframes trialBalancePulse {
    0%,
    100% {
        transform: translateY(0) scaleY(0.82);
        opacity: 0.72;
    }

    50% {
        transform: translateY(-2px) scaleY(1.24);
        opacity: 1;
    }
}

@keyframes trialBalanceGlow {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.62;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes trialBalanceTravel {
    0%,
    100% {
        transform: translateX(0) translateY(0) scale(0.92);
        opacity: 0.72;
    }

    45% {
        transform: translateX(34px) translateY(-7px) scale(1.08);
        opacity: 1;
    }

    75% {
        transform: translateX(58px) translateY(-2px) scale(0.96);
        opacity: 0.88;
    }
}

@keyframes trialBalanceProgressSlide {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(320%);
    }
}

@keyframes trialBalanceButtonShimmer {
    0% {
        background-position: -180px 0;
    }

    100% {
        background-position: 180px 0;
    }
}

@keyframes trialBalanceLoadingPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.92;
    }

    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}

@keyframes trialBalanceLogoSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes balanceSheetFloat {
    0%,
    100% {
        transform: translateY(0) scaleY(0.9);
        opacity: 0.78;
    }

    50% {
        transform: translateY(-3px) scaleY(1.08);
        opacity: 1;
    }
}

@keyframes balanceSheetPulseDot {
    0%,
    100% {
        transform: translateX(0) scale(0.92);
        opacity: 0.74;
    }

    50% {
        transform: translateX(44px) scale(1.06);
        opacity: 1;
    }
}

@keyframes balanceSheetRingPulse {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.68;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes balanceSheetProgressSlide {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(320%);
    }
}

@keyframes balanceSheetButtonShimmer {
    0% {
        background-position: -180px 0;
    }

    100% {
        background-position: 180px 0;
    }
}

@keyframes balanceSheetLoadingPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.92;
    }

    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}

@keyframes balanceSheetLogoSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes incomeStatementBarPulse {
    0%,
    100% {
        transform: translateY(0) scaleY(0.88);
        opacity: 0.78;
    }

    50% {
        transform: translateY(-3px) scaleY(1.08);
        opacity: 1;
    }
}

@keyframes incomeStatementProgressSlide {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(320%);
    }
}

@keyframes incomeStatementButtonShimmer {
    0% {
        background-position: -180px 0;
    }

    100% {
        background-position: 180px 0;
    }
}

@keyframes incomeStatementLoadingPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.92;
    }

    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}

@keyframes incomeStatementLogoSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ledger-empty-state {
    margin-top: 0;
}

.ledger-empty-state__body {
    gap: 0.9rem;
    justify-items: start;
}

.ledger-empty-state__body h3 {
    font-size: 1.65rem;
    color: #18324d;
}

.ledger-empty-state__body p {
    max-width: 760px;
    color: #5f7287;
}

.voucher-search-results__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.15rem 0.1rem 0.35rem;
    color: #667e97;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ledger-table-card {
    padding-top: 18px;
    padding-bottom: 18px;
}

.ledger-table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.ledger-table-header__title {
    display: grid;
    gap: 0.18rem;
}

.ledger-table-header__eyebrow {
    margin: 0 0 0.2rem;
    color: #5b7694;
}

.ledger-table-header h3 {
    margin: 0;
    font-size: 1.22rem;
    color: #18324d;
}

.ledger-table-header__subtitle {
    margin: 0;
    color: #60788f;
    font-size: 0.88rem;
}

.ledger-table-header__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.ledger-meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.78rem;
    border: 1px solid #d8e4ef;
    background: #f7fbff;
    color: #335675;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.soft-table--ledger thead th {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #73859a;
    background: #f6f9fc;
}

.soft-table--ledger tbody td,
.soft-table--ledger tfoot th,
.soft-table--ledger tfoot td {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    vertical-align: middle;
}

.soft-table--ledger tbody td {
    color: #36506b;
    font-size: 0.86rem;
}

.soft-table--ledger tbody tr:hover td {
    background: rgba(245, 249, 252, 0.92);
}

.soft-table--ledger tfoot tr > * {
    background: #f4f8fb;
    color: #18324d;
    font-weight: 700;
}

.ledger-opening-row td {
    background: rgba(237, 245, 251, 0.78);
    font-weight: 600;
}

.ledger-entry-copy {
    display: grid;
    gap: 0.12rem;
}

.ledger-entry-copy--inline {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    flex-wrap: wrap;
}

.ledger-entry-copy strong {
    color: #18324d;
    font-size: 0.9rem;
    line-height: 1.2;
}

.ledger-entry-copy span {
    color: #6b7f93;
    font-size: 0.78rem;
    line-height: 1.25;
}

.ledger-amount {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
}

.soft-table--ledger .voucher-register-code {
    gap: 6px;
}

.soft-table--ledger .ledger-col-voucher {
    width: 119px;
    max-width: 120px;
    white-space: nowrap;
}

.soft-table--ledger .voucher-register-code__body strong {
    display: block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
}

.ledger-amount--debit {
    color: #1c6b4d;
}

.ledger-amount--credit {
    color: #9a4545;
}

.ledger-amount--balance {
    color: #173955;
}

.ledger-filter-card .voucher-search-results {
    top: calc(100% + 10px);
    padding: 10px;
    border: 1px solid rgba(188, 210, 230, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 60px rgba(29, 79, 130, 0.16);
    backdrop-filter: blur(16px);
    animation: ledgerSearchPanelIn 0.18s ease;
}

.ledger-filter-card .voucher-search-option {
    border: 1px solid transparent;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 13px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(140px, auto);
    gap: 12px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.ledger-filter-card .voucher-search-option:hover {
    transform: translateY(-1px);
    border-color: #d6e7f7;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 10px 22px rgba(47, 134, 223, 0.08);
}

.ledger-filter-card .voucher-search-option.is-active {
    border-color: #bad7f1;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    box-shadow: 0 12px 24px rgba(47, 134, 223, 0.10);
}

.ledger-filter-card .voucher-search-option__type {
    min-width: 92px;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
}

.ledger-filter-card .voucher-search-option__body {
    gap: 4px;
    min-width: 0;
}

.ledger-filter-card .voucher-search-option__body strong {
    font-size: 0.93rem;
    color: #18324d;
}

.ledger-filter-card .voucher-search-option__body strong em {
    font-style: normal;
    color: #59758f;
}

.ledger-filter-card .voucher-search-option__body span {
    color: #6a8198;
    font-size: 0.79rem;
}

.ledger-filter-card .voucher-search-option__meta {
    display: grid;
    gap: 0.2rem;
    align-content: center;
    justify-items: end;
    min-width: 0;
    text-align: right;
}

.ledger-filter-card .voucher-search-option__meta-label {
    color: #6f859b;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ledger-filter-card .voucher-search-option__meta-value {
    color: #254869;
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1.25;
}

.ledger-filter-card .voucher-search-option mark {
    padding: 0 0.08rem;
    background: linear-gradient(180deg, rgba(255, 235, 153, 0) 10%, rgba(255, 235, 153, 0.9) 92%);
    color: inherit;
}

.ledger-filter-card .voucher-search-empty {
    display: grid;
    gap: 0.25rem;
    padding: 14px 16px;
    border: 1px dashed #d4e4f2;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5faff 100%);
    color: #69819a;
}

.ledger-filter-card .voucher-search-empty strong {
    color: #18324d;
    font-size: 0.9rem;
}

.ledger-filter-card .voucher-search-empty span {
    font-size: 0.8rem;
}

@keyframes ledgerSearchPanelIn {
    0% {
        opacity: 0;
        transform: translateY(-4px) scale(0.985);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.business-settings-grid {
    align-items: start;
}

.business-settings-card,
.business-settings-preview {
    display: grid;
    gap: 18px;
}

.business-settings-card__heading,
.business-settings-preview__heading {
    align-items: center;
}

.business-settings-card__icon {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: 7px;
    min-width: 86px;
    justify-content: flex-end;
}

.business-settings-card__icon span {
    width: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(171, 216, 248, 0.96) 0%, rgba(55, 137, 213, 0.92) 100%);
    animation: businessSettingsBars 1.8s ease-in-out infinite;
}

.business-settings-card__icon span:nth-child(1) {
    height: 16px;
    animation-delay: 0s;
}

.business-settings-card__icon span:nth-child(2) {
    height: 28px;
    animation-delay: 0.16s;
}

.business-settings-card__icon span:nth-child(3) {
    height: 22px;
    animation-delay: 0.32s;
}

.business-settings-card__icon i {
    position: absolute;
    right: -4px;
    top: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(95, 165, 231, 0.54);
    box-shadow: 0 0 0 8px rgba(95, 165, 231, 0.08);
    animation: businessSettingsRing 2.6s ease-in-out infinite;
}

.business-settings-form {
    gap: 14px;
}

.business-settings-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.business-settings-form__grid--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.business-settings-form__grid--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.business-settings-preview__panel {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid #d8e6f4;
    background:
        radial-gradient(circle at top right, rgba(165, 208, 248, 0.22), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.business-settings-preview__panel::after {
    content: "";
    position: absolute;
    inset: auto -32px -32px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 172, 224, 0.14) 0%, rgba(120, 172, 224, 0) 74%);
}

.business-settings-preview__badge {
    width: fit-content;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1e5b97;
    background: #eaf3fe;
    border: 1px solid #d4e5f8;
}

.business-settings-preview__panel h3 {
    margin: 0;
    color: #17324d;
    font-size: 1.3rem;
}

.business-settings-preview__tagline {
    margin: -4px 0 0;
    color: #5d7892;
    font-size: 0.9rem;
}

.business-settings-preview__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.business-settings-preview__details > div,
.business-settings-preview__address,
.business-settings-preview__notes {
    display: grid;
    gap: 3px;
}

.business-settings-preview__details span,
.business-settings-preview__address span,
.business-settings-preview__notes span,
.business-settings-preview__meta {
    color: #6a8399;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.business-settings-preview__details strong,
.business-settings-preview__address strong {
    color: #1f3e5c;
    font-size: 0.9rem;
    font-weight: 700;
}

.business-settings-preview__notes p {
    margin: 0;
    color: #48637d;
    font-size: 0.86rem;
    line-height: 1.45;
}

.business-settings-preview__meta {
    margin-top: 2px;
}

.manage-user-actions {
    display: flex;
    justify-content: flex-end;
}

@keyframes businessSettingsBars {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.78;
    }

    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@keyframes businessSettingsRing {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.56;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.voucher-filter-page-stack {
    display: grid;
    gap: 14px;
}

.voucher-filter-results-shell {
    display: grid;
    gap: 14px;
    position: relative;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.voucher-filter-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 20px 22px;
}

.voucher-filter-card__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 46px;
    margin-bottom: 10px;
    padding-right: 152px;
}

.voucher-filter-card__header-tools {
    position: absolute;
    top: 16px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.voucher-filter-card__eyebrow {
    margin: 0;
}

.voucher-filter-card__art {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    min-width: 112px;
    height: 54px;
    padding: 8px 6px 4px;
}

.voucher-filter-card__art-line {
    width: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(198, 225, 248, 0.96) 0%, rgba(72, 144, 211, 0.96) 100%);
    box-shadow: 0 10px 18px rgba(78, 144, 205, 0.18);
    animation: voucherFilterFloat 2.5s ease-in-out infinite;
}

.voucher-filter-card__art-line--one {
    height: 20px;
    animation-delay: 0s;
}

.voucher-filter-card__art-line--two {
    height: 34px;
    animation-delay: 0.18s;
}

.voucher-filter-card__art-line--three {
    height: 24px;
    animation-delay: 0.32s;
}

.voucher-filter-card__art-dot {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(120, 187, 241, 0.96) 58%, rgba(77, 148, 214, 0.96) 100%);
    box-shadow: 0 0 0 8px rgba(121, 186, 240, 0.12);
    animation: voucherFilterPulse 2.6s ease-in-out infinite;
}

.voucher-filter-form {
    display: grid;
    padding-top: 2px;
}

.voucher-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 0.9rem;
    align-items: end;
}

.voucher-filter-field {
    min-width: 0;
    flex: 0 1 160px;
}

.voucher-filter-field[hidden] {
    display: none !important;
}

.voucher-filter-field--search {
    flex-basis: 320px;
}

.voucher-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: end;
    justify-content: flex-end;
    margin-left: auto;
}

.voucher-filter-submit-btn {
    min-height: 38px;
    border-color: #2b6ea8;
    background: linear-gradient(180deg, #3f8bcb 0%, #2f6da9 100%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(63, 139, 203, 0.18);
}

.voucher-filter-submit-btn:hover {
    color: #fff;
    border-color: #245985;
    background: linear-gradient(180deg, #3a83c0 0%, #295f92 100%);
}

.voucher-filter-clear-btn {
    min-height: 38px;
}

.voucher-filter-summary-card {
    padding: 18px 20px;
}

.voucher-filter-summary-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.voucher-filter-summary-card__header h3,
.voucher-filter-summary-card__header p {
    margin: 0;
}

.voucher-filter-summary-card__eyebrow {
    margin-bottom: 0.2rem;
}

.voucher-filter-summary-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.voucher-filter-summary-card__tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.voucher-filter-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d5e2ef;
    background: linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
    color: #1c537f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 10px 18px rgba(37, 84, 132, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.voucher-filter-icon-btn:hover {
    transform: translateY(-1px);
    border-color: #aac5df;
    background: linear-gradient(180deg, #ffffff 0%, #e7f1fb 100%);
    color: #133d61;
    box-shadow: 0 14px 24px rgba(37, 84, 132, 0.12);
}

.voucher-filter-icon-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.voucher-filter-results-shell.is-loading {
    opacity: 0.72;
    transform: translateY(2px);
}

.voucher-filter-results-shell.is-loading::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(136, 191, 240, 0) 0%, rgba(55, 133, 206, 0.96) 28%, rgba(116, 180, 238, 0.98) 52%, rgba(55, 133, 206, 0.96) 72%, rgba(136, 191, 240, 0) 100%);
    background-size: 220px 100%;
    animation: voucherFilterLoadingBar 1.1s linear infinite;
}

.voucher-filter-results-shell.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.42) 46%, rgba(255, 255, 255, 0) 100%);
    background-size: 220px 100%;
    pointer-events: none;
    animation: voucherFilterLoadingShimmer 1.25s ease-in-out infinite;
}

.voucher-filter-form.is-loading .voucher-filter-submit-btn {
    position: relative;
    overflow: hidden;
}

.voucher-filter-form.is-loading .voucher-filter-submit-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.26) 48%, rgba(255, 255, 255, 0) 100%);
    background-size: 180px 100%;
    animation: voucherFilterLoadingShimmer 1.05s ease-in-out infinite;
}

.voucher-filter-table-card {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
}

.voucher-filter-table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.voucher-filter-table-card__header h3,
.voucher-filter-table-card__header p {
    margin: 0;
}

.voucher-filter-table-card__eyebrow {
    margin-bottom: 0.18rem;
}

.voucher-filter-table-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: #627c95;
    font-size: 0.88rem;
}

.voucher-filter-table-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(209, 225, 239, 0.92);
}

.voucher-filter-table thead th {
    font-size: 0.8rem;
    white-space: nowrap;
}

.voucher-filter-table td {
    font-size: 0.88rem;
    vertical-align: middle;
}

.voucher-filter-cell-copy {
    display: grid;
    gap: 2px;
}

.voucher-filter-cell-copy strong {
    color: #17395d;
}

.voucher-filter-cell-copy span {
    color: #64809a;
    font-size: 0.8rem;
}

.voucher-filter-table__amount {
    color: #0f4d8d;
    font-weight: 700;
}

.voucher-filter-amount-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.82rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(31, 116, 201, 0.12) 0%, rgba(79, 155, 231, 0.18) 100%);
    color: #0f4d8d;
    font-weight: 700;
}

.voucher-filter-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: rgba(238, 245, 252, 0.96);
    color: #5f7892;
    font-size: 0.84rem;
}

@keyframes voucherFilterFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes voucherFilterPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.92;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes voucherFilterLoadingBar {
    from {
        background-position: -220px 0;
    }
    to {
        background-position: 220px 0;
    }
}

@keyframes voucherFilterLoadingShimmer {
    from {
        background-position: -220px 0;
    }
    to {
        background-position: 220px 0;
    }
}

@media (max-width: 1100px) {
    .voucher-filter-card__header,
    .voucher-filter-summary-card__header,
    .voucher-filter-table-card__header {
        align-items: flex-start;
        flex-direction: column;
        padding-right: 0;
    }

    .voucher-filter-card__header-tools {
        position: static;
    }

    .voucher-filter-summary-card__tools {
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .ledger-filter-card,
    .trial-balance-filter-card,
    .balance-sheet-filter-card {
        padding: 16px;
    }

    .ledger-filter-bar,
    .trial-balance-filter-card__header,
    .balance-sheet-summary-card__header,
    .balance-sheet-report-card__header,
    .balance-sheet-filter-card__header,
    .income-statement-report-card__header,
    .income-statement-filter-card__header,
    .ledger-table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ledger-table-header__stats {
        justify-content: flex-start;
    }

    .ledger-filter-card .voucher-search-option {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ledger-filter-card .voucher-search-option__meta {
        grid-column: 2;
        justify-items: start;
        text-align: left;
        padding-top: 0.1rem;
    }

    .ledger-filter-grid,
    .trial-balance-filter-grid,
    .balance-sheet-filter-grid {
        grid-template-columns: 1fr;
    }

    .ledger-filter-actions,
    .ledger-toolbar,
    .trial-balance-filter-actions,
    .trial-balance-report-card__tools,
    .trial-balance-report-card__stats,
    .balance-sheet-filter-actions,
    .balance-sheet-report-card__meta {
        justify-content: flex-start;
    }

    .income-statement-filter-actions,
    .income-statement-report-card__meta {
        justify-content: flex-start;
    }

    .balance-sheet-group__header,
    .balance-sheet-line,
    .balance-sheet-column__total {
        flex-direction: column;
        align-items: flex-start;
    }

    .balance-sheet-line__amount,
    .balance-sheet-group__amount {
        text-align: left;
    }

    .income-statement-group__header,
    .income-statement-line,
    .income-statement-column__total {
        flex-direction: column;
        align-items: flex-start;
    }

    .income-statement-line__amount,
    .income-statement-group__amount {
        text-align: left;
    }

    .business-settings-form__grid,
    .business-settings-form__grid--triple,
    .business-settings-form__grid--quad,
    .business-settings-preview__details {
        grid-template-columns: 1fr;
    }
}
