body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    min-height: 100vh;
}

.side-nav {
    width: 250px;
    position: fixed;
    height: 100vh;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding-top: 20px;
    z-index: 1000;
}

.side-nav a {
    padding: 15px;
    text-decoration: none;
    font-size: 16px;
    color: white;
    display: block;
    transition: background-color 0.3s;
    border-left: 3px solid transparent;
}

.side-nav a:hover,
.side-nav a.active {
    background-color: #252525;
    border-left: 3px solid rgb(55, 88, 255);
}

.main-content {
    margin-left: 250px;
    padding: 40px;
    flex-grow: 1;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.login-container {
    padding: 20px;
    width: 75%;
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.select-button-wrapper {
    display: flex;
    align-items: center;
}

.narrow-select {
    width: 75%;
}

#myInput, #numRows {
    background: #f0f0f0;
    background-color: #cecece;
    width: auto;
    font-size: 16px;
    padding: 12px 20px 12px 40px;
    border: 1px solid #646464;
    margin-bottom: 12px;
}

#myTable {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ddd;
    font-size: 18px;
}

#myTable th, #myTable td {
    text-align: left;
    padding: 12px;
}

#myTable tr {
    border-bottom: 1px solid #ddd;
}

#myTable tr.header, #myTable tr:hover {
    background-color: #f1f1f1;
}

#pagination button {
    cursor: pointer;
    padding: 5px 10px;
    margin: 5px;
    background-color: #eee;
}

#pagination button.active {
    color: white;
    background-color: #666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 250px; /* Adjust to not overlap the sidebar */
    top: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    position: relative;
    box-sizing: border-box;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
}

.attachment-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s;
}

.attachment-item img:hover {
    transform: scale(1.05);
}

.register-btn, .other-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-left: 10px; /* Added margin to space out the button */
}

.register-btn:hover, .other-btn:hover {
    background-color: #0056b3;
}

.brand-logo {
    color: white;
}

@media (max-width: 768px) {
    .side-nav {
        width: 100%;
        height: auto;
        position: relative;
    }

    .side-nav a {
        padding: 10px;
        font-size: 14px;
    }

    .main-content, .modal {
        margin-left: 0;
        padding: 20px;
    }

    .modal {
        left: 0;
    }

    .container {
        margin: 10px;
        padding: 10px;
    }

    .login-container {
        width: 90%;
    }

    #myTable th, #myTable td {
        padding: 8px;
    }

    .attachments-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .side-nav a {
        padding: 8px;
        font-size: 12px;
    }

    .main-content, .modal {
        padding: 10px;
    }

    .container {
        margin: 5px;
        padding: 5px;
    }

    .login-container {
        width: 100%;
    }

    #myTable th, #myTable td {
        padding: 5px;
    }

    .attachments-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .container {
    background-color: #333333;
}

.dark-mode .input-group label, 
.dark-mode .register-btn, 
.dark-mode a {
    color: #ffffff;
}

.dark-mode .side-nav {
    background: #000000;
}

.dark-mode .input-group input, 
.dark-mode .input-group textarea {
    background-color: #333333;
    border: 1px solid #555555;
}

.dark-mode .register-btn {
    background-color: #0b006b;
}

.dark-mode .register-btn:hover {
    background-color: #444444;
}

.dark-mode #myInput, 
.dark-mode #numRows {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555555;
}

.dark-mode #myTable {
    border-color: #555555;
}

.dark-mode #myTable th, 
.dark-mode #myTable td {
    background-color: #333333;
    color: #ffffff;
}

.dark-mode #myTable tr.header, 
.dark-mode #myTable tr:hover {
    background-color: #444444;
}

#plotly-chart {
    margin: auto;
    width: 100%;
    height: auto;
}

/* Make time/date picker icons white in dark mode */
.dark input[type="time"]::-webkit-calendar-picker-indicator,
.dark input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

[data-filter-toggle] {
    position: relative;
    overflow: hidden;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

[data-filter-toggle]::after {
    content: "";
    position: absolute;
    inset: 0.35rem;
    border-radius: inherit;
    background: rgba(99, 102, 241, 0.14);
    opacity: 0;
    transform: scale(0.6);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
    pointer-events: none;
}

[data-filter-toggle]:active {
    transform: scale(0.94);
}

[data-filter-toggle] > i {
    position: relative;
    z-index: 1;
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-filter-toggle][aria-expanded="true"] {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.14);
}

.dark [data-filter-toggle][aria-expanded="true"] {
    border-color: rgba(129, 140, 248, 0.45);
    background: rgba(99, 102, 241, 0.14);
    color: #a5b4fc;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.34);
}

[data-filter-toggle][aria-expanded="true"]::after {
    opacity: 1;
    transform: scale(1);
}

[data-filter-toggle][aria-expanded="true"] > i {
    transform: rotate(-18deg) scale(1.08);
}

[data-filter-panel]:not(.hidden) {
    animation: filter-panel-reveal 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    transform-origin: top left;
}

@media (prefers-reduced-motion: reduce) {
    [data-filter-toggle],
    [data-filter-toggle]::after,
    [data-filter-toggle] > i {
        transition: none;
    }

    [data-filter-panel]:not(.hidden) {
        animation: none;
    }
}

@keyframes filter-panel-reveal {
    0% {
        opacity: 0;
        transform: translateY(-0.35rem) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[data-financial-loading] .financial-loading-progress {
    position: relative;
    height: 0.45rem;
    overflow: hidden;
    border-radius: 9999px;
    border: 1px solid rgba(99, 102, 241, 0.16);
    background: rgba(226, 232, 240, 0.82);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dark [data-financial-loading] .financial-loading-progress {
    border-color: rgba(129, 140, 248, 0.24);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

[data-financial-loading] .financial-loading-progress__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0),
        rgba(99, 102, 241, 0.95) 36%,
        rgba(45, 212, 191, 0.95) 72%,
        rgba(45, 212, 191, 0)
    );
    animation: financial-loading-progress 1.35s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

[data-financial-loading] .financial-loading-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.88), rgba(241, 245, 249, 0.96));
}

.dark [data-financial-loading] .financial-loading-shimmer {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.94), rgba(51, 65, 85, 0.74));
}

[data-financial-loading] .financial-loading-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.58),
        transparent
    );
    animation: financial-loading-shimmer 1.65s ease-in-out infinite;
}

.dark [data-financial-loading] .financial-loading-shimmer::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(148, 163, 184, 0.2),
        transparent
    );
}

[data-financial-loading] .financial-loading-reveal {
    animation: financial-loading-reveal 280ms ease-out both;
    animation-delay: var(--financial-loading-delay, 0ms);
}

.financial-dashboard-ready {
    animation: dashboard-ready-fade-in 280ms ease-out both;
    animation-delay: var(--financial-loading-delay, 0ms);
}

@keyframes financial-loading-progress {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(245%);
    }
}

@keyframes financial-loading-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes financial-loading-reveal {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dashboard-ready-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-financial-loading] .financial-loading-progress__bar {
        width: 100%;
        opacity: 0.75;
        animation: none;
        transform: none;
    }

    [data-financial-loading] .financial-loading-shimmer::after {
        display: none;
    }

    [data-financial-loading] .financial-loading-reveal,
    .financial-dashboard-ready {
        animation: none;
        transform: none;
    }
}

[data-dashboard-loading] .dashboard-loading-progress {
    position: relative;
    height: 0.45rem;
    overflow: hidden;
    border-radius: 9999px;
    border: 1px solid rgba(99, 102, 241, 0.16);
    background: rgba(226, 232, 240, 0.82);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dark [data-dashboard-loading] .dashboard-loading-progress {
    border-color: rgba(129, 140, 248, 0.24);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

[data-dashboard-loading] .dashboard-loading-progress__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0),
        rgba(99, 102, 241, 0.95) 36%,
        rgba(45, 212, 191, 0.95) 72%,
        rgba(45, 212, 191, 0)
    );
    animation: dashboard-loading-progress 1.35s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

[data-dashboard-loading] .dashboard-loading-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.88), rgba(241, 245, 249, 0.96));
}

.dark [data-dashboard-loading] .dashboard-loading-shimmer {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.94), rgba(51, 65, 85, 0.74));
}

[data-dashboard-loading] .dashboard-loading-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.58),
        transparent
    );
    animation: dashboard-loading-shimmer 1.65s ease-in-out infinite;
}

.dark [data-dashboard-loading] .dashboard-loading-shimmer::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(148, 163, 184, 0.2),
        transparent
    );
}

[data-dashboard-loading] .dashboard-loading-reveal {
    animation: dashboard-loading-reveal 280ms ease-out both;
    animation-delay: var(--dashboard-loading-delay, 0ms);
}

.dashboard-ready {
    animation: dashboard-ready-fade-in 280ms ease-out both;
    animation-delay: var(--dashboard-loading-delay, 0ms);
}

@keyframes dashboard-loading-progress {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(245%);
    }
}

@keyframes dashboard-loading-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes dashboard-loading-reveal {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-dashboard-loading] .dashboard-loading-progress__bar {
        width: 100%;
        opacity: 0.75;
        animation: none;
        transform: none;
    }

    [data-dashboard-loading] .dashboard-loading-shimmer::after {
        display: none;
    }

    [data-dashboard-loading] .dashboard-loading-reveal,
    .dashboard-ready {
        animation: none;
        transform: none;
    }
}

[data-accounting-enhanced-surface],
#accounting-hub-root,
[data-accounting-hub-fallback] {
    --acct-bg: #eef3fb;
    --acct-bg-soft: rgba(255, 255, 255, 0.72);
    --acct-surface: rgba(255, 255, 255, 0.9);
    --acct-surface-strong: #ffffff;
    --acct-surface-muted: rgba(248, 250, 252, 0.92);
    --acct-border: rgba(148, 163, 184, 0.34);
    --acct-border-strong: rgba(99, 102, 241, 0.34);
    --acct-text: #0f172a;
    --acct-muted: #64748b;
    --acct-primary: #4f46e5;
    --acct-primary-soft: rgba(79, 70, 229, 0.1);
    --acct-secondary: #059669;
    --acct-amber: #d97706;
    --acct-rose: #dc2626;
    --acct-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    --acct-shadow-hover: 0 28px 78px rgba(15, 23, 42, 0.12);
    color: var(--acct-text);
    font-variant-numeric: tabular-nums;
    isolation: isolate;
    position: relative;
}

.dark [data-accounting-enhanced-surface],
.dark #accounting-hub-root,
.dark [data-accounting-hub-fallback] {
    --acct-bg: #0b1020;
    --acct-bg-soft: rgba(15, 23, 42, 0.62);
    --acct-surface: rgba(20, 24, 38, 0.9);
    --acct-surface-strong: #151827;
    --acct-surface-muted: rgba(15, 23, 42, 0.72);
    --acct-border: rgba(148, 163, 184, 0.18);
    --acct-border-strong: rgba(129, 140, 248, 0.36);
    --acct-text: #f8fafc;
    --acct-muted: #94a3b8;
    --acct-primary-soft: rgba(99, 102, 241, 0.18);
    --acct-shadow: 0 24px 74px rgba(0, 0, 0, 0.28);
    --acct-shadow-hover: 0 30px 86px rgba(0, 0, 0, 0.34);
}

[data-accounting-enhanced-surface]::before,
#accounting-hub-root::before,
[data-accounting-hub-fallback]::before {
    background:
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 23, 42, 0.055) 1px, transparent 1px);
    background-size: 46px 46px;
    border-radius: 28px;
    content: "";
    inset: -1.25rem;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 72%);
    opacity: 0.42;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.dark [data-accounting-enhanced-surface]::before,
.dark #accounting-hub-root::before,
.dark [data-accounting-hub-fallback]::before {
    background:
        linear-gradient(90deg, rgba(129, 140, 248, 0.12) 1px, transparent 1px),
        linear-gradient(180deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
    opacity: 0.32;
}

[data-accounting-enhanced-surface] > header,
#accounting-hub-root [data-accounting-page-header],
[data-accounting-hub-fallback] > header {
    background:
        linear-gradient(135deg, var(--acct-surface-strong), var(--acct-surface-muted));
    border: 1px solid var(--acct-border);
    border-radius: 24px;
    box-shadow: var(--acct-shadow);
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.35rem);
    position: relative;
}

[data-accounting-enhanced-surface] > header::after,
#accounting-hub-root [data-accounting-page-header]::after,
[data-accounting-hub-fallback] > header::after {
    background: linear-gradient(90deg, var(--acct-primary), var(--acct-secondary), var(--acct-amber));
    content: "";
    height: 3px;
    inset: 0 0 auto;
    opacity: 0.88;
    position: absolute;
}

[data-accounting-enhanced-surface] > header h1,
#accounting-hub-root [data-accounting-page-header] h1,
[data-accounting-hub-fallback] > header h1 {
    letter-spacing: 0;
    line-height: 1.04;
}

[data-accounting-enhanced-surface] > header a,
[data-accounting-enhanced-surface] > header button,
[data-accounting-hub-fallback] > header a,
[data-accounting-hub-fallback] > header button {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

[data-accounting-enhanced-surface] .glass-card,
#accounting-hub-root .glass-card,
[data-accounting-hub-fallback] .glass-card {
    background:
        linear-gradient(180deg, var(--acct-surface), var(--acct-surface-muted));
    border-color: var(--acct-border);
    border-radius: 22px !important;
    box-shadow:
        var(--acct-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    overflow: visible;
    position: relative;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease,
        background-color 180ms ease;
}

.dark [data-accounting-enhanced-surface] .glass-card,
.dark #accounting-hub-root .glass-card,
.dark [data-accounting-hub-fallback] .glass-card {
    box-shadow:
        var(--acct-shadow),
        inset 0 1px 0 rgba(148, 163, 184, 0.12);
}

[data-accounting-enhanced-surface] .glass-card:hover,
#accounting-hub-root .glass-card:hover,
[data-accounting-hub-fallback] .glass-card:hover {
    border-color: var(--acct-border-strong);
    box-shadow:
        var(--acct-shadow-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

[data-accounting-enhanced-surface] .glass-card > :first-child:is(div, header):has(h2, h3),
[data-accounting-hub-fallback] .glass-card > :first-child:is(div, header):has(h2, h3) {
    border-color: var(--acct-border);
}

[data-accounting-enhanced-surface] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
[data-accounting-hub-fallback] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    background-color: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.4);
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.035);
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}

.dark [data-accounting-enhanced-surface] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.dark [data-accounting-hub-fallback] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    background-color: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.25);
}

[data-accounting-enhanced-surface] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea):focus,
[data-accounting-hub-fallback] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea):focus {
    border-color: var(--acct-primary);
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.14),
        inset 0 1px 2px rgba(15, 23, 42, 0.035);
}

[data-accounting-enhanced-surface] label,
[data-accounting-hub-fallback] label {
    letter-spacing: 0;
}

[data-accounting-enhanced-surface] table,
#accounting-hub-root table,
[data-accounting-hub-fallback] table {
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}

[data-accounting-enhanced-surface] thead,
#accounting-hub-root thead,
[data-accounting-hub-fallback] thead {
    background: var(--acct-surface-muted);
}

[data-accounting-enhanced-surface] tbody tr,
#accounting-hub-root tbody tr,
[data-accounting-hub-fallback] tbody tr {
    transition:
        background-color 160ms ease,
        color 160ms ease;
}

[data-accounting-enhanced-surface] tbody tr:hover,
#accounting-hub-root tbody tr:hover,
[data-accounting-hub-fallback] tbody tr:hover {
    background-color: var(--acct-primary-soft);
}

[data-accounting-enhanced-surface] :is(a, button):active,
#accounting-hub-root :is(a, button):active,
[data-accounting-hub-fallback] :is(a, button):active {
    transform: translateY(1px);
}

[data-accounting-enhanced-surface] :is(a, button):focus-visible,
#accounting-hub-root :is(a, button):focus-visible,
[data-accounting-hub-fallback] :is(a, button):focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.46);
    outline-offset: 2px;
}

[data-accounting-enhanced-surface] [data-dashboard-loading],
#accounting-hub-root [data-dashboard-loading],
[data-accounting-hub-fallback] [data-dashboard-loading] {
    background:
        linear-gradient(180deg, var(--acct-surface), var(--acct-surface-muted));
}

[data-accounting-enhanced-surface] :is([data-payment-requests-search-form], [data-accounting-transfers-search-form], [data-account-list-search-form]) {
    border-left: 4px solid rgba(99, 102, 241, 0.72);
}

[data-accounting-enhanced-surface] > .grid.gap-3 a,
[data-accounting-hub-fallback] > .grid.gap-3 a {
    overflow: hidden;
    position: relative;
}

[data-accounting-enhanced-surface] > .grid.gap-3 a::before,
[data-accounting-hub-fallback] > .grid.gap-3 a::before {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.75), rgba(16, 185, 129, 0.62));
    content: "";
    inset: 0 auto 0 0;
    opacity: 0;
    position: absolute;
    transition: opacity 160ms ease;
    width: 3px;
}

[data-accounting-enhanced-surface] > .grid.gap-3 a:hover::before,
[data-accounting-enhanced-surface] > .grid.gap-3 a[class*="bg-primary"]::before,
[data-accounting-hub-fallback] > .grid.gap-3 a:hover::before,
[data-accounting-hub-fallback] > .grid.gap-3 a[class*="bg-primary"]::before {
    opacity: 1;
}

[data-accounting-enhanced-surface] [data-payment-plan-progress],
[data-accounting-enhanced-surface] [data-payment-plan-bulk-progress],
[data-accounting-enhanced-surface] [data-accounting-attachment-progress],
[data-accounting-enhanced-surface] [data-account-activity-loading-shell] {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-accounting-enhanced-surface] [aria-current="page"],
[data-accounting-hub-fallback] [aria-current="page"] {
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.16);
}

[data-accounting-enhanced-surface] .rounded-2xl.border,
[data-accounting-hub-fallback] .rounded-2xl.border {
    border-color: var(--acct-border);
}

[data-accounting-enhanced-surface] .rounded-2xl.border:not([class*="border-rose"]):not([class*="border-emerald"]):not([class*="border-amber"]):not([class*="border-primary"]),
[data-accounting-hub-fallback] .rounded-2xl.border:not([class*="border-rose"]):not([class*="border-emerald"]):not([class*="border-amber"]):not([class*="border-primary"]) {
    background-color: var(--acct-bg-soft);
}

[data-accounting-enhanced-surface] .sticky.top-4,
[data-accounting-enhanced-surface] .xl\:sticky {
    box-shadow:
        0 18px 54px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dark [data-accounting-enhanced-surface] .sticky.top-4,
.dark [data-accounting-enhanced-surface] .xl\:sticky {
    box-shadow:
        0 22px 62px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(148, 163, 184, 0.12);
}

[data-accounting-enhanced-surface] :is(.shadow-glow) {
    box-shadow:
        0 18px 42px rgba(99, 102, 241, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

[data-accounting-enhanced-surface] [data-accounting-activity-drawer],
[data-accounting-enhanced-surface] [data-payment-vendor-modal] > div,
[data-accounting-enhanced-surface] [data-account-modal] > div {
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.32);
}

[data-accounting-enhanced-surface] [data-collapsible-root] [data-collapsible-panel] {
    will-change: max-height, opacity;
}

.MuiPaper-root[style*="position: fixed"][style*="100dvh"] {
    border-radius: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    left: 0 !important;
    margin: 0 !important;
    max-height: 100dvh !important;
    max-width: 100vw !important;
    right: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    z-index: 1300 !important;
}

.MuiPaper-root[style*="position: fixed"][style*="100dvh"] .MuiTableContainer-root {
    max-height: calc(100dvh - 116px) !important;
}

body:has(.MuiPaper-root[style*="position: fixed"][style*="100dvh"]) {
    overflow: hidden !important;
}

@media (max-width: 640px) {
    [data-accounting-enhanced-surface] > header,
    #accounting-hub-root [data-accounting-page-header],
    [data-accounting-hub-fallback] > header {
        border-radius: 18px;
    }

    [data-accounting-enhanced-surface] .glass-card,
    #accounting-hub-root .glass-card,
    [data-accounting-hub-fallback] .glass-card {
        border-radius: 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-accounting-enhanced-surface] .glass-card,
    #accounting-hub-root .glass-card,
    [data-accounting-hub-fallback] .glass-card,
    [data-accounting-enhanced-surface] tbody tr,
    #accounting-hub-root tbody tr,
    [data-accounting-hub-fallback] tbody tr {
        transition: none;
    }

    [data-accounting-enhanced-surface] :is(a, button):active,
    #accounting-hub-root :is(a, button):active,
    [data-accounting-hub-fallback] :is(a, button):active {
        transform: none;
    }
}
