.view-ap-invoice-add,
.view-ap-invoice-detail,
.view-ap-payment-add,
.view-ap-payment-detail,
.view-ap-credit-note-add,
.view-ap-credit-note-detail,
.view-ap-debit-note-add,
.view-ap-debit-note-detail,
.view-ap-misc-expense-add,
.view-ap-misc-expense-detail,
.view-ap-refund-add,
.view-ap-refund-detail,
.view-ar-billing-add,
.view-ar-billing-detail,
.view-ar-misc-billing-add,
.view-ar-misc-billing-detail,
.view-or-billing-add,
.view-or-billing-detail,
.view-or-collection-add,
.view-or-collection-detail,
.view-or-refund-add,
.view-or-refund-detail,
.view-cb-misc-receipt-add,
.view-cb-misc-receipt-detail,
.view-payment-request-add,
.view-payment-request-detail {
    --ap-border: #e5e7eb;
    --ap-muted: #6b7280;
    --ap-ink: #172033;
    --ap-soft: #f7f9fc;
}

.ap-invoice-page-toolbar {
    margin-bottom: 1rem;
    padding: .25rem 0;
}

.ap-invoice-muted {
    display: block;
    color: var(--ap-muted);
    margin-top: .2rem;
}

.ap-invoice-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.ap-invoice-workspace > * {
    min-width: 0;
}

.ap-invoice-left-column {
    display: grid;
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

.ap-invoice-editor-card,
.ap-invoice-editor-card .ap-invoice-form,
.ap-invoice-editor-card .ap-invoice-section {
    min-width: 0;
    max-width: 100%;
}

.gs-page.gs-page-detail .ap-invoice-editor-card.rz-card,
.gs-page.gs-page-detail .ap-invoice-preview-card.rz-card,
.gs-page.gs-page-detail .ap-invoice-attachment-card.rz-card,
.gs-page.gs-page-detail .ap-invoice-audit-card.rz-card {
    border: 1px solid var(--ap-border);
    box-shadow: 0 8px 24px rgba(23, 32, 51, .06);
}

.gs-page.gs-page-detail .ap-invoice-preview-card.rz-card {
    position: sticky;
    top: 1rem;
    padding: 0;
    overflow: hidden;
}

.ap-invoice-section + .ap-invoice-section {
    border-top: 1px solid var(--ap-border);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.ap-invoice-section__heading {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ap-invoice-section__heading h3 {
    color: var(--ap-ink);
    font-size: 1rem;
    margin: 0;
}

.ap-invoice-section__heading p {
    color: var(--ap-muted);
    font-size: .82rem;
    margin: .2rem 0 0;
}

.ap-invoice-section__step {
    display: grid;
    place-items: center;
    flex: 0 0 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--rz-primary-lighter, #eaf2ff);
    color: var(--rz-primary, #2563eb);
    font-size: .75rem;
    font-weight: 700;
}

/* AP editor uses labels above controls instead of the global descriptions layout. */
.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-fields.ap-invoice-three-column-fields.rz-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    border: 0;
    background: transparent;
}

.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-fields.ap-invoice-three-column-fields > [class*="rz-col-"] {
    display: block !important;
    grid-column: auto !important;
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-fields.ap-invoice-three-column-fields > .ap-invoice-field-full {
    display: block !important;
    grid-column: 1 / -1 !important;
    background: transparent !important;
}

.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-fields.ap-invoice-three-column-fields .gs-form-item {
    display: block !important;
}

.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-label {
    display: block;
    background: transparent;
    color: #374151;
    font-size: .82rem;
    margin: 0 0 .4rem;
    padding: 0;
}

.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-control {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: 0;
    background: transparent;
    padding: 0;
    gap: 0.25rem;
}

.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-control > .rz-textbox,
.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-control > .rz-dropdown,
.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-control > .rz-datepicker,
.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-control > .rz-numeric,
.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-control > .rz-textarea,
.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-control > .gs-form-field-control {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-control .rz-message,
.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-control .rz-messages-error {
    flex: 1 1 100%;
    display: block !important;
    width: 100%;
    margin-top: 0.15rem;
    font-size: 12px;
    color: var(--rz-danger, #dc2626);
}

.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-readonly {
    min-height: 2.5rem;
    padding: .65rem .75rem;
    border: 1px solid var(--ap-border, #e5e7eb);
    border-radius: 6px;
    background: var(--ap-soft, #f7f9fc);
    box-sizing: border-box;
}

.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-control > .rz-spinner.gs-form-field-control {
    display: inline-flex !important;
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
    vertical-align: top;
    border: 1px solid var(--ap-border, #e5e7eb);
    border-radius: 6px;
    box-sizing: border-box;
    overflow: hidden;
}

.ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-control > .rz-spinner.gs-form-field-control input.rz-inputtext {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
}

/* 避免驗證通過時 .valid.modified 再疊一層綠色 outline */
.ap-invoice-form.gs-detail-form .valid.modified:not([type=checkbox]),
.ap-invoice-form.gs-detail-form .rz-spinner.valid.modified,
.ap-invoice-form.gs-detail-form .rz-spinner .valid.modified {
    outline: none !important;
}

.ap-invoice-inline-file {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    min-height: 2.5rem !important;
}

.ap-invoice-inline-file input[type=file] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: .42rem .55rem;
    border: 1px solid var(--ap-border);
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: .78rem;
}

.ap-invoice-inline-file small {
    min-width: 0;
    overflow: hidden;
    color: var(--ap-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-invoice-inline-file__actions {
    display: flex;
    gap: .3rem;
    margin-left: auto;
}

.ap-invoice-lines__toolbar {
    margin: 0 0 .75rem;
}

.ap-invoice-lines__grid {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ap-invoice-lines__grid .rz-data-grid {
    min-width: 760px;
    max-width: none;
}

.ap-invoice-lines__grid .rz-state-disabled,
.ap-invoice-lines__grid [disabled] {
    opacity: 1;
}

.ap-invoice-lines__grid .rz-state-disabled input,
.ap-invoice-lines__grid input:disabled {
    border-color: #cfd6e2;
    background: #f8fafc;
    color: #374151;
    -webkit-text-fill-color: #374151;
}

.ap-invoice-lines__totals {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .7rem 1.5rem;
    color: #374151;
    margin-top: 1rem;
}

.ap-invoice-file-picker {
    display: grid;
    justify-items: center;
    gap: .25rem;
    padding: 1.25rem;
    border: 1px dashed #aeb9ca;
    border-radius: 8px;
    background: var(--ap-soft);
    color: var(--ap-muted);
    cursor: pointer;
    text-align: center;
}

.ap-invoice-file-picker:hover {
    border-color: var(--rz-primary, #2563eb);
    background: #f2f6ff;
}

.ap-invoice-file-picker input[type=file] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.ap-invoice-file-picker .material-symbols-outlined {
    color: var(--rz-primary, #2563eb);
    font-size: 2rem;
}

.ap-invoice-file-picker strong {
    color: var(--ap-ink);
}

.ap-invoice-file-picker--compact {
    margin-top: .75rem;
    padding: .75rem;
}

.ap-invoice-existing-file {
    padding: .7rem .85rem;
    border-radius: 6px;
    background: var(--ap-soft);
    color: var(--ap-ink);
}

.ap-invoice-preview {
    min-height: 540px;
    color: var(--ap-ink);
    background: #fff;
}

.ap-invoice-preview__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.75rem;
    color: #fff;
    background: linear-gradient(135deg, #183153, #2d5f91);
}

.ap-invoice-preview__eyebrow,
.ap-invoice-preview__number span,
.ap-invoice-preview__meta span,
.ap-invoice-preview__note span {
    display: block;
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .75;
}

.ap-invoice-preview__header h2 {
    margin: .25rem 0 0;
    font-size: 1.55rem;
}

.ap-invoice-preview__number {
    text-align: right;
}

.ap-invoice-preview__number strong {
    display: block;
    margin-top: .3rem;
    font-size: 1.05rem;
}

.ap-invoice-preview__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ap-border);
    background: #fbfcfe;
}

/* Settlement breakdown (header 下、meta 上) */
.gs-settlement {
    --gs-settlement-border: var(--ap-border, #e5e7eb);
    --gs-settlement-muted: var(--ap-muted, #6b7280);
    --gs-settlement-ink: var(--ap-ink, #172033);
    --gs-settlement-soft: #fbfcfe;
    --gs-settlement-applied: #0ba543; /* 沖銷 knock-off */
    --gs-settlement-refund: #b45309; /* 退款 */
    --gs-settlement-remaining: #cfd7e3;
    --gs-settlement-voided: #f5c2c7; /* VOIDED 淡紅 */
    padding: 1rem 1.5rem 1.15rem;
    border-bottom: 1px solid var(--gs-settlement-border);
    background: var(--gs-settlement-soft);
    color: var(--gs-settlement-ink);
}

.gs-settlement__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .65rem;
}

.gs-settlement__title {
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gs-settlement-muted);
    opacity: .9;
}

.gs-settlement__status {
    font-size: .72rem;
    font-weight: 600;
    color: var(--gs-settlement-muted);
}

.gs-settlement__bar {
    display: flex;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--gs-settlement-remaining);
}

.gs-settlement__seg {
    height: 100%;
    min-width: 0;
}

.gs-settlement__seg--applied {
    background: var(--gs-settlement-applied);
}

.gs-settlement__seg--refund {
    background: var(--gs-settlement-refund);
}

.gs-settlement__seg--remaining {
    background: #9eb0c7;
}

.gs-settlement__seg--voided {
    background: var(--gs-settlement-voided);
}

.gs-settlement.is-voided .gs-settlement__status {
    color: #b42318;
    font-weight: 700;
}

.gs-settlement.is-voided .gs-settlement__bar {
    background: var(--gs-settlement-voided);
}

.gs-settlement.is-voided .gs-settlement__dot--applied,
.gs-settlement.is-voided .gs-settlement__dot--refund,
.gs-settlement.is-voided .gs-settlement__dot--remaining {
    background: #e35d6a;
}

.gs-settlement__kpis {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem 1.25rem;
    margin-top: .75rem;
}

.gs-settlement__kpi {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    min-width: 0;
}

.gs-settlement__dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    flex: 0 0 auto;
    position: relative;
    top: .05rem;
}

.gs-settlement__dot--applied { background: var(--gs-settlement-applied); }
.gs-settlement__dot--remaining { background: #9eb0c7; }
.gs-settlement__dot--refund { background: var(--gs-settlement-refund); }

.gs-settlement__label {
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gs-settlement-muted);
}

.gs-settlement__value {
    font-size: .88rem;
    font-weight: 600;
    color: var(--gs-settlement-ink);
    white-space: nowrap;
}

.ap-invoice-preview__meta strong,
.ap-invoice-preview__note strong {
    display: block;
    margin-top: .25rem;
    font-size: .88rem;
}

.ap-invoice-preview__tabs {
    display: flex;
    gap: .25rem;
    padding: .75rem 1.5rem 0;
    border-bottom: 1px solid var(--ap-border);
    background: #fff;
}

.ap-invoice-preview__tab {
    appearance: none;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--ap-muted);
    padding: .55rem .85rem;
    margin-bottom: -1px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.ap-invoice-preview__tab:hover {
    color: var(--ap-ink);
}

.ap-invoice-preview__tab.is-active {
    color: #183153;
    border-bottom-color: #2d5f91;
}

.ap-invoice-preview-card .ap-invoice-preview-tabs > .rz-tabs,
.ap-invoice-preview-card .ap-invoice-preview-tabs > .rz-tabview {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ap-invoice-preview-card .ap-invoice-preview-tabs .rz-tabview-nav,
.ap-invoice-preview-card .ap-invoice-preview-tabs .rz-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .75rem 1.5rem 0;
    margin: 0;
    border-bottom: 1px solid var(--ap-border);
    background: #fff;
}

.ap-invoice-preview-card .ap-invoice-preview-tabs .rz-tabview-nav li .rz-tabview-nav-link,
.ap-invoice-preview-card .ap-invoice-preview-tabs .rz-tabs-nav .rz-tabs-item .rz-tabs-item-link {
    appearance: none;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--ap-muted);
    padding: .55rem .85rem;
    margin-bottom: -1px;
    font-size: .8rem;
    font-weight: 600;
    box-shadow: none;
}

.ap-invoice-preview-card .ap-invoice-preview-tabs .rz-tabview-nav li.rz-tabview-selected .rz-tabview-nav-link,
.ap-invoice-preview-card .ap-invoice-preview-tabs .rz-tabs-nav .rz-tabs-item.rz-state-active .rz-tabs-item-link {
    color: #183153;
    border-bottom-color: #2d5f91;
    background: transparent;
}

.ap-invoice-preview-card .ap-invoice-preview-tabs .rz-tabview-panels,
.ap-invoice-preview-card .ap-invoice-preview-tabs .rz-tabs-panels,
.ap-invoice-preview-card .ap-invoice-preview-tabs .rz-tabview-panel,
.ap-invoice-preview-card .ap-invoice-preview-tabs .rz-tabs-panel {
    padding: 0;
    background: transparent;
}

.ap-invoice-preview__empty--panel {
    padding: 2rem 1.5rem;
    text-align: center;
}

.ap-invoice-preview__empty-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    height: 540px;
    min-height: 540px;
    padding: 1.5rem;
    color: var(--ap-muted);
    background: #fff;
    border-top: 0;
}


.ap-invoice-preview__empty-frame-text {
    margin: 0;
    max-width: 18rem;
    text-align: center;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.5;
}

.ap-invoice-preview__pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .85rem 1.5rem 1.25rem;
    border-top: 1px solid var(--ap-border);
    background: #fff;
}

.ap-invoice-preview__pager-btn {
    appearance: none;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .55rem;
    border: 1px solid #cfd7e3;
    border-radius: .4rem;
    background: #fff;
    color: var(--ap-muted);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.ap-invoice-preview__pager-btn:hover {
    color: var(--ap-ink);
    border-color: #9eb0c7;
}

.ap-invoice-preview__pager-btn.is-active {
    color: #fff;
    background: #183153;
    border-color: #183153;
}

.ap-invoice-preview__table-wrap {
    overflow-x: auto;
    padding: 1.25rem 1.5rem .5rem;
}

.ap-invoice-preview__table {
    width: 100%;
    min-width: 470px;
    border-collapse: collapse;
    font-size: .8rem;
}

.ap-invoice-preview__table th {
    padding: .6rem .5rem;
    border-bottom: 2px solid #cfd7e3;
    color: var(--ap-muted);
    font-size: .68rem;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

.ap-invoice-preview__table td {
    padding: .7rem .5rem;
    border-bottom: 1px solid #edf0f4;
}

.ap-invoice-preview__table .number {
    text-align: right;
}

.ap-invoice-preview__table-total td {
    border-bottom: 0;
    border-top: 2px solid #183153;
    padding-top: .85rem;
    font-weight: 700;
}

.ap-invoice-preview__empty {
    color: var(--ap-muted);
    text-align: center;
}

.ap-invoice-preview__footer {
    display: grid;
    grid-template-columns: 1fr minmax(210px, .85fr);
    gap: 1rem;
    align-items: end;
    padding: 1rem 1.5rem 1.5rem;
}

.ap-invoice-preview__note small {
    display: block;
    max-width: 190px;
    margin-top: .65rem;
    color: var(--ap-muted);
}

.ap-invoice-preview__totals {
    margin: 0;
}

.ap-invoice-preview__totals > div {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .35rem 0;
}

    .ap-invoice-preview__totals dt,
    .ap-invoice-preview__totals dd {
        margin: 0;
        white-space: nowrap;
    }

.ap-invoice-preview__totals .grand-total {
    margin-top: .45rem;
    padding-top: .75rem;
    border-top: 2px solid #183153;
    font-size: 1.05rem;
    font-weight: 700;
}

.ap-invoice-audit-list {
    position: relative;
    display: grid;
    gap: 0;
    margin-top: .5rem;
}

.ap-invoice-audit-item {
    position: relative;
    display: grid;
    grid-template-columns: 1rem 1fr;
    gap: .75rem;
    padding: 0 0 1.15rem;
}

.ap-invoice-audit-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: .31rem;
    top: .75rem;
    bottom: 0;
    width: 1px;
    background: #d5dce7;
}

.ap-invoice-audit-dot {
    z-index: 1;
    width: .65rem;
    height: .65rem;
    margin-top: .25rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--rz-primary, #2563eb);
    box-shadow: 0 0 0 1px var(--rz-primary, #2563eb);
}

.ap-invoice-audit-action {
    color: var(--ap-ink);
    font-weight: 650;
}

.ap-invoice-audit-meta,
.ap-invoice-audit-result,
.ap-invoice-audit-empty {
    color: var(--ap-muted);
    font-size: .8rem;
    margin-top: .15rem;
}

@media (max-width: 960px) {
    .ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-fields.ap-invoice-three-column-fields.rz-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ap-invoice-page-toolbar,
    .ap-invoice-preview__header,
    .ap-invoice-preview__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .ap-invoice-page-toolbar {
        display: flex;
        gap: .75rem;
    }

    .ap-invoice-page-toolbar .toolbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ap-invoice-form.gs-detail-form .ap-invoice-section .gs-form-fields.ap-invoice-three-column-fields.rz-row,
    .ap-invoice-preview__footer {
        grid-template-columns: 1fr;
    }

    .ap-invoice-preview__tabs,
    .ap-invoice-preview__pager {
        flex-wrap: wrap;
    }

    .ap-invoice-preview__number {
        text-align: left;
    }
}

/* ── Card staggered enter animation ── */
@keyframes gs-card-enter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.view-ap-invoice-detail .gs-page-detail > .rz-card:first-child,
.view-ap-invoice-add    .gs-page-detail > .rz-card:first-child,
.view-ap-credit-note-detail .gs-page-detail > .rz-card:first-child,
.view-ap-credit-note-add    .gs-page-detail > .rz-card:first-child,
.view-ap-debit-note-detail .gs-page-detail > .rz-card:first-child,
.view-ap-debit-note-add    .gs-page-detail > .rz-card:first-child,
.view-ap-refund-detail .gs-page-detail > .rz-card:first-child,
.view-ap-refund-add    .gs-page-detail > .rz-card:first-child,
.view-ap-payment-detail .gs-page-detail > .rz-card:first-child,
.view-ap-payment-add    .gs-page-detail > .rz-card:first-child,
.view-or-credit-note-detail .gs-page-detail > .rz-card:first-child,
.view-or-credit-note-add    .gs-page-detail > .rz-card:first-child,
.view-or-billing-detail .gs-page-detail > .rz-card:first-child,
.view-or-billing-add    .gs-page-detail > .rz-card:first-child {
    animation: gs-card-enter 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0ms;
}

.view-ap-invoice-detail .ap-invoice-editor-card,
.view-ap-invoice-add    .ap-invoice-editor-card,
.view-ap-credit-note-detail .ap-invoice-editor-card,
.view-ap-credit-note-add    .ap-invoice-editor-card,
.view-ap-debit-note-detail .ap-invoice-editor-card,
.view-ap-debit-note-add    .ap-invoice-editor-card,
.view-ap-refund-detail .ap-invoice-editor-card,
.view-ap-refund-add    .ap-invoice-editor-card,
.view-ap-payment-detail .ap-invoice-editor-card,
.view-ap-payment-add    .ap-invoice-editor-card,
.view-or-credit-note-detail .ap-invoice-editor-card,
.view-or-credit-note-add    .ap-invoice-editor-card,
.view-or-billing-detail .ap-invoice-editor-card,
.view-or-billing-add    .ap-invoice-editor-card {
    animation: gs-card-enter 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 60ms;
}

.view-ap-invoice-detail .ap-invoice-left-column > .rz-card:last-of-type,
.view-ap-credit-note-detail .ap-invoice-left-column > .rz-card:last-of-type,
.view-ap-debit-note-detail .ap-invoice-left-column > .rz-card:last-of-type,
.view-ap-refund-detail .ap-invoice-left-column > .rz-card:last-of-type,
.view-ap-payment-detail .ap-invoice-left-column > .rz-card:last-of-type,
.view-or-credit-note-detail .ap-invoice-left-column > .rz-card:last-of-type,
.view-or-billing-detail .ap-invoice-left-column > .rz-card:last-of-type {
    animation: gs-card-enter 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 120ms;
}

.view-ap-invoice-detail .ap-invoice-preview-card,
.view-ap-invoice-add    .ap-invoice-preview-card,
.view-ap-credit-note-detail .ap-invoice-preview-card,
.view-ap-credit-note-add    .ap-invoice-preview-card,
.view-ap-debit-note-detail .ap-invoice-preview-card,
.view-ap-debit-note-add    .ap-invoice-preview-card,
.view-ap-refund-detail .ap-invoice-preview-card,
.view-ap-refund-add    .ap-invoice-preview-card,
.view-ap-payment-detail .ap-invoice-preview-card,
.view-ap-payment-add    .ap-invoice-preview-card,
.view-or-credit-note-detail .ap-invoice-preview-card,
.view-or-credit-note-add    .ap-invoice-preview-card,
.view-or-billing-detail .ap-invoice-preview-card,
.view-or-billing-add    .ap-invoice-preview-card {
    animation: gs-card-enter 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 180ms;
}
