/* ═══════════════════════════════════════════════════════════════
   OrderCR Review / Workflow Pages – Shared Styles
   Used by: reviewOrder, reviewOrderHead, ceoApproval,
            orderHeadApproval, and all pages using shared/dataTemplate
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Workflow Header (Step + Role banner) ───────────────── */
.ordercr-workflow-header {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ordercr-wf-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--vz-primary, #405189) 0%, #324175 100%);
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ordercr-wf-step-label {
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #878a99;
    margin-bottom: 0.15rem;
}

.ordercr-wf-step-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

.ordercr-wf-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--vz-primary, #405189);
    background: rgba(var(--vz-primary-rgb, 64, 81, 137), 0.08);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--vz-primary-rgb, 64, 81, 137), 0.15);
}

.ordercr-wf-role-badge i {
    font-size: 0.85rem;
}

/* ── 2. Action Card (Accept / Approve) ─────────────────────── */
.ordercr-action-card {
    background: #fff;
    border: 1px solid #e2e5e8;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border-inline-start: 4px solid var(--vz-primary, #405189);
}

.ordercr-action-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.ordercr-action-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
}

.ordercr-action-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(var(--vz-primary-rgb, 64, 81, 137), 0.1);
    color: var(--vz-primary, #405189);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ordercr-action-text {
    min-width: 0;
}

.ordercr-action-title {
    font-size: 0.925rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.35;
}

.ordercr-action-subtitle {
    font-size: 0.8rem;
    color: #878a99;
    margin: 0.15rem 0 0;
}

.ordercr-action-btn-area {
    flex-shrink: 0;
}

.ordercr-action-btn {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(var(--vz-primary-rgb, 64, 81, 137), 0.25);
}

.ordercr-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--vz-primary-rgb, 64, 81, 137), 0.35);
}

/* Legacy compat */
.ordercr-action-progress {
    height: 3px;
    background: #e9ecef;
    overflow: hidden;
}

.ordercr-action-progress .progress-bar {
    transition: width 0.6s ease;
}

/* ── 3. Data Template Tabs ─────────────────────────────────── */
.ordercr-data-template .card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.ordercr-data-template > .card > .card-body > h5 {
    font-weight: 700;
    color: #212529;
}

.ordercr-data-template .nav-pills {
    gap: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem !important;
    flex-wrap: wrap;
}

.ordercr-data-template .nav-pills .nav-item {
    flex: 1 1 auto;
    min-width: 0;
}

.ordercr-data-template .nav-pills .nav-link {
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.65rem 1rem;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ordercr-data-template .nav-pills .nav-link:hover {
    background: rgba(var(--vz-primary-rgb, 64, 81, 137), 0.08);
    color: var(--vz-primary, #405189);
    border-color: rgba(var(--vz-primary-rgb, 64, 81, 137), 0.15);
}

.ordercr-data-template .nav-pills .nav-link.active {
    background: var(--vz-primary, #405189);
    color: #fff;
    border-color: var(--vz-primary, #405189);
    box-shadow: 0 2px 8px rgba(var(--vz-primary-rgb, 64, 81, 137), 0.3);
}

.ordercr-data-template .tab-content {
    color: #495057;
}

/* ── 4. Grant Procedures / Steps Table ─────────────────────── */
.ordercr-steps-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.ordercr-steps-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--vz-primary, #405189) 0%, #324175 100%);
    color: #fff;
}

.ordercr-steps-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ordercr-steps-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.ordercr-steps-subheader {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

.ordercr-steps-body {
    padding: 1.25rem;
}

.ordercr-steps-body h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ordercr-steps-body h5::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: var(--vz-primary, #405189);
    border-radius: 2px;
}

/* Steps table styling */
.ordercr-steps-table {
    border-collapse: separate;
    border-spacing: 0;
}

.ordercr-steps-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.ordercr-steps-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f3f5;
}

.ordercr-steps-table tbody tr:last-child td {
    border-bottom: none;
}

.ordercr-steps-table tbody tr {
    transition: background 0.15s ease;
}

.ordercr-steps-table tbody tr:hover {
    background: rgba(var(--vz-primary-rgb, 64, 81, 137), 0.03);
}

/* Step number indicator */
.ordercr-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
    font-weight: 600;
    font-size: 0.75rem;
    margin-inline-end: 0.5rem;
}

.ordercr-step-num.completed {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.ordercr-step-num.rejected {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.ordercr-step-num.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #cc9a06;
}

/* ── 5. Approve Modal Enhancement ──────────────────────────── */

/* Modal content container */
.ordercr-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Header */
.ordercr-modal .modal-header {
    background: linear-gradient(135deg, #405189 0%, #2c3e6e 100%);
    color: #fff;
    border-bottom: none;
    padding: 1.1rem 1.5rem;
    position: relative;
}
.ordercr-modal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ab39c, #299cdb, #405189);
}

/* Fix: app.rtl.css removes padding-bottom for non-scrollable modals — force it back */
.modal-dialog:not(.modal-dialog-scrollable) .ordercr-modal .modal-header,
.ordercr-modal .modal-header {
    padding: 1.1rem 1.5rem !important;
}

.ordercr-modal .modal-header .modal-title {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ordercr-modal .modal-header .modal-title i {
    font-size: 1.3rem;
    opacity: 0.85;
}

/* Fix: ensure close button is properly aligned in both LTR and RTL */
.ordercr-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.2s;
    margin: 0 !important;
    padding: 0.625rem !important;
    align-self: center;
    background-size: 0.85em;
}
.ordercr-modal .modal-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Body */
.ordercr-modal .modal-body {
    padding: 1.25rem 1.5rem;
    background: #fff;
}

/* Hint / info box */
.ordercr-modal-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(41,156,219,0.06);
    border: 1px solid rgba(41, 156, 219, 0.12);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.5;
}
.ordercr-modal-hint i {
    font-size: 1rem;
    flex-shrink: 0;
    color: #299cdb;
}

.ordercr-modal .modal-body h5 {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 0.75rem;
}

.ordercr-modal .modal-body textarea {
    min-height: 100px;
    border-radius: 10px;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    border: 1.5px solid #e9ecef;
    background: #fafbfc;
    font-size: 0.9rem;
}
.ordercr-modal .modal-body textarea:focus {
    border-color: #405189;
    box-shadow: 0 0 0 3px rgba(64, 81, 137, 0.1);
    background: #fff;
}

.ordercr-modal .modal-body .form-label {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #e9ecef;
    width: fit-content;
}

/* Footer */
.ordercr-modal .modal-footer {
    padding: 0.85rem 1.5rem;
    gap: 0;
    border-top: 1px solid #f0f1f3;
    background: #f8f9fb;
}

/* Action buttons */
.ordercr-modal-btn {
    min-width: 130px;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    border: none;
    position: relative;
    overflow: hidden;
}
.ordercr-modal-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.2s;
}
.ordercr-modal-btn:hover::before {
    opacity: 1;
}
.ordercr-modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ordercr-modal-btn:active {
    transform: translateY(0);
}

.ordercr-modal-btn.btn-success {
    background: linear-gradient(135deg, #0ab39c 0%, #099885 100%);
}
.ordercr-modal-btn.btn-danger {
    background: linear-gradient(135deg, #f06548 0%, #d64530 100%);
}

.ordercr-modal-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.ordercr-modal-btn .btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Divider between approve and reject sections */
.ordercr-modal-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #adb5bd;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.ordercr-modal-divider::before,
.ordercr-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

/* Warning variant for committee modals */
.ordercr-modal .alert {
    font-size: 0.875rem;
    border-radius: 10px;
}

/* ── 6. RTL adjustments ────────────────────────────────────── */
/* Flexbox natively respects dir="rtl" — no row-reverse needed */
[dir="rtl"] .ordercr-workflow-header {
    text-align: right;
}

[dir="rtl"] .ordercr-action-card {
    border-inline-start: 4px solid var(--vz-primary, #405189);
    border-inline-end: none;
}

[dir="rtl"] .ordercr-action-body {
    text-align: right;
}

[dir="rtl"] .ordercr-action-content {
    text-align: right;
}

[dir="rtl"] .ordercr-steps-header {
    text-align: right;
}

[dir="rtl"] .ordercr-steps-body h5 {
    text-align: right;
}

/* Modal header RTL: override broken app.rtl.css rules */
[dir="rtl"] .ordercr-modal .modal-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem !important;
}

[dir="rtl"] .ordercr-modal .modal-header .modal-title {
    order: 0;
    text-align: right;
    flex: 1;
    direction: rtl;
}

[dir="rtl"] .ordercr-modal .modal-header .btn-close {
    margin: 0 !important;
    padding: 0.625rem !important;
    order: -1;
}

[dir="rtl"] .ordercr-modal .modal-footer {
    direction: rtl;
}

[dir="rtl"] .ordercr-modal-hint {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .ordercr-modal .modal-body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .ordercr-modal .modal-body .form-label {
    direction: rtl;
}

/* ── 7. Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .ordercr-workflow-header {
        padding: 1rem;
    }

    .ordercr-wf-step-name {
        font-size: 1rem;
    }

    .ordercr-action-body {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .ordercr-action-content {
        flex-direction: column;
    }

    .ordercr-action-btn-area {
        width: 100%;
    }

    .ordercr-action-btn {
        width: 100%;
        justify-content: center;
    }

    .ordercr-data-template .nav-pills {
        flex-direction: column;
    }

    .ordercr-data-template .nav-pills .nav-item {
        width: 100%;
    }

    .ordercr-steps-table thead th,
    .ordercr-steps-table tbody td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ── 8. Beta Side Ribbon ───────────────────────────────────── */
.accbs-beta-ribbon {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1040;
    pointer-events: none;
}

.accbs-beta-ribbon-label {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: linear-gradient(180deg, var(--vz-primary, #405189) 0%, #324175 100%);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    padding: 0.6rem 0.3rem;
    border-radius: 0 0.35rem 0.35rem 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
    line-height: 1;
}

/* ── 9. Sidebar border-radius alignment ────────────────────── */
[data-layout=vertical][data-layout-style=detached] .navbar-menu {
    border-radius: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   10. Review Card – Shared section cards for review forms
   ═══════════════════════════════════════════════════════════════ */
.ordercr-review-card {
    background: #fff;
    border: 1px solid #e2e5e8;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.ordercr-review-card-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(var(--vz-primary-rgb, 64, 81, 137), 0.04) 0%, rgba(var(--vz-primary-rgb, 64, 81, 137), 0.01) 100%);
    border-bottom: 1px solid #e9ecef;
}

.ordercr-review-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, var(--vz-primary, #405189) 0%, #324175 100%);
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ordercr-review-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.35;
}

.ordercr-review-card-subtitle {
    font-size: 0.78rem;
    color: #878a99;
    margin: 0.1rem 0 0;
}

.ordercr-review-card-body {
    padding: 1.25rem 1.5rem;
}

/* ── 11. Add-Auditor row ───────────────────────────────────── */
.ordercr-add-auditor-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ordercr-add-auditor-select {
    flex: 1;
    min-width: 0;
}

.ordercr-add-auditor-select .form-select,
.ordercr-add-auditor-select .form-control {
    border-radius: 0.5rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ordercr-add-auditor-select .form-select:focus,
.ordercr-add-auditor-select .form-control:focus {
    border-color: var(--vz-primary, #405189);
    box-shadow: 0 0 0 0.15rem rgba(var(--vz-primary-rgb, 64, 81, 137), 0.12);
}

.ordercr-add-auditor-btn {
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 6px rgba(var(--vz-primary-rgb, 64, 81, 137), 0.2);
    transition: all 0.2s ease;
}

.ordercr-add-auditor-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--vz-primary-rgb, 64, 81, 137), 0.3);
}

/* ── 12. Styled Table inside review cards ──────────────────── */
.ordercr-styled-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    padding: 0.65rem 0.875rem;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.ordercr-styled-table tbody td {
    padding: 0.65rem 0.875rem;
    vertical-align: middle;
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f3f5;
}

.ordercr-styled-table tbody tr:last-child td {
    border-bottom: none;
}

.ordercr-styled-table tbody tr {
    transition: background 0.15s ease;
}

.ordercr-styled-table tbody tr:hover {
    background: rgba(var(--vz-primary-rgb, 64, 81, 137), 0.03);
}

/* ── 13. Form Field styling ────────────────────────────────── */
.ordercr-form-field {
    margin-bottom: 0;
}

.ordercr-form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.4rem;
}

.ordercr-form-label i {
    font-size: 0.95rem;
    color: var(--vz-primary, #405189);
}

.ordercr-form-field .form-control,
.ordercr-form-field .form-select {
    border-radius: 0.5rem;
    padding: 0.55rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ordercr-form-field .form-control:focus,
.ordercr-form-field .form-select:focus {
    border-color: var(--vz-primary, #405189);
    box-shadow: 0 0 0 0.15rem rgba(var(--vz-primary-rgb, 64, 81, 137), 0.12);
}

.ordercr-divider {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 1.25rem 0;
}

/* ── 14. Checklist (Yes/No Questions) ──────────────────────── */
.ordercr-checklist {
    margin: 0;
    padding: 0;
}

.ordercr-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.2s ease;
}

.ordercr-checklist-item:last-child {
    border-bottom: none;
}

.ordercr-checklist-item:hover {
    background: rgba(var(--vz-primary-rgb, 64, 81, 137), 0.02);
}

.ordercr-checklist-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
    font-weight: 700;
    font-size: 0.72rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ordercr-checklist-text {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    color: #212529;
    font-weight: 500;
    line-height: 1.4;
}

.ordercr-checklist-radios {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* Radio pills */
.ordercr-radio-pill {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.ordercr-radio-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ordercr-radio-pill span {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    transition: all 0.2s ease;
    user-select: none;
}

.ordercr-radio-pill:hover span {
    border-color: #adb5bd;
}

/* Active Yes */
.ordercr-radio-yes input:checked ~ span {
    background: rgba(25, 135, 84, 0.1);
    border-color: #198754;
    color: #198754;
}

/* Active No */
.ordercr-radio-no input:checked ~ span {
    background: rgba(220, 53, 69, 0.08);
    border-color: #dc3545;
    color: #dc3545;
}

/* Checklist item highlight states */
.ordercr-checklist-yes {
    background: rgba(25, 135, 84, 0.03);
}

.ordercr-checklist-yes .ordercr-checklist-num {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.ordercr-checklist-no {
    background: rgba(220, 53, 69, 0.02);
}

.ordercr-checklist-no .ordercr-checklist-num {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* ── 15. RTL for review cards ──────────────────────────────── */
/* Flexbox natively respects dir="rtl" — no row-reverse needed */
[dir="rtl"] .ordercr-review-card {
    text-align: right;
}

[dir="rtl"] .ordercr-review-card-header {
    text-align: right;
}

[dir="rtl"] .ordercr-review-card-body {
    text-align: right;
}

[dir="rtl"] .ordercr-add-auditor-row {
    /* row direction handled natively by dir=rtl */
}

[dir="rtl"] .ordercr-checklist-item {
    text-align: right;
}

[dir="rtl"] .ordercr-form-label {
    /* direction handled natively by dir=rtl */
}

[dir="rtl"] .ordercr-checklist-radios {
    /* direction handled natively by dir=rtl */
}

[dir="rtl"] .ordercr-form-field .form-control,
[dir="rtl"] .ordercr-form-field .form-select,
[dir="rtl"] .ordercr-form-field textarea {
    text-align: right;
}

[dir="rtl"] .ordercr-review-card .form-label,
[dir="rtl"] .ordercr-review-card label {
    text-align: right;
    display: block;
}

/* ── 16. Responsive for review cards ───────────────────────── */
@media (max-width: 768px) {
    .ordercr-review-card-header {
        padding: 0.875rem 1rem;
    }

    .ordercr-review-card-body {
        padding: 1rem;
    }

    .ordercr-add-auditor-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ordercr-add-auditor-btn {
        width: 100%;
        justify-content: center;
    }

    .ordercr-checklist-item {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .ordercr-checklist-text {
        flex-basis: calc(100% - 2.75rem);
    }

    .ordercr-checklist-radios {
        margin-inline-start: 2.625rem;
        width: calc(100% - 2.625rem);
    }
}
