:root {
    --ink-950: #0b1220;
    --ink-900: #101b2d;
    --ink-800: #19283f;
    --ink-700: #34445e;
    --ink-500: #66758c;
    --ink-300: #c5cfdb;
    --ink-200: #dbe3ec;
    --ink-100: #edf2f7;
    --ink-50: #f7f9fc;
    --surface: #ffffff;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #14b8a6;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --sidebar-width: 264px;
    --sidebar-collapsed: 84px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 8px 24px rgba(11, 18, 32, .05);
    --shadow-md: 0 18px 45px rgba(11, 18, 32, .12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--ink-50);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink-900);
    background:
        radial-gradient(circle at 95% 0, rgba(37, 99, 235, .08), transparent 28rem),
        var(--ink-50);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--primary-dark);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 25% -10%, rgba(20, 184, 166, .24), transparent 18rem),
        linear-gradient(180deg, var(--ink-900), var(--ink-950));
    border-right: 1px solid rgba(255, 255, 255, .08);
    transition: width .24s ease, transform .24s ease;
}

.sidebar-brand {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--accent));
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, .28);
}

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

.brand-copy {
    min-width: 0;
    display: grid;
}

.brand-copy strong {
    overflow: hidden;
    font-size: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.brand-copy span {
    color: rgba(255, 255, 255, .52);
    font-size: .78rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 22px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.nav-group + .nav-group {
    margin-top: 18px;
}

.nav-label {
    padding: 0 12px 7px;
    color: rgba(255, 255, 255, .42);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sidebar .nav-item,
.sidebar .logout-link,
.sidebar .account-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, .72);
    border-radius: 11px;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.sidebar .nav-item i,
.sidebar .logout-link i {
    width: 20px;
    flex: 0 0 20px;
    text-align: center;
}

.sidebar .nav-item:hover,
.sidebar .logout-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.sidebar .nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(37, 99, 235, .95), rgba(37, 99, 235, .62));
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.account-card {
    margin-bottom: 5px;
}

.account-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    color: #dffcf6;
    background: rgba(20, 184, 166, .2);
    border: 1px solid rgba(20, 184, 166, .35);
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 800;
}

.account-copy {
    min-width: 0;
    display: grid;
}

.account-copy strong,
.account-copy small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-copy strong {
    color: #fff;
    font-size: .84rem;
}

.account-copy small {
    color: rgba(255, 255, 255, .48);
}

.sidebar-collapse-button {
    position: absolute;
    top: 34px;
    right: -13px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--ink-700);
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.sidebar-close,
.mobile-menu-button {
    display: none;
}

.content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: margin-left .24s ease;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px clamp(20px, 3vw, 42px);
    background: rgba(247, 249, 252, .88);
    border-bottom: 1px solid rgba(197, 207, 219, .72);
    backdrop-filter: blur(16px);
}

.topbar-eyebrow {
    color: var(--ink-500);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

.content-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
}

.content-back:hover,
.content-back:focus {
    color: var(--primary-dark);
    text-decoration: none;
}

.topbar-title {
    font-size: 1.12rem;
    font-weight: 750;
}

.content-body {
    width: min(1560px, 100%);
    margin: 0 auto;
    padding: 28px clamp(20px, 3vw, 42px) 48px;
}

.content-body > h1,
.content-body > h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 760;
    letter-spacing: -.03em;
}

.content-body > h2 > i {
    color: var(--primary);
    margin-right: .45rem;
}

.card {
    border: 1px solid rgba(219, 227, 236, .92);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--ink-100);
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

.table-responsive {
    border-radius: inherit;
}

.table {
    margin-bottom: 0;
    color: var(--ink-800);
    background: #fff;
}

.table > :not(caption) > * > * {
    padding: .9rem .85rem;
    border-color: var(--ink-100);
}

.table thead th,
.table .table-dark th {
    color: var(--ink-700);
    background: #f4f7fb !important;
    border-bottom: 1px solid var(--ink-200);
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(247, 249, 252, .8);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(37, 99, 235, .045);
}

.form-label,
label {
    color: var(--ink-700);
    font-size: .88rem;
    font-weight: 650;
}

.form-control,
.form-select {
    min-height: 44px;
    color: var(--ink-900);
    background-color: #fff;
    border: 1px solid var(--ink-300);
    border-radius: var(--radius-sm);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .55rem .9rem;
    border-radius: 10px;
    font-weight: 650;
}

.btn i {
    margin: 0;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 7px 18px rgba(37, 99, 235, .18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-new-invoice {
    color: #fff;
    background: linear-gradient(135deg, #c2410c, #9a3412);
    border-color: #9a3412;
    box-shadow: 0 9px 22px rgba(154, 52, 18, .28);
}

.btn-new-invoice:hover,
.btn-new-invoice:focus {
    color: #fff;
    background: linear-gradient(135deg, #9a3412, #7c2d12);
    border-color: #7c2d12;
    box-shadow: 0 11px 26px rgba(124, 45, 18, .34);
    transform: translateY(-1px);
}

.btn-new-invoice:focus-visible {
    outline: 3px solid rgba(249, 115, 22, .35);
    outline-offset: 3px;
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-sm {
    min-height: 34px;
    padding: .38rem .65rem;
    border-radius: 8px;
}

.badge {
    padding: .46em .66em;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

.alert {
    border: 0;
    border-radius: var(--radius-sm);
}

.page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-kicker {
    margin-bottom: 5px;
    color: var(--primary);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 780;
    letter-spacing: -.045em;
}

.page-subtitle {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--ink-500);
}

.metric-card {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    width: 96px;
    height: 96px;
    right: -36px;
    bottom: -48px;
    background: var(--metric-color, var(--primary));
    border-radius: 50%;
    opacity: .09;
}

.metric-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--metric-color, var(--primary));
    background: color-mix(in srgb, var(--metric-color, var(--primary)) 11%, white);
    border-radius: 12px;
}

.metric-label {
    margin-top: 18px;
    color: var(--ink-500);
    font-size: .84rem;
    font-weight: 650;
}

.metric-value {
    margin-top: 3px;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 780;
    letter-spacing: -.04em;
}

.metric-meta {
    margin-top: 7px;
    color: var(--ink-500);
    font-size: .8rem;
}

.quick-action {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    color: var(--ink-900);
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.quick-action:hover {
    color: var(--ink-900);
    border-color: rgba(37, 99, 235, .42);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.quick-action i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: rgba(37, 99, 235, .09);
    border-radius: 11px;
}

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

.quick-action small {
    margin-top: 2px;
    color: var(--ink-500);
}

.empty-state {
    padding: 48px 20px;
    text-align: center;
    color: var(--ink-500);
}

.empty-state i {
    margin-bottom: 10px;
    color: var(--ink-300);
    font-size: 2rem;
}

.theme-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-option-card {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px;
    color: var(--ink-900);
    background: var(--surface);
    border: 2px solid var(--ink-200);
    border-radius: var(--radius-md);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.theme-option:hover .theme-option-card {
    border-color: color-mix(in srgb, var(--primary) 48%, var(--ink-200));
    transform: translateY(-2px);
}

.theme-option input:checked + .theme-option-card {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.theme-option input:focus-visible + .theme-option-card {
    outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
    outline-offset: 3px;
}

.theme-option-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 11%, var(--surface));
    border-radius: 13px;
    font-size: 1.25rem;
}

.theme-option-card strong {
    font-size: 1.05rem;
}

.theme-option-card small {
    color: var(--ink-500);
    font-weight: 500;
}

.theme-option-check {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.75);
    transition: opacity .16s ease, transform .16s ease;
}

.theme-option input:checked + .theme-option-card .theme-option-check {
    opacity: 1;
    transform: scale(1);
}

.login-page {
    display: grid;
    place-items: center;
    padding: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 12%, rgba(20, 184, 166, .25), transparent 28rem),
        radial-gradient(circle at 90% 90%, rgba(37, 99, 235, .3), transparent 34rem),
        var(--ink-950);
}

.login-shell {
    width: min(1080px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
}

.login-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 6vw, 72px);
    background:
        linear-gradient(145deg, rgba(16, 27, 45, .96), rgba(25, 40, 63, .88)),
        var(--ink-900);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 1.12rem;
}

.login-intro h1 {
    max-width: 560px;
    margin: 12px 0 14px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.login-intro p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 1.05rem;
}

.login-feature-list {
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, .72);
}

.login-feature-list i {
    margin-right: 9px;
    color: #5eead4;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: clamp(28px, 6vw, 70px);
    color: var(--ink-900);
}


.login-card {
    width: min(390px, 100%);
}

.login-card h2 {
    margin: 0 0 4px;
    font-size: 1.8rem;
    letter-spacing: -.035em;
}

.input-with-icon {
    position: relative;
}

.input-with-icon > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    color: var(--ink-500);
    transform: translateY(-50%);
}

.input-with-icon .form-control {
    padding-left: 42px;
}

.sidebar-backdrop {
    display: none;
}

body.sidebar-collapsed .sidebar,
html.sidebar-pre-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}

body.sidebar-collapsed .content,
html.sidebar-pre-collapsed .content {
    margin-left: var(--sidebar-collapsed);
}

body.sidebar-collapsed .menu-text,
html.sidebar-pre-collapsed .menu-text {
    display: none;
}

body.sidebar-collapsed .sidebar-brand,
html.sidebar-pre-collapsed .sidebar-brand {
    justify-content: center;
    padding-inline: 12px;
}

body.sidebar-collapsed .sidebar .nav-item,
body.sidebar-collapsed .sidebar .logout-link,
html.sidebar-pre-collapsed .sidebar .nav-item,
html.sidebar-pre-collapsed .sidebar .logout-link {
    justify-content: center;
}

body.sidebar-collapsed .account-card,
html.sidebar-pre-collapsed .account-card {
    justify-content: center;
}

body.sidebar-collapsed .nav-group + .nav-group,
html.sidebar-pre-collapsed .nav-group + .nav-group {
    margin-top: 8px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink-950: #070c14;
    --ink-900: #e8eef7;
    --ink-800: #dce5f1;
    --ink-700: #c3cfdf;
    --ink-500: #94a3b8;
    --ink-300: #43526a;
    --ink-200: #29384f;
    --ink-100: #1a283c;
    --ink-50: #0b1220;
    --surface: #111c2d;
    --primary: #60a5fa;
    --primary-dark: #93c5fd;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 24px rgba(0, 0, 0, .18);
    --shadow-md: 0 18px 45px rgba(0, 0, 0, .34);
    --bs-body-color: #e8eef7;
    --bs-body-bg: #0b1220;
    --bs-border-color: #29384f;
}

html[data-theme="dark"] body {
    color: var(--ink-900);
    background:
        radial-gradient(circle at 95% 0, rgba(37, 99, 235, .14), transparent 30rem),
        var(--ink-50);
}

html[data-theme="dark"] .sidebar {
    background:
        radial-gradient(circle at 25% -10%, rgba(20, 184, 166, .2), transparent 18rem),
        linear-gradient(180deg, #101b2d, #070c14);
}

html[data-theme="dark"] .sidebar-collapse-button,
html[data-theme="dark"] .mobile-menu-button {
    color: #e8eef7;
    background: #111c2d;
    border-color: #29384f;
}

html[data-theme="dark"] .app-topbar {
    background: rgba(11, 18, 32, .88);
    border-bottom-color: rgba(67, 82, 106, .62);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .list-group-item {
    color: var(--ink-900);
    background: var(--surface);
    border-color: var(--ink-200);
}

html[data-theme="dark"] .table {
    color: var(--ink-800);
    background: var(--surface);
    --bs-table-bg: var(--surface);
    --bs-table-color: var(--ink-800);
    --bs-table-border-color: var(--ink-100);
    --bs-table-striped-color: var(--ink-800);
    --bs-table-hover-color: var(--ink-900);
    --bs-table-active-color: var(--ink-900);
}

html[data-theme="dark"] .table thead th,
html[data-theme="dark"] .table .table-dark th {
    color: var(--ink-700);
    background: #162235 !important;
    border-bottom-color: var(--ink-200);
}

html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(255, 255, 255, .025);
    color: var(--ink-800);
}

html[data-theme="dark"] .table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(96, 165, 250, .08);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    color: var(--ink-900);
    background-color: #0d1727;
    border-color: var(--ink-300);
}

html[data-theme="dark"] .form-control::placeholder {
    color: #718198;
}

html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .page-link {
    color: var(--ink-800);
    background-color: #162235;
    border-color: var(--ink-300);
}

html[data-theme="dark"] .page-item.active .page-link {
    color: #07111f;
    background-color: var(--primary);
    border-color: var(--primary);
}

html[data-theme="dark"] .form-control:disabled,
html[data-theme="dark"] .form-select:disabled {
    color: var(--ink-500);
    background-color: #172338;
}

html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .btn-outline-secondary {
    color: var(--ink-800);
    background: #1a283c;
    border-color: #43526a;
}

html[data-theme="dark"] .quick-action {
    color: var(--ink-900);
    background: var(--surface);
    border-color: var(--ink-200);
}

html[data-theme="dark"] .quick-action:hover {
    color: var(--ink-900);
    border-color: rgba(96, 165, 250, .52);
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .form-text {
    color: var(--ink-500) !important;
}

html[data-theme="dark"] .text-dark {
    color: var(--ink-900) !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light {
    color: var(--ink-900) !important;
    background-color: #162235 !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-end,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start {
    border-color: var(--ink-200) !important;
}

html[data-theme="dark"] .dropdown-item {
    color: var(--ink-800);
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
    color: var(--ink-900);
    background: var(--ink-100);
}

html[data-theme="dark"] .login-shell,
html[data-theme="dark"] .login-panel {
    color: var(--ink-900);
    background: var(--surface);
}

html[data-theme="dark"] .login-intro {
    color: #fff;
    background:
        linear-gradient(145deg, rgba(16, 27, 45, .96), rgba(25, 40, 63, .88)),
        #101b2d;
}

@media (max-width: 900px) {
    .sidebar {
        width: min(84vw, 300px);
        transform: translateX(-102%);
        box-shadow: var(--shadow-md);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-close {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        margin-left: auto;
        color: rgba(255, 255, 255, .68);
        background: rgba(255, 255, 255, .07);
        border: 0;
        border-radius: 10px;
    }

    .sidebar-collapse-button {
        display: none;
    }

    .mobile-menu-button {
        position: fixed;
        top: 17px;
        left: 16px;
        z-index: 1030;
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        color: #fff;
        background: var(--ink-900);
        border: 0;
        border-radius: 13px;
        box-shadow: var(--shadow-md);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1035;
        display: block;
        visibility: hidden;
        background: rgba(11, 18, 32, .48);
        opacity: 0;
        transition: opacity .2s ease, visibility .2s ease;
    }

    .sidebar-backdrop.show {
        visibility: visible;
        opacity: 1;
    }

    .content,
    body.sidebar-collapsed .content,
    html.sidebar-pre-collapsed .content {
        margin-left: 0;
    }

    .app-topbar {
        min-height: 80px;
        padding-left: 78px;
    }

    .topbar-eyebrow,
    .topbar-title {
        display: none;
    }

    .content-body {
        padding: 22px 16px 40px;
    }

    .page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .table > :not(caption) > * > * {
        padding: .78rem .7rem;
    }

    .login-page {
        display: block;
        padding: 0;
        background: #fff;
    }

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

    .login-intro {
        min-height: 300px;
        padding: 32px 24px;
    }

    .login-intro h1 {
        max-width: 640px;
        font-size: clamp(2rem, 8vw, 3.2rem);
    }

    .login-feature-list {
        display: none;
    }

    .login-panel {
        padding: 38px 24px 56px;
    }
}

@media (max-width: 575px) {
    .app-topbar {
        justify-content: flex-end;
    }

    .topbar-actions .btn span {
        display: none;
    }

    .topbar-actions .btn-new-invoice {
        width: 48px;
        min-width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 14px;
        font-size: 1.12rem;
    }

    .content-body > h2 {
        margin-top: .25rem;
        font-size: 1.5rem;
    }

    .card-body {
        padding: 16px;
    }

    .btn {
        min-height: 44px;
    }
}

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