/* SCIS access request portal pages. */

.scis-request-page {
    min-height: 84vh;
    background: #f3f5fb !important;
    padding: 14px 0 20px;
}
.scis-request-document {
    width: min(100% - 32px, 770px);
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.scis-request-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
.scis-request-logo img {
    max-width: 300px;
    max-height: 54px;
    object-fit: contain;
}
.scis-request-logo-fallback {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2850b8;
    line-height: 1;
}
.scis-logo-mark {
    width: 43px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #2850b8;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
}
.scis-request-logo-fallback strong {
    display: block;
    font-size: 21px;
    line-height: 1;
}
.scis-request-logo-fallback small {
    display: block;
    margin-top: 4px;
    color: #2850b8;
    font-size: 11px;
    font-weight: 700;
}
.scis-request-hero {
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 32px 20px;
    background: linear-gradient(90deg, #2746c7 0%, #17227f 100%);
    color: #ffffff;
}
.scis-request-hero h1 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.06;
    font-weight: 800;
}
.scis-hero-tag {
    display: inline-flex;
    max-width: 100%;
    min-height: 23px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: #ff7500;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 700;
}
.scis-hero-badge {
    min-width: 186px;
    min-height: 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 13px 17px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.scis-hero-badge span {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
}
.scis-hero-badge strong {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}
.scis-request-content {
    padding: 24px 28px 18px;
}
.scis-objective-box {
    display: grid;
    gap: 3px;
    margin-bottom: 15px;
    padding: 10px 14px 11px;
    border: 1px solid #a9c8ff;
    border-radius: 6px;
    background: #eaf4ff;
    color: #001529;
    font-size: 13px;
    line-height: 1.25;
}
.scis-objective-box strong {
    color: #164091;
    font-size: 14px;
}
.scis-request-alert {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.35;
}
.scis-request-alert-success {
    border: 1px solid #7fd5a6;
    background: #eafaf0;
    color: #096033;
}
.scis-request-alert-danger {
    border: 1px solid #ff9d96;
    background: #fff1f0;
    color: #b00000;
}
.scis-request-alert ul {
    margin: 7px 0 0 18px;
    padding: 0;
}
.scis-request-reference {
    display: block;
    margin-top: 3px;
}
.scis-step-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 16px;
}
.scis-step-pill {
    min-height: 29px;
    border: 1px solid #b8ccff;
    border-radius: 6px;
    background: #f8fbff;
    color: #123a9b;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    text-align: center;
}
.scis-step-pill.scis-active,
.scis-step-pill.scis-complete {
    border-color: #194dc3;
    background: #194dc3;
    color: #ffffff;
}
.scis-form-body {
    position: relative;
    min-height: 412px;
    overflow: hidden;
}
.scis-watermark {
    position: absolute;
    inset: 26px 36px auto auto;
    color: rgba(28, 54, 145, 0.035);
    font-size: 270px;
    line-height: 1;
    font-weight: 900;
    pointer-events: none;
    user-select: none;
}
.scis-step-panel {
    position: relative;
    z-index: 1;
    display: none;
}
.scis-step-panel.scis-active {
    display: block;
}
.scis-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.scis-section-title span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #1255d7;
    color: #ffffff;
    font-size: 17px;
    line-height: 1;
    font-weight: 800;
}
.scis-section-title h2 {
    margin: 0;
    color: #000000;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}
.scis-field label {
    display: block;
    margin-bottom: 6px;
    color: #000000;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
}
.scis-control {
    min-height: 37px;
    border: 1px solid #303030;
    border-radius: 7px;
    background-color: #ffffff;
    color: #000000;
    font-size: 12px;
    line-height: 1.2;
    box-shadow: none;
}
.scis-control:focus {
    border-color: #1255d7;
    box-shadow: 0 0 0 2px rgba(18, 85, 215, 0.16);
}
.scis-control::placeholder {
    color: #8a8f98;
}
.scis-textarea {
    min-height: 164px;
    resize: vertical;
}
.scis-field-error {
    display: none;
    margin-top: 7px;
    color: #d00000;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
}
.scis-field.scis-invalid .scis-control {
    border-color: #ff1f1f;
}
.scis-field.scis-invalid .scis-field-error {
    display: block;
}
.scis-confirmation-box {
    display: grid;
    gap: 7px;
    padding: 18px 20px;
    border: 1px solid #b8ccff;
    border-radius: 7px;
    background: #f4f8ff;
    color: #001529;
    font-size: 14px;
    line-height: 1.45;
}
.scis-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}
.scis-primary-button,
.scis-secondary-button {
    min-width: 108px;
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
}
.scis-primary-button {
    border: 1px solid #ff7500;
    background: #ff7500;
    color: #ffffff;
}
.scis-primary-button:hover,
.scis-primary-button:focus {
    border-color: #e66700;
    background: #e66700;
    color: #ffffff;
}
.scis-secondary-button {
    border: 1px solid #b8ccff;
    background: #ffffff;
    color: #123a9b;
}
#scis_submit_request {
    display: none;
}
.scis-access-form.scis-last-step #scis_next_step {
    display: none;
}
.scis-access-form.scis-last-step #scis_submit_request {
    display: inline-flex;
}
.scis-access-form.scis-first-step #scis_prev_step {
    visibility: hidden;
}
.scis-request-bottom {
    height: 20px;
    background: #1d3ec3;
}
@media (max-width: 767.98px) {
    .scis-request-page {
        padding-top: 10px;
    }
    .scis-request-document {
        width: min(100% - 20px, 770px);
    }
    .scis-request-logo {
        height: 62px;
    }
    .scis-request-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px 22px;
    }
    .scis-request-hero h1 {
        font-size: 24px;
    }
    .scis-hero-badge {
        width: 100%;
    }
    .scis-request-content {
        padding: 20px 18px 16px;
    }
    .scis-step-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .scis-form-body {
        min-height: 0;
    }
    .scis-watermark {
        inset: 70px 6px auto auto;
        font-size: 180px;
    }
    .scis-form-actions {
        flex-direction: column-reverse;
    }
    .scis-primary-button,
    .scis-secondary-button {
        width: 100%;
    }
    .scis-access-form.scis-first-step #scis_prev_step {
        display: none;
    }
}

.scis-access-portal {
    min-height: 70vh;
    background: #f6f8fc;
    box-sizing: border-box;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 30px clamp(16px, 2vw, 36px) 56px;
}
.scis-access-wrap {
    width: min(100%, 1720px);
    margin: 0 auto;
}
.scis-access-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 27px 26px;
    border-radius: 8px;
    background: linear-gradient(120deg, #2647ca 0%, #142575 100%);
    color: #ffffff;
    box-shadow: 0 22px 44px rgba(20, 37, 117, 0.18);
}
.scis-access-hero h1 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
}
.scis-access-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
}
.scis-access-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.scis-access-primary,
.scis-access-secondary {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    padding: 0 18px;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.scis-access-primary {
    border: 1px solid #ff7500;
    background: #ff7500;
    color: #ffffff;
}
.scis-access-primary:hover,
.scis-access-primary:focus {
    border-color: #e66700;
    background: #e66700;
    color: #ffffff;
    text-decoration: none;
}
.scis-access-secondary {
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.scis-access-secondary:hover,
.scis-access-secondary:focus {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
}
.scis-access-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}
.scis-access-stat {
    min-height: 82px;
    padding: 15px 14px;
    border: 1px solid #d5def9;
    border-radius: 8px;
    background: #ffffff;
}
.scis-access-stat span {
    display: block;
    margin-bottom: 8px;
    color: #40507c;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}
.scis-access-stat strong {
    display: block;
    color: #2042bc;
    font-size: 28px;
    line-height: 1;
    font-weight: 850;
}
.scis-access-panel {
    border: 1px solid #d5def9;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}
.scis-access-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid #e4e9fb;
    background: #fbfcff;
}
.scis-access-panel-head h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}
.scis-access-panel-head p {
    margin: 5px 0 0;
    color: #677089;
    font-size: 13px;
}
.scis-access-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.scis-access-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}
.scis-access-table th,
.scis-access-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf1fb;
    color: #111827;
    font-size: 13px;
    vertical-align: top;
}
.scis-access-table th {
    background: #ffffff;
    color: #425078;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.scis-access-table tr:last-child td {
    border-bottom: 0;
}
.scis-access-pager {
    padding: 16px 20px 18px;
    border-top: 1px solid #e4e9fb;
    background: #fbfcff;
}
.scis-access-pager .page-link {
    color: #2042bc;
    font-weight: 800;
}
.scis-access-pager .page-item.active .page-link {
    border-color: #2042bc;
    background: #2042bc;
    color: #ffffff;
}
.scis-access-code {
    color: #2042bc;
    font-weight: 850;
    text-decoration: none;
}
.scis-access-code:hover {
    color: #142f95;
    text-decoration: underline;
}
.scis-access-muted {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
}
.scis-state-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    border-radius: 999px;
    padding: 0 10px;
    background: #eef2ff;
    color: #243c9f;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}
.scis-state-implemented,
.scis-state-approved {
    background: #e7f8ef;
    color: #087343;
}
.scis-state-manager_approval,
.scis-state-technical_validation,
.scis-state-submitted {
    background: #fff5d6;
    color: #835700;
}
.scis-state-rejected,
.scis-state-expired {
    background: #ffe8e5;
    color: #a5160a;
}
.scis-state-revoked {
    background: #f1f5f9;
    color: #475569;
}
.scis-access-empty {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid #9bd6e4;
    border-radius: 8px;
    background: #d9f5fb;
    color: #063745;
    font-size: 16px;
}
@media (max-width: 900px) {
    .scis-access-hero,
    .scis-access-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .scis-access-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .scis-access-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .scis-access-portal {
        padding: 18px 10px 36px;
    }
    .scis-access-hero {
        padding: 22px 18px;
    }
    .scis-access-hero h1 {
        font-size: 25px;
    }
    .scis-access-actions,
    .scis-access-primary,
    .scis-access-secondary {
        width: 100%;
    }
    .scis-access-stats {
        grid-template-columns: 1fr;
    }
}
