.ndja-bc,
.ndja-bi {
    --ndja-navy: #003a5d;
    --ndja-navy-2: #052f49;
    --ndja-green: #007254;
    --ndja-mint: #65bc99;
    --ndja-orange: #ff8300;
    --ndja-blue: #0077b3;
    --ndja-red: #d03f15;
    --ndja-soft: #f3f7f9;
    --ndja-border: #d8e3e8;
    --ndja-text: #2d3748;
    --ndja-muted: #647681;
    --ndja-shadow: 0 12px 32px rgba(0, 58, 93, .09);
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto 64px;
    color: var(--ndja-text);
    font-family: Sarabun, system-ui, sans-serif;
}

.ndja-bc *,
.ndja-bc *::before,
.ndja-bc *::after,
.ndja-bi *,
.ndja-bi *::before,
.ndja-bi *::after {
    box-sizing: border-box;
}

.ndja-bc__stripe,
.ndja-bi__stripe,
.ndja-pdf__stripe {
    height: 9px;
    background: linear-gradient(90deg, #65bc99 0 20%, #ff8300 20% 40%, #0077b3 40% 60%, #d03f15 60% 80%, #007254 80% 100%);
}

.ndja-bc__hero,
.ndja-bi__hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 0 0 24px 24px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(101, 188, 153, .2), transparent 26%),
        linear-gradient(135deg, var(--ndja-navy), var(--ndja-navy-2));
    text-align: center;
}

.ndja-bc__hero .ndja-bc__stripe,
.ndja-bi__hero .ndja-bi__stripe {
    position: absolute;
    inset: 0 0 auto;
}

.ndja-bc__hero {
    padding: 52px clamp(20px, 5vw, 64px) 48px;
}

.ndja-bi__hero {
    padding: 58px clamp(20px, 5vw, 64px) 54px;
}

.ndja-bc__hero h1,
.ndja-bi__hero h1 {
    margin: 4px 0 9px;
    color: #fff;
    font-family: Raleway, Sarabun, sans-serif;
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.06;
}

.ndja-bc__hero p,
.ndja-bi__hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #fff;
    font-size: 1.06rem;
}

.ndja-bc__hero .ndja-bc__eyebrow,
.ndja-bi__hero .ndja-bi__eyebrow {
    margin-bottom: 7px;
    color: var(--ndja-mint);
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ndja-bc__back {
    position: absolute;
    top: 25px;
    left: 24px;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.ndja-bc__back:hover {
    color: var(--ndja-mint);
}

.ndja-bc__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid var(--ndja-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(0, 58, 93, .05);
}

.ndja-bc__save-state {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ndja-muted);
    font-size: .9rem;
    font-weight: 700;
}

.ndja-bc__save-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #93a5ad;
}

.ndja-bc__save-state.is-dirty .ndja-bc__save-dot { background: var(--ndja-orange); }
.ndja-bc__save-state.is-saving .ndja-bc__save-dot { background: var(--ndja-blue); animation: ndja-pulse 1s infinite; }
.ndja-bc__save-state.is-saved .ndja-bc__save-dot { background: var(--ndja-green); }
.ndja-bc__save-state.is-error { color: #8c2d16; }
.ndja-bc__save-state.is-error .ndja-bc__save-dot { background: var(--ndja-red); }

@keyframes ndja-pulse {
    50% { opacity: .35; transform: scale(.8); }
}

.ndja-bc__privacy,
.ndja-bi__privacy {
    margin: 0 0 26px;
    padding: 17px 20px;
    border: 1px solid #f0d8ae;
    border-left: 5px solid var(--ndja-orange);
    border-radius: 13px;
    background: #fff9ef;
}

.ndja-bc__privacy p,
.ndja-bi__privacy p {
    margin: 4px 0 0;
    color: #5b5245;
}

.ndja-bc__progress {
    margin: 28px 0 22px;
}

.ndja-bc__progress ol {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ndja-bc__progress li {
    position: relative;
}

.ndja-bc__progress li::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 20px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: #d7e2e7;
}

.ndja-bc__progress li:first-child::before {
    display: none;
}

.ndja-bc__progress button {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    justify-items: center;
    gap: 7px;
    margin: 0;
    padding: 0 5px;
    border: 0;
    color: #71838c;
    background: transparent;
    font: inherit;
    font-size: .78rem;
    cursor: pointer;
}

.ndja-bc__progress button span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 3px solid #d7e2e7;
    border-radius: 50%;
    background: #fff;
    font-weight: 800;
}

.ndja-bc__progress button em {
    font-style: normal;
    font-weight: 700;
}

.ndja-bc__progress li.is-active button,
.ndja-bc__progress li.is-done button {
    color: var(--ndja-navy);
}

.ndja-bc__progress li.is-active button span {
    border-color: var(--ndja-blue);
    box-shadow: 0 0 0 5px rgba(0, 119, 179, .13);
}

.ndja-bc__progress li.is-done button span {
    border-color: var(--ndja-green);
    color: #fff;
    background: var(--ndja-green);
}

.ndja-bc__progress li.is-done::before,
.ndja-bc__progress li.is-active::before {
    background: var(--ndja-mint);
}

.ndja-bc__progress-mobile {
    display: none;
}

.ndja-bc__step {
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid var(--ndja-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--ndja-shadow);
}

.ndja-bc__step[hidden] {
    display: none !important;
}

.ndja-bc__step-head {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ndja-border);
}

.ndja-bc__step-head p {
    margin: 0 0 4px;
    color: var(--ndja-blue);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ndja-bc__step-head h2 {
    margin: 0 0 5px;
    color: var(--ndja-navy);
    font-family: Raleway, Sarabun, sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.ndja-bc__step-head span {
    color: var(--ndja-muted);
}

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

.ndja-bc__field,
.ndja-bc__custom-line label,
.ndja-bc__custom-revenue label {
    display: grid;
    align-content: start;
    gap: 7px;
    margin: 0;
}

.ndja-bc__field--wide {
    grid-column: 1 / -1;
}

.ndja-bc__field > span,
.ndja-bc__custom-line label > span,
.ndja-bc__custom-revenue label > span {
    color: var(--ndja-navy);
    font-size: .92rem;
    font-weight: 700;
}

.ndja-bc small {
    color: var(--ndja-muted);
}

.ndja-bc input[type="text"],
.ndja-bc input[type="number"],
.ndja-bc input[type="date"],
.ndja-bc select,
.ndja-bc textarea {
    width: 100%;
    min-height: 45px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #b9c9d0;
    border-radius: 9px;
    color: var(--ndja-text);
    background: #fff;
    font: inherit;
}

.ndja-bc input:disabled {
    color: #56656c;
    background: #eef3f5;
}

.ndja-bc input:read-only:not(:disabled) {
    color: var(--ndja-navy);
    background: #eef7f3;
    font-weight: 700;
}

.ndja-bc textarea {
    resize: vertical;
}

.ndja-bc input:focus,
.ndja-bc select:focus,
.ndja-bc textarea:focus,
.ndja-bc button:focus-visible,
.ndja-bi a:focus-visible {
    outline: 3px solid rgba(0, 119, 179, .25);
    outline-offset: 2px;
    border-color: var(--ndja-blue);
}

.ndja-bc__text-button {
    justify-self: start;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ndja-blue);
    background: transparent;
    font: inherit;
    font-size: .83rem;
    font-weight: 700;
    cursor: pointer;
}

.ndja-bc__text-button:disabled {
    color: #9aa8ae;
    cursor: default;
}

.ndja-bc__tip {
    margin-top: 22px;
    padding: 16px 19px;
    border-left: 5px solid var(--ndja-mint);
    border-radius: 12px;
    background: #eef8f4;
}

.ndja-bc__tip p {
    margin: 4px 0 0;
}

.ndja-bc__budget-list {
    display: grid;
    gap: 11px;
}

.ndja-bc__budget-row {
    padding: 15px 17px;
    border: 1px solid var(--ndja-border);
    border-radius: 12px;
    background: #fff;
}

.ndja-bc__budget-row.is-automatic,
.ndja-bc__budget-row.is-calculated {
    background: #f2f8f5;
}

.ndja-bc__budget-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 20px;
}

.ndja-bc__budget-label {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ndja-bc__budget-label small {
    display: block;
}

.ndja-bc__info {
    display: inline-grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ndja-blue);
    border-radius: 50%;
    color: var(--ndja-blue);
    background: #fff;
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

.ndja-bc__money-field {
    position: relative;
    display: block;
}

.ndja-bc__money-field input {
    padding-right: 34px !important;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ndja-bc__money-field > span {
    position: absolute;
    top: 50%;
    right: 12px;
    color: #687981;
    transform: translateY(-50%);
}

.ndja-bc__notice {
    margin: 12px 0 0;
    padding: 11px 13px;
    border-radius: 8px;
    color: #42545d;
    background: var(--ndja-soft);
    font-size: .88rem;
}

.ndja-bc__notice[hidden] {
    display: none;
}

.ndja-bc__automatic-note {
    display: block;
    margin-top: 6px;
    color: var(--ndja-green);
    font-weight: 700;
}

.ndja-bc__attached {
    display: grid;
    gap: 9px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #bed0d7;
}

.ndja-bc__attached > p {
    margin: 0;
    color: var(--ndja-blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ndja-bc__custom-line {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) 150px minmax(180px, 1fr) auto;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border-radius: 9px;
    background: #f8fafb;
}

.ndja-bc__custom-line label > span,
.ndja-bc__custom-revenue label > span {
    font-size: .78rem;
}

.ndja-bc__custom-line input,
.ndja-bc__custom-revenue input,
.ndja-bc__custom-revenue select {
    min-height: 40px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

.ndja-bc__remove {
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid #e6b5a8;
    border-radius: 8px;
    color: #932c15;
    background: #fff6f3;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

.ndja-bc__add-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 18px;
    border: 2px dashed #bdd0d9;
    border-radius: 13px;
    background: #f9fbfc;
}

.ndja-bc__add-box h3,
.ndja-bc__section-title h3,
.ndja-bc__summary-panel h3 {
    margin: 0;
    color: var(--ndja-navy);
    font-family: Raleway, Sarabun, sans-serif;
    font-size: 1.15rem;
}

.ndja-bc__add-box p,
.ndja-bc__section-title p {
    margin: 3px 0 0;
    color: var(--ndja-muted);
}

.ndja-bc__add-controls {
    display: flex;
    gap: 10px;
}

.ndja-bc__running-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding: 17px 20px;
    border-radius: 12px;
    color: #fff;
    background: var(--ndja-navy);
}

.ndja-bc__running-total strong {
    color: #fff;
    font-size: 1.28rem;
}

.ndja-bc__confirm {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: #5e5142;
    font-size: .85rem;
    cursor: pointer;
}

.ndja-bc__confirm input {
    width: 18px;
    height: 18px;
    accent-color: var(--ndja-orange);
}

.ndja-bc__calculated-money {
    color: var(--ndja-navy);
    text-align: right;
    font-size: 1.06rem;
    font-weight: 800;
}

.ndja-bc__section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 14px;
}

.ndja-bc__custom-revenues {
    display: grid;
    gap: 12px;
}

.ndja-bc__custom-revenues:empty::before {
    content: "Aucune recette complémentaire.";
    display: block;
    padding: 20px;
    border: 2px dashed var(--ndja-border);
    border-radius: 11px;
    color: var(--ndja-muted);
    text-align: center;
}

.ndja-bc__custom-revenue {
    display: grid;
    grid-template-columns: 1fr 1.3fr 150px;
    align-items: end;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--ndja-border);
    border-radius: 11px;
    background: #fafcfd;
}

.ndja-bc__custom-revenue .ndja-bc__custom-comment {
    grid-column: 1 / 3;
}

.ndja-bc__custom-revenue .ndja-bc__confirm {
    align-self: center;
    margin: 0;
}

.ndja-bc__custom-revenue .ndja-bc__remove {
    justify-self: end;
}

.ndja-bc__qf-alert {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px 17px;
    border-radius: 11px;
}

.ndja-bc__qf-alert strong {
    flex: 0 0 auto;
}

.ndja-bc__qf-alert.is-ok {
    color: #075a43;
    background: #e8f6ef;
}

.ndja-bc__qf-alert.is-warning {
    color: #71420a;
    background: #fff2dc;
}

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

.ndja-bc__qf-summary > div,
.ndja-bc__summary-grid > div {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--ndja-border);
    border-radius: 12px;
    background: var(--ndja-soft);
}

.ndja-bc__qf-summary span,
.ndja-bc__summary-grid span {
    color: var(--ndja-muted);
    font-size: .8rem;
    font-weight: 700;
}

.ndja-bc__qf-summary strong,
.ndja-bc__summary-grid strong {
    color: var(--ndja-navy);
    font-size: 1.2rem;
}

.ndja-bc__qf-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
    margin-top: 20px;
}

.ndja-bc__qf-card {
    overflow: hidden;
    border: 1px solid var(--ndja-border);
    border-radius: 13px;
    background: #fff;
}

.ndja-bc__qf-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: #fff;
    background: var(--ndja-navy);
}

.ndja-bc__qf-card > div:first-child p {
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
}

.ndja-bc__qf-card > div:first-child span {
    font-size: .82rem;
    font-weight: 700;
}

.ndja-bc__qf-card label {
    display: grid;
    gap: 5px;
    padding: 12px 13px 0;
}

.ndja-bc__qf-card label > span {
    color: var(--ndja-muted);
    font-size: .75rem;
    font-weight: 700;
}

.ndja-bc__qf-card > small {
    display: block;
    padding: 10px 13px 13px;
    text-align: right;
}

.ndja-bc__qf-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f6f9fa;
}

.ndja-bc__qf-actions p {
    margin: 0;
    color: var(--ndja-muted);
}

.ndja-bc__status {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 19px 20px;
    border-radius: 14px;
}

.ndja-bc__status > span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.ndja-bc__status strong,
.ndja-bc__status b {
    font-size: 1.1rem;
}

.ndja-bc__status p {
    margin: 2px 0 0;
}

.ndja-bc__status.is-balanced { color: #075a43; background: #e5f5ed; }
.ndja-bc__status.is-balanced > span { background: var(--ndja-green); }
.ndja-bc__status.is-deficit { color: #8b2c16; background: #fff0ec; }
.ndja-bc__status.is-deficit > span { background: var(--ndja-red); }
.ndja-bc__status.is-surplus { color: #70420d; background: #fff3df; }
.ndja-bc__status.is-surplus > span { background: var(--ndja-orange); }

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

.ndja-bc__summary-columns {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 18px;
    margin-top: 18px;
}

.ndja-bc__summary-panel {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--ndja-border);
    border-radius: 13px;
    background: #fff;
}

.ndja-bc__summary-columns .ndja-bc__summary-panel {
    margin-top: 0;
}

.ndja-bc__bars {
    display: grid;
    gap: 13px;
    margin-top: 15px;
}

.ndja-bc__bar > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
    font-size: .85rem;
}

.ndja-bc__bar i {
    display: block;
    overflow: hidden;
    height: 9px;
    border-radius: 99px;
    background: #e5edf1;
}

.ndja-bc__bar i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ndja-blue), var(--ndja-mint));
}

.ndja-bc__tariff-list {
    display: grid;
    gap: 9px;
    margin-top: 15px;
}

.ndja-bc__tariff-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ndja-border);
}

.ndja-bc__tariff-list small {
    margin-left: 4px;
}

.ndja-bc__checks {
    display: grid;
    gap: 9px;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.ndja-bc__checks li {
    position: relative;
    padding: 10px 12px 10px 38px;
    border-radius: 9px;
}

.ndja-bc__checks li::before {
    position: absolute;
    top: 10px;
    left: 13px;
    font-weight: 900;
}

.ndja-bc__checks li.is-ok { color: #075a43; background: #edf8f3; }
.ndja-bc__checks li.is-ok::before { content: "✓"; }
.ndja-bc__checks li.is-warning { color: #70420d; background: #fff5e5; }
.ndja-bc__checks li.is-warning::before { content: "!"; }
.ndja-bc__checks li.is-info { color: #174d6a; background: #eef6fa; }
.ndja-bc__checks li.is-info::before { content: "i"; }

.ndja-bc__hypotheses {
    margin-top: 18px;
}

.ndja-bc__pdf-action {
    margin-top: 22px;
    padding: 24px;
    border-radius: 14px;
    color: #fff;
    background: var(--ndja-navy);
    text-align: center;
}

.ndja-bc__pdf-action p {
    margin: 9px 0 0;
    color: #dce9ef;
    font-size: .85rem;
}

.ndja-bc__button {
    min-height: 44px;
    padding: 10px 17px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--ndja-navy);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.ndja-bc__button:hover {
    color: #fff;
    background: #07527d;
    transform: translateY(-1px);
}

.ndja-bc__button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.ndja-bc__button--secondary {
    border: 2px solid var(--ndja-blue);
    color: var(--ndja-blue);
    background: #fff;
}

.ndja-bc__button--secondary:hover {
    color: var(--ndja-navy);
    background: #eef6fa;
}

.ndja-bc__button--save {
    min-height: 38px;
    padding: 7px 13px;
    background: var(--ndja-green);
    font-size: .84rem;
}

.ndja-bc__button--save:hover {
    background: #058162;
}

.ndja-bc__button--pdf {
    color: var(--ndja-navy);
    background: var(--ndja-mint);
}

.ndja-bc__button--pdf:hover {
    color: var(--ndja-navy);
    background: #81cfaf;
}

.ndja-bc__nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.ndja-bi__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.ndja-bi__card {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 150px;
    align-content: space-between;
    padding: 25px;
    border: 1px solid var(--ndja-border);
    border-radius: 15px;
    color: var(--ndja-navy);
    background: #fff;
    box-shadow: var(--ndja-shadow);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ndja-bi__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, #65bc99 0 20%, #ff8300 20% 40%, #0077b3 40% 60%, #d03f15 60% 80%, #007254 80% 100%);
}

.ndja-bi__card:hover {
    color: var(--ndja-navy);
    box-shadow: 0 18px 38px rgba(0, 58, 93, .15);
    transform: translateY(-4px);
}

.ndja-bi__card > span {
    font-family: Raleway, Sarabun, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.ndja-bi__card small {
    color: var(--ndja-blue);
    font-weight: 800;
}

.ndja-pdf {
    position: fixed;
    z-index: -1000;
    top: 0;
    left: -10000px;
    width: 760px;
    color: #27343b;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.38;
}

.ndja-pdf__stripe {
    height: 8px;
}

.ndja-pdf__header {
    padding: 28px 30px 24px;
    color: #fff;
    background: #003a5d;
}

.ndja-pdf__header p {
    margin: 0 0 5px;
    color: #dfeef5;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ndja-pdf__header h1 {
    margin: 0;
    color: #fff;
    font-size: 25px;
}

.ndja-pdf__header h2 {
    margin: 5px 0 0;
    color: #65bc99;
    font-size: 15px;
}

.ndja-pdf__section {
    padding: 20px 30px 0;
}

.ndja-pdf__section h3 {
    margin: 0 0 11px;
    padding-bottom: 6px;
    border-bottom: 2px solid #d8e3e8;
    color: #003a5d;
    font-size: 15px;
}

.ndja-pdf__section h4 {
    margin: 14px 0 7px;
    color: #003a5d;
    font-size: 12px;
}

.ndja-pdf__details {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 5px 12px;
    margin: 0;
}

.ndja-pdf__details dt {
    font-weight: 700;
}

.ndja-pdf__details dd {
    margin: 0;
}

.ndja-pdf__status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 6px;
}

.ndja-pdf__status--balanced { color: #075a43; background: #e7f5ee; }
.ndja-pdf__status--deficit { color: #8b2c16; background: #fff0ec; }
.ndja-pdf__status--surplus { color: #70420d; background: #fff3df; }

.ndja-pdf__kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.ndja-pdf__kpis > div {
    display: grid;
    gap: 3px;
    padding: 9px;
    border: 1px solid #d8e3e8;
    border-radius: 5px;
}

.ndja-pdf__kpis span {
    color: #60727b;
    font-size: 9px;
}

.ndja-pdf__kpis strong {
    color: #003a5d;
    font-size: 13px;
}

.ndja-pdf__table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: auto;
}

.ndja-pdf__table tr {
    page-break-inside: avoid;
}

.ndja-pdf__table th,
.ndja-pdf__table td {
    padding: 5px 6px;
    border: 1px solid #cbd8de;
    text-align: left;
    vertical-align: top;
}

.ndja-pdf__table th {
    color: #003a5d;
    background: #eef4f7;
}

.ndja-pdf__table th:nth-child(n+2),
.ndja-pdf__table td:nth-child(n+2) {
    text-align: right;
}

.ndja-pdf__total {
    margin: 7px 0 0;
    text-align: right;
}

.ndja-pdf__coherence {
    padding: 8px 10px;
    border-left: 4px solid #ff8300;
    background: #fff8ed;
}

.ndja-pdf__notes {
    padding: 10px;
    border: 1px solid #d8e3e8;
    border-radius: 5px;
    background: #f8fafb;
}

.ndja-pdf__footer {
    margin-top: 22px;
    padding: 13px 30px;
    border-top: 1px solid #d8e3e8;
    color: #65767f;
    font-size: 9px;
    text-align: center;
}

@media (max-width: 900px) {
    .ndja-bc__qf-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ndja-bc__qf-summary,
    .ndja-bc__summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ndja-bc__custom-line {
        grid-template-columns: 1fr 150px;
    }

    .ndja-bc__custom-line .ndja-bc__custom-comment {
        grid-column: 1 / -1;
    }

    .ndja-bc__custom-line .ndja-bc__remove {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .ndja-bc,
    .ndja-bi {
        width: min(100% - 20px, 1160px);
        margin-bottom: 40px;
    }

    .ndja-bc__hero,
    .ndja-bi__hero {
        padding: 58px 18px 34px;
        border-radius: 0 0 18px 18px;
    }

    .ndja-bc__back {
        top: 22px;
        left: 18px;
    }

    .ndja-bc__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ndja-bc__button--save {
        width: 100%;
    }

    .ndja-bc__progress ol {
        display: none;
    }

    .ndja-bc__progress-mobile {
        display: block;
        margin: 0;
        padding: 13px 15px;
        border-radius: 10px;
        color: var(--ndja-navy);
        background: #eaf2f6;
        font-weight: 800;
    }

    .ndja-bc__step {
        padding: 21px 15px;
        border-radius: 15px;
    }

    .ndja-bc__grid,
    .ndja-bc__qf-summary,
    .ndja-bc__summary-grid,
    .ndja-bc__summary-columns,
    .ndja-bc__custom-revenue,
    .ndja-bi__grid {
        grid-template-columns: 1fr;
    }

    .ndja-bc__field--wide,
    .ndja-bc__custom-revenue .ndja-bc__custom-comment {
        grid-column: auto;
    }

    .ndja-bc__budget-main {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .ndja-bc__calculated-money {
        text-align: left;
    }

    .ndja-bc__custom-line {
        grid-template-columns: 1fr;
    }

    .ndja-bc__custom-line .ndja-bc__custom-comment {
        grid-column: auto;
    }

    .ndja-bc__add-box,
    .ndja-bc__add-controls,
    .ndja-bc__section-title,
    .ndja-bc__qf-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ndja-bc__qf-grid {
        grid-template-columns: 1fr;
    }

    .ndja-bc__qf-card {
        display: grid;
        grid-template-columns: 105px 1fr 1fr;
        align-items: center;
    }

    .ndja-bc__qf-card > div:first-child {
        height: 100%;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .ndja-bc__qf-card label {
        padding: 10px;
    }

    .ndja-bc__qf-card > small {
        grid-column: 2 / -1;
        padding-top: 0;
    }

    .ndja-bc__status {
        grid-template-columns: auto 1fr;
    }

    .ndja-bc__status > b {
        grid-column: 2;
    }

    .ndja-bc__nav {
        flex-direction: column-reverse;
    }

    .ndja-bc__nav .ndja-bc__button {
        width: 100%;
    }

    .ndja-bi__card {
        min-height: 125px;
    }
}

@media (max-width: 440px) {
    .ndja-bc__qf-card {
        grid-template-columns: 82px 1fr;
    }

    .ndja-bc__qf-card label:last-of-type {
        grid-column: 2;
    }

    .ndja-bc__qf-card > small {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ndja-bc *,
    .ndja-bi * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

