/* Front-end form */
.acrs-form-shell,
.acrs-form-shell * {
    box-sizing: border-box;
}

.acrs-form-shell {
    max-width: 980px;
    margin: 24px auto;
    padding: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 48%, #eef2ff 100%);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.acrs-form-hero {
    position: relative;
    padding: 34px 36px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.60), transparent 34%),
        linear-gradient(135deg, #111827 0%, #1e3a8a 55%, #312e81 100%);
}

.acrs-form-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.acrs-form-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.acrs-form-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
    font-weight: 800;
}

.acrs-form-hero p {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0;
    color: #dbeafe;
    font-size: 16px;
    line-height: 1.7;
}

.acrs-form {
    padding: 28px;
    background: transparent;
}

.acrs-section {
    margin: 0 0 22px;
    padding: 22px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.acrs-section legend {
    padding: 0 10px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}

.acrs-field {
    margin-bottom: 18px;
}

.acrs-field:last-child {
    margin-bottom: 0;
}

.acrs-label {
    display: block;
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
}

.acrs-label span {
    color: #dc2626;
}

.acrs-field input[type="text"],
.acrs-field input[type="email"],
.acrs-field input[type="file"],
.acrs-field textarea,
.acrs-field select {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    outline: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.acrs-field textarea {
    min-height: 116px;
    resize: vertical;
}

.acrs-field input:focus,
.acrs-field textarea:focus,
.acrs-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.acrs-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.acrs-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 46px;
    padding: 12px 13px;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.acrs-choice:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.07);
    transform: translateY(-1px);
}

.acrs-choice input {
    margin-top: 2px;
    accent-color: #2563eb;
}

.acrs-choice span {
    line-height: 1.45;
}

.acrs-help-text {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 12px;
}

.acrs-total-box {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 20px;
    margin: 24px 0;
    border-radius: 18px;
    color: #0f172a;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border: 1px solid #bfdbfe;
}

.acrs-total-box span {
    display: block;
    font-weight: 800;
}

.acrs-total-box small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.acrs-total-box strong {
    white-space: nowrap;
    font-size: 26px;
    color: #1d4ed8;
}

.acrs-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 13px 22px;
    border: none;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acrs-submit:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
}

/* Admin shared */
.acrs-admin-wrap .acrs-admin-card,
.acrs-builder-shell,
.acrs-builder-intro {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.acrs-admin-wrap .acrs-tabs {
    margin-bottom: 16px;
}

.acrs-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.acrs-status-pending {
    color: #92400e;
    background: #fef3c7;
}

.acrs-status-approved,
.acrs-status-paid {
    color: #166534;
    background: #dcfce7;
}

.acrs-status-rejected,
.acrs-status-failed {
    color: #991b1b;
    background: #fee2e2;
}

.acrs-request-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.acrs-requests-table td,
.acrs-requests-table th {
    vertical-align: middle;
}

.acrs-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.acrs-row-actions .button-small {
    margin: 0;
}

.acrs-action-approved {
    color: #166534 !important;
    border-color: #86efac !important;
}

.acrs-action-rejected {
    color: #991b1b !important;
    border-color: #fecaca !important;
}

.acrs-action-pending {
    color: #92400e !important;
    border-color: #fde68a !important;
}

.acrs-request-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.acrs-request-summary p {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.acrs-submitted-data th {
    width: 260px;
}

/* Admin form builder */
.acrs-builder-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    gap: 20px;
    align-items: start;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.acrs-builder-editor,
.acrs-builder-preview-panel {
    min-width: 0;
}

.acrs-builder-toolbar {
    position: sticky;
    top: 32px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #dcdcde;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.acrs-builder-toolbar-bottom {
    position: static;
    margin-top: 14px;
}

.acrs-field-row {
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid #dcdcde;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.acrs-field-row-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.acrs-field-row h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #1d2327;
    font-size: 15px;
}

.acrs-drag-handle {
    color: #64748b;
    cursor: move;
}

.acrs-field-type-pill {
    padding: 3px 8px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.acrs-admin-wrap .acrs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
}

.acrs-admin-wrap label {
    display: block;
    margin-bottom: 12px;
    color: #1d2327;
    font-weight: 700;
}

.acrs-admin-wrap input[type="text"],
.acrs-admin-wrap input[type="email"],
.acrs-admin-wrap input[type="number"],
.acrs-admin-wrap select,
.acrs-admin-wrap textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    border-radius: 9px;
}

.acrs-admin-wrap .acrs-inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 24px;
}

.acrs-admin-wrap .acrs-inline-check input {
    margin: 0;
}

.acrs-options-label {
    margin-top: 8px;
}

.acrs-preview-sticky {
    position: sticky;
    top: 32px;
}

.acrs-preview-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid #dcdcde;
    border-radius: 16px 16px 0 0;
    background: #ffffff;
    border-bottom: none;
}

.acrs-preview-header .dashicons {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 22px;
}

.acrs-preview-header h2 {
    margin: 0 0 2px;
    font-size: 16px;
}

.acrs-preview-header p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.acrs-live-preview {
    max-height: calc(100vh - 170px);
    overflow: auto;
    padding: 18px;
    border: 1px solid #dcdcde;
    border-radius: 0 0 16px 16px;
    background: #f1f5f9;
}

.acrs-live-preview .acrs-form-shell {
    margin: 0;
    transform-origin: top center;
}

.acrs-live-preview .acrs-form-hero {
    padding: 22px;
}

.acrs-live-preview .acrs-form-hero h2 {
    font-size: 24px;
}

.acrs-live-preview .acrs-form-hero p {
    font-size: 13px;
}

.acrs-live-preview .acrs-form {
    padding: 18px;
}

.acrs-live-preview .acrs-section {
    padding: 16px;
}

.acrs-live-preview .acrs-choice-grid {
    grid-template-columns: 1fr;
}

.acrs-live-preview .acrs-total-box {
    display: block;
}

.acrs-live-preview .acrs-total-box strong {
    display: block;
    margin-top: 10px;
    font-size: 22px;
}

@media (max-width: 1200px) {
    .acrs-builder-shell {
        grid-template-columns: 1fr;
    }

    .acrs-preview-sticky,
    .acrs-builder-toolbar {
        position: static;
    }

    .acrs-live-preview {
        max-height: none;
    }
}

@media (max-width: 700px) {
    .acrs-form {
        padding: 18px;
    }

    .acrs-form-hero {
        padding: 26px 22px;
    }

    .acrs-choice-grid,
    .acrs-admin-wrap .acrs-grid {
        grid-template-columns: 1fr;
    }

    .acrs-total-box {
        display: block;
    }

    .acrs-total-box strong {
        display: block;
        margin-top: 12px;
    }

    .acrs-field-row-head,
    .acrs-builder-toolbar,
    .acrs-request-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Success modal, captcha, and security feedback */
.acrs-alert {
    margin: 22px 28px 0;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 600;
}

.acrs-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.acrs-hp-field {
    position: absolute !important;
    left: -99999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.acrs-captcha-field {
    padding: 18px;
    margin: 0 0 22px;
    border: 1px solid rgba(200, 164, 93, 0.35);
    border-radius: 18px;
    background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
}

.acrs-captcha-field input[type="number"] {
    max-width: 220px;
}

.acrs-success-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.acrs-success-modal.is-visible {
    display: flex;
}

.acrs-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(8px);
}

.acrs-success-dialog {
    position: relative;
    width: min(620px, 100%);
    padding: 34px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(200, 164, 93, 0.18), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-align: center;
    animation: acrsModalIn 180ms ease-out;
}

@keyframes acrsModalIn {
    from { transform: translateY(14px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.acrs-success-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    color: #64748b;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.acrs-success-close:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.acrs-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 16px 34px rgba(22, 163, 74, 0.28);
    font-size: 38px;
    font-weight: 900;
}

.acrs-success-dialog h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.2;
    font-weight: 900;
}

.acrs-success-message {
    max-width: 500px;
    margin: 0 auto 22px;
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
}

.acrs-success-message p {
    margin: 0 0 10px;
}

.acrs-success-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.acrs-success-summary span {
    display: block;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    color: #64748b;
    background: #ffffff;
    font-size: 13px;
}

.acrs-success-summary strong {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-size: 16px;
}

.acrs-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.acrs-success-pay,
.acrs-success-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.acrs-success-pay {
    color: #ffffff !important;
    background: linear-gradient(135deg, #15213d 0%, #263b67 100%);
    box-shadow: 0 12px 26px rgba(21, 33, 61, 0.24);
}

.acrs-success-secondary {
    color: #15213d;
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.acrs-test-email-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

@media (max-width: 640px) {
    .acrs-success-dialog {
        padding: 28px 18px;
        border-radius: 22px;
    }

    .acrs-success-summary {
        grid-template-columns: 1fr;
    }

    .acrs-success-actions {
        flex-direction: column;
    }

    .acrs-success-pay,
    .acrs-success-secondary {
        width: 100%;
    }
}

/* Admin request modal and full detail page */
body.acrs-admin-modal-open {
    overflow: hidden;
}

.acrs-admin-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.acrs-admin-modal.is-visible {
    display: flex;
}

.acrs-admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.acrs-admin-modal-panel {
    position: relative;
    width: min(1120px, 100%);
    max-height: calc(100vh - 56px);
    overflow: auto;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 32px 120px rgba(2, 6, 23, 0.48);
    animation: acrsAdminModalIn 180ms ease-out;
}

@keyframes acrsAdminModalIn {
    from { transform: translateY(14px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.acrs-admin-modal-close {
    position: sticky;
    top: 16px;
    left: calc(100% - 54px);
    z-index: 3;
    width: 38px;
    height: 38px;
    margin: 16px 16px -54px auto;
    border: 0;
    border-radius: 999px;
    color: #475569;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.acrs-admin-modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.acrs-admin-modal-content {
    padding: 0;
}

.acrs-modal-loading,
.acrs-modal-error {
    margin: 70px auto;
    max-width: 520px;
    padding: 22px;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.acrs-modal-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.acrs-request-name-link {
    text-decoration: none;
}

.acrs-request-name-link:hover {
    text-decoration: underline;
}

.acrs-request-detail {
    overflow: hidden;
    border-radius: 22px;
    background: #f8fafc;
}

.acrs-request-detail-page {
    max-width: 1180px;
    margin-top: 18px;
    border: 1px solid #dcdcde;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.acrs-request-detail-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 30px 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(200, 164, 93, 0.30), transparent 30%),
        linear-gradient(135deg, #111827 0%, #15213d 54%, #263b67 100%);
}

.acrs-detail-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.acrs-request-detail-hero h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 900;
}

.acrs-request-detail-hero p {
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
}

.acrs-request-detail-hero a:not(.button) {
    color: #fef3c7;
}

.acrs-detail-open-page {
    white-space: nowrap;
}

.acrs-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 20px 24px 0;
}

.acrs-detail-stat {
    min-height: 92px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.acrs-detail-stat span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.acrs-detail-stat strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.4;
}

.acrs-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 24px 4px;
}

.acrs-detail-section-card {
    margin: 20px 24px 24px;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.acrs-detail-section-card h3 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.acrs-detail-section-group {
    margin: 0 0 20px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.acrs-detail-section-group:last-child {
    margin-bottom: 0;
}

.acrs-detail-section-group h4 {
    margin: 0 0 12px;
    color: #15213d;
    font-size: 15px;
    font-weight: 900;
}

.acrs-detail-row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
}

.acrs-detail-row:first-of-type {
    border-top: 0;
}

.acrs-detail-label {
    color: #475569;
    font-weight: 800;
}

.acrs-detail-value {
    color: #0f172a;
    line-height: 1.7;
}

.acrs-value-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acrs-value-pills span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: #15213d;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    font-size: 12px;
    font-weight: 800;
}

.acrs-muted,
.acrs-empty-state {
    color: #94a3b8;
}

.acrs-file-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.acrs-file-card {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.acrs-file-preview {
    min-height: 120px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}

.acrs-file-preview img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.acrs-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
    font-size: 26px;
    font-weight: 900;
    text-decoration: none;
}

.acrs-file-info {
    min-width: 0;
}

.acrs-file-info strong,
.acrs-file-info span,
.acrs-file-info small {
    display: block;
}

.acrs-file-info strong {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 15px;
}

.acrs-file-info span {
    overflow: hidden;
    color: #475569;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acrs-file-info small {
    margin-top: 6px;
    color: #94a3b8;
}

.acrs-file-actions {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

@media (max-width: 960px) {
    .acrs-admin-modal {
        padding: 12px;
    }

    .acrs-request-detail-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px 22px;
    }

    .acrs-detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px 16px 0;
    }

    .acrs-detail-actions,
    .acrs-detail-section-card {
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .acrs-file-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .acrs-detail-stats {
        grid-template-columns: 1fr;
    }

    .acrs-detail-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .acrs-file-card {
        grid-template-columns: 1fr;
    }

    .acrs-file-actions {
        grid-column: 1;
    }
}

.acrs-status-contacted,
.acrs-status-processing {
    color: #1e40af;
    background: #dbeafe;
}

.acrs-status-completed {
    color: #075985;
    background: #cffafe;
}

/* ACRS v1.4 route switch */
.acrs-route-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.acrs-route-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: #334155;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s ease;
}

.acrs-route-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.acrs-route-option span {
    position: relative;
    z-index: 1;
}

.acrs-route-option:hover {
    background: rgba(255, 255, 255, 0.74);
    color: #0f172a;
}

.acrs-route-option.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #111827 0%, #1e3a8a 54%, #312e81 100%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 34px rgba(30, 58, 138, 0.24);
}

[data-acrs-route].is-route-hidden {
    display: none !important;
}

.acrs-live-preview .acrs-route-switch {
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
}

.acrs-live-preview .acrs-route-option {
    min-height: 46px;
    padding: 10px;
    font-size: 12px;
}

.acrs-field-row .acrs-field-route {
    border-color: #bfdbfe;
    background: #eff6ff;
}

@media (max-width: 640px) {
    .acrs-route-switch {
        grid-template-columns: 1fr;
    }
}
