/*cat > static/css/payops.css <<'CSS'
/* =========================================================
   RAW PAYOPS
   Clean internal operations interface
========================================================= */

:root {
    --raw-green: #087747;
    --raw-green-hover: #06663d;
    --raw-green-dark: #075437;
    --raw-green-deep: #0c2b21;

    --green-soft: #eaf5ef;
    --green-faint: #f6faf8;

    --page: #f4f7f5;
    --surface: #ffffff;
    --surface-soft: #f8faf9;

    --text: #17221d;
    --text-secondary: #65736b;
    --muted: #8b9891;

    --border: #dde6e0;
    --border-strong: #cad8d0;

    --blue: #2563c7;
    --blue-soft: #edf4ff;

    --amber: #976400;
    --amber-soft: #fff5d9;

    --red: #b42318;
    --red-soft: #fff0ef;

    --sidebar-width: 250px;
    --sidebar-collapsed: 76px;
    --topbar-height: 68px;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;

    --shadow:
        0 1px 2px rgba(12, 43, 33, .025),
        0 6px 20px rgba(12, 43, 33, .035);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    background: var(--page);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
}

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

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

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    height: var(--topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    background: rgba(255, 255, 255, .98);

    border-bottom: 1px solid var(--border);
}

.topbar-left {
    display: flex;
    align-items: center;

    gap: 16px;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 0;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 10px;
}

.sidebar-toggle:hover {
    background: var(--green-faint);
    border-color: var(--border-strong);
}

.sidebar-toggle span {
    width: 17px;
    height: 2px;

    background: #5e6d65;

    border-radius: 3px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 11px;
}

.brand-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            145deg,
            #15945b,
            var(--raw-green-dark)
        );

    border-radius: 10px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 900;
}

.brand-copy {
    display: flex;
    align-items: baseline;

    gap: 5px;
}

.brand-copy strong {
    color: var(--text);

    font-size: 17px;
    font-weight: 850;
}

.brand-copy span {
    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   USER
========================================================= */

.user-area {
    display: flex;
    align-items: center;

    gap: 11px;
}

.user-avatar {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    background: var(--green-soft);

    border-radius: 50%;

    color: var(--raw-green-dark);

    font-size: 12px;
    font-weight: 850;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-meta strong {
    color: var(--text);

    font-size: 13px;
}

.user-meta span {
    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;

    top: var(--topbar-height);
    bottom: 0;
    left: 0;

    z-index: 90;

    width: var(--sidebar-width);

    padding: 20px 14px;

    overflow-y: auto;

    background:
        linear-gradient(
            180deg,
            #0d2a20 0%,
            #0a231a 100%
        );

    transition: width .18s ease;
}

.sidebar-inner {
    min-height: 100%;

    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-label {
    margin: 22px 13px 8px;

    color: #819d8f;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: .14em;
    text-transform: uppercase;
}

.sidebar-divider {
    height: 1px;

    margin: 18px 8px;

    background: rgba(255, 255, 255, .09);
}

.nav-link {
    width: 100%;
    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px 13px;

    background: transparent;

    border: 0;
    border-radius: 9px;

    color: #dce8e2;

    font-size: 12px;
    font-weight: 550;

    text-align: left;

    transition:
        background .14s ease,
        color .14s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, .075);

    color: #ffffff;
}

.nav-icon {
    width: 22px;

    flex: 0 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #8da79b;

    font-size: 16px;
}

.nav-text {
    overflow: hidden;

    white-space: nowrap;
}

.nav-button {
    appearance: none;
}

.logout-form {
    margin: 0;
}

.logout-button {
    color: #e7c4bf;
}


/* =========================================================
   COLLAPSED SIDEBAR
========================================================= */

.app-shell.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}

.app-shell.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed);
}

.app-shell.sidebar-collapsed .nav-text,
.app-shell.sidebar-collapsed .sidebar-label {
    display: none;
}

.app-shell.sidebar-collapsed .nav-link {
    justify-content: center;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    min-height: 100vh;

    margin-left: var(--sidebar-width);

    padding:
        calc(var(--topbar-height) + 32px)
        38px
        50px;

    transition: margin-left .18s ease;
}

.workspace {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.page-heading {
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 3px;

    color: var(--raw-green);

    font-size: 9px;
    font-weight: 850;

    letter-spacing: .14em;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 0;

    color: var(--text);

    font-size: 25px;
    font-weight: 750;

    line-height: 1.2;

    letter-spacing: -.025em;
}


/* Older templates */

.workspace-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 20px;
}

.workspace-header h1 {
    margin: 0 0 5px;

    font-size: 25px;

    letter-spacing: -.025em;
}

.workspace-subtitle {
    max-width: 650px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 12px;
}


/* =========================================================
   SECTIONS
========================================================= */

.workspace-section {
    margin-bottom: 20px;

    padding: 22px 24px 24px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}

.compact-section {
    padding: 21px 23px 23px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 17px;
}

.section-heading h2 {
    margin: 0 0 3px;

    color: var(--text);

    font-size: 18px;
    font-weight: 750;

    line-height: 1.3;

    letter-spacing: -.015em;
}

.section-heading p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 11px;
}

.section-kicker {
    margin: 0 0 4px !important;

    color: var(--raw-green) !important;

    font-size: 8px !important;
    font-weight: 850;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.section-count {
    min-width: 31px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 9px;

    background: var(--green-soft);

    border: 1px solid #d7e8de;
    border-radius: 20px;

    color: var(--raw-green-dark);

    font-size: 10px;
    font-weight: 850;
}

.section-heading-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


/* =========================================================
   BUSINESS GRID
========================================================= */

.business-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.business-card {
    position: relative;

    min-width: 0;
    min-height: 185px;

    display: flex;
    flex-direction: column;

    padding: 17px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdfc 100%
        );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.business-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--raw-green),
            #35a46d
        );
}

.business-card:hover {
    transform: translateY(-2px);

    border-color: #bdd6c7;

    box-shadow:
        0 10px 24px rgba(12, 43, 33, .07);
}

.business-card-top,
.business-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 13px;
}

.business-type {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    background: var(--green-soft);

    border-radius: 20px;

    color: var(--raw-green-dark);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.business-date {
    color: var(--muted);

    font-size: 10px;

    white-space: nowrap;
}

.business-card-content,
.business-card-body {
    flex: 1;
}

.business-card-content h3,
.business-card-body h3 {
    margin: 0 0 6px;

    color: var(--text);

    font-size: 15px;
    font-weight: 750;

    line-height: 1.35;

    overflow-wrap: anywhere;
}

.business-card-content p,
.business-card-body p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   BUSINESS METRICS
========================================================= */

.business-stats,
.business-metrics {
    display: flex;

    gap: 25px;

    margin-top: 17px;
    padding-top: 13px;

    border-top: 1px solid var(--border);
}

.business-stats > div,
.business-metric {
    display: flex;
    align-items: baseline;

    gap: 5px;
}

.business-stats strong,
.business-metric strong {
    color: var(--raw-green-dark);

    font-size: 16px;
    font-weight: 800;

    line-height: 1;
}

.business-stats span,
.business-metric span {
    color: var(--muted);

    font-size: 9px;
}

.business-card-footer,
.business-card-actions {
    margin-top: 10px;
}

.business-card-footer form,
.business-card-actions form {
    margin: 0;
}

.danger-link {
    padding: 0;

    background: transparent;

    border: 0;

    color: var(--red);

    font-size: 9px;
    font-weight: 700;
}

.danger-link:hover {
    text-decoration: underline;
}


/* =========================================================
   TABLES
========================================================= */

.table-wrap {
    width: 100%;

    overflow-x: auto;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 11px;
}

.data-table {
    width: 100%;

    border-collapse: collapse;
}

.data-table th {
    padding: 10px 14px;

    background: var(--surface-soft);

    border-bottom: 1px solid var(--border);

    color: #829087;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: .08em;

    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}

.data-table td {
    padding: 12px 14px;

    border-bottom: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 11px;

    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr {
    transition: background .12s ease;
}

.data-table tbody tr:hover {
    background: #f7fbf8;
}

.primary-cell {
    color: var(--text) !important;

    font-weight: 650;
}

.supplier-cell {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--text);
}

.supplier-avatar {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    display: grid;
    place-items: center;

    background: var(--green-soft);

    border-radius: 7px;

    color: var(--raw-green-dark);

    font-size: 9px;
    font-weight: 850;
}

.supplier-cell strong {
    font-size: 11px;
}

.business-reference {
    color: var(--text);

    font-weight: 600;
}

.money {
    color: var(--text) !important;

    font-weight: 750;

    white-space: nowrap;
}

.currency {
    margin-right: 2px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;
}

.date-cell {
    white-space: nowrap;
}


/* =========================================================
   STATUS PILLS
========================================================= */

.status {
    display: inline-flex;
    align-items: center;

    min-height: 23px;

    padding: 3px 8px;

    border-radius: 20px;

    font-size: 8px;
    font-weight: 800;

    white-space: nowrap;
}

.status-success {
    background: var(--green-soft);
    color: var(--raw-green);
}

.status-info {
    background: var(--blue-soft);
    color: var(--blue);
}

.status-warning {
    background: var(--amber-soft);
    color: var(--amber);
}

.status-danger {
    background: var(--red-soft);
    color: var(--red);
}

.status-neutral {
    background: #f0f3f1;
    color: #59665f;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 9px 15px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 11px;
    font-weight: 750;

    transition:
        background .14s ease,
        border-color .14s ease,
        box-shadow .14s ease,
        transform .1s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--raw-green);

    color: #ffffff;

    box-shadow:
        0 4px 10px rgba(8, 119, 71, .13);
}

.btn-primary:hover {
    background: var(--raw-green-hover);

    box-shadow:
        0 6px 14px rgba(8, 119, 71, .18);
}

.btn-secondary {
    background: #ffffff;

    border-color: var(--border-strong);

    color: var(--text);
}

.btn-secondary:hover {
    background: var(--green-faint);

    border-color: #b9cdc1;
}

.btn-small {
    min-height: 33px;

    padding: 6px 10px;

    font-size: 9px;
}


/* =========================================================
   EMPTY STATES
========================================================= */

.empty-state {
    padding: 34px 20px;

    background: #fafcfb;

    border: 1px dashed var(--border-strong);
    border-radius: 10px;

    text-align: center;
}

.empty-state-icon {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    margin: 0 auto 11px;

    background: var(--green-soft);

    border-radius: 50%;

    color: var(--raw-green);

    font-size: 17px;
}

.empty-state h3 {
    margin: 0 0 5px;

    color: var(--text);

    font-size: 14px;
}

.empty-state p {
    max-width: 440px;

    margin: 0 auto 16px;

    color: var(--text-secondary);

    font-size: 11px;
}

.muted {
    color: var(--muted) !important;
}


/* =========================================================
   FORM PAGE
========================================================= */

.form-page {
    width: 100%;
    max-width: 850px;

    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 650;
}

.back-link:hover {
    color: var(--raw-green);
}

.form-heading {
    margin-bottom: 20px;
}

.form-heading .eyebrow {
    margin-bottom: 4px;
}

.form-heading h1 {
    margin: 0 0 6px;

    color: var(--text);

    font-size: 26px;

    letter-spacing: -.025em;
}

.form-heading p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 12px;
}

.form-card {
    padding: 26px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}

.form-section {
    padding-bottom: 25px;
}

.form-section:last-child {
    padding-bottom: 0;
}

.form-section + .form-section {
    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.form-section-heading {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 19px;
}

.form-section-heading h2 {
    margin: 0 0 3px;

    font-size: 16px;
}

.form-section-heading p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 10px;
}

.step-number {
    width: 29px;
    height: 29px;

    flex: 0 0 29px;

    display: grid;
    place-items: center;

    background: var(--green-soft);

    border-radius: 50%;

    color: var(--raw-green-dark);

    font-size: 10px;
    font-weight: 850;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.form-full {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--text);

    font-size: 10px;
    font-weight: 750;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 43px;

    padding: 10px 12px;

    background: #ffffff;

    border: 1px solid var(--border-strong);
    border-radius: 9px;

    color: var(--text);

    outline: none;

    transition:
        border-color .14s ease,
        box-shadow .14s ease;
}

.form-group textarea {
    min-height: 100px;

    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--raw-green);

    box-shadow:
        0 0 0 3px rgba(8, 119, 71, .09);
}

.field-help {
    color: var(--muted);

    font-size: 9px;
}

.field-error {
    color: var(--red);

    font-size: 9px;
    font-weight: 650;
}

.form-actions {
    display: flex;
    justify-content: flex-end;

    gap: 9px;

    margin-top: 24px;
    padding-top: 19px;

    border-top: 1px solid var(--border);
}


/* =========================================================
   DJANGO MESSAGES
========================================================= */

.messages {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto 18px;
}

.message {
    padding: 11px 14px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 9px;

    color: var(--text);

    font-size: 11px;
}

.message.success {
    background: var(--green-soft);

    border-color: #cde5d7;

    color: var(--raw-green-dark);
}

.message.error {
    background: var(--red-soft);

    border-color: #f0d0cc;

    color: var(--red);
}


/* =========================================================
   MODALS
========================================================= */

.modal-backdrop {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(5, 35, 24, .5);
}

.modal-backdrop.modal-open {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 460px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow:
        0 24px 70px rgba(5, 35, 24, .22);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 21px 23px;

    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;

    font-size: 18px;
}

.modal-close {
    width: 33px;
    height: 33px;

    display: grid;
    place-items: center;

    padding: 0;

    background: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text-secondary);

    font-size: 20px;
}

.modal-body {
    padding: 23px;
}

.modal-body > p {
    color: var(--text-secondary);
}

.about-row {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 12px 0;

    border-top: 1px solid var(--border);

    font-size: 11px;
}

.about-row span {
    color: var(--text-secondary);
}

.settings-user {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 19px;
}

.settings-avatar {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    background: var(--green-soft);

    border-radius: 50%;

    color: var(--raw-green-dark);

    font-weight: 850;
}

.settings-user strong {
    display: block;
}

.settings-user p {
    margin: 2px 0 0;

    color: var(--muted);

    font-size: 10px;
}

.settings-note {
    margin: 0 !important;

    padding: 12px;

    background: var(--surface-soft);

    border-radius: 9px;

    color: var(--text-secondary);

    font-size: 10px;
}


/* =========================================================
   LEGACY SUMMARY
   Hidden because Operations no longer needs dashboard cards
========================================================= */

.operations-summary {
    display: none !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1250px) {

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

}


@media (max-width: 850px) {

    .app-shell .sidebar {
        width: var(--sidebar-collapsed);
    }

    .app-shell .main-content {
        margin-left: var(--sidebar-collapsed);

        padding-left: 22px;
        padding-right: 22px;
    }

    .app-shell .nav-text,
    .app-shell .sidebar-label {
        display: none;
    }

    .app-shell .nav-link {
        justify-content: center;
    }

    .brand-copy {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: auto;
    }

}


@media (max-width: 650px) {

    .sidebar,
    .sidebar-toggle {
        display: none;
    }

    .topbar {
        padding: 0 15px;
    }

    .main-content,
    .app-shell.sidebar-collapsed .main-content {
        margin-left: 0;

        padding:
            calc(var(--topbar-height) + 22px)
            14px
            30px;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .workspace-section,
    .compact-section,
    .form-card {
        padding: 17px;
    }

    .page-heading h1,
    .workspace-header h1 {
        font-size: 22px;
    }

    .user-meta {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
    }

}
CSS


/* =========================================================
   FINANCE WORKSPACE
========================================================= */

.finance-workspace {
    max-width: 1350px;
}

.finance-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 22px;
}

.finance-heading h1 {
    margin-bottom: 5px;
}

.page-description {
    max-width: 620px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 11px;
}

.finance-queue-count {
    display: inline-flex;
    align-items: center;

    padding: 7px 12px;

    background: var(--amber-soft);

    border: 1px solid #f1e2b9;
    border-radius: 20px;

    color: var(--amber);

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


/* List */

.finance-list {
    display: flex;
    flex-direction: column;

    gap: 11px;
}


/* Payment card */

.finance-payment-card {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        205px;

    min-height: 130px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 13px;

    box-shadow:
        0 1px 2px rgba(12, 43, 33, .02);

    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.finance-payment-card::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background: var(--raw-green);
}

.finance-payment-card:hover {
    transform: translateY(-1px);

    border-color: #bfd5c8;

    box-shadow:
        0 7px 20px rgba(12, 43, 33, .055);
}


/* Main information */

.finance-payment-main {
    display: grid;

    grid-template-columns:
        minmax(230px, 1.15fr)
        minmax(420px, 1.85fr);

    align-items: center;

    gap: 35px;

    padding: 20px 24px;
}


.finance-payment-label {
    margin-bottom: 4px;

    color: var(--raw-green);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .11em;
    text-transform: uppercase;
}


.finance-payment-business h2 {
    margin: 0 0 12px;

    color: var(--text);

    font-size: 16px;
    font-weight: 780;

    line-height: 1.3;

    letter-spacing: -.01em;
}


.finance-vendor {
    display: flex;
    align-items: center;

    gap: 9px;
}

.finance-vendor > div {
    display: flex;
    flex-direction: column;
}

.finance-vendor strong {
    color: var(--text);

    font-size: 10px;
    font-weight: 700;
}

.finance-vendor span:not(.supplier-avatar) {
    margin-top: 1px;

    color: var(--muted);

    font-size: 9px;
}


/* Details */

.finance-payment-details {
    display: grid;

    grid-template-columns:
        1.3fr 1fr 1fr;

    align-items: center;
}

.finance-detail {
    min-width: 0;

    padding: 4px 22px;

    border-left: 1px solid var(--border);
}

.finance-detail > span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.finance-detail > strong {
    display: block;

    color: var(--text);

    font-size: 11px;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.finance-detail .finance-amount {
    color: var(--raw-green-dark);

    font-size: 15px;
    font-weight: 850;

    white-space: nowrap;
}

.finance-amount small {
    margin-right: 3px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;
}


/* Action area */

.finance-payment-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;

    gap: 12px;

    padding: 20px;

    background:
        linear-gradient(
            180deg,
            #f9fcfa,
            #f5faf7
        );

    border-left: 1px solid var(--border);
}

.finance-payment-action .status {
    align-self: flex-start;
}

.finance-payment-action form {
    width: 100%;

    margin: 0;
}

.finance-action-btn {
    width: 100%;

    justify-content: space-between;

    min-height: 39px;

    padding-left: 13px;
    padding-right: 13px;
}


/* Empty finance queue */

.finance-empty {
    min-height: 330px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 15px;

    text-align: center;

    box-shadow: var(--shadow);
}

.finance-empty-mark {
    width: 47px;
    height: 47px;

    display: grid;
    place-items: center;

    margin-bottom: 14px;

    background: var(--green-soft);

    border-radius: 50%;

    color: var(--raw-green);

    font-size: 19px;
    font-weight: 900;
}

.finance-empty h2 {
    margin: 0 0 5px;

    font-size: 17px;
}

.finance-empty p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 11px;
}


/* Finance responsive */

@media (max-width: 1050px) {

    .finance-payment-card {
        grid-template-columns: 1fr;
    }

    .finance-payment-action {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .finance-payment-action form {
        width: auto;
    }

    .finance-action-btn {
        width: auto;
        min-width: 175px;
    }

}


@media (max-width: 800px) {

    .finance-payment-main {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .finance-payment-details {
        border-top: 1px solid var(--border);

        padding-top: 16px;
    }

    .finance-detail:first-child {
        border-left: 0;
        padding-left: 0;
    }

}


@media (max-width: 600px) {

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

    .finance-payment-details {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .finance-detail {
        padding: 0;

        border-left: 0;
    }

    .finance-payment-action {
        align-items: stretch;
        flex-direction: column;
    }

    .finance-payment-action form,
    .finance-action-btn {
        width: 100%;
    }

}


/* =========================================================
   FINANCE QUEUE NAVIGATION
========================================================= */

.finance-tabs {
    display: flex;
    align-items: center;

    gap: 4px;

    margin-bottom: 22px;
    padding: 4px;

    width: fit-content;

    background: #eaf0ec;

    border-radius: 10px;
}

.finance-tab {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 8px 12px;

    border-radius: 7px;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 700;
}

.finance-tab:hover {
    background: rgba(255, 255, 255, .6);

    color: var(--text);
}

.finance-tab.active {
    background: #ffffff;

    color: var(--raw-green-dark);

    box-shadow:
        0 1px 3px rgba(12, 43, 33, .08);
}

.finance-tab strong {
    min-width: 19px;
    height: 19px;

    display: inline-grid;
    place-items: center;

    padding: 0 5px;

    background: var(--green-soft);

    border-radius: 10px;

    color: var(--raw-green-dark);

    font-size: 8px;
}


/* =========================================================
   FINANCE SECTIONS
========================================================= */

.finance-section {
    margin-bottom: 28px;
}

.finance-section + .finance-section {
    padding-top: 3px;
}

.finance-inline-empty {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 17px 19px;

    background: rgba(255, 255, 255, .55);

    border: 1px dashed var(--border-strong);
    border-radius: 10px;

    color: var(--text-secondary);

    font-size: 10px;
}

.finance-inline-empty strong {
    color: var(--text);
}


/* =========================================================
   FINANCE SIMPLE ROWS
========================================================= */

.finance-simple-list {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.finance-simple-row {
    min-height: 72px;

    display: grid;

    grid-template-columns:
        minmax(260px, 1.7fr)
        minmax(180px, .8fr)
        minmax(150px, .7fr);

    align-items: center;

    gap: 22px;

    padding: 14px 18px;

    border-bottom: 1px solid var(--border);
}

.finance-simple-row:last-child {
    border-bottom: 0;
}

.finance-simple-row:hover {
    background: #f9fcfa;
}

.finance-action-row {
    grid-template-columns:
        minmax(260px, 1.7fr)
        minmax(180px, .8fr)
        minmax(140px, .7fr)
        auto;
}

.finance-simple-name,
.finance-simple-amount,
.finance-approved-by {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.finance-simple-name strong {
    color: var(--text);

    font-size: 11px;
}

.finance-simple-name span,
.finance-simple-amount span,
.finance-approved-by span {
    color: var(--muted);

    font-size: 9px;
}

.finance-simple-amount strong {
    color: var(--raw-green-dark);

    font-size: 12px;
}

.finance-approved-by strong {
    color: var(--text);

    font-size: 10px;
}


/* Rejected should be secondary, not an action queue */

.finance-rejected-section {
    margin-top: 34px;

    opacity: .92;
}


@media (max-width: 850px) {

    .finance-tabs {
        width: 100%;

        overflow-x: auto;
    }

    .finance-tab {
        flex: 0 0 auto;
    }

    .finance-simple-row,
    .finance-action-row {
        grid-template-columns: 1fr;

        gap: 10px;
    }

}


/* =========================================================
   PAYMENT EXECUTION
========================================================= */

.payment-execution-page {
    max-width: 1180px;
}

.payment-execution-card,
.payment-form-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(12, 43, 33, .04);
}

.payment-execution-card {
    margin-top: 24px;
    overflow: hidden;
}

.payment-execution-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;

    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.payment-context-label {
    display: block;
    margin-bottom: 6px;

    color: var(--raw-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.payment-execution-header h2 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 23px;
}

.payment-execution-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}


/* ---------------------------------------------------------
   PAYMENT SUMMARY
--------------------------------------------------------- */

.payment-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.payment-balance-item {
    min-width: 0;
    padding: 21px 27px;
    border-right: 1px solid var(--border);
}

.payment-balance-item:last-child {
    border-right: 0;
}

.payment-balance-item span {
    display: block;
    margin-bottom: 7px;

    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.payment-balance-item strong {
    display: flex;
    align-items: baseline;
    gap: 6px;

    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
}

.payment-balance-item strong small {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
}

.payment-balance-outstanding {
    background: #f3faf6;
}

.payment-balance-outstanding strong {
    color: var(--raw-green-dark);
}

.payment-date-value {
    font-size: 14px !important;
}


/* ---------------------------------------------------------
   FORM CARD
--------------------------------------------------------- */

.payment-form-card {
    margin-top: 20px;
    padding: 28px;
}

.payment-form-heading {
    padding-bottom: 20px;
    margin-bottom: 22px;

    border-bottom: 1px solid var(--border);
}

.payment-form-heading h2 {
    margin: 4px 0 5px;

    color: var(--text);
    font-size: 19px;
}

.payment-form-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
}


/* ---------------------------------------------------------
   FORM
--------------------------------------------------------- */

.payment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 22px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--text);
    font-size: 11px;
    font-weight: 750;
}

.payment-record-form input,
.payment-record-form select,
.payment-record-form textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 13px;

    background: #ffffff;

    border: 1px solid var(--border-strong);
    border-radius: 8px;

    color: var(--text);
    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.payment-record-form input,
.payment-record-form select {
    min-height: 43px;
}

.payment-record-form textarea {
    min-height: 90px;
    resize: vertical;
}

.payment-record-form input:focus,
.payment-record-form select:focus,
.payment-record-form textarea:focus {
    border-color: var(--raw-green);
    box-shadow: 0 0 0 3px rgba(16, 122, 82, .09);
}

.field-hint {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.field-error {
    color: #b42318;
    font-size: 10px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   FORM FOOTER
--------------------------------------------------------- */

.payment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    margin-top: 27px;
    padding-top: 22px;

    border-top: 1px solid var(--border);
}

.payment-form-warning {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-form-warning strong {
    color: var(--text);
    font-size: 10px;
}

.payment-form-warning span {
    color: var(--muted);
    font-size: 10px;
}

.payment-form-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 900px) {

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

    .payment-balance-item:nth-child(2) {
        border-right: 0;
    }

    .payment-balance-item {
        border-bottom: 1px solid var(--border);
    }

    .payment-form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }
}

@media (max-width: 600px) {

    .payment-execution-header,
    .payment-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

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

    .payment-balance-item {
        border-right: 0;
    }

    .payment-form-card {
        padding: 20px;
    }

    .payment-form-actions {
        width: 100%;
    }

    .payment-form-actions .btn {
        flex: 1;
    }
}


/* =========================================================
   PAYMENT VERIFICATION
========================================================= */

.verification-page,
.verify-review-page {
    max-width: 1250px;
}

.verification-section {
    margin-top: 28px;
}

.verification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.verification-card {
    display: grid;
    grid-template-columns: 1fr 220px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-left: 4px solid var(--raw-green);
    border-radius: 12px;
}

.verification-main {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) 180px 1.5fr;
    align-items: center;
    gap: 28px;

    padding: 21px 24px;
}

.verification-business {
    display: block;

    margin-bottom: 5px;

    color: var(--raw-green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.verification-vendor h3 {
    margin: 0 0 4px;

    color: var(--text);
    font-size: 17px;
}

.verification-vendor p {
    margin: 0;

    color: var(--muted);
    font-size: 10px;
}

.verification-amount {
    padding-left: 24px;

    border-left: 1px solid var(--border);
}

.verification-amount span,
.verification-payment-info span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.verification-amount strong {
    color: var(--raw-green-dark);
    font-size: 16px;
}

.verification-amount small {
    margin-right: 4px;

    color: var(--muted);
    font-size: 9px;
}

.verification-payment-info {
    display: grid;
    grid-template-columns: 1.3fr .8fr .8fr;
    gap: 20px;
}

.verification-payment-info strong {
    color: var(--text);
    font-size: 10px;
}

.verification-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;

    padding: 18px 20px;

    background: #f8fbf9;
    border-left: 1px solid var(--border);
}

.proof-ready {
    color: var(--raw-green-dark);
    font-size: 9px;
    font-weight: 750;
}


/* Empty state */

.verification-empty {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 25px;

    background: #ffffff;

    border: 1px dashed var(--border-strong);
    border-radius: 12px;
}

.verification-empty-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    background: var(--green-soft);
    border-radius: 50%;

    color: var(--raw-green-dark);
    font-weight: 800;
}

.verification-empty strong,
.verification-empty span {
    display: block;
}

.verification-empty strong {
    margin-bottom: 3px;

    color: var(--text);
    font-size: 12px;
}

.verification-empty span {
    color: var(--muted);
    font-size: 10px;
}


/* =========================================================
   VERIFIED HISTORY
========================================================= */

.verification-history {
    margin-top: 38px;
}

.verified-list {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.verified-row {
    display: grid;
    grid-template-columns:
        minmax(230px, 1.5fr)
        minmax(160px, .8fr)
        minmax(140px, .7fr)
        120px
        100px;

    align-items: center;
    gap: 20px;

    padding: 15px 20px;

    border-bottom: 1px solid var(--border);
}

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

.verified-payee,
.verified-person {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.verified-payee strong,
.verified-amount strong,
.verified-person strong {
    color: var(--text);
    font-size: 10px;
}

.verified-payee span,
.verified-person span,
.verified-date {
    color: var(--muted);
    font-size: 9px;
}

.verified-amount strong {
    color: var(--raw-green-dark);
}

.verified-badge {
    padding: 6px 9px;

    background: var(--green-soft);
    border-radius: 999px;

    color: var(--raw-green-dark);

    font-size: 8px;
    font-weight: 800;

    text-align: center;
}


/* =========================================================
   VERIFY PAYMENT REVIEW
========================================================= */

.verify-summary-card,
.verify-transaction-card,
.verify-confirm-card {
    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 13px;
}

.verify-summary-card {
    margin-top: 24px;
}

.verify-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 23px 26px;
}

.verify-summary-header h2 {
    margin: 0 0 4px;

    color: var(--text);
    font-size: 21px;
}

.verify-summary-header p {
    margin: 0;

    color: var(--muted);
    font-size: 10px;
}

.verify-total {
    min-width: 180px;

    padding-left: 25px;

    border-left: 1px solid var(--border);
}

.verify-total span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.verify-total strong {
    color: var(--raw-green-dark);
    font-size: 19px;
}

.verify-total small {
    margin-right: 4px;

    color: var(--muted);
    font-size: 9px;
}


/* Transactions */

.verify-transactions {
    margin-top: 28px;
}

.verify-transaction-card {
    margin-bottom: 12px;
    overflow: hidden;
}

.verify-transaction-details {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 22px;

    padding: 20px 23px;
}

.verify-transaction-details div {
    min-width: 0;
}

.verify-transaction-details span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.verify-transaction-details strong {
    color: var(--text);
    font-size: 10px;
}


/* Evidence */

.verify-evidence {
    padding: 16px 23px 19px;

    background: #f8fbf9;
    border-top: 1px solid var(--border);
}

.verify-evidence-heading {
    display: flex;
    justify-content: space-between;

    margin-bottom: 11px;
}

.verify-evidence-heading span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .07em;
}

.verify-evidence-heading strong {
    color: var(--raw-green-dark);
    font-size: 9px;
}

.evidence-file {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 13px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 8px;
}

.evidence-file + .evidence-file {
    margin-top: 8px;
}

.evidence-file-icon {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    background: var(--green-soft);
    border-radius: 7px;

    color: var(--raw-green-dark);
}

.evidence-file-info {
    min-width: 0;
    flex: 1;
}

.evidence-file-info strong,
.evidence-file-info span {
    display: block;
}

.evidence-file-info strong {
    overflow: hidden;

    color: var(--text);
    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.evidence-file-info span {
    margin-top: 2px;

    color: var(--muted);
    font-size: 8px;
}


/* Confirmation */

.verify-confirm-card {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 45px;

    margin-top: 28px;
    padding: 25px 27px;
}

.verify-confirm-copy h2 {
    margin: 4px 0 6px;

    color: var(--text);
    font-size: 18px;
}

.verify-confirm-copy p {
    margin: 0;

    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.verify-confirm-form textarea {
    width: 100%;
    min-height: 80px;

    box-sizing: border-box;

    padding: 11px 12px;

    border: 1px solid var(--border-strong);
    border-radius: 8px;

    font-family: inherit;
    font-size: 11px;

    resize: vertical;
}

.verify-confirm-form textarea:focus {
    outline: none;

    border-color: var(--raw-green);

    box-shadow:
        0 0 0 3px rgba(16, 122, 82, .09);
}

.optional-label {
    margin-left: 4px;

    color: var(--muted);
    font-weight: 500;
}

.verify-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;

    margin-top: 17px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .verification-card {
        grid-template-columns: 1fr;
    }

    .verification-main {
        grid-template-columns: 1fr 1fr;
    }

    .verification-payment-info {
        grid-column: 1 / -1;
    }

    .verification-action {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .verified-row {
        grid-template-columns: 1fr 1fr;
    }

    .verify-transaction-details {
        grid-template-columns: 1fr 1fr;
    }

    .verify-confirm-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 650px) {

    .verification-main,
    .verification-payment-info,
    .verify-transaction-details {
        grid-template-columns: 1fr;
    }

    .verification-amount {
        padding-left: 0;
        border-left: 0;
    }

    .verified-row {
        grid-template-columns: 1fr;
    }

    .verify-summary-header {
        flex-direction: column;
        align-items: stretch;
    }

    .verify-total {
        padding-left: 0;
        padding-top: 15px;

        border-left: 0;
        border-top: 1px solid var(--border);
    }
}
/* =========================================================
   CEO / EXECUTIVE DASHBOARD
========================================================= */

.ceo-workspace {
    max-width: 1450px;
}

.ceo-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 28px;
}

.ceo-heading h1 {
    margin: 3px 0 5px;

    color: var(--text);
    font-size: 28px;
    line-height: 1.15;
}

.ceo-heading > div > p:last-child {
    margin: 0;

    color: var(--muted);
    font-size: 11px;
}

.ceo-date {
    padding-top: 19px;

    color: var(--muted);
    font-size: 10px;
}


/* KPI cards */

.ceo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;

    margin-bottom: 34px;
}

.ceo-kpi {
    min-height: 135px;

    padding: 20px 21px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-top: 3px solid var(--raw-green);
    border-radius: 12px;
}

.ceo-kpi-danger {
    border-top-color: #b84b4b;
}

.ceo-kpi-success {
    border-top-color: var(--raw-green-dark);
}

.ceo-kpi-label {
    margin-bottom: 13px;

    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ceo-kpi-number {
    display: block;

    margin-bottom: 12px;

    color: var(--text);
    font-size: 30px;
    line-height: 1;
}

.ceo-currency-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ceo-currency-list span {
    padding: 5px 8px;

    background: var(--green-soft);
    border-radius: 6px;

    color: var(--raw-green-dark);
    font-size: 9px;
    font-weight: 700;
}


/* Sections */

.ceo-section {
    margin-top: 34px;
}

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


/* Attention */

.ceo-attention-list {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.ceo-attention-row {
    display: grid;
    grid-template-columns:
        minmax(230px, 1.5fr)
        minmax(150px, .7fr)
        minmax(150px, .7fr)
        145px;

    align-items: center;
    gap: 20px;

    padding: 16px 20px;

    border-bottom: 1px solid var(--border);
}

.ceo-attention-row:last-child {
    border-bottom: 0;
}

.ceo-attention-row > div:first-child strong,
.ceo-attention-row > div:first-child span {
    display: block;
}

.ceo-attention-row > div:first-child strong {
    color: var(--text);
    font-size: 11px;
}

.ceo-attention-row > div:first-child span {
    margin-top: 3px;

    color: var(--muted);
    font-size: 9px;
}

.ceo-money small {
    margin-right: 4px;

    color: var(--muted);
    font-size: 8px;
}

.ceo-money strong {
    color: var(--raw-green-dark);
    font-size: 12px;
}

.ceo-due-label {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);
    font-size: 8px;
}

.ceo-attention-row > div:nth-child(3) strong {
    color: var(--text);
    font-size: 10px;
}

.attention-badge {
    justify-self: end;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 800;
}

.attention-danger {
    background: #fff0ef;
    color: #a23d38;
}

.attention-warning {
    background: #fff7df;
    color: #886515;
}

.ceo-clear-state {
    padding: 22px;

    background: #ffffff;

    border: 1px dashed var(--border-strong);
    border-radius: 12px;
}

.ceo-clear-state strong,
.ceo-clear-state span {
    display: block;
}

.ceo-clear-state strong {
    color: var(--raw-green-dark);
    font-size: 11px;
}

.ceo-clear-state span {
    margin-top: 4px;

    color: var(--muted);
    font-size: 9px;
}


/* Executive tables */

.ceo-table {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.ceo-table-head,
.ceo-table-row {
    display: grid;

    grid-template-columns:
        minmax(180px, 1.3fr)
        minmax(170px, 1fr)
        minmax(150px, .9fr)
        minmax(130px, .7fr)
        minmax(125px, .7fr)
        minmax(120px, .7fr);

    align-items: center;
    gap: 18px;

    padding: 14px 18px;
}

.ceo-table-head {
    background: #f8fbf9;

    border-bottom: 1px solid var(--border);

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ceo-table-row {
    min-height: 48px;

    border-bottom: 1px solid var(--border);

    color: var(--muted);
    font-size: 9px;
}

.ceo-table-row:last-child {
    border-bottom: 0;
}

.ceo-table-row > strong:first-child {
    color: var(--text);
    font-size: 10px;
}

.ceo-money-inline {
    color: var(--raw-green-dark) !important;
}

.ceo-payment-columns {
    grid-template-columns:
        minmax(210px, 1.4fr)
        minmax(190px, 1fr)
        minmax(150px, .8fr)
        minmax(140px, .8fr)
        minmax(140px, .8fr);
}

.ceo-table-empty {
    padding: 25px;

    color: var(--muted);
    font-size: 10px;
    text-align: center;
}


/* Business overview */

.ceo-business-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ceo-business-card {
    min-height: 155px;

    padding: 18px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-top: 3px solid var(--raw-green);
    border-radius: 11px;
}

.ceo-business-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--muted);
    font-size: 8px;
}

.ceo-business-card h3 {
    margin: 17px 0 5px;

    color: var(--text);
    font-size: 14px;
}

.ceo-business-card > p {
    min-height: 30px;

    margin: 0;

    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.ceo-business-stats {
    display: flex;
    gap: 30px;

    margin-top: 18px;
    padding-top: 13px;

    border-top: 1px solid var(--border);
}

.ceo-business-stats strong {
    margin-right: 4px;

    color: var(--raw-green-dark);
    font-size: 14px;
}

.ceo-business-stats span {
    color: var(--muted);
    font-size: 8px;
}


/* Responsive */

@media (max-width: 1100px) {

    .ceo-kpi-grid,
    .ceo-business-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ceo-table {
        overflow-x: auto;
    }

    .ceo-table-head,
    .ceo-table-row {
        min-width: 900px;
    }

    .ceo-attention-row {
        grid-template-columns: 1fr 1fr;
    }

    .attention-badge {
        justify-self: start;
    }
}

@media (max-width: 650px) {

    .ceo-heading {
        flex-direction: column;
    }

    .ceo-date {
        padding-top: 0;
    }

    .ceo-kpi-grid,
    .ceo-business-grid,
    .ceo-attention-row {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   CEO DASHBOARD — ACCESSIBLE EXECUTIVE VIEW
   Large, high-contrast, easy to scan
========================================================= */

.ceo-dashboard {
    max-width: 1500px;
    margin: 0 auto;
    padding: 38px 34px 60px;
}

/* ---------- HEADER ---------- */

.ceo-dashboard .eyebrow,
.ceo-dashboard .section-kicker {
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .11em;
}

.ceo-dashboard h1 {
    font-size: 36px !important;
    line-height: 1.15;
    margin: 8px 0 8px;
}

.ceo-dashboard .page-subtitle,
.ceo-dashboard .section-description {
    font-size: 16px !important;
    line-height: 1.5;
    color: #66736d !important;
}

.ceo-dashboard .executive-date {
    font-size: 14px !important;
    font-weight: 600;
}


/* ---------- TOP KPI CARDS ---------- */

.ceo-dashboard .executive-metrics {
    gap: 20px;
    margin-top: 32px;
}

.ceo-dashboard .executive-metric {
    min-height: 150px;
    padding: 25px 27px;
    border-radius: 15px;
}

.ceo-dashboard .executive-metric-label {
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .06em;
}

.ceo-dashboard .executive-metric-value {
    margin-top: 13px;
    font-size: 38px !important;
    line-height: 1;
    font-weight: 800;
}

.ceo-dashboard .executive-money-pill {
    display: inline-flex;
    align-items: center;

    margin-top: 17px;
    margin-right: 7px;
    padding: 8px 11px;

    font-size: 12px !important;
    font-weight: 750;

    border-radius: 8px;
}


/* ---------- SECTIONS ---------- */

.ceo-dashboard .executive-section {
    margin-top: 48px;
}

.ceo-dashboard .executive-section h2 {
    margin: 6px 0;
    font-size: 25px !important;
    line-height: 1.2;
}

.ceo-dashboard .section-count {
    min-width: 38px;
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px !important;
    font-weight: 800;
}


/* ---------- ATTENTION ROWS ---------- */

.ceo-dashboard .attention-row {
    min-height: 88px;
    padding: 20px 25px;
}

.ceo-dashboard .attention-row strong {
    font-size: 15px !important;
}

.ceo-dashboard .attention-row span,
.ceo-dashboard .attention-row small {
    font-size: 13px !important;
    line-height: 1.45;
}

.ceo-dashboard .attention-amount strong {
    font-size: 18px !important;
}

.ceo-dashboard .attention-date strong {
    font-size: 14px !important;
}

.ceo-dashboard .status-pill {
    min-width: 95px;
    padding: 8px 12px;

    font-size: 11px !important;
    font-weight: 800;
}


/* ---------- PAYMENT TABLE ---------- */

.ceo-dashboard .executive-table th {
    padding: 15px 20px;

    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .06em;
}

.ceo-dashboard .executive-table td {
    padding: 20px;

    font-size: 14px !important;
    line-height: 1.4;
}

.ceo-dashboard .executive-table td strong {
    font-size: 14px !important;
}

.ceo-dashboard .executive-table td small {
    font-size: 12px !important;
}

.ceo-dashboard .executive-table .money {
    font-size: 15px !important;
    font-weight: 800;
}


/* ---------- BUSINESS CARDS ---------- */

.ceo-dashboard .executive-business-grid {
    gap: 20px;
}

.ceo-dashboard .executive-business-card {
    min-height: 190px;
    padding: 23px;
    border-radius: 14px;
}

.ceo-dashboard .executive-business-card .business-type {
    padding: 7px 10px;

    font-size: 10px !important;
    font-weight: 800;
}

.ceo-dashboard .executive-business-card .business-date {
    font-size: 11px !important;
}

.ceo-dashboard .executive-business-card h3 {
    margin: 19px 0 8px;

    font-size: 20px !important;
    line-height: 1.25;
}

.ceo-dashboard .executive-business-card p {
    min-height: 42px;

    font-size: 13px !important;
    line-height: 1.5;
}

.ceo-dashboard .business-stats strong {
    font-size: 20px !important;
}

.ceo-dashboard .business-stats span {
    font-size: 11px !important;
}


/* ---------- RECENT PAYMENTS ---------- */

.ceo-dashboard .recent-payment-row {
    min-height: 76px;
    padding: 18px 22px;
}

.ceo-dashboard .recent-payment-row strong {
    font-size: 14px !important;
}

.ceo-dashboard .recent-payment-row span,
.ceo-dashboard .recent-payment-row small {
    font-size: 12px !important;
}


/* ---------- GENERAL READABILITY ---------- */

.ceo-dashboard {
    color: #17231e;
}

.ceo-dashboard .muted,
.ceo-dashboard small {
    color: #69766f;
}

/* Don't squeeze everything onto one screen.
   Executive readability is more important. */

@media (max-width: 1200px) {
    .ceo-dashboard .executive-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .ceo-dashboard .executive-business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .ceo-dashboard {
        padding: 25px 18px 50px;
    }

    .ceo-dashboard h1 {
        font-size: 30px !important;
    }

    .ceo-dashboard .executive-metrics,
    .ceo-dashboard .executive-business-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   CEO EXECUTIVE DASHBOARD — FINAL OVERRIDE
   Large-format management interface
========================================================= */

.ceo-workspace {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 38px 42px 70px;
    box-sizing: border-box;
    color: #17231e;
}


/* Header */

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

.ceo-eyebrow {
    margin: 0 0 8px;
    color: #087c50;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ceo-heading h1 {
    margin: 0;
    color: #17231e;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.025em;
}

.ceo-intro {
    margin: 10px 0 0;
    color: #66756e;
    font-size: 17px;
    line-height: 1.5;
}

.ceo-date {
    padding-top: 27px;
    color: #596a62;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
   KPI CARDS
========================================================= */

.ceo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 52px;
}

.ceo-kpi {
    min-height: 165px;
    padding: 25px 26px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d7e1dc;
    border-top: 4px solid #078454;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(17, 53, 38, .045);
}

.ceo-kpi-danger {
    border-top-color: #c94747;
}

.ceo-kpi-success {
    border-top-color: #056b45;
}

.ceo-kpi-label {
    display: block;
    margin-bottom: 12px;
    color: #5f6f67;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ceo-kpi-number {
    display: block;
    margin-bottom: 14px;
    color: #17231e;
    font-size: 40px;
    line-height: 1;
    font-weight: 800;
}

.ceo-currency-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ceo-currency-list span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 5px 10px;
    box-sizing: border-box;
    background: #eaf6f0;
    border-radius: 7px;
    color: #075d40;
    font-size: 13px;
    font-weight: 750;
}


/* =========================================================
   SECTIONS
========================================================= */

.ceo-section {
    margin-top: 52px;
}

.ceo-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 19px;
}

.ceo-section-heading h2 {
    margin: 0;
    color: #17231e;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.015em;
}

.ceo-section-heading > div > p:last-child {
    margin: 7px 0 0;
    color: #6a7972;
    font-size: 16px;
    line-height: 1.45;
}

.ceo-section-count {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    background: #eaf6f0;
    border: 1px solid #d1e9de;
    border-radius: 50px;
    color: #075f41;
    font-size: 15px;
    font-weight: 800;
}


/* =========================================================
   ATTENTION ITEMS
========================================================= */

.ceo-attention-list {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d7e1dc;
    border-radius: 14px;
}

.ceo-attention-row {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.6fr)
        minmax(190px, .8fr)
        minmax(170px, .7fr)
        minmax(170px, .6fr);
    align-items: center;
    gap: 28px;
    min-height: 105px;
    padding: 20px 26px;
    box-sizing: border-box;
    border-bottom: 1px solid #e0e7e3;
}

.ceo-attention-row:last-child {
    border-bottom: 0;
}

.ceo-attention-payee strong {
    display: block;
    margin-bottom: 7px;
    color: #17231e;
    font-size: 18px;
    font-weight: 800;
}

.ceo-attention-payee span {
    display: block;
    color: #65756d;
    font-size: 14px;
    line-height: 1.4;
}

.ceo-attention-amount > span,
.ceo-attention-due > span {
    display: block;
    margin-bottom: 6px;
    color: #829089;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
}

.ceo-attention-amount strong {
    color: #086342;
    font-size: 19px;
    font-weight: 800;
}

.ceo-attention-amount small {
    margin-right: 4px;
    color: #66766e;
    font-size: 13px;
    font-weight: 700;
}

.ceo-attention-due strong {
    color: #17231e;
    font-size: 16px;
    font-weight: 750;
}

.attention-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 13px;
    box-sizing: border-box;
    border-radius: 50px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
}

.attention-danger {
    background: #fdecec;
    color: #b72d2d;
}

.attention-warning {
    background: #fff3d7;
    color: #8a5d00;
}


/* =========================================================
   PAYMENT LISTS
========================================================= */

.ceo-payment-list {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d7e1dc;
    border-radius: 14px;
}

.ceo-payment-row {
    display: grid;
    grid-template-columns:
        minmax(300px, 1.5fr)
        minmax(200px, .8fr)
        minmax(180px, .7fr)
        minmax(180px, .7fr);
    align-items: center;
    gap: 30px;
    min-height: 105px;
    padding: 20px 26px;
    box-sizing: border-box;
    border-bottom: 1px solid #e0e7e3;
}

.ceo-payment-row:last-child {
    border-bottom: 0;
}

.ceo-payment-row:hover {
    background: #fafcfb;
}

.ceo-payment-payee strong {
    display: block;
    margin-bottom: 7px;
    color: #17231e;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.ceo-payment-payee span {
    display: block;
    color: #65756d;
    font-size: 14px;
    line-height: 1.4;
}

.ceo-payment-amount > span,
.ceo-payment-due > span,
.ceo-paid-by > span {
    display: block;
    margin-bottom: 6px;
    color: #829089;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
}

.ceo-payment-amount strong {
    color: #086342;
    font-size: 18px;
    font-weight: 800;
}

.ceo-payment-due strong,
.ceo-paid-by strong {
    color: #17231e;
    font-size: 15px;
    font-weight: 750;
}

.ceo-payment-status .status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 14px;
    box-sizing: border-box;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   ACTIVE BUSINESSES
========================================================= */

.ceo-business-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ceo-business-card {
    min-height: 235px;
    padding: 24px 25px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d7e1dc;
    border-top: 4px solid #078454;
    border-radius: 14px;
}

.ceo-business-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 21px;
}

.ceo-business-card .business-type {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    box-sizing: border-box;
    background: #eaf6f0;
    border-radius: 50px;
    color: #075f41;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ceo-business-date {
    color: #738179;
    font-size: 13px;
    font-weight: 600;
}

.ceo-business-card h3 {
    margin: 0 0 9px;
    color: #17231e;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 800;
}

.ceo-business-card > p {
    min-height: 45px;
    margin: 0;
    color: #687870;
    font-size: 14px;
    line-height: 1.55;
}

.ceo-business-stats {
    display: flex;
    gap: 38px;
    margin-top: 24px;
    padding-top: 19px;
    border-top: 1px solid #dce4e0;
}

.ceo-business-stats > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ceo-business-stats strong {
    color: #08704a;
    font-size: 24px;
    font-weight: 800;
}

.ceo-business-stats span {
    color: #64746c;
    font-size: 13px;
    font-weight: 650;
}


/* =========================================================
   EMPTY STATES
========================================================= */

.ceo-empty,
.ceo-clear-state {
    padding: 27px;
    background: #ffffff;
    border: 1px solid #d7e1dc;
    border-radius: 14px;
    color: #63736b;
    font-size: 15px;
}

.ceo-clear-state strong,
.ceo-clear-state span {
    display: block;
}

.ceo-clear-state strong {
    margin-bottom: 5px;
    color: #08704a;
    font-size: 17px;
}


/* =========================================================
   CEO RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .ceo-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ceo-attention-row,
    .ceo-payment-row {
        grid-template-columns: 1.3fr 1fr;
    }
}

@media (max-width: 800px) {

    .ceo-workspace {
        padding: 26px 20px 55px;
    }

    .ceo-heading {
        flex-direction: column;
        gap: 8px;
    }

    .ceo-date {
        padding-top: 0;
    }

    .ceo-heading h1 {
        font-size: 31px;
    }

    .ceo-kpi-grid,
    .ceo-business-grid,
    .ceo-attention-row,
    .ceo-payment-row {
        grid-template-columns: 1fr;
    }

    .ceo-attention-row,
    .ceo-payment-row {
        gap: 18px;
    }
}


/* =========================================================
   FINAL READABILITY PASS
   Stephen + Abdulahi + Ibrahim
   Keep this block at the END of payops.css
========================================================= */

/* ---------- Shared workspace ---------- */

.workspace {
    font-size: 16px;
    line-height: 1.55;
}

.workspace .page-heading h1 {
    font-size: 34px !important;
    line-height: 1.15;
    font-weight: 800;
}

.workspace .eyebrow,
.workspace .section-kicker {
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .12em;
}

.workspace .page-description,
.workspace .section-heading > div > p {
    font-size: 16px !important;
    line-height: 1.5;
}

.workspace .section-heading h2 {
    font-size: 26px !important;
    line-height: 1.2;
}

.workspace .section-count,
.workspace .approval-count {
    font-size: 14px !important;
}


/* =========================================================
   STEPHEN / OPERATIONS
========================================================= */

.business-type,
.business-date {
    font-size: 13px !important;
}

.business-card-content h3 {
    font-size: 21px !important;
    line-height: 1.3;
}

.business-card-content p {
    font-size: 15px !important;
    line-height: 1.55;
}

.business-stats strong {
    font-size: 21px !important;
}

.business-stats span {
    font-size: 13px !important;
}

.danger-link {
    font-size: 14px !important;
}

.data-table {
    font-size: 15px !important;
}

.data-table th {
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .06em;
}

.data-table td {
    font-size: 15px !important;
    line-height: 1.4;
}

.data-table .supplier-cell strong,
.data-table .money {
    font-size: 16px !important;
    font-weight: 750;
}

.data-table .currency {
    font-size: 12px !important;
}

.business-reference,
.date-cell {
    font-size: 14px !important;
}


/* =========================================================
   ABDULAHI / FINANCE
========================================================= */

.finance-tabs {
    min-height: 64px;
}

.finance-tab {
    padding: 17px 20px !important;
}

.finance-tab span {
    font-size: 15px !important;
    font-weight: 700;
}

.finance-tab strong {
    font-size: 13px !important;
}

.finance-section {
    margin-top: 38px;
}

.finance-payment-label {
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .08em;
}

.finance-payment-business h2 {
    font-size: 24px !important;
    line-height: 1.25;
}

.finance-vendor strong {
    font-size: 16px !important;
}

.finance-vendor span {
    font-size: 14px !important;
}

.finance-detail > span {
    font-size: 12px !important;
    font-weight: 750;
}

.finance-detail > strong {
    font-size: 16px !important;
}

.finance-amount {
    font-size: 22px !important;
}

.finance-amount small {
    font-size: 12px !important;
}

.finance-payment-action .status {
    font-size: 13px !important;
}

.finance-action-btn {
    min-height: 50px;
    padding: 0 22px !important;
    font-size: 15px !important;
}

.finance-simple-row {
    min-height: 92px;
}

.finance-simple-name strong {
    font-size: 17px !important;
}

.finance-simple-name span {
    font-size: 14px !important;
}

.finance-simple-amount strong {
    font-size: 18px !important;
}

.finance-simple-amount span {
    font-size: 13px !important;
}

.finance-approved-by span {
    font-size: 12px !important;
}

.finance-approved-by strong {
    font-size: 16px !important;
}

.finance-simple-row .status {
    font-size: 13px !important;
}

.finance-inline-empty strong {
    font-size: 16px !important;
}

.finance-inline-empty span {
    font-size: 14px !important;
}


/* =========================================================
   IBRAHIM / APPROVER
========================================================= */

.approval-business-label {
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .08em;
}

.approval-identity h2 {
    font-size: 24px !important;
    line-height: 1.25;
}

.approval-context,
.approval-context strong,
.approval-context span {
    font-size: 15px !important;
}

.approval-description {
    font-size: 15px !important;
    line-height: 1.55;
}

.approval-detail > span,
.approval-people span {
    font-size: 12px !important;
    font-weight: 700;
}

.approval-detail > strong,
.approval-people strong {
    font-size: 16px !important;
}

.approval-amount strong {
    font-size: 23px !important;
}

.approval-amount small {
    font-size: 12px !important;
}

.approval-card-action .status {
    font-size: 13px !important;
}

.approval-btn {
    min-height: 48px;
    padding: 0 20px !important;
    font-size: 15px !important;
    font-weight: 750;
}

.approval-empty h2 {
    font-size: 24px !important;
}

.approval-empty p {
    font-size: 16px !important;
}


/* =========================================================
   SHARED BUTTONS + STATUS
========================================================= */

.workspace .btn {
    font-size: 15px !important;
    font-weight: 750;
}

.workspace .btn-small {
    min-height: 44px;
    padding: 0 18px !important;
    font-size: 14px !important;
}

.workspace .status {
    padding: 8px 12px;
    font-size: 13px !important;
    line-height: 1.2;
}


/* =========================================================
   SIDEBAR READABILITY
========================================================= */

.sidebar a,
.sidebar button,
.app-sidebar a,
.app-sidebar button {
    font-size: 15px !important;
}


/* =========================================================
   TABLE BREATHING ROOM
========================================================= */

.workspace .data-table th {
    padding-top: 15px;
    padding-bottom: 15px;
}

.workspace .data-table td {
    padding-top: 18px;
    padding-bottom: 18px;
}


/* =========================================================
   SMALL SCREEN
========================================================= */

@media (max-width: 800px) {

    .workspace .page-heading h1 {
        font-size: 29px !important;
    }

    .workspace .section-heading h2 {
        font-size: 23px !important;
    }

    .finance-payment-business h2,
    .approval-identity h2 {
        font-size: 21px !important;
    }

    .data-table {
        font-size: 14px !important;
    }
}

/* =========================================================
   INLINE FORM ACTIONS
========================================================= */

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.field-add-link {
    color: var(--raw-green-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.field-add-link:hover {
    text-decoration: underline;
}

.field-help {
    display: block;
    margin-top: 6px;

    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.form-note {
    margin-top: 20px;
    padding: 14px 16px;

    background: #f7faf8;
    border: 1px solid var(--border);
    border-radius: 9px;

    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.55;
}

.form-note strong {
    display: block;
    margin-bottom: 3px;

    color: var(--text);
}
/* =========================================================
   PAYMENT REQUEST — ADD SUPPLIER ACTION
========================================================= */

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.field-label-row label {
    margin: 0;
}

.field-add-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 12px;

    background: #e8f5ee;
    border: 1px solid #b8ddc9;
    border-radius: 7px;

    color: #087a4b !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;

    cursor: pointer;
}

.field-add-link:hover {
    background: #d9efe4;
    border-color: #088553;
    color: #065f3b !important;
}


/* =========================================================
   OPERATIONS — PAYMENT REQUEST EDIT ACTION
========================================================= */

.request-status-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.request-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 5px 11px;

    background: #ffffff;

    border: 1px solid var(--border-strong);
    border-radius: 7px;

    color: var(--raw-green-dark);

    font-size: 11px;
    font-weight: 750;
    text-decoration: none;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.request-edit-link:hover {
    background: var(--green-soft);
    border-color: var(--raw-green);
    color: var(--raw-green-dark);
    transform: translateY(-1px);
}
/* ========================================
   PAYMENT REQUEST — FORM SECTIONS
======================================== */

.form-section {
    margin-bottom: 32px;
}

.form-section + .form-section {
    border-top: 1px solid #e5e9ef;
    padding-top: 28px;
}

.form-section-heading {
    margin-bottom: 22px;
}

.form-section-heading h2 {
    font-size: 17px;
    font-weight: 700;
    color: #102033;
    margin: 0 0 6px;
}

.form-section-heading p {
    font-size: 13px;
    color: #687483;
    margin: 0;
    line-height: 1.6;
}

/* Supporting document upload */

.document-upload-area {
    border: 1px dashed #b9c8d8;
    background: #f8fafc;
    border-radius: 10px;
    padding: 22px;
    transition: border-color 0.2s ease;
}

.document-upload-area:hover {
    border-color: #2867a6;
}

.document-upload-area input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 13px;
    color: #334155;
}

.document-upload-area input[type="file"]::file-selector-button {
    background: #e8eef5;
    color: #102033;
    border: 1px solid #d1dce8;
    border-radius: 6px;
    padding: 9px 14px;
    margin-right: 12px;
    cursor: pointer;
    font-weight: 600;
}

.document-upload-area input[type="file"]::file-selector-button:hover {
    background: #dce7f3;
}

.document-upload-area .field-help {
    display: block;
    margin-top: 12px;
}

#selected-document-name:not(:empty) {
    color: #278c91;
    font-weight: 600;
    overflow-wrap: anywhere;
}
/* ==========================================
   APPROVAL REVIEW WORKSPACE
========================================== */

.approval-review-list {
    display: grid;
    gap: 24px;
    margin-top: 26px;
}

.approval-review-card {
    background: #ffffff;
    border: 1px solid #e1e7ed;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(16, 32, 51, 0.04);
}

.approval-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.approval-review-reference {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #278c91;
    margin-bottom: 8px;
}

.approval-review-header h2 {
    margin: 0;
    font-size: 22px;
    color: #102033;
}

.approval-review-header p {
    margin: 8px 0 0;
    color: #687483;
    font-size: 13px;
}

.approval-review-amount {
    margin-top: 24px;
    padding: 22px;
    background: #f5f8fb;
    border: 1px solid #e5edf3;
    border-radius: 10px;
}

.approval-review-amount span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: #687483;
    margin-bottom: 8px;
}

.approval-review-amount strong {
    font-size: 30px;
    color: #102033;
    letter-spacing: -0.03em;
}

.approval-review-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 26px 0;
}

.approval-review-details > div span {
    display: block;
    font-size: 12px;
    color: #687483;
    margin-bottom: 6px;
}

.approval-review-details > div strong {
    display: block;
    font-size: 14px;
    color: #102033;
}

.approval-review-section {
    padding: 20px 0;
    border-top: 1px solid #e5e9ef;
}

.approval-review-section h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #102033;
}

.approval-review-section p {
    margin: 0;
    color: #526173;
    line-height: 1.65;
    font-size: 13px;
}

.approval-document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    margin-top: 10px;
}

.approval-document-row strong,
.approval-document-row small {
    display: block;
}

.approval-document-row strong {
    font-size: 13px;
    color: #102033;
    overflow-wrap: anywhere;
}

.approval-document-row small {
    margin-top: 5px;
    color: #687483;
}

.approval-no-documents {
    color: #687483;
    font-size: 13px;
}

.approval-review-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid #e5e9ef;
}

.approval-review-actions form {
    margin: 0;
}

.approval-rejection-panel {
    flex: 1;
    max-width: 350px;
}

.approval-rejection-panel summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
}

.approval-rejection-panel summary::-webkit-details-marker {
    display: none;
}

.approval-rejection-form {
    margin-top: 14px !important;
    padding: 18px;
    background: #fff8f7;
    border: 1px solid #f0d7d3;
    border-radius: 8px;
}

.approval-rejection-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.approval-rejection-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d4dce4;
    border-radius: 6px;
    padding: 12px;
    font: inherit;
    resize: vertical;
    margin-bottom: 12px;
}

@media (max-width: 700px) {
    .approval-review-card {
        padding: 18px;
    }

    .approval-review-header {
        flex-direction: column;
    }

    .approval-review-details {
        grid-template-columns: 1fr;
    }

    .approval-review-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .approval-rejection-panel {
        max-width: none;
    }

    .approval-document-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
