:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-2: #eef3f7;
    --ink: #17212b;
    --muted: #667789;
    --line: #d9e1e8;
    --primary: #146c5c;
    --primary-dark: #0d4d42;
    --danger: #b22b34;
    --warning: #a06408;
    --success: #19713f;
    --sidebar: #16232e;
    --sidebar-active: #243747;
    --radius: 8px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
}

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

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    background: var(--sidebar);
    color: #f8fbfd;
    padding: 20px 16px;
    overflow-y: auto;
}

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

.sidebar-brand {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 4px 4px 14px;
    border-bottom: 1px solid rgba(220, 231, 238, 0.14);
}

.sidebar-brand .brand-logo {
    width: 86px;
    height: 102px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sidebar-brand strong {
    max-width: 200px;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.brand-mark,
.brand-logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: #e5f4ef;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 0;
}

.brand-logo {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(20, 108, 92, 0.16);
}

.brand-logo img {
    display: block;
    width: 92%;
    height: 92%;
    object-fit: contain;
}

.login-logo {
    width: 104px;
    height: 122px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: #b9c9d5;
    margin-top: 2px;
}

nav {
    display: grid;
    gap: 14px;
}

nav a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: #dce7ee;
    line-height: 1.25;
    white-space: normal;
}

nav a:hover,
nav a.active {
    background: var(--sidebar-active);
    color: #ffffff;
}

.nav-section {
    display: grid;
    gap: 6px;
}

.nav-group-title {
    display: block;
    padding: 0 12px 2px;
    color: #9fb3c2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nav-card-group {
    padding: 10px 8px 8px;
    border: 1px solid rgba(220, 231, 238, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.nav-sub {
    display: grid;
    gap: 4px;
    margin-top: 2px;
    padding-left: 8px;
    border-left: 2px solid rgba(159, 179, 194, 0.35);
}

.nav-sub a {
    padding: 8px 10px;
    font-size: 13px;
    color: #cbd9e3;
}

.nav-soon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    color: #9fb3c2;
    font-size: 13px;
    cursor: not-allowed;
}

.nav-soon small {
    color: #7f93a4;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.main {
    margin-left: 248px;
    padding: 24px;
}

.auth-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    padding: 24px;
}

.app-footer {
    display: grid;
    gap: 3px;
    padding: 20px 8px 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.auth-main .app-footer {
    padding-top: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 0;
}

.topbar p {
    margin: 4px 0 0;
    color: var(--muted);
}

.login-panel {
    width: min(420px, 100%);
}

.login-card,
.panel,
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(17, 33, 46, 0.06);
}

.login-card {
    padding: 30px 32px 32px;
}

.login-brand {
    color: var(--ink);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.login-brand strong {
    display: block;
    max-width: 320px;
    font-size: 20px;
    line-height: 1.25;
}

.login-brand small {
    color: var(--muted);
}

.panel {
    margin-bottom: 20px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.panel-head h2 {
    margin: 0;
    font-size: 18px;
}

.panel-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

.stat {
    padding: 18px;
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
}

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

.report-summary-head td {
    background: #eef5f9;
}

.report-cluster-row td {
    border-top: 2px solid #c9d9e4;
    background: #f3f8f6;
    color: var(--primary-dark);
}

.report-cluster-child td:first-child {
    padding-left: 28px;
}

.report-cluster-child td:first-child span {
    position: relative;
    display: inline-block;
}

.report-cluster-child td:first-child span::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: -16px;
    width: 10px;
    border-top: 2px solid #9db0bf;
}

.report-transaction-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.report-transaction-details {
    margin-top: 6px;
}

.report-transaction-details summary {
    align-items: center;
    background: #eef5f9;
    border: 1px solid #d7e4eb;
    border-radius: 6px;
    color: var(--primary-dark);
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    line-height: 1;
    padding: 7px 10px;
    user-select: none;
}

.report-transaction-details summary::-webkit-details-marker {
    display: none;
}

.report-transaction-details summary::before {
    content: "+";
    display: inline-grid;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    place-items: center;
    width: 12px;
}

.report-transaction-details[open] summary::before {
    content: "-";
}

.report-transaction-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    color: #33495c;
    font-size: 12px;
    line-height: 1.35;
}

.report-transaction-list div {
    align-items: start;
    background: #f8fbfc;
    border: 1px solid #e1edf2;
    border-radius: 6px;
    display: grid;
    gap: 8px;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    overflow-wrap: anywhere;
    padding: 7px 8px;
}

.report-transaction-list span {
    color: var(--muted);
    font-weight: 800;
}

.report-transaction-list strong {
    color: #22384a;
    font-weight: 700;
}

.report-transaction-list em {
    color: var(--primary-dark);
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.psg-ledger-income-cell,
.psg-ledger-expense-cell {
    text-align: right;
    white-space: normal;
}

.psg-ledger-income-amount,
.psg-ledger-expense-amount {
    display: block;
    white-space: nowrap;
}

.psg-ledger-income-details,
.psg-ledger-expense-details {
    display: grid;
    justify-items: end;
    margin-top: 6px;
    text-align: left;
    white-space: normal;
}

.psg-ledger-income-details summary,
.psg-ledger-expense-details summary {
    justify-self: end;
}

.psg-ledger-income-list,
.psg-ledger-expense-list {
    justify-self: end;
    max-width: min(420px, calc(100vw - 48px));
    min-width: min(320px, calc(100vw - 48px));
    width: 100%;
}

.psg-ledger-income-list div,
.psg-ledger-expense-list div {
    grid-template-columns: minmax(70px, 78px) minmax(0, 1fr) minmax(72px, max-content);
    max-width: 100%;
    white-space: normal;
}

.psg-ledger-income-list span,
.psg-ledger-income-list strong,
.psg-ledger-income-list em,
.psg-ledger-expense-list span,
.psg-ledger-expense-list strong,
.psg-ledger-expense-list em {
    min-width: 0;
}

.psg-ledger-income-list strong,
.psg-ledger-expense-list strong {
    display: grid;
    gap: 2px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.psg-ledger-income-list strong small,
.psg-ledger-expense-list strong small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
}

.psg-ledger-income-list em {
    color: var(--primary-dark);
}

.psg-ledger-expense-list em {
    color: var(--danger);
}

.psg-ledger-other-details {
    margin-top: 8px;
}

.psg-ledger-other-details summary {
    align-items: center;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
}

.psg-ledger-other-details summary::-webkit-details-marker {
    display: none;
}

.psg-ledger-other-details summary::before {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 6px;
    content: "+";
    display: inline-grid;
    font-size: 13px;
    height: 18px;
    line-height: 1;
    place-items: center;
    width: 18px;
}

.psg-ledger-other-details[open] summary::before {
    content: "-";
}

.psg-ledger-other-list {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 0;
    margin-top: 8px;
    max-width: min(620px, calc(100vw - 48px));
    overflow: hidden;
    width: 100%;
}

.psg-ledger-other-list > div {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: 92px minmax(160px, 1fr) 100px;
    padding: 8px 10px;
}

.psg-ledger-other-list > div + div {
    border-top: 1px solid var(--border);
}

.psg-ledger-other-head {
    background: #eef2ff;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.psg-ledger-other-list span,
.psg-ledger-other-list strong,
.psg-ledger-other-list em {
    min-width: 0;
}

.psg-ledger-other-list strong {
    color: var(--text);
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.psg-ledger-other-list em {
    color: var(--primary-dark);
    font-style: normal;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.batch-expense-details summary {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    font-weight: 800;
}

.batch-expense-details summary::-webkit-details-marker {
    display: none;
}

.batch-expense-toggle::before {
    align-items: center;
    background: #e8f0f8;
    border: 1px solid #b8cadb;
    border-radius: 5px;
    color: var(--primary-dark);
    content: "+";
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    line-height: 1;
    width: 22px;
}

.batch-expense-details[open] .batch-expense-toggle::before {
    content: "-";
}

.batch-expense-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.batch-expense-item {
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: grid;
    font-size: 12px;
    gap: 5px;
    grid-template-columns: 74px minmax(0, 1fr) max-content;
    line-height: 1.35;
    padding: 7px 9px;
}

.batch-expense-item span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.batch-expense-date {
    display: grid;
    gap: 2px;
}

.batch-expense-date small {
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
}

.batch-expense-item strong {
    font-size: 12px;
    font-weight: 800;
}

.batch-expense-item em {
    color: var(--danger);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.batch-virement-item {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.batch-virement-item em {
    color: var(--primary);
}

.batch-income-item {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.batch-income-item em {
    color: var(--success);
}

.batch-expense-empty {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.report-section-row td {
    border-top: 2px solid var(--line);
    background: #f7fafc;
    color: var(--ink);
}

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

.cash-withdrawal-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(90deg, #ffffff 0%, #eef7f4 100%);
}

.cash-withdrawal-hero span {
    display: block;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.cash-withdrawal-hero h2 {
    margin: 4px 0 6px;
    font-size: 24px;
}

.cash-withdrawal-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.cash-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 8px;
    flex: 0 0 auto;
}

.cash-flow-steps span {
    display: inline-grid;
    place-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(20, 108, 92, 0.2);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.cash-source-panel .panel-head,
.cash-withdrawal-panel .panel-head,
.cash-history-panel .panel-head {
    background: #fbfcfd;
}

.cash-source-form {
    align-items: end;
}

.cash-source-form .form-actions {
    justify-content: flex-end;
}

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

.cash-balance-card {
    border-color: rgba(20, 108, 92, 0.28);
    background: #f2fbf8;
}

.cash-balance-card strong {
    color: var(--primary-dark);
    font-size: 32px;
}

.cash-balance-card small,
.cash-history-table small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.cash-withdrawal-form {
    align-items: start;
    row-gap: 16px;
}

.cash-withdrawal-form textarea {
    min-height: 112px;
}

.form-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    padding: 12px 14px;
    border: 1px solid #dbe8e4;
    border-radius: var(--radius);
    background: #f7fbfa;
}

.form-section-title strong,
.form-section-title span {
    display: block;
}

.form-section-title strong {
    color: var(--ink);
    font-size: 14px;
}

.form-section-title span {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.file-upload-field {
    padding: 14px;
    border: 1px dashed #a9bdc8;
    border-radius: var(--radius);
    background: #f8fbfd;
}

.file-upload-field input[type="file"] {
    border-color: #cbd8e1;
    background: #ffffff;
}

.file-upload-field small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.cash-submit-card {
    display: grid;
    align-self: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid #cfe2dc;
    border-radius: var(--radius);
    background: #eef7f4;
}

.cash-submit-card span,
.cash-submit-card strong {
    display: block;
}

.cash-submit-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.cash-submit-card strong {
    color: var(--primary-dark);
    font-size: 15px;
}

.cash-submit-card .button {
    margin-top: 8px;
    width: 100%;
}

.cash-status-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.cash-history-table {
    min-width: 1120px;
}

.cash-history-table td {
    vertical-align: top;
}

.cash-history-table td strong {
    display: block;
}

.document-link {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border: 1px solid #bcd7ce;
    border-radius: var(--radius);
    background: #eef7f4;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.quick-access-panel {
    overflow: hidden;
}

.quick-access-panel .panel-head {
    align-items: flex-start;
    background: linear-gradient(90deg, #ffffff 0%, #edf7f4 100%);
}

.quick-access-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 34px;
    border: 1px solid rgba(20, 108, 92, 0.2);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 900;
}

.quick-access-body {
    padding: 18px 20px 20px;
}

.quick-access-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.quick-access-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 74px;
    padding: 12px;
    border: 1px solid #dbe8e4;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 33, 46, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.quick-access-card:hover {
    border-color: rgba(20, 108, 92, 0.45);
    box-shadow: 0 12px 22px rgba(17, 33, 46, 0.09);
    transform: translateY(-1px);
}

.quick-access-icon {
    display: inline-grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: #e5f4ef;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 900;
}

.quick-access-card strong,
.quick-access-card small {
    display: block;
}

.quick-access-card strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.25;
}

.quick-access-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
}

.quick-access-empty {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px dashed #b8c9d5;
    border-radius: var(--radius);
    background: #f8fbfd;
    color: var(--muted);
}

.quick-access-empty strong {
    color: var(--ink);
}

.quick-access-customize {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfd;
}

.quick-access-customize summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    color: var(--primary-dark);
    font-weight: 700;
    list-style: none;
}

.quick-access-customize summary::-webkit-details-marker {
    display: none;
}

.quick-access-customize summary::after {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius);
    background: #e5f4ef;
    color: var(--primary-dark);
    font-weight: 900;
}

.quick-access-customize[open] summary::after {
    content: "-";
}

.quick-access-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 14px 14px;
}

.quick-access-group {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid #dbe4eb;
    border-radius: var(--radius);
    background: #ffffff;
}

.quick-access-group legend {
    padding: 0 6px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.quick-access-options label {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.3;
}

.quick-access-options input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    accent-color: var(--primary);
}

.quick-access-options input[type="checkbox"]:disabled + span {
    color: #99a8b5;
}

.quick-access-form .form-actions {
    padding: 0 14px 14px;
}

.agm-cert-panel {
    padding: 0;
}

.agm-cert-document {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 56px 56px;
    color: #171717;
    background: #ffffff;
    line-height: 1.55;
}

.agm-cert-document header {
    display: grid;
    gap: 2px;
    justify-items: center;
    margin-bottom: 36px;
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
}

.agm-cert-logo {
    display: block;
    width: 118px;
    height: auto;
    margin: 0 auto 14px;
}

.agm-cert-document header strong,
.agm-cert-document header span {
    display: block;
}

.agm-cert-document h1 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #222222;
    font-size: 20px;
    letter-spacing: 0;
}

.agm-cert-document p {
    margin: 0 0 16px;
    text-align: justify;
}

.agm-cert-signoff {
    margin-top: 44px;
}

.agm-cert-signatures {
    display: grid;
    grid-template-columns: minmax(260px, 360px);
    gap: 42px;
    justify-content: start;
    margin: 52px 0 32px;
}

.agm-cert-signatures span {
    display: block;
    height: 1px;
    margin-bottom: 10px;
    background: #222222;
}

.agm-cert-signatures strong {
    display: block;
    font-size: 14px;
}

.agm-cert-signatures small {
    display: block;
    margin-top: 2px;
    color: #333333;
    font-size: 13px;
}

.reserved-fund-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-height: 154px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: 0 8px 22px rgba(17, 33, 46, 0.07);
}

.reserved-fund-hero span,
.reserved-fund-hero small {
    display: block;
    font-weight: 800;
}

.reserved-fund-hero span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.reserved-fund-hero strong {
    display: block;
    margin-top: 6px;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 900;
}

.reserved-fund-hero small {
    margin-top: 14px;
    max-width: none;
    text-align: left;
    font-size: 13px;
}

.reserved-fund-hero small.reserved-virement {
    font-size: 16px;
    font-weight: 900;
}

.reserved-fund-hero small.reserved-virement.has-value {
    color: #b10f1d;
}

.reserved-fund-hero small.reserved-virement.is-zero {
    color: #124f9f;
}

.reserved-fund-hero.is-positive {
    background: #e8f2ff;
    border-color: #9cc8ff;
    color: #124f9f;
}

.reserved-fund-hero.is-negative {
    background: #fde8eb;
    border-color: #eea8b1;
    color: #a01826;
}

.dashboard-balance-heroes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.executive-approval-panel {
    border: 1px solid #c6d6e2;
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 18px;
    background: linear-gradient(135deg, #f5faff 0%, #eef6fb 100%);
    box-shadow: 0 8px 22px rgba(17, 33, 46, 0.06);
}

.executive-approval-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.executive-approval-head span {
    display: block;
    color: #386078;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.executive-approval-head h3 {
    margin: 3px 0 0;
    color: #1f3546;
    font-size: 18px;
}

.executive-approval-head > strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #163c5a;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.executive-approval-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.executive-approval-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 16px;
    border: 1px solid #d2dde6;
    border-left: 5px solid #4c89b8;
    border-radius: var(--radius);
    padding: 15px 16px;
    background: #ffffff;
    color: #213747;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.executive-approval-card:hover {
    border-color: #8eb7d6;
    box-shadow: 0 10px 20px rgba(17, 33, 46, 0.09);
    transform: translateY(-1px);
}

.executive-approval-card span {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.executive-approval-card strong {
    grid-row: span 2;
    min-width: 54px;
    text-align: right;
    color: #1d5d8d;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.executive-approval-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.executive-approval-card.has-pending {
    border-left-color: #b10f1d;
    background: #fff7f8;
}

.executive-approval-card.has-pending strong {
    color: #b10f1d;
}

.executive-approval-card.treasurer-action {
    border-left-color: #bf8120;
}

.executive-approval-card.treasurer-action strong {
    color: #87590c;
}

.executive-approval-card.treasurer-action.has-pending {
    background: #fffaf0;
}

.opening-balance-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-height: 154px;
    border: 1px solid #b9c8d5;
    border-radius: var(--radius);
    padding: 22px 24px;
    background: #f1f6fa;
    color: #273d50;
    box-shadow: 0 8px 22px rgba(17, 33, 46, 0.07);
}

.opening-balance-hero span {
    display: block;
    font-weight: 800;
}

.opening-balance-hero span {
    font-size: 14px;
    text-transform: uppercase;
}

.opening-balance-hero strong {
    display: block;
    margin-top: 6px;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 900;
}

.dashboard-financial-overview {
    margin-bottom: 22px;
}

.dashboard-overview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.dashboard-overview-head > div > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-overview-head h2 {
    margin: 3px 0 0;
    font-size: 20px;
}

.dashboard-year-filter {
    margin-bottom: 0;
}

.dashboard-year-filter .inline-field {
    min-width: 112px;
}

.toolbar {
    display: flex;
    align-items: end;
    gap: 10px;
    margin-bottom: 18px;
}

.inline-filter {
    display: flex;
    align-items: end;
    gap: 10px;
}

.inline-filter label {
    min-width: 220px;
}

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

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

.psg-appointment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "batch position"
        "fullname email"
        "address address"
        "actions actions";
    align-items: start;
}

.psg-appointment-form .field-batch {
    grid-area: batch;
}

.psg-appointment-form .field-position {
    grid-area: position;
}

.psg-appointment-form .field-fullname {
    grid-area: fullname;
}

.psg-appointment-form .field-email {
    grid-area: email;
}

.psg-appointment-form .field-address {
    grid-area: address;
}

.psg-appointment-form .form-actions {
    grid-area: actions;
    justify-content: flex-end;
}

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

.span-3 {
    grid-column: 1 / -1;
}

label span,
.inline-field span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.field-label-tooltip {
    cursor: help;
}

.field-label-tooltip::after {
    align-items: center;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    color: #1d4ed8;
    content: "?";
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    height: 16px;
    justify-content: center;
    margin-left: 6px;
    width: 16px;
}

.inline-check {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin-top: 26px;
}

.inline-check input[type="checkbox"] {
    margin: 0;
}

.inline-check span {
    color: var(--text);
    margin: 0;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 9px 11px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(20, 108, 92, 0.18);
    border-color: var(--primary);
}

.select-live-search {
    margin-bottom: 0;
    padding-right: 34px;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 42%, var(--muted) 44%, var(--muted) 57%, transparent 59%),
        linear-gradient(45deg, transparent 45%, var(--muted) 47%, var(--muted) 57%, transparent 59%);
    background-position: right 15px center, right 9px bottom 13px;
    background-size: 14px 14px, 10px 10px;
    background-repeat: no-repeat;
}

.select-live-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.select-live-results {
    position: relative;
    z-index: 20;
    margin: 6px 0 0;
    max-height: 238px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(17, 33, 46, 0.13);
}

.select-live-option {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 9px 11px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.select-live-option:hover,
.select-live-option:focus {
    outline: 0;
    background: #eef7f4;
    color: var(--primary-dark);
}

.select-live-option.is-disabled {
    color: var(--muted);
    cursor: not-allowed;
    background: #f7f9fb;
}

.select-live-option.is-disabled:hover,
.select-live-option.is-disabled:focus {
    color: var(--muted);
    background: #f7f9fb;
}

.select-live-empty,
.select-live-count {
    padding: 8px 11px;
    color: var(--muted);
    font-size: 12px;
}

.select-live-count {
    background: var(--surface-2);
    font-weight: 700;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 6px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0;
    background: #f8fafc;
    color: var(--ink);
    cursor: pointer;
}

.password-toggle:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.password-toggle:focus {
    outline: 3px solid rgba(20, 108, 92, 0.18);
}

.password-eye-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-eye-hide,
.password-toggle.is-visible .password-eye-show {
    display: none;
}

.password-toggle.is-visible .password-eye-hide {
    display: block;
}

.reset-password-panel {
    max-width: 780px;
}

.reset-password-body {
    padding: 20px;
}

.reset-account-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.reset-account-summary span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.reset-account-summary strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 15px;
}

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

.reset-password-note {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.reset-password-form .form-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.student-exemption-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.student-exemption-control input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--primary);
}

.student-exemption-stack {
    display: grid;
    gap: 7px;
}

.student-checkline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: var(--ink);
    font-weight: 800;
}

.student-checkline input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--primary);
}

.student-search-form {
    display: flex;
    align-items: end;
    gap: 12px;
    padding: 16px 20px 20px;
}

.student-search-form label {
    flex: 0 1 360px;
}

.student-search-form .button {
    min-width: 144px;
}

.student-profile-form {
    display: block;
}

.student-form-section {
    padding: 18px 20px 0;
}

.student-form-section + .student-form-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.student-form-section h3 {
    margin: 0 0 14px;
    color: #46596b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.student-field-grid {
    display: grid;
    gap: 14px;
}

.student-identity-fields {
    grid-template-columns: minmax(130px, 1fr) minmax(260px, 2fr) minmax(140px, 1fr) minmax(110px, 1fr);
}

.student-guardian-fields {
    grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr) minmax(220px, 2fr) minmax(140px, 1fr);
}

.student-form-actions {
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.student-payment-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #f7fafc;
    border-bottom: 1px solid var(--line);
}

.student-summary-metric {
    padding: 15px 20px;
    border-right: 1px solid var(--line);
}

.student-summary-metric:last-child {
    border-right: 0;
}

.student-summary-metric span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.student-summary-metric strong {
    display: block;
    margin-top: 6px;
    font-size: 21px;
    font-variant-numeric: tabular-nums;
}

.student-summary-exemption strong {
    color: var(--warning);
}

.student-summary-balance strong {
    color: var(--primary-dark);
}

.student-payment-wrap {
    padding: 18px 20px 0;
}

.student-payment-table {
    min-width: 980px;
    border: 1px solid var(--line);
}

.student-payment-table tbody tr.is-exempted {
    background: #fffaf0;
}

.student-payment-table tbody tr.is-reduced {
    background: #f5f9ff;
}

.student-payment-type {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--radius);
    background: #e9f2f1;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.student-payment-type.outstanding {
    background: #fff0d7;
    color: var(--warning);
}

.student-payment-type.book {
    background: #e7eef8;
    color: #325b92;
}

.student-payment-type.book_optional {
    background: #f2ebfb;
    color: #6d4296;
}

.student-exemption-note {
    color: var(--warning);
    font-weight: 700;
}

.student-payment-table input[type="number"] {
    min-width: 128px;
}

.student-payment-table td:last-child {
    min-width: 132px;
}

.student-payment-actions {
    margin-top: 2px;
}

.student-payment-source-note {
    margin: 16px 20px 0;
}

.student-status-fields {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(260px, 2fr);
    gap: 14px;
    padding: 18px 20px 0;
}

.student-status-fields textarea {
    min-height: 42px;
}

.student-finance-search-panel .panel-head {
    background: #fbfcfd;
}

.student-finance-search-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) max-content;
    gap: 14px;
    align-items: end;
    padding: 18px 20px;
}

.student-finance-search-form label {
    margin: 0;
}

.student-finance-search-form .button {
    min-width: 110px;
}

.student-finance-profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, #ffffff 0%, #f0f7f5 100%);
}

.student-finance-profile-head > div:first-child > span {
    display: block;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.student-finance-profile-head h2 {
    margin: 5px 0 6px;
    font-size: 23px;
    line-height: 1.2;
}

.student-finance-profile-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.student-finance-status-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 420px;
}

.student-finance-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    background: #f7fafc;
}

.student-finance-metric {
    padding: 16px 20px;
    border-right: 1px solid var(--line);
}

.student-finance-metric:last-child {
    border-right: 0;
}

.student-finance-metric span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.student-finance-metric strong {
    display: block;
    margin-top: 7px;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.student-finance-metric.balance strong,
.student-finance-balance-due {
    color: var(--danger);
}

.student-finance-balance-clear {
    color: var(--success);
}

.student-finance-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 20px 0;
}

.student-finance-detail-head h3 {
    margin: 0;
    font-size: 16px;
}

.student-finance-detail-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.student-finance-table-wrap {
    padding: 16px 20px 20px;
}

.student-finance-table,
.student-finance-history-table {
    min-width: 760px;
    border: 1px solid var(--line);
}

.student-finance-table td:first-child strong {
    display: block;
}

.student-finance-table td:first-child small {
    display: block;
    margin-top: 5px;
}

.student-finance-history-panel .panel-head {
    background: #fbfcfd;
}

.vot-transfer-panel .panel-head {
    background: #fbfcfd;
}

.vot-transfer-form {
    display: grid;
    gap: 18px;
    padding: 18px 20px 20px;
}

.vot-transfer-target {
    max-width: 720px;
}

.vot-transfer-source-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.vot-transfer-source-head h3 {
    margin: 0;
    font-size: 16px;
}

.vot-transfer-source-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.vot-transfer-table {
    min-width: 880px;
    border: 1px solid var(--line);
}

.vot-transfer-table td:first-child,
.vot-transfer-table th:first-child {
    text-align: center;
    width: 68px;
}

.vot-transfer-table td strong,
.vot-transfer-table td small {
    display: block;
}

.vot-transfer-table td small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.vot-transfer-group-row td {
    background: #eef5ff;
    color: #174f91;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: left !important;
    text-transform: uppercase;
}

.vot-transfer-table input[type="number"] {
    max-width: 150px;
    text-align: right;
}

.expenditure-picker-panel .panel-head,
.expenditure-entry-panel .panel-head,
.expenditure-history-panel .panel-head {
    align-items: flex-start;
}

.expenditure-picker-form {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
}

.expenditure-picker-form label {
    min-width: 0;
}

.expenditure-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(220px, 0.82fr));
    margin-bottom: 18px;
}

.expenditure-summary-card {
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 18px;
}

.expenditure-summary-card span,
.expenditure-summary-card small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.expenditure-summary-card strong {
    color: var(--ink);
    font-size: 20px;
    line-height: 1.2;
}

.expenditure-summary-card.balance {
    border-color: rgba(20, 108, 92, 0.28);
    background: #f0f8f5;
}

.expenditure-summary-card.balance strong,
.expenditure-summary-card.remaining strong {
    color: var(--primary-dark);
    font-size: 24px;
}

.expenditure-summary-card.remaining {
    border-color: rgba(37, 99, 235, 0.24);
    background: #f2f6ff;
}

.expenditure-summary-card.remaining strong.is-danger {
    color: var(--danger);
}

.expenditure-form {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.expenditure-form-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfd;
    padding: 16px;
}

.expenditure-section-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.expenditure-section-head h3 {
    font-size: 15px;
    margin: 0;
}

.expenditure-field-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.expenditure-submit-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(20, 108, 92, 0.22);
    border-radius: var(--radius);
    background: #eef7f4;
}

.expenditure-submit-row span,
.expenditure-submit-row strong {
    display: block;
}

.expenditure-submit-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.expenditure-submit-row strong {
    margin-top: 2px;
    color: var(--primary-dark);
    font-size: 20px;
}

.expenditure-history-table {
    min-width: 980px;
}

.expenditure-history-table td {
    vertical-align: top;
}

.expenditure-history-table td small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 3px;
}

.treasurer-overview {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.treasurer-summary-card {
    display: grid;
    gap: 6px;
    min-height: 108px;
    padding: 18px;
}

.treasurer-summary-card span,
.treasurer-summary-card small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.treasurer-summary-card strong {
    color: var(--primary-dark);
    font-size: 30px;
    line-height: 1;
}

.treasurer-summary-card.total {
    border-color: rgba(20, 108, 92, 0.28);
    background: #eef7f4;
}

.treasurer-panel .panel-head {
    align-items: flex-start;
    background: #fbfcfd;
}

.treasurer-table {
    min-width: 1080px;
}

.treasurer-table th,
.treasurer-table td {
    vertical-align: top;
}

.treasurer-table td small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 3px;
}

.treasurer-table th:nth-last-child(2),
.treasurer-table td:nth-last-child(2) {
    width: 130px;
}

.treasurer-table th:last-child,
.treasurer-table td:last-child {
    width: 168px;
}

.treasurer-action-form {
    display: grid;
    gap: 8px;
    min-width: 148px;
}

.treasurer-action-form select {
    min-height: 34px;
}

.bas-pb-hero .panel-head {
    background: #f4f8ff;
}

.bas-pb-stats .stat small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.bas-pb-sale-form {
    padding: 18px 20px 20px;
}

.bas-pb-direction-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: -2px;
}

.bas-pb-direction-option {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 78px;
    margin: 0;
    padding: 14px;
    border: 1px solid #d9e5ee;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.bas-pb-direction-option:hover {
    border-color: #a9c6e8;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.bas-pb-direction-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bas-pb-direction-check {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #b9c8d8;
    border-radius: 50%;
    background: #ffffff;
}

.bas-pb-direction-check::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
}

.bas-pb-direction-content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.bas-pb-direction-content strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.2;
}

.bas-pb-direction-content small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.bas-pb-direction-badge {
    align-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef4f8;
    color: #496376;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.bas-pb-direction-option:has(input:checked) {
    border-color: rgba(37, 99, 235, 0.55);
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.bas-pb-direction-option:has(input:checked) .bas-pb-direction-check {
    border-color: var(--primary);
    background: var(--primary);
}

.bas-pb-direction-option:has(input:checked) .bas-pb-direction-check::after {
    background: #ffffff;
}

.bas-pb-direction-option:has(input:checked) .bas-pb-direction-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.bas-pb-sale-phases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bas-pb-sale-phase {
    display: grid;
    gap: 14px;
    align-content: start;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dbe8e4;
    border-radius: var(--radius);
    background: #fbfdfc;
}

.bas-pb-sale-phase-head {
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3eeeb;
}

.bas-pb-sale-phase-head span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bas-pb-sale-phase-head strong {
    color: var(--ink);
    font-size: 15px;
}

.bas-pb-sale-phase-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bas-pb-sale-phase.phase-open {
    background: #f4fbf7;
    border-color: #cfe8da;
}

.bas-pb-sale-phase.phase-close {
    background: #fff8f5;
    border-color: #f2d8cc;
}

.bas-pb-sale-phase.phase-change {
    background: #f4f8ff;
    border-color: #d6e3fb;
}

.bas-pb-trip-block {
    padding: 12px 14px 2px;
}

.bas-pb-trip-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.bas-pb-trip-title > div {
    display: grid;
    gap: 4px;
}

.bas-pb-trip-meta {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, 240px) minmax(180px, 280px);
    padding: 0 0 12px;
}

.bas-pb-trip-meta label {
    margin: 0;
}

.bas-pb-trip-note {
    align-items: center;
    background: #f6f9fb;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    display: flex;
    font-size: 12px;
    font-weight: 800;
    min-height: 42px;
    padding: 8px 10px;
}

.bas-pb-trip-note-wide {
    margin: 0 0 12px;
}

.bas-pb-trip-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

.bas-pb-trip-block .table-wrap {
    overflow-x: visible;
}

.bas-pb-trip-table th,
.bas-pb-trip-table td {
    padding: 7px 6px;
    vertical-align: middle;
}

.bas-pb-trip-table th {
    font-size: 11px;
    line-height: 1.2;
}

.bas-pb-col-active {
    width: 44px;
}

.bas-pb-col-bus {
    width: 78px;
}

.bas-pb-col-direction {
    width: 104px;
}

.bas-pb-col-date {
    width: 118px;
}

.bas-pb-col-location {
    width: 15%;
}

.bas-pb-col-stop {
    width: 34%;
}

.bas-pb-col-time {
    width: 112px;
}

.bas-pb-col-capacity {
    width: 82px;
}

.bas-pb-col-price {
    width: 118px;
}

.bas-pb-trip-table th:first-child,
.bas-pb-trip-table td:first-child {
    text-align: center;
}

.bas-pb-trip-table input,
.bas-pb-trip-table select {
    min-height: 32px;
    padding: 6px 7px;
    font-size: 12px;
}

.bas-pb-trip-table select {
    width: 100%;
}

.bas-pb-trip-table input[type="number"] {
    max-width: 100%;
    text-align: right;
}

.bas-pb-trip-table input[type="time"] {
    max-width: 100%;
}

.bas-pb-new-row td {
    background: #fbfcfd;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.compact-checkbox-grid {
    margin-top: -4px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    font-weight: 800;
}

.checkbox-card input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.checkbox-card:has(input:checked) {
    border-color: rgba(37, 99, 235, 0.45);
    background: #eff6ff;
}

.form-actions {
    align-self: end;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.button.primary {
    background: var(--primary);
    color: #ffffff;
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.secondary {
    background: var(--surface-2);
    color: var(--ink);
    border-color: var(--line);
}

.button.danger {
    background: var(--danger);
    color: #ffffff;
}

.button.tiny {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 13px;
}

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

.authorization-form {
    padding-bottom: 18px;
}

.authorization-table-wrap {
    max-height: calc(100vh - 260px);
    overflow: auto;
}

.authorization-table {
    min-width: 3200px;
}

.authorization-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

.authorization-table thead tr:nth-child(2) th {
    top: 45px;
}

.authorization-table .auth-person {
    position: sticky;
    left: 0;
    min-width: 220px;
    max-width: 220px;
    background: #ffffff;
    z-index: 2;
}

.authorization-table .auth-designation {
    position: sticky;
    left: 220px;
    min-width: 190px;
    max-width: 190px;
    background: #ffffff;
    z-index: 2;
}

.authorization-table .auth-role-profile {
    position: sticky;
    left: 410px;
    min-width: 180px;
    max-width: 180px;
    background: #ffffff;
    z-index: 2;
}

.authorization-table thead .auth-person,
.authorization-table thead .auth-designation,
.authorization-table thead .auth-role-profile {
    background: #f7fafc;
    z-index: 5;
}

.authorization-table .auth-group {
    text-align: center;
    background: #e9f2f1;
    color: var(--primary-dark);
}

.authorization-table .auth-menu {
    min-width: 118px;
    max-width: 150px;
    text-align: center;
    white-space: normal;
}

.authorization-table .auth-check {
    text-align: center;
    vertical-align: middle;
}

.authorization-table .auth-check input[type="checkbox"] {
    display: inline-block;
    width: 18px;
    min-height: 18px;
    height: 18px;
    padding: 0;
    accent-color: var(--primary);
}

.authorization-actions {
    display: flex;
    justify-content: flex-end;
    padding: 18px 20px 0;
}

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

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f7fafc;
    color: #46596b;
    font-size: 13px;
}

td small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.vot-parent-row td {
    background: #fbfcfd;
}

.vot-table th:first-child,
.vot-code-cell {
    width: 160px;
    white-space: nowrap;
}

.vot-desc-cell {
    min-width: 280px;
}

.vot-stats .stat:nth-child(3) strong {
    color: var(--success);
}

.vot-stats .stat:nth-child(4) strong {
    color: var(--primary);
}

.vot-setup-panel .panel-head,
.vot-list-panel .panel-head {
    align-items: flex-start;
}

.vot-form {
    align-items: start;
}

.vot-profit-check {
    grid-column: 1 / -1;
    display: block;
    margin-top: 0;
    cursor: pointer;
}

.vot-profit-check input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.vot-profit-check > span {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #cfe0f2;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-height: 54px;
    padding: 14px 16px;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.vot-profit-check > span::before {
    align-items: center;
    background: #fff;
    border: 2px solid #96aec8;
    border-radius: 6px;
    color: #fff;
    content: "";
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 15px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    line-height: 1;
    width: 24px;
}

.vot-profit-check input:checked + span {
    background: #ecfdf5;
    border-color: #60a87c;
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.1);
}

.vot-profit-check input:checked + span::before {
    background: var(--success);
    border-color: var(--success);
    content: "✓";
}

.vot-profit-check input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.vot-profit-check:hover > span {
    border-color: #8fb0d4;
    transform: translateY(-1px);
}

.vot-profit-check strong {
    color: var(--text);
    display: block;
    font-size: 13px;
    letter-spacing: 0;
}

.vot-profit-check small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 500;
}

.vot-sub-row td {
    background: #f6f8fb;
    border-top-color: #e7edf3;
}

.vot-sub-label {
    display: inline-block;
    padding-left: 18px;
    color: var(--muted);
    font-weight: 700;
    position: relative;
}

.vot-sub-label::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 8px;
    height: 1px;
    background: #9aa8b5;
}

.vot-mapping-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: #fbfcfd;
}

.vot-mapping-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.vot-mapping-head span {
    font-weight: 800;
    color: var(--text);
}

.vot-mapping-head small {
    color: var(--muted);
}

.vot-mapping-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.income-setup-context {
    align-items: center;
    background: #eaf4f2;
    border-left: 5px solid var(--primary);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 18px 20px;
}

.income-setup-context h2 {
    font-size: 22px;
    margin: 10px 0 4px;
}

.income-setup-context p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.income-year-display {
    border-left: 1px solid #b8d4cf;
    flex: 0 0 auto;
    min-width: 132px;
    padding-left: 20px;
    text-align: right;
}

.income-year-display span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.income-year-display strong {
    color: var(--primary-dark);
    display: block;
    font-size: 30px;
    line-height: 1.15;
    margin-top: 4px;
}

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

.income-allocation-stats.income-reserved-only {
    grid-template-columns: minmax(0, 520px);
}

.income-allocation-stats .stat {
    border-top: 3px solid #9fb0bf;
    min-height: 132px;
}

.income-allocation-stats .stat small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 8px;
}

.income-balance-stat {
    background: #e8f2ff;
    border-color: #4e8ed8 !important;
}

.income-balance-stat strong {
    color: #124f9f;
    font-size: 29px;
}

.income-balance-stat.is-negative {
    background: #fdebed;
    border-color: #d45a65 !important;
}

.income-balance-stat.is-negative strong {
    color: var(--danger);
}

.income-opening-stat {
    border-color: #667789 !important;
}

.income-allocation-stat {
    border-color: #bf8120 !important;
}

.income-allocation-stat strong {
    color: #87590c;
}

.income-result-stat {
    border-color: #4c9a6b !important;
}

.income-result-stat strong {
    color: var(--success);
}

.dashboard-fund-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.dashboard-fund-summary .stat {
    min-height: 116px;
    border: 1px solid var(--line);
    border-top: 3px solid #667789;
    padding: 16px 18px;
}

.dashboard-fund-summary .stat small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.dashboard-carry-forward-stat {
    border-color: #667789 !important;
}

.dashboard-current-allocation-stat {
    border-color: #bf8120 !important;
}

.dashboard-current-allocation-stat strong {
    color: #87590c;
}

.dashboard-total-vot-stat {
    border-color: #4c9a6b !important;
    background: #edf8f1;
}

.dashboard-total-vot-stat strong {
    color: var(--success);
}

.income-allocation-progress {
    background: #edf1f4;
    border-radius: 5px;
    height: 7px;
    margin-top: 10px;
    overflow: hidden;
}

.income-allocation-progress span {
    background: #bf8120;
    border-radius: inherit;
    display: block;
    height: 100%;
    margin: 0;
}

.income-setup-panel .panel-head,
.income-allocation-list .panel-head {
    align-items: flex-start;
}

.income-setup-form {
    align-items: start;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.income-form-section {
    border-bottom: 1px solid var(--line);
    grid-column: 1 / -1;
    padding-bottom: 9px;
}

.income-form-section strong,
.income-form-section small {
    display: block;
}

.income-form-section strong {
    font-size: 14px;
}

.income-form-section small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.income-value-heading {
    margin-top: 6px;
}

.income-vot-field {
    grid-column: span 2;
}

.income-amount-field {
    grid-column: span 2;
}

.income-amount-field input {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 800;
}

.income-available-inline {
    align-self: end;
    background: #f3f7fa;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    grid-column: span 2;
    min-height: 46px;
    padding: 10px 12px;
    text-align: right;
}

.income-available-inline span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 700;
}

.income-available-inline strong {
    color: #124f9f;
    display: block;
    font-size: 18px;
    margin-top: 2px;
}

.income-carry-check {
    cursor: pointer;
    grid-column: 1 / -1;
}

.income-carry-check input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.income-carry-check > span {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #c9d9e8;
    border-radius: var(--radius);
    display: grid;
    gap: 3px 12px;
    grid-template-columns: 24px minmax(0, 1fr);
    margin: 0;
    min-height: 62px;
    padding: 13px 15px;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.income-carry-check > span::before {
    align-items: center;
    background: #fff;
    border: 2px solid #91a8bd;
    border-radius: 5px;
    color: #fff;
    content: "";
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 15px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 24px;
}

.income-carry-check strong,
.income-carry-check small {
    display: block;
}

.income-carry-check strong {
    color: var(--ink);
    font-size: 13px;
    grid-column: 2;
}

.income-carry-check small {
    color: var(--muted);
    font-size: 12px;
    grid-column: 2;
    margin-top: 3px;
}

.income-carry-check input:checked + span {
    background: #eaf7f0;
    border-color: #69a884;
    box-shadow: 0 0 0 3px rgba(25, 113, 63, 0.08);
}

.income-carry-check input:checked + span::before {
    background: var(--success);
    border-color: var(--success);
    content: "✓";
}

.income-carry-check input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.income-setup-form .form-actions {
    border-top: 1px solid var(--line);
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 2px;
    padding-top: 16px;
}

.income-allocation-table th {
    white-space: nowrap;
}

.income-vot-cell {
    min-width: 230px;
}

.income-vot-cell strong {
    color: var(--primary-dark);
    display: block;
}

.income-carry-row td {
    background: #f2f9f5;
}

.income-carry-row td:first-child {
    border-left: 3px solid var(--success);
}

.income-group-row td {
    background: #e9f1f5;
    border-bottom-color: #c9d7e0;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    padding-bottom: 8px;
    padding-top: 8px;
    text-transform: uppercase;
}

.income-balance-cell {
    color: #124f9f;
    font-weight: 800;
    white-space: nowrap;
}

.income-balance-cell.is-negative {
    color: var(--danger);
}

.vot-mapping-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: #ffffff;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.vot-mapping-option:hover {
    border-color: rgba(20, 108, 92, 0.34);
    box-shadow: 0 8px 18px rgba(17, 33, 46, 0.08);
    transform: translateY(-1px);
}

.vot-mapping-option input {
    width: auto;
    min-height: 0;
    margin-top: 3px;
}

.vot-mapping-option strong,
.vot-mapping-option small {
    display: block;
}

.vot-mapping-option small {
    color: var(--muted);
    margin-top: 3px;
}

.vot-mapping-option.disabled {
    opacity: 0.6;
}

.compact-empty {
    margin: 0;
    padding: 10px;
}

.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

th.num,
td.num {
    min-width: 118px;
}

.amount-mismatch {
    color: var(--danger);
    font-weight: 800;
}

.amount-success {
    color: var(--success);
    font-weight: 800;
}

.amount-profit {
    color: #124f9f;
    font-weight: 800;
}

.student-debt-table {
    min-width: 0;
    table-layout: fixed;
}

.student-debt-table th,
.student-debt-table td {
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.3;
}

.student-debt-table th {
    font-size: 11px;
    line-height: 1.25;
}

.student-debt-download-form {
    padding: 0;
}

.student-debt-report-actions {
    margin-top: 16px;
    justify-content: flex-start;
    gap: 8px;
}

.student-debt-download-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: #f8fbfd;
}

.student-debt-download-note strong,
.student-debt-download-note span {
    display: block;
}

.student-debt-download-note strong {
    color: var(--ink);
    font-size: 14px;
}

.student-debt-download-note span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: right;
}

.student-debt-check {
    width: 52px;
    text-align: center;
}

.student-debt-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    cursor: pointer;
}

.student-debt-whatsapp-list {
    display: grid;
    gap: 12px;
    padding: 16px 20px 20px;
}

.student-debt-whatsapp-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfd;
}

.student-debt-whatsapp-card strong,
.student-debt-whatsapp-card span,
.student-debt-whatsapp-card a {
    display: block;
}

.student-debt-whatsapp-card span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.student-debt-whatsapp-card > div > a {
    margin-top: 6px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
}

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

.student-debt-table .student-debt-name strong {
    display: block;
    font-size: 12px;
    line-height: 1.25;
}

.student-debt-table .student-debt-amount {
    width: 106px;
    min-width: 0;
    white-space: nowrap;
}

.student-debt-table th.student-debt-amount {
    white-space: normal;
}

.student-debt-table .student-debt-ses {
    width: 92px;
    text-align: center;
}

.student-debt-ses-badges {
    align-items: center;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: center;
    white-space: nowrap;
}

.student-debt-ses-badges .badge {
    font-size: 10px;
    padding: 3px 6px;
}

.student-debt-table .student-debt-saku {
    background: #dbeafe;
    color: #1d4ed8;
}

.student-debt-table .student-debt-class {
    width: 72px;
    white-space: nowrap;
}

.student-debt-table .has-debt {
    color: var(--danger);
    font-weight: 700;
}

.student-debt-table .debt-total {
    color: var(--danger);
    font-weight: 800;
}

.blink-mismatch {
    animation: blinkMismatch 1s ease-in-out infinite;
}

@keyframes blinkMismatch {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline-flex;
}

.verify-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius);
    background: #eff6ff;
}

.verify-box .panel-subtitle {
    margin-bottom: 0;
}

.verify-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
}

.verify-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.spm-countdown-date-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.spm-countdown-date-form input[type="date"],
.spm-countdown-date-form input[type="time"] {
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    font: inherit;
    font-size: 13px;
}

.spm-countdown-date-form input[type="date"] {
    width: 145px;
}

.spm-countdown-date-form input[type="time"] {
    width: 105px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-badge.success {
    color: #166534;
    background: #dcfce7;
}

.status-badge.warning {
    color: #92400e;
    background: #fef3c7;
}

@media (max-width: 760px) {
    .verify-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.year-display-filter {
    align-items: center;
    gap: 8px;
}

.year-display-filter select {
    min-width: 108px;
}

.fee-batch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
}

.fee-batch-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: #ffffff;
}

.fee-batch-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.fee-batch-head h3 {
    margin: 0;
    font-size: 16px;
}

.fee-batch-head strong {
    color: var(--primary-dark);
    font-variant-numeric: tabular-nums;
}

.fee-allocation-wrap {
    margin-top: 12px;
}

.fee-allocation-table th,
.fee-allocation-table td {
    padding: 7px 6px;
}

.fee-allocation-table th:first-child,
.fee-allocation-table td:first-child {
    width: 30px;
    text-align: center;
}

.fee-allocation-table th:last-child,
.fee-allocation-table td:last-child {
    width: 126px;
}

.fee-allocation-table input {
    min-height: 38px;
    padding: 7px 9px;
}

.book-fee-table input {
    width: min(190px, 100%);
    margin-left: auto;
}

.fee-collection-summary-table,
.fee-class-table {
    min-width: 640px;
}

.fee-class-expand {
    border-top: 1px solid var(--line);
}

.fee-class-expand summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    color: var(--primary-dark);
    cursor: pointer;
    list-style: none;
}

.fee-class-expand summary::-webkit-details-marker {
    display: none;
}

.fee-expand-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 18px;
    line-height: 1;
}

.fee-expand-icon::before {
    content: "+";
}

.fee-class-expand[open] .fee-expand-icon::before {
    content: "-";
}

.fee-class-expand[open] summary {
    border-bottom: 1px solid var(--line);
}

.fee-item-collection-table {
    min-width: 420px;
}

.book-batch-grid {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.book-batch-card {
    padding-bottom: 12px;
}

.book-item-table th,
.book-item-table td {
    padding: 7px 6px;
}

.book-item-table th:first-child,
.book-item-table td:first-child {
    width: 34px;
    text-align: center;
}

.book-item-table .book-amount-cell {
    width: 164px;
}

.book-item-table .book-status-cell {
    width: 122px;
}

.book-item-table .book-action-cell {
    width: 168px;
    white-space: nowrap;
}

.book-item-table input,
.book-item-table select {
    min-height: 38px;
    padding: 7px 9px;
}

.book-add-button {
    margin-top: 12px;
}

.book-remove-button {
    min-width: 68px;
    color: #111827;
}

.book-row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

.book-stop-button {
    min-width: 68px;
    color: #b42318;
}

.book-stop-button.is-stopped {
    color: #0f6b4a;
}

.book-row-stopped {
    background: #fff6f2;
}

.book-row-stopped input,
.book-row-stopped select {
    color: #7a3425;
}

.book-row-stopped td:first-child::after {
    content: "STOP";
    display: block;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 800;
    color: #b42318;
}

.approval-form {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.approval-edit-cell {
    min-width: 230px;
}

.approval-edit-cell input[type="search"],
.approval-edit-cell select,
.approval-edit-cell .amount-input {
    width: 100%;
    min-width: 0;
}

.approval-edit-cell .amount-input {
    text-align: right;
}

.split-actions {
    display: flex;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 3px 9px;
    background: #e8eef3;
    color: #314456;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge.active,
.badge.open,
.badge.approved,
.badge.supported,
.badge.matched {
    background: #dff3e8;
    color: var(--success);
}

.badge.inactive,
.badge.closed,
.badge.rejected,
.badge.mismatch {
    background: #f7dfe2;
    color: var(--danger);
}

.badge.pending,
.badge.warning {
    background: #fff0d7;
    color: var(--warning);
}

.badge.verified {
    background: #e4efff;
    color: #1d4ed8;
}

.bank-crosscheck-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 5px 8px;
    border: 1px solid #bfd2ff;
    border-radius: 6px;
    background: #f4f8ff;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
}

.bank-crosscheck-verified input {
    width: 14px;
    height: 14px;
}

.bank-crosscheck-hero {
    border-top: 4px solid #1d4ed8;
}

.bank-crosscheck-hero .panel-head {
    align-items: flex-start;
    gap: 14px;
}

.bank-crosscheck-form {
    align-items: end;
    background: #f7fbff;
    border: 1px solid #d7e5f5;
    border-radius: var(--radius);
    padding: 14px;
}

.bank-crosscheck-form .form-actions {
    align-self: end;
}

.bank-crosscheck-stats .stat {
    border-top: 3px solid #d7e5f5;
}

.bank-crosscheck-stats .stat:nth-child(1) {
    border-top-color: #2563eb;
}

.bank-crosscheck-stats .stat:nth-child(2) {
    border-top-color: #059669;
}

.bank-crosscheck-stats .stat:nth-child(3) {
    border-top-color: #dc2626;
}

.bank-crosscheck-stats .stat:nth-child(4) {
    border-top-color: #7c3aed;
}

.bank-crosscheck-progress {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #c9def7;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    min-height: 30px;
    padding: 6px 11px;
    white-space: nowrap;
}

.bank-crosscheck-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1040px;
}

.bank-crosscheck-table th {
    vertical-align: middle;
}

.bank-crosscheck-bank-head {
    background: #eff6ff;
    color: #1d4ed8;
}

.bank-crosscheck-system-head {
    background: #ecfdf5;
    color: #047857;
}

.bank-crosscheck-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.bank-crosscheck-table tbody td:nth-child(3) {
    border-right: 2px solid #d7e5f5;
}

.bank-crosscheck-date {
    color: #334155;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.bank-crosscheck-code strong {
    background: #f1f5f9;
    border: 1px solid #d9e2ea;
    border-radius: 5px;
    color: #0f172a;
    display: inline-block;
    font-size: 0.8rem;
    padding: 4px 7px;
    white-space: nowrap;
}

.bank-crosscheck-desc-cell {
    min-width: 240px;
    vertical-align: top;
}

.bank-crosscheck-desc {
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.35;
    max-width: 420px;
}

.bank-crosscheck-amount {
    font-size: 0.9rem;
    font-weight: 900;
}

.bank-crosscheck-actions {
    align-items: center;
    border-top: 1px solid var(--line);
    justify-content: space-between;
    margin-top: 0;
    padding: 14px 2px 2px;
}

.bank-crosscheck-actions-top {
    border-top: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    padding: 0 2px 12px;
}

@media (max-width: 760px) {
    .bank-crosscheck-hero .panel-head,
    .bank-crosscheck-missing-panel .panel-head {
        display: grid;
    }

    .bank-crosscheck-form {
        padding: 12px;
    }

    .bank-crosscheck-actions {
        align-items: stretch;
        gap: 10px;
    }

    .bank-crosscheck-progress {
        justify-content: center;
        width: 100%;
    }
}

.alert {
    margin-bottom: 16px;
    border-radius: var(--radius);
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: #edf5ff;
}

.alert.success {
    background: #e6f5ed;
    color: var(--success);
    border-color: #b8dec9;
}

.alert.danger {
    background: #fbe5e8;
    color: var(--danger);
    border-color: #efbdc3;
}

.alert.warning {
    background: #fff2db;
    color: var(--warning);
    border-color: #eac98c;
}

.empty {
    color: var(--muted);
    text-align: center;
    padding: 28px;
}

canvas {
    display: block;
    width: 100%;
    padding: 18px 20px 22px;
}

.chart-scroll {
    overflow-x: auto;
}

.chart-scroll canvas {
    min-width: 720px;
}

.horizontal-chart-scroll {
    max-height: 720px;
    overflow-y: auto;
}

.horizontal-chart-scroll canvas {
    min-width: 0;
}

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

.info-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: #fbfdfe;
}

.info-item span,
.info-item small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.info-item strong {
    display: block;
    margin-top: 7px;
    font-size: 20px;
}

.info-item small {
    margin-top: 6px;
}

code {
    white-space: pre-wrap;
    word-break: break-word;
    color: #30495f;
}

.panel-actions {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px 20px;
}

.public-pay-body {
    background: linear-gradient(180deg, #edf3f7 0%, #f8fbfd 46%, #eef3f7 100%);
}

.public-pay-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 34px 24px;
}

.public-pay-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
    padding: 34px 28px;
    border: 1px solid var(--line);
    border-top: 5px solid #2f76bd;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    box-shadow: 0 16px 34px rgba(17, 33, 46, 0.08);
}

.public-pay-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.public-pay-brand img {
    width: 124px;
    height: 146px;
    object-fit: contain;
}

.public-pay-brand strong,
.public-pay-brand span {
    display: block;
}

.public-pay-brand strong {
    margin-top: 8px;
    color: var(--ink);
    font-size: 34px;
    line-height: 1.08;
}

.public-pay-brand span {
    color: #43586b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    text-transform: uppercase;
}

.public-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 16px;
    border: 1px solid #cfdce6;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(47, 118, 189, 0.1);
    text-align: left;
}

.public-panel {
    box-shadow: 0 10px 26px rgba(17, 33, 46, 0.06);
}

.student-payment-card {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.student-payment-heading h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.student-identity {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.student-identity div {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dce6ed;
    border-radius: var(--radius);
    background: #f8fbfd;
}

.public-pay-body .student-identity span,
.public-pay-body .payment-option-value small,
.public-pay-body .grand-total-entry span,
.public-pay-body .checkout-field > span:first-child {
    display: block;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: uppercase;
}

.student-identity strong {
    display: block;
    min-width: 0;
    margin-top: 6px;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.pay-choice-form {
    display: grid;
    gap: 18px;
    padding: 0 20px 20px;
}

.payment-option-list {
    display: grid;
    gap: 12px;
}

.payment-option {
    position: relative;
    min-width: 0;
}

.payment-option-control {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option-frame {
    min-width: 0;
    border: 1px solid #d6e2ea;
    border-radius: var(--radius);
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.payment-option-control:checked + .payment-option-frame {
    border-color: #2f76bd;
    box-shadow: 0 0 0 3px rgba(47, 118, 189, 0.13);
}

.payment-option.unavailable .payment-option-frame {
    background: #f6f8fa;
}

.payment-option-card {
    display: grid;
    grid-template-columns: minmax(170px, 1.4fr) repeat(3, minmax(96px, 0.75fr)) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 14px;
    cursor: pointer;
}

.payment-option.unavailable .payment-option-card {
    cursor: default;
}

.public-pay-body .donation-copy span,
.public-pay-body .payment-option-card span,
.public-pay-body .book-item-selector span,
.public-pay-body .donation-option span {
    margin-bottom: 0;
}

.payment-option-title {
    min-width: 0;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.payment-option-value {
    display: block;
    min-width: 0;
}

.payment-option-value strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.payment-option-value.balance strong {
    color: var(--primary-dark);
}

.payment-option-action {
    justify-self: end;
    min-width: 76px;
    padding: 8px 10px;
    border-radius: var(--radius);
    background: #e8f1fb;
    color: #1f5f99;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.payment-option.unavailable .payment-option-action {
    background: #e5f2ea;
    color: var(--success);
}

.payment-details {
    min-width: 0;
    border-top: 1px solid #e3ebf1;
}

.payment-details summary {
    display: block;
    position: relative;
    padding: 12px 42px 12px 14px;
    color: #30495f;
    cursor: pointer;
    font-weight: 800;
    line-height: 1.3;
    list-style: none;
}

.payment-details summary::-webkit-details-marker {
    display: none;
}

.payment-details summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border: 1px solid #c9d7e1;
    border-radius: 50%;
    color: #2f76bd;
    line-height: 20px;
    text-align: center;
}

.payment-details[open] summary::after {
    content: "-";
}

.payment-detail-list {
    display: grid;
    gap: 8px;
    padding: 0 14px 14px;
}

.payment-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e2eaf0;
    border-radius: var(--radius);
    background: #fbfdfe;
}

.payment-detail-row > span,
.book-item-selector span {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.payment-detail-row > strong {
    white-space: nowrap;
}

.book-item-selector {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.book-item-selector input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.book-status {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f1fb;
    color: #1f5f99;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.book-status.required {
    background: #edf7f1;
    color: var(--success);
}

.online-payment-entry {
    display: grid;
    grid-template-columns: minmax(230px, 0.85fr) minmax(260px, 1fr);
    gap: 18px;
    align-items: end;
    min-width: 0;
    padding: 18px;
    border: 1px solid #d0dee8;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #f8fbfd 0%, #eef5f8 100%);
}

.checkout-field {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.checkout-field input {
    width: 100%;
}

.checkout-amount-field {
    gap: 9px;
}

.public-pay-body .amount-field {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
    overflow: hidden;
    min-height: 48px;
    border: 1px solid #c9d9e4;
    border-radius: var(--radius);
    background: #ffffff;
}

.public-pay-body .amount-field b {
    flex: 0 0 auto;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: #eef5f9;
    color: #30495f;
    font-size: 14px;
    font-weight: 900;
}

.public-pay-body .amount-field input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.checkout-amount-field .amount-field {
    min-height: 60px;
    border-color: #9fc7df;
    box-shadow: 0 8px 18px rgba(47, 118, 189, 0.09);
}

.checkout-amount-field .amount-field input {
    max-width: none;
    font-size: 24px;
    font-weight: 900;
    text-align: right;
}

.checkout-amount-field .amount-field input::placeholder {
    color: #9aabba;
}

.donation-entry {
    display: grid;
    grid-column: 1 / -1;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #cbdfea;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(47, 118, 189, 0.08);
}

.donation-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.donation-copy span {
    width: max-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #e8f2fb;
    color: #1f5f99;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.donation-entry p {
    margin: 0;
    color: #263b4d;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.donation-option {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.donation-option input[type="radio"] {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 1px;
    min-height: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.donation-choice {
    display: grid;
    place-items: center;
    min-height: 68px;
    padding: 10px;
    border: 1px solid #cbdfea;
    border-radius: var(--radius);
    background: #f8fbfd;
    color: #263b4d;
    line-height: 1.1;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.donation-choice small,
.donation-choice strong {
    display: block;
}

.donation-choice small {
    color: #667789;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.donation-choice strong {
    margin-top: 3px;
    font-size: 23px;
    font-weight: 900;
}

.donation-choice.no-donation strong {
    font-size: 13px;
}

.donation-option input[type="radio"]:checked + .donation-choice {
    border-color: #2f76bd;
    background: #eaf5ff;
    box-shadow: 0 0 0 3px rgba(47, 118, 189, 0.13), inset 0 0 0 1px rgba(47, 118, 189, 0.18);
    color: #164a78;
}

.donation-option.custom {
    grid-column: 1 / -1;
}

.donation-custom-choice {
    grid-template-columns: auto minmax(160px, 260px);
    justify-content: center;
    gap: 12px;
    min-height: 58px;
}

.donation-custom-choice small {
    align-self: center;
}

.donation-option.custom .amount-field {
    max-width: none;
    min-height: 40px;
    background: #ffffff;
}

.donation-option.custom .amount-field input {
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
    text-align: right;
}

.checkout-submit-row {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding-top: 6px;
    border-top: 1px solid #e2eaf0;
}

.grand-total-entry {
    min-width: 0;
}

.grand-total-entry strong {
    display: block;
    margin-top: 4px;
    color: var(--primary-dark);
    font-size: 22px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.inline-action-form {
    margin: 0;
}

.public-pay-footer {
    display: grid;
    gap: 3px;
    justify-items: center;
    margin: 18px auto 0;
    padding: 12px 16px 4px;
    color: #405568;
    font-size: 11px;
    font-style: italic;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.public-pay-footer span,
.public-pay-footer strong {
    display: block;
}

.public-pay-footer strong {
    color: #273b4b;
    font-weight: 900;
}

.payer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 0 20px 20px;
    align-items: end;
}

.pay-amount-input {
    max-width: 140px;
    text-align: right;
}

.public-pay-body .pay-amount-input {
    max-width: none;
}

.public-status-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.receipt-shell {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 24px;
}

.receipt-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 33, 46, 0.06);
}

.receipt-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.receipt-logo {
    width: 92px;
    height: 108px;
    object-fit: contain;
}

.receipt-head h1 {
    margin: 0;
    font-size: 28px;
}

.receipt-head p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.receipt-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.receipt-meta div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdfe;
}

.receipt-meta span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.receipt-meta strong {
    display: block;
    margin-top: 5px;
}

.receipt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.badge.successful {
    background: #dff3e8;
    color: var(--success);
}

.badge.failed,
.badge.cancelled {
    background: #f7dfe2;
    color: var(--danger);
}

@media (max-width: 980px) {
    .sidebar {
        position: static;
        width: auto;
    }

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

    .main {
        margin-left: 0;
        padding: 18px;
    }

    .stats-grid,
    .info-grid,
    .form-grid,
    .quick-access-links,
    .quick-access-options,
    .fee-batch-grid,
    .vot-mapping-grid,
    .payer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-identity-fields,
    .student-guardian-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .student-identity {
        grid-template-columns: 1fr;
    }

    .payment-option-card {
        grid-template-columns: minmax(0, 1fr) repeat(3, minmax(88px, 0.75fr));
    }

    .payment-option-action {
        grid-column: 1 / -1;
        justify-self: start;
    }

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

    .donation-entry {
        grid-template-columns: 1fr;
    }

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

    .donation-option.custom {
        grid-column: 1 / -1;
    }

    .donation-custom-choice {
        grid-template-columns: auto minmax(160px, 260px);
    }

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

    .student-finance-metric:nth-child(2) {
        border-right: 0;
    }

    .student-finance-metric:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .student-summary-metric:nth-child(2) {
        border-right: 0;
    }

    .student-summary-metric:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

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

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

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

    .executive-approval-grid {
        grid-template-columns: 1fr;
    }

    .cash-withdrawal-hero {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .cash-balance-card {
        grid-column: 1 / -1;
    }

    .expenditure-summary-grid,
    .expenditure-field-grid,
    .treasurer-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .topbar,
    .toolbar,
    .inline-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-filter label {
        min-width: 0;
    }

    .income-setup-context {
        align-items: stretch;
        flex-direction: column;
    }

    .income-year-display {
        border-left: 0;
        border-top: 1px solid #b8d4cf;
        padding-left: 0;
        padding-top: 12px;
        text-align: left;
    }

    .income-year-display strong {
        font-size: 24px;
    }

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

    .dashboard-fund-summary {
        grid-template-columns: 1fr;
    }

    .dashboard-overview-head {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-year-filter {
        align-items: end;
        flex-direction: row;
    }

    .executive-approval-head {
        align-items: flex-start;
    }

    .income-allocation-stats.income-reserved-only {
        grid-template-columns: 1fr;
    }

    .income-vot-field,
    .income-amount-field,
    .income-available-inline {
        grid-column: 1 / -1;
    }

    .report-transaction-list div {
        grid-template-columns: 1fr;
    }

    .report-transaction-list em {
        white-space: normal;
    }

    .reserved-fund-hero {
        padding: 18px;
    }

    .opening-balance-hero {
        padding: 18px;
    }

    .reserved-fund-hero strong,
    .opening-balance-hero strong {
        font-size: 30px;
    }

    .reserved-fund-hero small {
        max-width: none;
        text-align: left;
    }

    .reserved-fund-hero small.reserved-virement {
        font-size: 15px;
    }

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

    .form-section-title,
    .cash-status-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .form-section-title span {
        text-align: left;
    }

    .bas-pb-sale-phases {
        grid-template-columns: 1fr;
    }

    .bas-pb-direction-picker {
        grid-template-columns: 1fr;
    }

    .bas-pb-direction-option {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .bas-pb-direction-badge {
        grid-column: 2;
        justify-self: start;
    }

    .stats-grid,
    .info-grid,
    .form-grid,
    .expenditure-summary-grid,
    .expenditure-field-grid,
    .treasurer-overview,
    .quick-access-links,
    .quick-access-options,
    .psg-appointment-form,
    .fee-batch-grid,
    .vot-mapping-grid,
    .payer-grid,
    .public-pay-hero,
    .public-search,
    .receipt-meta,
    nav {
        grid-template-columns: 1fr;
    }

    .psg-appointment-form {
        grid-template-areas:
            "batch"
            "position"
            "fullname"
            "email"
            "address"
            "actions";
    }

    .psg-appointment-form .form-actions {
        justify-content: stretch;
    }

    .psg-appointment-form .button {
        width: 100%;
    }

    .expenditure-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .expenditure-submit-row .button {
        width: 100%;
    }

    .public-pay-shell,
    .receipt-shell {
        padding: 14px;
    }

    .public-pay-brand,
    .receipt-head,
    .receipt-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .student-search-form {
        align-items: stretch;
        flex-direction: column;
    }

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

    .student-finance-search-form .button {
        width: 100%;
    }

    .student-finance-profile-head {
        align-items: stretch;
        flex-direction: column;
    }

    .student-finance-status-stack {
        justify-content: flex-start;
        max-width: none;
    }

    .student-search-form label,
    .student-search-form .button {
        flex-basis: auto;
        width: 100%;
    }

    .student-field-grid,
    .student-payment-summary,
    .student-finance-metrics,
    .student-status-fields {
        grid-template-columns: 1fr;
    }

    .student-finance-metric,
    .student-finance-metric:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .student-finance-metric:last-child {
        border-bottom: 0;
    }

    .student-summary-metric,
    .student-summary-metric:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .student-summary-metric:last-child {
        border-bottom: 0;
    }

    .student-payment-wrap {
        padding: 14px 14px 0;
    }

    .student-payment-card,
    .pay-choice-form {
        padding: 14px;
    }

    .payment-option-card,
    .payment-detail-row,
    .checkout-submit-row {
        grid-template-columns: 1fr;
    }

    .payment-option-card {
        gap: 10px;
    }

    .payment-option-value {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: baseline;
    }

    .payment-option-value strong {
        margin-top: 0;
        text-align: right;
    }

    .book-item-selector {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .book-status {
        grid-column: 2;
    }

    .donation-option,
    .donation-option.custom,
    .donation-option.custom .amount-field {
        width: 100%;
        max-width: none;
    }

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

    .donation-option.custom {
        grid-column: 1 / -1;
    }

    .donation-custom-choice {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .donation-custom-choice small {
        text-align: center;
    }

    .checkout-submit-row {
        display: grid;
        align-items: stretch;
    }

    .checkout-submit-row .button {
        width: 100%;
    }

    .public-pay-brand strong,
    .receipt-head h1 {
        font-size: 22px;
    }

    .public-pay-hero {
        padding: 24px 16px;
    }

    .public-pay-brand img {
        width: 104px;
        height: 124px;
    }

    .span-2 {
        grid-column: span 1;
    }

    .bas-pb-sale-phase-fields {
        grid-template-columns: 1fr;
    }

    th,
    td {
        padding: 10px;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    .receipt-shell {
        width: 100%;
        padding: 0;
    }

    .receipt-card {
        border: 0;
        box-shadow: none;
    }

    .receipt-actions {
        display: none;
    }
}

.bas-pb-arrangement-table td:first-child {
    color: var(--muted);
    font-weight: 800;
}

.bas-pb-arrangement-table td:nth-child(2) strong,
.bas-pb-arrangement-table td:nth-child(2) small {
    display: block;
}

.bas-pb-arrangement-table td:nth-child(2) small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.35;
}

.bas-pb-arrangement-table input {
    min-width: 0;
}

.bas-pb-arrangement-table td.num input[type="number"] {
    max-width: 96px;
    margin-left: auto;
    text-align: center;
    font-weight: 800;
}

.bas-pb-arrangement-table td.num small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.76rem;
}

.panel-actions.split {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.bas-pb-arrangement-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.bas-pb-arrangement-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
}

.bas-pb-arrangement-card h3 {
    margin: 8px 0 4px;
    font-size: 22px;
}

.bas-pb-arrangement-card p {
    margin: 0;
    color: var(--muted);
}

.bas-pb-arrangement-card ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bas-pb-arrangement-card li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--surface-2);
    font-weight: 750;
}

.bas-pb-arrangement-card li small {
    flex: none;
    color: var(--muted);
}

.bas-pb-status-hero .panel-head {
    background: linear-gradient(135deg, #eef7ff 0%, #f8fbff 54%, #eef8f1 100%);
}

.bas-pb-status-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bas-pb-status-stats .stat {
    border: 1px solid #dce8ef;
}

.bas-pb-status-stats .stat:nth-child(3) strong {
    color: var(--success);
}

.bas-pb-status-stats .stat.is-alert strong {
    color: var(--danger);
}

.bas-pb-status-filter form {
    padding: 18px 20px 20px;
}

.bas-pb-status-stack {
    display: grid;
    gap: 18px;
    padding: 0 20px 20px;
}

.bas-pb-status-bus {
    overflow: hidden;
    border: 1px solid #d9e7df;
    border-radius: 10px;
    background: #ffffff;
}

.bas-pb-status-bus-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: #f4f9f6;
    border-bottom: 1px solid #d9e7df;
}

.bas-pb-status-bus-head span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.bas-pb-status-bus-head h3 {
    margin: 3px 0 0;
    font-size: 22px;
}

.bas-pb-status-bus-head > strong {
    flex: none;
    border-radius: 999px;
    padding: 7px 12px;
    background: #ffffff;
    color: #29445c;
    font-size: 13px;
    box-shadow: inset 0 0 0 1px #d9e7df;
}

.bas-pb-status-location {
    padding: 16px 18px 18px;
    border-top: 1px solid #edf2f5;
}

.bas-pb-status-location:first-of-type {
    border-top: 0;
}

.bas-pb-status-location-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 10px;
}

.bas-pb-status-location-head strong,
.bas-pb-status-location-head small {
    display: block;
}

.bas-pb-status-location-head strong {
    font-size: 15px;
}

.bas-pb-status-location-head small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 700;
}

.bas-pb-status-location-head > span {
    flex: none;
    border-radius: 999px;
    padding: 5px 10px;
    background: #eef3f8;
    color: #314456;
    font-size: 12px;
    font-weight: 850;
}

.bas-pb-status-table {
    min-width: 680px;
}

.bas-pb-status-table th:first-child,
.bas-pb-status-table td:first-child {
    width: 56px;
    color: var(--muted);
    font-weight: 850;
}

.bas-pb-status-table th:nth-child(3),
.bas-pb-status-table td:nth-child(3) {
    width: 120px;
}

.bas-pb-status-table th:nth-child(4),
.bas-pb-status-table td:nth-child(4) {
    width: 210px;
}

.bas-pb-status-table th:nth-child(5),
.bas-pb-status-table td:nth-child(5) {
    width: 130px;
}

.bas-pb-status-edit-panel .panel-head {
    background: #fff8ec;
}

.bas-pb-status-edit-panel form {
    padding: 18px 20px 20px;
}

.bas-pb-status-table .button.tiny {
    min-height: 30px;
    padding: 6px 12px;
}

.bas-pb-status-toggle-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    border: 1px solid #dbe8ee;
    border-radius: 999px;
    background: #f7fafc;
}

.bas-pb-status-pill {
    min-height: 28px;
    border: 0;
    border-radius: 999px;
    padding: 5px 10px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.bas-pb-status-pill:hover:not(:disabled) {
    background: #edf5fb;
    color: #223447;
}

.bas-pb-status-pill.is-active {
    background: #dff4e7;
    color: #17663a;
    box-shadow: inset 0 0 0 1px #b7dfc5;
}

.bas-pb-status-pill.is-danger.is-active {
    background: #fde8e8;
    color: #b42318;
    box-shadow: inset 0 0 0 1px #f4b8b3;
}

.bas-pb-status-pill:disabled {
    cursor: default;
    opacity: 1;
}

.bas-pb-location-hero .panel-head {
    background: #eef6ff;
}

.bas-pb-location-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 16px 20px 20px;
    list-style: none;
}

.bas-pb-location-steps li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #718194;
    font-size: 12px;
    font-weight: 850;
}

.bas-pb-location-steps b {
    display: inline-grid;
    flex: none;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid #cedbe7;
    border-radius: 50%;
    background: #ffffff;
    color: #617286;
}

.bas-pb-location-steps .is-active,
.bas-pb-location-steps .is-complete {
    color: #174e87;
}

.bas-pb-location-steps .is-active b {
    border-color: #1976c9;
    background: #1976c9;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(25, 118, 201, .2);
}

.bas-pb-location-steps .is-complete b {
    border-color: #75b99a;
    background: #e2f5eb;
    color: #146c5c;
}

.bas-pb-location-search .panel-head,
.bas-pb-location-results-panel .panel-head,
.bas-pb-location-transfer .panel-head {
    background: #fbfdff;
}

.bas-pb-location-search-form {
    padding: 18px 20px 20px;
}

.bas-pb-location-search-form input {
    min-height: 44px;
}

.bas-pb-location-results-panel .panel-head {
    align-items: flex-end;
}

.bas-pb-location-picker {
    padding: 0 20px 20px;
}

.bas-pb-location-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bas-pb-location-result {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #d9e5ef;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.bas-pb-location-result:hover {
    border-color: #83b8e6;
    box-shadow: 0 6px 16px rgba(31, 76, 119, .1);
}

.bas-pb-location-result:has(input:checked),
.bas-pb-location-result.is-selected {
    border-color: #1976c9;
    background: #f2f8fe;
    box-shadow: inset 0 0 0 1px #1976c9;
}

.bas-pb-location-result input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.bas-pb-location-result-head,
.bas-pb-location-result-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bas-pb-location-result-head strong,
.bas-pb-location-result-head small,
.bas-pb-location-result-meta span,
.bas-pb-location-result-stop {
    display: block;
}

.bas-pb-location-result-head strong {
    color: #1c2e40;
    font-size: 15px;
}

.bas-pb-location-result-head small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.bas-pb-location-result-head b {
    flex: none;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff4d9;
    color: #8a5a08;
    font-size: 12px;
}

.bas-pb-location-result-meta {
    color: #1d5d98;
    font-size: 12px;
    font-weight: 850;
}

.bas-pb-location-result-meta span:last-child {
    color: #637588;
    text-align: right;
}

.bas-pb-location-result-stop {
    padding-top: 11px;
    border-top: 1px solid #e5edf3;
    color: #30485f;
    font-size: 13px;
    font-weight: 750;
}

.bas-pb-location-picker-actions,
.bas-pb-location-transfer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.bas-pb-location-picker-actions > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.bas-pb-location-transfer-form {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
    gap: 0;
    border-top: 1px solid #e4edf3;
}

.bas-pb-location-current,
.bas-pb-location-destination {
    padding: 22px;
}

.bas-pb-location-current {
    background: #f6faff;
    border-right: 1px solid #e0eaf2;
}

.bas-pb-location-kicker {
    display: block;
    margin-bottom: 10px;
    color: #1d669f;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.bas-pb-location-current > strong,
.bas-pb-location-current > small {
    display: block;
}

.bas-pb-location-current > strong {
    color: #1d2f43;
    font-size: 20px;
}

.bas-pb-location-current > small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 750;
}

.bas-pb-location-current dl {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
}

.bas-pb-location-current dl div {
    display: grid;
    gap: 3px;
}

.bas-pb-location-current dt {
    color: #708297;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.bas-pb-location-current dd {
    margin: 0;
    color: #294258;
    font-size: 14px;
    font-weight: 800;
}

.bas-pb-location-destination {
    background: #ffffff;
}

.bas-pb-location-destination label > span {
    display: block;
    margin-bottom: 7px;
    color: #344c61;
    font-size: 13px;
    font-weight: 850;
}

.bas-pb-location-destination select {
    width: 100%;
    min-height: 44px;
}

.bas-pb-location-availability {
    min-height: 44px;
    margin-top: 13px;
    padding: 11px 12px;
    border: 1px solid #dce7ef;
    border-radius: 7px;
    background: #f7fafc;
    color: #637588;
    font-size: 13px;
    font-weight: 750;
}

.bas-pb-location-availability.has-seat {
    border-color: #b9ddc9;
    background: #edf9f1;
    color: #17683d;
}

.bas-pb-location-availability.is-full {
    border-color: #f0c58d;
    background: #fff7e9;
    color: #945d09;
}

.bas-pb-location-destination p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.bas-pb-seat-cancel-panel .panel-head {
    align-items: flex-start;
}

.bas-pb-seat-cancel-warning {
    border-color: rgba(178, 43, 52, 0.24);
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.bas-pb-seat-cancel-warning > strong {
    color: var(--danger);
    font-size: 15px;
}

/* Bas PB financial statement */
.bas-pb-finance-hero {
    border-left: 4px solid #0c6d92;
}

.bas-pb-finance-filter .form-grid {
    align-items: end;
}

.bas-pb-finance-stats .stat {
    min-height: 132px;
}

.bas-pb-finance-stats .stat strong {
    color: #143e63;
    font-size: 25px;
}

.bas-pb-finance-stats .stat.is-profit strong,
.bas-pb-finance-table .is-profit strong,
.bas-pb-finance-summary .is-profit dd {
    color: #117644;
}

.bas-pb-finance-stats .stat.is-loss strong,
.bas-pb-finance-table .is-loss strong,
.bas-pb-finance-summary .is-loss dd {
    color: #b42318;
}

.bas-pb-finance-table td:first-child {
    min-width: 250px;
}

.bas-pb-finance-table td small {
    display: block;
    margin-top: 4px;
    color: #6b7d8f;
    font-size: 11px;
    font-weight: 700;
}

.bas-pb-finance-table th:not(:first-child),
.bas-pb-finance-table td:not(:first-child) {
    text-align: right;
}

.finance-money {
    width: 104px;
    min-width: 104px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.bas-pb-finance-other {
    display: grid;
    grid-template-columns: minmax(150px, 0.35fr) minmax(280px, 1fr);
    gap: 16px;
    margin-top: 18px;
    padding: 17px;
    border: 1px solid #dce8ef;
    border-radius: 8px;
    background: #f8fbfd;
}

.bas-pb-finance-other label > span {
    display: block;
    margin-bottom: 7px;
    color: #314b60;
    font-size: 12px;
    font-weight: 850;
}

.bas-pb-finance-other input {
    width: 100%;
}

.bas-pb-finance-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #dce8ef;
    border-radius: 8px;
    background: #dce8ef;
}

.bas-pb-finance-summary div {
    min-height: 92px;
    padding: 16px;
    background: #fff;
}

.bas-pb-finance-summary dt {
    color: #607487;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.bas-pb-finance-summary dd {
    margin: 10px 0 0;
    color: #143e63;
    font-size: 18px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 780px) {
    .bas-pb-location-steps {
        gap: 7px;
        padding: 14px 16px 18px;
    }

    .bas-pb-location-steps li {
        align-items: flex-start;
        font-size: 11px;
    }

    .bas-pb-location-steps li span {
        padding-top: 5px;
    }

    .bas-pb-location-result-grid,
    .bas-pb-location-transfer-form {
        grid-template-columns: 1fr;
    }

    .bas-pb-location-current {
        border-right: 0;
        border-bottom: 1px solid #e0eaf2;
    }

    .bas-pb-location-picker-actions,
    .bas-pb-location-transfer-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bas-pb-location-picker-actions .button,
    .bas-pb-location-transfer-actions .button {
        width: 100%;
    }

    .bas-pb-location-result-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .bas-pb-location-result-meta span:last-child {
        text-align: left;
    }

    .bas-pb-finance-other,
    .bas-pb-finance-summary {
        grid-template-columns: 1fr;
    }

    .bas-pb-finance-summary div {
        min-height: 0;
    }
}
