.page--lite .page-wrapper {
    min-height: 100vh;
}

#shipping-auto-status:empty {
    display: none;
}

.page--lite .container-xl {
    width: min(1100px, calc(100% - 40px));
    max-width: none;
}

/* ── Demo page hero ── */
.demo-page-hero {
    padding: 60px 0 40px;
    font-family: 'Manrope', sans-serif;
}

.project-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.project-breadcrumb-link,
.project-breadcrumb-current {
    color: inherit;
    text-decoration: none;
    text-transform: lowercase;
}

.project-breadcrumb-link:hover {
    color: var(--text);
}

.project-breadcrumb-separator {
    color: var(--text-faint);
}

.demo-page-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.5;
    margin: 0 0 16px;
    color: var(--text);
}

.demo-copy {
    margin: 0 0 56px;
}

.demo-copy-block {
    width: 100%;
    display: grid;
    gap: 30px;
}

.demo-copy-title {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--text);
    font-size: 26px;
    line-height: 1.24;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.demo-copy-block p {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.1px;
}

.subtitle-meta {
    display: grid;
    gap: 6px;
    margin: 0;
}

.subtitle-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.subtitle-meta-row p {
    margin: 0;
    font-size: 16px;
    color: var(--text-soft);
}

.subtitle-meta-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    filter: invert(1);
}

body.light-mode .subtitle-meta-icon {
    filter: none;
}

.page--lite input[type="text"] {
    min-height: 50px;
    height: 50px;
    border-radius: 0.75rem;
}

.page--lite button {
    border-radius: 0.75rem;
}

.page--lite .remove-row-button {
    background: #ef4444;
    border: 1px solid #ef4444;
    color: #ffffff;
}

.page--lite .remove-row-button:hover,
.page--lite .remove-row-button:focus {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

#invoice-generator-form {
    padding: 30px;
    border: 1px solid var(--tblr-border-color, #d8e0e8);
    border-radius: 28px;
    background: color-mix(in srgb, var(--tblr-body-bg, #f6f8fb) 86%, var(--tblr-bg-surface, #ffffff) 14%);
    box-shadow: 0 18px 44px rgba(14, 34, 56, 0.06);
}

.page--lite #invoice-generator-form .card {
    background: color-mix(in srgb, var(--tblr-bg-surface, #ffffff) 94%, transparent);
    box-shadow: none;
    border-color: color-mix(in srgb, var(--tblr-border-color, #d8e0e8) 78%, transparent);
}

.page--lite #invoice-generator-form .card-header,
.page--lite #invoice-generator-form .card-body,
.page--lite #invoice-generator-form .card-footer {
    background: transparent;
}

[data-bs-theme=dark] #invoice-generator-form {
    background: #111214;
    box-shadow: none;
}

[data-bs-theme=dark] .page--lite #invoice-generator-form .card {
    background: #181a1d;
}

.invoice-items-table input,
.invoice-items-table textarea {
    min-width: 0;
}

#bill-to-customer-input {
    min-height: 51px;
}

.invoice-row-action-cell {
    text-align: center;
}

.page--lite .card-header {
    gap: 1rem;
}

.page--lite .card-header .card-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.page--lite .card-header .card-options .btn {
    margin-right: 0 !important;
}

.page--lite .demo-add-row-button {
    min-width: 108px;
    height: 50px;
    min-height: 50px;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    flex: 0 0 auto;
}

.page--lite .invoice-items-body {
    display: grid;
    gap: 1rem;
}

.page--lite .invoice-items-toolbar {
    display: flex;
    justify-content: flex-end;
}

.page--lite .table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.page--lite .shipping-combobox--locked .shipping-combobox-trigger,
.page--lite .is-demo-disabled {
    cursor: not-allowed !important;
}

.page--lite .shipping-combobox--locked .shipping-combobox-trigger {
    background: #f8fafc;
}

.page--lite .discount-tab.is-demo-disabled {
    opacity: 0.45;
}

[data-bs-theme=dark] .page--lite .discount-tab.is-demo-disabled {
    opacity: 1;
    background: #121315;
    border-color: #2a2c30;
    color: #6b7078;
    box-shadow: none;
}

[data-bs-theme=dark] .invoice-item-row {
    background: #17181a;
    border-color: #2a2c30;
}

[data-bs-theme=dark] .invoice-item-row > td::before {
    color: #8d96a2;
}

[data-bs-theme=dark] .invoice-items-table .remove-row-button {
    box-shadow: none;
}

[data-bs-theme=dark] .invoice-row-action-cell {
    background: #181a1d;
    box-shadow: -10px 0 14px -14px rgba(0, 0, 0, 0.7);
}

[data-bs-theme=dark] .invoice-row-action-head {
    background: #111214;
    box-shadow: -10px 0 14px -14px rgba(0, 0, 0, 0.85);
}


.page--lite .lite-tooltip-target {
    user-select: none;
}

.page--lite .lite-tooltip-target[aria-disabled="true"] {
    opacity: 1;
}

.invoice-lite-locked-panel {
    border: 1px dashed #cdd9e3;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    color: #607485;
    font-size: 0.92rem;
    line-height: 1.6;
}

.page--lite textarea[readonly],
.page--lite input[readonly] {
    background: #f8fafc;
}

.footer-editor-card--locked {
    position: relative;
}

.footer-editor-card--locked .card-body {
    position: relative;
}

.footer-editor-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 0 0 var(--tblr-card-inner-border-radius) var(--tblr-card-inner-border-radius);
    text-align: center;
    color: #fff;
    backdrop-filter: blur(1.5px);
}

.footer-editor-lock-overlay__content {
    max-width: 30rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-editor-lock-overlay__content strong {
    font-size: 1rem;
    line-height: 1.5;
}

.footer-editor-lock-overlay__content span {
    font-size: 0.925rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.tooltip {
    --tblr-tooltip-max-width: 18rem;
}

.tooltip .tooltip-inner {
    padding: 0.65rem 0.8rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: left;
}

[data-bs-theme=dark] .tooltip {
    --tblr-tooltip-color: #f4f4f5;
    --tblr-tooltip-bg: #17181a;
    --tblr-tooltip-opacity: 1;
}

[data-bs-theme=dark] .tooltip .tooltip-inner {
    border: 1px solid #2a2c30;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
}

#modal-invoice-preview {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
    z-index: 10500 !important;
}

#modal-invoice-preview.fade:not(.show) {
    display: none !important;
}

#modal-invoice-preview .modal-dialog {
    position: relative !important;
    margin: auto !important;
    transform: none !important;
    width: calc(85vh * 0.707);
    max-width: 92vw;
    max-height: 85vh;
}

#modal-invoice-preview .modal-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#modal-invoice-preview .modal-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    background: #eef4fa;
}

#modal-invoice-preview .modal-body iframe {
    width: 100%;
    height: 70vh;
    min-height: 640px;
    border: none;
    display: block;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}

@media (max-width: 767.98px) {
    #invoice-generator-form {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .demo-copy {
        margin-bottom: 40px;
    }

    .demo-copy-block {
        gap: 22px;
    }

    .demo-copy-title {
        font-size: 1.5rem;
    }

    .demo-copy-block p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .page--lite .page-body {
        padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
    }

    .page--lite .col-12.mb-4:last-child {
        margin-bottom: 0 !important;
    }

    #btn-preview-invoice {
        margin-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .page--lite .card-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .page--lite .card-header .card-options {
        width: auto;
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
        flex: 0 0 auto;
    }

    .page--lite .card-header .card-options .btn {
        width: auto;
        min-width: 0;
        white-space: nowrap;
        text-align: center;
        justify-content: center;
        padding-inline: 0;
        line-height: 1.35;
    }

    .page--lite .demo-add-row-button {
        width: auto;
        min-width: 108px;
        height: 50px;
        min-height: 50px;
        flex: 0 0 auto;
        padding: 0 1rem;
        font-size: 0.95rem;
        line-height: 1;
    }

    .footer-editor-lock-overlay {
        padding: 1.25rem;
    }

    #modal-invoice-preview .modal-body iframe {
        min-height: 420px;
    }
}
