/*
|--------------------------------------------------------------------------
| FINANCE TRACKER CUSTOM CSS
|--------------------------------------------------------------------------
|
| This file contains custom styling for the Finance Tracker project.
|
| IMPORTANT:
|
| - Do not edit Dasho's original style.css unless absolutely necessary.
| - Put Finance Tracker-specific overrides and custom components in here.
| - This keeps the Dasho template clean and makes our own styling easier
|   to find, understand, change and document.
|
| This file is intentionally heavily commented because this project is being
| built as a learning project.
|
*/

/*
|--------------------------------------------------------------------------
| 01. THEME VARIABLES
|--------------------------------------------------------------------------
*/

:root {
    --finance-primary: #19BCBF;
    --finance-primary-dark: #159B9D;
    --finance-primary-soft: rgba(25, 188, 191, 0.12);
    --finance-primary-softer: rgba(25, 188, 191, 0.08);

    --finance-success: #28C76F;
    --finance-warning: #FF9F43;
    --finance-danger: #EA5455;
    --finance-info: #00CFE8;

    --finance-text: #1F2D3D;
    --finance-muted: #7B8794;
    --finance-muted-light: #9AA6B2;

    --finance-border: #EEF2F6;
    --finance-border-strong: #E5EDF5;

    --finance-bg: #F5F7FB;
    --finance-bg-soft: #F8FAFC;
    --finance-white: #FFFFFF;

    --finance-radius-sm: 10px;
    --finance-radius-md: 12px;
    --finance-radius-lg: 16px;
    --finance-radius-xl: 18px;

    --finance-shadow-soft: 0 1px 20px 0 rgba(69, 90, 100, 0.08);
    --finance-shadow-card: 0 8px 28px rgba(31, 45, 61, 0.08);
    --finance-shadow-hero: 0 18px 45px rgba(25, 188, 191, 0.24);
    --finance-shadow-topbar: 0 8px 24px rgba(31, 45, 61, 0.06);
}

/*
|--------------------------------------------------------------------------
| 02. GENERAL APP LAYOUT HELPERS
|--------------------------------------------------------------------------
*/

.finance-page-wrapper {
    padding-top: 10px;
}

.finance-page-heading {
    background: var(--finance-white);
    border-radius: var(--finance-radius-md);
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: var(--finance-shadow-soft);
}

.finance-page-title {
    margin: 0;
    color: var(--finance-text);
    font-weight: 700;
}

.finance-page-description {
    margin: 6px 0 0 0;
    color: var(--finance-muted);
}

/*
|--------------------------------------------------------------------------
| 03. FLASH NOTIFICATIONS
|--------------------------------------------------------------------------
|
| Flash messages are rendered by PHP and enhanced by:
|
| /public_html/assets/js/finance-flash.js
|
| They appear as top-right notifiers instead of full-width page messages.
|
*/

.finance-flash-stack {
    position: fixed;
    top: 76px;
    right: 24px;
    width: 420px;
    max-width: calc(100vw - 48px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    z-index: 3000;
    pointer-events: none;
}

.finance-auth-wrapper .finance-flash-stack {
    top: 24px;
    right: 24px;
    width: 420px;
    max-width: calc(100vw - 48px);
    margin: 0;
}

.finance-flash-message {
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 72px;
    padding: 16px 54px 18px 16px;
    border-radius: 16px;
    background: var(--finance-white);
    border: 1px solid var(--finance-border-strong);
    box-shadow:
        0 18px 45px rgba(31, 45, 61, 0.16),
        0 2px 8px rgba(31, 45, 61, 0.06);
    overflow: hidden;
    pointer-events: auto;
}

.finance-flash-message:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.finance-flash-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-left: 3px;
}

.finance-flash-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 1px;
}

.finance-flash-body strong {
    color: var(--finance-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.finance-flash-body span {
    color: #4F5D75;
    font-size: 13px;
    line-height: 1.55;
}

.finance-flash-close {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 11px;
    background: #F5F8FB;
    color: var(--finance-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.finance-flash-close:hover {
    background: var(--finance-primary-soft);
    color: var(--finance-primary-dark);
    transform: translateY(-1px);
}

.finance-flash-progress {
    position: absolute;
    left: 5px;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(31, 45, 61, 0.06);
    overflow: hidden;
}

.finance-flash-progress-bar {
    width: 100%;
    height: 100%;
    transform-origin: left center;
    animation-name: financeFlashProgress;
    animation-duration: var(--finance-flash-timeout);
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.finance-flash-success {
    border-color: rgba(40, 199, 111, 0.28);
}

.finance-flash-success:before,
.finance-flash-success .finance-flash-progress-bar {
    background: var(--finance-success);
}

.finance-flash-success .finance-flash-icon {
    background: rgba(40, 199, 111, 0.12);
    color: var(--finance-success);
}

.finance-flash-danger {
    border-color: rgba(234, 84, 85, 0.28);
}

.finance-flash-danger:before,
.finance-flash-danger .finance-flash-progress-bar {
    background: var(--finance-danger);
}

.finance-flash-danger .finance-flash-icon {
    background: rgba(234, 84, 85, 0.12);
    color: var(--finance-danger);
}

.finance-flash-warning {
    border-color: rgba(255, 159, 67, 0.32);
}

.finance-flash-warning:before,
.finance-flash-warning .finance-flash-progress-bar {
    background: var(--finance-warning);
}

.finance-flash-warning .finance-flash-icon {
    background: rgba(255, 159, 67, 0.14);
    color: #D97800;
}

.finance-flash-info,
.finance-flash-primary {
    border-color: rgba(25, 188, 191, 0.30);
}

.finance-flash-info:before,
.finance-flash-info .finance-flash-progress-bar,
.finance-flash-primary:before,
.finance-flash-primary .finance-flash-progress-bar {
    background: var(--finance-primary);
}

.finance-flash-info .finance-flash-icon,
.finance-flash-primary .finance-flash-icon {
    background: var(--finance-primary-soft);
    color: var(--finance-primary-dark);
}

.finance-flash-hiding {
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

@keyframes financeFlashProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/*
|--------------------------------------------------------------------------
| 04. FINANCE TOPBAR
|--------------------------------------------------------------------------
*/

.finance-topbar {
    box-shadow: var(--finance-shadow-topbar);
}

.finance-topbar-page {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
}

.finance-topbar-page-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.45), transparent 36%),
        linear-gradient(135deg, var(--finance-primary) 0%, var(--finance-primary-dark) 100%);
    color: var(--finance-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(25, 188, 191, 0.28);
}

.finance-topbar-page-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.finance-topbar-page-text strong {
    color: var(--finance-text);
    font-size: 16px;
    font-weight: 800;
}

.finance-topbar-page-text span {
    color: var(--finance-muted);
    font-size: 12px;
    margin-top: 4px;
}

.finance-topbar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.finance-topbar-title strong {
    color: var(--finance-text);
    font-size: 15px;
}

.finance-topbar-title span {
    color: var(--finance-muted);
    font-size: 12px;
    margin-top: 3px;
}

.finance-topbar-actions {
    align-items: center;
    gap: 8px;
}

.finance-topbar-action {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #F5F8FB;
    color: #4F5D75;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.18s ease;
}

.finance-topbar-action:hover {
    background: var(--finance-primary-soft);
    color: var(--finance-primary-dark);
    text-decoration: none;
}

.finance-topbar-action-danger:hover {
    background: rgba(234, 84, 85, 0.12);
    color: var(--finance-danger);
}

/*
|--------------------------------------------------------------------------
| 05. TOPBAR USER MENU
|--------------------------------------------------------------------------
*/

.finance-topbar-user-dropdown {
    position: relative;
}

.finance-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 5px 10px 5px 5px;
    border-radius: 999px;
    background: #F5F8FB;
    color: #4F5D75;
    text-decoration: none;
    transition: all 0.18s ease;
}

.finance-topbar-user:hover,
.finance-topbar-user[aria-expanded="true"] {
    background: var(--finance-primary-soft);
    color: var(--finance-primary-dark);
    text-decoration: none;
}

.finance-topbar-user-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.45), transparent 36%),
        linear-gradient(135deg, var(--finance-primary) 0%, var(--finance-primary-dark) 100%);
    color: var(--finance-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(25, 188, 191, 0.22);
}

.finance-topbar-user-avatar.large {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 15px;
}

.finance-topbar-user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.finance-topbar-user-text strong {
    color: var(--finance-text);
    font-size: 13px;
    font-weight: 800;
}

.finance-topbar-user-text small {
    color: var(--finance-muted);
    font-size: 11px;
    margin-top: 3px;
}

.finance-topbar-user-chevron {
    color: var(--finance-muted);
    font-size: 12px;
}

.finance-topbar-user-menu {
    border: 0;
    border-radius: var(--finance-radius-lg);
    box-shadow: 0 14px 42px rgba(31, 45, 61, 0.16);
    padding: 10px;
    min-width: 260px;
}

.finance-topbar-user-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 12px 8px;
}

.finance-topbar-user-menu-head strong {
    display: block;
    color: var(--finance-text);
    font-size: 14px;
    font-weight: 800;
}

.finance-topbar-user-menu-head small {
    display: block;
    color: var(--finance-muted);
    font-size: 12px;
    margin-top: 3px;
}

.finance-topbar-user-menu .dropdown-item {
    border-radius: var(--finance-radius-md);
    padding: 9px 10px;
    font-size: 13px;
}

.finance-topbar-user-menu .dropdown-item:hover {
    background: var(--finance-primary-soft);
    color: var(--finance-primary-dark);
}

.finance-topbar-user-menu .dropdown-item.text-danger:hover {
    background: rgba(234, 84, 85, 0.12);
    color: var(--finance-danger) !important;
}

/*
|--------------------------------------------------------------------------
| 06. AUTHENTICATION PAGES
|--------------------------------------------------------------------------
*/

.finance-auth-wrapper .card {
    border: 0;
    border-radius: var(--finance-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(31, 45, 61, 0.14);
}

.finance-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.finance-auth-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--finance-primary);
    color: var(--finance-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.finance-auth-brand-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--finance-text);
}

.finance-auth-intro {
    color: var(--finance-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.finance-auth-image-panel {
    min-height: 100%;
    background:
        linear-gradient(135deg, rgba(25, 188, 191, 0.85), rgba(21, 155, 157, 0.85)),
        url('/assets/images/auth/img-auth-2.jpg');
    background-size: cover;
    background-position: center;
}

.finance-auth-image-content {
    min-height: 520px;
    padding: 42px;
    color: var(--finance-white);
    display: flex;
    align-items: flex-end;
}

.finance-auth-image-content h3 {
    color: var(--finance-white);
    font-weight: 700;
    margin-bottom: 12px;
}

.finance-auth-image-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    line-height: 1.7;
}

.finance-auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: var(--finance-radius-md);
    background: var(--finance-primary-softer);
    color: var(--finance-muted);
    font-size: 13px;
    line-height: 1.5;
}

.finance-auth-security-note i {
    color: var(--finance-primary);
    margin-top: 2px;
}

/*
|--------------------------------------------------------------------------
| 07. DOCUMENTATION PAGE SHELL
|--------------------------------------------------------------------------
*/

.finance-docs-page-shell {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.finance-docs-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.finance-docs-sidebar {
    position: sticky;
    top: 96px;
}

.finance-docs-main {
    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| 08. DOCUMENTATION HERO
|--------------------------------------------------------------------------
*/

.finance-docs-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--finance-radius-xl);
    margin-bottom: 24px;
    padding: 34px 38px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 28%),
        linear-gradient(135deg, var(--finance-primary) 0%, var(--finance-primary-dark) 100%);
    color: var(--finance-white);
    box-shadow: var(--finance-shadow-hero);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.finance-docs-hero h2 {
    color: var(--finance-white);
    margin: 0 0 10px 0;
    font-size: 30px;
    font-weight: 800;
}

.finance-docs-hero p {
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.7;
}

.finance-docs-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--finance-white);
    font-size: 13px;
    font-weight: 700;
}

.finance-docs-hero-icon {
    width: 108px;
    height: 108px;
    min-width: 108px;
    border-radius: 34px;
    margin-left: 28px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/*
|--------------------------------------------------------------------------
| 09. DOCUMENTATION CARDS
|--------------------------------------------------------------------------
*/

.finance-docs-nav-card,
.finance-docs-content-card {
    border: 0;
    border-radius: var(--finance-radius-lg);
    overflow: hidden;
    box-shadow: var(--finance-shadow-card);
}

.finance-docs-nav-card .card-header,
.finance-docs-content-card .card-header {
    background: var(--finance-white);
    border-bottom: 1px solid var(--finance-border);
}

.finance-docs-card-subtitle {
    display: block;
    color: var(--finance-muted);
    font-size: 13px;
    margin-top: 4px;
}

/*
|--------------------------------------------------------------------------
| 10. DOCUMENTATION SEARCH
|--------------------------------------------------------------------------
*/

.finance-docs-search {
    padding: 16px;
    border-bottom: 1px solid var(--finance-border);
    position: relative;
}

.finance-docs-search i {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    color: var(--finance-muted-light);
}

.finance-docs-search input {
    width: 100%;
    border: 1px solid var(--finance-border-strong);
    background: var(--finance-bg-soft);
    border-radius: var(--finance-radius-md);
    padding: 11px 14px 11px 40px;
    color: var(--finance-text);
    outline: none;
}

.finance-docs-search input:focus {
    border-color: var(--finance-primary);
    background: var(--finance-white);
    box-shadow: 0 0 0 3px rgba(25, 188, 191, 0.12);
}

/*
|--------------------------------------------------------------------------
| 11. DOCUMENTATION NAVIGATION
|--------------------------------------------------------------------------
*/

.finance-docs-nav {
    padding: 16px;
}

.finance-docs-category {
    margin-bottom: 20px;
}

.finance-docs-category:last-child {
    margin-bottom: 0;
}

.finance-docs-category-title {
    margin-bottom: 8px;
    color: var(--finance-muted-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.finance-docs-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
    border-radius: 14px;
    color: #4F5D75;
    text-decoration: none;
    transition: all 0.18s ease;
}

.finance-docs-nav-item:hover {
    background: #F5F8FB;
    color: var(--finance-primary-dark);
    text-decoration: none;
}

.finance-docs-nav-item.active {
    background: var(--finance-primary-soft);
    color: var(--finance-primary-dark);
    box-shadow: inset 3px 0 0 var(--finance-primary);
}

.finance-docs-nav-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: var(--finance-radius-md);
    background: #F1F5F9;
    color: var(--finance-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.finance-docs-nav-item.active .finance-docs-nav-icon {
    background: var(--finance-primary);
    color: var(--finance-white);
}

.finance-docs-nav-text strong {
    display: block;
    color: inherit;
    font-size: 14px;
    margin-bottom: 3px;
}

.finance-docs-nav-text small {
    display: block;
    color: var(--finance-muted);
    line-height: 1.5;
}

/*
|--------------------------------------------------------------------------
| 12. DOCUMENTATION CONTENT
|--------------------------------------------------------------------------
*/

.finance-docs-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.finance-docs-content-header h5 {
    margin: 0;
}

.finance-docs-content-kicker {
    color: var(--finance-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.finance-docs-content {
    color: #4F5D75;
    font-size: 15px;
    line-height: 1.75;
}

.finance-docs-content h3 {
    color: var(--finance-text);
    font-weight: 800;
    margin-bottom: 12px;
}

.finance-docs-content h4 {
    color: var(--finance-text);
    font-weight: 700;
    margin: 24px 0 10px 0;
}

.finance-docs-content h5 {
    color: var(--finance-text);
}

.finance-docs-content p {
    margin-bottom: 14px;
}

.finance-docs-content code {
    color: var(--finance-primary-dark);
    background: var(--finance-primary-softer);
    border-radius: 6px;
    padding: 2px 6px;
}

.finance-docs-section {
    margin-bottom: 24px;
}

/*
|--------------------------------------------------------------------------
| 13. DOCUMENTATION CODE BLOCKS
|--------------------------------------------------------------------------
*/

.finance-docs-code {
    background: #101828;
    color: #DBE4EF;
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0 26px 0;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.7;
}

.finance-docs-code code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/*
|--------------------------------------------------------------------------
| 14. DOCUMENTATION MINI CARDS
|--------------------------------------------------------------------------
*/

.finance-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 22px 0;
}

.finance-docs-mini-card {
    border: 1px solid var(--finance-border);
    border-radius: var(--finance-radius-lg);
    padding: 20px;
    background: var(--finance-white);
}

.finance-docs-mini-card i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--finance-primary-soft);
    color: var(--finance-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 14px;
}

.finance-docs-mini-card h5 {
    color: var(--finance-text);
    font-weight: 700;
    margin-bottom: 8px;
}

.finance-docs-mini-card p {
    color: var(--finance-muted);
    margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| 15. DOCUMENTATION CALLOUTS
|--------------------------------------------------------------------------
*/

.finance-docs-callout {
    display: flex;
    gap: 16px;
    border: 1px solid rgba(25, 188, 191, 0.18);
    background: var(--finance-primary-softer);
    border-radius: var(--finance-radius-lg);
    padding: 18px;
    margin: 24px 0;
}

.finance-docs-callout.danger {
    border-color: rgba(234, 84, 85, 0.2);
    background: rgba(234, 84, 85, 0.08);
}

.finance-docs-callout-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    background: var(--finance-primary);
    color: var(--finance-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.finance-docs-callout.danger .finance-docs-callout-icon {
    background: var(--finance-danger);
}

.finance-docs-callout h5 {
    color: var(--finance-text);
    margin-bottom: 6px;
    font-weight: 700;
}

.finance-docs-callout p {
    margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| 16. DOCUMENTATION TABLES
|--------------------------------------------------------------------------
*/

.finance-docs-table-wrap {
    border: 1px solid var(--finance-border);
    border-radius: var(--finance-radius-lg);
    overflow: hidden;
    margin: 20px 0 26px 0;
}

.finance-docs-table {
    margin-bottom: 0;
}

.finance-docs-table thead th {
    background: var(--finance-bg-soft);
    color: var(--finance-text);
    border-bottom: 1px solid var(--finance-border);
}

/*
|--------------------------------------------------------------------------
| 17. DOCUMENTATION FLOW STEPS
|--------------------------------------------------------------------------
*/

.finance-docs-flow {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 22px 0;
}

.finance-docs-flow-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--finance-border);
    border-radius: var(--finance-radius-lg);
    background: var(--finance-white);
}

.finance-docs-flow-item span {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: var(--finance-radius-md);
    background: var(--finance-primary);
    color: var(--finance-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.finance-docs-flow-item h5 {
    margin-bottom: 5px;
    color: var(--finance-text);
    font-weight: 700;
}

.finance-docs-flow-item p {
    margin-bottom: 0;
    color: var(--finance-muted);
}

/*
|--------------------------------------------------------------------------
| 18. DOCUMENTATION CHECKLISTS
|--------------------------------------------------------------------------
*/

.finance-docs-checklist {
    list-style: none;
    padding: 0;
    margin: 18px 0 0 0;
}

.finance-docs-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--finance-border);
}

.finance-docs-checklist li:last-child {
    border-bottom: 0;
}

.finance-docs-checklist i {
    color: var(--finance-success);
}

/*
|--------------------------------------------------------------------------
| 19. DOCUMENTATION TIMELINE
|--------------------------------------------------------------------------
*/

.finance-docs-timeline {
    position: relative;
    padding-left: 26px;
}

.finance-docs-timeline:before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 2px;
    background: var(--finance-border-strong);
}

.finance-docs-timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.finance-docs-timeline-item:last-child {
    margin-bottom: 0;
}

.finance-docs-timeline-dot {
    position: absolute;
    top: 8px;
    left: -25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--finance-primary);
    border: 4px solid var(--finance-white);
    box-shadow: 0 0 0 2px rgba(25, 188, 191, 0.24);
}

.finance-docs-timeline-content {
    background: var(--finance-white);
    border: 1px solid var(--finance-border);
    border-radius: var(--finance-radius-lg);
    padding: 18px;
}

.finance-docs-timeline-content span {
    display: block;
    color: var(--finance-primary);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.finance-docs-timeline-content h5 {
    color: var(--finance-text);
    font-weight: 700;
    margin-bottom: 8px;
}

.finance-docs-timeline-content p {
    margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| 20. MODULE CARDS
|--------------------------------------------------------------------------
*/

.finance-module-card {
    border: 0;
    border-radius: var(--finance-radius-lg);
    box-shadow: var(--finance-shadow-card);
    overflow: hidden;
}

.finance-module-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--finance-white);
    border-bottom: 1px solid var(--finance-border);
}

.finance-module-card-header h5 {
    margin-bottom: 0;
    color: var(--finance-text);
    font-weight: 800;
}

.finance-module-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*
|--------------------------------------------------------------------------
| 21. STAT CARDS
|--------------------------------------------------------------------------
*/

.finance-stat-card {
    border: 0;
    border-radius: var(--finance-radius-lg);
    box-shadow: var(--finance-shadow-card);
    overflow: hidden;
}

.finance-stat-card .card-body {
    padding: 22px;
}

.finance-stat-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.finance-stat-label {
    display: block;
    color: var(--finance-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.finance-stat-card h3 {
    color: var(--finance-text);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
}

.finance-stat-card p {
    color: var(--finance-muted);
    font-size: 13px;
    margin-bottom: 0;
}

.finance-stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--finance-white);
    font-size: 22px;
}

.finance-stat-primary .finance-stat-icon {
    background: var(--finance-primary);
}

.finance-stat-success .finance-stat-icon {
    background: var(--finance-success);
}

.finance-stat-warning .finance-stat-icon {
    background: var(--finance-warning);
}

.finance-stat-danger .finance-stat-icon {
    background: var(--finance-danger);
}

.finance-stat-info .finance-stat-icon {
    background: var(--finance-info);
}

/*
|--------------------------------------------------------------------------
| 22. ACCOUNT STAT CARDS
|--------------------------------------------------------------------------
|
| Dasho-inspired statistic cards for the Accounts module.
|
*/

.finance-account-stat-row {
    margin-bottom: 10px;
}

.finance-dasho-stat-card {
    position: relative;
    border: 0;
    border-radius: var(--finance-radius-lg);
    background: var(--finance-white);
    box-shadow: var(--finance-shadow-card);
    overflow: hidden;
    min-height: 128px;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.finance-dasho-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(31, 45, 61, 0.10);
}

.finance-dasho-stat-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.finance-dasho-stat-card .card-body {
    min-height: 128px;
    padding: 20px 22px 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.finance-dasho-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.finance-dasho-stat-label {
    display: block;
    color: var(--finance-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1.3;
}

.finance-dasho-stat-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.finance-dasho-stat-value {
    color: var(--finance-text);
    font-size: 30px;
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 8px;
}

.finance-dasho-stat-description {
    color: var(--finance-muted);
    font-size: 12px;
    line-height: 1.45;
}

.finance-dasho-stat-card.finance-stat-primary:before {
    background: var(--finance-primary);
}

.finance-dasho-stat-card.finance-stat-primary .finance-dasho-stat-icon {
    background: var(--finance-primary-soft);
    color: var(--finance-primary-dark);
}

.finance-dasho-stat-card.finance-stat-success:before {
    background: var(--finance-success);
}

.finance-dasho-stat-card.finance-stat-success .finance-dasho-stat-icon {
    background: rgba(40, 199, 111, 0.12);
    color: var(--finance-success);
}

.finance-dasho-stat-card.finance-stat-danger:before {
    background: var(--finance-danger);
}

.finance-dasho-stat-card.finance-stat-danger .finance-dasho-stat-icon {
    background: rgba(234, 84, 85, 0.12);
    color: var(--finance-danger);
}

.finance-dasho-stat-card.finance-stat-warning:before {
    background: var(--finance-warning);
}

.finance-dasho-stat-card.finance-stat-warning .finance-dasho-stat-icon {
    background: rgba(255, 159, 67, 0.14);
    color: #D97800;
}

.finance-dasho-stat-card.finance-stat-info:before {
    background: var(--finance-info);
}

.finance-dasho-stat-card.finance-stat-info .finance-dasho-stat-icon {
    background: rgba(0, 207, 232, 0.12);
    color: #009FB3;
}

/*
|--------------------------------------------------------------------------
| 23. EMPTY STATES
|--------------------------------------------------------------------------
*/

.finance-empty-state {
    text-align: center;
    max-width: 520px;
    margin: 34px auto;
    padding: 28px;
}

.finance-empty-state-icon {
    width: 82px;
    height: 82px;
    border-radius: 26px;
    margin: 0 auto 20px auto;
    background: var(--finance-primary-soft);
    color: var(--finance-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.finance-empty-state h5 {
    color: var(--finance-text);
    font-weight: 800;
    margin-bottom: 8px;
}

.finance-empty-state p {
    color: var(--finance-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

/*
|--------------------------------------------------------------------------
| 24. TABLES AND FILTER STRIPS
|--------------------------------------------------------------------------
*/

.finance-table-filter-strip {
    background: var(--finance-bg-soft);
    border: 1px solid var(--finance-border);
    border-radius: var(--finance-radius-lg);
    padding: 16px;
    margin-bottom: 18px;
}

.finance-filter-row {
    width: 100%;
}

.finance-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.finance-filter-actions-right {
    justify-content: flex-end;
}

.finance-filter-actions .btn {
    min-height: 43px;
}

.finance-filter-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--finance-primary-softer);
    border: 1px solid rgba(25, 188, 191, 0.18);
    border-radius: var(--finance-radius-md);
    color: var(--finance-primary-dark);
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
}

.finance-filter-summary a {
    margin-left: auto;
    color: var(--finance-primary-dark);
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| 25. SELECT2 FINANCE STYLING
|--------------------------------------------------------------------------
*/

.finance-select2+.select2-container {
    width: 100% !important;
}

.finance-select2+.select2-container .select2-selection--single {
    min-height: 43px;
    height: 43px;
    border: 1px solid var(--finance-border-strong);
    border-radius: var(--finance-radius-md);
    background: var(--finance-white);
    display: flex;
    align-items: center;
    box-shadow: none;
}

.finance-select2+.select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--finance-text);
    line-height: 43px;
    padding-left: 14px;
    padding-right: 36px;
    font-size: 14px;
}

.finance-select2+.select2-container .select2-selection--single .select2-selection__placeholder {
    color: var(--finance-muted);
}

.finance-select2+.select2-container .select2-selection--single .select2-selection__arrow {
    height: 43px;
    right: 8px;
}

.finance-select2+.select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--finance-muted) transparent transparent transparent;
}

.finance-select2+.select2-container.select2-container--open .select2-selection--single,
.finance-select2+.select2-container.select2-container--focus .select2-selection--single {
    border-color: var(--finance-primary);
    box-shadow: 0 0 0 3px rgba(25, 188, 191, 0.12);
}

.finance-select2+.select2-container.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--finance-primary) transparent;
}

.select2-dropdown {
    border: 1px solid var(--finance-border-strong);
    border-radius: var(--finance-radius-md);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(31, 45, 61, 0.14);
}

.select2-container--default .select2-search--dropdown {
    padding: 10px;
    background: var(--finance-white);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    min-height: 38px;
    border: 1px solid var(--finance-border-strong);
    border-radius: var(--finance-radius-sm);
    padding: 8px 10px;
    color: var(--finance-text);
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--finance-primary);
    box-shadow: 0 0 0 3px rgba(25, 188, 191, 0.12);
}

.select2-container--default .select2-results__option {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--finance-text);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--finance-primary);
    color: var(--finance-white);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--finance-primary-softer);
    color: var(--finance-primary-dark);
    font-weight: 700;
}

.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    background: var(--finance-primary);
    color: var(--finance-white);
}

.finance-select2+.select2-container .select2-selection__clear {
    color: var(--finance-muted);
    font-size: 18px;
    margin-right: 8px;
}

.finance-select2+.select2-container .select2-selection__clear:hover {
    color: var(--finance-danger);
}

.finance-modal .finance-select2+.select2-container .select2-selection--single {
    background: var(--finance-white);
}

/*
|--------------------------------------------------------------------------
| 26. DATATABLES FINANCE STYLING
|--------------------------------------------------------------------------
*/

.dataTables_wrapper {
    width: 100%;
    overflow: visible;
    color: var(--finance-text);
}

.dataTables_wrapper .row {
    align-items: center;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_info {
    color: var(--finance-muted);
    font-size: 13px;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--finance-border-strong);
    border-radius: var(--finance-radius-md);
    padding: 7px 10px;
    color: var(--finance-text);
    outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--finance-primary);
    box-shadow: 0 0 0 3px rgba(25, 188, 191, 0.12);
    outline: none;
}

.dataTables_wrapper .pagination {
    margin-bottom: 0;
}

.dataTables_wrapper .pagination .page-link {
    color: var(--finance-primary-dark);
    border-color: var(--finance-border-strong);
}

.dataTables_wrapper .pagination .page-link:hover {
    background: var(--finance-primary-softer);
    color: var(--finance-primary-dark);
}

.dataTables_wrapper .pagination .page-item.active .page-link {
    background: var(--finance-primary);
    border-color: var(--finance-primary);
    color: var(--finance-white);
}

table.dataTable {
    width: 100% !important;
}

.finance-accounts-table {
    width: 100% !important;
}

.finance-accounts-table th,
.finance-accounts-table td {
    white-space: normal;
}

.finance-accounts-table th:last-child,
.finance-accounts-table td:last-child {
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| DATATABLES LENGTH MENU - FINANCE STYLE
|--------------------------------------------------------------------------
|
| Styles the "Show 25 / 50 / 100 / All records" dropdown so it matches
| the Finance Tracker form controls.
|
| This is the small dropdown rendered by DataTables above tables.
|
*/

.dataTables_wrapper .dataTables_length {
    display: flex;
    align-items: center;
}

.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    color: var(--finance-muted);
    font-size: 13px;
    font-weight: 700;
}

.dataTables_wrapper .dataTables_length select {
    min-width: 86px;
    height: 38px;
    padding: 7px 34px 7px 12px;
    border: 1px solid var(--finance-border-strong);
    border-radius: var(--finance-radius-md);
    background-color: var(--finance-white);
    color: var(--finance-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    outline: none;
    cursor: pointer;
    box-shadow: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;

    /*
    |--------------------------------------------------------------------------
    | Custom dropdown arrow
    |--------------------------------------------------------------------------
    |
    | This replaces the browser default arrow with a small Finance-style
    | chevron. The colour is the muted text colour.
    |
    */

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%237B8794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
}

.dataTables_wrapper .dataTables_length select:hover {
    border-color: rgba(25, 188, 191, 0.45);
    background-color: var(--finance-bg-soft);
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--finance-primary);
    background-color: var(--finance-white);
    box-shadow: 0 0 0 3px rgba(25, 188, 191, 0.12);
}

.dataTables_wrapper .dataTables_length select option {
    color: var(--finance-text);
    background: var(--finance-white);
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| 27. ACCOUNT MODULE
|--------------------------------------------------------------------------
*/

.finance-account-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.finance-account-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    color: var(--finance-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.finance-account-cell strong {
    display: block;
    color: var(--finance-text);
    font-weight: 800;
    line-height: 1.2;
}

.finance-account-cell small {
    display: block;
    color: var(--finance-muted);
    font-size: 12px;
    margin-top: 4px;
}

.finance-soft-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--finance-primary-softer);
    color: var(--finance-primary-dark);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.finance-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/*
|--------------------------------------------------------------------------
| Account Action Buttons
|--------------------------------------------------------------------------
*/

.finance-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.finance-action-icon {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.finance-action-icon:hover {
    transform: translateY(-1px);
}

.finance-action-edit {
    background: var(--finance-primary-soft);
    color: var(--finance-primary-dark);
}

.finance-action-edit:hover {
    background: var(--finance-primary);
    color: var(--finance-white);
    box-shadow: 0 8px 18px rgba(25, 188, 191, 0.22);
}

.finance-action-delete {
    background: rgba(234, 84, 85, 0.10);
    color: var(--finance-danger);
}

.finance-action-delete:hover {
    background: var(--finance-danger);
    color: var(--finance-white);
    box-shadow: 0 8px 18px rgba(234, 84, 85, 0.20);
}

.finance-accounts-table th {
    color: var(--finance-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.finance-accounts-table td {
    vertical-align: middle;
}

/*
|--------------------------------------------------------------------------
| 28. FINANCE MODALS
|--------------------------------------------------------------------------
*/

.finance-modal-content {
    border-radius: 22px;
    overflow: hidden;
}

.finance-modal-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(135deg, var(--finance-primary) 0%, var(--finance-primary-dark) 100%);
    color: var(--finance-white);
}

.finance-modal-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.finance-modal-hero-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--finance-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.finance-modal-kicker {
    display: inline-block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.finance-modal-hero h5 {
    color: var(--finance-white);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
}

.finance-modal-hero p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
    line-height: 1.5;
}

.finance-modal-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 0;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--finance-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.finance-modal-close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.finance-modal-body {
    background: var(--finance-bg-soft);
    padding: 24px;
}

.finance-modal-footer {
    background: var(--finance-white);
    border-top: 1px solid var(--finance-border);
    padding: 16px 24px;
}

/*
|--------------------------------------------------------------------------
| 29. MODAL SCROLLING FIX
|--------------------------------------------------------------------------
|
| Large Finance modals need to work properly on 1080p screens without
| becoming ridiculously tall or creating a detached footer strip.
|
| Important:
|
| We do NOT force the modal dialog to be full viewport height.
|
| Instead:
|
| - modal naturally sizes to its content
| - modal is capped to the viewport
| - only the modal body scrolls when needed
| - hero and footer stay visually inside the rounded modal
|
*/

.finance-modal {
    overflow-y: auto;
}

.finance-modal-dialog {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.finance-modal-dialog .finance-modal-content {
    height: auto;
    max-height: calc(100vh - 3rem);
    overflow: hidden;
}

.finance-modal-dialog .finance-modal-form {
    max-height: calc(100vh - 3rem);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.finance-modal-dialog .finance-modal-hero {
    flex: 0 0 auto;
}

.finance-modal-dialog .finance-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.finance-modal-dialog .finance-modal-footer {
    flex: 0 0 auto;
    margin: 0;
    border-top: 1px solid var(--finance-border);
    box-shadow: none;
    position: relative;
    bottom: auto;
}

/*
|--------------------------------------------------------------------------
| 30. MODAL FORM SECTIONS
|--------------------------------------------------------------------------
*/

.finance-form-section {
    background: var(--finance-white);
    border: 1px solid var(--finance-border);
    border-radius: var(--finance-radius-lg);
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(31, 45, 61, 0.04);
}

.finance-form-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.finance-form-section-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    background: var(--finance-primary-soft);
    color: var(--finance-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.finance-form-section-header h6 {
    color: var(--finance-text);
    font-weight: 800;
    margin-bottom: 4px;
}

.finance-form-section-header p {
    color: var(--finance-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
}

.finance-colour-input {
    width: 100%;
    min-height: 43px;
    padding: 6px;
}

/*
|--------------------------------------------------------------------------
| 31. MONEY INPUT GROUPS
|--------------------------------------------------------------------------
*/

.finance-money-input .input-group-text {
    background: var(--finance-primary);
    border-color: var(--finance-primary);
    color: var(--finance-white);
    font-weight: 800;
}

.finance-money-input .form-control {
    border-left: 0;
}

.finance-money-input .form-control:focus {
    border-color: var(--finance-primary);
    box-shadow: 0 0 0 3px rgba(25, 188, 191, 0.12);
}

/*
|--------------------------------------------------------------------------
| 32. MODAL SIDEBAR CARDS
|--------------------------------------------------------------------------
*/

.finance-modal-side-card {
    background:
        radial-gradient(circle at top right, rgba(25, 188, 191, 0.14), transparent 34%),
        var(--finance-white);
    border: 1px solid rgba(25, 188, 191, 0.18);
    border-radius: var(--finance-radius-lg);
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(31, 45, 61, 0.05);
}

.finance-modal-preview-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: var(--finance-primary);
    color: var(--finance-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
    box-shadow: 0 12px 24px rgba(25, 188, 191, 0.22);
}

.finance-modal-side-card h6 {
    color: var(--finance-text);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
}

.finance-modal-side-card p {
    color: var(--finance-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.finance-modal-preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.finance-modal-preview-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--finance-border);
}

.finance-modal-preview-list span {
    color: var(--finance-muted);
    font-size: 12px;
    font-weight: 700;
}

.finance-modal-preview-list strong {
    color: var(--finance-text);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.finance-modal-settings-section {
    margin-bottom: 18px;
}

/*
|--------------------------------------------------------------------------
| 33. MODAL SWITCH CARDS
|--------------------------------------------------------------------------
*/

.finance-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--finance-border);
    border-radius: var(--finance-radius-md);
    background: var(--finance-bg-soft);
    margin-bottom: 12px;
}

.finance-switch-card:last-child {
    margin-bottom: 0;
}

.finance-switch-card strong {
    display: block;
    color: var(--finance-text);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 3px;
}

.finance-switch-card span {
    display: block;
    color: var(--finance-muted);
    font-size: 12px;
    line-height: 1.4;
}

/*
|--------------------------------------------------------------------------
| 34. DELETE CONFIRMATION MODALS
|--------------------------------------------------------------------------
*/

.finance-delete-modal-content {
    border-radius: 22px;
    overflow: hidden;
}

.finance-delete-modal-body {
    padding: 30px 30px 24px 30px;
    text-align: center;
}

.finance-delete-modal-icon {
    width: 74px;
    height: 74px;
    border-radius: 26px;
    margin: 0 auto 18px auto;
    background: rgba(234, 84, 85, 0.12);
    color: var(--finance-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.finance-delete-modal-body h5 {
    color: var(--finance-text);
    font-size: 22px;
    font-weight: 850;
    margin-bottom: 10px;
}

.finance-delete-modal-body p {
    color: var(--finance-muted);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.finance-delete-modal-body p strong {
    color: var(--finance-text);
}

.finance-delete-account-preview {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(234, 84, 85, 0.16);
    border-radius: var(--finance-radius-lg);
    background: rgba(234, 84, 85, 0.06);
    text-align: left;
}

.finance-delete-account-preview strong {
    display: block;
    color: var(--finance-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.finance-delete-account-preview span {
    display: block;
    color: var(--finance-muted);
    font-size: 12px;
    margin-top: 4px;
}

/*
|--------------------------------------------------------------------------
| 35. ACCOUNT VISUAL CARDS
|--------------------------------------------------------------------------
|
| CSS-rendered account cards.
|
| The actual account data is rendered by PHP.
| This CSS only controls the visual card style.
|
| Important:
|
| - bank logos are rendered directly on the card
| - there is no white logo plate/wrapper
| - cards scale using clamp() and aspect-ratio instead of fixed sizes
| - card strip cards are centred dynamically based on how many are visible
|
*/

.finance-account-card {
    --finance-account-card-width: clamp(260px, 23vw, 340px);
    --finance-account-card-pad-x: clamp(20px, 1.5vw, 26px);
    --finance-account-card-pad-top: clamp(20px, 1.45vw, 26px);
    --finance-account-card-bottom: clamp(18px, 1.35vw, 24px);
    --finance-account-card-logo-size: clamp(38px, 3vw, 48px);
    --finance-account-card-chip-width: clamp(38px, 3vw, 45px);
    --finance-account-card-chip-height: clamp(30px, 2.4vw, 36px);
    --finance-account-card-title-size: clamp(17px, 1.25vw, 22px);
    --finance-account-card-subtitle-size: clamp(11px, 0.85vw, 13px);
    --finance-account-card-balance-size: clamp(16px, 1.15vw, 20px);
    --finance-account-card-network-size: clamp(31px, 2.5vw, 43px);

    position: relative;
    width: 100%;
    max-width: min(100%, var(--finance-account-card-width));
    aspect-ratio: 420 / 260;
    height: auto;
    border-radius: clamp(18px, 1.45vw, 24px);
    overflow: hidden;
    color: #ffffff;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.20),
        0 2px 5px rgba(0, 0, 0, 0.22);
}

.finance-account-card-size-compact {
    --finance-account-card-width: clamp(245px, 20vw, 315px);
    --finance-account-card-logo-size: clamp(34px, 2.6vw, 42px);
    --finance-account-card-title-size: clamp(16px, 1.1vw, 19px);
    --finance-account-card-balance-size: clamp(15px, 1vw, 17px);
    --finance-account-card-network-size: clamp(29px, 2.1vw, 34px);
}

.finance-account-card-default_dark,
.finance-account-card-hsbc_black {
    background:
        radial-gradient(circle at 78% 70%, rgba(219, 0, 17, 0.22), transparent 30%),
        radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.09), transparent 22%),
        linear-gradient(145deg, #070707 0%, #11151b 48%, #24272d 100%);
}

.finance-account-card-default_dark {
    background:
        radial-gradient(circle at 78% 70%, rgba(25, 188, 191, 0.22), transparent 30%),
        radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.09), transparent 22%),
        linear-gradient(145deg, #070707 0%, #11151b 48%, #24272d 100%);
}

.finance-account-card-shine {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 32%),
        linear-gradient(260deg, rgba(255, 255, 255, 0.04), transparent 44%);
    pointer-events: none;
}

.finance-account-card-glow {
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(219, 0, 17, 0.18);
    filter: blur(8px);
    pointer-events: none;
}

.finance-account-card-default_dark .finance-account-card-glow {
    background: rgba(25, 188, 191, 0.18);
}

.finance-account-card-top,
.finance-account-card-chip-row,
.finance-account-card-bottom {
    position: relative;
    z-index: 2;
}

.finance-account-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--finance-account-card-pad-top) var(--finance-account-card-pad-x) 0 var(--finance-account-card-pad-x);
}

.finance-account-card-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Account Card Bank Logo Marks
|--------------------------------------------------------------------------
|
| Logo assets are displayed directly on the card.
|
| There should be no logo plate, no white pill and no background wrapper.
|
*/

.finance-account-card .finance-account-card-logo {
    display: block;
    object-fit: contain;
    object-position: left center;
}

.finance-account-card .finance-account-card-logo-mark {
    width: var(--finance-account-card-logo-size);
    height: var(--finance-account-card-logo-size);
    max-width: var(--finance-account-card-logo-size);
    max-height: var(--finance-account-card-logo-size);
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

/*
|--------------------------------------------------------------------------
| Fallback Card Brand
|--------------------------------------------------------------------------
|
| Used when no bank logo is mapped for the provider.
|
*/

.finance-account-card-fallback-logo {
    width: var(--finance-account-card-logo-size);
    height: var(--finance-account-card-logo-size);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    flex: 0 0 auto;
}

.finance-account-card-fallback-text {
    margin-left: 12px;
    min-width: 0;
}

.finance-account-card-fallback-text strong {
    display: block;
    max-width: 170px;
    color: #ffffff;
    font-size: clamp(17px, 1.2vw, 20px);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finance-account-card-product {
    margin-top: 6px;
    font-size: clamp(10px, 0.75vw, 12px);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.66);
}

.finance-account-card-chip-row {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.15vw, 18px);
    padding: clamp(18px, 1.55vw, 24px) var(--finance-account-card-pad-x) 0 var(--finance-account-card-pad-x);
}

.finance-account-card-chip {
    width: var(--finance-account-card-chip-width);
    height: var(--finance-account-card-chip-height);
    border-radius: 8px;
    background:
        linear-gradient(135deg, #f5f5f5, #9da0a6);
    border: 1px solid rgba(255, 255, 255, 0.55);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.15),
        inset 0 10px 16px rgba(255, 255, 255, 0.45),
        inset 0 -10px 16px rgba(0, 0, 0, 0.22);
}

.finance-account-card-chip span {
    border: 1px solid rgba(75, 78, 84, 0.35);
}

.finance-account-card-contactless {
    font-size: clamp(15px, 1.1vw, 18px);
    font-weight: 800;
    letter-spacing: -0.18em;
    transform: rotate(90deg);
    color: rgba(255, 255, 255, 0.55);
}

.finance-account-card-bottom {
    position: absolute;
    left: var(--finance-account-card-pad-x);
    right: var(--finance-account-card-pad-x);
    bottom: var(--finance-account-card-bottom);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.finance-account-card-details {
    min-width: 0;
}

.finance-account-card-details h6 {
    margin: 0;
    max-width: 230px;
    color: #ffffff;
    font-size: var(--finance-account-card-title-size);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finance-account-card-details p {
    margin: 5px 0 9px 0;
    max-width: 230px;
    font-size: var(--finance-account-card-subtitle-size);
    color: rgba(255, 255, 255, 0.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finance-account-card-details strong {
    display: block;
    color: #ffffff;
    font-size: var(--finance-account-card-balance-size);
    font-weight: 850;
    letter-spacing: -0.02em;
}

.finance-account-card-network {
    color: #ffffff;
    font-size: var(--finance-account-card-network-size);
    font-weight: 950;
    font-style: italic;
    letter-spacing: -0.08em;
    line-height: 0.85;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
    flex: 0 0 auto;
}

/*
|--------------------------------------------------------------------------
| Account Card Inside Modals
|--------------------------------------------------------------------------
|
| Inside modals, the card is flatter and smaller so it feels attached to the
| modal layout rather than floating above it.
|
*/

.finance-modal-body .finance-account-card {
    --finance-account-card-width: clamp(235px, 18vw, 300px);
    width: 100%;
    max-width: min(100%, var(--finance-account-card-width));
    margin: 0 auto 18px auto;
    box-shadow: none;
    border: 1px solid rgba(25, 188, 191, 0.22);
}

.finance-modal-body .finance-account-card-size-compact {
    max-width: min(100%, var(--finance-account-card-width));
}

.finance-modal-body .col-lg-4 {
    padding-top: 0;
}

/*
|--------------------------------------------------------------------------
| Account Card Strip
|--------------------------------------------------------------------------
|
| Featured account cards shown above the Accounts table.
|
| The strip is collapsed by default and can be toggled open from the header.
| Visible cards are centred dynamically and resized with the viewport.
|
*/

.finance-account-card-strip-card {
    overflow: visible;
    margin-left: auto;
    margin-right: auto;
}

.finance-account-card-strip-card .card-header {
    cursor: default;
}

.finance-account-card-strip-card .card-body {
    overflow: visible;
}

.finance-account-card-strip-collapse {
    border-top: 1px solid var(--finance-border);
}

.finance-account-card-strip-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.finance-account-card-strip-toggle .finance-card-strip-label-hide {
    display: inline;
}

.finance-account-card-strip-toggle .finance-card-strip-label-show {
    display: none;
}

.finance-account-card-strip-toggle.collapsed .finance-card-strip-label-hide {
    display: none;
}

.finance-account-card-strip-toggle.collapsed .finance-card-strip-label-show {
    display: inline;
}

.finance-account-card-strip-toggle i {
    transition: transform 0.2s ease;
}

.finance-account-card-strip-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.finance-account-card-strip-inner {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(16px, 1.6vw, 24px);
    margin-left: auto;
    margin-right: auto;
}

.finance-account-card-strip-item {
    flex: 0 1 clamp(250px, 21vw, 320px);
    max-width: clamp(250px, 21vw, 320px);
    width: 100%;
    display: flex;
    justify-content: center;
}

.finance-account-card-strip-item .finance-account-card {
    --finance-account-card-width: clamp(250px, 21vw, 320px);
    width: 100%;
    max-width: min(100%, var(--finance-account-card-width));
    margin-left: auto;
    margin-right: auto;
}

/*
|--------------------------------------------------------------------------
| Dynamic Strip Sizing
|--------------------------------------------------------------------------
|
| These classes are added by card-strip.php depending on how many cards are
| currently visible.
|
*/

.finance-account-card-strip-count-1 {
    max-width: 430px;
}

.finance-account-card-strip-count-2 {
    max-width: 760px;
}

.finance-account-card-strip-count-3 {
    max-width: 1090px;
}

.finance-account-card-strip-count-4 {
    max-width: 1090px;
}

.finance-account-card-strip-count-1 .finance-account-card-strip-inner {
    max-width: 340px;
}

.finance-account-card-strip-count-2 .finance-account-card-strip-inner {
    max-width: 700px;
}

.finance-account-card-strip-count-3 .finance-account-card-strip-inner,
.finance-account-card-strip-count-4 .finance-account-card-strip-inner {
    max-width: 1040px;
}

@media (max-width: 1399.98px) {
    .finance-account-card-strip-item {
        flex-basis: clamp(245px, 26vw, 305px);
        max-width: clamp(245px, 26vw, 305px);
    }

    .finance-account-card-strip-item .finance-account-card {
        --finance-account-card-width: clamp(245px, 26vw, 305px);
    }
}

@media (max-width: 1199.98px) {

    .finance-account-card-strip-card,
    .finance-account-card-strip-count-1,
    .finance-account-card-strip-count-2,
    .finance-account-card-strip-count-3,
    .finance-account-card-strip-count-4 {
        max-width: 100%;
    }

    .finance-account-card-strip-inner {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .finance-account-card-strip-inner {
        gap: 18px;
    }

    .finance-account-card-strip-item {
        flex-basis: 100%;
        max-width: 100%;
    }

    .finance-account-card-strip-item .finance-account-card {
        --finance-account-card-width: min(100%, 320px);
        max-width: min(100%, 320px);
    }
}

@media (max-width: 480px) {
    .finance-account-card {
        --finance-account-card-width: min(100%, 320px);
        border-radius: 20px;
    }

    .finance-account-card .finance-account-card-logo-mark {
        width: 38px;
        height: 38px;
        max-width: 38px;
        max-height: 38px;
    }

    .finance-account-card-strip-item .finance-account-card {
        --finance-account-card-width: min(100%, 310px);
        max-width: min(100%, 310px);
    }
}

/*
|--------------------------------------------------------------------------
| 36. RESPONSIVE STYLES
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| Large Desktop / 4K
|--------------------------------------------------------------------------
*/

@media (min-width: 1800px) {

    .finance-docs-page-shell {
        max-width: 1760px;
    }

    .finance-docs-layout {
        grid-template-columns: 420px minmax(0, 1fr);
        gap: 28px;
    }

}

/*
|--------------------------------------------------------------------------
| Standard Desktop / 1440p
|--------------------------------------------------------------------------
*/

@media (max-width: 1599.98px) {

    .finance-docs-page-shell {
        max-width: 1320px;
    }

    .finance-docs-layout {
        grid-template-columns: 360px minmax(0, 1fr);
    }

}

/*
|--------------------------------------------------------------------------
| 1080p / Smaller Desktop
|--------------------------------------------------------------------------
*/

@media (max-width: 1199.98px) {

    .finance-docs-layout {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 20px;
    }

}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {

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

    .finance-docs-hero {
        align-items: flex-start;
    }

    .finance-docs-hero-icon {
        display: none;
    }

    .finance-docs-layout {
        grid-template-columns: 1fr;
    }

    .finance-docs-sidebar {
        position: static;
        top: auto;
    }

}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    /*
    |--------------------------------------------------------------------------
    | Topbar
    |--------------------------------------------------------------------------
    */

    .finance-topbar-page-text span {
        display: none;
    }

    .finance-topbar-page-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 16px;
    }

    .finance-topbar-user-text,
    .finance-topbar-user-chevron {
        display: none;
    }

    .finance-topbar-user {
        padding: 4px;
    }

    .finance-topbar-title {
        display: none;
    }

    /*
    |--------------------------------------------------------------------------
    | Page Heading
    |--------------------------------------------------------------------------
    */

    .finance-page-heading {
        padding: 16px;
    }

    /*
    |--------------------------------------------------------------------------
    | Flash Notifications
    |--------------------------------------------------------------------------
    */

    .finance-flash-stack,
    .finance-auth-wrapper .finance-flash-stack {
        top: 70px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
    }

    .finance-flash-message {
        padding: 14px 48px 17px 14px;
        border-radius: 14px;
    }

    .finance-flash-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 16px;
    }

    /*
    |--------------------------------------------------------------------------
    | Documentation
    |--------------------------------------------------------------------------
    */

    .finance-docs-hero {
        padding: 26px;
    }

    .finance-docs-hero h2 {
        font-size: 24px;
    }

    .finance-docs-nav {
        max-height: none;
    }

    .finance-docs-content-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .finance-docs-callout {
        flex-direction: column;
    }

    /*
    |--------------------------------------------------------------------------
    | Module Cards
    |--------------------------------------------------------------------------
    */

    .finance-module-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .finance-module-card-actions {
        width: 100%;
    }

    .finance-module-card-actions .btn {
        width: 100%;
    }

    /*
    |--------------------------------------------------------------------------
    | Stat Cards
    |--------------------------------------------------------------------------
    */

    .finance-stat-card h3 {
        font-size: 24px;
    }

    /*
    |--------------------------------------------------------------------------
    | Filters
    |--------------------------------------------------------------------------
    */

    .finance-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .finance-filter-actions .btn {
        width: 100%;
    }

    .finance-filter-actions-right {
        justify-content: flex-start;
    }

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

    .finance-filter-summary a {
        margin-left: 0;
    }

    /*
    |--------------------------------------------------------------------------
    | DataTables
    |--------------------------------------------------------------------------
    */

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left !important;
        margin-bottom: 12px;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
    }

    /*
    |--------------------------------------------------------------------------
    | Account Module
    |--------------------------------------------------------------------------
    */

    .finance-account-cell {
        align-items: flex-start;
    }

    /*
    |--------------------------------------------------------------------------
    | Finance Modals
    |--------------------------------------------------------------------------
    */

    .finance-modal-hero {
        padding: 20px;
    }

    .finance-modal-hero-left {
        align-items: flex-start;
    }

    .finance-modal-hero-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 16px;
        font-size: 20px;
    }

    .finance-modal-hero h5 {
        font-size: 19px;
    }

    .finance-modal-body {
        padding: 18px;
    }

    .finance-form-section {
        padding: 16px;
    }

    .finance-switch-card {
        align-items: flex-start;
    }

    /*
    |--------------------------------------------------------------------------
    | Modal Scrolling
    |--------------------------------------------------------------------------
    */

    .finance-modal-dialog {
        margin: 0.5rem;
    }

    .finance-modal-dialog .finance-modal-content,
    .finance-modal-dialog .finance-modal-form {
        max-height: calc(100vh - 1rem);
    }

    .finance-account-card {
        height: 215px;
        border-radius: 20px;
    }

    .finance-account-card-top {
        padding: 22px 24px 0 24px;
    }

    .finance-account-card .finance-account-card-logo-mark {
        width: 42px;
        height: 42px;
        max-width: 42px;
        max-height: 42px;
    }

    .finance-account-card-chip-row {
        padding: 20px 24px 0 24px;
    }

    .finance-account-card-bottom {
        left: 24px;
        right: 24px;
        bottom: 20px;
    }

    .finance-account-card-details h6 {
        font-size: 19px;
    }

    .finance-account-card-details strong {
        font-size: 17px;
    }

    .finance-account-card-network {
        font-size: 34px;
    }

}

/*
|--------------------------------------------------------------------------
| FINAL ACCOUNT CARD RESPONSIVE OVERRIDES
|--------------------------------------------------------------------------
|
| These overrides keep visual account cards scalable even inside older mobile
| media rules that may have used fixed heights.
|
*/

.finance-account-card {
    height: auto !important;
    aspect-ratio: 420 / 260;
}

.finance-account-card-size-compact {
    height: auto !important;
    aspect-ratio: 420 / 260;
}

.finance-modal-body .finance-account-card {
    height: auto !important;
    aspect-ratio: 420 / 260;
}

/*
|--------------------------------------------------------------------------
| FINANCE TOOLTIPS
|--------------------------------------------------------------------------
|
| Sitewide tooltip styling.
|
| Bootstrap still controls:
|
| - positioning
| - showing / hiding
| - placement
|
| This CSS only changes how the tooltip looks.
|
*/

.tooltip {
    --bs-tooltip-max-width: 280px;
    --bs-tooltip-padding-x: 0;
    --bs-tooltip-padding-y: 0;
    --bs-tooltip-font-size: 12px;
    --bs-tooltip-opacity: 1;
    --bs-tooltip-border-radius: 14px;
    --bs-tooltip-bg: transparent;
    --bs-tooltip-color: var(--finance-white);
    z-index: 4000;
}

.tooltip .tooltip-inner {
    padding: 9px 12px;
    border-radius: 14px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.10), transparent 34%),
        linear-gradient(135deg, #101828 0%, #1F2D3D 100%);
    color: var(--finance-white);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    box-shadow:
        0 14px 34px rgba(31, 45, 61, 0.26),
        0 2px 8px rgba(31, 45, 61, 0.16);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #1F2D3D;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #101828;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #1F2D3D;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #101828;
}

/*
|--------------------------------------------------------------------------
| FINANCE PRIMARY TOOLTIPS
|--------------------------------------------------------------------------
|
| Optional teal tooltip variant.
|
| Usage:
|
| data-bs-custom-class="finance-tooltip-primary"
|
*/

.tooltip.finance-tooltip-primary .tooltip-inner {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, var(--finance-primary) 0%, var(--finance-primary-dark) 100%);
    box-shadow:
        0 14px 34px rgba(25, 188, 191, 0.28),
        0 2px 8px rgba(31, 45, 61, 0.12);
}

.tooltip.finance-tooltip-primary.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--finance-primary-dark);
}

.tooltip.finance-tooltip-primary.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--finance-primary);
}

.tooltip.finance-tooltip-primary.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--finance-primary-dark);
}

.tooltip.finance-tooltip-primary.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--finance-primary);
}

/*
|--------------------------------------------------------------------------
| TRANSACTION FILTER ALIGNMENT
|--------------------------------------------------------------------------
|
| Keeps the Transactions filter row visually straight.
|
| The filters mix Select2 fields and Bootstrap Datepicker text fields.
| These controls render slightly differently, so this normalises their height
| and vertical alignment.
|
*/

.finance-table-filter-strip .finance-filter-row {
    align-items: flex-end !important;
    row-gap: 16px;
}

.finance-table-filter-strip .finance-filter-row>[class*="col-"] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.finance-table-filter-strip .form-label {
    min-height: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-end;
    color: var(--finance-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.finance-table-filter-strip .form-control,
.finance-table-filter-strip .select2-container--default .select2-selection--single {
    min-height: 43px;
}

.finance-table-filter-strip .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    border: 1px solid var(--finance-border-strong);
    border-radius: var(--finance-radius-md);
}

.finance-table-filter-strip .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 43px;
    padding-left: 14px;
    color: var(--finance-text);
}

.finance-table-filter-strip .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
}

.finance-table-filter-strip .finance-datepicker {
    height: 43px;
}


/*
|--------------------------------------------------------------------------
| BOOTSTRAP DATEPICKER - FINANCE STYLE
|--------------------------------------------------------------------------
|
| Used by the Transactions module for modal and filter date fields.
|
| This styles the Bootstrap Datepicker plugin used by Dasho.
|
| Visible format:
|
| dd/mm/yyyy
|
*/

.finance-datepicker {
    min-height: 43px;
    border: 1px solid var(--finance-border-strong);
    border-radius: var(--finance-radius-md);
    background: var(--finance-white);
    color: var(--finance-text);
    font-size: 14px;
    padding: 10px 14px;
    box-shadow: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.finance-datepicker:focus {
    border-color: var(--finance-primary);
    background: var(--finance-white);
    box-shadow: 0 0 0 3px rgba(25, 188, 191, 0.12);
    outline: none;
}

.datepicker {
    border: 0;
    border-radius: var(--finance-radius-lg);
    padding: 10px;
    box-shadow:
        0 18px 45px rgba(31, 45, 61, 0.18),
        0 2px 8px rgba(31, 45, 61, 0.08);
    font-family: inherit;
    z-index: 1090 !important;
}

.datepicker-dropdown:before,
.datepicker-dropdown:after {
    display: none;
}

.datepicker table {
    margin: 0;
}

.datepicker table tr th,
.datepicker table tr td {
    width: 38px;
    height: 34px;
    border-radius: 11px;
    color: var(--finance-text);
    font-size: 13px;
    font-weight: 700;
}

.datepicker table tr th {
    color: var(--finance-muted);
    font-weight: 800;
}

.datepicker .datepicker-switch {
    color: var(--finance-text);
    font-size: 14px;
    font-weight: 850;
}

.datepicker .prev,
.datepicker .next {
    color: var(--finance-primary-dark);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.datepicker .prev:hover,
.datepicker .next:hover {
    background: var(--finance-primary-soft);
    color: var(--finance-primary-dark);
    transform: translateY(-1px);
}

.datepicker table tr td.day:hover,
.datepicker table tr td.focused {
    background: var(--finance-primary-softer);
    color: var(--finance-primary-dark);
}

.datepicker table tr td.today {
    background: var(--finance-primary-softer);
    color: var(--finance-primary-dark);
    box-shadow: inset 0 0 0 1px var(--finance-primary);
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
    background:
        linear-gradient(135deg, var(--finance-primary) 0%, var(--finance-primary-dark) 100%);
    color: var(--finance-white);
    text-shadow: none;
    box-shadow: 0 8px 18px rgba(25, 188, 191, 0.22);
}

.datepicker table tr td.old,
.datepicker table tr td.new {
    color: var(--finance-muted-light);
}

.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
    color: var(--finance-muted-light);
    background: transparent;
    cursor: not-allowed;
}

.datepicker .datepicker-months span.month,
.datepicker .datepicker-years span.year,
.datepicker .datepicker-decades span.decade,
.datepicker .datepicker-centuries span.century {
    border-radius: 12px;
    color: var(--finance-text);
    font-weight: 700;
}

.datepicker .datepicker-months span.month:hover,
.datepicker .datepicker-years span.year:hover,
.datepicker .datepicker-decades span.decade:hover,
.datepicker .datepicker-centuries span.century:hover {
    background: var(--finance-primary-softer);
    color: var(--finance-primary-dark);
}

.datepicker .datepicker-months span.month.active,
.datepicker .datepicker-years span.year.active,
.datepicker .datepicker-decades span.decade.active,
.datepicker .datepicker-centuries span.century.active {
    background: var(--finance-primary);
    color: var(--finance-white);
}

.datepicker-inline {
    width: auto;
}


/*
|--------------------------------------------------------------------------
| TRANSACTION DATEPICKER FILTER POLISH
|--------------------------------------------------------------------------
|
| Small extra polish specifically for date fields inside filter bars.
|
*/

.finance-table-filter-strip .finance-filter-datepicker {
    cursor: pointer;
    background:
        var(--finance-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5ZM1 5v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5H1Z'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding-right: 42px;
}

.finance-modal .finance-datepicker {
    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| TRANSACTIONS FILTER GRID - FINAL ALIGNMENT FIX
|--------------------------------------------------------------------------
|
| Purpose-built layout for the Transactions filter bar.
|
| This avoids Bootstrap column alignment issues caused by mixing Select2
| generated controls and Bootstrap Datepicker text inputs.
|
| This block is intentionally placed at the bottom of the file so it wins
| over earlier generic filter-row styling.
|
*/

.finance-transactions-filter-strip {
    padding: 20px;
}

.finance-transactions-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 24px;
    align-items: start;
}

.finance-transactions-filter-field {
    min-width: 0;
}

.finance-transactions-filter-field .form-label {
    display: block;
    height: 18px;
    line-height: 18px;
    margin: 0 0 8px 0;
    color: var(--finance-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.finance-transactions-filter-field .form-control,
.finance-transactions-filter-field .finance-datepicker,
.finance-transactions-filter-field .select2-container,
.finance-transactions-filter-field .select2-container--default .select2-selection--single {
    width: 100% !important;
}

.finance-transactions-filter-field .form-control,
.finance-transactions-filter-field .finance-datepicker {
    height: 43px;
    min-height: 43px;
    line-height: 21px;
    margin: 0;
    padding: 10px 14px;
}

.finance-transactions-filter-field .select2-container {
    display: block;
    height: 43px;
    min-height: 43px;
}

.finance-transactions-filter-field .select2-container--default .select2-selection--single {
    height: 43px;
    min-height: 43px;
    display: flex;
    align-items: center;
    border: 1px solid var(--finance-border-strong);
    border-radius: var(--finance-radius-md);
    background: var(--finance-white);
}

.finance-transactions-filter-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 43px;
    line-height: 43px;
    padding-left: 14px;
    padding-right: 36px;
    color: var(--finance-text);
}

.finance-transactions-filter-field .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
    right: 10px;
}

.finance-transactions-filter-field .select2-container--default .select2-selection--single .select2-selection__clear {
    height: 43px;
    line-height: 43px;
    margin-right: 8px;
}

.finance-transactions-filter-field .finance-filter-datepicker {
    cursor: pointer;
    background:
        var(--finance-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5ZM1 5v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5H1Z'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding-right: 42px;
}

@media (max-width: 1199.98px) {
    .finance-transactions-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .finance-transactions-filter-grid {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| FINAL DATATABLES LENGTH MENU OVERRIDE
|--------------------------------------------------------------------------
|
| Styles the DataTables "Show 25 / 50 / 100 / All" dropdown.
|
| This targets both:
|
| - older DataTables markup: .dataTables_length
| - newer DataTables markup: .dt-length
|
| Put this at the very bottom of finance.css so it wins over Bootstrap,
| DataTables and Dasho defaults.
|
*/

.dataTables_wrapper .dataTables_length,
.dt-container .dt-length,
div.dt-length {
    display: flex !important;
    align-items: center !important;
}

.dataTables_wrapper .dataTables_length label,
.dt-container .dt-length label,
div.dt-length label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
    color: var(--finance-muted) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/*
|--------------------------------------------------------------------------
| Native Select Styling
|--------------------------------------------------------------------------
*/

.dataTables_wrapper .dataTables_length select,
.dt-container .dt-length select,
div.dt-length select,
.dt-container .dt-length .form-select,
div.dt-length .form-select {
    min-width: 88px !important;
    width: auto !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 7px 34px 7px 12px !important;
    border: 1px solid var(--finance-border-strong) !important;
    border-radius: var(--finance-radius-md) !important;
    background-color: var(--finance-white) !important;
    color: var(--finance-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: none !important;

    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%237B8794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 14px !important;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease !important;
}

.dataTables_wrapper .dataTables_length select:hover,
.dt-container .dt-length select:hover,
div.dt-length select:hover,
.dt-container .dt-length .form-select:hover,
div.dt-length .form-select:hover {
    border-color: rgba(25, 188, 191, 0.45) !important;
    background-color: var(--finance-bg-soft) !important;
}

.dataTables_wrapper .dataTables_length select:focus,
.dt-container .dt-length select:focus,
div.dt-length select:focus,
.dt-container .dt-length .form-select:focus,
div.dt-length .form-select:focus {
    border-color: var(--finance-primary) !important;
    background-color: var(--finance-white) !important;
    box-shadow: 0 0 0 3px rgba(25, 188, 191, 0.12) !important;
}

/*
|--------------------------------------------------------------------------
| DataTables Length Text Spacing
|--------------------------------------------------------------------------
*/

.dataTables_wrapper .dataTables_length label,
.dt-container .dt-length label,
div.dt-length label {
    white-space: nowrap !important;
}

.dataTables_wrapper .dataTables_length select option,
.dt-container .dt-length select option,
div.dt-length select option {
    color: var(--finance-text);
    background: var(--finance-white);
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| DATATABLES LENGTH MENU SELECT2 - FINAL OVERRIDE
|--------------------------------------------------------------------------
|
| DataTables creates the "Show 25 / 50 / 100 / All records" dropdown.
|
| Native browser dropdown lists cannot be styled properly once opened.
| This CSS styles the Select2 version created by:
|
| /public_html/assets/js/modules/bills/bills.js
|
| This block should stay at the very bottom of finance.css so it wins over:
|
| - Dasho
| - Bootstrap
| - DataTables
| - Select2 defaults
|
*/

.finance-datatables-length-select + .select2-container {
    width: 82px !important;
    min-width: 82px !important;
    margin: 0 6px !important;
    vertical-align: middle !important;
}

.finance-datatables-length-select + .select2-container .select2-selection--single {
    height: 38px !important;
    min-height: 38px !important;
    border: 1px solid var(--finance-border-strong) !important;
    border-radius: var(--finance-radius-md) !important;
    background: var(--finance-white) !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: none !important;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease !important;
}

.finance-datatables-length-select + .select2-container .select2-selection--single:hover {
    border-color: rgba(25, 188, 191, 0.45) !important;
    background-color: var(--finance-bg-soft) !important;
}

.finance-datatables-length-select + .select2-container.select2-container--open .select2-selection--single,
.finance-datatables-length-select + .select2-container.select2-container--focus .select2-selection--single {
    border-color: var(--finance-primary) !important;
    background: var(--finance-white) !important;
    box-shadow: 0 0 0 3px rgba(25, 188, 191, 0.12) !important;
}

.finance-datatables-length-select + .select2-container .select2-selection--single .select2-selection__rendered {
    height: 38px !important;
    line-height: 38px !important;
    padding-left: 12px !important;
    padding-right: 28px !important;
    color: var(--finance-text) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.finance-datatables-length-select + .select2-container .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 6px !important;
}

.finance-datatables-length-select + .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--finance-muted) transparent transparent transparent !important;
}

.finance-datatables-length-select + .select2-container.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--finance-primary) transparent !important;
}

/*
|--------------------------------------------------------------------------
| DataTables Length Wrapper Alignment
|--------------------------------------------------------------------------
*/

.dataTables_wrapper .dataTables_length,
.dt-container .dt-length,
div.dt-length {
    display: flex !important;
    align-items: center !important;
}

.dataTables_wrapper .dataTables_length label,
.dt-container .dt-length label,
div.dt-length label {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 0 !important;
    color: var(--finance-muted) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/*
|--------------------------------------------------------------------------
| Select2 Dropdown For DataTables Length Menu
|--------------------------------------------------------------------------
*/

.select2-container--default .finance-datatables-length-dropdown {
    border: 1px solid var(--finance-border-strong) !important;
    border-radius: var(--finance-radius-md) !important;
    overflow: hidden !important;
    box-shadow: 0 14px 34px rgba(31, 45, 61, 0.14) !important;
}

.select2-container--default .finance-datatables-length-dropdown .select2-results__option {
    padding: 9px 12px !important;
    color: var(--finance-text) !important;
    background: var(--finance-white) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.select2-container--default .finance-datatables-length-dropdown .select2-results__option--highlighted[aria-selected] {
    background: var(--finance-primary) !important;
    color: var(--finance-white) !important;
}

.select2-container--default .finance-datatables-length-dropdown .select2-results__option[aria-selected="true"] {
    background: var(--finance-primary-softer) !important;
    color: var(--finance-primary-dark) !important;
}

.select2-container--default .finance-datatables-length-dropdown .select2-results__option--highlighted[aria-selected="true"] {
    background: var(--finance-primary) !important;
    color: var(--finance-white) !important;
}

/*
|--------------------------------------------------------------------------
| Hide Native Length Select After Select2 Initialises
|--------------------------------------------------------------------------
|
| Select2 already hides the original select, but this makes sure the browser
| native dropdown never visually leaks through on Dasho/DataTables layouts.
|
*/

.finance-datatables-length-select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}