body {
    background: #f5f7fb;
    color: #172033;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    background: linear-gradient(180deg, #0f2f63 0%, #10284d 56%, #0d1c33 100%);
    color: #dce8ff;
    display: flex;
    flex: 0 0 270px;
    flex-direction: column;
    height: 100vh;
    left: 0;
    overflow-y: auto;
    position: sticky;
    top: 0;
    width: 270px;
    z-index: 1040;
    transition: flex-basis 0.18s ease, width 0.18s ease, transform 0.22s ease;
}

.sidebar-brand {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 18px 18px 14px;
}

.sidebar-brand a {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    gap: 12px;
    line-height: 1.05;
    text-decoration: none;
}

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

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

.sidebar-brand strong {
    font-size: 1.05rem;
}

.sidebar-brand small {
    color: #8fb4ec;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 3px;
}

.brand-mark {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    width: 38px;
}

.brand-mark img,
.mobile-brand img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.sidebar-close,
.sidebar-minimize,
.sidebar-toggle,
.mobile-user {
    align-items: center;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.sidebar-minimize {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    margin-left: auto;
}

.sidebar-minimize:hover,
.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: none;
}

.sidebar-user {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin: 6px 16px 16px;
    padding: 12px;
}

.user-avatar {
    align-items: center;
    background: #e8f1ff;
    border-radius: 8px;
    color: #16437d;
    display: inline-flex;
    flex: 0 0 38px;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.sidebar-user .user-name,
.sidebar-user .user-role,
.sidebar-user .user-scope,
.sidebar-user .user-business {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user .user-name {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

.sidebar-user .user-role {
    color: #98b2d8;
    font-size: 0.78rem;
}

.sidebar-user .user-scope {
    color: #c8d7ee;
    font-size: 0.72rem;
    margin-top: 2px;
}

.sidebar-user .user-business {
    color: #dbeafe;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 2px;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
    padding: 0 12px 16px;
}

.sidebar-link,
.sidebar-group-toggle,
.sidebar-sublink,
.logout-link {
    align-items: center;
    border-radius: 8px;
    color: #b8c9e7;
    display: flex;
    font-weight: 600;
    gap: 10px;
    min-height: 42px;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.sidebar-link,
.sidebar-group-toggle {
    padding: 0 12px;
}

.sidebar-group-toggle {
    background: transparent;
    border: 0;
    justify-content: space-between;
    text-align: left;
    width: 100%;
}

.sidebar-group-toggle span {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.sidebar-link:hover,
.sidebar-group-toggle:hover,
.sidebar-sublink:hover,
.logout-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.sidebar-link.active,
.sidebar-sublink.active,
.sidebar-group-toggle.active {
    background: #2f80ed;
    box-shadow: 0 8px 18px rgba(47, 128, 237, 0.25);
    color: #ffffff;
}

.group-chevron {
    font-size: 0.78rem;
    transition: transform 0.18s ease;
}

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

.sidebar-subnav {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 3px;
    margin: 2px 0 8px 24px;
    padding-left: 9px;
}

.sidebar-sublink {
    font-size: 0.9rem;
    min-height: 38px;
    padding: 0 10px;
}

.sidebar-sublink i {
    font-size: 0.92rem;
}

.sidebar-footer {
    margin-top: auto;
    padding: 12px;
}

.logout-link {
    background: rgba(255, 255, 255, 0.07);
    padding: 0 12px;
}

.app-content {
    flex: 1;
    min-width: 0;
    padding: 0 0 24px;
}

.app-content > .container,
.app-content > .container-fluid {
    max-width: 1320px;
}

.accounting-flow {
    background: #ffffff;
    border-bottom: 1px solid #dbe3ef;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    padding: 14px 24px 12px;
}

.accounting-flow-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 0 auto 10px;
    max-width: 1320px;
}

.accounting-flow-head strong,
.accounting-flow-eyebrow,
.accounting-flow-progress {
    display: block;
}

.accounting-flow-eyebrow {
    color: #0d6efd;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.accounting-flow-head strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.accounting-flow-progress {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #0d47a1;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 10px;
}

.accounting-flow-track {
    display: flex;
    gap: 8px;
    margin: 0 auto;
    max-width: 1320px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.accounting-flow-step {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    color: #334155;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 9px;
    min-height: 52px;
    padding: 8px 12px 8px 9px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.accounting-flow-step:hover {
    background: #eef6ff;
    border-color: #9ec5fe;
    color: #0d47a1;
}

.accounting-flow-step.active {
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.18);
    color: #ffffff;
}

.flow-step-number {
    align-items: center;
    background: #e8f1ff;
    border-radius: 8px;
    color: #0d47a1;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 0.8rem;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.accounting-flow-step.active .flow-step-number {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.flow-step-main,
.flow-step-stage,
.flow-step-label {
    display: block;
}

.flow-step-stage {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.accounting-flow-step.active .flow-step-stage {
    color: rgba(255, 255, 255, 0.78);
}

.flow-step-label {
    align-items: center;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 6px;
    line-height: 1.1;
    white-space: nowrap;
}

.accounting-flow-active-hint {
    align-items: flex-start;
    background: #f8fbff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #334155;
    display: flex;
    gap: 9px;
    margin: 10px auto 0;
    max-width: 1320px;
    padding: 9px 12px;
}

.accounting-flow-active-hint i {
    color: #0d6efd;
    flex: 0 0 auto;
    margin-top: 1px;
}

.accounting-flow-active-hint strong {
    color: #0f3f7a;
}

.accounting-flow-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.accounting-flow-close,
.accounting-flow-show {
    align-items: center;
    border: 1px solid rgba(147, 197, 253, 0.55);
    color: #0d47a1;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
}

.accounting-flow-close {
    background: rgba(239, 246, 255, 0.76);
    border-radius: 10px;
    height: 30px;
    width: 30px;
}

.accounting-flow-show {
    background: rgba(239, 246, 255, 0.88);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 47, 99, 0.12);
    gap: 6px;
    margin: 10px 0 0 24px;
    padding: 6px 10px;
}

body.accounting-flow-hidden .accounting-flow {
    display: none;
}

body:not(.accounting-flow-hidden) .accounting-flow-show {
    display: none;
}

body.sidebar-minimized .app-sidebar {
    flex-basis: 82px;
    width: 82px;
}

body.sidebar-minimized .sidebar-brand {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
}

body.sidebar-minimized .brand-text,
body.sidebar-minimized .sidebar-user .min-w-0,
body.sidebar-minimized .sidebar-link span,
body.sidebar-minimized .sidebar-group-toggle span span,
body.sidebar-minimized .sidebar-sublink span,
body.sidebar-minimized .logout-link span,
body.sidebar-minimized .group-chevron {
    display: none;
}

body.sidebar-minimized .sidebar-minimize {
    bottom: 16px;
    left: 22px;
    margin-left: 0;
    position: absolute;
}

body.sidebar-minimized .sidebar-user {
    justify-content: center;
    margin-left: 12px;
    margin-right: 12px;
    padding: 10px;
}

body.sidebar-minimized .sidebar-nav {
    padding-left: 10px;
    padding-right: 10px;
}

body.sidebar-minimized .sidebar-link,
body.sidebar-minimized .sidebar-group-toggle,
body.sidebar-minimized .logout-link {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    min-height: 44px;
    padding: 0;
    width: 54px;
}

body.sidebar-minimized .sidebar-subnav {
    border-left: 0;
    margin: 0;
    padding-left: 0;
}

body.sidebar-minimized .sidebar-flyout {
    background: #10284d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(13, 28, 51, 0.26);
    display: none;
    left: 76px;
    min-width: 218px;
    padding: 10px;
    position: absolute;
    z-index: 1050;
}

body.sidebar-minimized .sidebar-group-toggle:hover + .sidebar-flyout,
body.sidebar-minimized .sidebar-group-toggle:focus + .sidebar-flyout,
body.sidebar-minimized .sidebar-flyout.open,
body.sidebar-minimized .sidebar-flyout:hover {
    display: block;
}

body.sidebar-minimized .sidebar-flyout::before {
    color: #8fb4ec;
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 2px 8px 8px;
    text-transform: uppercase;
}

body.sidebar-minimized .sidebar-flyout .sidebar-subnav {
    display: grid;
    gap: 4px;
}

body.sidebar-minimized .sidebar-sublink {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 10px;
    width: auto;
}

body.sidebar-minimized .sidebar-flyout .sidebar-sublink span {
    display: inline-flex;
}

body.sidebar-minimized .sidebar-group-toggle {
    font-size: 0;
}

body.sidebar-minimized .sidebar-group-toggle > span {
    gap: 0;
}

body.sidebar-minimized .sidebar-link i,
body.sidebar-minimized .sidebar-group-toggle i,
body.sidebar-minimized .sidebar-sublink i,
body.sidebar-minimized .logout-link i {
    font-size: 1.22rem;
    line-height: 1;
}

body.sidebar-minimized .sidebar-footer {
    padding-bottom: 66px;
}

.mobile-topbar,
.sidebar-backdrop {
    display: none;
}

.auth-shell {
    min-height: calc(100vh - 56px);
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.auth-shell-modern {
    background:
        linear-gradient(90deg, rgba(47, 128, 237, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(47, 128, 237, 0.06) 1px, transparent 1px),
        linear-gradient(135deg, #eef4ff 0%, #f8fbff 48%, #edf7f2 100%);
    background-size: 32px 32px, 32px 32px, auto;
    min-height: 100vh;
}

.login-panel,
.form-panel,
.table-wrap,
.metric {
    background: #ffffff;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

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

.login-panel-modern {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 70px rgba(15, 47, 99, 0.16);
    display: grid;
    gap: 0;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    overflow: hidden;
    padding: 0;
    width: min(100%, 1040px);
}

.login-brand-panel {
    background:
        linear-gradient(180deg, rgba(10, 31, 63, 0.86), rgba(10, 31, 63, 0.96)),
        url("../img/app-icon-source.png");
    background-position: center;
    background-size: cover;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 640px;
    padding: 34px;
    position: relative;
}

.login-brand-panel::after {
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    inset: 0;
    opacity: 0.26;
    position: absolute;
}

.login-brand-panel > * {
    position: relative;
    z-index: 1;
}

.login-brand-top {
    align-items: center;
    display: flex;
    gap: 13px;
}

.login-brand-top p {
    color: #9fc5ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.login-brand-top strong {
    display: block;
    font-size: 1rem;
}

.login-brand-mark {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    width: 48px;
}

.login-brand-mark img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.login-brand-copy h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 850;
    line-height: 0.98;
    margin-bottom: 18px;
}

.login-brand-copy p {
    color: #c7d9f7;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 440px;
}

.login-signal-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-signal-grid span {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #e8f1ff;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 9px;
    min-height: 44px;
    padding: 0 12px;
}

.login-signal-grid i {
    background: #39d98a;
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(57, 217, 138, 0.75);
    display: inline-block;
    height: 8px;
    width: 8px;
}

.login-form-panel {
    padding: 42px;
}

.login-form-panel .form-label {
    color: #27344a;
    font-weight: 700;
}

.login-form-panel .form-control {
    border-color: #d9e2ef;
    border-radius: 8px;
    min-height: 48px;
}

.login-form-panel .form-control:focus {
    border-color: #2f80ed;
    box-shadow: 0 0 0 0.22rem rgba(47, 128, 237, 0.16);
}

.login-submit {
    align-items: center;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.24);
    display: inline-flex;
    font-weight: 800;
    gap: 9px;
    justify-content: center;
    min-height: 50px;
}

.login-help {
    background: #f8fafc;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    padding: 14px;
}

.login-help .table {
    font-size: 0.9rem;
}

.login-help .btn-link {
    color: #0d6efd;
    text-decoration: none;
}

.login-help .btn-link:hover {
    text-decoration: underline;
}

.login-email-row {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.login-copy-email {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 30px;
    justify-content: center;
    width: 34px;
}

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

.page-title-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

.feature-help-btn {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.metric {
    padding: 20px;
}

.metric span {
    display: block;
    color: #65758b;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.metric strong {
    display: block;
    font-size: 1.45rem;
}

.form-panel,
.table-wrap {
    padding: 20px;
}

.table thead th {
    color: #526173;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.report-data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.report-data-table tbody tr + tr td {
    border-top: 3px solid rgba(96, 165, 250, 0.42);
}

.report-data-table tbody td {
    background-clip: padding-box;
}

.report-data-table .report-group-row td {
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.96));
    border-top: 4px solid rgba(30, 64, 175, 0.45);
    color: #12376c;
    font-size: 0.92rem;
    font-weight: 900;
}

.report-data-table .report-subtotal-row td {
    background: rgba(219, 234, 254, 0.72);
    color: #143b6d;
    font-weight: 800;
}

.report-data-table .report-total-row td {
    background: linear-gradient(90deg, rgba(191, 219, 254, 0.94), rgba(224, 242, 254, 0.94));
    border-top: 4px solid rgba(37, 99, 235, 0.5);
    color: #0f2f5f;
    font-weight: 900;
}

.rapbs-category-row td {
    background: rgba(226, 232, 240, 0.9) !important;
    color: #101827;
}

.rapbs-category-row td:first-child {
    box-shadow: inset 4px 0 0 rgba(71, 85, 105, 0.62);
}

#rapbsItemRows .table-primary td {
    background: rgba(219, 234, 254, 0.96) !important;
    color: #0f2f5f;
}

.rapbs-workspace {
    display: grid;
    gap: 16px;
    grid-template-columns: 260px minmax(0, 1fr);
}

.rapbs-tree-panel {
    background: rgba(248, 250, 252, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    align-self: start;
    padding: 14px;
}

.rapbs-org-tree,
.rapbs-tree-group,
.rapbs-tree-children {
    display: grid;
    gap: 6px;
}

.rapbs-tree-group + .rapbs-tree-group {
    margin-top: 8px;
}

.rapbs-tree-children {
    border-left: 1px solid rgba(148, 163, 184, 0.32);
    margin-left: 12px;
    padding-left: 10px;
}

.rapbs-tree-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    color: #172033;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-height: 38px;
    padding: 7px 9px;
    text-align: left;
    width: 100%;
}

.rapbs-tree-parent {
    font-weight: 800;
}

.rapbs-tree-unit {
    font-size: 0.92rem;
}

.rapbs-tree-item:hover,
.rapbs-tree-item.active {
    background: #eaf4ff;
    border-color: rgba(13, 110, 253, 0.42);
    color: #0f4f9f;
}

.rapbs-tree-item small {
    color: #64748b;
    flex: 0 0 auto;
    font-size: 0.72rem;
}

.rapbs-main-panel {
    min-width: 0;
}

.rapbs-excel-group-row td {
    border-top: 2px solid rgba(71, 85, 105, 0.28);
}

.rapbs-excel-detail-row td {
    background: rgba(255, 255, 255, 0.72);
}

.rapbs-excel-detail-row td:nth-child(2),
.rapbs-excel-group-row td:nth-child(2) {
    color: #111827;
}

.rapbs-add-action {
    align-items: center;
    display: inline-flex;
    gap: 4px;
    justify-content: center;
    min-width: 34px;
}

.rapbs-add-action span {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.journal-balance {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: flex-end;
    padding: 10px 12px;
}

.journal-entry-table {
    min-width: 820px;
}

.dashboard-chart {
    display: grid;
    gap: 12px;
}

.chart-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 64px minmax(160px, 1fr) 170px;
}

.chart-label,
.chart-values {
    color: #65758b;
    font-size: 0.82rem;
}

.chart-values {
    display: grid;
    gap: 2px;
    text-align: right;
}

.rental-step-tabs {
    background: #eef3fb;
    border: 1px solid #dbe5f3;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: thin;
}

.rental-step-tabs .nav-item {
    flex: 0 0 auto;
}

.rental-step-tabs .nav-link {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d7e2f0;
    border-radius: 8px;
    color: #24517f;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    min-height: 46px;
    padding: 8px 12px;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
}

.rental-step-tabs .nav-link span {
    align-items: center;
    background: #eaf2ff;
    border-radius: 8px;
    color: #0d6efd;
    display: inline-flex;
    font-size: 0.78rem;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.rental-step-tabs .nav-link i {
    color: #0d6efd;
    font-size: 1rem;
}

.rental-step-tabs .nav-link:hover {
    border-color: #9ec5fe;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.12);
    color: #0b3d91;
    transform: translateY(-1px);
}

.rental-step-tabs .nav-link.active {
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.24);
    color: #ffffff;
}

.rental-step-tabs .nav-link.active span {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.rental-step-tabs .nav-link.active i {
    color: #ffffff;
}

.rental-calendar-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rental-calendar-actions {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
}

.rental-calendar-title {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.rental-calendar-scroll {
    overflow-x: auto;
}

.rental-calendar-grid {
    background: #dbe5f3;
    border: 1px solid #dbe5f3;
    border-radius: 8px;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(7, minmax(124px, 1fr));
    min-width: 868px;
    overflow: hidden;
}

.rental-calendar-weekday {
    background: #f1f6ff;
    color: #526173;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 9px 10px;
    text-align: center;
    text-transform: uppercase;
}

.rental-calendar-cell {
    background: #ffffff;
    min-height: 118px;
    padding: 8px;
}

.rental-calendar-cell.is-muted {
    background: #f8fafc;
}

.rental-calendar-cell.has-event {
    background: #fbfdff;
}

.rental-calendar-day {
    color: #172033;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 6px;
    min-height: 18px;
}

.rental-calendar-events {
    display: grid;
    gap: 5px;
}

.rental-calendar-event {
    background: #edf5ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
    color: #12365f;
    display: block;
    padding: 6px 7px;
    text-align: left;
    width: 100%;
}

.rental-calendar-event strong,
.rental-calendar-event span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rental-calendar-event strong {
    font-size: 0.78rem;
}

.rental-calendar-event span {
    color: #526173;
    font-size: 0.72rem;
}

.rental-calendar-event.status-paid,
.rental-calendar-event.status-completed {
    background: #edfdf4;
    border-color: #b7e4c7;
    border-left-color: #198754;
}

.rental-calendar-event.status-dp {
    background: #ecfeff;
    border-color: #a5f3fc;
    border-left-color: #0891b2;
}

.rental-calendar-event.status-event {
    background: #fff8e6;
    border-color: #ffe0a3;
    border-left-color: #f59f00;
}

.rental-calendar-event.status-cancelled {
    background: #fff1f2;
    border-color: #fecdd3;
    border-left-color: #dc3545;
}

.rental-calendar-more {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 2px 4px;
}

.rental-calendar-list {
    display: grid;
    gap: 10px;
}

.rental-calendar-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 170px 1fr auto;
    padding: 12px 14px;
}

.rental-calendar-item strong,
.rental-calendar-item span {
    display: block;
}

.rental-calendar-item span {
    color: #64748b;
    font-size: 0.86rem;
}

.rental-timeline-list {
    display: grid;
    gap: 12px;
}

.rental-timeline-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d9e6f7;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.rental-timeline-card-head {
    align-items: flex-start;
    border-bottom: 1px solid #e7eef8;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 14px;
}

.rental-timeline-card-head strong {
    color: #172033;
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
}

.rental-timeline-card-head span {
    color: #64748b;
    display: block;
    font-size: 0.76rem;
    margin-top: 2px;
}

.rental-timeline-current {
    align-items: flex-end;
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
    white-space: nowrap;
}

.rental-timeline-steps {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 14px 12px;
    scroll-snap-type: x proximity;
}

.rental-timeline-step {
    background: #ffffff;
    border: 1px solid #e2ebf7;
    border-radius: 9px;
    display: grid;
    flex: 0 0 220px;
    grid-template-columns: 14px 1fr;
    min-height: 72px;
    padding: 9px 10px;
    position: relative;
    scroll-snap-align: start;
}

.rental-timeline-step:not(:last-child)::before {
    background: #b7d3f7;
    content: "";
    height: 2px;
    left: calc(100% - 2px);
    position: absolute;
    top: 16px;
    width: 14px;
}

.rental-timeline-step.is-latest .rental-timeline-dot {
    background: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.rental-timeline-step-body {
    min-width: 0;
    padding: 0 0 0 8px;
}

.rental-timeline-item {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 16px 1fr;
    padding: 12px 14px;
}

.rental-timeline-dot {
    background: #0d6efd;
    border: 2px solid #dbeafe;
    border-radius: 999px;
    height: 10px;
    margin-top: 4px;
    width: 10px;
}

.rental-timeline-head {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.rental-timeline-head strong {
    color: #172033;
    font-size: 0.95rem;
}

.rental-timeline-head span,
.rental-timeline-meta {
    color: #64748b;
    font-size: 0.82rem;
}

.rental-timeline-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.73rem;
    gap: 5px;
}

.rental-timeline-meta strong {
    color: #244161;
}

.rental-timeline-note {
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.35;
    margin-top: 2px;
    max-height: 2.75em;
    overflow: hidden;
}

.rental-timeline-status {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 4px;
}

.rental-timeline-status > span {
    color: #526173;
    font-size: 0.78rem;
    font-weight: 700;
}

.rental-timeline-status .badge {
    font-size: 0.72rem;
    line-height: 1;
    padding: 0.34em 0.55em;
}

.chart-bars {
    background: #edf2f7;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 5px;
}

.chart-bar {
    border-radius: 999px;
    height: 9px;
    min-width: 2px;
}

.chart-bar.income,
.legend-income {
    background: #198754;
}

.chart-bar.expense,
.legend-expense {
    background: #dc3545;
}

.chart-legend {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.chart-legend span {
    align-items: center;
    color: #526173;
    display: inline-flex;
    font-size: 0.86rem;
    gap: 6px;
}

.chart-legend i {
    border-radius: 999px;
    display: inline-block;
    height: 9px;
    width: 22px;
}

@media (max-width: 767.98px) {
    .app-content > .container,
    .app-content > .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .accounting-flow {
        padding: 7px 12px 6px;
    }

    .accounting-flow-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .accounting-flow-head strong {
        font-size: 0.8rem;
    }

    .accounting-flow-actions {
        width: 100%;
    }

    .accounting-flow-close {
        margin-left: auto;
    }

    .accounting-flow-track {
        margin-left: -2px;
        margin-right: -2px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .accounting-flow-step {
        min-height: 36px;
        padding: 5px 9px 5px 7px;
    }

    .flow-step-label {
        font-size: 0.76rem;
    }

    .accounting-flow-active-hint {
        font-size: 0.76rem;
        line-height: 1.25;
        padding: 6px 8px;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

    .chart-values {
        text-align: left;
    }

    .rental-step-tabs {
        margin-left: -2px;
        margin-right: -2px;
        padding: 6px;
    }

    .rental-step-tabs .nav-link {
        min-height: 42px;
        padding: 7px 10px;
    }

    .rental-calendar-head {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .rental-calendar-actions {
        display: grid;
        grid-template-columns: 42px 1fr 42px;
    }

    .rental-calendar-grid {
        grid-template-columns: repeat(7, 118px);
        min-width: 826px;
    }

    .rental-calendar-cell {
        min-height: 108px;
    }

    .rental-calendar-item {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .rental-timeline-head {
        flex-direction: column;
        gap: 2px;
    }

    .rental-timeline-card-head {
        flex-direction: column;
        gap: 8px;
    }

    .rental-timeline-current {
        align-items: flex-start;
        justify-items: start;
        text-align: left;
        white-space: normal;
    }

    .rental-timeline-steps {
        padding: 6px 12px 12px;
    }

    .rental-timeline-step {
        flex-basis: 190px;
    }
}

@media (max-width: 991.98px) {
    .auth-shell-modern {
        align-items: start;
        padding: 16px;
    }

    .login-panel-modern {
        grid-template-columns: 1fr;
        width: min(100%, 620px);
    }

    .login-brand-panel {
        min-height: 260px;
        padding: 24px;
    }

    .login-brand-copy h1 {
        font-size: 2rem;
        line-height: 1.06;
    }

    .login-brand-copy p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .login-signal-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .login-signal-grid span {
        justify-content: center;
        min-height: 38px;
        padding: 0 8px;
    }

    .login-form-panel {
        padding: 28px;
    }
}

@media (max-width: 575.98px) {
    .login-brand-panel {
        gap: 18px;
        min-height: auto;
    }

    .login-brand-copy h1 {
        font-size: 1.62rem;
    }

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

    .login-form-panel {
        padding: 22px;
    }

    .login-email-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 1199.98px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .mobile-topbar {
        align-items: center;
        background: #ffffff;
        border-bottom: 1px solid #e1e7f0;
        box-shadow: 0 6px 18px rgba(23, 32, 51, 0.06);
        display: flex;
        height: 58px;
        justify-content: space-between;
        left: 0;
        padding: 0 14px;
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .sidebar-toggle {
        background: #e8f1ff;
        color: #16437d;
        font-size: 1.25rem;
    }

.mobile-brand {
        align-items: center;
        color: #172033;
        display: inline-flex;
        gap: 8px;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-brand img {
        height: 32px;
        width: 32px;
    }

    .mobile-user {
        background: #f1f5fb;
        color: #526173;
        text-decoration: none;
    }

    .accounting-flow {
        top: 58px;
    }

    .app-sidebar {
        box-shadow: 16px 0 32px rgba(13, 28, 51, 0.25);
        flex-basis: 270px;
        height: 100dvh;
        max-width: calc(100vw - 36px);
        position: fixed;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-close {
        display: inline-flex;
    }

    .sidebar-minimize {
        display: none;
    }

    body.sidebar-minimized .app-sidebar {
        flex-basis: 270px;
        width: 270px;
    }

    body.sidebar-minimized .brand-text,
    body.sidebar-minimized .sidebar-user .min-w-0,
    body.sidebar-minimized .sidebar-link span,
    body.sidebar-minimized .sidebar-group-toggle span span,
    body.sidebar-minimized .sidebar-sublink span,
    body.sidebar-minimized .logout-link span,
    body.sidebar-minimized .group-chevron {
        display: initial;
    }

    body.sidebar-minimized .sidebar-group-toggle span,
    body.sidebar-minimized .sidebar-brand strong,
    body.sidebar-minimized .sidebar-brand small,
    body.sidebar-minimized .sidebar-link span,
    body.sidebar-minimized .sidebar-sublink span,
    body.sidebar-minimized .logout-link span {
        display: inline-flex;
    }

    body.sidebar-minimized .sidebar-user {
        justify-content: flex-start;
        margin: 6px 16px 16px;
        padding: 12px;
    }

    body.sidebar-minimized .sidebar-link,
    body.sidebar-minimized .sidebar-group-toggle,
    body.sidebar-minimized .logout-link,
    body.sidebar-minimized .sidebar-sublink {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
        min-height: 42px;
        padding-left: 12px;
        padding-right: 12px;
        width: auto;
    }

    body.sidebar-minimized .sidebar-group-toggle {
        font-size: 1rem;
    }

    body.sidebar-minimized .sidebar-group-toggle > span {
        gap: 10px;
    }

    body.sidebar-minimized .sidebar-link i,
    body.sidebar-minimized .sidebar-group-toggle i,
    body.sidebar-minimized .sidebar-sublink i,
    body.sidebar-minimized .logout-link i {
        font-size: 1rem;
    }

    body.sidebar-minimized .sidebar-subnav {
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        display: grid;
        margin: 2px 0 8px 24px;
        padding-left: 9px;
    }

    body.sidebar-minimized .sidebar-flyout {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        left: auto;
        min-width: 0;
        padding: 0;
        position: static;
        z-index: auto;
    }

    body.sidebar-minimized .sidebar-flyout:not(.show) {
        display: none;
    }

    body.sidebar-minimized .sidebar-flyout::before {
        display: none;
    }

    body.sidebar-minimized .sidebar-sublink {
        min-height: 38px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .sidebar-backdrop {
        background: rgba(13, 28, 51, 0.48);
        inset: 0;
        position: fixed;
        z-index: 1035;
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .app-shell {
        display: block;
        min-height: calc(100vh - 58px);
    }
}

.table-wrap .table td,
.table-wrap .table th {
    vertical-align: middle;
}

.form-panel input[readonly] {
    background: #f8fafc;
    color: #64748b;
}

.transaction-items-box {
    background: rgba(248, 251, 255, 0.82);
    border: 1px solid rgba(157, 190, 236, 0.46);
    border-radius: 8px;
    padding: 14px;
}

.transaction-items-table th {
    color: #475569;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.transaction-items-table .form-control,
.transaction-items-table .form-select {
    min-height: 40px;
}

.transaction-items-total {
    background: #eef6ff;
    border-radius: 8px;
    color: #0f3f8a;
    font-weight: 800;
    padding: 10px 12px;
}

.transaction-form-modal .modal-content {
    border: 1px solid rgba(157, 190, 236, 0.45);
    border-radius: 14px;
}

.modal-open .app-content {
    animation: none;
    transform: none !important;
}

.modal-backdrop {
    z-index: 1050;
}

.modal {
    z-index: 1060;
}

.transaction-form-modal .modal-body {
    background: #f6f9ff;
}

.modal-form-panel {
    margin: 0;
}

.transaction-table-filters {
    align-items: end;
    background: rgba(247, 251, 255, 0.72);
    border: 1px solid rgba(190, 211, 239, 0.48);
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.8fr) minmax(180px, 0.8fr) minmax(140px, 0.6fr);
    margin-bottom: 16px;
    padding: 14px;
}

.transaction-table-filters .form-label {
    color: #53657d;
    font-weight: 800;
    margin-bottom: 5px;
}

.transaction-list-wrap {
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    padding: 20px 22px;
    width: 100%;
}

.transaction-list-wrap > .d-flex:first-child {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    margin-bottom: 16px !important;
    padding-bottom: 12px;
}

.transaction-list-wrap .table-responsive {
    border: 1px solid rgba(190, 211, 239, 0.62);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    overflow: auto;
}

.transaction-table-filters > div:first-child:nth-last-child(3) {
    grid-column: span 2;
}

.transaction-data-table th {
    background: rgba(241, 247, 255, 0.86);
    color: #475569;
    font-size: 0.78rem;
    letter-spacing: 0;
    padding: 12px 14px;
    position: sticky;
    top: 0;
    text-transform: uppercase;
    z-index: 1;
}

.transaction-data-table td {
    border-color: rgba(203, 213, 225, 0.72);
    padding: 11px 14px;
}

.transaction-data-table {
    margin-bottom: 0;
    min-width: 980px;
}

.transaction-data-table th:nth-child(1),
.transaction-data-table td:nth-child(1) {
    width: 120px;
}

.transaction-data-table th:nth-child(2),
.transaction-data-table td:nth-child(2) {
    width: 190px;
}

.transaction-data-table th:nth-child(3),
.transaction-data-table td:nth-child(3) {
    width: 160px;
}

.transaction-data-table th:nth-child(4),
.transaction-data-table td:nth-child(4) {
    min-width: 240px;
}

.transaction-data-table th:nth-child(5),
.transaction-data-table td:nth-child(5) {
    width: 190px;
}

.transaction-data-table th:nth-child(6),
.transaction-data-table td:nth-child(6) {
    width: 150px;
}

.transaction-head-row td {
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.88), rgba(248, 251, 255, 0.9));
    border-top: 8px solid rgba(246, 249, 255, 0.96);
    color: #0f172a;
    font-size: 0.96rem;
    vertical-align: middle;
}

.transaction-detail-row td {
    background: rgba(255, 255, 255, 0.84);
    padding-bottom: 8px;
    padding-top: 8px;
}

.transaction-row-label {
    color: #0f172a;
    vertical-align: middle;
}

.transaction-detail-name {
    color: #53657d;
    font-size: 0.95rem;
    text-align: center;
}

.transaction-detail-amount {
    color: #0f172a;
    font-size: 0.95rem;
}

.transaction-total-row td {
    background: rgba(244, 249, 255, 0.96);
    border-bottom: 8px solid rgba(246, 249, 255, 0.96);
    color: #0f172a;
    padding-bottom: 11px;
    padding-top: 11px;
}

.transaction-total-row td:nth-child(4),
.transaction-total-row td:nth-child(6) {
    color: #0b3d83;
    font-size: 1rem;
}

.business-ai-panel {
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.86), rgba(236, 253, 245, 0.72));
    border: 1px solid rgba(147, 197, 253, 0.48);
    border-radius: 12px;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
}

.business-ai-icon {
    align-items: center;
    background: #e8f1ff;
    border-radius: 10px;
    color: #0d6efd;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
}

.badge {
    font-weight: 700;
}

.form-help-panel {
    align-items: flex-start;
    background: #f8fbff;
    border: 1px solid #d7e6ff;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
}

.form-help-icon {
    align-items: center;
    background: #e8f1ff;
    border-radius: 8px;
    color: #0d6efd;
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.form-help-title {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 2px;
}

.form-help-panel p {
    color: #475569;
    margin: 0 0 6px;
}

.form-help-panel ul {
    color: #334155;
    margin: 0;
    padding-left: 18px;
}

.help-search-panel,
.help-section {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    padding: 20px;
}

.help-search-panel {
    align-items: center;
    display: flex;
    gap: 14px;
}

.help-search-icon {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #0d6efd;
    display: flex;
    flex: 0 0 46px;
    font-size: 1.25rem;
    height: 46px;
    justify-content: center;
}

.help-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.help-card {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    color: inherit;
    display: block;
    padding: 16px;
    text-decoration: none;
}

.help-card:hover {
    border-color: #9ec5fe;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.08);
}

.help-card-type {
    color: #0d6efd;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.help-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.help-card p,
.help-card li,
.help-empty {
    color: #475569;
}

.help-card ul {
    margin: 0;
    padding-left: 18px;
}

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

.help-flow div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.help-flow strong,
.help-flow span {
    display: block;
}

.help-flow span {
    color: #475569;
    margin-top: 4px;
}

.help-accordion .accordion-button {
    font-weight: 700;
}

.module-summary {
    background: #f8fbff;
    border-left: 4px solid #0d6efd;
    color: #334155;
    font-weight: 600;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.module-guide-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.module-guide-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
}

.module-guide-card h4 {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.module-guide-card ol,
.module-guide-card ul {
    color: #475569;
    margin: 0;
    padding-left: 20px;
}

.module-guide-card li + li {
    margin-top: 5px;
}

.module-guide-warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.module-guide-warning h4 {
    color: #7c2d12;
}

.module-role-note {
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #0f3f7a;
    display: flex;
    gap: 10px;
    padding: 12px 14px;
}

.module-role-note strong {
    flex: 0 0 auto;
}

.faq-category {
    background: #e8f1ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #0d47a1;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    margin-right: 8px;
    padding: 3px 8px;
    text-transform: uppercase;
    vertical-align: 1px;
}

.faq-summary {
    background: #f8fbff;
    border-left: 4px solid #0d6efd;
    color: #334155;
    font-weight: 600;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.faq-answer {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 14px;
}

.faq-structured {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.faq-type-card {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 14px;
}

.faq-type-card h4 {
    color: #0f3f7a;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.faq-type-card dl,
.faq-type-card dd {
    margin: 0;
}

.faq-type-card dl {
    display: grid;
    gap: 8px;
}

.faq-type-card dt {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.faq-type-card dd {
    color: #475569;
    line-height: 1.45;
}

.faq-note {
    align-items: flex-start;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #7c2d12;
    display: flex;
    gap: 10px;
    padding: 12px 14px;
}

.faq-note strong {
    flex: 0 0 auto;
}

.faq-detail-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 12px;
    padding: 14px 16px;
}

.faq-detail-block h4 {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.faq-detail-block ol,
.faq-detail-block ul {
    color: #475569;
    margin: 0;
    padding-left: 20px;
}

.faq-detail-block li + li {
    margin-top: 5px;
}

.help-empty {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    grid-column: 1 / -1;
    padding: 18px;
}

/* Liquid glass theme layer */
:root {
    --glass-surface: rgba(255, 255, 255, 0.68);
    --glass-surface-strong: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.72);
    --glass-border-soft: rgba(148, 163, 184, 0.28);
    --glass-shadow: 0 22px 54px rgba(28, 54, 91, 0.13);
    --glass-shadow-hover: 0 28px 70px rgba(28, 54, 91, 0.18);
    --glass-blue: #1769ff;
    --glass-cyan: #1ec8ff;
    --glass-mint: #8fd3ff;
    --glass-rose: #ff7aa8;
    --glass-text: #101828;
    --glass-muted: #5f6f86;
    --motion-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 12% 14%, rgba(30, 200, 255, 0.20), transparent 31vw),
        radial-gradient(circle at 86% 6%, rgba(48, 215, 159, 0.18), transparent 28vw),
        radial-gradient(circle at 72% 92%, rgba(255, 122, 168, 0.14), transparent 34vw),
        linear-gradient(135deg, #f7fbff 0%, #eef6fb 38%, #f8fbf7 70%, #fff7fa 100%);
    color: var(--glass-text);
}

body::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.30) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    inset: 0;
    opacity: 0.38;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.app-content {
    animation: liquidPageIn 0.56s var(--motion-smooth) both;
}

.app-sidebar {
    background:
        linear-gradient(180deg, rgba(16, 50, 103, 0.82), rgba(11, 31, 61, 0.90)),
        radial-gradient(circle at 24% 0%, rgba(30, 200, 255, 0.22), transparent 34%),
        radial-gradient(circle at 95% 32%, rgba(48, 215, 159, 0.14), transparent 28%);
    backdrop-filter: blur(24px) saturate(150%);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 20px 0 60px rgba(12, 27, 51, 0.24);
    transition: flex-basis 0.38s var(--motion-smooth), width 0.38s var(--motion-smooth), transform 0.42s var(--motion-smooth), box-shadow 0.34s var(--motion-smooth);
}

.brand-mark,
.login-brand-mark,
.user-avatar,
.sidebar-minimize,
.sidebar-close,
.sidebar-toggle,
.mobile-user,
.feature-help-btn {
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 24px rgba(13, 45, 86, 0.12);
}

.sidebar-user,
.logout-link,
.sidebar-link,
.sidebar-group-toggle,
.sidebar-sublink {
    position: relative;
    transition: background 0.34s var(--motion-smooth), border-color 0.34s var(--motion-smooth), box-shadow 0.34s var(--motion-smooth), color 0.28s ease, transform 0.34s var(--motion-smooth);
}

.sidebar-user {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 34px rgba(8, 22, 48, 0.18);
}

.sidebar-link:hover,
.sidebar-group-toggle:hover,
.sidebar-sublink:hover,
.logout-link:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px rgba(8, 22, 48, 0.14);
    transform: translateX(3px);
}

.sidebar-link.active,
.sidebar-sublink.active,
.sidebar-group-toggle.active {
    background:
        linear-gradient(135deg, rgba(23, 105, 255, 0.94), rgba(30, 200, 255, 0.78)),
        rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 36px rgba(23, 105, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.30);
    color: #ffffff;
}

.sidebar-subnav,
body.sidebar-minimized .sidebar-subnav {
    border-left-color: rgba(255, 255, 255, 0.20);
}

.mobile-topbar,
.accounting-flow,
.login-panel,
.login-panel-modern,
.form-panel,
.table-wrap,
.metric,
.summary-card,
.help-card,
.module-guide-card,
.faq-type-card,
.faq-detail-block,
.journal-balance,
.rental-step-tabs,
.modal-content {
    background: var(--glass-surface);
    backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.form-panel,
.table-wrap,
.metric,
.summary-card,
.help-card,
.module-guide-card,
.faq-type-card,
.faq-detail-block {
    position: relative;
    transition: border-color 0.34s var(--motion-smooth), box-shadow 0.34s var(--motion-smooth), transform 0.34s var(--motion-smooth), background 0.34s var(--motion-smooth);
}

.form-panel::before,
.table-wrap::before,
.metric::before,
.summary-card::before,
.help-card::before,
.module-guide-card::before,
.faq-type-card::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0));
    border-radius: inherit;
    content: "";
    height: 1px;
    inset: 0 12px auto;
    pointer-events: none;
    position: absolute;
}

.form-panel:hover,
.table-wrap:hover,
.metric:hover,
.summary-card:hover,
.help-card:hover,
.module-guide-card:hover,
.faq-type-card:hover {
    background: var(--glass-surface-strong);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-1px);
}

.page-heading {
    animation: liquidRise 0.48s var(--motion-smooth) both;
}

.page-heading h1,
.page-heading .h3 {
    color: #0b1f3b;
}

.accounting-flow {
    border-bottom-color: rgba(255, 255, 255, 0.55);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.accounting-flow-progress,
.accounting-flow-active-hint {
    background: rgba(239, 246, 255, 0.68);
    backdrop-filter: blur(18px) saturate(160%);
    border-color: rgba(147, 197, 253, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.accounting-flow-track,
.rental-step-tabs {
    scroll-behavior: smooth;
}

.accounting-flow-step,
.rental-step-tabs .nav-link {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 10px 22px rgba(30, 64, 111, 0.08);
    overflow: hidden;
    position: relative;
    transition: background 0.36s var(--motion-smooth), border-color 0.36s var(--motion-smooth), box-shadow 0.36s var(--motion-smooth), color 0.28s ease, transform 0.36s var(--motion-smooth);
}

.accounting-flow-step::after,
.rental-step-tabs .nav-link::after,
.btn::after {
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, transparent 70%);
    content: "";
    inset: -45% auto -45% -80%;
    pointer-events: none;
    position: absolute;
    transform: skewX(-18deg);
    transition: left 0.62s var(--motion-smooth);
    width: 58%;
}

.accounting-flow-step:hover,
.rental-step-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(30, 200, 255, 0.52);
    box-shadow: 0 18px 42px rgba(23, 105, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.70);
    transform: translateY(-2px);
}

.accounting-flow-step:hover::after,
.rental-step-tabs .nav-link:hover::after,
.btn:hover::after {
    left: 122%;
}

.accounting-flow-step.active,
.rental-step-tabs .nav-link.active {
    background:
        linear-gradient(135deg, rgba(23, 105, 255, 0.94), rgba(30, 200, 255, 0.84) 55%, rgba(48, 215, 159, 0.78)),
        rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.74);
    box-shadow: 0 20px 48px rgba(23, 105, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
    color: #ffffff;
}

.accounting-flow {
    padding: 8px 24px 7px;
}

.accounting-flow-head {
    gap: 10px;
    margin-bottom: 6px;
}

.accounting-flow-eyebrow {
    font-size: 0.66rem;
    line-height: 1;
}

.accounting-flow-head strong {
    font-size: 0.86rem;
    line-height: 1.2;
}

.accounting-flow-progress {
    font-size: 0.72rem;
    padding: 4px 9px;
}

.accounting-flow-track {
    gap: 7px;
    padding-bottom: 1px;
}

.accounting-flow-step {
    border-radius: 8px;
    gap: 7px;
    min-height: 38px;
    padding: 6px 10px 6px 8px;
}

.flow-step-number {
    border-radius: 8px;
    flex-basis: 24px;
    font-size: 0.74rem;
    height: 24px;
    width: 24px;
}

.flow-step-stage {
    font-size: 0.62rem;
    margin-bottom: 3px;
}

.flow-step-label {
    font-size: 0.78rem;
    gap: 5px;
}

.accounting-flow-active-hint {
    align-items: center;
    font-size: 0.8rem;
    gap: 7px;
    line-height: 1.25;
    margin-top: 6px;
    padding: 7px 10px;
}

.accounting-flow-active-hint i {
    margin-top: 0;
}

.flow-step-number,
.rental-step-tabs .nav-link span {
    background: rgba(232, 241, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.36);
    --bs-table-hover-bg: rgba(232, 244, 255, 0.68);
}

.table > :not(caption) > * > * {
    border-bottom-color: rgba(148, 163, 184, 0.22);
    transition: background-color 0.28s var(--motion-smooth), color 0.28s ease;
}

.table tbody tr {
    transition: background-color 0.28s var(--motion-smooth), box-shadow 0.28s var(--motion-smooth), transform 0.28s var(--motion-smooth);
}

.table tbody tr:hover {
    background: rgba(236, 248, 255, 0.70);
    box-shadow: inset 3px 0 0 rgba(23, 105, 255, 0.56);
}

.form-control,
.form-select,
.input-group-text {
    background-color: rgba(255, 255, 255, 0.66);
    border-color: rgba(148, 163, 184, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
    transition: background-color 0.28s var(--motion-smooth), border-color 0.28s var(--motion-smooth), box-shadow 0.28s var(--motion-smooth), transform 0.28s var(--motion-smooth);
}

.form-control:hover,
.form-select:hover {
    background-color: rgba(255, 255, 255, 0.82);
    border-color: rgba(23, 105, 255, 0.34);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.92);
    border-color: rgba(30, 200, 255, 0.72);
    box-shadow: 0 0 0 0.22rem rgba(30, 200, 255, 0.17), 0 12px 24px rgba(23, 105, 255, 0.10);
    transform: translateY(-1px);
}

.form-panel [class*="col-"]:focus-within .form-label,
.login-form-panel div:focus-within > .form-label,
.modal-body [class*="col-"]:focus-within .form-label {
    color: #0b63f6;
    text-shadow: 0 0 18px rgba(30, 200, 255, 0.26);
    transition: color 0.34s var(--motion-smooth), text-shadow 0.34s var(--motion-smooth);
}

.form-control,
.form-select {
    background-image:
        linear-gradient(115deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.74) 48%, transparent 58%, transparent 100%);
    background-position: -160% 0;
    background-repeat: no-repeat;
    background-size: 82% 100%;
}

.form-control:focus,
.form-select:focus {
    animation: liquidInputSweep 0.86s var(--motion-smooth), liquidInputFocusPulse 1.7s var(--motion-smooth) infinite alternate;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: rgba(48, 215, 159, 0.72);
    box-shadow: 0 0 0 0.18rem rgba(48, 215, 159, 0.13);
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    box-shadow: 0 0 0 0.22rem rgba(48, 215, 159, 0.18), 0 12px 26px rgba(48, 215, 159, 0.10);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: rgba(255, 122, 168, 0.82);
    box-shadow: 0 0 0 0.18rem rgba(255, 122, 168, 0.13);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 0.22rem rgba(255, 122, 168, 0.18), 0 12px 26px rgba(255, 122, 168, 0.10);
}

.btn {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: background 0.32s var(--motion-smooth), border-color 0.32s var(--motion-smooth), box-shadow 0.32s var(--motion-smooth), color 0.24s ease, transform 0.32s var(--motion-smooth);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--glass-blue), var(--glass-cyan));
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 14px 30px rgba(23, 105, 255, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #0f5bf2, #20c7fb 58%, #30d79f);
    border-color: rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 38px rgba(23, 105, 255, 0.28);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(12px) saturate(160%);
    border-color: rgba(148, 163, 184, 0.34);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background: rgba(230, 244, 255, 0.88);
    border-color: rgba(23, 105, 255, 0.48);
    color: #0b55d9;
}

.badge {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

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

.collapse,
.collapsing,
.tab-pane {
    transition: height 0.42s var(--motion-smooth), opacity 0.34s var(--motion-smooth), transform 0.34s var(--motion-smooth);
}

.tab-pane.active {
    animation: liquidRise 0.42s var(--motion-smooth) both;
}

body.liquid-navigating .app-content {
    opacity: 0.76;
    transform: translateY(8px) scale(0.996);
    transition: opacity 0.22s var(--motion-smooth), transform 0.22s var(--motion-smooth);
}

.liquid-clicked {
    animation: liquidPulse 0.58s var(--motion-smooth);
}

@keyframes liquidPageIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.996);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes liquidRise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes liquidPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 200, 255, 0.34), var(--glass-shadow);
    }
    100% {
        box-shadow: 0 0 0 16px rgba(30, 200, 255, 0), var(--glass-shadow);
    }
}

@keyframes liquidInputSweep {
    0% {
        background-position: -180% 0;
    }
    100% {
        background-position: 180% 0;
    }
}

@keyframes liquidInputFocusPulse {
    0% {
        box-shadow: 0 0 0 0.18rem rgba(30, 200, 255, 0.13), 0 10px 24px rgba(23, 105, 255, 0.08);
    }
    100% {
        box-shadow: 0 0 0 0.26rem rgba(30, 200, 255, 0.20), 0 16px 34px rgba(23, 105, 255, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1199.98px) {
    .accounting-flow {
        top: 58px;
    }
}

.auth-shell-modern {
    background:
        linear-gradient(135deg, #06142d 0%, #0a2147 38%, #14376f 68%, #d9e9ff 100%);
    overflow: hidden;
    position: relative;
}

.auth-shell-modern::before {
    background:
        linear-gradient(90deg, rgba(180, 217, 255, 0.16) 1px, transparent 1px),
        linear-gradient(rgba(180, 217, 255, 0.14) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    inset: 0;
    opacity: 0.45;
    pointer-events: none;
    position: absolute;
}

.auth-shell-modern .login-panel-modern {
    animation: loginGlassOpen 0.72s var(--motion-smooth) both;
    background: rgba(239, 247, 255, 0.72);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 18px;
    box-shadow: 0 34px 96px rgba(2, 15, 38, 0.34), 0 0 42px rgba(87, 168, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.68);
    grid-template-columns: minmax(250px, 0.78fr) minmax(320px, 0.94fr);
    max-height: calc(100vh - 72px);
    position: relative;
    width: min(100%, 900px);
    z-index: 1;
}

.auth-shell-modern .login-brand-panel {
    background:
        linear-gradient(180deg, rgba(4, 18, 42, 0.78), rgba(6, 25, 57, 0.94)),
        radial-gradient(circle at 20% 10%, rgba(87, 168, 255, 0.34), transparent 34%),
        radial-gradient(circle at 82% 70%, rgba(185, 225, 255, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(2, 12, 30, 0.82), rgba(12, 50, 111, 0.88)),
        url("../img/app-icon-source.png");
    background-position: center;
    background-size: cover;
    min-height: 440px;
    padding: 26px;
}

.auth-shell-modern .login-brand-panel::after {
    background:
        linear-gradient(rgba(180, 217, 255, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 217, 255, 0.10) 1px, transparent 1px),
        linear-gradient(115deg, transparent 8%, rgba(255, 255, 255, 0.18) 48%, transparent 58%);
    opacity: 0.34;
}

.auth-shell-modern .login-brand-copy {
    animation: loginSoftRise 0.72s var(--motion-smooth) 0.08s both;
}

.auth-shell-modern .login-brand-copy h1 {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
    line-height: 1;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28), 0 0 34px rgba(143, 211, 255, 0.22);
}

.auth-shell-modern .login-brand-copy p {
    color: rgba(232, 241, 255, 0.84);
    line-height: 1.6;
}

.auth-shell-modern .login-signal-grid span,
.auth-shell-modern .login-brand-mark {
    background: rgba(180, 217, 255, 0.14);
    backdrop-filter: blur(18px) saturate(160%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 14px 34px rgba(5, 20, 45, 0.18), 0 0 22px rgba(87, 168, 255, 0.10);
}

.auth-shell-modern .login-brand-mark {
    height: 42px;
    width: 42px;
}

.auth-shell-modern .login-signal-grid span {
    min-height: 38px;
}

.auth-shell-modern .login-signal-grid i {
    background: #7fd3ff;
    box-shadow: 0 0 16px rgba(127, 211, 255, 0.88), 0 0 30px rgba(87, 168, 255, 0.34);
}

.auth-shell-modern .login-form-panel {
    animation: loginSoftRise 0.72s var(--motion-smooth) 0.16s both;
    padding: 32px;
}

.auth-shell-modern .login-form-panel .form-control {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(160%);
    border-color: rgba(148, 163, 184, 0.30);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
    min-height: 42px;
}

.auth-shell-modern .login-form-panel .form-control:focus {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(30, 200, 255, 0.72);
    box-shadow: 0 0 0 0.22rem rgba(30, 200, 255, 0.18), 0 16px 34px rgba(23, 105, 255, 0.12);
}

.login-demo-entry .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
}

.login-demo-modal .modal-content {
    animation: loginModalOpen 0.42s var(--motion-smooth) both;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(16, 42, 84, 0.18);
}

.login-demo-modal .modal-header {
    border-bottom-color: rgba(148, 163, 184, 0.22);
    padding: 18px 20px;
}

.login-demo-modal .modal-body {
    padding: 18px 20px 20px;
}

.login-demo-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-demo-account {
    align-items: center;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    color: #14233a;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 66px;
    padding: 12px 14px;
    text-align: left;
    transition: background 0.32s var(--motion-smooth), border-color 0.32s var(--motion-smooth), box-shadow 0.32s var(--motion-smooth), transform 0.32s var(--motion-smooth);
    width: 100%;
}

.login-demo-account:hover,
.login-demo-account:focus {
    background: rgba(239, 248, 255, 0.92);
    border-color: rgba(23, 105, 255, 0.42);
    box-shadow: 0 16px 36px rgba(23, 105, 255, 0.14);
    transform: translateY(-2px);
}

.login-demo-account strong,
.login-demo-account small {
    display: block;
}

.login-demo-account strong {
    font-size: 0.92rem;
}

.login-demo-account small {
    color: #0d6efd;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.login-demo-account i {
    color: #1769ff;
    flex: 0 0 auto;
    font-size: 1.25rem;
}

.login-transition-page {
    align-items: center;
    display: grid;
    min-height: 100dvh;
    place-items: center;
    transition: opacity 0.42s var(--motion-smooth), transform 0.42s var(--motion-smooth), filter 0.42s var(--motion-smooth);
}

.login-success-shell {
    display: grid;
    padding: 20px;
    place-items: center;
    position: relative;
    width: 100%;
    z-index: 1;
}

.login-success-card {
    animation: loginSuccessOpen 0.72s var(--motion-smooth) both;
    background: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(16, 42, 84, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.62);
    max-width: 420px;
    overflow: hidden;
    padding: 34px;
    position: relative;
    text-align: center;
    width: min(100%, 420px);
}

.login-success-card::before {
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.78), transparent);
    content: "";
    height: 160%;
    left: -80%;
    position: absolute;
    top: -30%;
    transform: rotate(12deg);
    width: 46%;
    animation: loginSuccessSweep 1.18s var(--motion-smooth) 0.12s both;
}

.login-success-mark {
    align-items: center;
    animation: loginSuccessMark 0.72s var(--motion-smooth) 0.18s both;
    background: linear-gradient(135deg, var(--glass-blue), var(--glass-cyan) 58%, var(--glass-mint));
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(23, 105, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    color: #ffffff;
    display: inline-flex;
    font-size: 2rem;
    height: 70px;
    justify-content: center;
    margin-bottom: 18px;
    width: 70px;
}

.login-success-card h1 {
    color: #0b1f3b;
    font-size: 1.7rem;
    font-weight: 850;
    margin-bottom: 8px;
}

.login-success-loader {
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    height: 8px;
    margin-top: 24px;
    overflow: hidden;
}

.login-success-loader span {
    animation: loginSuccessLoad 1.05s var(--motion-smooth) both;
    background: linear-gradient(90deg, var(--glass-blue), var(--glass-cyan), var(--glass-mint));
    border-radius: inherit;
    display: block;
    height: 100%;
    width: 0;
}

.login-transition-page.login-transition-out {
    filter: blur(2px);
    opacity: 0;
    transform: translateY(-8px) scale(1.012);
}

@keyframes loginGlassOpen {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.975);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loginSoftRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loginModalOpen {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loginSuccessOpen {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loginSuccessMark {
    from {
        opacity: 0;
        transform: scale(0.72) rotate(-8deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes loginSuccessSweep {
    from {
        left: -86%;
    }
    to {
        left: 128%;
    }
}

@keyframes loginSuccessLoad {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .auth-shell-modern {
        align-items: start;
        min-height: 100dvh;
        overflow-y: auto;
        padding: 16px;
    }

    .auth-shell-modern .login-panel-modern {
        grid-template-columns: 1fr;
        max-height: none;
        width: min(100%, 620px);
    }

    .auth-shell-modern .login-brand-panel {
        gap: 22px;
        min-height: auto;
        padding: 24px;
    }

    .auth-shell-modern .login-brand-copy h1 {
        font-size: 2rem;
    }

    .auth-shell-modern .login-form-panel {
        padding: 28px;
    }

    .login-demo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .auth-shell-modern {
        padding: 10px;
    }

    .auth-shell-modern .login-panel-modern,
    .login-demo-modal .modal-content {
        border-radius: 14px;
    }

    .auth-shell-modern .login-brand-panel {
        padding: 20px;
    }

    .auth-shell-modern .login-brand-copy h1 {
        font-size: 1.62rem;
    }

    .auth-shell-modern .login-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-shell-modern .login-form-panel {
        padding: 22px;
    }
}

@media (max-width: 767.98px) {
    .page-heading {
        gap: 12px;
    }

    .form-panel,
    .table-wrap {
        border-radius: 8px;
        margin-left: -2px;
        margin-right: -2px;
    }

    .form-help-panel,
    .help-search-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .transaction-form-modal .modal-dialog {
        margin: 8px;
    }

    .transaction-table-filters {
        grid-template-columns: 1fr;
    }

    .transaction-table-filters > div:first-child:nth-last-child(3) {
        grid-column: auto;
    }

    .transaction-items-table {
        min-width: 720px;
    }

    .metric strong {
        font-size: 1.05rem;
        overflow-wrap: anywhere;
    }

    .rapbs-workspace {
        grid-template-columns: 1fr;
    }
}

@media print {
    .app-sidebar,
    .accounting-flow,
    .mobile-topbar,
    .sidebar-backdrop,
    .btn,
    .nav-tabs,
    .form-panel {
        display: none !important;
    }

    .app-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .table-wrap {
        border: 0;
        box-shadow: none;
    }
}

.master-coa-table .coa-row-header {
    background: #f1f7ff;
}

.master-coa-table .coa-row-header td {
    border-top-color: #cfe3ff;
}

.master-coa-table .coa-code {
    align-items: center;
    display: inline-flex;
    font-variant-numeric: tabular-nums;
    gap: 2px;
    white-space: nowrap;
}

.master-coa-table .coa-code-header,
.master-coa-table .coa-name-header > span {
    font-weight: 700;
}

.master-coa-table .coa-code-posting {
    color: #475569;
}

.master-coa-table .coa-name-wrap {
    padding-left: var(--coa-indent, 0);
    position: relative;
}

.master-coa-table .coa-name-wrap::before {
    border-left: 2px solid #d9e2ef;
    content: "";
    display: none;
    height: 100%;
    left: calc(var(--coa-indent, 0) - 10px);
    position: absolute;
    top: 0;
}

.master-coa-table .coa-name-posting::before {
    display: block;
}

.master-inline-account-form {
    display: none !important;
}
