:root {
    --app-bg: #f4f8f6;
    --app-surface: #ffffff;
    --app-surface-soft: #edf6f1;
    --app-surface-muted: #f7faf8;
    --app-sidebar: #163f2c;
    --app-sidebar-soft: #1e533a;
    --app-accent: #198754;
    --app-accent-dark: #12633d;
    --app-accent-soft: rgba(25, 135, 84, 0.12);
    --app-ink: #173528;
    --app-muted: #6b7c73;
    --app-line: #e2ece6;
    --app-blue: #2563eb;
    --app-blue-soft: #eaf2ff;
    --app-red: #dc3545;
    --app-red-soft: #fff0f2;
    --app-yellow: #b88700;
    --app-yellow-soft: #fff7df;
    --radius-shell: 24px;
    --radius-panel: 18px;
    --radius-soft: 14px;
    --radius-control: 13px;
    --sidebar-expanded: 248px;
    --sidebar-collapsed: 72px;
    --topbar-height: 66px;
}

* {
    letter-spacing: 0;
}

html {
    min-height: 100%;
}

.app-body {
    background: linear-gradient(135deg, #edf6f1 0%, #f7faf8 52%, #eef5f1 100%);
    color: var(--app-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    min-height: 100vh;
}

.auth-body {
    background:
        linear-gradient(135deg, rgba(25, 135, 84, 0.08), rgba(255, 255, 255, 0.96) 38%, rgba(184, 135, 0, 0.08)),
        #f5f8f6;
    color: var(--app-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

.auth-page {
    align-items: center;
    display: flex;
    min-height: 100vh;
    padding: 2rem;
}

.auth-shell {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 236, 230, 0.92);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(23, 53, 40, 0.14);
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
    margin: 0 auto;
    max-width: 1120px;
    min-height: 680px;
    overflow: hidden;
    width: 100%;
}

.auth-visual {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 20px),
        linear-gradient(145deg, #0f3d2a 0%, #17643f 54%, #235c42 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 680px;
    padding: 3rem;
    position: relative;
}

.auth-visual::after {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    content: "";
    inset: 1.15rem;
    pointer-events: none;
    position: absolute;
}

.auth-brand,
.auth-mobile-brand {
    align-items: center;
    display: flex;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}

.auth-brand > div,
.auth-mobile-brand > div {
    min-width: 0;
}

.auth-brand-mark {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    color: #125d3a;
    display: inline-flex;
    flex: 0 0 2.7rem;
    font-weight: 800;
    height: 2.7rem;
    justify-content: center;
    width: 2.7rem;
}

.auth-brand-mark-image {
    overflow: hidden;
    padding: 0;
}

.auth-brand-mark-image img {
    height: 100%;
    object-fit: contain;
    padding: 0.22rem;
    width: 100%;
}

.auth-brand-name,
.auth-brand-subname {
    display: block;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-brand-name {
    font-size: 0.98rem;
    font-weight: 800;
}

.auth-brand-subname {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.2rem;
}

.auth-hero {
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.auth-eyebrow,
.auth-kicker {
    color: #e4c35a;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.auth-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
    max-width: 12ch;
}

.auth-lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.75;
    margin: 1.4rem 0 0;
    max-width: 34rem;
}

.auth-highlights {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    z-index: 1;
}

.auth-highlight {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 1rem;
}

.auth-highlight span,
.auth-highlight small {
    display: block;
}

.auth-highlight span {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.auth-highlight small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.55rem;
}

.auth-form-area {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.94)),
        #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.4rem;
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 1.5rem;
}

.auth-mobile-brand .auth-brand-subname {
    color: var(--app-muted);
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(23, 53, 40, 0.1);
    padding: 2.15rem;
    width: min(100%, 430px);
}

.auth-card-header {
    margin-bottom: 1.65rem;
}

.auth-card-header h2 {
    color: var(--app-ink);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.auth-card-header p {
    color: var(--app-muted);
    line-height: 1.65;
    margin: 0.75rem 0 0;
}

.auth-alert {
    border-radius: 8px;
    font-size: 0.9rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field .form-label {
    color: var(--app-ink);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.auth-input-group {
    align-items: center;
    background: #f7faf8;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    display: flex;
    min-height: 3.15rem;
    padding: 0 0.85rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-input-group:focus-within {
    background: #ffffff;
    border-color: rgba(25, 135, 84, 0.45);
    box-shadow: 0 0 0 0.22rem rgba(25, 135, 84, 0.12);
}

.auth-input-group i {
    color: var(--app-accent);
    flex: 0 0 1.25rem;
    font-size: 1rem;
}

.auth-input-group .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--app-ink);
    font-size: 0.96rem;
    min-height: 3rem;
    padding-left: 0.75rem;
}

.auth-input-group .form-control::placeholder {
    color: #9aaaa2;
}

.auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #5d6f65;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 2.75rem;
    height: 2.75rem;
    justify-content: center;
    margin-right: -0.35rem;
    padding: 0;
    transition: background 0.16s ease, color 0.16s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    background: rgba(25, 135, 84, 0.08);
    color: var(--app-accent);
    outline: 0;
}

.auth-password-toggle:focus-visible {
    box-shadow: 0 0 0 0.18rem rgba(25, 135, 84, 0.18);
}

.auth-password-toggle i {
    color: inherit;
    flex: 0 0 auto;
    font-size: 1.08rem;
}

.auth-remember {
    align-items: center;
    color: var(--app-muted);
    display: flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.55rem;
    margin: 0.2rem 0 0.15rem;
}

.auth-remember .form-check-input {
    border-color: #bfd2c8;
    box-shadow: none;
    margin: 0;
}

.auth-remember .form-check-input:checked {
    background-color: var(--app-accent);
    border-color: var(--app-accent);
}

.auth-submit {
    background: var(--app-accent);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 25px rgba(25, 135, 84, 0.22);
    color: #ffffff;
    font-weight: 800;
    min-height: 3.15rem;
}

.auth-submit:hover,
.auth-submit:focus {
    background: var(--app-accent-dark);
    color: #ffffff;
}

.auth-helper {
    color: var(--app-muted);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.auth-helper a {
    color: var(--app-accent-dark);
    font-weight: 700;
}

.auth-footnote {
    color: var(--app-muted);
    font-size: 0.82rem;
    margin: 1rem 0 0;
    text-align: center;
}

@media (max-width: 991.98px) {
    .auth-page {
        align-items: stretch;
        padding: 1rem;
    }

    .auth-shell {
        display: flex;
        min-height: auto;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-area {
        min-height: calc(100vh - 2rem);
        padding: 2rem 1.25rem;
        width: 100%;
    }

    .auth-mobile-brand {
        display: flex;
    }

    .auth-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 0;
    }

    .auth-shell {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .auth-form-area {
        background:
            linear-gradient(180deg, rgba(237, 246, 241, 0.96), rgba(255, 255, 255, 0.98) 32%),
            #ffffff;
        justify-content: flex-start;
        min-height: 100vh;
        padding: 1.35rem 1rem 2rem;
    }

    .auth-mobile-brand {
        align-self: stretch;
        margin-bottom: 1.25rem;
    }

    .auth-card {
        box-shadow: 0 14px 34px rgba(23, 53, 40, 0.1);
        padding: 1.25rem;
    }

    .auth-card-header {
        margin-bottom: 1.25rem;
    }

    .auth-card-header h2 {
        font-size: 1.38rem;
    }

    .auth-card-header p {
        font-size: 0.92rem;
    }

    .auth-input-group,
    .auth-submit {
        min-height: 3rem;
    }

    .auth-footnote {
        max-width: 18rem;
    }
}

.app-shell {
    align-items: flex-start;
    display: flex;
    gap: 1.15rem;
    min-height: 100vh;
    padding: 1.1rem;
}

.app-sidebar {
    background: var(--app-sidebar);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-shell);
    box-shadow: 0 24px 60px rgba(16, 63, 44, 0.18);
    color: #ffffff;
    display: flex;
    flex: 0 0 var(--sidebar-expanded);
    flex-direction: column;
    height: calc(100vh - 2.2rem);
    min-height: calc(100vh - 2.2rem);
    overflow: hidden;
    padding: 1rem 0.85rem;
    position: sticky;
    top: 1.1rem;
    transition: flex-basis 0.18s ease, width 0.18s ease, transform 0.18s ease;
    width: var(--sidebar-expanded);
    z-index: 1030;
}

.sidebar-brand {
    flex: 0 0 auto;
    margin-bottom: 1rem;
}

.sidebar-brand-link {
    align-items: center;
    border-radius: 16px;
    color: #ffffff;
    display: flex;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.45rem 0.55rem;
    text-decoration: none;
}

.sidebar-brand-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.brand-mark {
    align-items: center;
    background: #ffffff;
    border-radius: 15px;
    color: var(--app-sidebar);
    display: inline-flex;
    flex: 0 0 2.35rem;
    font-weight: 800;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.brand-mark-image {
    overflow: hidden;
    padding: 0;
}

.brand-mark-image img {
    height: 100%;
    object-fit: contain;
    padding: 0.2rem;
    width: 100%;
}

.brand-text {
    min-width: 0;
}

.brand-title,
.brand-subtitle {
    display: block;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-title {
    font-size: 0.9rem;
    font-weight: 800;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    margin-top: 0.16rem;
}

.sidebar-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.2rem;
    scroll-behavior: smooth;
    scrollbar-color: rgba(255, 255, 255, 0.36) transparent;
    scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar {
    width: 0.38rem;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex: 0 0 auto;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
}

.sidebar-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.64rem;
    font-weight: 650;
    margin: 0 0.45rem 0.35rem;
    text-transform: uppercase;
}

.sidebar-link,
.sidebar-sublink {
    align-items: center;
    border: 0;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    font-size: 0.87rem;
    font-weight: 500;
    gap: 0.72rem;
    min-height: 2.55rem;
    padding: 0.55rem 0.65rem;
    text-decoration: none;
    width: 100%;
}

.sidebar-link {
    background: transparent;
}

.sidebar-link i:first-child,
.sidebar-sublink i:first-child {
    flex: 0 0 1.25rem;
    font-size: 1.05rem;
    text-align: center;
}

.sidebar-link:hover,
.sidebar-link.active,
.sidebar-sublink:hover,
.sidebar-sublink.active {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.sidebar-link.active,
.sidebar-sublink.active {
    box-shadow: 0 10px 24px rgba(8, 38, 25, 0.16);
}

.sidebar-link-logout {
    color: #ffe3e3;
}

.sidebar-link-logout:hover {
    background: rgba(220, 53, 69, 0.18);
    color: #ffffff;
}

.sidebar-link-toggle {
    justify-content: flex-start;
}

.sidebar-chevron {
    font-size: 0.82rem;
    margin-left: auto;
    transition: transform 0.18s ease;
}

.sidebar-link-toggle:not(.collapsed) .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    padding: 0.3rem 0 0.2rem 0.55rem;
}

.sidebar-sublink {
    font-size: 0.82rem;
    font-weight: 500;
    min-height: 2.28rem;
    padding-left: 0.6rem;
}

.app-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: calc(100vh - 2.2rem);
}

.app-topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 236, 230, 0.86);
    border-radius: var(--radius-shell);
    box-shadow: 0 18px 44px rgba(20, 58, 38, 0.08);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(220px, 680px) auto;
    min-height: var(--topbar-height);
    padding: 0.72rem 1rem;
    position: sticky;
    top: 1.1rem;
    z-index: 1020;
}

.sidebar-toggle,
.user-menu-button {
    align-items: center;
    background: var(--app-surface);
    border: 1px solid var(--app-line);
    border-radius: var(--radius-soft);
    color: var(--app-ink);
    display: inline-flex;
    justify-content: center;
}

.sidebar-toggle {
    height: 2.35rem;
    width: 2.35rem;
}

.sidebar-toggle:hover,
.user-menu-button:hover {
    background: var(--app-surface-soft);
}

.topbar-search {
    min-width: 0;
}

.global-search {
    align-items: center;
    background: rgba(247, 250, 248, 0.88);
    border: 1px solid var(--app-line);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
    display: flex;
    gap: 0.65rem;
    min-height: 2.38rem;
    padding: 0.2rem 0.25rem 0.2rem 0.82rem;
}

.global-search i {
    color: var(--app-muted);
    flex: 0 0 auto;
}

.global-search .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: 0;
    padding-left: 0;
    font-size: 0.86rem;
}

.global-search .btn {
    flex: 0 0 auto;
    font-size: 0.82rem;
    min-height: 1.95rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.global-search-muted {
    color: var(--app-muted);
    font-size: 0.86rem;
}

.topbar-user {
    justify-self: end;
}

.topbar-mobile-brand {
    align-items: center;
    color: var(--app-ink);
    display: inline-flex;
    gap: 0.65rem;
    min-width: 0;
    text-decoration: none;
}

.topbar-mobile-brand:hover {
    color: var(--app-ink);
}

.topbar-mobile-brand .brand-mark {
    border: 1px solid rgba(25, 135, 84, 0.16);
    flex-basis: 2rem;
    height: 2rem;
    width: 2rem;
}

.topbar-mobile-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.topbar-mobile-title {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.02;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-mobile-subtitle {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-button {
    gap: 0.65rem;
    min-height: 2.38rem;
    padding: 0.22rem 0.62rem 0.22rem 0.32rem;
}

.user-avatar {
    align-items: center;
    background: var(--app-accent);
    border-radius: 13px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 2rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.user-meta {
    display: block;
    min-width: 0;
    text-align: left;
}

.user-name,
.user-role {
    display: block;
    line-height: 1.08;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 700;
}

.user-role {
    color: var(--app-muted);
    font-size: 0.68rem;
    margin-top: 0.16rem;
}

.app-main {
    padding: 1.35rem 0 0;
}

.app-main-wide {
    margin-left: auto;
    margin-right: auto;
    max-width: 1320px;
    width: 100%;
}

.page-panel,
.section-panel,
.section-card,
.filter-card,
.kpi-card,
.identity-card,
.summary-box {
    background: var(--app-surface);
    border: 1px solid var(--app-line);
    border-radius: var(--radius-panel);
    box-shadow: 0 18px 44px rgba(20, 58, 38, 0.065);
}

.page-header-panel {
    margin-bottom: 1.7rem;
    padding: 1.75rem;
}

.page-title {
    font-size: clamp(1.28rem, 1.8vw, 1.72rem);
    font-weight: 750;
    line-height: 1.18;
}

.page-panel .display-6 {
    font-size: clamp(1.28rem, 1.8vw, 1.72rem);
    font-weight: 750;
}

.page-intro,
.text-muted-soft {
    color: var(--app-muted);
}

.page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.eyebrow {
    color: var(--app-accent);
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
}

.filter-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(20, 58, 38, 0.045);
}

.section-panel.p-4,
.section-card.p-4,
.filter-card.p-3,
.filter-card.p-lg-4 {
    padding: 1.55rem !important;
}

.settings-logo-card {
    align-items: center;
    background: rgba(247, 250, 248, 0.72);
    border: 1px solid var(--app-line);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.settings-logo-preview {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(25, 135, 84, 0.16);
    border-radius: 8px;
    color: var(--app-accent-dark);
    display: inline-flex;
    flex: 0 0 4.4rem;
    font-weight: 800;
    height: 4.4rem;
    justify-content: center;
    overflow: hidden;
    width: 4.4rem;
}

.settings-logo-preview img {
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
    width: 100%;
}

.kpi-card .p-4 {
    padding: 1.55rem !important;
}

.kpi-card {
    overflow: hidden;
    position: relative;
}

.kpi-card::before {
    background: var(--kpi-color, var(--app-accent));
    content: "";
    display: block;
    height: 3px;
}

.kpi-value {
    color: #10281d;
    font-size: clamp(1.3rem, 1.9vw, 1.82rem);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.kpi-icon {
    align-items: center;
    background: var(--kpi-soft, var(--app-accent-soft));
    border-radius: 15px;
    color: var(--kpi-color, var(--app-accent));
    display: inline-flex;
    flex: 0 0 2.7rem;
    font-size: 1.25rem;
    height: 2.7rem;
    justify-content: center;
    width: 2.7rem;
}

.kpi-income {
    --kpi-color: var(--app-accent);
    --kpi-soft: var(--app-accent-soft);
}

.kpi-balance {
    --kpi-color: var(--app-blue);
    --kpi-soft: var(--app-blue-soft);
}

.kpi-arrears {
    --kpi-color: var(--app-red);
    --kpi-soft: var(--app-red-soft);
}

.kpi-settlement {
    --kpi-color: var(--app-yellow);
    --kpi-soft: var(--app-yellow-soft);
}

.report-card-row {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(var(--report-card-count, 5), minmax(0, 1fr));
}

.report-card-compact {
    padding: 0.9rem !important;
}

.report-card-compact .kpi-value {
    font-size: clamp(1.02rem, 1.15vw, 1.2rem);
    margin-bottom: 0.35rem !important;
}

.report-card-compact .btn {
    min-height: 2rem;
    padding: 0.25rem 0.55rem;
}

.report-card-icon {
    border-radius: 12px;
    flex-basis: 2.05rem;
    font-size: 0.95rem;
    height: 2.05rem;
    width: 2.05rem;
}

.report-card-note {
    min-height: 2.4em;
}

.mobile-report-cards {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.mobile-report-note {
    color: #62756b;
    font-size: 0.76rem;
    line-height: 1.35;
    margin-top: 0.38rem;
}

.mobile-report-summary-card .mobile-kpi-details {
    margin-top: 0.95rem;
}

.mobile-report-detail {
    border-radius: 14px;
    color: inherit;
    gap: 0.18rem;
    padding: 0.18rem 0;
    text-decoration: none;
}

a.mobile-report-detail:hover {
    color: inherit;
}

.mobile-report-detail strong {
    max-width: 100%;
}

.mobile-report-detail small {
    color: #62756b;
    font-size: 0.7rem;
    line-height: 1.35;
}

.section-title {
    font-size: 0.94rem;
    font-weight: 750;
    margin-bottom: 1rem;
}

.empty-state {
    background: var(--app-surface-muted);
    border: 1px dashed #cddbd3;
    border-radius: 16px;
    color: var(--app-muted);
    padding: 1.25rem;
}

.empty-state-title {
    color: var(--app-ink);
    font-weight: 750;
    margin-bottom: 0.25rem;
}

.table {
    --bs-table-color: var(--app-ink);
    --bs-table-border-color: var(--app-line);
    font-size: 0.8rem;
}

.table thead th {
    background: var(--app-surface-soft);
    border-bottom: 0;
    color: var(--app-muted);
    font-size: 0.62rem;
    font-weight: 750;
    text-transform: uppercase;
}

.table tbody td {
    padding-bottom: 0.68rem;
    padding-top: 0.68rem;
    vertical-align: middle;
}

.amount {
    font-weight: 800;
    white-space: nowrap;
}

.amount-income,
.amount-in {
    color: var(--app-accent);
}

.amount-out {
    color: var(--app-red);
}

.balance-value {
    color: var(--app-blue);
    font-weight: 800;
    white-space: nowrap;
}

.badge-soft-green {
    background: var(--app-accent-soft);
    border: 1px solid rgba(25, 135, 84, 0.16);
    color: var(--app-accent);
}

.badge-readonly {
    background: #f2f4f7;
    border: 1px solid #d9e0e6;
    color: #5f6b76;
}

.method-badge,
.source-chip {
    border-radius: 13px;
    display: inline-flex;
    font-size: 0.67rem;
    font-weight: 800;
    padding: 0.35rem 0.6rem;
    text-transform: uppercase;
}

.method-cash {
    background: var(--app-accent-soft);
    color: var(--app-accent);
}

.method-transfer {
    background: var(--app-blue-soft);
    color: var(--app-blue);
}

.method-qris {
    background: #f4f0ff;
    color: #5f3dc4;
}

.method-default,
.source-chip {
    background: #f2f4f7;
    color: #5f6b76;
}

.summary-box {
    background: var(--app-surface-muted);
    box-shadow: none;
}

.import-page {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.import-alert {
    border-color: rgba(220, 53, 69, 0.22);
    box-shadow: 0 12px 30px rgba(20, 58, 38, 0.045);
}

.import-result-panel,
.import-main-panel {
    overflow: hidden;
}

.import-summary-box {
    position: relative;
}

.import-summary-box::before {
    background: var(--summary-color, var(--app-accent));
    border-radius: 999px;
    content: "";
    display: block;
    height: 3px;
    margin-bottom: 0.75rem;
    width: 2.2rem;
}

.import-summary-success {
    --summary-color: var(--app-accent);
    background: var(--app-accent-soft);
}

.import-summary-warning {
    --summary-color: var(--app-yellow);
    background: var(--app-yellow-soft);
}

.import-summary-secondary {
    --summary-color: var(--app-muted);
    background: #f2f4f7;
}

.import-summary-danger {
    --summary-color: var(--app-red);
    background: var(--app-red-soft);
}

.import-error-box {
    background: var(--app-red-soft);
    border: 1px solid rgba(220, 53, 69, 0.18);
    border-radius: var(--radius-panel);
    padding: 1rem;
}

.import-error-list {
    display: grid;
    gap: 0.65rem;
    max-height: 300px;
    overflow: auto;
}

.import-error-item {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(220, 53, 69, 0.12);
    border-radius: var(--radius-control);
    padding: 0.78rem 0.85rem;
}

.import-form-panel {
    background: var(--app-surface-muted);
    border: 1px solid var(--app-line);
    border-radius: var(--radius-panel);
    height: 100%;
    padding: 1.15rem;
}

.import-file-zone {
    background: #ffffff;
    border: 1px dashed #cddbd3;
    border-radius: var(--radius-panel);
    padding: 1rem;
}

.import-file-label {
    color: var(--app-ink);
    font-weight: 750;
}

.import-helper-list {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.5rem;
}

.import-instructions {
    height: 100%;
}

.import-instruction-block {
    background: #ffffff;
    border: 1px solid var(--app-line);
    border-radius: var(--radius-panel);
    padding: 1rem;
}

.import-instruction-title {
    color: var(--app-ink);
    font-weight: 750;
    margin-bottom: 0.55rem;
}

.import-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.import-chip-list code,
.import-code-line code {
    background: var(--app-surface-soft);
    border: 1px solid var(--app-line);
    border-radius: 10px;
    color: var(--app-accent-dark);
    display: inline-flex;
    font-size: 0.78rem;
    padding: 0.28rem 0.48rem;
    white-space: normal;
    word-break: break-word;
}

.import-code-line {
    margin-bottom: 0.25rem;
}

.import-rule-list {
    color: var(--app-muted);
    display: grid;
    gap: 0.35rem;
    padding-left: 1.05rem;
}

.payment-summary {
    background: var(--app-surface-soft);
    border: 1px solid var(--app-line);
    border-radius: var(--radius-panel);
}

.cashier-home-header {
    border-radius: 8px;
}

.cashier-home-flow {
    align-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    min-width: min(100%, 330px);
}

.cashier-flow-pill {
    align-items: center;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-line);
    border-radius: 8px;
    color: var(--app-ink);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 750;
    gap: 0.42rem;
    min-height: 2.1rem;
    padding: 0.42rem 0.65rem;
}

.cashier-flow-pill i {
    color: var(--app-accent);
}

.cashier-search-panel,
.cashier-results-panel {
    border-radius: 8px;
}

.cashier-search-head,
.cashier-results-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.cashier-section-title {
    align-items: flex-start;
    display: flex;
    gap: 0.72rem;
    min-width: 0;
}

.cashier-section-icon,
.cashier-empty-icon {
    align-items: center;
    background: var(--app-accent-soft);
    border: 1px solid rgba(25, 135, 84, 0.16);
    border-radius: 8px;
    color: var(--app-accent-dark);
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.2rem;
    justify-content: center;
    width: 2.2rem;
}

.cashier-search-limit,
.cashier-result-count {
    background: #ffffff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    color: var(--app-muted);
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 750;
    padding: 0.42rem 0.65rem;
}

.cashier-student-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(160px, 1fr));
}

.cashier-total-card,
.cashier-summary-item,
.cashier-bill-item,
.cashier-payment-balance {
    background: #ffffff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}

.cashier-total-card,
.cashier-summary-item {
    padding: 0.95rem;
}

.cashier-total-card {
    background: var(--app-accent-soft);
    border-color: rgba(25, 135, 84, 0.2);
}

.cashier-summary-label {
    color: var(--app-muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cashier-summary-main {
    color: var(--app-accent-dark);
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1.15;
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
}

.cashier-summary-value,
.cashier-bill-outstanding {
    color: var(--app-ink);
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.2;
    margin-top: 0.2rem;
    white-space: nowrap;
}

.cashier-warning-list {
    display: grid;
    gap: 0.65rem;
}

.cashier-context-warning {
    border-radius: 8px;
    font-size: 0.92rem;
    padding: 0.68rem 0.8rem;
}

.cashier-action-panel {
    border-radius: 8px;
}

.cashier-quick-actions,
.cashier-amount-actions,
.cashier-suggestion-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cashier-search-form {
    align-items: start;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
}

.cashier-search-field .form-label {
    align-items: center;
    display: inline-flex;
    gap: 0.38rem;
    font-weight: 750;
}

.cashier-search-field .form-label i {
    color: var(--app-accent);
}

.cashier-search-actions {
    align-self: start;
    display: flex;
    gap: 0.5rem;
    grid-column: 1 / -1;
    padding-bottom: 0;
    padding-top: 0.12rem;
}

.cashier-search-actions .btn {
    align-items: center;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 2.5rem;
    min-width: 7.6rem;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
}

.cashier-quick-actions .btn {
    font-size: 0.86rem;
    font-weight: 650;
    min-height: 2.28rem;
    padding: 0.38rem 0.78rem;
}

.cashier-suggestion-strip .btn,
.cashier-amount-actions .btn {
    min-height: 2.1rem;
}

.cashier-bill-list {
    display: grid;
    gap: 0.72rem;
}

.cashier-bill-item {
    overflow: hidden;
}

.cashier-bill-mutation {
    border-color: rgba(187, 132, 0, 0.45);
    box-shadow: inset 4px 0 0 rgba(187, 132, 0, 0.65);
}

.cashier-bill-non-active {
    border-color: rgba(220, 53, 69, 0.42);
    box-shadow: inset 4px 0 0 rgba(220, 53, 69, 0.62);
}

.cashier-bill-main {
    align-items: center;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto minmax(170px, 1.2fr) minmax(220px, 1.4fr) minmax(160px, 0.8fr) auto;
    padding: 0.9rem;
}

.cashier-bill-check {
    align-self: start;
    padding-top: 0.25rem;
}

.cashier-bill-mode {
    min-width: 0;
}

.cashier-bill-money {
    text-align: right;
}

.cashier-bill-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.cashier-bill-detail {
    background: var(--app-surface-soft);
    border-top: 1px solid var(--app-line);
    padding: 0.95rem;
}

.cashier-search-outstanding {
    color: var(--app-red);
    font-weight: 850;
    white-space: nowrap;
}

.cashier-empty-state {
    align-items: flex-start;
    background: var(--app-surface-soft);
    border: 1px dashed #cddbd3;
    border-radius: 8px;
    color: var(--app-muted);
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
}

.cashier-empty-info {
    border-style: solid;
}

.cashier-empty-warning {
    background: #fff8e1;
    border-color: #f2df99;
}

.cashier-empty-title {
    color: var(--app-ink);
    font-weight: 800;
    margin-bottom: 0.18rem;
}

.cashier-empty-copy {
    line-height: 1.45;
}

.cashier-empty-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.cashier-empty-hints span {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    color: var(--app-ink);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 650;
    gap: 0.35rem;
    padding: 0.34rem 0.52rem;
}

.cashier-empty-hints i {
    color: var(--app-accent);
}

.cashier-results-helper {
    margin: -0.55rem 0 0.85rem 2.92rem;
}

.cashier-amount-input {
    font-size: 1.35rem;
    font-weight: 800;
}

.payment-modal-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(0, 1.05fr) minmax(14rem, 0.78fr) minmax(0, 1.4fr);
    margin-bottom: 1rem;
}

.payment-modal-section {
    background: var(--app-surface-muted);
    border: 1px solid var(--app-line);
    border-radius: 16px;
    padding: 1rem;
}

.payment-modal-section-summary {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08), rgba(255, 255, 255, 0.94));
}

.payment-modal-info-fields,
.payment-modal-mode-options {
    display: grid;
    gap: 0.8rem;
}

.payment-modal-mode-options {
    align-content: start;
}

.payment-modal-mode-options .form-check {
    background: #ffffff;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    display: flex;
    gap: 0.55rem;
    margin: 0;
    padding: 0.8rem 0.9rem;
}

.payment-modal-mode-options .form-check-input {
    margin-top: 0.2rem;
}

.payment-modal-section-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.payment-modal-summary-cards {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-modal-summary-card,
.payment-modal-note-card {
    background: #ffffff;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    padding: 0.85rem;
}

.payment-modal-summary-card .amount,
.payment-modal-note-card .amount {
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.payment-modal-actions-group {
    display: grid;
    gap: 0.45rem;
}

.cashier-payment-balance {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.85rem;
}

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

    .payment-modal-section-summary {
        grid-column: 1 / -1;
    }
}

.cashier-success-alert {
    border-radius: 8px;
}

.mobile-dashboard-overview {
    display: grid;
    gap: 1rem;
    margin: -0.45rem 0 1.1rem;
    position: relative;
    z-index: 2;
}

.mobile-kpi-card {
    background: var(--app-surface);
    border: 1px solid rgba(226, 236, 230, 0.82);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(16, 63, 44, 0.08);
    overflow: hidden;
    padding: 1.08rem;
}

.mobile-kpi-main {
    align-items: flex-start;
    display: flex;
    gap: 0.9rem;
    justify-content: space-between;
}

.mobile-kpi-label {
    color: #5f7167;
    font-size: 0.75rem;
    font-weight: 800;
}

.mobile-kpi-value {
    color: #10281d;
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
}

.mobile-kpi-icon {
    align-items: center;
    background: var(--kpi-soft, var(--app-accent-soft));
    border-radius: 17px;
    color: var(--kpi-color, var(--app-accent));
    display: inline-flex;
    flex: 0 0 2.68rem;
    font-size: 1.05rem;
    height: 2.68rem;
    justify-content: center;
    width: 2.68rem;
}

.mobile-kpi-details {
    border-top: 1px solid var(--app-line);
    display: grid;
    gap: 0.72rem;
    margin-top: 1rem;
    padding-top: 0.95rem;
}

.mobile-kpi-detail {
    display: grid;
    gap: 0.24rem;
}

.mobile-kpi-detail span {
    color: #62756b;
    font-size: 0.74rem;
    font-weight: 500;
}

.mobile-kpi-detail strong {
    color: var(--app-ink);
    font-size: 1.02rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    max-width: 58%;
    overflow-wrap: anywhere;
    text-align: left;
}

.mobile-shortcut-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.08rem 0 0.18rem;
    scrollbar-width: none;
}

.mobile-shortcut-grid::-webkit-scrollbar {
    display: none;
}

.mobile-shortcut {
    align-items: center;
    background: var(--app-surface);
    border: 1px solid rgba(226, 236, 230, 0.82);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(20, 58, 38, 0.045);
    color: var(--app-ink);
    display: flex;
    flex: 1 0 calc((100% - 2.25rem) / 4);
    flex-direction: column;
    gap: 0.52rem;
    justify-content: center;
    min-height: 5.8rem;
    min-width: 4.55rem;
    padding: 0.68rem 0.34rem;
    text-align: center;
    text-decoration: none;
}

.mobile-shortcut span {
    align-items: center;
    background: var(--app-accent-soft);
    border-radius: 15px;
    color: var(--app-accent);
    display: inline-flex;
    flex: 0 0 2.55rem;
    font-size: 1.02rem;
    height: 2.55rem;
    justify-content: center;
    width: 2.55rem;
}

.mobile-shortcut strong {
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.12;
}

.mobile-bottom-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 236, 230, 0.92);
    border-radius: 24px 24px 0 0;
    bottom: 0;
    box-shadow: 0 -14px 34px rgba(20, 58, 38, 0.12);
    display: flex;
    gap: 0.1rem;
    left: 0;
    min-height: calc(4.85rem + env(safe-area-inset-bottom));
    padding: 0.52rem 0.42rem calc(0.48rem + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 1040;
}

.mobile-bottom-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 16px;
    color: var(--app-muted);
    display: inline-flex;
    flex: 1 1 0;
    flex-direction: column;
    font-size: 0.68rem;
    font-weight: 800;
    gap: 0.16rem;
    justify-content: center;
    min-height: 3.45rem;
    padding: 0.35rem 0.2rem;
    text-align: center;
    text-decoration: none;
}

.mobile-bottom-link i {
    font-size: 1.16rem;
    line-height: 1;
}

.mobile-bottom-link.active,
.mobile-bottom-link:hover {
    background: var(--app-accent-soft);
    box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.08);
    color: var(--app-accent);
}

.mobile-bottom-button {
    width: 100%;
}

.mobile-menu-sheet {
    border-radius: 22px 22px 0 0;
    min-height: 58vh;
}

.mobile-menu-sheet .offcanvas-header {
    border-bottom: 1px solid var(--app-line);
    padding: 1rem 1rem 0.9rem;
}

.mobile-menu-sheet .offcanvas-body {
    padding: 1rem;
}

.mobile-menu-eyebrow {
    color: var(--app-accent);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mobile-menu-sheet .offcanvas-title {
    font-size: 1.02rem;
    font-weight: 800;
}

.mobile-menu-user {
    color: var(--app-muted);
    font-size: 0.78rem;
    margin-top: 0.16rem;
}

.mobile-menu-grid {
    display: grid;
    gap: 0.65rem;
}

.mobile-menu-section {
    border-top: 1px solid var(--app-line);
    margin-top: 1rem;
    padding-top: 0.85rem;
}

.mobile-menu-section-title {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.mobile-menu-item {
    align-items: center;
    background: var(--app-surface-muted);
    border: 1px solid var(--app-line);
    border-radius: 16px;
    color: var(--app-ink);
    display: flex;
    font-weight: 750;
    gap: 0.75rem;
    min-height: 3.4rem;
    padding: 0.75rem 0.85rem;
    text-decoration: none;
}

.mobile-menu-item.active {
    background: var(--app-accent-soft);
    border-color: rgba(25, 135, 84, 0.2);
    color: var(--app-accent);
}

.mobile-menu-icon {
    align-items: center;
    background: #ffffff;
    border-radius: 13px;
    color: inherit;
    display: inline-flex;
    flex: 0 0 2.15rem;
    height: 2.15rem;
    justify-content: center;
    width: 2.15rem;
}

.mobile-menu-item-logout {
    color: var(--app-red);
}

.mobile-menu-subitem {
    background: #ffffff;
}

.meta-label {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.meta-value {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.btn,
.badge,
.form-control,
.form-select,
.alert,
.modal-content,
.page-link,
.card {
    border-radius: var(--radius-control) !important;
}

.dropdown-menu {
    border-color: var(--app-line);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(20, 58, 38, 0.12);
    font-size: 0.86rem;
    padding: 0.55rem;
}

.dropdown-item,
.dropdown-item-text {
    border-radius: 11px;
}

.btn,
.form-control,
.form-select,
.form-label,
.form-text,
.page-link {
    font-size: 0.86rem;
}

.badge {
    font-weight: 650;
}

.card {
    border-color: var(--app-line);
}

body.sidebar-collapsed .app-sidebar {
    flex-basis: var(--sidebar-collapsed);
    width: var(--sidebar-collapsed);
}

body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .sidebar-label,
body.sidebar-collapsed .sidebar-link-text,
body.sidebar-collapsed .sidebar-chevron {
    display: none;
}

body.sidebar-collapsed .sidebar-brand-link,
body.sidebar-collapsed .sidebar-link,
body.sidebar-collapsed .sidebar-sublink {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-submenu {
    padding-left: 0;
}

@media (max-width: 767.98px) {
    .app-body {
        background: #eef5f1;
        padding-bottom: calc(5.15rem + env(safe-area-inset-bottom));
        font-size: 0.88rem;
    }

    .app-shell {
        display: block;
        gap: 0;
        overflow-x: hidden;
        padding: 0;
        position: relative;
    }

    .app-shell::before {
        background: #12824d;
        content: "";
        height: 10.3rem;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 0;
    }

    .app-shell::after {
        background: #12824d;
        border-radius: 0 0 50% 50% / 0 0 100% 100%;
        content: "";
        height: 6.3rem;
        left: -22%;
        position: absolute;
        right: -22%;
        top: 9.05rem;
        z-index: 0;
    }

    .app-sidebar {
        display: none;
    }

    body.sidebar-mobile-open .app-sidebar {
        display: none;
    }

    body.sidebar-mobile-open::after {
        content: none;
    }

    .app-content {
        min-height: auto;
        padding: 0.84rem 0.72rem 0;
        position: relative;
        z-index: 1;
    }

    .app-topbar {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        gap: 0.75rem;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 3.85rem;
        padding: 0.24rem 0.65rem 0.2rem;
        position: static;
        top: auto;
    }

    .topbar-mobile-brand {
        color: #ffffff;
    }

    .topbar-mobile-brand:hover {
        color: #ffffff;
    }

    .topbar-mobile-brand .brand-mark {
        background: rgba(255, 255, 255, 0.95);
        border: 0;
        border-radius: 999px;
        color: var(--app-accent-dark);
        flex-basis: 2.55rem;
        font-size: 0.82rem;
        height: 2.55rem;
        width: 2.55rem;
    }

    .topbar-mobile-title {
        font-size: 1rem;
        font-weight: 800;
        max-width: 12.4rem;
    }

    .topbar-mobile-subtitle {
        font-size: 0.73rem;
        font-weight: 500;
        max-width: 12.4rem;
    }

    .topbar-user {
        justify-self: end;
    }

    .topbar-search {
        display: none !important;
    }

    .app-main {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        margin: 1.9rem -0.72rem 0;
        min-height: calc(100vh - 8.25rem);
        padding: 1rem 0.72rem 0.3rem;
        position: relative;
        z-index: 1;
    }

    .app-main-wide {
        max-width: none;
        width: auto;
    }

    .user-meta {
        display: none;
    }

    .user-menu-button {
        background: transparent;
        border-color: transparent;
        border-radius: 999px;
        color: #ffffff;
        min-height: 2.65rem;
        padding: 0;
    }

    .user-menu-button:hover {
        background: transparent;
        color: #ffffff;
    }

    .user-menu-button .bi-chevron-down {
        display: none;
    }

    .user-avatar {
        background: #12824d;
        border: 3px solid rgba(255, 255, 255, 0.9);
        border-radius: 999px;
        color: #ffffff;
        flex-basis: 2.55rem;
        height: 2.55rem;
        width: 2.55rem;
    }

    .section-card,
    .section-panel,
    .filter-card,
    .identity-card,
    .page-panel,
    .summary-box,
    .import-form-panel,
    .import-instruction-block,
    .import-file-zone,
    .card {
        border-color: rgba(226, 236, 230, 0.9);
        border-radius: 22px !important;
        box-shadow: 0 12px 30px rgba(20, 58, 38, 0.055);
    }

    .section-card.p-4,
    .section-panel.p-4,
    .filter-card.p-3,
    .filter-card.p-lg-4,
    .page-panel.p-4,
    .page-panel.p-lg-5,
    .kpi-card .p-4 {
        padding: 1rem !important;
    }

    .filter-card {
        margin-bottom: 1rem !important;
    }

    .page-panel {
        margin-bottom: 1rem !important;
    }

    .page-header-panel {
        padding: 1rem !important;
    }

    .cashier-home-header,
    .cashier-search-panel,
    .cashier-results-panel {
        border-radius: 8px !important;
    }

    .cashier-home-flow {
        justify-content: flex-start;
        min-width: 0;
    }

    .cashier-flow-pill {
        font-size: 0.74rem;
        min-height: 2rem;
        padding: 0.34rem 0.52rem;
    }

    .page-title,
    .page-panel .display-6 {
        font-size: 1.18rem;
    }

    .page-intro {
        font-size: 0.82rem;
    }

    .section-title {
        margin-bottom: 0.78rem;
    }

    .table-responsive {
        margin-left: -0.15rem;
        margin-right: -0.15rem;
    }

    .table {
        font-size: 0.76rem;
    }

    .table tbody td {
        padding-bottom: 0.55rem;
        padding-top: 0.55rem;
    }

    .table tbody td,
    .table thead th {
        white-space: nowrap;
    }

    .empty-state {
        border-radius: 15px;
        padding: 1rem;
    }

    .btn,
    .form-control,
    .form-select {
        min-height: 2.45rem;
    }

    #payment-modal {
        z-index: 1065;
    }

    #payment-modal .modal-dialog {
        margin: 0.75rem;
        max-height: calc(100dvh - 1.5rem);
    }

    #payment-modal .modal-content {
        max-height: calc(100dvh - 1.5rem);
        overflow: hidden;
    }

    #payment-modal .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #payment-modal .modal-footer {
        background: #ffffff;
        gap: 0.5rem;
    }

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

    .cashier-total-card,
    .cashier-summary-item,
    .cashier-bill-item,
    .cashier-payment-balance,
    .cashier-action-panel,
    .cashier-success-alert {
        border-radius: 8px !important;
    }

    .cashier-summary-main {
        font-size: 1.35rem;
    }

    .cashier-quick-actions,
    .cashier-amount-actions,
    .cashier-suggestion-strip {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .cashier-search-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-bottom: 0;
    }

    .cashier-search-actions .btn {
        min-width: 0;
    }

    .cashier-search-head,
    .cashier-results-head {
        gap: 0.8rem;
    }

    .cashier-search-limit,
    .cashier-result-count {
        align-self: flex-start;
        font-size: 0.72rem;
        padding: 0.34rem 0.5rem;
    }

    .cashier-section-title {
        gap: 0.58rem;
    }

    .cashier-section-icon,
    .cashier-empty-icon {
        height: 2rem;
        width: 2rem;
    }

    .cashier-empty-state {
        padding: 0.85rem;
    }

    .cashier-empty-hints {
        display: grid;
        gap: 0.38rem;
    }

    .cashier-results-helper {
        margin-left: 2.58rem;
    }

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

    .cashier-quick-actions .btn {
        min-height: 2.35rem;
        padding: 0.38rem 0.5rem;
    }

    .cashier-bill-main {
        align-items: start;
        grid-template-columns: auto minmax(0, 1fr);
        padding: 0.85rem;
    }

    .cashier-bill-mode,
    .cashier-bill-money,
    .cashier-bill-actions {
        grid-column: 1 / -1;
    }

    .cashier-bill-money {
        background: var(--app-surface-soft);
        border-radius: 8px;
        padding: 0.65rem;
        text-align: left;
    }

    .cashier-bill-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }

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

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

    .payment-modal-summary-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .app-content {
        padding-left: 0.58rem;
        padding-right: 0.58rem;
    }

    .app-main {
        margin-left: -0.58rem;
        margin-right: -0.58rem;
        padding-left: 0.58rem;
        padding-right: 0.58rem;
    }

    .section-panel.p-4,
    .section-card.p-4,
    .filter-card.p-3,
    .filter-card.p-lg-4,
    .kpi-card .p-4 {
        padding: 1.15rem !important;
    }

    .global-search {
        align-items: stretch;
        flex-wrap: wrap;
        padding: 0.55rem;
    }

    .global-search .form-control {
        flex: 1 1 calc(100% - 2rem);
    }

    .global-search .btn {
        flex: 1 1 100%;
    }

    .mobile-kpi-value {
        font-size: 1.45rem;
    }

    .mobile-kpi-detail {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.15rem;
    }

    .mobile-kpi-detail strong {
        max-width: 100%;
        text-align: left;
    }

    .mobile-shortcut {
        gap: 0.5rem;
        min-height: 5.6rem;
        min-width: 4.45rem;
        padding: 0.62rem 0.3rem;
    }

    .mobile-shortcut span {
        flex-basis: 2.38rem;
        height: 2.38rem;
        width: 2.38rem;
    }
}
