/* Bootstrap Validation Summary Override */
@import url('https://fonts.googleapis.com/css?family=Cairo:300,400,600,700');

.text-muted {
    color: #6c757d;
}

.h4-md {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .h4-md {
        font-size: 1.5rem;
    }

    .w-md-auto {
        width: auto !important;
    }
}

/* ========== SHARED PAGE HEADER RULES ========== */
.left-header {
    display: flex;
    flex-direction: column;
    margin-top: 70px;
}

.left-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.left-header p {
    font-size: 16px;
    color: #f0f0f0;
}

.right-header {
    display: flex;
    align-items: center;
    text-align: center;
    margin: auto;
}

.search-bar {
    position: relative;
    width: 250px;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 20px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: #F7C100;
    font-size: 18px;
    cursor: pointer;
}

.header-logo-img {
    max-height: 250px;
    height: 50px;
    width: 50px;
}

.profile-avatar-sm {
    width: 50px;
    height: 50px;
}

/* ========== SHARED UTILITY CLASSES ========== */
.th-sortable {
    cursor: pointer;
}

.profile-avatar-md {
    width: 50px;
    height: 50px;
}

.user-avatar-badge {
    width: 32px;
    height: 32px;
}

.upload-filename-truncate {
    max-width: min(200px, 70vw);
    font-size: 0.75rem;
}

.file-input-hidden {
    display: none;
}

.upload-success-line {
    max-width: 100%;
}

.role-card-selectable {
    cursor: pointer;
}

/* ========== BRAND STATUS BADGES ========== */
.badge-status-paid {
    background-color: #2b4d93;
    color: #fdd23f;
}

.badge-status-pending {
    background-color: #fdd23f;
    color: #2b4d93;
}

.badge-status-info {
    background-color: #2b4d93;
    color: #ffffff;
}

.badge-status-danger {
    background-color: #d90830;
    color: #ffffff;
}

.page-title {
    background-color: #2b4d93;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.title-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.title-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.text-section {
    text-align: center;
}

.title {
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.subtitle {
    font-size: 18px;
    color: white;
    margin-bottom: 5px;
}

.contact-number {
    font-size: 16px;
    color: white;
}

.title-right .title-logo {
    width: 80px;
    height: auto;
}
/* Button styling */
.custom-button {
    background-color: #2b4d93; /* Navy blue color as seen in the image */
    color: white; /* White text color */
    border-radius: 25px; /* Fully rounded corners */
    padding: 12px 30px; /* Padding to make the buttons larger */
    font-size: 18px; /* Font size similar to the image */
    font-weight: bold; /* Bold text */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor on hover */
    display: inline-block;
    text-align: center;
    margin: 10px;
}

    /* Button hover effect */
    .custom-button:hover {
        background-color: #001f5b; /* Darker blue when hovered */
        color: #ffffff;
    }

    /* Specific style for save button */
    .custom-button.save-button {
        background-color: #002f87; /* Adjust color for Save button */
    }

    /* Specific style for next button */
    .custom-button.next-button {
        background-color: #ffffff; /* Adjust color for Next button */
        border: 1px solid #2b4d93;
        color: #2b4d93;
    }

@media (max-width: 768px) {
    .page-title {
        flex-direction: column;
        text-align: center;
    }

    .title-right {
        margin-top: 10px;
    }

    .title-left {
        margin-bottom: 10px;
    }
}

/* Home service category tiles: centered in LTR and RTL (flex avoids Bootstrap .row RTL quirks) */
.service-categories-grid .service-categories-inner {
    direction: inherit;
    text-align: center;
}

.service-categories-grid .service-category-tile {
    flex: 0 0 auto;
    margin-top: 5px;
}

/* Phone default: viewport-relative tile size (also used outside service grid). */
.icon-margin {
    margin: 0 1vw 0 1vw;
    width: 25vw;
}

/*
 * D — Tablet+: fill ServiceGrid column tracks. Keep 25vw below 768 for phone +
 * other .icon-margin consumers (AttachmentsList, InfoList, ServiceDataGrid).
 * Scoped under .service-categories-grid so Web home wide layout adapts without
 * changing phone/Web narrow sizing.
 */
@media (min-width: 768px) {
    .service-categories-grid .icon-margin {
        width: 100%;
        max-width: 11rem;
        margin-inline: auto;
    }

    .service-categories-grid .border-y {
        width: 100%;
    }

    .service-categories-grid .icon-card {
        width: 100%;
    }
}

.icon-card {
    background-color: #ffffff;
    border: 2px solid #2b4d93;
    border-radius: 10px;
    width: fit-content;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.icon-text {
    color: #2b4d93 !important;
    font-family: system-ui;
    font-weight: bold;
}

    .icon-text span {
        display: contents;
        max-height: 2.9em;
        line-height: 1.4em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
.icon-text-blue span {
    color: #002f9b;
}
/* Fixed header: keep main content below header (LTR/RTL). Slightly increased for tall purple bar. */
.nav-function-top .page-content-wrapper {
    margin-top: 10rem;
}

/* ── Header clearance — mobile only ── */
/* Header height measured: 158px on SM-S938B  */
/* 162px = 158px + 4px safety margin          */
body.mobile-view-activated {
    --moamalat-header-h: calc(162px + env(safe-area-inset-top, 0px)) !important;
}

body.mobile-view-activated .page-header.ph-compact {
    padding-top: max(16px, env(safe-area-inset-top)) !important;
    padding-bottom: 8px !important;
}

body.mobile-view-activated .ph-logo-img {
    inline-size: 80px !important;
    block-size: 80px !important;
    max-height: 80px !important;
    margin-top: 12px !important;
    margin-bottom: 8px !important;
}

body.mobile-view-activated .page,
body.mobile-view-activated .main,
body.mobile-view-activated article,
body.mobile-view-activated .page-content-wrapper {
    padding-top: var(--moamalat-header-h) !important;
}

body.mobile-view-activated #js-page-content,
body.mobile-view-activated .page-content {
    margin-top: 0 !important;
}

/* Fixed bottom nav/footer: keep scrollable content above it on MAUI / mobile WebView */
body.mobile-view-activated .page-content-wrapper {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
}

/*
 * MAUI tablet+ nav rail (pairs with PageHeader.razor.css .ph-nav restore).
 * Push header + content; keep sidebar user/actions visible (theme hides them ≥992px).
 * Web/Admin: no body.mobile-view-activated at these widths → no effect.
 */
@media (min-width: 993px) {
    body.mobile-view-activated .page-header.ph-compact,
    body.mobile-view-activated .page-content-wrapper {
        margin-inline-start: 16.875rem !important;
    }

    body.mobile-view-activated .page-sidebar {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        width: 16.875rem !important;
        max-width: 16.875rem !important;
        height: 100vh !important;
        z-index: 1020 !important;
        overflow: hidden !important;
    }

    body.mobile-view-activated .page-sidebar .primary-nav {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body.mobile-view-activated .page-sidebar .nav-sidebar-header,
    body.mobile-view-activated .page-sidebar .nav-sidebar-actions {
        display: flex !important;
    }

    body.mobile-view-activated .page-sidebar .nav-sidebar-header.nav-footer-at-top {
        flex-direction: column !important;
        flex-shrink: 0 !important;
    }

    body.mobile-view-activated .page-sidebar .nav-sidebar-actions {
        flex-shrink: 0 !important;
        flex-wrap: wrap;
        gap: 0.35rem !important;
    }
}

/*
 * C — MAUI tablet+ empty space: bottom nav is hidden ≥768 (PageFooter), but phone
 * chrome still reserved 56px padding; theme also flex-grows .page-content to fill
 * the viewport. Drop both only under mobile-view-activated (not bare .page-content).
 */
@media (min-width: 768px) {
    body.mobile-view-activated .page-content-wrapper {
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    body.mobile-view-activated .page-content,
    body.mobile-view-activated #js-page-content {
        flex-grow: 0;
        min-height: auto;
    }
}

/* Step flows: primary actions on one row (phones); desktop aligns end / fixed widths */
.mobile-action-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: stretch;
    padding: 12px 16px 16px 16px;
    box-sizing: border-box;
}

.mobile-action-buttons .btn {
    flex: 1;
    max-width: 48%;
    min-height: 48px;
}

.mobile-action-buttons .custom-button {
    flex: 1;
    max-width: 48%;
    min-height: 48px;
}

.mobile-action-buttons .btn:only-child,
.mobile-action-buttons .custom-button:only-child {
    max-width: 100%;
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .mobile-action-buttons {
        flex-direction: row;
        justify-content: flex-end;
    }

    .mobile-action-buttons .btn {
        max-width: 200px;
        flex: 0 0 auto;
    }

    .mobile-action-buttons .custom-button {
        max-width: 200px;
        flex: 0 0 auto;
    }

    .mobile-action-buttons .btn:only-child,
    .mobile-action-buttons .custom-button:only-child {
        max-width: 200px;
    }
}

.table .thead-blue th {
    color: #fff;
    background-color: #2b4d93;
    border-color: #fff;
}

.btn-outline-danger {
    color: #d90830;
    border-color: #d90830;
}

    .btn-outline-danger:hover {
        color: #fff;
        background-color: #d90830;
        border-color: #d90830;
    }

.icon-text-yellow span {
    color: #fccc00;
}
.page-sidebar{
    top: 6.125rem;
    left: 0;
}
.page-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
}

.page-logo img {
    max-height: 200px;
}

.footer {
    position: fixed;
    bottom: 0px;
    width: 100%;
}

.primarybutton {
    background-color: #09516f;
    border-color: #09516f;
    color: #fff !important;
}

.primarybutton:hover {
    background-color: #4b6d89;
    border-color: #4b6d89;
    /* background-color: #657e97;
    border-color: #657e97;*/
    color: #fff !important;
}

.outline-light-button {
    border-color: #81c6d9;
    color: #81c6d9 !important;
}

    .outline-light-button:hover {
        background-color: #81c6d9;
        border-color: #81c6d9;
        color: #fff !important;
    }

.outline-primary-button {
    border-color: #09516f;
    color: #09516f !important;
}

    .outline-primary-button:hover {
        border-color: #09516f;
        background-color: #09516f;
        color: #fff !important;
    }

.outline-danger-button {
    border-color: #e2412d;
    color: #e2412d !important;
}

    .outline-danger-button:hover {
        border-color: #e2412d;
        background-color: #e2412d;
        color: #fff !important;
    }

.alertbutton {
    background-color: #83d3e2;
    border-color: #83d3e2;
    color: #09516f !important;
}

.secondarybutton {
    background-color: #ededed;
    border: none;
    box-shadow: 0 10px 6px -6px #787979;
    margin-bottom: 10px;
}

.cancelbutton {
    background-color: #e64b38;
    color: white !important;
}

.returnbutton {
    background-color: #eeeeee;
    color: #09516f !important;
}

.bg-trans-gradient {
    background: linear-gradient(-250deg,#4b6d89,#81c6d9);
}

.page-logo, .nav-footer, .bg-brand-gradient {
    background-color: #061c50;
}
.hover-highlight {
    text-align: -webkit-center;
}
/* Sidebar uses same #2b4d93 as .page-header (see header/sidebar block above) */
.page-sidebar {
    background-image: none !important;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /*background-color: #002f9b;*/ /* Dark blue background color */
    color: #ffffff;
    font-family: Arial, sans-serif;
    /*overflow: hidden;*/ /* Hide both horizontal and vertical scrollbars */
}

.container-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    overflow-y: auto; /* Enable vertical scrolling */
    flex-grow: 1;
    box-sizing: border-box;
}

    .container::-webkit-scrollbar {
        display: none; /* Hide scrollbar for WebKit browsers */
    }

.container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.background {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.line, .dot {
    position: absolute;
    background-color: white; /* White color for lines and dots */
    opacity: 0.5;
}

.line {
    width: 1px;
    height: 100%;
    box-shadow: 0 0 4px white, 0 0 8px white;
    animation: fall linear infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.text-title {
    color: #fff;
    white-space: normal !important;
    text-overflow: unset !important;
    word-break: break-word;
}
.star-t {
    animation: twinkle 2s infinite ease-in-out;
}

.star-t {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 0 0 8px white, 0 0 16px white;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-shadow: 0 0 8px white, 0 0 16px white;
    animation: blink infinite;
}

@keyframes fallTop {
    from {
        transform: translateY(-10%);
    }

    to {
        transform: translateY(200%);
    }
}

@keyframes fallBottom {
    from {
        transform: translateY(10%);
    }

    to {
        transform: translateY(-200%);
    }
}

@keyframes blink {
    from {
        opacity: 0.8;
        box-shadow: 0 0 5px 5px white;
    }

    to {
        opacity: 0.2;
        box-shadow: 0 0 2px 2px white;
    }
}

.footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    /*background-color: rgb(43 66 95 / 100%);
    color: rgb(255 255 255 / 100%);*/
    z-index: 1;
    max-height: 50px;
}

.blue-border {
    border: 1px solid #002f9b;
}
.page-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1;
}
/*.page-footer {
    background: #e6e6e6;
    color: #002f9b;
}*/
    .footer img {
        width: 20px;
    }

.margin-right {
    margin-right: 40px;
}

.header img {
    width: 75px;
}
.header-inside img {
    width: 50px;
}
.header p {
    font-size: 1.2em;
}

.cards {
    display: flex;
    justify-content: space-around;
}
.right-pos{
    padding: 10px 10px 0 0;
    float: right;
}
.card {
    background-color: #2d54a100;
    padding: 15px;
    border-radius: 10px;
    border: 0px dashed #FFF;
    width: 100%;
    box-sizing: border-box;
    /* text-align: left;*/
    position: relative;
}

.align-right {
    text-align: right;
}

.slogen {
    text-align: center;
}

    .slogen img {
        height: 100px;
    }

.yellow-color {
    color: #fccc00;
}

.card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    margin-left: 10px;
}

.card p {
    font-size: 1em;
}

.page-content-wrapper {
    background-color: #faf8fb00;
}

.card-icon {
    color: #fccc00;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.slider {
}

.feathered-image {
    position: relative;
    text-align: center;
}

    .feathered-image img {
        height: auto;
        -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);
        mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);
        -webkit-mask-size: cover;
        mask-size: cover;
    }

    .feathered-image::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: inherit;
        filter: blur(10px);
        z-index: -1;
        -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,0) 30%, rgba(0,0,0,1) 90%);
        mask-image: radial-gradient(circle, rgba(0,0,0,0) 30%, rgba(0,0,0,1) 90%);
        -webkit-mask-size: cover;
        mask-size: cover;
    }

.objectives, .vision, .services {
    background-color: #2d54a1e0;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #fff;
    margin: 10px 0;
}

    .services ul {
        list-style: none;
        padding: 0;
        column-count: 2;
        column-gap: 20px;
    }

    .services li {
        width: 100%;
        position: relative;
        padding-left: 25px;
        margin-bottom: 10px;
        break-inside: avoid;
    }

        .services li::before {
            content: "\2022";
            color: #fccc00;
            position: absolute;
            left: 0;
            font-size: 1.5em;
            line-height: 1;
        }

.app-image {
    margin: 20px 0;
}

    .app-image img {
        width: 300px;
    }

.government-departments img {
    width: 100px;
    margin: 10px;
}

.section {
    margin: 20px 0;
}

.section-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

element.style {
}
/*.nav-menu li a {
    color:#fceded;
}*/
.nav-menu li a > [class*='fa-'] {
    color: #97b1dc;
}
/*.nav-menu li a > .nav-link-text {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    line-height: normal;
    font-weight: bold;*/
/*color:white;*/
/*}*/
@media (min-width: 992px) {
    .nav-function-top .page-sidebar .primary-nav .nav-menu > li a {
        font-size: .9rem;
        color: #09516f;
    }

    .nav-function-top .page-sidebar .primary-nav .nav-menu > li:hover > a {
        color: #81c6d9;
        background-color: transparent;
    }
}
/*@media (min-width: 992px) {
    .nav-function-top .page-sidebar .primary-nav .nav-menu > li a {
        font-size: .9rem;
        color: #09516f;
    }

    .nav-function-top .page-sidebar .primary-nav .nav-menu > li:hover > a {
        color: #81c6d9;
        background-color: transparent;
    }
} */
.nav-menu li a:hover > [class*='fa-'], .nav-menu li a:hover > .ni {
    color: #fff;
}

a {
    color: #09516f
}

.text-arabic {
    -webkit-box-shadow: none;
    box-shadow: none;
    font-family: 'Cairo';
    font-size: 13px;
}

body.rtl span.loc {
    -webkit-box-shadow: none;
    box-shadow: none;
    font-family: 'Cairo';
    font-size: 13px;
}

*, *::before, *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.header {
    height:0;
}

.header-btn[data-class='mobile-nav-on'] {
    border-color: #fccc00;
    background-color: #fccc00;
    background-image: linear-gradient(to top, #fccc00, #fccc00);
}

/* RTL: pin mobile sidebar to right edge when width < 992px (fixes sidebar appearing in middle) */
@media (max-width: 991.98px) {
    [dir="rtl"] .page-sidebar {
        right: 0 !important;
        left: auto !important;
    }
}

/* Header: keep same layout at all widths (do not switch to mobile header) */
.page-header .hidden-lg-up {
    display: none !important;
}
.page-header .hidden-md-down {
    display: block !important;
}
/* Header and sidebar: same blue at all widths (nav/sidebar are part of header) */
.page-header,
.page-sidebar {
    background-color: #2b4d93 !important;
    background-image: none !important;
}

/* Header user card: readable on navy (body #212529 would inherit otherwise) */
.page-header .ph-name,
.page-header .ph-email {
    color: #fff;
}

/* From width 991 down: hide language, user info, logout from header (they move to sidebar) */
@media (max-width: 991.98px) {
    .header-user-desktop-only {
        display: none !important;
    }
}

/* Sidebar header and actions: visible only on mobile (width ≤991) */
@media (min-width: 992px) {
    .page-sidebar .nav-sidebar-header,
    .page-sidebar .nav-sidebar-actions {
        display: none !important;
    }
}

/* From width 991 down: sidebar column layout — header (logo+user) → nav menu → actions (language+logout) */
@media (max-width: 991.98px) {
    /*
     * EXCLUDE SIDEBAR FROM "CLICK TO CLOSE": overlay must not cover the sidebar.
     * Theme overlay is full-screen (top/right/bottom/left:0) so it catches all clicks.
     * We shrink the overlay so it starts after the sidebar (16.875rem = sidebar width).
     * Result: click on sidebar → hits sidebar (buttons + nav work). Click on rest of screen → hits overlay → closes menu.
     * To change sidebar width, update 16.875rem in both .mobile-nav-on .page-content-overlay and .mobile-nav-on .page-sidebar.
     */
    .mobile-nav-on .page-content-overlay {
        left: 16.875rem !important;
    }
    [dir="rtl"] .mobile-nav-on .page-content-overlay {
        left: 0 !important;
        right: 16.875rem !important;
    }
    .mobile-nav-on .page-sidebar {
        z-index: 2000 !important;
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        width: 16.875rem !important;
        max-width: 16.875rem !important;
        height: 100vh !important;
    }
    [dir="rtl"] .mobile-nav-on .page-sidebar {
        left: auto;
        right: 0;
    }
    .page-sidebar {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }
    .page-sidebar .primary-nav {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    /* Top: logo + user info */
    .page-sidebar .nav-sidebar-header.nav-footer-at-top {
        display: flex !important;
        flex-direction: column !important;
        flex-shrink: 0 !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.5rem 0.625rem 0.75rem !important;
        background-color: #2b4d93 !important;
        background-image: none !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    }
    .page-sidebar .nav-sidebar-header .nav-footer-image {
        margin-bottom: 0.35rem !important;
    }
    .page-sidebar .nav-sidebar-header .nav-footer-image img {
        max-height: 36px !important;
    }
    .page-sidebar .nav-sidebar-header .nav-sidebar-user-list {
        list-style: none;
        padding-left: 0;
        padding-right: 0;
        margin: 0 !important;
    }
    .page-sidebar .nav-sidebar-header .nav-sidebar-user-item {
        display: block;
        padding: 0.15rem 0 !important;
        color: #fff;
        font-size: 0.8125rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .page-sidebar .nav-sidebar-header .nav-sidebar-icon {
        color: #fff;
        margin-inline-end: 0.35rem;
    }
    /* Bottom: language switcher + logout (same as header, fits sidebar width) */
    .page-sidebar .nav-sidebar-actions {
        display: flex !important;
        flex-shrink: 0 !important;
        flex-wrap: wrap;
        gap: 0.35rem !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.5rem 0.625rem 0.75rem !important;
        background-color: #2b4d93 !important;
        background-image: none !important;
        box-shadow: 0 -4px 8px rgba(0,0,0,0.12);
    }
    .page-sidebar .nav-sidebar-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.8125rem !important;
        padding: 0.4rem 0.5rem !important;
        min-height: 44px;
    }
}
/* One bar icon visible at a time: desktop toggles nav-function-hidden, mobile toggles mobile-nav-on */
.page-header .header-btn-mobile-only {
    display: none !important;
}
.page-header .header-btn-desktop-only {
    display: inline-block !important;
}
@media (max-width: 991.98px) {
    .page-header .header-btn-desktop-only {
        display: none !important;
    }
    .page-header .header-btn-mobile-only {
        display: inline-block !important;
    }
}

/* .page-content-wrapper: keep same width/layout at all widths (no change at 991 breakpoint) */
.page-content-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.center {
    margin: auto;
    width: 50%;
    padding: 10px;
}

/*table.responsive {
    width: 100%;
}*/

table.responsive tr {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    width: 100%;
}

table.responsive td {
    width: 25%;
}

.modal table.responsive tr {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    width: 100%;
}

.modal table.responsive td {
    width: 50%;
}

@media screen and (max-width:991.98px) {
    table.responsive td {
        width: 50%;
    }
}

.ListItemactive {
    color: #fff;
    background-color: #4679cc;
    border-radius: 4px;
    display: block;
    padding: 0.5rem 1.125rem;
}

@media all and (max-width: 1024px) {
    .center {
        width: 100%;
    }
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.alert.validation-summary-errors {
    margin-bottom: 1rem;
}

.full_screen {
    width: 100vw;
    position: relative;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 100;
}

.btn-list-item {
    padding: 10px;
    width: 300px;
    border: 30px;
    border-radius: 10px;
}

/* Reference classes, no implementation */
.js-waves-off,
.js-waves-on,
.js-get-date,
.js-collapse,
.js-modal-settings,
.js-filter-message,
.js-buttons,
.js-icon-class,
.js-icon-copy,
.base,
.needs-validation,
.flex-start,
.text-faded,
.app-container-demo,
.has-tooltip,
.has-popover {
}

.js-bg-color,
.js-bg-gradient,
.js-bg-gradient-demo,
.js-bg-target {
}

/* Small word wrap correction */
section > ol > li {
    word-break: break-all;
}

.bg {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    height: 100vh;
}
/* Enter custom CSS rules for your application here */

@font-face {
    font-family: 'Droid Arabic Kufi';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/Droid-Arabic-Kufi/DroidKufi-Regular.eot);
    src: url(../fonts/Droid-Arabic-Kufi/DroidKufi-Regular.eot?#iefix) format('embedded-opentype'), url(../fonts/Droid-Arabic-Kufi/DroidKufi-Regular.woff2) format('woff2'), url(../fonts/Droid-Arabic-Kufi/DroidKufi-Regular.woff) format('woff'), url(../fonts/Droid-Arabic-Kufi/DroidKufi-Regular.ttf) format('truetype');
}

/* Vazir Font Family - Complete Implementation for Arabic and English */
@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url('../fonts/Vazir/vazir-thin.eot');
    src: url('../fonts/Vazir/vazir-thin.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir/vazir-thin.woff2') format('woff2'),
         url('../fonts/Vazir/vazir-thin.woff') format('woff'),
         url('../fonts/Vazir/vazir-thin.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Vazir/vazir-light.eot');
    src: url('../fonts/Vazir/vazir-light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir/vazir-light.woff2') format('woff2'),
         url('../fonts/Vazir/vazir-light.woff') format('woff'),
         url('../fonts/Vazir/vazir-light.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Vazir/vazir.eot');
    src: url('../fonts/Vazir/vazir.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir/vazir.woff2') format('woff2'),
         url('../fonts/Vazir/vazir.woff') format('woff'),
         url('../fonts/Vazir/vazir.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Vazir/vazir-medium.eot');
    src: url('../fonts/Vazir/vazir-medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir/vazir-medium.woff2') format('woff2'),
         url('../fonts/Vazir/vazir-medium.woff') format('woff'),
         url('../fonts/Vazir/vazir-medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Vazir/vazir-bold.eot');
    src: url('../fonts/Vazir/vazir-bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir/vazir-bold.woff2') format('woff2'),
         url('../fonts/Vazir/vazir-bold.woff') format('woff'),
         url('../fonts/Vazir/vazir-bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/Vazir/vazir-black.eot');
    src: url('../fonts/Vazir/vazir-black.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir/vazir-black.woff2') format('woff2'),
         url('../fonts/Vazir/vazir-black.woff') format('woff'),
         url('../fonts/Vazir/vazir-black.ttf') format('truetype');
}

/* ===== VAZIR FONT OVERRIDE - SAFE APPROACH ===== */
/* Global font application for Arabic and English - Higher specificity to override vendors.bundle.css */
html body {
    font-family: 'Vazir', 'Droid Arabic Kufi', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Arabic text styling */
html body[dir="rtl"], 
html body .arabic-text, 
html body .loc,
html [dir="rtl"] {
    font-family: 'Vazir', 'Droid Arabic Kufi', 'Cairo', sans-serif !important;
    font-weight: 400;
}

/* English text styling */
html body[dir="ltr"], 
html body .english-text,
html [dir="ltr"] {
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 400;
}

/* ===== COMPONENT-SPECIFIC FONT OVERRIDES ===== */
/* Override bundle fonts for key UI components */
.page-header, .nav-menu, .btn, .dropdown-menu, .form-control, .card, .modal-content {
    font-family: 'Vazir', 'Droid Arabic Kufi', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Navigation and menu items */
.nav-menu li a, .nav-link, .navbar-nav .nav-link {
    font-family: 'Vazir', 'Droid Arabic Kufi', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Form elements */
input, textarea, select, .form-control, .form-select {
    font-family: 'Vazir', 'Droid Arabic Kufi', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Buttons and interactive elements */
button, .btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info {
    font-family: 'Vazir', 'Droid Arabic Kufi', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6, p, span, div, .text, .title, .subtitle {
    font-family: 'Vazir', 'Droid Arabic Kufi', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Table elements */
table, th, td, .table, .table th, .table td {
    font-family: 'Vazir', 'Droid Arabic Kufi', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* ===== RTL/LTR SPECIFIC OVERRIDES ===== */
/* RTL-specific font overrides */
[dir="rtl"] .page-header, [dir="rtl"] .nav-menu, [dir="rtl"] .btn, [dir="rtl"] .dropdown-menu,
[dir="rtl"] .form-control, [dir="rtl"] .card, [dir="rtl"] .modal-content {
    font-family: 'Vazir', 'Droid Arabic Kufi', 'Cairo', sans-serif !important;
}

/* LTR-specific font overrides */
[dir="ltr"] .page-header, [dir="ltr"] .nav-menu, [dir="ltr"] .btn, [dir="ltr"] .dropdown-menu,
[dir="ltr"] .form-control, [dir="ltr"] .card, [dir="ltr"] .modal-content {
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* ===== FONT WEIGHT UTILITY CLASSES ===== */
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* ===== ICON FONT PRESERVATION ===== */
/* Ensure icon fonts are preserved and not overridden by Vazir */
.fa, .fas, .far, .fab, .fal, .fat, .fad, .fa-duotone, .fa-brands, .fa-solid, .fa-regular, .fa-light, .fa-thin,
[class*="fa-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Pro', 'Font Awesome 5 Free', 'FontAwesome' !important;
    font-weight: 900 !important;
}

.far, .fa-regular {
    font-weight: 400 !important;
}

.fal, .fa-light {
    font-weight: 300 !important;
}

.fab, .fa-brands {
    font-family: 'Font Awesome 5 Brands' !important;
    font-weight: 400 !important;
}

.ni, [class*="ni-"] {
    font-family: 'nextgen-icons' !important;
    font-weight: normal !important;
}

/* ===== ADDITIONAL SAFETY MEASURES ===== */
/* Ensure Vazir font is applied to text content but not to icon elements */
.text-content, .content, .main-content {
    font-family: 'Vazir', 'Droid Arabic Kufi', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Override any remaining bundle font declarations */
*:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fat):not(.fad):not(.fa-duotone):not(.fa-brands):not(.fa-solid):not(.fa-regular):not(.fa-light):not(.fa-thin):not([class*="fa-"]):not(.ni):not([class*="ni-"]) {
    font-family: 'Vazir', 'Droid Arabic Kufi', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}


.logo-center {
    text-align: center;
    height: 75px;
}

    .logo-center img {
        width: 10%;
    }

body.smart-rtl span {
    -webkit-box-shadow: none;
    box-shadow: none;
    font-family: 'Cairo';
    font-size: 13px;
}

.haserror {
    border: #ff0000 2px dashed !important;
}

.text-arabic {
    -webkit-box-shadow: none;
    box-shadow: none;
    font-family: 'Cairo';
    font-size: 13px;
}

tr .text-arabic {
    -webkit-box-shadow: none;
    box-shadow: none;
    font-family: 'Cairo';
    font-size: 11px;
}

small .text-arabic {
    -webkit-box-shadow: none;
    box-shadow: none;
    font-family: 'Cairo';
    font-size: 80%;
    font-weight: 400;
}

.fal.spinning {
    animation: spin 1s infinite linear;
    -webkit-animation: spin2 1s infinite linear;
}

@keyframes spin {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1) rotate(360deg);
    }
}

@-webkit-keyframes spin2 {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

.fa-left {
    margin-right: 7px;
}

.centercontainer {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

.btn-x-block {
    display: block;
    width: 50%;
}

@media (max-width: 1399px) {
    .centercontainer {
        max-width: 1440px;
    }

    .btn-x-block {
        display: block;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .centercontainer {
        max-width: 1260px;
    }

    .btn-x-block {
        display: block;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .centercontainer {
        max-width: 1000px;
    }

    .btn-x-block {
        display: block;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .centercontainer {
        max-width: 790px;
    }
}

.success-container {
    display: flex;
    width: 50%;
    margin: auto;
    /*position: inherit;*/
    left: calc(50% - 150px);
    /* margin-left: -50px;*/
    top: 50%;
    margin-top: -20px;
}

@media (max-width: 992px) {
    .success-container {
        width: 100%;
    }
}

ul {
    list-style-type: none;
}

.nav-footer {
    display: block;
    height: auto;
}

.nav-footer-image {
    text-align: center;
    margin-bottom: 15px;
}

    .nav-footer-image img {
        max-height: 100px;
    }

html body a {
    color: #fff;
    background-color: transparent;
}

.w3samples-sucess-msg div:first-child {
    font-size: 40px;
}

.w3samples-sucess-msg div:last-child {
    font-size: 30px;
}

.w3samples-sucess-msg {
    display: flex;
    flex-direction: column;
    color: #4b95e8;
    line-height: 50px;
    /*text-align: left;*/
}

.w3samples-success-Container .w3samples-modal-icon {
    border-radius: 50%;
    border: 4px solid gray;
    box-sizing: content-box;
    height: 80px;
    padding: 0;
    position: relative;
    width: 80px;
    overflow: hidden;
}

    .w3samples-success-Container .w3samples-modal-icon.w3samples-modal-success, .w3samples-success-Container .w3samples-modal-icon.f-modal-error {
        border-color: #4b95e8;
    }

        .w3samples-success-Container .w3samples-modal-icon.w3samples-modal-success:after, .w3samples-success-Container .w3samples-modal-icon.w3samples-modal-success:before, .w3samples-success-Container .w3samples-modal-icon.f-modal-error:after, .w3samples-success-Container .w3samples-modal-icon.f-modal-error:before {
            background: #fff;
            content: '';
            height: 120px;
            position: absolute;
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
            width: 60px;
        }

        .w3samples-success-Container .w3samples-modal-icon.w3samples-modal-success:before, .w3samples-success-Container .w3samples-modal-icon.f-modal-error:before {
            border-radius: 120px 0 0 120px;
            left: -33px;
            top: -8px;
            -webkit-transform-origin: 60px 60px;
            transform-origin: 60px 60px;
            -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
        }

        .w3samples-success-Container .w3samples-modal-icon.w3samples-modal-success:after, .w3samples-success-Container .w3samples-modal-icon.f-modal-error:after {
            border-radius: 0 120px 120px 0;
            left: 30px;
            top: -10px;
            -webkit-transform-origin: 0 60px;
            transform-origin: 0 60px;
            -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
        }

        .w3samples-success-Container .w3samples-modal-icon.w3samples-modal-success .w3samples-modal-placeholder, .w3samples-success-Container .w3samples-modal-icon.f-modal-error .w3samples-modal-placeholder {
            border-radius: 50%;
            border: 4px solid rgba(165, 220, 134, 0.2);
            box-sizing: content-box;
            height: 80px;
            left: -4px;
            position: absolute;
            top: -4px;
            width: 80px;
            z-index: 2;
        }

        .w3samples-success-Container .w3samples-modal-icon.w3samples-modal-success .w3samples-modal-fix, .w3samples-success-Container .w3samples-modal-icon.f-modal-error .w3samples-modal-fix {
            background-color: #fff;
            height: 90px;
            left: 28px;
            position: absolute;
            top: 8px;
            -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
            width: 5px;
            z-index: 1;
        }

        .w3samples-success-Container .w3samples-modal-icon.w3samples-modal-success .w3samples-modal-line, .w3samples-success-Container .w3samples-modal-icon.f-modal-error .w3samples-modal-line {
            background-color: #4b95e8;
            border-radius: 2px;
            display: block;
            height: 4px;
            position: absolute;
            z-index: 2;
        }

            .w3samples-success-Container .w3samples-modal-icon.w3samples-modal-success .w3samples-modal-line.w3samples-modal-tip, .w3samples-success-Container .w3samples-modal-icon.f-modal-error .w3samples-modal-line.w3samples-modal-tip {
                left: 13px;
                top: 46px;
                -webkit-transform: rotate(45deg);
                transform: rotate(45deg);
                width: 25px;
            }

            .w3samples-success-Container .w3samples-modal-icon.w3samples-modal-success .w3samples-modal-line.w3samples-modal-long, .w3samples-success-Container .w3samples-modal-icon.f-modal-error .w3samples-modal-line.w3samples-modal-long {
                right: 8px;
                top: 38px;
                -webkit-transform: rotate(-45deg);
                transform: rotate(-45deg);
                width: 47px;
            }


    .w3samples-success-Container .w3samples-modal-icon + .w3samples-modal-icon {
        margin-top: 50px;
    }

.w3samples-animate-successSuccessTip {
    -webkit-animation: w3samples-animate-successSuccessTip .75s;
    animation: w3samples-animate-successSuccessTip .75s;
}

.w3samples-animate-successSuccessLong {
    -webkit-animation: w3samples-animate-successSuccessLong .75s;
    animation: w3samples-animate-successSuccessLong .75s;
}




@-webkit-keyframes w3samples-animate-successSuccessTip {
    0%,54% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }

    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }

    100% {
        width: 25px;
        left: 14px;
        top: 45px;
    }
}

@keyframes w3samples-animate-successSuccessTip {
    0%,54% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }

    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }

    100% {
        width: 25px;
        left: 14px;
        top: 45px;
    }
}

@keyframes w3samples-animate-successSuccessLong {
    0%,65% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    84% {
        width: 55px;
        right: 0;
        top: 35px;
    }

    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

.w3samples-sucess-msg div:first-child {
    font-size: 40px;
}

/* ===== QUICKGRID PAGINATOR RTL ARROW FIX ===== */
/* QuickGrid Paginator uses scoped CSS with dynamic identifiers like [b-3qssc0bm46] */
/* QuickGrid default: .go-next and .go-last are flipped (scaleX(-1)) for LTR */
/* For RTL: Flip .go-first and .go-previous, and unflip .go-next and .go-last */
[dir="rtl"] .go-first,
[dir="rtl"] .go-previous {
    transform: scaleX(-1) !important;
}

[dir="rtl"] .go-next,
[dir="rtl"] .go-last {
    transform: none !important;
}

/* ===== QUICKGRID EMPTY ROWS FIX ===== */
/* Hide empty placeholder rows in QuickGrid when there's less data than page size */
/* QuickGrid creates placeholder rows with empty cells when using virtualization */
.quickgrid tbody tr:has(td:empty:not(:has(*))) {
    display: none !important;
}

/* Hide rows where all cells are empty (more specific selector) */
.quickgrid tbody tr:has(td:empty):not(:has(td:not(:empty))) {
    display: none !important;
}

.w3samples-success-alert-glow {
    height: 88px;
    width: 88px;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    top: 0px;
    left: 0;
    margin: auto;
    z-index: -1;
}

.w3samplesl-glow-wrapper {
    position: relative;
    margin: 5px 30px 0px 5px;
}

.w3samples-success-alert-glow:before, .w3samples-success-alert-glow:after {
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    border-radius: 50%;
    top: 0;
    left: 0;
    background-color: #4b95e8;
    animation: mail-glow-animation 1.5s cubic-bezier(0.51, 0.19, 0.19, 0.57);
}

.w3samples-success-alert-glow:after {
    animation-delay: 0.2s;
}

@keyframes mail-glow-animation {
    30% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===== MAUI / mobile: compact service + document step flows ===== */
/* Class map (components): ServiceDataPageComponent = .service-step-header + .px-2 wrapper;
   ServiceDataComponent = .service-data-card.step-content-card, titles under .card-title/.icon-text,
   fields .label-color + .attachmentItemContainer, inputs .form-control, errors .invalid-feedback;
   ServiceDocumentsComponent = .documents-step-card, .documents-section-title, .required-document-row */

/* FIX 1 — service header icon overflow (no clipping) */
body.mobile-view-activated .service-step-header {
    overflow: visible !important;
    padding: 8px 12px !important;
    min-height: unset !important;
    max-height: unset !important;
    box-sizing: border-box !important;
}

body.mobile-view-activated .service-step-header .profile-image,
body.mobile-view-activated .service-step-header .area-change-icon,
body.mobile-view-activated .service-step-header .icon-card .profile-image {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: unset !important;
    margin-bottom: 0 !important;
}

body.mobile-view-activated .service-step-header .title-content,
body.mobile-view-activated .service-step-header .icon-card {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: unset !important;
}

body.mobile-view-activated .service-step-header .text-title,
body.mobile-view-activated .service-step-header .text-section,
body.mobile-view-activated .service-step-header h3,
body.mobile-view-activated .service-step-header h4 {
    font-size: 1.1rem !important;
    margin: 0 !important;
}

/* FIX 2 — gap below service header / above step card */
body.mobile-view-activated .step-content-card,
body.mobile-view-activated .service-data-card,
body.mobile-view-activated .documents-step-card {
    margin-top: 4px !important;
}

body.mobile-view-activated .documents-step-card,
body.mobile-view-activated .service-data-card.step-content-card {
    flex: 0 0 auto !important;
    min-height: unset !important;
    margin-bottom: 8px !important;
}

/* FIX 3 — section titles + card body (ServiceData has no service-data-section-title class; use .card-title) */
body.mobile-view-activated .documents-section-title,
body.mobile-view-activated .documents-card-title .documents-section-title,
body.mobile-view-activated .service-data-section-title,
body.mobile-view-activated .step-section-title,
body.mobile-view-activated .service-data-card .card-title,
body.mobile-view-activated .service-data-card .card-title .icon-text {
    font-size: 0.9rem !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.mobile-view-activated .documents-step-card .card-body,
body.mobile-view-activated .step-content-card .card-body,
body.mobile-view-activated .service-data-card .card-body {
    padding: 8px !important;
    padding-top: 4px !important;
}

/* FIX 4 — gap before Save/Next; razor uses <br /> after cards — hide on mobile */
body.mobile-view-activated .mobile-action-buttons {
    margin-top: 4px !important;
    padding-top: 4px !important;
    padding-bottom: 8px !important;
}

body.mobile-view-activated .step-buttons-wrapper,
body.mobile-view-activated .action-buttons-wrapper {
    margin-top: 4px !important;
    padding-top: 0 !important;
}

body.mobile-view-activated .service-data-card + br,
body.mobile-view-activated .documents-step-card + br {
    display: none !important;
}

body.mobile-view-activated .document-item,
body.mobile-view-activated .upload-file-wrapper,
body.mobile-view-activated .required-document-row {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    margin-bottom: 4px !important;
}

body.mobile-view-activated .required-document-row.label-color {
    margin-bottom: 4px !important;
}

body.mobile-view-activated .document-upload-btn,
body.mobile-view-activated .choose_file .document-upload-btn {
    padding: 8px 12px !important;
    font-size: 1rem !important;
    min-height: 40px !important;
}

body.mobile-view-activated .upload-hint,
body.mobile-view-activated .upload-file-type-hint,
body.mobile-view-activated .file-type-hint {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

body.mobile-view-activated .required-document-row .text-success.small {
    font-size: 0.75rem !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

body.mobile-view-activated .document-upload-row.file-item {
    padding: 6px 8px !important;
    margin-bottom: 4px !important;
}

body.mobile-view-activated .attachmentItemContainer.upload-file-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* FIX 5 — form density (ServiceData uses .label-color, not .form-group) */
body.mobile-view-activated .form-group,
body.mobile-view-activated .service-parameter-row,
body.mobile-view-activated .service-data-card .attachmentItemContainer {
    margin-bottom: 4px !important;
}

body.mobile-view-activated .form-label,
body.mobile-view-activated .parameter-label,
body.mobile-view-activated .service-data-card .label-color {
    margin-bottom: 2px !important;
    font-size: 0.85rem !important;
}

body.mobile-view-activated .form-control,
body.mobile-view-activated input.form-control,
body.mobile-view-activated .service-data-card input.form-control,
body.mobile-view-activated input:not([type="checkbox"]):not([type="radio"]),
body.mobile-view-activated textarea,
body.mobile-view-activated select {
    padding: 6px 10px !important;
    font-size: 1rem !important;
    min-height: 38px !important;
    height: 38px !important;
}

body.mobile-view-activated textarea {
    height: auto !important;
    min-height: 44px !important;
}

/* FIX 6 — validation lines */
body.mobile-view-activated .field-validation-error,
body.mobile-view-activated .text-danger.small,
body.mobile-view-activated .validation-message,
body.mobile-view-activated .invalid-feedback,
body.mobile-view-activated .service-data-card .invalid-feedback {
    font-size: 0.75rem !important;
    margin-top: 1px !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
}

body.mobile-view-activated .maui-home-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ReadyServicePayment: no service-step-header — avoid title under fixed app bar */
body.mobile-view-activated .ready-payment-wrapper {
    padding-top: 16px !important;
}

body.mobile-view-activated .payment-page-title,
body.mobile-view-activated .ready-payment-title {
    padding-top: 8px !important;
    margin-top: 0 !important;
}

/* ReadyServicePayment: policy links — override global html body a { color: #fff } on light content */
.payment-policy-links a {
    color: #2b4d93 !important;
}

.payment-policy-links a:hover {
    color: #967bbd !important;
}

/* Loaders: center in view (Blazor overlay + step loading row + pre-Blazor #app-loading) */
body.mobile-view-activated .maui-loader-wrapper,
body.mobile-view-activated .loading-wrapper,
body.mobile-view-activated .blazor-loading {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.mobile-view-activated .SpinnerBackground.maui-loader-wrapper,
body.mobile-view-activated #app-loading {
    min-height: 100vh !important;
}

body.mobile-view-activated .loading-wrapper:not(.SpinnerBackground) {
    min-height: 60vh !important;
}
@media (max-width: 575.98px) {
    .list-group-item .text-break {
        word-break: break-word;
    }
}

.recent-orders-home-card .min-touch {
    min-height: 44px;
}
