﻿:root {
    --navy: #071b35;
    --blue: #1476c5;
    --cyan: #1eb4ca;
    --gold: #f5bc42;
    --ink: #15253c;
    --muted: #68768a;
    --line: #e1e8f0;
    --bg: #f4f7fb;
    --white: #fff;
    --danger: #be3144;
    --success: #15815d;
    --shadow: 0 18px 50px rgba(7,27,53,.12)
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter,Cairo,Arial,sans-serif;
    color: var(--ink);
    background: var(--bg)
}

a {
    color: var(--blue);
    text-decoration: none
}

button, input, select, textarea {
    font: inherit
}

button {
    cursor: pointer
}

.validation {
    display: block;
    color: var(--danger);
    font-size: .78rem;
    margin-top: 5px
}

    .validation ul {
        margin: 8px 0;
        padding-inline-start: 18px
    }

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 46% 54%;
    background: #fff
}

.auth-visual {
    position: relative;
    overflow: hidden;
    padding: 46px clamp(40px,6vw,92px);
    color: #fff;
    background: radial-gradient(circle at 20% 10%,rgba(30,180,202,.35),transparent 28%),linear-gradient(145deg,#06172e,#0a3158 65%,#0c5276)
}

    .auth-visual:after {
        content: "";
        position: absolute;
        width: 330px;
        height: 330px;
        border: 70px solid rgba(255,255,255,.045);
        border-radius: 50%;
        right: -150px;
        bottom: -130px
    }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1
}

    .auth-brand img {
        width: 68px;
        height: 68px;
        object-fit: contain;
        background: #fff;
        border-radius: 15px;
        padding: 8px
    }

    .auth-brand div {
        display: flex;
        flex-direction: column;
        gap: 4px
    }

    .auth-brand b {
        font-size: 1.05rem
    }

    .auth-brand span {
        font-size: .82rem;
        color: #b9d7ea
    }

.hero-copy {
    margin-top: clamp(70px,11vh,135px);
    position: relative;
    z-index: 1
}

    .hero-copy small, .eyebrow, .page-head small {
        letter-spacing: .16em;
        font-weight: 800;
        color: var(--cyan)
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem,4.5vw,4.6rem);
        line-height: 1.06;
        margin: 16px 0 24px;
        max-width: 650px
    }

        .hero-copy h1 strong {
            display: block;
            color: var(--gold)
        }

    .hero-copy p {
        font-size: 1.05rem;
        line-height: 1.9;
        color: #c5d8e8;
        max-width: 580px
    }

.feature-list {
    display: grid;
    gap: 22px;
    margin-top: 56px;
    position: relative;
    z-index: 1
}

    .feature-list > div {
        display: flex;
        align-items: center;
        gap: 16px
    }

    .feature-list i {
        width: 47px;
        height: 47px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 14px;
        color: var(--gold);
        background: rgba(255,255,255,.06)
    }

    .feature-list span {
        display: flex;
        flex-direction: column;
        gap: 5px
    }

    .feature-list small {
        color: #adc7da
    }

.steps {
    display: grid;
    gap: 18px;
    margin-top: 55px
}

    .steps > div {
        display: flex;
        align-items: center;
        gap: 14px;
        color: #adc7da
    }

    .steps b {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.25)
    }

    .steps .active {
        color: #fff
    }

        .steps .active b {
            background: var(--gold);
            color: var(--navy);
            border-color: var(--gold)
        }

.auth-form-side {
    padding: 30px clamp(24px,7vw,105px) 55px;
    display: flex;
    flex-direction: column;
    min-width: 0
}

.auth-top {
    text-align: end;
    height: 50px
}

    .auth-top a {
        display: inline-flex;
        gap: 8px;
        align-items: center;
        font-weight: 700
    }

.auth-card {
    width: min(100%,540px);
    margin: auto
}

    .auth-card.wide {
        width: min(100%,730px)
    }

    .auth-card h2 {
        font-size: 2rem;
        margin: 10px 0
    }

    .auth-card > p {
        color: var(--muted);
        line-height: 1.7;
        margin: 0 0 30px
    }

    .auth-card label, .form-panel label, .review-form label {
        font-weight: 700;
        font-size: .88rem;
        display: block;
        margin: 18px 0 8px
    }

        .auth-card label b {
            color: var(--danger)
        }

.field {
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 12px;
    background: #fff;
    transition: .2s
}

    .field:focus-within {
        border-color: var(--blue);
        box-shadow: 0 0 0 4px rgba(20,118,197,.09)
    }

    .field > i {
        color: #8493a6
    }

    .field input {
        border: 0;
        outline: 0;
        width: 100%;
        height: 100%;
        background: transparent
    }

.password-toggle {
    border: 0;
    background: none;
    color: var(--muted)
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: end
}

    .label-row a {
        font-size: .8rem
    }

.check {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    font-weight: 500 !important;
    margin: 18px 0 !important
}

    .check input {
        width: 17px;
        height: 17px;
        accent-color: var(--blue)
    }

.primary-btn, .secondary-btn {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    font-weight: 800
}

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg,var(--blue),#0c96bd);
    box-shadow: 0 9px 20px rgba(20,118,197,.2)
}

    .primary-btn:hover {
        transform: translateY(-1px)
    }

.auth-card form > .primary-btn {
    width: 100%;
    margin-top: 5px
}

.secondary-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink)
}

.auth-card > .secondary-btn {
    width: 100%
}

.separator {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--muted);
    font-size: .8rem;
    margin: 22px 0
}

    .separator:before, .separator:after {
        content: "";
        height: 1px;
        background: var(--line);
        flex: 1
    }

.demo-box {
    display: flex;
    gap: 14px;
    padding: 16px;
    margin-top: 24px;
    background: #eff8fd;
    border: 1px solid #d7edf7;
    border-radius: 13px
}

    .demo-box > i {
        color: var(--blue);
        font-size: 1.3rem
    }

    .demo-box div {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: .78rem
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 18px
}

    .form-grid .full {
        grid-column: 1/-1
    }

.terms {
    line-height: 1.6
}

.center {
    text-align: center !important;
    margin: 20px 0 0 !important
}

.app-header {
    height: 82px;
    padding: 0 clamp(20px,5vw,70px);
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink)
}

    .brand img {
        width: 52px;
        height: 52px;
        object-fit: contain
    }

    .brand span {
        display: flex;
        flex-direction: column;
        gap: 3px
    }

    .brand small {
        color: var(--muted)
    }

.app-header nav {
    display: flex;
    align-items: center;
    gap: 22px
}

    .app-header nav a, .link-button {
        font-weight: 700;
        color: var(--ink);
        background: none;
        border: 0
    }

    .app-header nav form {
        margin: 0
    }

.app-main {
    max-width: 1250px;
    margin: auto;
    padding: 52px 28px 80px
}

.page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px
}

    .page-head.compact {
        max-width: 900px;
        margin-inline: auto;
        margin-bottom: 22px
    }

    .page-head h1 {
        margin: 8px 0;
        font-size: 2rem
    }

    .page-head p {
        margin: 0;
        color: var(--muted)
    }

.cards {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px
}

.application-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 23px;
    color: var(--ink);
    box-shadow: 0 5px 20px rgba(7,27,53,.04);
    transition: .2s
}

    .application-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow)
    }

.card-top, .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px
}

.number {
    font-weight: 800;
    color: var(--blue);
    font-size: .86rem
}

.application-card h3 {
    font-size: 1.25rem;
    margin: 25px 0 7px
}

.application-card p {
    color: var(--muted);
    margin: 0 0 25px
}

.card-meta {
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: var(--muted)
}

.status {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 30px;
    font-size: .76rem;
    font-weight: 800;
    background: #edf1f6
}

.status-submitted {
    background: #eaf4ff;
    color: #176eb3
}

.status-underreview {
    background: #fff5dc;
    color: #946000
}

.status-accepted {
    background: #e8f8f1;
    color: #147657
}

.status-rejected {
    background: #ffebed;
    color: #a52336
}

.panel, .table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: 0 6px 25px rgba(7,27,53,.05)
}

.form-panel, .review-form {
    max-width: 900px;
    margin: auto;
    padding: 28px
}

    .form-panel input, .form-panel select, .form-panel textarea, .review-form input, .review-form select, .review-form textarea, .filter-bar input, .filter-bar select {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 13px;
        background: #fff;
        outline: none
    }

        .form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus, .review-form select:focus, .review-form textarea:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(20,118,197,.08)
        }

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1px;
    background: var(--line);
    overflow: hidden
}

    .details-grid > div {
        background: #fff;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 8px
    }

    .details-grid small {
        color: var(--muted)
    }

    .details-grid .full {
        grid-column: 1/-1
    }

.decision {
    background: #eff9f5 !important
}

.back {
    margin-top: 20px
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 12px;
    margin-bottom: 20px
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px
}

th, td {
    text-align: start;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line)
}

th {
    background: #f8fafc;
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase
}

td > b, td > small {
    display: block
}

td > small {
    color: var(--muted);
    margin-top: 4px
}

.table-action {
    font-weight: 800
}

.review-form {
    margin-top: 22px
}

.empty {
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 17px;
    padding: 70px 20px
}

    .empty i {
        font-size: 2.3rem;
        color: var(--blue)
    }

    .empty h2 {
        margin-bottom: 8px
    }

    .empty p {
        color: var(--muted);
        margin-bottom: 22px
    }

    .empty.small {
        border: 0;
        padding: 30px
    }

.flash {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    padding: 13px 22px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: .3s
}

    .flash.success {
        background: #e8f8f1;
        color: #126c4f
    }

    .flash.hide {
        opacity: 0;
        pointer-events: none
    }

[dir=rtl] .fa-arrow-right {
    transform: rotate(180deg)
}

/* Shared layout: deliberately scoped to avoid collisions with demo page classes. */
.shared-app-header {
    min-height: 82px;
    padding: 0 clamp(20px,5vw,70px);
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 100
}

.shared-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    min-width: 0
}

    .shared-brand img {
        width: 52px;
        height: 52px;
        object-fit: contain;
        flex: 0 0 52px
    }

    .shared-brand > span {
        display: flex;
        flex-direction: column;
        gap: 3px
    }

    .shared-brand small {
        color: var(--muted)
    }

.shared-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex-wrap: wrap
}

    .shared-nav a, .shared-nav .link-button {
        font-weight: 700;
        color: var(--ink);
        background: none;
        border: 0
    }

    .shared-nav form {
        margin: 0
    }

.layout-body {
    min-width: 0;
    flex: 1 0 auto
}

.site-footer {
    flex: 0 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,.82);
    background: linear-gradient(135deg,#102951,#17376c);
    border-top: 4px solid #d5a329;
    font-size: 12px
}

    .site-footer a {
        color: rgba(255,255,255,.86)
    }

    .site-footer .footer-inner {
        width: min(1400px,calc(100% - 40px));
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px
    }

    .site-footer .footer-links {
        display: flex;
        align-items: center;
        gap: 16px
    }

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: Cairo,NEOSANSARABIC,Tahoma,Arial,sans-serif
}

html[dir="rtl"] input:not([dir="ltr"]), html[dir="rtl"] textarea, html[dir="rtl"] select {
    direction: rtl;
    text-align: right
}

html[dir="rtl"] table, html[dir="rtl"] th, html[dir="rtl"] td {
    text-align: right
}

html[dir="rtl"] .shared-brand, html[dir="rtl"] .shared-nav, html[dir="rtl"] .footer-inner {
    text-align: right
}

html[dir="rtl"] .fa-chevron-right, html[dir="rtl"] .breadcrumb-arrow, html[dir="rtl"] .back-arrow {
    transform: rotate(180deg)
}

@media(max-width:950px) {
    .shared-app-header {
        align-items: flex-start;
        padding-block: 12px
    }

    .shared-nav {
        gap: 12px
    }

    .shared-brand > span {
        display: none
    }
}

@media(max-width:640px) {
    .shared-brand img {
        width: 44px;
        height: 44px;
        flex-basis: 44px
    }

    .shared-nav > a:first-child {
        display: none
    }

    .shared-nav .lang {
        font-size: 0
    }

        .shared-nav .lang i {
            font-size: 1rem
        }

    .site-footer .footer-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-block: 14px
    }
}

/* Demo-matched shared header. All selectors are isolated from page CSS. */
.portal-header {
    flex: 0 0 auto;
    border-top: 5px solid #d5a329;
    background: linear-gradient(135deg,#102951 0%,#17376c 48%,#244b91 100%);
    box-shadow: 0 7px 22px rgba(16,41,81,.14);
    position: relative;
    z-index: 100
}

.portal-header-inner {
    width: min(1400px,calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 22px
}

    .portal-header-inner.has-title {
        grid-template-columns: 1fr auto 1fr
    }

.portal-brand {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    min-width: 0
}

.portal-logo-wrap {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px
}

.portal-brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain
}

.portal-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0
}

    .portal-brand-copy strong {
        color: #fff;
        font-size: 18px;
        font-weight: 400;
        white-space: nowrap
    }

    .portal-brand-copy small {
        margin-top: 3px;
        color: rgba(255,255,255,.72);
        font-size: 12px
    }

.portal-header-title {
    justify-self: center;
    color: #fff;
    font-size: 18px;
    white-space: nowrap
}

.portal-header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px
}

.portal-header-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color .2s,border-color .2s,transform .2s
}

    .portal-header-action:hover {
        color: #fff;
        background: rgba(255,255,255,.15);
        border-color: rgba(255,255,255,.25);
        transform: translateY(-1px)
    }

.portal-user-profile {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px
}

.portal-user-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #102951;
    background: #fff;
    border-radius: 9px
}

.portal-user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    max-width: 190px
}

    .portal-user-copy strong {
        overflow: hidden;
        color: #fff;
        font-size: 11px;
        font-weight: 400;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .portal-user-copy small {
        overflow: hidden;
        color: rgba(255,255,255,.67);
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap
    }

.portal-logout-form {
    margin: 0
}

.portal-logout {
    width: 42px;
    padding: 0
}

html[dir="rtl"] .portal-brand, html[dir="rtl"] .portal-user-profile {
    text-align: right
}

html[dir="rtl"] .portal-logout i {
    transform: scaleX(-1)
}

@media(max-width:1050px) {
    .portal-header-inner, .portal-header-inner.has-title {
        grid-template-columns: 1fr auto
    }

    .portal-header-title {
        display: none
    }

    .portal-brand-copy {
        display: none
    }
}

@media(max-width:720px) {
    .portal-header-inner {
        width: min(100% - 24px,1400px);
        min-height: 76px;
        padding: 0
    }

    .portal-header-action span, .portal-user-copy {
        display: none
    }

    .portal-header-action {
        width: 42px;
        padding: 0
    }

    .portal-user-profile {
        width: 42px;
        padding: 0;
        justify-content: center
    }

    .portal-logo-wrap {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 14px
    }
}

@media(max-width:430px) {
    .portal-header-actions {
        gap: 6px
    }

    .portal-language {
        display: none
    }

    .portal-logo-wrap {
        width: 48px;
        height: 48px;
        flex-basis: 48px
    }
}

@media(max-width:950px) {
    .auth-page {
        grid-template-columns: 1fr
    }

    .auth-visual {
        display: none
    }

    .auth-form-side {
        min-height: 100vh
    }

    .cards {
        grid-template-columns: 1fr
    }

    .app-header {
        height: auto;
        padding-block: 12px;
        align-items: flex-start
    }

        .app-header nav {
            gap: 12px;
            flex-wrap: wrap;
            justify-content: flex-end
        }

    .brand span {
        display: none
    }
}

@media(max-width:640px) {
    .auth-form-side {
        padding: 20px
    }

    .form-grid, .details-grid {
        grid-template-columns: 1fr
    }

        .details-grid .full, .form-grid .full {
            grid-column: auto
        }

    .page-head {
        align-items: flex-start;
        flex-direction: column
    }

    .filter-bar {
        grid-template-columns: 1fr
    }

    .app-main {
        padding: 32px 16px
    }

    .app-header nav > a:first-child {
        display: none
    }

    .lang {
        font-size: 0
    }

        .lang i {
            font-size: 1rem
        }

    .brand img {
        width: 44px;
        height: 44px
    }
}

/* Full application and dashboards */
.application-form {
    display: grid;
    gap: 22px
}

.application-heading {
    max-width: 1050px;
    margin-inline: auto
}

.form-section {
    padding: 27px;
    max-width: 1050px;
    width: 100%;
    margin-inline: auto
}

    .form-section > header, .staff-list > header, .decision-panel > header {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 22px
    }

        .form-section > header > i, .decision-panel > header > i {
            width: 45px;
            height: 45px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            background: #eaf4ff;
            color: var(--blue);
            font-size: 1.1rem
        }

    .form-section h2, .staff-list h2, .decision-panel h2 {
        font-size: 1.18rem;
        margin: 0 0 5px
    }

    .form-section header p, .staff-list header p {
        margin: 0;
        color: var(--muted);
        font-size: .85rem
    }

    .form-section input, .form-section select, .form-section textarea, .decision-panel textarea {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 13px;
        background: #fff;
        outline: none
    }

        .form-section input:focus, .form-section select:focus, .form-section textarea:focus, .decision-panel textarea:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(20,118,197,.08)
        }

    .form-section label, .decision-panel label {
        display: block;
        font-weight: 700;
        font-size: .85rem;
        margin: 14px 0 7px
    }

.degree-options {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin: 8px 0
}

    .degree-options input {
        position: absolute;
        opacity: 0
    }

    .degree-options span {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: 1px solid var(--line);
        padding: 14px;
        border-radius: 11px;
        font-weight: 700;
        cursor: pointer
    }

    .degree-options input:checked + span {
        border-color: var(--blue);
        background: #edf7ff;
        color: var(--blue)
    }

.hint {
    display: block;
    color: var(--muted);
    font-size: .76rem;
    margin-top: 6px
}

.validation-panel:empty {
    display: none
}

.conditional {
    display: none
}

.switch-label {
    padding: 14px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 11px !important
}

    .switch-label input {
        width: auto
    }

.repeater-row {
    position: relative;
    border: 1px solid var(--line);
    background: #f9fbfd;
    border-radius: 13px;
    padding: 15px 50px 20px 18px;
    margin-bottom: 14px
}

.remove-row {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 31px;
    height: 31px;
    border: 0;
    border-radius: 8px;
    background: #ffeaed;
    color: var(--danger)
}

[dir=rtl] .repeater-row {
    padding: 15px 18px 20px 50px
}

[dir=rtl] .remove-row {
    right: auto;
    left: 12px
}

.declaration {
    max-width: 1050px;
    padding: 20px 26px;
    background: #fffaf0;
    border-color: #f1d99c
}

.application-actions {
    max-width: 1050px;
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: flex-end;
    gap: 12px
}

.welcome-banner {
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    background: radial-gradient(circle at 90% 10%,rgba(30,180,202,.35),transparent 25%),linear-gradient(135deg,var(--navy),#0d4f77);
    margin-bottom: 22px
}

    .welcome-banner small {
        font-weight: 800;
        letter-spacing: .14em;
        color: var(--gold)
    }

    .welcome-banner h1 {
        font-size: 2rem;
        margin: 12px 0
    }

        .welcome-banner h1 strong {
            color: var(--gold)
        }

    .welcome-banner p {
        margin: 0;
        color: #c8dceb
    }

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px
}

.overview-main, .new-application-card, .process-card {
    padding: 25px
}

    .overview-main header {
        margin-bottom: 18px
    }

    .overview-main h2, .new-application-card h2, .process-card h2 {
        margin: 6px 0
    }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px
}

    .metric-grid > div {
        padding: 17px;
        background: #f7f9fc;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px
    }

    .metric-grid i {
        color: var(--blue)
    }

    .metric-grid span {
        font-size: .75rem;
        color: var(--muted)
    }

.new-application-card {
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg,#0d6a9c,#149bb4)
}

    .new-application-card > i {
        font-size: 2rem;
        color: var(--gold)
    }

    .new-application-card small {
        display: block;
        margin-top: 20px
    }

    .new-application-card .primary-btn {
        background: #fff;
        color: var(--blue);
        box-shadow: none;
        margin-top: 16px
    }

.process-card {
    margin-top: 20px
}

.process {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px
}

    .process > div {
        display: flex;
        gap: 10px
    }

        .process > div > b {
            width: 34px;
            height: 34px;
            flex: 0 0 auto;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background: #edf1f6
        }

    .process .done > b {
        background: #e8f8f1;
        color: var(--success)
    }

    .process span {
        display: flex;
        flex-direction: column;
        gap: 5px
    }

    .process small {
        color: var(--muted);
        line-height: 1.5
    }

.quick-links {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    margin-top: 20px
}

    .quick-links > a {
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 14px;
        color: var(--ink)
    }

        .quick-links > a > i {
            width: 43px;
            height: 43px;
            display: grid;
            place-items: center;
            background: #eaf4ff;
            color: var(--blue);
            border-radius: 11px
        }

    .quick-links span {
        display: flex;
        flex-direction: column;
        gap: 5px
    }

    .quick-links small {
        color: var(--muted)
    }

.status-hero {
    padding: 24px;
    border-radius: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff5dc;
    border: 1px solid #efd58f;
    margin-bottom: 22px
}

    .status-hero > div {
        display: flex;
        align-items: center;
        gap: 16px
    }

        .status-hero > div > i {
            font-size: 2rem;
            color: #a06b00
        }

    .status-hero span {
        display: block
    }

    .status-hero h2 {
        margin: 4px 0
    }

    .status-hero p {
        margin: 0;
        color: var(--muted)
    }

    .status-hero aside {
        padding: 13px 17px;
        background: rgba(255,255,255,.7);
        border-radius: 11px;
        display: flex;
        flex-direction: column;
        gap: 5px
    }

    .status-hero.status-approved {
        background: #e8f8f1;
        border-color: #a6ddc8
    }

        .status-hero.status-approved > div > i {
            color: var(--success)
        }

    .status-hero.status-rejected {
        background: #ffebed;
        border-color: #efbcc3
    }

        .status-hero.status-rejected > div > i {
            color: var(--danger)
        }

.details-grid.flat {
    border: 0;
    background: transparent
}

    .details-grid.flat > div {
        border: 1px solid var(--line);
        margin: -1px 0 0 -1px
    }

.timeline {
    display: grid;
    gap: 0
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 78px;
    position: relative
}

    .timeline-step:not(:last-child):after {
        content: "";
        position: absolute;
        width: 2px;
        height: 45px;
        background: var(--line);
        left: 17px;
        top: 57px
    }

[dir=rtl] .timeline-step:not(:last-child):after {
    left: auto;
    right: 17px
}

.timeline-step > b {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf1f6;
    z-index: 1
}

.timeline-step.done > b {
    background: #dff4eb;
    color: var(--success)
}

.timeline-step.active > b {
    background: #fff1c7;
    color: #946000
}

.timeline-step span {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.timeline-step small {
    color: var(--muted)
}

.no-notes {
    padding: 20px;
    background: #f7f9fc;
    border-radius: 11px;
    color: var(--muted)
}

.officer-note {
    display: flex;
    gap: 13px;
    padding: 18px;
    background: #edf7ff;
    border-radius: 11px
}

    .officer-note > i {
        color: var(--blue)
    }

    .officer-note p {
        margin: 7px 0 0
    }

.approval-banner, .rejection-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px;
    border-radius: 17px;
    margin-top: 22px
}

.approval-banner {
    background: linear-gradient(135deg,#0b7758,#16a379);
    color: #fff
}

    .approval-banner > i, .rejection-banner > i {
        font-size: 2.5rem
    }

    .approval-banner > div {
        flex: 1
    }

    .approval-banner h2, .approval-banner p, .rejection-banner h2, .rejection-banner p {
        margin: 5px 0
    }

.rejection-banner {
    background: #ffebed;
    color: #8c2031
}

.today {
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    margin-bottom: 22px
}

.stat {
    padding: 21px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink)
}

    .stat > i {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: #edf7ff;
        color: var(--blue)
    }

    .stat span {
        display: flex;
        flex-direction: column;
        gap: 5px
    }

    .stat b {
        font-size: 1.5rem
    }

    .stat.pending > i {
        background: #fff5dc;
        color: #946000
    }

    .stat.approved > i {
        background: #e8f8f1;
        color: var(--success)
    }

    .stat.rejected > i {
        background: #ffebed;
        color: var(--danger)
    }

.staff-list {
    padding: 24px
}

    .staff-list > header {
        justify-content: space-between
    }

.table-wrap.embedded {
    border: 0;
    box-shadow: none
}

.applicant-strip {
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px
}

.avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf4ff;
    color: var(--blue);
    font-size: 1.3rem;
    font-weight: 800
}

.applicant-strip h2, .applicant-strip p {
    margin: 4px 0
}

.applicant-strip aside {
    margin-inline-start: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: end
}

.document-list {
    display: grid;
    gap: 10px
}

    .document-list a {
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 11px;
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--ink)
    }

        .document-list a span {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px
        }

    .document-list small {
        color: var(--muted)
    }

.decision-panel {
    max-width: 1050px;
    margin: 22px auto 0;
    padding: 27px
}

.decision-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap
}

.approve-btn, .reject-btn {
    border: 0;
    border-radius: 11px;
    padding: 13px 19px;
    color: #fff;
    font-weight: 800
}

.approve-btn {
    background: var(--success)
}

.reject-btn {
    background: var(--danger)
}

@media(max-width:900px) {
    .overview-grid {
        grid-template-columns: 1fr
    }

    .process {
        grid-template-columns: repeat(2,1fr)
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .metric-grid {
        grid-template-columns: 1fr
    }

    .status-hero {
        align-items: flex-start;
        gap: 15px
    }

        .status-hero aside {
            display: none
        }
}

@media(max-width:640px) {
    .degree-options, .process, .quick-links, .stats-grid {
        grid-template-columns: 1fr
    }

    .form-section {
        padding: 19px
    }

    .application-actions {
        flex-direction: column
    }

        .application-actions > * {
            width: 100%
        }

    .applicant-strip {
        align-items: flex-start
    }

        .applicant-strip aside {
            display: none
        }

    .status-hero {
        padding: 19px
    }

        .status-hero > div {
            align-items: flex-start
        }

    .welcome-banner {
        padding: 28px 22px
    }
}

.status-approved {
    background: #e8f8f1;
    color: #147657
}
