/* v0.23.1 — UAT page isolated UI hotfix.
   Every rule is namespaced with uat23- to avoid collisions with legacy CSS. */

.uat23-page,
.uat23-page * {
    box-sizing: border-box;
}

.uat23-page {
    direction: rtl;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 30px 30px 44px;
    overflow-x: clip;
    color: #10203a;
}

.uat23-toolbar {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.uat23-heading-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.uat23-eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #365f9d;
}

.uat23-heading-copy h1,
.uat23-group-head h2,
.uat23-reset h2,
.uat23-check h3 {
    overflow-wrap: anywhere;
}

.uat23-heading-copy h1 {
    margin: 0;
    font-size: clamp(25px, 2.3vw, 34px);
    line-height: 1.3;
    color: #10203a;
}

.uat23-heading-copy p {
    max-width: 950px;
    margin: 10px 0 0;
    color: #687a97;
    line-height: 1.9;
    font-size: 15px;
}

.uat23-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 12px;
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.uat23-btn-primary {
    background: #2f61dc;
    border-color: #2f61dc;
    color: #fff;
}

.uat23-btn-secondary {
    background: #fff;
    border-color: #d8e1ee;
    color: #10203a;
}

.uat23-alert {
    width: 100%;
    padding: 14px 16px;
    margin: 0 0 18px;
    border-radius: 12px;
    font-weight: 700;
}

.uat23-alert-success {
    background: #eaf8ef;
    color: #166d3c;
    border: 1px solid #c8ead5;
}

.uat23-alert-danger {
    background: #fff0f0;
    color: #a12e2e;
    border: 1px solid #f2cccc;
}

.uat23-gate {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    align-items: center;
    gap: 24px;
    padding: 25px 28px;
    margin-bottom: 20px;
    border: 1px solid #d9e3f1;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
    box-shadow: 0 8px 24px rgba(25, 55, 95, .04);
}

.uat23-gate.is-ready {
    border-color: #b8e2c7;
    background: linear-gradient(135deg, #ffffff 0%, #f1fbf5 100%);
}

.uat23-gate-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.uat23-gate-copy > span {
    color: #667897;
    font-size: 14px;
}

.uat23-gate-copy strong {
    color: #10203a;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.4;
}

.uat23-gate-copy small {
    color: #6b7d99;
    font-size: 14px;
    line-height: 1.7;
}

.uat23-ring {
    --uat23-score: 0;
    width: 94px;
    height: 94px;
    justify-self: end;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    background: conic-gradient(#2f61dc calc(var(--uat23-score) * 1%), #e8edf6 0);
    position: relative;
}

.uat23-ring::after {
    content: "";
    position: absolute;
    inset: 9px;
    background: #fff;
    border-radius: 50%;
}

.uat23-ring b,
.uat23-ring span {
    position: relative;
    z-index: 1;
}

.uat23-ring b {
    font-size: 22px;
    color: #10203a;
}

.uat23-ring span {
    margin-top: 2px;
    font-size: 11px;
    color: #71809a;
}

.uat23-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.uat23-stat {
    min-width: 0;
    min-height: 126px;
    padding: 20px;
    display: grid;
    align-content: center;
    gap: 7px;
    border: 1px solid #dfe6f1;
    border-radius: 18px;
    background: #fff;
}

.uat23-stat span {
    color: #72819a;
    font-size: 14px;
}

.uat23-stat strong {
    font-size: 29px;
    line-height: 1;
    color: #10203a;
}

.uat23-stat small {
    color: #8491a6;
}

.uat23-group {
    width: 100%;
    margin-top: 18px;
    border: 1px solid #dfe6f1;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.uat23-group-head {
    width: 100%;
    padding: 22px 24px 16px;
    border-bottom: 1px solid #edf1f6;
}

.uat23-group-head h2 {
    margin: 0;
    font-size: 22px;
    color: #10203a;
}

.uat23-group-head p {
    margin: 6px 0 0;
    color: #71809a;
    line-height: 1.7;
}

.uat23-list {
    width: 100%;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.uat23-check {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 22px;
    padding: 20px;
    border: 1px solid #dfe6f1;
    border-inline-start-width: 5px;
    border-radius: 16px;
    background: #fff;
}

.uat23-check.is-passed { border-inline-start-color: #169451; }
.uat23-check.is-failed { border-inline-start-color: #d14343; }
.uat23-check.is-pending { border-inline-start-color: #aeb8c8; }

.uat23-check-copy,
.uat23-form {
    min-width: 0;
}

.uat23-check-title-row {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.uat23-check h3 {
    min-width: 0;
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #10203a;
}

.uat23-check-copy p {
    margin: 10px 0;
    color: #60728f;
    line-height: 1.9;
}

.uat23-check-copy small {
    color: #7b8aa3;
    line-height: 1.7;
}

.uat23-status {
    flex: 0 0 auto;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.uat23-status.is-passed { background: #e8f8ee; color: #12723f; }
.uat23-status.is-failed { background: #fdecec; color: #a72f2f; }
.uat23-status.is-pending { background: #eef2f7; color: #66758c; }

.uat23-form {
    width: 100%;
    display: grid;
    gap: 12px;
    align-content: start;
}

.uat23-form label {
    width: 100%;
    display: grid;
    gap: 7px;
    font-weight: 700;
    color: #10203a;
}

.uat23-form select,
.uat23-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    border: 1px solid #d8e1ee !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #10203a !important;
    font: inherit !important;
}

.uat23-form select {
    min-height: 44px !important;
}

.uat23-form textarea {
    min-height: 78px !important;
    resize: vertical;
}

.uat23-form .uat23-btn {
    width: 100%;
}

.uat23-reset {
    width: 100%;
    margin-top: 20px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #dfe6f1;
    border-radius: 20px;
    background: #fff;
}

.uat23-reset h2 {
    margin: 0;
    font-size: 20px;
}

.uat23-reset p {
    margin: 6px 0 0;
    color: #71809a;
}

@media (max-width: 1100px) {
    .uat23-page {
        padding: 24px 20px 38px;
    }

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

    .uat23-check {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .uat23-page {
        padding: 18px 14px 30px;
    }

    .uat23-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .uat23-toolbar .uat23-btn {
        width: 100%;
    }

    .uat23-gate {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .uat23-ring {
        justify-self: start;
    }

    .uat23-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .uat23-stat {
        min-height: 108px;
        padding: 16px;
    }

    .uat23-stat strong {
        font-size: 25px;
    }

    .uat23-group-head {
        padding: 18px 16px 14px;
    }

    .uat23-list {
        padding: 12px;
    }

    .uat23-check {
        padding: 15px;
        gap: 16px;
    }

    .uat23-check-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .uat23-reset {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .uat23-reset .uat23-btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .uat23-page {
        padding-inline: 10px;
    }

    .uat23-stats {
        grid-template-columns: 1fr;
    }

    .uat23-heading-copy h1 {
        font-size: 25px;
    }

    .uat23-gate-copy strong {
        font-size: 20px;
    }
}
