/*
 * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 *
 * Template Name: Sasna - Multipurpose Business HTML Template   
 * Template URI: https://thememarch.com/demo/html/sasna/
 * Description: Sasna is a multipurpose business HTML template which comes with the unique and clean design. It helps you to create a beautiful multipurpose business HTML website. It has also e-commerce support. E-commerce pages are included on this template.
 * Author: Thememarch
 * Author URI: https://thememarch.com
 * Version: 4.5
 *
 * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 */

/* Applicant portal shell refinements. */
.header-toparea {
    display: none;
}

.rpl-site-footer .footer-toparea {
    padding: 72px 0 55px;
}

.rpl-footer-grid {
    align-items: flex-start;
    row-gap: 38px;
}

/* The logo is dark artwork on a transparent PNG (454x86). On the dark footer it
   blends into the background photo and looks grainy, so it sits on a white plate. */
.rpl-footer-logo {
    display: inline-block;
    margin-bottom: 22px;
    padding: 14px 20px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    line-height: 0;
}

.rpl-footer-logo img {
    display: block;
    /* Capped so the 454px source is never upscaled on 1x-1.5x displays. */
    width: min(100%, 300px);
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}

.rpl-footer-about {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    line-height: 2;
}

.rpl-site-footer h5 {
    margin-bottom: 22px;
    color: #fff;
    font-family: "Cairo", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.rpl-footer-contact {
    max-width: 540px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-family: "Cairo", sans-serif;
}

.rpl-footer-contact p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    line-height: 1.9;
}

.rpl-footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a7d75d;
    font-size: 14px;
    font-weight: 600;
}

.rpl-footer-contact a:hover {
    color: #fff;
}

.rpl-footer-contact i {
    color: #86b83b;
}

.rpl-footer-links,
.rpl-footer-notes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rpl-footer-links li + li,
.rpl-footer-notes li + li {
    margin-top: 12px;
}

.rpl-footer-links a,
.rpl-footer-notes li {
    color: rgba(255, 255, 255, .7);
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    line-height: 1.8;
}

.rpl-footer-links a:hover {
    color: #a7d75d;
}

.rpl-footer-notes li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.rpl-footer-notes i {
    margin-top: 6px;
    color: #86b83b;
}

.rpl-site-footer .footer-bottomarea {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.rpl-site-footer .footer-copyright {
    color: rgba(255, 255, 255, .55);
    font-family: "Cairo", sans-serif;
    font-size: 12px;
}

/* Bottom bar: copyright with the "Powered by" credit centered under it
   (kept away from the corners, where the fixed back-to-top button sits). */
.rpl-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.rpl-footer-bottom .footer-copyright,
.rpl-footer-bottom .rpl-powered-by {
    margin: 0;
    padding: 0;
    text-align: inherit;
}

.rpl-site-footer .rpl-powered-by {
    color: rgba(255, 255, 255, .45);
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    letter-spacing: .02em;
}

.rpl-site-footer .rpl-powered-by strong {
    color: #a7d75d;
    font-weight: 800;
}

/* Keep the footer at the bottom of the window on short pages (no white gap below it). */
#wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#wrapper > .main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

#wrapper > .main-content > * {
    flex-shrink: 0;
}

/* Page backgrounds stretch with it, so no white strip appears above the footer. */
#wrapper > .main-content > .rg-page {
    flex-grow: 1;
}

/* ==========================================================================
   Portal form pages (Register, New application): shared "rg-" design system
   ========================================================================== */
.rg-page {
    --rg-green: #2f855a;
    --rg-green-dark: #236b49;
    --rg-lime: #a7d75d;
    --rg-navy: #071c30;
    --rg-ink: #172b3a;
    --rg-muted: #627584;
    --rg-line: #dce5e2;
    --rg-field-bg: #f8faf9;
    --rg-danger: #d64545;
    padding: 56px 0 80px;
    background:
        radial-gradient(circle at 8% 12%, rgba(47,133,90,.09), transparent 32%),
        radial-gradient(circle at 92% 88%, rgba(16,42,67,.07), transparent 30%),
        #f3f6f5;
    font-family: "Cairo", sans-serif;
    color: var(--rg-ink);
}

.rg-page *, .rg-page *::before, .rg-page *::after { box-sizing: border-box; }

.rg-shell {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* ---------- Side panel ---------- */
/* Stretches to the form's height (sticky is not possible: the theme sets overflow:hidden on the page body). */
.rg-aside {
    position: relative;
    align-self: stretch;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(160deg, #0c3042 0%, #123f45 45%, #1d6b4f 100%);
    box-shadow: 0 24px 60px rgba(7, 28, 48, .22);
    isolation: isolate;
}

.rg-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .14;
    background-image: linear-gradient(30deg, rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(150deg, rgba(255,255,255,.18) 1px, transparent 1px);
    background-size: 46px 80px;
}

.rg-aside::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -90px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167,215,93,.35), transparent 70%);
}

.rg-aside-inner { padding: 36px 32px 30px; }

.rg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px;
    margin-bottom: 22px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #dcebd5;
    font-size: 12px;
    font-weight: 700;
}

.rg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rg-lime); box-shadow: 0 0 0 5px rgba(167,215,93,.15); }

.rg-aside h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(24px, 2.3vw, 31px);
    line-height: 1.45;
    font-weight: 900;
}

.rg-aside-lead { margin: 0 0 28px; color: rgba(255,255,255,.74); font-size: 14px; line-height: 1.95; }

.rg-steps { position: relative; margin: 0 0 26px; padding: 0; list-style: none; }
.rg-steps::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    right: 17px;
    width: 2px;
    background: linear-gradient(rgba(167,215,93,.6), rgba(255,255,255,.12));
}
.rg-steps li { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.rg-steps li + li { margin-top: 20px; }
.rg-step-num {
    flex: 0 0 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: #123f45;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    font-weight: 800;
}
.rg-steps li.is-active .rg-step-num { border-color: var(--rg-lime); background: var(--rg-lime); color: #10271d; box-shadow: 0 0 0 6px rgba(167,215,93,.18); }
.rg-steps strong { display: block; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.6; }
.rg-steps small { display: block; color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.8; }

.rg-tip {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(6px);
}
.rg-tip i { margin-top: 4px; color: #f2c46d; }
.rg-tip strong { display: block; color: #fff; font-size: 13px; font-weight: 800; }
.rg-tip span { display: block; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.8; }

.rg-aside-foot {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.7);
    font-size: 13px;
}
.rg-aside-foot a, .rg-aside-foot a:visited { margin-right: 4px; color: var(--rg-lime); font-weight: 800; text-decoration: none; }
.rg-aside-foot a:hover { color: #fff; }
.rg-aside-foot a i { font-size: 11px; margin-right: 3px; transition: transform .2s ease; }
.rg-aside-foot a:hover i { transform: translateX(-3px); }

/* ---------- Form card ---------- */
.rg-card {
    padding: 34px 36px 30px;
    border: 1px solid #e3ebe8;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(16, 42, 67, .08);
}

.rg-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.rg-card-icon {
    flex: 0 0 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rg-green), var(--rg-green-dark));
    color: #fff;
    font-size: 20px;
    box-shadow: 0 12px 26px rgba(47,133,90,.28);
}
.rg-card-head h2 { margin: 0 0 2px; color: var(--rg-ink); font-size: 24px; font-weight: 900; line-height: 1.5; }
.rg-card-head p { margin: 0; color: var(--rg-muted); font-size: 13px; }
.rg-req { color: var(--rg-danger); font-weight: 800; }

.rg-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}
.rg-alert i { margin-top: 5px; }
.rg-alert-success { border: 1px solid #bfe3cd; background: #eef9f2; color: #1d6b43; }
.rg-alert-danger { border: 1px solid #f3c9c9; background: #fdf1f1; color: #a43232; }
.rg-summary { display: block; }
.rg-summary ul { margin: 0; padding-right: 18px; }
.rg-summary.validation-summary-valid { display: none; }

.rg-form { margin: 0; }

.rg-group { min-width: 0; margin: 0 0 22px; padding: 22px 22px 6px; border: 1px solid #edf1ef; border-radius: 18px; background: #fcfdfc; }
.rg-group legend {
    float: none;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    color: var(--rg-ink);
    font-size: 16px;
    font-weight: 900;
}
.rg-group-num {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(47,133,90,.12);
    color: var(--rg-green-dark);
    font-size: 13px;
    font-weight: 900;
}

.rg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.rg-span-2 { grid-column: 1 / -1; }
.rg-field { margin-bottom: 18px; }
.rg-field > label { display: block; margin-bottom: 7px; color: #34495a; font-size: 13px; font-weight: 800; }
.rg-hint { display: block; margin-top: 6px; color: #8a9aa5; font-size: 12px; }
.rg-error, .rg-field .text-danger { margin-top: 6px; color: var(--rg-danger); font-size: 12px; font-weight: 700; }

/* ---------- DevExtreme editor skin (works for filled / underlined / outlined modes) ---------- */
.rg-form .dx-texteditor.dx-editor-filled,
.rg-form .dx-texteditor.dx-editor-underlined,
.rg-form .dx-texteditor.dx-editor-outlined {
    min-height: 48px;
    border: 1.5px solid var(--rg-line);
    border-radius: 12px;
    background: var(--rg-field-bg);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.rg-form .dx-texteditor::before,
.rg-form .dx-texteditor::after { display: none !important; }
.rg-form .dx-texteditor.dx-state-hover { border-color: #b9cbc3; }
.rg-form .dx-texteditor.dx-state-focused {
    border-color: var(--rg-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47,133,90,.12);
}
.rg-form .dx-texteditor.dx-invalid { border-color: var(--rg-danger); background: #fffafa; }
.rg-form .dx-texteditor.dx-invalid.dx-state-focused { box-shadow: 0 0 0 4px rgba(214,69,69,.12); }
.rg-form .dx-texteditor-container { border-radius: 12px; }
.rg-form .dx-texteditor-input {
    min-height: 45px;
    padding: 10px 14px;
    color: var(--rg-ink);
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 600;
}
.rg-form .dx-placeholder::before {
    padding: 10px 14px;
    color: #9aa9b2;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    line-height: 25px;
}
.rg-form .dx-dropdowneditor-icon,
.rg-form .dx-texteditor-buttons-container .dx-button .dx-icon { color: #7b8d98; }
.rg-form .dx-texteditor-buttons-container .dx-button.dx-button-mode-text { border-radius: 10px; }
.rg-form .dx-texteditor-buttons-container .dx-button .dx-icon.far,
.rg-form .dx-texteditor-buttons-container .dx-button .dx-icon.fas { font-size: 15px; line-height: 18px; }

/* ---------- Password rules ---------- */
.rg-pw-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 18px;
    padding: 0;
    list-style: none;
}
.rg-pw-rules li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid #e3e9e6;
    border-radius: 999px;
    background: #fff;
    color: #7b8d98;
    font-size: 12px;
    font-weight: 700;
    transition: all .2s ease;
}
.rg-pw-rules li i { font-size: 10px; opacity: .35; }
.rg-pw-rules li.is-ok { border-color: #bfe3cd; background: #eef9f2; color: #1d6b43; }
.rg-pw-rules li.is-ok i { opacity: 1; color: var(--rg-green); }

/* ---------- Terms + submit ---------- */
.rg-terms {
    margin: 4px 0 20px;
    padding: 14px 16px;
    border: 1px dashed #d3ded9;
    border-radius: 14px;
    background: #fafcfb;
}
.rg-terms .dx-checkbox-text { font-family: "Cairo", sans-serif; font-size: 14px; font-weight: 700; color: #34495a; white-space: normal; }
.rg-terms .dx-checkbox-icon { border-radius: 6px; }
.rg-terms .dx-checkbox-checked .dx-checkbox-icon { border-color: var(--rg-green); background-color: var(--rg-green); }
.rg-terms .dx-checkbox.dx-state-focused .dx-checkbox-icon { border-color: var(--rg-green); }

.rg-form #enrollment-button.dx-button {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #34935f 0%, var(--rg-green-dark) 100%);
    box-shadow: 0 14px 30px rgba(35,107,73,.3);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.rg-form #enrollment-button.dx-button.dx-state-hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 18px 36px rgba(35,107,73,.36); }
.rg-form #enrollment-button.dx-button.dx-state-focused { box-shadow: 0 0 0 4px rgba(47,133,90,.22), 0 14px 30px rgba(35,107,73,.3); }
.rg-form #enrollment-button.dx-button.dx-state-disabled { opacity: .55; transform: none; box-shadow: none; }
.rg-form #enrollment-button .dx-button-text {
    color: #fff;
    font-family: "Cairo", sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.rg-login-link { margin: 18px 0 0; color: var(--rg-muted); font-size: 14px; text-align: center; }
.rg-login-link a, .rg-login-link a:visited { color: var(--rg-green-dark); font-weight: 800; text-decoration: none; }
.rg-login-link a:hover { color: var(--rg-green); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .rg-page { padding: 32px 0 56px; }
    .rg-shell { grid-template-columns: 1fr; }
    .rg-aside { align-self: auto; }
    .rg-steps { display: none; }
    .rg-aside-inner { padding: 28px 26px 24px; }
    .rg-aside-lead { margin-bottom: 18px; }
}

@media (max-width: 575px) {
    .rg-card { padding: 24px 18px 22px; border-radius: 20px; }
    .rg-group { padding: 18px 14px 4px; }
    .rg-grid { grid-template-columns: 1fr; }
    .rg-card-head h2 { font-size: 20px; }
    .rg-card-icon { flex-basis: 46px; height: 46px; font-size: 17px; }
}

/* ---------- New application page ---------- */
.na-notes {
    margin-bottom: 26px;
    padding: 18px 20px;
    border: 1px solid #f0dfb8;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf0 0%, #fffdf7 100%);
}
.na-notes-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #8a5a10;
    font-size: 15px;
    font-weight: 900;
}
.na-notes-head i { color: #d9a441; }
.na-notes ul { margin: 0; padding: 0; list-style: none; }
.na-notes li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4d5f6b;
    font-size: 14px;
    line-height: 1.95;
}
.na-notes li + li { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #f0e2c4; }
.na-notes li i {
    flex: 0 0 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin-top: 2px;
    border-radius: 9px;
    background: rgba(217,164,65,.14);
    color: #b7832a;
    font-size: 13px;
}
.na-notes strong { color: var(--rg-ink); font-weight: 800; }

.na-select { position: relative; }
.na-select select {
    width: 100%;
    min-height: 52px;
    padding: 10px 46px 10px 44px;
    border: 1.5px solid var(--rg-line);
    border-radius: 12px;
    background: var(--rg-field-bg);
    color: var(--rg-ink);
    font-family: "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 600;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.na-select select:hover { border-color: #b9cbc3; }
.na-select select:focus {
    outline: none;
    border-color: var(--rg-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47,133,90,.12);
}
.na-select select.input-validation-error { border-color: var(--rg-danger); background: #fffafa; }
.na-select-icon,
.na-select-caret {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8d98;
    pointer-events: none;
}
.na-select-icon { right: 16px; color: var(--rg-green); }
.na-select-caret { left: 16px; font-size: 12px; }

.na-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #edf1ef;
}
.na-btn,
.na-btn:visited {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border: 1.5px solid transparent;
    border-radius: 14px;
    font-family: "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.na-btn:hover { text-decoration: none; transform: translateY(-2px); }
.na-btn-primary,
.na-btn-primary:visited {
    min-width: 180px;
    background: linear-gradient(135deg, #34935f 0%, var(--rg-green-dark) 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(35,107,73,.3);
}
.na-btn-primary:hover,
.na-btn-primary:focus { color: #fff; box-shadow: 0 18px 36px rgba(35,107,73,.36); }
.na-btn-primary i { font-size: 12px; transition: transform .2s ease; }
.na-btn-primary:hover i { transform: translateX(-3px); }
.na-btn-ghost,
.na-btn-ghost:visited { border-color: var(--rg-line); background: #fff; color: #4d5f6b; }
.na-btn-ghost:hover,
.na-btn-ghost:focus { border-color: #b9cbc3; background: #f6f9f8; color: var(--rg-ink); }

@media (max-width: 575px) {
    .na-btn { flex: 1 1 100%; }
}

/* ---------- My applications page ---------- */
.ap-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}
.ap-head-title { display: flex; align-items: center; gap: 16px; }
.ap-head h1 { margin: 0 0 2px; color: var(--rg-ink); font-size: 28px; font-weight: 900; line-height: 1.4; }
.ap-head p { margin: 0; color: var(--rg-muted); font-size: 14px; }
.ap-head .na-btn i { font-size: 13px; }

.ap-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.ap-note {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    border: 1px solid;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 42, 67, .06);
}
.ap-note::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
}
.ap-note-warn { border-color: #f0dfb8; background: linear-gradient(180deg, #fffaf0 0%, #fff 70%); }
.ap-note-warn::before { background: #d9a441; }
.ap-note-info { border-color: #cfe6da; background: linear-gradient(180deg, #f1faf5 0%, #fff 70%); }
.ap-note-info::before { background: var(--rg-green); }

.ap-note-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ap-note-icon {
    flex: 0 0 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 16px;
}
.ap-note-warn .ap-note-icon { background: rgba(217,164,65,.16); color: #b7832a; }
.ap-note-info .ap-note-icon { background: rgba(47,133,90,.13); color: var(--rg-green-dark); }
.ap-note h2 { margin: 0; color: var(--rg-ink); font-size: 17px; font-weight: 900; line-height: 1.5; }
.ap-note p { margin: 0 0 12px; color: #4d5f6b; font-size: 14px; line-height: 1.95; }
.ap-note strong { color: var(--rg-ink); font-weight: 800; }

.ap-steps { margin: 0; padding: 0; list-style: none; }
.ap-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4d5f6b;
    font-size: 14px;
    line-height: 1.9;
}
.ap-steps li + li { margin-top: 8px; }
.ap-steps li > span {
    flex: 0 0 24px;
    height: 24px;
    display: grid;
    place-items: center;
    margin-top: 3px;
    border-radius: 50%;
    background: #d9a441;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.ap-note-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(47,133,90,.08);
    color: var(--rg-green-dark);
    font-size: 13px;
    font-weight: 700;
}

.ap-grid-card { padding: 26px 28px 24px; }
.ap-grid-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1ef;
}
.ap-grid-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--rg-ink); font-size: 18px; font-weight: 900; }
.ap-grid-head h2 i { color: var(--rg-green); font-size: 15px; }
.ap-grid-head span { color: var(--rg-muted); font-size: 13px; }

/* Light DevExtreme grid touch-ups so the table matches the card. */
.ap-grid-card .dx-datagrid { font-family: "Cairo", sans-serif; }
.ap-grid-card .dx-datagrid-headers { border-radius: 12px 12px 0 0; background: #f6f9f8; }
.ap-grid-card .dx-datagrid-headers .dx-header-row > td { color: #34495a; font-weight: 800; }
.ap-grid-card .dx-datagrid-borders > .dx-datagrid-headers,
.ap-grid-card .dx-datagrid-borders > .dx-datagrid-rowsview,
.ap-grid-card .dx-datagrid-borders > .dx-datagrid-total-footer { border-color: #e3ebe8; }
.ap-grid-card .dx-datagrid-rowsview .dx-row.dx-data-row:hover > td { background: #f5faf7; }
.ap-grid-card .dx-command-edit .dx-link { font-weight: 800; text-decoration: none; }

@media (max-width: 991px) {
    .ap-notes { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .ap-head h1 { font-size: 23px; }
    .ap-head .na-btn { width: 100%; }
    .ap-note { padding: 18px 18px; }
    .ap-grid-card { padding: 20px 14px; }
}

/* ---------- Login page ---------- */
/* Single centered form card. */
.lg-shell {
    max-width: 520px;
    margin: 0 auto;
}

/* Plain inputs styled like the DevExtreme editors. */
.rg-form .rg-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid var(--rg-line);
    border-radius: 12px;
    background: var(--rg-field-bg);
    color: var(--rg-ink);
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.rg-form .rg-input::placeholder { color: #9aa9b2; }
.rg-form .rg-input:hover { border-color: #b9cbc3; }
.rg-form .rg-input:focus {
    outline: none;
    border-color: var(--rg-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47,133,90,.12);
}

.lg-captcha { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.lg-captcha-img {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 6px;
    border: 1.5px solid var(--rg-line);
    border-radius: 12px;
    background: #fff;
}
.lg-captcha-img img { display: block; height: 40px; border-radius: 8px; }
.lg-captcha-refresh {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(47,133,90,.1);
    color: var(--rg-green-dark);
    cursor: pointer;
    transition: background .2s ease, transform .3s ease;
}
.lg-captcha-refresh:hover { background: rgba(47,133,90,.18); transform: rotate(-90deg); }

.lg-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 2px 0 22px;
}
.lg-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #34495a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
/* The theme hides native checkboxes (it draws its own via "input ~ label"); show the real one here. */
.lg-check input[type=checkbox] {
    display: inline-block !important;
    visibility: visible;
    opacity: 1;
    position: static;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--rg-green);
    cursor: pointer;
}
.lg-link, .lg-link:visited { color: var(--rg-green-dark); font-size: 14px; font-weight: 800; text-decoration: none; }
.lg-link:hover { color: var(--rg-green); text-decoration: underline; }

@media (max-width: 575px) {
    .lg-captcha { grid-template-columns: 1fr; }
    .lg-captcha-img { justify-self: start; }
}

/* ---------- Application elements page ---------- */
.el-page .rg-card { margin-bottom: 22px; }
.el-page .rg-alert { margin-bottom: 22px; }
.el-alert-locked { border: 1px solid #f3c9c9; background: #fdf1f1; color: #a43232; }

/* Summary card: four facts + progress */
.el-summary { padding: 24px 28px; }
.el-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}
.el-info > div {
    padding: 14px 16px;
    border: 1px solid #edf1ef;
    border-radius: 14px;
    background: #fafcfb;
}
.el-info dt { margin-bottom: 4px; color: var(--rg-muted); font-size: 13px; font-weight: 700; }
.el-info dt i { margin-left: 4px; color: var(--rg-green); font-size: 12px; }
.el-info dd { margin: 0; color: var(--rg-ink); font-size: 16px; font-weight: 800; word-break: break-word; }

.el-status {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}
.el-status.is-new { background: #e8f1fb; color: #245b91; }
.el-status.is-returned { background: #fdf3e1; color: #8a5a10; }
.el-status.is-progress { background: #e6f4f1; color: #1d6b5a; }
.el-status.is-ok { background: #eef9f2; color: #1d6b43; }
.el-status.is-bad { background: #fdf1f1; color: #a43232; }

.el-progress { margin-top: 20px; padding-top: 18px; border-top: 1px solid #edf1ef; }
.el-progress-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin-bottom: 10px;
}
.el-progress-text strong { color: var(--rg-ink); font-size: 16px; font-weight: 900; }
.el-progress-text strong span { color: var(--rg-green-dark); }
.el-progress-text > span { color: var(--rg-muted); font-size: 13px; font-weight: 600; }
.el-progress-bar { height: 12px; overflow: hidden; border-radius: 999px; background: #e7eeeb; }
.el-progress-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rg-lime), var(--rg-green));
    transition: width .4s ease;
}

.el-feedback { margin-bottom: 22px; }
.el-feedback p { margin: 0; white-space: pre-line; }

/* Three short steps */
.el-howto {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}
.el-howto li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #cfe6da;
    border-radius: 16px;
    background: #f1faf5;
    color: #34495a;
    font-size: 14px;
    line-height: 1.8;
}
.el-howto li > span {
    flex: 0 0 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--rg-green);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}
.el-howto strong { color: var(--rg-ink); font-weight: 800; }

/* Two columns: competencies list + elements */
.el-shell {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.el-shell > .rg-card,
.el-panes > .rg-card { margin-bottom: 0; }

.el-comps { padding: 22px 18px; }
.el-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 4px 14px;
    color: var(--rg-ink);
    font-size: 17px;
    font-weight: 900;
}
.el-section-title i { color: var(--rg-green); font-size: 15px; }

.el-comp-list { gap: 8px; }
.el-comp {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border: 1.5px solid #e3ebe8;
    border-radius: 14px;
    background: #fff;
    color: #34495a;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    text-align: right;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.el-comp:hover { border-color: #b9cbc3; background: #f6f9f8; }
.el-comp:focus { outline: none; box-shadow: 0 0 0 4px rgba(47,133,90,.15); }
.el-comp.active {
    border-color: var(--rg-green);
    background: #eef8f2;
    color: var(--rg-ink);
    box-shadow: 0 8px 20px rgba(47,133,90,.12);
}
.el-comp-num {
    flex: 0 0 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eef2f0;
    color: #5a6d79;
    font-size: 13px;
    font-weight: 900;
}
.el-comp.active .el-comp-num { background: var(--rg-green); color: #fff; }
.el-comp-text { flex: 1 1 auto; min-width: 0; }
.el-comp-count {
    flex: 0 0 auto;
    padding: 2px 10px;
    border-radius: 999px;
    background: #fdf3e1;
    color: #8a5a10;
    font-size: 12px;
    font-weight: 800;
    direction: ltr;
}
.el-comp.is-done .el-comp-count { background: #e3f4ea; color: #1d6b43; }
.el-comp.is-done .el-comp-num { background: #e3f4ea; color: #1d6b43; }
.el-comp.is-done.active .el-comp-num { background: var(--rg-green); color: #fff; }

.el-pane { padding: 26px 28px; }
.el-pane-head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #edf1ef; }
.el-pane-label { color: var(--rg-green-dark); font-size: 13px; font-weight: 800; }
.el-pane-head h2 { margin: 2px 0 4px; color: var(--rg-ink); font-size: 20px; font-weight: 900; line-height: 1.6; }
.el-pane-head p { margin: 0; color: var(--rg-muted); font-size: 13px; }

/* One element = one expandable card */
.el-item {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1.5px solid #e3ebe8;
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.el-item:last-child { margin-bottom: 0; }
.el-item-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    background: #fff;
    color: var(--rg-ink);
    font-family: "Cairo", sans-serif;
    text-align: right;
    cursor: pointer;
}
.el-item-head:hover { background: #f8faf9; }
.el-item-head:focus { outline: none; box-shadow: inset 0 0 0 3px rgba(47,133,90,.18); }
.el-item-head:not(.collapsed) { border-bottom: 1px solid #edf1ef; background: #f8faf9; }
.el-item-num {
    flex: 0 0 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fdf3e1;
    color: #8a5a10;
    font-size: 14px;
    font-weight: 900;
}
.el-item.is-done .el-item-num { background: #e3f4ea; color: #1d6b43; }
.el-item-title { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 800; line-height: 1.8; }
.el-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fdf3e1;
    color: #8a5a10;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.el-badge i { font-size: 11px; }
.el-item.is-done .el-badge { background: #e3f4ea; color: #1d6b43; }
.el-chevron { flex: 0 0 auto; color: #7b8d98; font-size: 13px; transition: transform .2s ease; }
.el-item-head:not(.collapsed) .el-chevron { transform: rotate(180deg); }
.el-item:has(.el-item-head:not(.collapsed)) { border-color: #cfe6da; }

.el-item-body { padding: 20px 18px 18px; }

/* Saved element summary */
.el-done-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eef9f2;
    color: #1d6b43;
    font-size: 14px;
    font-weight: 800;
}
.el-done-head.is-empty { background: #f1f3f4; color: #5a6d79; }
.el-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.el-facts > div { padding: 10px 14px; border: 1px solid #edf1ef; border-radius: 12px; background: #fafcfb; }
.el-facts-wide { grid-column: 1 / -1; }
.el-facts dt { color: var(--rg-muted); font-size: 12px; font-weight: 700; }
.el-facts dd { margin: 2px 0 0; color: var(--rg-ink); font-size: 14px; font-weight: 700; line-height: 1.8; white-space: pre-line; word-break: break-word; }

/* Element form */
.el-form { margin: 0; }
.el-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.el-optional { color: #8a9aa5; font-weight: 600; }

.el-doc {
    min-width: 0;
    margin: 0 0 18px;
    padding: 16px 18px 12px;
    border: 1.5px dashed #cfdcd6;
    border-radius: 16px;
    background: #fafcfb;
}
.el-doc legend {
    float: none;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    padding: 0;
    color: #34495a;
    font-size: 14px;
    font-weight: 900;
}
.el-doc legend i { color: var(--rg-green); }
.el-doc-lead { margin: 0 0 12px; color: var(--rg-muted); font-size: 13px; }
.el-doc-lead strong { color: var(--rg-ink); }
.el-doc-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.el-doc-option > label { display: block; margin-bottom: 7px; color: #34495a; font-size: 13px; font-weight: 800; }
.el-doc-or {
    align-self: center;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-top: 22px;
    border-radius: 50%;
    background: #eef2f0;
    color: #5a6d79;
    font-size: 13px;
    font-weight: 900;
}
.el-doc-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: #7b8d98;
    font-size: 12px;
    font-weight: 600;
}
.el-doc-rules i { margin-left: 4px; color: #9aa9b2; }

/* DevExtreme file uploader: one clear button + the chosen file name */
.el-form .dx-fileuploader-wrapper,
.el-form .dx-fileuploader-container,
.el-form .dx-fileuploader-input-wrapper { padding: 0; border: 0; }
.el-form .dx-fileuploader-input-wrapper::before,
.el-form .dx-fileuploader-input-wrapper::after { display: none; }
.el-form .dx-fileuploader-input-container { display: none; }
.el-form .dx-fileuploader-button.dx-button {
    width: 100%;
    min-height: 48px;
    margin: 0;
    border: 1.5px solid var(--rg-green);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}
.el-form .dx-fileuploader-button.dx-button.dx-state-hover { background: #eef8f2; }
.el-form .dx-fileuploader-button .dx-button-content { padding: 10px 14px; }
.el-form .dx-fileuploader-button .dx-button-text {
    color: var(--rg-green-dark);
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}
.el-form .dx-fileuploader-files-container { padding: 8px 0 0; }
.el-form .dx-fileuploader-file-container {
    padding: 6px 10px;
    border: 1px solid #cfe6da;
    border-radius: 10px;
    background: #eef9f2;
}
.el-form .dx-fileuploader-file-name { color: var(--rg-ink); font-family: "Cairo", sans-serif; font-size: 13px; font-weight: 700; }
.el-form .dx-fileuploader-file-size { color: var(--rg-muted); font-size: 12px; }

.el-form .dx-textarea .dx-texteditor-input { min-height: 106px; line-height: 1.9; }

.el-form-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.el-form-actions .na-btn { min-width: 200px; }
.el-form-actions .na-btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Final actions */
.el-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 24px;
    margin-top: 22px;
    padding: 24px 28px;
    border-color: #cfe6da;
    background: linear-gradient(180deg, #f1faf5 0%, #fff 80%);
}
.el-actions-text { flex: 1 1 360px; }
.el-actions h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; color: var(--rg-ink); font-size: 18px; font-weight: 900; }
.el-actions h2 i { color: var(--rg-green); font-size: 16px; }
.el-actions p { margin: 0; color: #4d5f6b; font-size: 14px; line-height: 1.9; }
.el-actions strong { color: var(--rg-ink); }
.el-actions-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.el-actions-btns form { margin: 0; }
.el-btn-danger,
.el-btn-danger:visited { border-color: #f0c4c4; background: #fff; color: #b33a3a; }
.el-btn-danger:hover,
.el-btn-danger:focus { border-color: #d64545; background: #fdf1f1; color: #a43232; }

.el-empty { padding: 40px 20px; text-align: center; color: var(--rg-muted); }
.el-empty i { margin-bottom: 10px; color: #b9cbc3; font-size: 34px; }
.el-empty p { margin: 0; font-size: 15px; font-weight: 700; }

@media (max-width: 1199px) {
    .el-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .el-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .el-howto { grid-template-columns: 1fr; }
    .el-shell { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .el-grid-3 { grid-template-columns: 1fr; }
    .el-doc-options { grid-template-columns: 1fr; gap: 8px; }
    .el-doc-or { margin: 0 auto; }
    .el-facts { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .el-summary, .el-pane, .el-actions { padding: 20px 16px; }
    .el-info { grid-template-columns: 1fr; }
    .el-item-head { flex-wrap: wrap; }
    .el-item-title { flex-basis: calc(100% - 44px); }
    .el-badge { margin-right: 44px; }
    .el-form-actions .na-btn,
    .el-actions-btns,
    .el-actions-btns form,
    .el-actions-btns .na-btn { width: 100%; }
}

/* ---------- Application files pages (list + upload) ---------- */
.fd-app-no { color: var(--rg-green); }
.fd-head-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.fd-head-btns .na-btn i { font-size: 13px; }

.fd-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px 18px;
    border: 1px solid #f0dfb8;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf0 0%, #fffdf7 100%);
    color: #4d5f6b;
    font-size: 14px;
    line-height: 1.9;
}
.fd-tip i { margin-top: 5px; color: #d9a441; }
.fd-tip strong { color: var(--rg-ink); font-weight: 800; }

/* Files grid cells */
.fd-name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--rg-ink); }
.fd-name i { flex: 0 0 auto; color: var(--rg-green); font-size: 18px; }
.fd-type {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eef2f0;
    color: #4d5f6b;
    font-size: 12px;
    font-weight: 800;
    direction: ltr;
}
.fd-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border: 1.5px solid var(--rg-green);
    border-radius: 10px;
    background: #fff;
    color: var(--rg-green-dark);
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.fd-download:hover,
.fd-download:focus { outline: none; background: var(--rg-green); color: #fff; }
.fd-download i { font-size: 12px; }
.ap-grid-card .dx-datagrid-search-panel { margin: 0; }
.ap-grid-card .dx-datagrid-nodata { color: var(--rg-muted); font-family: "Cairo", sans-serif; font-size: 15px; font-weight: 700; }
.ap-grid-card .dx-datagrid-pager { font-family: "Cairo", sans-serif; }

/* Upload page */
.fd-shell { max-width: 720px; margin: 0 auto; }
.fd-step { margin-bottom: 22px; }
.fd-step-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--rg-ink);
    font-size: 15px;
    font-weight: 900;
}
.fd-step-label > span:first-child {
    flex: 0 0 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--rg-green);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}
.fd-drop {
    padding: 22px 20px 16px;
    border: 2px dashed #cfdcd6;
    border-radius: 18px;
    background: #fafcfb;
    text-align: center;
}
.fd-drop-icon { display: block; margin-bottom: 12px; color: #9cc5ae; font-size: 36px; }
.fd-form .fd-drop .dx-fileuploader { max-width: 340px; margin: 0 auto; }
.fd-rules { justify-content: center; margin-top: 12px; }
.fd-form .rg-input { min-height: 50px; font-size: 15px; }
.fd-form .rg-input.input-validation-error { border-color: var(--rg-danger); background: #fffafa; }
.fd-form .na-actions { margin-top: 8px; }

@media (max-width: 575px) {
    .fd-head-btns, .fd-head-btns .na-btn { width: 100%; }
    .fd-form .na-actions .na-btn { flex: 1 1 100%; }
}

/* ========================================================================== 
   Mobile navigation: replace the original template blue with the RPL palette
   ========================================================================== */
@media only screen and (max-width: 991px) {
    .header-bottominner {
        min-height: 74px;
        padding-left: 58px;
    }

    .header-logo {
        width: min(70vw, 240px);
        max-width: none;
        padding: 12px 0;
    }

    .header-logo a,
    .header-logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    .header-mobilemenu .mean-container a.meanmenu-reveal {
        left: 0 !important;
        right: auto !important;
        width: 42px;
        height: 42px;
        display: grid !important;
        place-items: center;
        margin-top: -58px;
        border-radius: 12px;
        background: rgba(47, 133, 90, .1) !important;
    }

    .header-mobilemenu .mean-container .mean-nav {
        overflow: hidden;
        border: 1px solid rgba(167, 215, 93, .22);
        border-radius: 0 0 16px 16px;
        background: linear-gradient(145deg, #0c3042 0%, #123f45 48%, #1d6b4f 100%) !important;
        box-shadow: 0 18px 38px rgba(7, 28, 48, .24);
    }

    .header-mobilemenu .mean-container .mean-nav > ul li a {
        border-top-color: rgba(255, 255, 255, .12);
        color: #fff;
        font-family: "Cairo", sans-serif;
        font-weight: 700;
        text-transform: none;
        transition: background .2s ease, color .2s ease, padding .2s ease;
    }

    .header-mobilemenu .mean-container .mean-nav > ul li a:hover,
    .header-mobilemenu .mean-container .mean-nav > ul li a:focus {
        padding-right: 7%;
        background: rgba(167, 215, 93, .14);
        color: #dff2c3;
    }

    .header-mobilemenu .mean-container .mean-nav > ul li a.mean-expand {
        border-right-color: rgba(167, 215, 93, .28) !important;
        border-bottom-color: rgba(255, 255, 255, .12) !important;
        background: rgba(167, 215, 93, .1);
        color: #dff2c3;
    }

    .header-mobilemenu .mean-container .mean-nav > ul li a.mean-expand:hover {
        background: rgba(167, 215, 93, .22);
        color: #fff;
    }

    .header-mobilemenu .mean-container a.meanmenu-reveal,
    .header-mobilemenu .mean-container a.meanmenu-reveal i {
        color: #236b49 !important;
    }
}

/* ==========================================================================
   Hover & focus colours: replace the old template/Bootstrap blue with the RPL green
   (the template's theme colour itself lives in colors/color-6.css)
   ========================================================================== */
/* Plain links had Bootstrap's blue (#0056b3) on hover. */
a:hover,
.btn-link:hover,
.page-link:hover { color: #236b49; }

/* Template links that still used the original cyan (#1cb9c8) on hover. */
blockquote footer a:hover,
.tm-readmore:hover, a.tm-readmore:hover, button.tm-readmore:hover,
.tm-form-field a:hover,
.tm-service2 h5 a:hover,
.tm-myaccount-dashboard p a:hover { color: #236b49; }

/* Bootstrap form fields and buttons: blue focus ring -> green. */
.form-control:focus,
.custom-select:focus {
    border-color: #2f855a;
    box-shadow: 0 0 0 .2rem rgba(47, 133, 90, .2);
}
.btn:focus,
.btn.focus { box-shadow: 0 0 0 .2rem rgba(47, 133, 90, .25); }

/* DevExtreme: grid links, text buttons, focused editors and list items (navy/teal -> green).
   "body" raises specificity because the DevExtreme theme is loaded after this file. */
body .dx-link:hover { color: #2f855a; }
body .dx-button-mode-text.dx-button-default.dx-state-hover,
body .dx-button-mode-text.dx-button-default.dx-state-focused,
body .dx-button-mode-outlined.dx-button-default.dx-state-hover,
body .dx-button-mode-outlined.dx-button-default.dx-state-focused { background-color: rgba(47, 133, 90, .1); }
body .dx-texteditor.dx-state-active::before,
body .dx-texteditor.dx-state-focused::before { border-bottom-color: #2f855a; }
body .dx-texteditor.dx-editor-outlined.dx-state-focused { box-shadow: inset 0 0 0 2px #2f855a; }
body .dx-list-item.dx-state-hover { background-color: rgba(47, 133, 90, .08); }
