.staff-financial-page {
    --staff-ink: #273447;
    --staff-muted: #6d7785;
    --staff-general-bg: #f2fbf8;
    --staff-general-border: #bfe6dc;
    --staff-general-head: #e4f6f0;
    --staff-general-accent: #2f9e8f;
    --staff-expense-bg: #fffaf0;
    --staff-expense-border: #f2d8a5;
    --staff-expense-head: #fff1d6;
    --staff-expense-accent: #b7791f;
    --staff-sales-bg: #f3f7ff;
    --staff-sales-border: #c9dcff;
    --staff-sales-head: #e8f0ff;
    --staff-sales-accent: #4f78d8;
    --staff-purchase-bg: #f5f2ff;
    --staff-purchase-border: #d9cef5;
    --staff-purchase-head: #ece5ff;
    --staff-purchase-accent: #7654b5;
    --staff-funding-bg: #eefbff;
    --staff-funding-border: #b9dfec;
    --staff-funding-head: #dff5fb;
    --staff-funding-accent: #197b96;
    color: var(--staff-ink);
}

.staff-financial-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid #dbe4ee;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff 0%, #f7f9fc 100%);
    box-shadow: 0 10px 30px rgba(44, 62, 80, .05);
}

.staff-kicker {
    display: block;
    margin-bottom: .35rem;
    color: var(--staff-general-accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.staff-hero-icon,
.staff-request-choice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    font-size: 1.35rem;
}

.staff-expense-page .staff-hero-icon { background: var(--staff-expense-head); color: var(--staff-expense-accent); }
.staff-sales-page .staff-hero-icon { background: var(--staff-sales-head); color: var(--staff-sales-accent); }
.staff-purchase-page .staff-hero-icon { background: var(--staff-purchase-head); color: var(--staff-purchase-accent); }
.staff-funding-page .staff-hero-icon { background: var(--staff-funding-head); color: var(--staff-funding-accent); }

.staff-request-choice {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-height: 12rem;
    padding: 1.5rem;
    border: 1px solid;
    border-radius: 1.1rem;
    color: var(--staff-ink);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.staff-request-choice:hover { color: var(--staff-ink); transform: translateY(-3px); box-shadow: 0 16px 35px rgba(44, 62, 80, .1); }
.staff-request-choice--expense { background: var(--staff-expense-bg); border-color: var(--staff-expense-border); }
.staff-request-choice--sales { background: var(--staff-sales-bg); border-color: var(--staff-sales-border); }
.staff-request-choice--purchase { background: var(--staff-purchase-bg); border-color: var(--staff-purchase-border); }
.staff-request-choice--funding { background: var(--staff-funding-bg); border-color: var(--staff-funding-border); }
.staff-request-choice--expense .staff-request-choice__icon { background: var(--staff-expense-head); color: var(--staff-expense-accent); }
.staff-request-choice--sales .staff-request-choice__icon { background: var(--staff-sales-head); color: var(--staff-sales-accent); }
.staff-request-choice--purchase .staff-request-choice__icon { background: var(--staff-purchase-head); color: var(--staff-purchase-accent); }
.staff-request-choice--funding .staff-request-choice__icon { background: var(--staff-funding-head); color: var(--staff-funding-accent); }
.staff-request-choice__content { display: flex; flex: 1; flex-direction: column; gap: .55rem; }
.staff-request-choice__content strong { font-size: 1.25rem; }
.staff-request-choice__content span { color: var(--staff-muted); line-height: 1.9; }
.staff-request-choice__content small { font-weight: 600; }
.staff-request-choice__arrow { opacity: .45; }

.staff-workflow-guide,
.staff-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e1e7ef;
    border-radius: 1rem;
    background: #fff;
}

.staff-workflow-guide__step { appearance: none; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: .7rem; align-items: center; flex: 1 1 0; min-width: 0; width: 100%; padding: .75rem; border: 1px solid transparent; border-radius: .8rem; color: inherit; font: inherit; text-align: right; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.staff-workflow-guide > div { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .7rem; align-items: center; flex: 1 1 0; min-width: 0; padding: .75rem; border: 1px solid transparent; border-radius: .8rem; }
.staff-workflow-guide__step:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(40, 58, 78, .08); }
.staff-workflow-guide__step:focus-visible { outline: 3px solid rgba(49, 92, 168, .2); outline-offset: 2px; }
.staff-workflow-guide__step.is-active { box-shadow: 0 0 0 3px rgba(49, 92, 168, .2), 0 8px 18px rgba(40, 58, 78, .1); }
.staff-workflow-guide__number { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: #edf2f7; font-weight: 800; }
.staff-workflow-guide > div > span:first-child { grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: #edf2f7; font-weight: 800; }
.staff-workflow-guide__copy { display: flex; min-width: 0; flex-direction: column; }
.staff-workflow-guide__count { display: inline-grid; min-width: 2rem; height: 2rem; padding: 0 .45rem; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: .85rem; font-weight: 900; }
.staff-workflow-guide small { color: var(--staff-muted); }
.staff-workflow-guide > i { color: #aeb8c5; }
.staff-workflow-guide__step--received { background: #f2f7ff; border-color: #cbdcf5 !important; }
.staff-workflow-guide__step--received .staff-workflow-guide__number { background: #dce9fb !important; color: #426a9f; }
.staff-workflow-guide__step--inactive { background: #f6f7f9; border-color: #cfd5dd !important; }
.staff-workflow-guide__step--inactive .staff-workflow-guide__number { background: #e3e7ec !important; color: #4c5664; }
.staff-workflow-guide__step--review { background: #fff8e9; border-color: #f1d9a6 !important; }
.staff-workflow-guide__step--review .staff-workflow-guide__number { background: #fbe8bb !important; color: #93651f; }
.staff-workflow-guide__step--document { background: #edfaf6; border-color: #b8ded4 !important; }
.staff-workflow-guide__step--document .staff-workflow-guide__number { background: #d2f0e7 !important; color: #287b6d; }
.staff-workflow-guide__step--payment { background: #f5f0ff; border-color: #d8c8f2 !important; }
.staff-workflow-guide__step--payment .staff-workflow-guide__number { background: #e6daf8 !important; color: #6d4aa0; }

.staff-progress__step { display: flex; align-items: center; gap: .65rem; opacity: .55; }
.staff-progress__step > span { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border: 2px solid #cfd8e3; border-radius: 50%; background: #fff; font-weight: 800; }
.staff-progress__step div { display: flex; flex-direction: column; white-space: nowrap; }
.staff-progress__step small { color: var(--staff-muted); font-size: .72rem; }
.staff-progress__step.is-active { opacity: 1; }
.staff-progress__step.is-active > span { border-color: var(--staff-general-accent); background: var(--staff-general-head); color: #23786d; }
.staff-progress__step.is-rejected > span { border-color: #e59b9b; background: #fff0f0; color: #ba3f3f; }
.staff-progress__step--inactive.is-active > span { border-color: #788493; background: #eef0f3; color: #3f4955; }
.staff-progress__line { flex: 1; height: 2px; background: #e2e8f0; }

.staff-pastel-card {
    overflow: hidden;
    border: 1px solid;
    border-radius: 1rem;
    background: #fff;
}

.staff-pastel-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 3.7rem;
    padding: .8rem 1.1rem;
    border-bottom: 1px solid;
}

.staff-pastel-card > header > div { display: flex; align-items: center; gap: .65rem; }
.staff-pastel-card > header i { font-size: 1.05rem; }
.staff-pastel-card__body { padding: 1.2rem; }
.staff-pastel-card--general { border-color: var(--staff-general-border); background: var(--staff-general-bg); }
.staff-pastel-card--general > header { border-color: var(--staff-general-border); background: var(--staff-general-head); color: #23786d; }
.staff-pastel-card--expense { border-color: var(--staff-expense-border); background: var(--staff-expense-bg); }
.staff-pastel-card--expense > header { border-color: var(--staff-expense-border); background: var(--staff-expense-head); color: #8b5b18; }
.staff-pastel-card--sales { border-color: var(--staff-sales-border); background: var(--staff-sales-bg); }
.staff-pastel-card--sales > header { border-color: var(--staff-sales-border); background: var(--staff-sales-head); color: #365fae; }
.staff-pastel-card--attachments { border-color: #d9c7f2; background: #fbf8ff; }
.staff-pastel-card--attachments > header { border-color: #d9c7f2; background: #f1e9fb; color: #7652ad; }

.staff-type-pill,
.staff-kind-badge {
    padding: .35rem .65rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .55);
}

.staff-lines-table thead th { padding: .85rem; background: rgba(255, 255, 255, .65); color: #536273; font-size: .78rem; white-space: nowrap; }
.staff-lines-table tbody td { padding: .8rem; border-color: rgba(137, 153, 170, .18); vertical-align: middle; }
.staff-lines-table .form-control { min-width: 7rem; background: rgba(255, 255, 255, .9); }
.staff-catalog-lines-table .input-group { min-width: 8.5rem; flex-wrap: nowrap; }
.staff-catalog-lines-table .input-group > .form-control { width: 1%; min-width: 0; }
.staff-catalog-lines-table .input-group > .input-group-text { flex: 0 0 auto; }
.staff-empty-lines { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 2.8rem 1rem; color: var(--staff-muted); text-align: center; }
.staff-empty-lines i { margin-bottom: .3rem; font-size: 2.3rem; opacity: .28; }
.staff-lines-total { display: flex; align-items: center; justify-content: flex-end; gap: 1.2rem; padding: .9rem 1.2rem; border-top: 1px dashed rgba(100, 116, 139, .3); background: rgba(255, 255, 255, .55); }
.staff-lines-total strong { min-width: 10rem; font-size: 1.05rem; text-align: end; }

.staff-sticky-actions {
    position: sticky;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid #d9e2ec;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 35px rgba(44, 62, 80, .13);
    color: var(--staff-muted);
}

.staff-review-actions { padding: 1.2rem; border: 1px solid #cddcf4; border-radius: 1rem; background: #f4f8ff; }

.staff-request-history-block { border: 1px solid #dce5f3; overflow: hidden; }
.staff-request-history-block > .block-header { cursor: pointer; min-height: 4.25rem; background: linear-gradient(135deg, #f7faff, #eef5ff); }
.staff-history-header-icon { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .75rem; color: #0665d0; background: #dcecff; }
.staff-history-chevron { transition: transform .2s ease; }
.staff-request-history-block > .block-header[aria-expanded="true"] .staff-history-chevron { transform: rotate(180deg); }
.staff-request-history-list { position: relative; list-style: none; padding: 0; }
.staff-request-history-list::before { content: ""; position: absolute; top: 1rem; bottom: 1rem; right: 1.2rem; width: 2px; background: #dfe7f2; }
.staff-request-history-item { position: relative; display: flex; gap: 1rem; padding: .7rem 0 1.25rem; }
.staff-request-history-item:last-child { padding-bottom: .25rem; }
.staff-request-history-icon { position: relative; z-index: 1; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--bs-body-bg); }
.staff-request-history-content { flex: 1; min-width: 0; padding-top: .15rem; }
@media (max-width: 575.98px) {
    .staff-request-history-block > .block-header { padding-inline: .85rem; }
    .staff-request-history-list::before { right: .95rem; }
    .staff-request-history-icon { flex-basis: 2rem; width: 2rem; height: 2rem; font-size: .75rem; }
    .staff-request-history-item { gap: .65rem; }
}
.staff-modal { border: 0; border-radius: 1rem; }
.staff-modal--expense .modal-header { background: var(--staff-expense-head); border-color: var(--staff-expense-border); color: #8b5b18; }
.staff-modal--sales .modal-header { background: var(--staff-sales-head); border-color: var(--staff-sales-border); color: #365fae; }
.staff-modal--customer .modal-header { background: #e9f3ff; border-color: #c8ddf7; color: #315f91; }
.staff-customer-table { max-height: 430px; overflow-y: auto; }
.staff-customer-table thead { z-index: 1; background: #f4f8fd; }
.staff-customer-row { cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; }
.staff-customer-row:hover { background: #f2f7ff; }
.staff-customer-row.is-selected { background: #e1efff; box-shadow: inset -4px 0 #4c82bd; }
.staff-catalog-table { max-height: 55vh; }
.staff-catalog-table thead { background: #f1f6ff; }
.staff-catalog-row { cursor: pointer; transition: background-color .15s ease, opacity .15s ease, box-shadow .15s ease; }
.staff-catalog-row.selected { background: #e7f0ff; box-shadow: inset -3px 0 #4f78d8; }
.staff-catalog-row.is-added { cursor: default; opacity: .65; background: #f3f7f4; }
.staff-catalog-row.is-added:hover { background: #f3f7f4; }
.staff-type-badge { background: #e7efff; color: #365fae; }

.staff-summary-card { height: 100%; border: 1px solid; border-radius: .9rem; padding: 1rem 1.1rem; }
.staff-summary-card--mint { border-color: var(--staff-general-border); background: var(--staff-general-bg); }
.staff-summary-card--blue { border-color: var(--staff-sales-border); background: var(--staff-sales-bg); }
.staff-summary-card--amber { border-color: var(--staff-expense-border); background: var(--staff-expense-bg); }
.staff-summary-card small { color: var(--staff-muted); }
.staff-status { display: inline-flex; padding: .35rem .6rem; border: 1px solid; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.staff-status--draft { border-color: #ccd4df; background: #f4f6f8; color: #5e6a78; }
.staff-status--submitted { border-color: #b9d7ee; background: #edf8ff; color: #2872a5; }
.staff-status--approved { border-color: #b8ded4; background: #edfaf6; color: #287b6d; }
.staff-status--rejected { border-color: #efc0c0; background: #fff2f2; color: #b44343; }
.staff-status--partial { border-color: #efd7a9; background: #fff8e9; color: #9a671c; }
.staff-status--paid { border-color: #b5dfc1; background: #effbf2; color: #2e7d45; }
.staff-status--inactive { border-color: #c5cbd3; background: #f1f3f5; color: #4f5966; }
.staff-request-index-row--deactivation { --bs-table-accent-bg: rgba(255, 193, 7, .055); }
.staff-deactivation-badge { display: inline-flex; align-items: center; padding: .2rem .5rem; border: 1px solid #efd39a; border-radius: 999px; background: #fff8e7; color: #946318; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.staff-row-stages { display: flex; justify-content: center; gap: .25rem; direction: ltr; }
.staff-row-stages span { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; border: 1px solid #d7dee7; border-radius: 50%; background: #f5f7f9; color: #8994a2; font-size: .68rem; font-weight: 800; }
.staff-row-stages span.is-done { border-color: #b8ded4; background: #edfaf6; color: #287b6d; }
.staff-row-stages span.is-current { border-color: #76bfae; background: #d8f3eb; color: #176655; box-shadow: 0 0 0 2px rgba(82, 174, 151, .12); }
.staff-row-stages span.is-disabled { opacity: .35; background: #eef0f3; }

@media (max-width: 991.98px) {
    .staff-progress { overflow-x: auto; justify-content: flex-start; }
    .staff-progress__line { flex: 0 0 2rem; }
    .staff-workflow-guide { align-items: stretch; flex-direction: column; }
    .staff-workflow-guide > i { display: none; }
}

@media (max-width: 767.98px) {
    .staff-financial-hero,
    .staff-sticky-actions { align-items: stretch; flex-direction: column; }
    .staff-financial-hero .btn { align-self: flex-start; }
    .staff-sticky-actions > .d-flex { width: 100%; }
    .staff-sticky-actions .btn { flex: 1; }
    .staff-request-choice { min-height: auto; padding: 1.1rem; }
}
