/* Scoped journal forms. Extracted from add/edit pages to keep shared report styles isolated. */
.qp-voucher-add-page {
        padding: 18px 0 30px;
    }

    .qp-voucher-add-page .qp-page-shell {
        display: flex;
        flex-direction: column;
        gap: 18px;
        min-width: 0;
    }

    .qp-voucher-add-page .qp-page-header-card {
        position: relative;
        overflow: hidden;
        border-radius: 30px;
        padding: 1px;
        background: linear-gradient(135deg, rgba(14,165,233,.16), rgba(59,130,246,.18), rgba(99,102,241,.16));
        box-shadow: 0 20px 60px rgba(15,23,42,.08);
    }

    .qp-voucher-add-page .qp-page-header-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at top right, rgba(59,130,246,.16), transparent 26%),
            radial-gradient(circle at bottom left, rgba(99,102,241,.14), transparent 24%);
        pointer-events: none;
    }

    .qp-voucher-add-page .qp-page-header-content {
        position: relative;
        z-index: 1;
        border-radius: 30px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        padding: 26px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        flex-wrap: wrap;
    }

    .qp-voucher-add-page .qp-page-header-left {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        min-width: 0;
    }

    .qp-voucher-add-page .qp-page-icon {
        width: 74px;
        height: 74px;
        border-radius: 24px;
        display: grid;
        place-items: center;
        font-size: 28px;
        color: #fff;
        background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
        box-shadow: 0 18px 34px rgba(29,78,216,.24);
        flex-shrink: 0;
    }

    .qp-voucher-add-page .qp-page-title-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 6px;
    }

    .qp-voucher-add-page .qp-page-title {
        margin: 0;
        font-size: 31px;
        font-weight: 900;
        color: #0f172a;
        letter-spacing: -.4px;
    }

    .qp-voucher-add-page .qp-page-badge {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 0 12px;
        border-radius: 999px;
        background: rgba(37,99,235,.08);
        color: #2563eb;
        font-size: 12px;
        font-weight: 800;
    }

    .qp-voucher-add-page .qp-page-subtitle {
        color: #64748b;
        font-size: 14px;
        margin-bottom: 12px;
        max-width: 760px;
        line-height: 1.95;
        font-weight: 600;
    }

    .qp-voucher-add-page .qp-breadcrumb {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .qp-voucher-add-page .qp-breadcrumb li {
        color: var(--ui-muted);
        font-size: 13px;
        font-weight: 700;
    }

    .qp-voucher-add-page .qp-breadcrumb li a {
        color: var(--ui-text);
        text-decoration: none;
    }

    .qp-voucher-add-page .qp-breadcrumb li:not(:last-child)::after {
        content: "/";
        margin-inline-start: 8px;
        color: var(--ui-subtle);
    }

    .qp-voucher-add-page .qp-page-header-right {
        display: flex;
        align-items: stretch;
    }

    .qp-voucher-add-page .qp-header-side-card {
        min-width: 250px;
        border-radius: 22px;
        padding: 18px 18px;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: #fff;
        box-shadow: 0 16px 34px rgba(15,23,42,.18);
    }

    .qp-voucher-add-page .qp-header-side-label {
        font-size: 12px;
        opacity: .72;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .qp-voucher-add-page .qp-header-side-value {
        font-size: 18px;
        font-weight: 900;
        margin-bottom: 6px;
    }

    .qp-voucher-add-page .qp-header-side-hint {
        font-size: 12px;
        line-height: 1.9;
        opacity: .82;
        font-weight: 600;
    }

    .qp-voucher-add-page .qp-alert-banner {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 18px;
        border-radius: 20px;
        border: 1px solid #fde68a;
        background: linear-gradient(180deg, #fffdf3 0%, #fffbeb 100%);
        color: #92400e;
    }

    .qp-voucher-add-page .qp-alert-banner-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fef3c7;
        color: #d97706;
        font-size: 18px;
        flex-shrink: 0;
    }

    .qp-voucher-add-page .qp-alert-banner-content {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .qp-voucher-add-page .qp-alert-banner-content strong {
        font-weight: 900;
        font-size: 14px;
    }

    .qp-voucher-add-page .qp-alert-banner-content span {
        font-size: 13px;
        font-weight: 700;
    }

    .qp-voucher-add-page .qp-stats-row {
        margin-top: 2px;
    }

    .qp-voucher-add-page .qp-stat-card {
        height: 100%;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid #e2e8f0;
        border-radius: 24px;
        padding: 18px;
        display: flex;
        align-items: center;
        gap: 16px;
        box-shadow: 0 12px 30px rgba(15,23,42,.05);
        transition: all .2s ease;
        min-width: 0;
    }

    .qp-voucher-add-page .qp-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(15,23,42,.08);
    }

    .qp-voucher-add-page .qp-stat-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        display: grid;
        place-items: center;
        font-size: 22px;
        color: #fff;
        flex-shrink: 0;
    }

    .qp-voucher-add-page .qp-stat-icon-primary {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .qp-voucher-add-page .qp-stat-icon-success {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .qp-voucher-add-page .qp-stat-icon-warning {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .qp-voucher-add-page .qp-stat-icon-dark {
        background: linear-gradient(135deg, #0f172a, #334155);
    }

    .qp-voucher-add-page .qp-stat-content {
        min-width: 0;
    }

    .qp-voucher-add-page .qp-stat-label {
        color: #64748b;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .qp-voucher-add-page .qp-stat-value {
        color: #0f172a;
        font-size: 24px;
        font-weight: 900;
        line-height: 1.2;
        word-break: break-word;
    }

    .qp-voucher-add-page .qp-stat-value-sm {
        font-size: 20px;
    }

    .qp-voucher-add-page .qp-stat-hint {
        margin-top: 6px;
        color: #94a3b8;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.8;
    }

    .qp-voucher-add-page .qp-main-card {
        border-radius: 28px;
        background: #fff;
        overflow: hidden;
        min-width: 0;
    }

    .qp-voucher-add-page .qp-main-card-body {
        padding: 24px;
        overflow: hidden;
        min-width: 0;
    }

    .qp-voucher-add-page .qp-card-topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .qp-voucher-add-page .qp-card-title {
        margin: 0;
        font-size: 23px;
        font-weight: 900;
        color: #0f172a;
    }

    .qp-voucher-add-page .qp-card-desc {
        margin: 6px 0 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 700;
    }

    .qp-voucher-add-page .qp-form-shell,
.qp-voucher-add-page .qp-entry-section,
.qp-voucher-add-page .qp-note-section {
        border: 1px solid #e8eef6;
        border-radius: 24px;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        padding: 20px;
        overflow: hidden;
        min-width: 0;
    }

    .qp-voucher-add-page .qp-entry-section,
.qp-voucher-add-page .qp-note-section {
        margin-top: 18px;
    }

    .qp-voucher-add-page .qp-form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .qp-voucher-add-page .qp-label {
        font-size: 13px;
        font-weight: 900;
        color: #334155;
        margin-bottom: 0;
    }

    .qp-voucher-add-page .qp-input-wrap,
.qp-voucher-add-page .qp-picker-wrap,
.qp-voucher-add-page .qp-form-group .rz-dropdown,
.qp-voucher-add-page .qp-form-group .rz-datepicker,
.qp-voucher-add-page .qp-form-group input,
.qp-voucher-add-page .qp-form-group select,
.qp-voucher-add-page .qp-form-group textarea {
        width: 100% !important;
    }

    .qp-voucher-add-page .qp-input,
.qp-voucher-add-page .qp-form-group .rz-dropdown,
.qp-voucher-add-page .qp-form-group .rz-datepicker,
.qp-voucher-add-page .qp-form-group input[type="text"],
.qp-voucher-add-page .qp-form-group input[type="number"],
.qp-voucher-add-page .qp-form-group textarea {
        min-height: 50px !important;
        border-radius: 16px !important;
        border: 1px solid #dbe2ea !important;
        background: #fff !important;
        box-shadow: 0 4px 14px rgba(15,23,42,.04);
        transition: .2s ease;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #334155 !important;
    }

    .qp-voucher-add-page .qp-input:hover,
.qp-voucher-add-page .qp-form-group .rz-dropdown:hover,
.qp-voucher-add-page .qp-form-group .rz-datepicker:hover,
.qp-voucher-add-page .qp-form-group input:hover,
.qp-voucher-add-page .qp-form-group textarea:hover {
        border-color: #93c5fd !important;
    }

    .qp-voucher-add-page .qp-input:focus,
.qp-voucher-add-page .qp-form-group .rz-dropdown:focus-within,
.qp-voucher-add-page .qp-form-group .rz-datepicker:focus-within,
.qp-voucher-add-page .qp-form-group input:focus,
.qp-voucher-add-page .qp-form-group textarea:focus {
        border-color: #60a5fa !important;
        box-shadow: 0 0 0 4px rgba(37,99,235,.10) !important;
        outline: none !important;
    }

    .qp-voucher-add-page .qp-input {
        padding-inline: 14px 42px !important;
    }

    .qp-voucher-add-page .qp-readonly-wrap {
        position: relative;
    }

    .qp-voucher-add-page .qp-input-icon {
        position: absolute;
        top: 50%;
        left: 14px;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 14px;
        pointer-events: none;
    }

    .qp-voucher-add-page .qp-static-chip {
        min-height: 50px;
        border-radius: 16px;
        border: 1px solid #dbeafe;
        background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
        color: #1d4ed8;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 0 14px;
        font-weight: 800;
    }

    .qp-voucher-add-page .qp-static-chip-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #dbeafe;
        color: #2563eb;
    }

    .qp-voucher-add-page .qp-section-head {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 14px;
    }

    .qp-voucher-add-page .qp-section-head-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        color: #2563eb;
        font-size: 18px;
        border: 1px solid #dbeafe;
        flex-shrink: 0;
    }

    .qp-voucher-add-page .qp-section-head-icon.dark {
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        color: #0f172a;
        border-color: #e2e8f0;
    }

    .qp-voucher-add-page .qp-section-title {
        margin: 0;
        font-size: 18px;
        font-weight: 900;
        color: #0f172a;
    }

    .qp-voucher-add-page .qp-section-subtitle {
        color: #64748b;
        font-size: 13px;
        font-weight: 700;
        margin-top: 4px;
    }

    .qp-voucher-add-page .qp-line-table-wrap {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        border: 1px solid #edf2f7;
        border-radius: 22px;
        background: #fff;
        -webkit-overflow-scrolling: touch;
    }

    .qp-voucher-add-page .qp-line-table-responsive {
        overflow: visible;
        min-width: 100%;
    }

    .qp-voucher-add-page .qp-line-table {
        margin-bottom: 0;
        min-width: 1160px;
        width: max-content;
        vertical-align: middle;
    }

    .qp-voucher-add-page .qp-line-table thead th {
        background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
        color: #334155;
        font-size: 12px;
        font-weight: 900;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 16px 14px;
        white-space: nowrap;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .qp-voucher-add-page .qp-line-table tbody td {
        padding: 12px 14px;
        border-color: #eef2f7 !important;
        background: #fff;
    }

    .qp-voucher-add-page .qp-line-table tbody tr:hover td {
        background: #fcfdff;
    }

    .qp-voucher-add-page .qp-cell-wrap {
        min-width: 230px;
    }

    .qp-voucher-add-page .qp-cell-inline {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 250px;
    }

    .qp-voucher-add-page .qp-mini-action-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border: none;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
        color: #fff;
        box-shadow: 0 12px 24px rgba(15,23,42,.16);
        transition: .2s ease;
        flex: 0 0 44px;
    }

    .qp-voucher-add-page .qp-mini-action-btn i {
        color: inherit;
        font-size: 15px;
    }

    .qp-voucher-add-page .qp-mini-action-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.03);
    }

    .qp-voucher-add-page .qp-money-input {
        min-width: 130px;
        text-align: left;
        direction: ltr;
        font-variant-numeric: tabular-nums;
    }

    .qp-voucher-add-page .qp-row-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .qp-voucher-add-page .qp-row-btn {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: .18s ease;
    }

    .qp-voucher-add-page .qp-row-btn.add {
        background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
        color: #fff;
        border: 1px solid #1e293b;
    }

    .qp-voucher-add-page .qp-row-btn.add i {
        color: #fff;
    }

    .qp-voucher-add-page .qp-row-btn.add:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(15,23,42,.18);
    }

    .qp-voucher-add-page .qp-row-btn.delete {
        background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
        color: #dc2626;
        border: 1px solid #fecaca;
    }

    .qp-voucher-add-page .qp-row-btn.delete:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(220,38,38,.12);
    }

    .qp-voucher-add-page .qp-totals-row {
        margin-top: 16px;
        width: 100%;
    }

    .qp-voucher-add-page .qp-total-card {
        height: 100%;
        border-radius: 22px;
        padding: 18px;
        display: flex;
        align-items: center;
        gap: 14px;
        border: 1px solid transparent;
        box-shadow: 0 10px 28px rgba(15,23,42,.05);
        min-width: 0;
    }

    .qp-voucher-add-page .qp-total-card-debit {
        background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
        border-color: #bfdbfe;
    }

    .qp-voucher-add-page .qp-total-card-credit {
        background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
        border-color: #bbf7d0;
    }

    .qp-voucher-add-page .qp-total-card-balanced {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-color: #cbd5e1;
    }

    .qp-voucher-add-page .qp-total-card-diff {
        background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
        border-color: #fed7aa;
    }

    .qp-voucher-add-page .qp-total-icon {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        display: grid;
        place-items: center;
        font-size: 19px;
        color: #fff;
        flex-shrink: 0;
        box-shadow: 0 12px 22px rgba(15,23,42,.10);
    }

    .qp-voucher-add-page .qp-total-card-debit .qp-total-icon {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    }

    .qp-voucher-add-page .qp-total-card-credit .qp-total-icon {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .qp-voucher-add-page .qp-total-card-balanced .qp-total-icon {
        background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    }

    .qp-voucher-add-page .qp-total-card-diff .qp-total-icon {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .qp-voucher-add-page .qp-total-content {
        min-width: 0;
    }

    .qp-voucher-add-page .qp-total-label {
        font-size: 13px;
        color: #64748b;
        font-weight: 800;
        margin-bottom: 4px;
    }

    .qp-voucher-add-page .qp-total-value {
        font-size: 24px;
        font-weight: 900;
        color: #0f172a;
        line-height: 1.2;
    }

    .qp-voucher-add-page .qp-textarea {
        width: 100%;
        min-height: 150px !important;
        resize: vertical;
        border-radius: 18px !important;
        padding: 14px 16px !important;
        line-height: 1.9 !important;
    }

    .qp-voucher-add-page .qp-footer-actions {
        margin-top: 22px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        flex-wrap: wrap;
    }

    .qp-voucher-add-page .qp-btn {
        min-height: 48px;
        padding: 0 18px;
        border-radius: 16px;
        border: none;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        font-size: 13px;
        font-weight: 900;
        transition: .2s ease;
    }

    .qp-voucher-add-page .qp-btn:hover {
        transform: translateY(-2px);
    }

    .qp-voucher-add-page .qp-btn-light {
        background: #f8fafc;
        color: #0f172a;
        border: 1px solid #e2e8f0;
        box-shadow: 0 8px 18px rgba(15,23,42,.05);
    }

    .qp-voucher-add-page .qp-btn-light:hover {
        color: #0f172a;
    }

    .qp-voucher-add-page .qp-btn-success {
        background: linear-gradient(135deg, #059669 0%, #10b981 100%);
        color: #fff;
        box-shadow: 0 14px 28px rgba(16,185,129,.18);
    }

    .qp-voucher-add-page .qp-btn-dark {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: #fff;
        box-shadow: 0 14px 28px rgba(15,23,42,.18);
    }

    .qp-journal-ledger-modal .qp-ledger-modal-dialog {
        max-width: 1220px;
        margin-top: 48px;
    }

    .qp-journal-ledger-modal .qp-ledger-modal-content {
        border: none;
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 0 28px 70px rgba(15,23,42,.22);
        background: #fff;
    }

    .qp-journal-ledger-modal .qp-ledger-modal-header {
        padding: 18px 22px;
        border-bottom: 1px solid #eef2f7;
        background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .qp-journal-ledger-modal .qp-ledger-modal-title {
        margin: 0;
        font-size: 20px;
        font-weight: 900;
        color: #0f172a;
    }

    .qp-journal-ledger-modal .qp-ledger-modal-subtitle {
        margin-top: 5px;
        color: #64748b;
        font-size: 13px;
        font-weight: 700;
    }

    .qp-journal-ledger-modal .qp-ledger-modal-close {
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 14px;
        background: #f8fafc;
        color: #475569;
        font-size: 26px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: .2s ease;
    }

    .qp-journal-ledger-modal .qp-ledger-modal-close:hover {
        background: #eef2f7;
        color: #0f172a;
    }

    .qp-journal-ledger-modal .qp-ledger-modal-body {
        padding: 18px;
        background: #fff;
    }

    .qp-voucher-add-page .group-item i {
        margin-left: 5px;
    }

    .qp-voucher-add-page .ltr-text {
        direction: ltr;
        unicode-bidi: embed;
        text-align: left;
        font-variant-numeric: tabular-nums;
    }

    .qp-voucher-add-page .content {
        min-width: 0;
    }

    @media (max-width: 1199.98px) {
        .qp-voucher-add-page .qp-page-title {
            font-size: 27px;
        }

        .qp-voucher-add-page .qp-header-side-card {
            min-width: 100%;
        }
    }

    @media (max-width: 991.98px) {
        .qp-voucher-add-page .qp-page-header-content {
            padding: 18px;
        }

        .qp-voucher-add-page .qp-main-card-body {
            padding: 16px;
        }

        .qp-voucher-add-page .qp-form-shell,
.qp-voucher-add-page .qp-entry-section,
.qp-voucher-add-page .qp-note-section {
            padding: 16px;
            border-radius: 20px;
        }
    }

    @media (max-width: 767.98px) {
        .qp-voucher-add-page .qp-page-header-left {
            flex-direction: column;
        }

        .qp-voucher-add-page .qp-page-icon {
            width: 62px;
            height: 62px;
            font-size: 24px;
            border-radius: 20px;
        }

        .qp-voucher-add-page .qp-page-title {
            font-size: 22px;
        }

        .qp-voucher-add-page .qp-card-title {
            font-size: 19px;
        }

        .qp-voucher-add-page .qp-total-value,
.qp-voucher-add-page .qp-stat-value {
            font-size: 20px;
        }

        .qp-voucher-add-page .qp-footer-actions {
            flex-direction: column;
            align-items: stretch;
        }

        .qp-voucher-add-page .qp-btn {
            width: 100%;
        }

        .qp-journal-ledger-modal .qp-ledger-modal-dialog {
            max-width: calc(100% - 18px);
            margin: 18px auto;
        }
    }

.qp-voucher-add-page .qp-cell-inline-column { flex-direction:column; align-items:stretch; }
.qp-voucher-add-page .qp-detail-tools { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.qp-voucher-add-page .qp-optional-note { font-size:12px; color:var(--ui-muted); line-height:1.7; }
@media(max-width:767px) { .qp-voucher-add-page .qp-detail-tools { flex-wrap:wrap; } }

/* Match the accounting workspace palette in both themes. */
html[data-theme] .qp-voucher-add-page { color:var(--ui-text); padding:16px 0 28px; }
html[data-theme] .qp-voucher-add-page :is(.qp-page-header-card,.qp-main-card,.qp-stat-card,.qp-total-card) { border-radius:var(--ui-radius); border:1px solid var(--ui-border); box-shadow:var(--ui-shadow); background:var(--ui-surface); }
html[data-theme] .qp-voucher-add-page .qp-page-header-card::before { display:none; }
html[data-theme] .qp-voucher-add-page :is(.qp-page-header-content,.qp-main-card-body,.qp-form-shell,.qp-entry-section,.qp-note-section,.qp-line-table-wrap,.qp-ledger-modal-body) { background:var(--ui-surface); border-color:var(--ui-border); color:var(--ui-text); }
html[data-theme] .qp-voucher-add-page :is(.qp-header-side-card,.qp-static-chip) { background:var(--ui-surface-alt); border-color:var(--ui-border); color:var(--ui-text); }
html[data-theme] .qp-voucher-add-page :is(.qp-page-title,.qp-card-title,.qp-section-title,.qp-stat-value,.qp-total-value,.qp-header-side-value) { color:var(--ui-text); font-weight:700; }
html[data-theme] .qp-voucher-add-page :is(.qp-page-subtitle,.qp-card-desc,.qp-section-subtitle,.qp-stat-label,.qp-stat-hint,.qp-total-label,.qp-header-side-label,.qp-header-side-hint,.qp-label,.qp-optional-note) { color:var(--ui-muted); font-weight:400; }
html[data-theme] .qp-voucher-add-page .qp-page-title { font-size:23px; }
html[data-theme] .qp-voucher-add-page :is(.qp-page-icon,.qp-stat-icon-primary,.qp-section-head-icon,.qp-static-chip-icon) { background:var(--ui-primary-soft); color:var(--ui-primary); box-shadow:none; }
html[data-theme] .qp-voucher-add-page .qp-page-icon { width:48px; height:48px; border-radius:12px; font-size:21px; }
html[data-theme] .qp-voucher-add-page .qp-page-badge { background:var(--ui-primary-soft); color:var(--ui-primary); border-color:var(--ui-border); }
html[data-theme] .qp-voucher-add-page .qp-line-table { width:100%; min-width:1080px; table-layout:fixed; }
/* Fit all six article columns on desktop; retain the table's own scroll on narrow screens.
   The older inline header minima must not override this shared column allocation. */
html[data-theme] .qp-voucher-add-page .qp-line-table thead th { min-width:0!important; }
html[data-theme] .qp-voucher-add-page .qp-line-table thead th:nth-child(-n+2) { width:24%; }
html[data-theme] .qp-voucher-add-page .qp-line-table thead th:nth-child(3),
html[data-theme] .qp-voucher-add-page .qp-line-table thead th:nth-child(4) { width:150px; }
html[data-theme] .qp-voucher-add-page .qp-line-table thead th:last-child { width:108px; }
html[data-theme] .qp-voucher-add-page .qp-line-table :is(.qp-cell-wrap,.qp-cell-inline) { min-width:0; }
html[data-theme] .qp-voucher-add-page .qp-line-table .qp-cell-inline > :is(.rz-dropdown,.qp-account-tree-picker) { min-width:0; flex:1 1 0; }
html[data-theme] .qp-voucher-add-page .qp-line-table .qp-account-tree-picker { align-self:stretch; }
html[data-theme] .qp-voucher-add-page .qp-line-table .qp-row-btn { flex:0 0 40px; }
html[data-theme] .qp-voucher-add-page .qp-line-table thead th { padding:12px; background:var(--ui-surface-alt); color:var(--ui-muted); border-color:var(--ui-border); font-size:12px; font-weight:600; }
html[data-theme] .qp-voucher-add-page .qp-line-table tbody td { background:var(--ui-surface); border-color:var(--ui-border); padding:10px; vertical-align:top; }
html[data-theme] .qp-voucher-add-page .qp-line-table tbody tr:hover td { background:color-mix(in srgb,var(--ui-primary-soft) 35%,var(--ui-surface)); }
html[data-theme] .qp-voucher-add-page .qp-money-input { text-align:left; direction:ltr; font-variant-numeric:tabular-nums; }
html[data-theme] .qp-voucher-add-page :is(.qp-total-card-debit,.qp-stat-icon-success) { background:var(--ui-success-soft); color:var(--ui-success); border-color:var(--ui-border); }
html[data-theme] .qp-voucher-add-page .qp-total-card-credit { background:var(--ui-info-soft); color:var(--ui-info); border-color:var(--ui-border); }
html[data-theme] .qp-voucher-add-page .qp-total-card-balanced { background:var(--ui-success-soft); border-color:var(--ui-success); }
html[data-theme] .qp-voucher-add-page .qp-total-card-diff { background:var(--ui-danger-soft); border-color:var(--ui-danger); }
html[data-theme] .qp-voucher-add-page .qp-alert-banner { background:var(--ui-warning-soft); color:var(--ui-warning); border-color:var(--ui-warning); }
html[data-theme] .qp-voucher-add-page .qp-alert-banner-icon { background:var(--ui-warning-soft); color:var(--ui-warning); }
html[data-theme] .qp-voucher-add-page :is(.qp-mini-action-btn,.qp-row-btn.add) { background:var(--ui-primary-soft); color:var(--ui-primary); border-color:var(--ui-border); box-shadow:none; }
html[data-theme] .qp-voucher-add-page :is(.qp-mini-action-btn,.qp-row-btn.add) i { color:inherit; }
html[data-theme] .qp-voucher-add-page .qp-row-btn.delete { background:var(--ui-danger-soft); color:var(--ui-danger); }
html[data-theme] .qp-voucher-add-page .qp-footer-actions { border-color:var(--ui-border); }
html[data-theme] .qp-voucher-add-page .qp-btn-success { background:var(--ui-primary); border-color:var(--ui-primary); color:var(--ui-on-primary); }
html[data-theme] .qp-voucher-add-page :is(.qp-btn-light,.qp-btn-dark) { background:var(--ui-surface-alt); color:var(--ui-text); border:1px solid var(--ui-border); box-shadow:none; }
html[data-theme] .qp-journal-ledger-modal { background:var(--ui-overlay)!important; backdrop-filter:none!important; }
html[data-theme] .qp-journal-ledger-modal :is(.qp-ledger-modal-content,.qp-ledger-modal-header,.qp-ledger-modal-body) { background:var(--ui-surface); color:var(--ui-text); border-color:var(--ui-border); }
html[data-theme] .qp-journal-ledger-modal :is(.qp-ledger-modal-title,.qp-ledger-modal-subtitle) { color:var(--ui-text); }
html[data-theme] .qp-journal-ledger-modal .qp-ledger-modal-close { background:var(--ui-surface-alt); color:var(--ui-text); }
@media(max-width:700px) {
  html[data-theme] .qp-voucher-add-page .qp-page-header-content { padding:16px; }
  html[data-theme] .qp-voucher-add-page .qp-page-title { font-size:20px; }
  html[data-theme] .qp-voucher-add-page .qp-main-card-body { padding:12px; }
  html[data-theme] .qp-voucher-add-page :is(.qp-form-shell,.qp-entry-section,.qp-note-section) { padding:12px; }
}

/* Keep the original document field order, with room for the account tree and
   articles above the fold. Number/date/status already have their editable row. */
html[data-theme] .qp-voucher-add-page .qp-page-shell { gap:12px; }
html[data-theme] .qp-voucher-add-page .qp-page-header-content { padding:16px; gap:12px; border-radius:var(--ui-radius); }
html[data-theme] .qp-voucher-add-page .qp-page-header-left { gap:12px; }
html[data-theme] .qp-voucher-add-page .qp-page-title { font-size:21px; }
html[data-theme] .qp-voucher-add-page .qp-page-subtitle { margin-top:6px; font-size:12px; line-height:1.8; }
html[data-theme] .qp-voucher-add-page .qp-breadcrumb { margin-top:7px; }
html[data-theme] .qp-voucher-add-page .qp-header-side-card { min-width:220px; padding:10px 12px; border-radius:8px; }
html[data-theme] .qp-voucher-add-page .qp-header-side-value { font-size:14px; }
html[data-theme] .qp-voucher-add-page .qp-header-side-hint { font-size:11px; }
html[data-theme] .qp-voucher-add-page .qp-stats-row { --bs-gutter-y:8px; --bs-gutter-x:10px; }
html[data-theme] .qp-voucher-add-page .qp-stat-card { min-height:76px; padding:10px 12px; gap:10px; border-radius:8px; }
html[data-theme] .qp-voucher-add-page .qp-stat-icon { width:36px; height:36px; border-radius:8px; font-size:16px; }
html[data-theme] .qp-voucher-add-page .qp-stat-value { font-size:17px; line-height:1.6; }
html[data-theme] .qp-voucher-add-page .qp-stat-hint { display:none; }
html[data-theme] .qp-voucher-add-page .qp-main-card-body { padding:16px; }
html[data-theme] .qp-voucher-add-page .qp-card-topbar { margin-bottom:10px; }
html[data-theme] .qp-voucher-add-page .qp-card-title { font-size:15px; }
html[data-theme] .qp-voucher-add-page .qp-card-desc { margin-top:4px; font-size:12px; }
html[data-theme] .qp-voucher-add-page :is(.qp-form-shell,.qp-entry-section,.qp-note-section) { padding:12px; border-radius:8px; }
html[data-theme] .qp-voucher-add-page :is(.qp-entry-section,.qp-note-section) { margin-top:12px; }
html[data-theme] .qp-voucher-add-page .qp-section-head { gap:9px; margin-bottom:10px; }
html[data-theme] .qp-voucher-add-page .qp-section-head-icon { width:32px; height:32px; border-radius:7px; font-size:14px; }
html[data-theme] .qp-voucher-add-page .qp-section-title { font-size:15px; }
html[data-theme] .qp-voucher-add-page .qp-section-subtitle { font-size:12px; line-height:1.8; }
html[data-theme] .qp-voucher-add-page .qp-total-card { padding:10px 12px; min-height:70px; gap:10px; }
html[data-theme] .qp-voucher-add-page .qp-total-icon { width:32px; height:32px; font-size:14px; border-radius:7px; }
html[data-theme] .qp-voucher-add-page .qp-total-value { font-size:19px; }
html[data-theme] .qp-voucher-add-page .qp-mini-action-btn:disabled { opacity:.45; cursor:default; transform:none; }
@media(max-width:700px) {
  html[data-theme] .qp-voucher-add-page .qp-page-header-content { padding:12px; }
  html[data-theme] .qp-voucher-add-page .qp-page-header-left { flex-direction:row; }
  html[data-theme] .qp-voucher-add-page .qp-page-header-right { display:none; }
  html[data-theme] .qp-voucher-add-page .qp-page-title { font-size:18px; }
  html[data-theme] .qp-voucher-add-page .qp-main-card-body { padding:10px; }
  html[data-theme] .qp-voucher-add-page .qp-stats-row { display:none; }
}
