/* Karvi Partner — Modern Monochrome Design System */

:root {
    --karvi-black: #0a0a0a;
    --karvi-white: #ffffff;
    --karvi-muted: #71717a;
    --karvi-border: #e4e4e7;
    --karvi-surface: #fafafa;
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    user-select: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-link:hover {
    background: #27272a;
    color: #ffffff;
}

.sidebar-link.active {
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.sidebar-link .material-symbols-rounded { font-size: 1.25rem; }

#sidebar.open { transform: translateX(0); }
#sidebar-backdrop.open { display: block; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--karvi-black);
    color: var(--karvi-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.08);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    background: #27272a;
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--karvi-white);
    color: var(--karvi-black);
    border: 1.5px solid var(--karvi-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--karvi-black);
    background: var(--karvi-surface);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    color: var(--karvi-muted);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: #f4f4f5;
    color: var(--karvi-black);
}

.btn-ghost-danger {
    color: #b91c1c;
}

.btn-ghost-danger:hover {
    background: #fef2f2;
    color: #991b1b;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #b91c1c;
    background: #dc2626;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #991b1b;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-modal.hidden {
    display: none;
}

body.admin-modal-open {
    overflow: hidden;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.admin-modal-dialog {
    position: relative;
    width: min(100%, 28rem);
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid var(--karvi-border);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    padding: 1.25rem;
}

.admin-modal-head {
    margin-bottom: 0.25rem;
}

.admin-modal-dialog.invoice-services-dialog {
    width: min(100%, 36rem);
    max-height: min(90vh, 720px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.invoice-services-dialog .admin-modal-head {
    padding: 1.25rem 1.25rem 0;
    margin-bottom: 0;
}

.invoice-services-body {
    padding: 1rem 1.25rem 1.25rem;
    overflow-y: auto;
}

.invoice-service-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.invoice-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-md);
    background: #fafafa;
}

.invoice-service-item-main {
    min-width: 0;
    flex: 1;
}

.invoice-service-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #18181b;
    line-height: 1.35;
}

.invoice-service-item-price {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #52525b;
}

.invoice-service-item-price span {
    font-weight: 500;
    color: #71717a;
}

.invoice-service-add-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
}

.invoice-service-group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--karvi-border);
}

.invoice-service-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-md);
    background: #f4f4f5;
    color: #18181b;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease;
}

.invoice-service-group-toggle:hover {
    background: #ececee;
}

.invoice-service-list-collapsible {
    margin-top: 0.65rem;
}

.invoice-service-list-collapsible.is-collapsed {
    display: none;
}

.invoice-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.invoice-actions-row .invoice-optional-label {
    margin-right: auto;
}

.invoice-select-services-btn {
    padding: 0.55rem 0.9rem !important;
    font-size: 0.8125rem !important;
}

.invoice-empty-row td {
    background: #fafafa;
}

.admin-modal-body {
    margin-top: 1rem;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.admin-modal-dialog.invoice-created-dialog {
    width: min(100%, 32rem);
    padding: 0;
    overflow: hidden;
}

.invoice-created-header {
    padding: 1.35rem 1.35rem 1rem;
    border-bottom: 1px solid var(--karvi-border);
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.invoice-created-header-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.invoice-created-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: var(--karvi-black);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.invoice-created-icon .material-symbols-rounded {
    font-size: 1.35rem;
}

.invoice-created-copyline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.invoice-created-title {
    margin: 0;
    font-family: var(--font-display, inherit);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #18181b;
}

.invoice-created-text {
    min-width: 0;
    flex: 1;
}

.invoice-created-sub {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.45;
    color: #71717a;
}

.invoice-created-copy-btn {
    flex-shrink: 0;
    align-self: center;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
}

.invoice-created-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-left: 3.35rem;
}

.invoice-created-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #f4f4f5;
    border: 1px solid var(--karvi-border);
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #3f3f46;
}

.invoice-created-status {
    font-size: 0.75rem;
    color: #71717a;
}

.invoice-created-link-card {
    padding: 1.15rem 1.35rem 1.25rem;
}

.invoice-created-link-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #71717a;
}

.invoice-created-link-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.invoice-created-link-input {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem !important;
    padding: 0.65rem 0.75rem !important;
    background: #fafafa;
}

.invoice-created-link-copy {
    flex-shrink: 0;
    width: 2.75rem;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.invoice-created-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0 1.35rem 1.35rem;
}

.invoice-created-open-btn {
    flex: 1;
    justify-content: center;
    min-width: 8rem;
}

.invoice-created-actions .btn-secondary {
    flex: 1;
    justify-content: center;
    min-width: 8rem;
}

@media (max-width: 480px) {
    .invoice-created-copyline {
        flex-direction: column;
        align-items: stretch;
    }

    .invoice-created-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .invoice-created-meta {
        padding-left: 0;
    }
}

.idb-json-view {
    max-height: 24rem;
    overflow: auto;
    margin: 0;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: var(--karvi-100);
    border: 1px solid var(--karvi-border);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.card {
    background: var(--karvi-white);
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 0 0 1px rgba(0,0,0,.02), 0 4px 24px -4px rgba(0,0,0,.06);
}

.card-elevated {
    background: var(--karvi-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 20px 60px -15px rgba(0,0,0,.12);
}

.card-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--karvi-border);
}

.stat-card {
    background: var(--karvi-white);
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #d4d4d8;
    box-shadow: 0 8px 30px -8px rgba(0,0,0,.1);
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3f3f46;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--karvi-white);
    border: 1.5px solid var(--karvi-border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--karvi-black);
    transition: all 0.2s ease;
}

.form-input::placeholder { color: #a1a1aa; }
.form-input:hover { border-color: #d4d4d8; }

.form-input:focus {
    outline: none;
    border-color: var(--karvi-black);
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.form-input-icon-wrap { position: relative; }
.form-input-icon-wrap .form-input { padding-left: 2.75rem; }

.form-input-icon-wrap .input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a1aa;
    pointer-events: none;
}

textarea.form-input { resize: vertical; min-height: 80px; }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-pending {
    background: #f4f4f5;
    color: #52525b;
    border: 1px solid #e4e4e7;
}

.status-signed {
    background: var(--karvi-black);
    color: var(--karvi-white);
}

.data-table-wrap {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--karvi-border);
    background: var(--karvi-white);
}

.data-table { width: 100%; border-collapse: collapse; }

.data-table thead th {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #71717a;
    background: #fafafa;
    border-bottom: 1px solid var(--karvi-border);
}

.data-table tbody td {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f4f4f5;
    vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: #fafafa; }

.contract-card-mobile {
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    background: var(--karvi-white);
}

.signature-canvas {
    width: 100%;
    max-width: 100%;
    height: 200px;
    border: 2px dashed #d4d4d8;
    border-radius: var(--radius-lg);
    background: #fafafa;
    cursor: crosshair;
    touch-action: none;
    transition: border-color 0.2s;
}

.signature-canvas:hover { border-color: var(--karvi-black); }

.tab-group {
    display: inline-flex;
    padding: 4px;
    background: #f4f4f5;
    border-radius: var(--radius-md);
    gap: 2px;
}

.tab-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    background: transparent;
    color: #71717a;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: calc(var(--radius-md) - 4px);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--karvi-white);
    color: var(--karvi-black);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.tab-btn:not(.active):hover { color: var(--karvi-black); }

.pdf-viewer {
    width: 100%;
    height: min(70vh, 640px);
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-lg);
    background: #f4f4f5;
}

.steps-bar {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
}

.step-item:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #e4e4e7;
    margin: 0 0.75rem;
}

.step-item.done:not(:last-child)::after { background: var(--karvi-black); }

.step-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #e4e4e7;
    color: #a1a1aa;
    background: var(--karvi-white);
    shrink: 0;
}

.step-item.active .step-dot,
.step-item.done .step-dot {
    background: var(--karvi-black);
    border-color: var(--karvi-black);
    color: var(--karvi-white);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a1a1aa;
    white-space: nowrap;
}

.step-item.active .step-label,
.step-item.done .step-label { color: var(--karvi-black); }

.copy-link-box {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.copy-link-box input {
    flex: 1;
    font-size: 0.8125rem;
    font-family: ui-monospace, monospace;
}

.empty-state { text-align: center; padding: 4rem 2rem; }

.empty-state-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-xl);
    background: #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon .material-symbols-rounded {
    font-size: 2.5rem;
    color: #a1a1aa;
}

.success-ring {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--karvi-black);
    color: var(--karvi-white);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scale-in 0.5s cubic-bezier(.4,0,.2,1);
}

.success-ring .material-symbols-rounded { font-size: 2.5rem; }

.info-box {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fafafa;
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: #52525b;
    line-height: 1.5;
}

.checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 1.5px solid var(--karvi-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-card:hover { border-color: #d4d4d8; background: #fafafa; }

.checkbox-card:has(input:checked) {
    border-color: var(--karvi-black);
    background: #fafafa;
}

.checkbox-card input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 2px;
    accent-color: var(--karvi-black);
    shrink: 0;
}

.upload-zone {
    border: 2px dashed #d4d4d8;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--karvi-black);
    background: #fafafa;
}

.upload-zone input[type="file"] { display: none; }

@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in { animation: fade-in 0.4s ease forwards; }

.form-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--karvi-black);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--karvi-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fafafa;
    border: 1.5px solid var(--karvi-black);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.link-success-box {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.link-success-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--karvi-black);
}

@media (max-width: 768px) {
    .data-table-wrap { display: none; }
    .mobile-cards { display: block; }
}

@media (min-width: 769px) {
    .mobile-cards { display: none; }
}

@media (max-width: 640px) {
    .step-label { display: none; }
    .pdf-viewer { height: 50vh; min-height: 280px; }
}

/* ── Language Switcher (floating, no header) ── */
.lang-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--karvi-border);
    border-radius: 9999px;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.lang-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--karvi-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-option:hover {
    color: var(--karvi-black);
    background: #f4f4f5;
}

.lang-option.active {
    background: var(--karvi-black);
    color: var(--karvi-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-divider {
    width: 1px;
    height: 1rem;
    background: var(--karvi-border);
    margin: 0 2px;
}

/* ── Mobile sidebar FAB ── */
.mobile-nav-fab {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 45;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--karvi-black);
    color: var(--karvi-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s;
}

.mobile-nav-fab:active {
    transform: scale(0.95);
}

/* ── Compact contract form ── */
.compact-form .cf-row {
    display: grid;
    gap: 0.75rem;
}

.cf-row-1 { grid-template-columns: 1fr; }
.cf-row-2 { grid-template-columns: 1fr; }
.cf-row-3 { grid-template-columns: 1fr; }

@media (min-width: 1024px) {
    .cf-row-2 { grid-template-columns: 1fr 1fr; }
    .cf-row-3 { grid-template-columns: repeat(3, 1fr); }
}

.cf-card {
    background: #fafafa;
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    height: 100%;
}

.cf-card-commission {
    background: #fff;
}

.cf-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--karvi-border);
}

.cf-card-icon {
    font-size: 1.125rem;
    color: var(--karvi-black);
}

.cf-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--karvi-black);
    line-height: 1.2;
}

.cf-card-note {
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--karvi-black);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.cf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
}

.cf-grid-stacked {
    grid-template-columns: 1fr;
}

.cf-grid-thirds {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .cf-grid-thirds {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cf-card-full {
    width: 100%;
}

.cf-grid-commission {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .cf-grid:not(.cf-grid-stacked):not(.cf-grid-commission) {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cf-field { min-width: 0; }
.cf-span-full { grid-column: 1 / -1; }
.cf-span-3 { grid-column: span 2; }
.cf-span-2 { grid-column: span 2; }
.cf-span-1 { grid-column: span 1; }

@media (min-width: 640px) {
    .cf-span-3 { grid-column: span 3; }
}

.compact-form .cf-hint {
    font-size: 0.8125rem;
    color: #71717a;
    margin-top: 0.375rem;
    line-height: 1.4;
}

.brand-radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.brand-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1.5px solid var(--karvi-border);
    border-radius: var(--radius-md);
    background: #fff;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.brand-radio-option:has(input:checked) {
    border-color: var(--karvi-black);
    background: var(--karvi-black);
    color: #fff;
}

.brand-radio-option input[type="radio"],
.brand-radio-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.brand-radio-option:hover {
    border-color: var(--karvi-black);
}

.cf-brand-owners-row {
    margin-bottom: 0;
}

.cf-brand-owners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1rem;
    align-items: end;
}

@media (min-width: 640px) {
    .cf-brand-owners-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

.cf-brand-owners-brand .brand-radio-group {
    margin-top: 0.25rem;
}

.cf-brand-owners-count .form-input {
    width: 100%;
}

.compact-form .cf-card-commission .cf-grid-commission {
    grid-template-columns: repeat(2, 1fr);
}

/* legacy section styles kept for other pages */
.form-section-block {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--karvi-border);
}

.commission-block {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--karvi-border);
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.commission-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--karvi-black);
    color: var(--karvi-white);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Registration wizard */
html:has(body.reg-page),
body.reg-page {
    overflow-x: hidden;
    min-height: 100dvh;
    height: auto;
}

body.reg-page {
    display: flex;
    flex-direction: column;
}

body.reg-page main {
    flex: 1 1 auto;
    min-height: 0;
    max-width: none;
    width: 100%;
    padding: 0;
    height: auto;
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.reg-page > footer {
    flex-shrink: 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

body.hide-global-lang > .lang-switcher {
    display: none;
}

.reg-shell {
    flex: 1;
    min-height: 0;
    height: auto;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 1rem calc(4.75rem + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reg-shell-done,
.reg-shell-complete {
    justify-content: center;
    padding-bottom: 1rem;
}

.reg-shell-complete .reg-footer {
    display: none;
}

.reg-header {
    flex-shrink: 0;
}

.reg-header h1 {
    font-size: 1.375rem;
}

.reg-header > p {
    font-size: 0.8125rem;
}

.reg-steps-simple {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
    margin: 0.625rem 0 0;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a1a1aa;
}

.reg-steps-simple li.active {
    color: var(--karvi-black);
    font-weight: 700;
}

.reg-steps-simple li.done {
    color: #71717a;
}

.reg-main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.reg-panel {
    animation: fade-in 0.25s ease;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reg-panel.hidden {
    display: none;
}

.reg-panel-head-compact {
    flex-shrink: 0;
}

.reg-panel-head-compact h2 {
    font-size: 1.125rem;
}

.reg-panel-head-compact p {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
}

.reg-panel-head h2 {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--karvi-black);
}

.reg-panel-head p {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #71717a;
}

.reg-step-2-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #52525b;
    text-align: left;
}

.reg-summary-card {
    margin-top: 0.5rem;
    padding: 0;
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-xl);
    background: #fff;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.reg-panel-step1 .reg-summary-list-item {
    padding: 0.625rem 0.875rem;
}

.reg-panel-step1 .reg-summary-value {
    font-size: 0.875rem;
}

.reg-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.reg-summary-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--karvi-border);
    text-align: left;
}

.reg-summary-list-item:last-child {
    border-bottom: 0;
}

.reg-summary-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #71717a;
    text-align: left;
}

.reg-summary-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--karvi-black);
    word-break: break-word;
    text-align: left;
}

.reg-info-box,
.reg-legal-block {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: #fafafa;
    border: 1px solid var(--karvi-border);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #52525b;
}

.reg-info-box {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.reg-legal-block p + p {
    margin-top: 0.75rem;
}

.reg-legal-block-compact {
    display: grid;
    gap: 0.75rem;
}

.reg-modal-dialog-sm {
    width: min(24rem, 100%);
    height: auto;
    max-height: none;
}

.reg-pdf-required-body {
    padding: 1.25rem 1rem 0.5rem;
    text-align: center;
}

.reg-pdf-required-icon {
    display: block;
    margin: 0 auto 0.75rem;
    font-size: 2.5rem;
    color: var(--karvi-950);
}

.reg-pdf-required-body p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #52525b;
}

.reg-pdf-required-foot {
    padding: 1rem;
}

.reg-pdf-card:focus-visible {
    outline: 2px solid var(--karvi-950);
    outline-offset: 2px;
}

.reg-panel-step2 {
    gap: 0;
    flex: 1;
    min-height: 0;
    justify-content: flex-start;
}

.reg-panel-step2 .reg-panel-head-compact {
    flex-shrink: 0;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 1px solid #ececee;
}

.reg-panel-step2 .reg-panel-head-compact h2 {
    font-size: 1rem;
    line-height: 1.45;
    margin: 0;
}

.reg-panel-step2 .reg-step-2-text {
    font-size: 0.75rem;
    line-height: 1.65;
    margin-top: 0.375rem;
}

.reg-doc-email-field {
    margin: 0 0 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid #ececee;
    border-radius: 0.875rem;
    background: #fafafb;
}

.reg-doc-email-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a1f;
    margin-bottom: 0.5rem;
}

.reg-doc-email-input {
    width: 100%;
}

.reg-doc-email-hint {
    margin: 0.5rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.55;
    color: #6b6b76;
}

html:has(body.reg-step-doc-active),
body.reg-page.reg-step-doc-active {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

body.reg-page.reg-step-doc-active main {
    flex: 1 1 0;
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
}

.reg-shell.reg-shell-step2 {
    --reg-footer-offset: calc(3.75rem + env(safe-area-inset-bottom));
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    min-height: 0;
    flex: 1 1 0;
    padding: 0.75rem 1rem 0;
    overflow: hidden;
}

.reg-shell.reg-shell-step2 .reg-header {
    padding: 0 0 0.75rem;
    border-bottom: 1px solid #ececee;
    margin-bottom: 0;
}

.reg-shell.reg-shell-step2 .reg-header h1 {
    line-height: 1.4;
    margin: 0;
}

.reg-shell.reg-shell-step2 .reg-header > p {
    line-height: 1.55;
    margin-top: 0.375rem;
}

.reg-shell.reg-shell-step2 .reg-steps-simple {
    margin-top: 0.75rem;
    gap: 0.5rem 1.125rem;
    line-height: 1.5;
}

.reg-shell.reg-shell-step2 .reg-main {
    flex: 1 1 0;
    min-height: 0;
}

.reg-shell.reg-shell-step2 .reg-doc-card {
    flex: 0 0 auto;
    height: 50dvh;
    max-height: 50dvh;
    min-height: 0;
}

.reg-doc-card {
    flex: 1 1 0;
    min-height: 0;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-xl);
    background: #fff;
    overflow: hidden;
    position: relative;
}

.reg-doc-card.is-viewed {
    border-color: var(--karvi-border);
    background: #fff;
}

.reg-doc-scroll {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 0.5rem;
    background: #fff;
}

.contract-doc {
    width: 100%;
    margin: 0;
    padding: 0.875rem 0.75rem 1.25rem;
    background: #fff;
    color: #3f3f46;
    font-size: 0.6875rem;
    line-height: 1.5;
}

.contract-doc-hero {
    margin-bottom: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f4f4f5;
}

.contract-doc-title {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #18181b;
    letter-spacing: -0.01em;
}

.contract-doc-meta {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.55;
    color: #52525b;
}

.contract-doc-divider {
    margin: 0.625rem 0;
    text-align: center;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.contract-doc-block {
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #f4f4f5;
}

.contract-doc-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contract-doc-block-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #18181b;
}

.contract-doc-block-title-plain {
    margin-bottom: 0.5rem;
}

.contract-doc-block-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #18181b;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
}

.contract-doc-copy p {
    margin: 0 0 0.2rem;
}

.contract-doc-note {
    margin-top: 0.375rem !important;
    color: #71717a;
    font-size: 0.625rem;
}

.contract-doc-fields {
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.contract-doc-field {
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    background: #fafafa;
}

.contract-doc-field dt {
    margin: 0 0 0.125rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.contract-doc-field dd {
    margin: 0;
    font-size: 0.6875rem;
    color: #18181b;
    word-break: break-word;
}

.contract-doc-panel {
    margin-bottom: 0.625rem;
    border: 1px solid #ececee;
    border-radius: 0.625rem;
    overflow: hidden;
    background: #fafafa;
}

.contract-doc-panel-title {
    margin: 0;
    padding: 0.5rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #18181b;
    background: #f4f4f5;
}

.contract-doc-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contract-doc-rows li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4375rem 0.625rem;
    border-top: 1px solid #ececee;
    font-size: 0.6875rem;
}

.contract-doc-row-label {
    flex: 1;
    color: #52525b;
}

.contract-doc-row-value {
    flex-shrink: 0;
    font-weight: 600;
    color: #18181b;
    text-align: right;
}

.contract-doc-mini-title {
    margin: 0.75rem 0 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #18181b;
}

.contract-doc-bullets {
    margin: 0;
    padding-left: 1rem;
}

.contract-doc-bullets li {
    margin-bottom: 0.25rem;
}

.contract-doc-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.contract-doc-item-num {
    flex-shrink: 0;
    min-width: 1.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #71717a;
    padding-top: 0.05rem;
}

.contract-doc-item-body {
    flex: 1;
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.5;
    color: #3f3f46;
}

.contract-doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.contract-doc-tags li {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #e4e4e7;
    background: #fff;
    font-size: 0.625rem;
    color: #71717a;
}

.contract-doc-tags li.is-active {
    border-color: #18181b;
    background: #18181b;
    color: #fff;
    font-weight: 600;
}

.contract-doc-brand-check {
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 700;
}

.contract-doc-block-sign {
    padding-top: 0.25rem;
}

.contract-doc-sign-grid {
    display: grid;
    gap: 0.5rem;
}

.contract-doc-sign-card {
    padding: 0.625rem;
    border-radius: 0.625rem;
    background: #fafafa;
    font-size: 0.625rem;
    color: #52525b;
}

.contract-doc-sign-card p {
    margin: 0 0 0.2rem;
}

.contract-doc-sign-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #18181b !important;
    margin-bottom: 0.25rem !important;
}

.contract-doc-sign-space {
    height: 2rem;
    margin: 0.375rem 0 0.25rem;
    border-bottom: 1px solid #d4d4d8;
}

.contract-doc-sign-date {
    font-size: 0.625rem;
    color: #71717a;
}

.reg-pdf-card {
    flex: 1;
    min-height: 0;
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    border: 2px dashed #d4d4d8;
    border-radius: var(--radius-xl);
    background: #fff;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.reg-pdf-card:active {
    transform: scale(0.995);
    background: #fafafa;
}

.reg-pdf-card.is-viewed {
    border-style: solid;
    border-color: #16a34a;
    background: #f0fdf4;
}

.reg-pdf-card-inner {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    gap: 0.625rem;
}

.reg-pdf-card-status {
    flex-shrink: 0;
    padding: 0 1rem 1rem;
}

.reg-pdf-card .reg-pdf-viewed {
    margin-top: 0;
}

.reg-pdf-icon {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0;
    border-radius: 1.25rem;
    background: #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reg-pdf-icon .material-symbols-rounded {
    font-size: 3rem;
    color: var(--karvi-950);
}

.reg-pdf-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--karvi-black);
}

.reg-pdf-card-hint {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #52525b;
    max-width: 20rem;
}

.reg-pdf-card-tap {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: var(--karvi-950);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
}

.reg-pdf-card.is-viewed .reg-pdf-card-tap {
    background: #16a34a;
}

.reg-pdf-card p {
    margin-top: 0;
    font-size: 0.875rem;
    color: #71717a;
}

.reg-pdf-card .btn-primary {
    margin-top: 1.25rem;
}

.reg-pdf-viewed {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.reg-owner-progress {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--karvi-black);
    flex-shrink: 0;
}

.reg-shell-step3 {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

.reg-panel-step3 {
    flex: 1;
    min-height: 0;
}

.reg-panel-step3 .reg-sign-form,
.reg-panel-step3 .reg-sign-choice {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reg-panel-step3 .reg-signer-name {
    flex-shrink: 0;
    margin: 0.75rem 0 1rem;
    text-align: center;
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--karvi-black);
    word-break: break-word;
}

.reg-sign-method-grid {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reg-sign-method-btn {
    flex: 1;
    min-height: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    border: 2px solid var(--karvi-border);
    border-radius: var(--radius-xl);
    background: #fff;
    color: var(--karvi-black);
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.reg-sign-method-btn .material-symbols-rounded {
    font-size: 2rem;
}

.reg-sign-method-btn:hover {
    border-color: var(--karvi-black);
    background: #fafafa;
}

.reg-sign-upload-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reg-sign-upload-panel.hidden {
    display: none;
}

.reg-sign-upload-simple {
    flex: 1;
    min-height: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 2px dashed #d4d4d8;
    border-radius: var(--radius-xl);
    background: #fafafa;
    color: var(--karvi-black);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s;
}

.reg-sign-upload-simple:hover {
    border-color: var(--karvi-black);
}

.reg-sign-upload-simple .material-symbols-rounded {
    font-size: 2.5rem;
    color: #71717a;
}

.reg-sign-upload-simple input[type="file"] {
    display: none;
}

.reg-sign-upload-preview {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: contain;
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    background: #fff;
}

.reg-sign-upload-preview.hidden {
    display: none;
}

.reg-sign-draw-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reg-sign-draw-panel.hidden {
    display: none;
}

.reg-sign-draw-stage-inline {
    flex: 1;
    min-height: 12rem;
    position: relative;
    background: #fff;
    display: flex;
}

.reg-sign-draw-stage-inline .reg-sign-draw-frame {
    flex: 1;
    min-height: 0;
    width: 100%;
    position: relative;
    border: 2px dashed #a1a1aa;
    border-radius: var(--radius-lg);
    background: #fafafa;
    overflow: hidden;
}

.reg-sign-draw-stage-inline .reg-sign-draw-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #d4d4d8;
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.reg-sign-draw-stage-inline .reg-sign-draw-hint.hidden {
    display: none;
}

.reg-sign-draw-stage-inline .signature-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    touch-action: none;
    cursor: crosshair;
    z-index: 1;
}

.reg-sign-draw-clear {
    flex-shrink: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--karvi-black);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.reg-sign-draw-clear:hover {
    background: #f4f4f5;
}

.reg-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 15% 85%;
    gap: 0.75rem;
    padding: 0.875rem 1rem calc(0.875rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--karvi-border);
    backdrop-filter: blur(8px);
}

.reg-footer:has(.reg-footer-back.hidden) {
    grid-template-columns: 1fr;
}

.reg-footer-back,
.reg-footer-action {
    min-width: 0;
    justify-content: center;
}

.reg-footer-back {
    padding-left: 0;
    padding-right: 0;
}

.reg-footer-back .material-symbols-rounded {
    font-size: 1.375rem;
}

.reg-footer .btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.reg-success-card {
    text-align: center;
    padding: 2rem 1rem;
}

.reg-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.reg-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.reg-modal-dialog {
    position: relative;
    width: min(960px, 100%);
    height: min(88vh, 760px);
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.reg-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--karvi-border);
}

.reg-modal-head h3 {
    font-size: 0.9375rem;
    font-weight: 700;
}

.reg-modal-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #f4f4f5;
    min-height: 0;
}

.reg-modal-mobile {
    padding: 0;
    align-items: stretch;
}

.reg-modal-mobile .reg-modal-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
}

.reg-modal-mobile .reg-modal-frame {
    -webkit-overflow-scrolling: touch;
}

/* Location gate — blocks all contract content until GPS granted */
body.reg-location-pending > footer {
    display: none;
}

body.reg-location-pending #regPdfViewer {
    display: none !important;
}

/* Self-hosted PDF.js viewer (all devices) */
body.reg-pdf-viewer-open {
    overflow: hidden;
}

.reg-pdf-viewer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    background: #525659;
}

.reg-pdf-viewer-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0.75rem;
    background: #fff;
    border-bottom: 1px solid var(--karvi-border);
}

.reg-pdf-viewer-head h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--karvi-950);
}

.reg-pdf-viewer-host {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0.5rem 1rem;
}

.reg-pdf-page-canvas {
    display: block;
    width: calc(100% - 0.5rem);
    max-width: 920px;
    height: auto;
    margin: 0 auto 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.reg-pdf-viewer-status {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #fff;
    font-size: 0.875rem;
    text-align: center;
}

.reg-pdf-viewer-error {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    color: #fff;
    text-align: center;
}

.reg-pdf-viewer-error p {
    font-size: 0.875rem;
    line-height: 1.5;
}

.reg-pdf-viewer-foot {
    flex-shrink: 0;
    padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--karvi-border);
}

.reg-pdf-viewer-done {
    width: 100%;
    justify-content: center;
}

body.reg-pdf-view-page main {
    flex: 1;
    min-height: 0;
    max-width: none;
    width: 100%;
    padding: 0;
}

.reg-pdf-view-page-shell {
    min-height: calc(100dvh - 4rem);
    display: flex;
    flex-direction: column;
    background: #525659;
}

.reg-pdf-view-page-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0.75rem;
    background: #fff;
    border-bottom: 1px solid var(--karvi-border);
}

.reg-pdf-view-page-head h1 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--karvi-950);
}

.reg-pdf-view-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #f4f4f5;
    color: var(--karvi-950);
    text-decoration: none;
}

.reg-location-gate {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--karvi-bg, #fafafa);
}

.reg-location-gate-inner {
    max-width: 22rem;
    width: 100%;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl, 1.25rem);
    background: #fff;
    border: 1px solid var(--karvi-border, #e4e4e7);
    box-shadow: var(--shadow-soft, 0 4px 24px rgba(0, 0, 0, 0.06));
}

.reg-location-icon {
    font-size: 3rem;
    color: var(--karvi-950, #0a0a0a);
    margin-bottom: 1rem;
}

.reg-location-message {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--karvi-500, #71717a);
}

.reg-location-spinner {
    width: 2rem;
    height: 2rem;
    margin: 1.25rem auto 0;
    border: 3px solid var(--karvi-200, #e4e4e7);
    border-top-color: var(--karvi-950, #0a0a0a);
    border-radius: 50%;
    animation: reg-location-spin 0.8s linear infinite;
}

.reg-location-spinner.hidden {
    display: none;
}

.reg-location-retry {
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
}

@keyframes reg-location-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Temporary sign API debug modal */
.reg-api-debug-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.reg-api-debug-modal.hidden {
    display: none;
}

.reg-api-debug-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
}

.reg-api-debug-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    max-height: min(88vh, 720px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--karvi-border);
    border-radius: 1rem;
    box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.35);
    padding: 1rem 1rem 1.25rem;
}

.reg-api-debug-head h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--karvi-950);
    margin: 0 0 0.35rem;
}

.reg-api-debug-summary {
    margin: 0;
    font-size: 0.82rem;
    color: var(--karvi-600, #52525b);
    line-height: 1.45;
}

.reg-api-debug-summary.is-error {
    color: #b42318;
}

.reg-api-debug-content {
    margin: 0.85rem 0 1rem;
    padding: 0.75rem;
    background: #f8f8f8;
    border: 1px solid #e4e4e7;
    border-radius: 0.65rem;
    font-size: 0.68rem;
    line-height: 1.45;
    overflow: auto;
    flex: 1;
    white-space: pre-wrap;
    word-break: break-word;
    color: #18181b;
}

.reg-api-debug-close {
    width: 100%;
}

/* Invoice contract (Website / POS) */
.invoice-pos-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.invoice-pos-type-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    color: #52525b;
    transition: all 0.15s ease;
}

.invoice-pos-type-option:has(input:checked) {
    border-color: var(--karvi-black);
    background: #fafafa;
    color: #0a0a0a;
    font-weight: 600;
}

.invoice-pos-type-option input[type="radio"] {
    width: 0.75rem;
    height: 0.75rem;
    margin: 0;
    accent-color: #0a0a0a;
}

.invoice-pos-type-option:hover {
    border-color: #a1a1aa;
}

.invoice-page-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.invoice-page-head-spacer {
    width: 1px;
}

.invoice-back-btn {
    justify-self: start;
}

.invoice-contract-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.65fr);
    gap: 0.85rem;
    align-items: start;
}

.invoice-contract-left {
    max-width: 17.5rem;
}

.invoice-contract-left > .invoice-field-card {
    padding: 1rem;
}

.invoice-contract-left .form-group {
    margin-bottom: 0.75rem;
}

.invoice-contract-left .form-group:last-child {
    margin-bottom: 0;
}

.invoice-field-card {
    padding: 1.25rem;
}

.invoice-customer-textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.invoice-customer-fields .form-group:last-child {
    margin-bottom: 0;
}

.invoice-section-title {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #71717a;
    margin-bottom: 1rem;
}

.invoice-optional-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.invoice-optional-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.invoice-optional-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: #0a0a0a;
}

.invoice-optional-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #f4f4f5;
    color: #52525b;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.invoice-optional-text {
    font-size: 0.8125rem;
    color: #3f3f46;
}

.invoice-optional-price {
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #18181b;
    white-space: nowrap;
}

.invoice-optional-price-input {
    width: 7.5rem;
    min-width: 7.5rem;
    margin-left: auto;
    padding: 0.45rem 0.65rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600;
    text-align: right;
}

.invoice-add-line-btn {
    padding: 0.55rem 0.9rem !important;
    font-size: 0.8125rem !important;
}

.invoice-line-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--karvi-border);
    border-radius: var(--radius-md);
}

.invoice-line-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.invoice-line-table thead th {
    background: #0a0a0a;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem 0.65rem;
    text-align: left;
}

.invoice-line-table tbody td {
    padding: 0.65rem;
    border-top: 1px solid var(--karvi-border);
    vertical-align: middle;
}

.invoice-line-table .form-input {
    padding: 0.55rem 0.65rem;
    font-size: 0.8125rem;
}

.invoice-line-qty {
    width: 4.5rem;
}

.invoice-line-price {
    min-width: 7rem;
}

.invoice-line-total {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #18181b;
    white-space: nowrap;
}

.invoice-line-remove {
    color: #a1a1aa;
}

.invoice-totals-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--karvi-border);
}

.invoice-total-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.invoice-total-item span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717a;
}

.invoice-total-item strong {
    font-size: 0.875rem;
    color: #18181b;
}

.invoice-discount-input {
    max-width: 100%;
    padding: 0.45rem 0.6rem !important;
    font-size: 0.8125rem !important;
}

.invoice-total-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: #fafafa;
    border: 1px solid var(--karvi-border);
}

.invoice-total-amount span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #52525b;
}

.invoice-total-amount strong {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 1.35rem;
    color: #0a0a0a;
}

.invoice-submit-btn {
    padding: 0.95rem 1.5rem !important;
    font-size: 0.95rem !important;
}

.invoice-doc-table-wrap {
    overflow-x: auto;
    margin-top: 0.75rem;
}

.invoice-doc-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-doc-table th,
.invoice-doc-table td {
    border: 1px solid var(--karvi-border);
    padding: 0.9rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: left;
}

.invoice-doc-table th {
    background: #0a0a0a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.invoice-doc-product-label,
.invoice-doc-product-amount {
    font-weight: 700;
}

.invoice-doc-totals {
    margin-top: 1rem;
    display: grid;
    gap: 0;
    width: 100%;
}

.invoice-doc-totals .invoice-doc-total-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    padding: 0.35rem 0.55rem;
}

.invoice-doc-totals .invoice-doc-total-line-alt {
    background: #f6f9fc;
}

.invoice-doc-total-vat-row {
    margin-top: 0.75rem;
    border-top: 1px solid #a5c3e1;
    padding-top: 0.65rem;
}

.invoice-doc-total-discount,
.invoice-doc-total-discount span,
.invoice-doc-total-discount strong {
    color: #226e37;
    font-weight: 700;
}

.invoice-doc-total-net-total,
.invoice-doc-total-net-total strong {
    font-weight: 700;
    font-size: 1.15rem !important;
}

.invoice-doc-total-final,
.invoice-doc-total-final span,
.invoice-doc-total-final strong {
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #a5c3e1;
    font-size: 0.875rem;
    font-weight: 700;
}

.invoice-doc-total-final strong {
    font-size: 0.875rem;
}

.invoice-doc-total-row {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #a5c3e1;
    font-weight: 700;
    font-size: 1rem !important;
}

.invoice-contract-doc {
    background: #ffffff;
    color: #666666;
}

.invoice-contract-doc .contract-doc-copy,
.invoice-contract-doc .contract-doc-meta,
.invoice-contract-doc .invoice-doc-totals,
.invoice-contract-doc .invoice-doc-term-list li,
.invoice-contract-doc .invoice-doc-closing p,
.invoice-contract-doc .invoice-doc-installment-note {
    color: #666666;
}

.invoice-contract-doc .invoice-doc-table th {
    background: #eef3f9;
    color: #6e6e6e;
    font-weight: 400;
}

.invoice-contract-doc .invoice-doc-table tbody tr:nth-child(even) {
    background: #f6f9fc;
}

.invoice-doc-plan-subtitle {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #666666;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #a5c3e1;
}

.invoice-doc-page-break {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #b09b71;
}

.invoice-doc-plan-table td:last-child,
.invoice-doc-plan-table th:last-child {
    text-align: right;
}

.invoice-doc-amount-header {
    text-align: right;
    vertical-align: middle;
    line-height: 1.2;
}

.invoice-doc-amount-header span {
    display: block;
}

.invoice-doc-amount-header span:last-child {
    font-size: 0.72rem;
    font-weight: 600;
}

.invoice-doc-fixed-price-notice {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #666666;
}

.invoice-contract-doc .invoice-doc-offer-meta-main {
    color: #666666;
    font-weight: 700;
}

.invoice-contract-doc .contract-doc-title {
    color: #666666;
}

.invoice-contract-doc .invoice-doc-meta-value {
    font-weight: 700;
    color: #666666;
}

.invoice-doc-customer-lines {
    display: grid;
    gap: 0.15rem;
}

.invoice-doc-customer-line {
    font-weight: 700;
    line-height: 1.5;
    color: #666666;
    display: block;
}

.invoice-doc-installment-table-wrap {
    margin-top: 0.75rem;
}

.invoice-doc-installment-table {
    width: 100%;
    max-width: 18rem;
    border-collapse: collapse;
}

.invoice-doc-installment-table th,
.invoice-doc-installment-table td {
    border: 1px solid var(--karvi-border);
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    color: #666666;
}

.invoice-doc-installment-table th {
    background: #f4f4f5;
    font-weight: 700;
    text-align: left;
}

.invoice-doc-installment-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.invoice-contract-doc .invoice-doc-term-title,
.invoice-contract-doc .contract-doc-block-title-plain {
    color: #666666;
    border-bottom: 2px solid #a5c3e1;
    padding-bottom: 0.35rem;
}

.invoice-contract-doc .invoice-doc-term-list strong {
    text-decoration: underline;
    text-decoration-color: #b09b71;
}

.invoice-contract-doc .invoice-doc-closing {
    border-top-color: #b09b71;
}

.invoice-contract-doc .invoice-doc-offer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 2rem;
}

.invoice-doc-offer-meta-row {
    width: 100%;
    margin-top: 2.1rem;
    margin-bottom: 1.6rem;
}

.invoice-doc-offer-meta-date {
    display: grid;
    gap: 0.15rem;
    text-align: right;
    margin-left: auto;
}

.invoice-doc-offer-meta-dates {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
    padding-right: 0.25rem;
}

.invoice-doc-offer-meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #71717a;
    font-weight: 700;
}

.invoice-doc-offer-meta-main {
    font-size: 1.2rem;
    color: #18181b;
    white-space: nowrap;
    padding-top: 0.1rem;
}

.invoice-doc-installment-note {
    margin-top: 0.65rem;
    color: #52525b;
}

.invoice-doc-terms {
    border-top: 1px solid var(--karvi-border);
    padding-top: 1.25rem;
}

.invoice-doc-term + .invoice-doc-term {
    margin-top: 1.25rem;
}

.invoice-doc-term-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #18181b;
    margin-bottom: 0.5rem;
}

.invoice-doc-term-body {
    margin-left: 1.35rem;
    text-align: left;
}

.invoice-doc-term-list {
    margin: 0.35rem 0 0 1.35rem;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
    text-align: left;
}

.invoice-doc-term-list li {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #3f3f46;
}

.invoice-doc-term-list strong {
    display: block;
    color: #18181b;
    margin-bottom: 0.35rem;
    text-decoration: underline;
}

.invoice-doc-term-centered {
    text-align: center;
}

.invoice-doc-closing {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--karvi-border);
}

.invoice-doc-closing p {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #3f3f46;
}

.invoice-doc-closing p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .invoice-contract-grid {
        grid-template-columns: 1fr;
    }

    .invoice-contract-left {
        max-width: none;
    }

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

@media (max-width: 640px) {
    .invoice-page-head {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .invoice-page-head h2 {
        text-align: left;
    }

    .invoice-page-head-spacer {
        display: none;
    }

    .invoice-totals-grid {
        grid-template-columns: 1fr;
    }
}
