:root {
    --ancora-blue-950: #071a35;
    --ancora-blue-900: #0b2347;
    --ancora-blue-800: #12356a;
    --ancora-blue-700: #1f4f93;
    --ancora-blue-600: #2d6ec9;
    --ancora-blue-500: #4c8df0;
    --ancora-blue-100: #dbe9ff;
    --ancora-white: #ffffff;
    --ancora-slate: #6c7b94;
    --ancora-text: #13233f;
    --ancora-bg: #eef4ff;
    --ancora-surface: rgba(255, 255, 255, 0.92);
    --ancora-border: rgba(26, 74, 142, 0.12);
    --ancora-shadow: 0 18px 45px rgba(7, 26, 53, 0.12);
    --ancora-radius-lg: 1.4rem;
    --ancora-radius-md: 1rem;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ancora-text);
}

.text-on-dark,
.text-on-dark h1,
.text-on-dark h2,
.text-on-dark h3,
.text-on-dark h4,
.text-on-dark h5,
.text-on-dark h6,
.text-on-dark p,
.text-on-dark span,
.text-on-dark strong,
.text-on-dark small,
.text-on-dark label,
.text-on-dark .lead,
.text-on-dark .form-label {
    color: var(--ancora-white) !important;
}

.text-on-dark .text-secondary,
.text-on-dark small,
.text-on-dark .form-text {
    color: rgba(255, 255, 255, 0.76) !important;
}

.app-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(76, 141, 240, 0.18), transparent 25%),
        radial-gradient(circle at bottom right, rgba(11, 35, 71, 0.12), transparent 30%),
        linear-gradient(180deg, #f6f9ff 0%, #edf4ff 100%);
}

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

.app-sidebar {
    width: 300px;
    flex-shrink: 0;
    padding: 1.75rem 1.25rem;
    background:
        linear-gradient(180deg, rgba(20, 55, 108, 0.98), rgba(7, 26, 53, 0.98)),
        var(--ancora-blue-950);
    color: var(--ancora-white);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.sidebar-brand {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--ancora-white);
    text-decoration: none;
}

.brand-kicker {
    display: block;
    color: rgba(255, 255, 255, 0.64);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.brand-logo,
.invoice-logo {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.2rem;
}

.brand-mark,
.login-mark,
.config-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ancora-white);
    background: linear-gradient(135deg, var(--ancora-blue-500), var(--ancora-blue-700));
    box-shadow: 0 12px 24px rgba(76, 141, 240, 0.28);
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.25s ease;
}

.sidebar-link i {
    font-size: 1.1rem;
}

.sidebar-link:hover {
    color: var(--ancora-white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.sidebar-link.active {
    color: var(--ancora-white);
    background: linear-gradient(135deg, rgba(76, 141, 240, 0.3), rgba(255, 255, 255, 0.12));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 1rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.user-badge small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
}

.user-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #59e4a8;
    box-shadow: 0 0 0 6px rgba(89, 228, 168, 0.16);
}

.app-main {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.75rem 2rem;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    margin-bottom: 1.5rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: var(--ancora-shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-kicker {
    display: block;
    color: var(--ancora-blue-600);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.topbar-chip,
.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(11, 35, 71, 0.05);
}

.topbar-chip i {
    color: var(--ancora-blue-700);
}

.topbar-user small {
    display: block;
    color: var(--ancora-slate);
}

.topbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--ancora-white);
    background: linear-gradient(135deg, var(--ancora-blue-700), var(--ancora-blue-500));
}

.btn-topbar {
    border: 0;
    background: rgba(11, 35, 71, 0.08);
    color: var(--ancora-blue-800);
}

.app-content {
    padding-inline: 0.2rem;
}

.app-footer,
.auth-footer {
    padding: 2rem 0 1.2rem;
}

.app-footer-inner,
.auth-footer .container {
    text-align: center;
    color: var(--ancora-slate);
    padding-inline: 1rem;
}

.app-footer-inner p,
.auth-footer p {
    font-weight: 600;
    color: var(--ancora-blue-900);
    letter-spacing: 0.03em;
}

.app-footer-inner small,
.auth-footer small {
    color: var(--ancora-slate);
    display: block;
    margin-top: 0.2rem;
}

.card,
.auth-card,
.metric-card {
    border: 1px solid var(--ancora-border);
    border-radius: var(--ancora-radius-lg);
    background: var(--ancora-surface);
    box-shadow: var(--ancora-shadow);
    backdrop-filter: blur(16px);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--ancora-radius-lg) + 0.2rem);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 20%),
        linear-gradient(135deg, var(--ancora-blue-900), var(--ancora-blue-700));
    color: var(--ancora-white);
    box-shadow: 0 28px 52px rgba(7, 26, 53, 0.22);
}

.hero-panel,
.hero-panel * {
    color: var(--ancora-white);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -60px -70px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.metric-card {
    overflow: hidden;
}

.metric-card .card-body {
    position: relative;
    padding: 1.35rem;
}

.metric-card .card-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(76, 141, 240, 0.08), transparent 60%);
    pointer-events: none;
}

.metric-card h2 {
    font-size: 1.55rem;
    line-height: 1.15;
    word-break: break-word;
}

.metric-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.summary-box {
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, rgba(76, 141, 240, 0.08), rgba(17, 49, 96, 0.02));
    border: 1px solid rgba(76, 141, 240, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.summary-box span {
    color: var(--ancora-slate);
    font-size: 0.88rem;
}

.summary-box strong {
    font-size: 1.22rem;
}

.summary-box.bg-dark {
    background: linear-gradient(135deg, var(--ancora-blue-900), var(--ancora-blue-700)) !important;
    border: 0;
}

.summary-box.bg-dark span,
.summary-box.bg-dark strong {
    color: var(--ancora-white) !important;
}

.table {
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.95rem;
    border-bottom-color: rgba(16, 39, 75, 0.07);
}

.table thead th {
    background: rgba(76, 141, 240, 0.1);
    color: var(--ancora-blue-900);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 0;
}

.table tbody tr {
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.table tbody tr:hover {
    background: rgba(76, 141, 240, 0.06);
}

.table .btn-group .btn,
.table .btn-icon {
    border-radius: 0.85rem;
}

.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
    border-radius: 0.95rem;
    box-shadow: none;
}

.form-control,
.form-select {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(17, 49, 96, 0.14);
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(45, 110, 201, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(76, 141, 240, 0.15);
    background: var(--ancora-white);
}

.form-label {
    font-weight: 600;
    color: var(--ancora-blue-900);
}

.btn {
    border-radius: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.1rem;
}

.btn-dark {
    background: linear-gradient(135deg, var(--ancora-blue-700), var(--ancora-blue-600));
    border-color: transparent;
    box-shadow: 0 14px 26px rgba(45, 110, 201, 0.22);
}

.btn-dark:hover,
.btn-dark:focus {
    background: linear-gradient(135deg, var(--ancora-blue-900), var(--ancora-blue-700));
    border-color: transparent;
}

.btn-outline-dark {
    color: var(--ancora-blue-800);
    border-color: rgba(18, 53, 106, 0.18);
}

.btn-outline-dark:hover,
.btn-outline-danger:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover {
    transform: translateY(-1px);
}

.badge.text-bg-light,
.badge.rounded-pill {
    background: rgba(76, 141, 240, 0.12) !important;
    color: var(--ancora-blue-900) !important;
}

.app-alert {
    border-radius: 1rem;
}

.auth-body {
    background:
        radial-gradient(circle at top, rgba(76, 141, 240, 0.2), transparent 22%),
        linear-gradient(145deg, #071a35 0%, #12356a 60%, #1f4f93 100%);
}

.auth-footer .container {
    color: rgba(255, 255, 255, 0.78);
}

.auth-footer p,
.auth-footer small {
    color: rgba(255, 255, 255, 0.92);
}

.auth-footer p {
    font-weight: 700;
}

.auth-footer small {
    color: rgba(255, 255, 255, 0.76);
}

.auth-card {
    overflow: hidden;
    min-height: 100%;
}

.auth-shell {
    border-radius: 1.8rem;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(4, 18, 39, 0.28);
}

.auth-brand-panel {
    height: 100%;
    padding: 3.5rem;
    color: var(--ancora-white);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 25%),
        linear-gradient(160deg, rgba(7, 26, 53, 0.94), rgba(31, 79, 147, 0.92));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-panel,
.auth-brand-panel * {
    color: var(--ancora-white);
}

.auth-brand-panel .badge {
    color: var(--ancora-blue-900) !important;
}

.auth-card .card-body {
    padding: 2.5rem;
}

.login-mark,
.config-logo-fallback {
    width: 88px;
    height: 88px;
    border-radius: 1.5rem;
    margin-inline: auto;
    font-size: 2rem;
}

.login-logo,
.config-logo {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 18px 32px rgba(18, 53, 106, 0.18);
}

.invoice-sheet {
    border-radius: 1.6rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.95));
    border: 1px solid rgba(17, 49, 96, 0.08);
    box-shadow: var(--ancora-shadow);
}

.invoice-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(17, 49, 96, 0.08);
}

.invoice-section-title {
    color: var(--ancora-blue-800);
    font-weight: 700;
}

.invoice-note-card {
    padding: 1.2rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(17, 49, 96, 0.08);
    background: linear-gradient(180deg, rgba(76, 141, 240, 0.06), rgba(255, 255, 255, 0.92));
}

.invoice-items-table {
    min-width: 640px;
}

.invoice-actions {
    margin-top: -0.25rem;
}

.invoice-meta {
    min-width: 220px;
}

.invoice-visual-number {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(76, 141, 240, 0.12);
    color: var(--ancora-blue-900);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.invoice-period-chip {
    padding: 0.55rem 0.9rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(76, 141, 240, 0.12), rgba(18, 53, 106, 0.06));
    color: var(--ancora-blue-900);
}

.invoice-total-highlight strong {
    font-size: 1.5rem;
}

.invoice-print-footer {
    display: none;
}

.public-header {
    background: linear-gradient(135deg, #082346 0%, #163d7a 100%);
    color: #fff;
}

.public-main {
    min-height: calc(100vh - 160px);
}

.public-footer {
    background: #082346;
    color: rgba(255, 255, 255, 0.82);
}

.public-hero {
    background: linear-gradient(135deg, #0d2340 0%, #1a4d95 100%);
    border-radius: 28px;
    color: #fff;
    padding: 2rem;
    box-shadow: 0 24px 48px rgba(8, 35, 70, 0.18);
}

.public-highlight-card {
    border-radius: 24px;
}

.pricing-summary-card,
.pricing-card,
.pricing-cta-card {
    position: relative;
    overflow: hidden;
}

.pricing-summary-card::before,
.pricing-card-featured::before,
.pricing-cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(76, 141, 240, 0.12), transparent 55%);
    pointer-events: none;
}

.pricing-summary-kicker,
.pricing-plan-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ancora-blue-700);
}

.pricing-highlight-price,
.pricing-value-block {
    display: grid;
    gap: 0.35rem;
}

.pricing-highlight-price small,
.pricing-original-price {
    color: var(--ancora-slate);
    text-decoration: line-through;
    font-weight: 600;
}

.pricing-highlight-price strong,
.pricing-value-block strong {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    color: var(--ancora-blue-900);
}

.pricing-highlight-price span,
.pricing-value-block span {
    color: var(--ancora-slate);
    font-weight: 600;
}

.pricing-discount-badge {
    background: linear-gradient(135deg, #4ecb8b, #22a06b) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(34, 160, 107, 0.22);
}

.pricing-card-featured {
    border: 1px solid rgba(76, 141, 240, 0.22);
    box-shadow: 0 26px 52px rgba(17, 49, 96, 0.18);
}

.pricing-card-current {
    border: 1px solid rgba(34, 160, 107, 0.28);
    box-shadow: 0 24px 48px rgba(34, 160, 107, 0.14);
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.pricing-feature-list li,
.pricing-mini-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--ancora-text);
}

.pricing-feature-list li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    color: var(--ancora-blue-600);
    font-size: 1rem;
    line-height: 1.2;
}

.pricing-mini-benefit {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.pricing-mini-benefit i {
    color: rgba(255, 255, 255, 0.92);
    margin-top: 0.1rem;
}

.pricing-mini-benefit span {
    color: rgba(255, 255, 255, 0.92);
}

.pricing-benefit-card {
    padding: 1.2rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(17, 49, 96, 0.08);
    background: linear-gradient(180deg, rgba(76, 141, 240, 0.06), rgba(255, 255, 255, 0.96));
}

.pricing-benefit-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(76, 141, 240, 0.2), rgba(31, 79, 147, 0.12));
    color: var(--ancora-blue-800);
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.subscription-dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(76, 141, 240, 0.08), transparent 58%);
    pointer-events: none;
}

.subscription-highlight-box {
    padding: 1.2rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(76, 141, 240, 0.09), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(17, 49, 96, 0.08);
}

.subscription-soon-banner {
    padding: 0.75rem 0.9rem;
    border-radius: 0.95rem;
    background: rgba(255, 193, 7, 0.16);
    color: #7a5800;
    font-weight: 600;
}

.subscription-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(17, 49, 96, 0.08);
}

.subscription-meta-line:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.subscription-meta-line:first-child {
    padding-top: 0;
}

.table .btn-group.flex-wrap {
    gap: 0.35rem;
}

.mobile-nav .sidebar-link {
    color: rgba(255, 255, 255, 0.78);
}

.mobile-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 88vw);
    padding: 0;
    background:
        linear-gradient(180deg, rgba(20, 55, 108, 0.99), rgba(7, 26, 53, 0.99)),
        var(--ancora-blue-950);
    color: var(--ancora-white);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1045;
    box-shadow: 18px 0 40px rgba(7, 26, 53, 0.28);
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav-header,
.mobile-nav-body {
    padding: 1.25rem;
}

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

.mobile-nav-body {
    min-height: calc(100vh - 86px);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 26, 53, 0.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 1040;
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.mobile-nav-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .mobile-nav {
        display: none !important;
    }

    .mobile-nav-backdrop {
        display: none !important;
    }

    body {
        overflow: auto !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block;
    }

    .app-main {
        padding: 1rem 1rem 1.5rem;
    }

    .app-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .auth-shell {
        box-shadow: none;
        border-radius: 0;
    }

    .auth-brand-panel {
        padding: 2rem;
    }

    .topbar-right {
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .app-main {
        padding: 0.85rem 0.85rem 1.25rem;
    }

    .app-content {
        padding-inline: 0;
    }

    .topbar-right {
        gap: 0.75rem;
    }

    .topbar-chip,
    .topbar-user {
        width: 100%;
        justify-content: center;
    }

    .hero-panel,
    .card,
    .metric-card {
        border-radius: 1.1rem;
    }

    .metric-card .card-body,
    .card .card-body,
    .card .card-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .btn-group {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .btn-group > .btn {
        border-radius: 0.8rem !important;
    }

    .summary-box {
        min-height: auto;
    }

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

    .login-logo,
    .config-logo {
        width: 72px;
        height: 72px;
    }

    .login-mark,
    .config-logo-fallback {
        width: 72px;
        height: 72px;
        font-size: 1.65rem;
    }

    .invoice-note-card {
        padding: 1rem;
    }

    .pricing-value-block strong,
    .pricing-highlight-price strong {
        font-size: 2.15rem;
    }
}

@media (max-width: 575.98px) {
    .topbar-title {
        font-size: 1.1rem;
    }

    .topbar-chip,
    .topbar-user {
        padding: 0.7rem 0.85rem;
    }

    .hero-panel {
        padding: 1.25rem !important;
    }

    .display-6 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1rem;
    }

    .table > :not(caption) > * > * {
        padding: 0.85rem 0.7rem;
        white-space: nowrap;
    }

    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    html, body {
        background: #fff !important;
        color: #1f2937 !important;
        font-size: 10.5px !important;
        line-height: 1.25 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body * {
        box-shadow: none !important;
        text-shadow: none !important;
        background-image: none !important;
    }

    .app-sidebar,
    .mobile-nav,
    .mobile-nav-backdrop,
    .app-topbar,
    .app-footer,
    .invoice-actions,
    .d-print-none,
    .btn,
    button {
        display: none !important;
    }

    .app-main,
    .app-content,
    .invoice-sheet,
    .print-sheet {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        background: #fff !important;
    }

    .invoice-sheet {
        border: 0 !important;
    }

    .invoice-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 0 0 8px 0 !important;
        margin-bottom: 8px !important;
        border-bottom: 1px solid #cbd5e1 !important;
    }

    .invoice-header h1,
    .invoice-header .h3 {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin: 2px 0 !important;
        color: #163d7a !important;
        font-weight: 700 !important;
    }

    .invoice-section-title {
        font-size: 10px !important;
        font-weight: 700 !important;
        color: #163d7a !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        margin-bottom: 2px !important;
    }

    .invoice-visual-number,
    .invoice-period-chip {
        display: inline-block !important;
        padding: 3px 8px !important;
        border-radius: 4px !important;
        background: #163d7a !important;
        color: #fff !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        border: none !important;
    }

    .brand-mark {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 4px !important;
        background: #163d7a !important;
        color: #fff !important;
        font-size: 11px !important;
    }

    .invoice-meta {
        min-width: 150px !important;
        text-align: right !important;
    }

    .invoice-meta .small,
    .text-secondary,
    small {
        color: #4b5563 !important;
        font-size: 9.5px !important;
    }

    .p-4,
    .p-5,
    .p-lg-5,
    .card-body,
    .card-header {
        padding: 6px 8px !important;
    }

    .mb-4 {
        margin-bottom: 8px !important;
    }

    .mb-3 {
        margin-bottom: 6px !important;
    }

    .row.g-4,
    .row.g-3 {
        --bs-gutter-x: 8px !important;
        --bs-gutter-y: 8px !important;
    }

    .card {
        border: 1px solid #d1d5db !important;
        border-radius: 0 !important;
        background: #fff !important;
        margin-bottom: 6px !important;
        page-break-inside: avoid !important;
    }

    .card-header {
        background: #fff !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .card-header h2,
    .card-header .h5 {
        font-size: 11px !important;
        margin: 0 !important;
        color: #163d7a !important;
        font-weight: 700 !important;
    }

    .summary-box {
        border: 1px solid #d1d5db !important;
        border-radius: 0 !important;
        background: #fff !important;
        padding: 6px 8px !important;
        margin-bottom: 4px !important;
    }

    .summary-box span {
        display: block !important;
        font-size: 9.5px !important;
        color: #4b5563 !important;
        margin-bottom: 2px !important;
    }

    .summary-box strong {
        font-size: 11px !important;
        color: #111827 !important;
        font-weight: 700 !important;
    }

    .invoice-total-highlight {
        background: #163d7a !important;
        color: #fff !important;
        border: 1px solid #163d7a !important;
    }

    .invoice-total-highlight span,
    .invoice-total-highlight strong {
        color: #fff !important;
    }

    .invoice-total-highlight strong {
        font-size: 13px !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    table.table {
        width: 100% !important;
        margin-bottom: 0 !important;
        border-collapse: collapse !important;
        font-size: 9.5px !important;
    }

    table.table thead th {
        background: #f8fafc !important;
        color: #163d7a !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        border-top: 1px solid #cbd5e1 !important;
        border-bottom: 1px solid #cbd5e1 !important;
        padding: 5px 6px !important;
    }

    table.table tbody td {
        border-bottom: 1px solid #e5e7eb !important;
        padding: 4px 6px !important;
        color: #111827 !important;
        vertical-align: top !important;
    }

    .col-lg-8,
    .col-lg-4,
    .col-md-6,
    .col-md-3 {
        page-break-inside: avoid !important;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid !important;
    }

    tr, td, th {
        page-break-inside: avoid !important;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }

    .invoice-print-footer {
        display: block !important;
        margin-top: 10px !important;
        padding-top: 6px !important;
        border-top: 1px solid #cbd5e1 !important;
        font-size: 9px !important;
        line-height: 1.35 !important;
        color: #4b5563 !important;
    }

    .invoice-print-footer div {
        margin-bottom: 2px !important;
    }

    .invoice-print-footer strong {
        color: #111827 !important;
    }
}
