﻿/* ============================================================
   JOBCALL MASTER.CSS — MODERN APP EDITION
   Now using CSS variables + Bootstrap-native layout
   ============================================================ */

/* ------------------------------------------------------------
   COLOR SYSTEM (CSS VARIABLES)
   ------------------------------------------------------------ */
:root {
    --jc-blue: #0078D4;
    --jc-gray: #6B7280;
    --jc-dark: #1F2937;
    --jc-light: #F3F4F6;
    --jc-red: #E63946;
    --jc-bg: #F8F9FA;
    --jc-white: #FFFFFF;
}

/* ------------------------------------------------------------
   GLOBAL BASE
   ------------------------------------------------------------ */
html, body {
    margin: 0;
    padding: 0;
    font-family: Calibri, Arial, sans-serif;
    background-color: var(--jc-bg);
    color: var(--jc-dark);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ------------------------------------------------------------
   BRANDING
   ------------------------------------------------------------ */
.logo-and-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-wrap: nowrap;
    min-width: 200px;
}

.brand-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--jc-white);
    white-space: nowrap;
}

.brand-inc {
    color: var(--jc-red) !important;
    font-weight: bold;
}

.brand-logo {
    transition: filter 0.3s ease;
}

    .brand-logo:hover {
        filter: brightness(1.25);
    }

/* Bounce animation for “Inc.” */
.bounce-inc {
    display: inline-block;
    animation: bounceIn 1.2s ease-out 1;
}

@keyframes bounceIn {
    0% {
        transform: translateY(0);
        color: var(--jc-red);
    }

    20% {
        transform: translateY(-20px);
    }

    40% {
        transform: translateY(0);
    }

    60% {
        transform: translateY(-15px);
    }

    80% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(0);
        color: var(--jc-red);
    }
}

/* ------------------------------------------------------------
   CONTENT WRAPPER
   ------------------------------------------------------------ */
.page-wrapper {
    padding: 20px;
}

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
.nav-link {
    background: none;
    border: none;
    color: var(--jc-white);
    padding: .5rem 1rem;
    transition: color 0.25s ease;
}

    .nav-link:hover {
        color: #00aaff;
    }

/* ------------------------------------------------------------
   ROLE SELECTOR
   ------------------------------------------------------------ */
.role-container .toggle-btn {
    min-width: 200px;
    text-align: center;
}

.toggle-btn {
    padding: 8px 14px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid var(--jc-gray);
    background-color: var(--jc-white);
    color: var(--jc-dark);
    transition: all 0.25s ease;
}

    .toggle-btn:hover {
        background-color: var(--jc-blue);
        color: var(--jc-white);
        border-color: var(--jc-blue);
    }

    .toggle-btn.active,
    .toggle-btn.active-role {
        background-color: var(--jc-blue);
        color: var(--jc-white);
        border-color: var(--jc-blue);
    }

/* ------------------------------------------------------------
   PROFILE POPUP
   ------------------------------------------------------------ */
.profile-icon {
    font-size: 30px;
    cursor: pointer;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--jc-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jc-white);
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-link {
    display: block;
    padding: 8px 10px;
    margin: 4px 0;
    border-radius: 6px;
    background-color: var(--jc-light);
    color: var(--jc-dark);
    transition: all 0.25s ease;
}

    .profile-link:hover {
        background-color: var(--jc-blue);
        color: var(--jc-white);
    }

.jobcall-footer {
    position: relative;
    width: 100%;
    background: #111;
    color: #fff;
    padding: 12px 16px;
    z-index: 1;
    text-align: center;
}

    .jobcall-footer .a {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .jobcall-footer img {
        max-height: 32px;
        width: auto;
    }

    .jobcall-footer .btn {
        margin-bottom: 0 !important;
    }

@media (max-width: 575.98px) {
    .jobcall-footer {
        padding: 12px 8px;
    }

        .jobcall-footer .a {
            gap: 8px;
        }
}

.profile-box {
    position: fixed !important;
    top: 70px;
    right: 20px;
    z-index: 99999;
    width: 260px;
    max-width: calc(100% - 40px);
    background-color: var(--jc-white);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}

    .profile-box.active {
        display: block;
    }

/* ------------------------------------------------------------
   CART ICON
   ------------------------------------------------------------ */
.cart-wrapper {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 40px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: 10px;
    background-color: var(--jc-red);
    color: var(--jc-white);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

.cart-icon {
    width: 50px;
    height: 50px;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

    .cart-icon:hover {
        filter: brightness(1.5);
    }

/* ------------------------------------------------------------
   FORMS
   ------------------------------------------------------------ */
.form-control {
    background-color: var(--jc-white) !important;
    border: 2px solid var(--jc-gray) !important;
    border-radius: 6px !important;
    padding: 10px !important;
    font-size: 16px !important;
}

    .form-control:focus {
        border-color: var(--jc-blue) !important;
        box-shadow: 0 0 0 3px rgba(0,120,212,0.25) !important;
    }

.ErrorFormat {
    width: 100%;
    max-width: 280px;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: var(--jc-red);
    color: var(--jc-white);
    text-align: center;
    font-size: 16px;
}

/* ------------------------------------------------------------
   SPINNER OVERLAY
   ------------------------------------------------------------ */
.spinner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.7);
    z-index: 9999;
}

.spinner-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ------------------------------------------------------------
   GLOBAL CARD GRID SYSTEM
   ------------------------------------------------------------ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
    box-sizing: border-box;
}

    .card-grid.cart-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

/* ------------------------------------------------------------
   JOB CARDS
   ------------------------------------------------------------ */
.job-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.10), 0 8px 22px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.job-card-category {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.job-card-divider {
    border: 0;
    border-top: 2px solid #ccc;
    width: 100%;
    margin: 12px 0;
}

.job-card-details {
    width: 100%;
    text-align: left;
}

    .job-card-details div {
        margin-bottom: 6px;
        font-size: 0.95rem;
    }

.job-card-actions {
    text-align: center;
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

    /* ICON BUTTONS */
    .job-card-actions .cart-btn {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 6px 8px;
        font-size: 1.4rem;
        line-height: 1;
        width: auto !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        color: inherit !important;
    }

        .job-card-actions .cart-btn:hover {
            opacity: 0.7;
        }

#btnEdit.cart-btn {
    color: #0d6efd !important;
}

#btnDelete.cart-btn {
    color: #dc3545 !important;
}

#btnSave.cart-btn {
    color: #198754 !important;
}

/* ------------------------------------------------------------
   CART CARDS
   ------------------------------------------------------------ */
.cart-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.cart-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.cart-col {
    flex: 1 1 200px;
}

.cart-divider {
    border: 0;
    border-top: 2px solid #ccc;
    margin: 12px 0;
}

.cart-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

/* CART BUTTONS */
.cart-btn {
    padding: 10px 16px;
    font-size: 1rem;
    border-radius: 6px;
    background: #0d6efd;
    color: white;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}

    .cart-btn:hover {
        background: #0b5ed7;
    }

/* ------------------------------------------------------------
   CART FOOTER
   ------------------------------------------------------------ */
.cart-footer {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    margin-top: 20px;
}

.cart-footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cart-footer-col {
    flex: 1 1 200px;
}

.cart-total-value {
    display: block;
    margin-top: 4px;
    font-weight: bold;
    color: #0d6efd;
}

/* ------------------------------------------------------------
   GRIDVIEW RESET
   ------------------------------------------------------------ */
#GridView1 {
    display: contents;
}

    #GridView1 tr {
        display: block;
        width: 100%;
    }

    #GridView1 td {
        display: block;
        width: 100%;
        border: none;
        padding: 0;
    }

/* ------------------------------------------------------------
   JOB DETAILS
   ------------------------------------------------------------ */
.job-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    padding: 10px 5px;
}

.job-details-row {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
}

.job-details-value {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* ------------------------------------------------------------
   FILTER UI
   ------------------------------------------------------------ */
.filter-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px auto 30px;
    max-width: 900px;
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 25px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ------------------------------------------------------------
   MODERN GRID
   ------------------------------------------------------------ */
.modern-grid {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    font-family: Calibri, sans-serif;
}

.modern-grid-header {
    background: #f1f3f5;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
}

.modern-grid-row {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

    .modern-grid-row:hover {
        background: #f0f7ff;
    }

/* ------------------------------------------------------------
   GLOBAL BUTTON VARIANTS
   ------------------------------------------------------------ */
.active-btn {
    background: #198754;
}

    .active-btn:hover {
        background: #157347;
    }

.repost-btn {
    background: #d4a017;
}

    .repost-btn:hover {
        background: #b98b12;
    }

.future-btn {
    background: #0d6efd;
}

    .future-btn:hover {
        background: #0b5ed7;
    }

/* ------------------------------------------------------------
   CART LINK
   ------------------------------------------------------------ */
.cart-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

    .cart-link:hover {
        color: #084298;
        text-decoration: underline;
    }

.cart-status {
    color: red;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ------------------------------------------------------------
   RESPONSIVE GLOBAL
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .cart-footer-row {
        flex-direction: column;
        gap: 12px;
    }

    .job-card-actions {
        flex-direction: row;
        justify-content: flex-end;
        gap: 8px;
    }
}

/* ------------------------------------------------------------
   HEADER RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .brand-label {
        font-size: 1.4rem;
    }

    .tagline {
        display: none !important;
    }
}

/* Short-height navigation is handled in the targeted landscape block below. */

.header-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.35);
    margin: 6px 0;
    width: 100%;
    opacity: 1 !important;
}

.header-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.header-section {
    display: block;
    width: 100%;
}

.navbar {
    overflow: visible !important;
}

@media (min-width: 992px) {
    #jobcallHeader {
        display: block !important;
        width: 100% !important;
    }

        #jobcallHeader > .header-section {
            display: block !important;
            width: 100% !important;
        }

    .navbar > .container-fluid {
        display: flex;
        flex-direction: column;
    }

    .navbar .header-section {
        order: 0;
        position: relative;
        z-index: 2;
    }

    .navbar-collapse {
        order: 1;
        position: relative;
        z-index: 1;
        margin-top: 0 !important;
    }
}

.form-check-input:checked {
    background-color: #0078D4;
    border-color: #0078D4;
}



.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.bg-primary-subtle {
    background-color: #e8f0ff;
}

.card {
    border-radius: 12px;
}

.card-header h5 {
    font-size: 1.1rem;
}

/* ------------------------------------------------------------
   ADMIN DROPDOWN — SHARED STYLES
   ------------------------------------------------------------ */
.admin-menu {
    min-width: 230px;
    max-height: 65vh;
    overflow-y: auto;
}

    .admin-menu .dropdown-item {
        display: block;
        width: 100%;
        text-align: left;
        color: #212529;
        white-space: normal;
        padding: .5rem 1rem;
    }

        .admin-menu .dropdown-item:hover, .admin-menu .dropdown-item:focus {
            color: #0a58ca;
            background: #eef5ff;
        }

.profile-icon:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.profile-box.active {
    display: block;
    opacity: 1;
    visibility: visible;
}


/* ============================================================
   STAGE 2 - RESPONSIVE NAVIGATION / ADMIN MENU
   ============================================================ */

/* Do not clip Bootstrap dropdowns at the navbar's outer wrappers. */
.navbar,
.navbar > .container-fluid,
.navbar .header-section {
    overflow: visible !important;
}

/* Admin menu can scroll independently on tall screens. */
#jobcallHeader .admin-menu {
    max-height: min(65vh, 420px);
    overflow-y: auto;
}

@media (max-width: 991.98px) {
    .navbar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

        .navbar > .container-fluid {
            width: 100%;
            min-width: 0;
            max-width: 100%;
            padding-inline: 12px;
            flex-wrap: wrap;
        }

        .navbar .header-section,
        #jobcallHeader {
            width: 100%;
            min-width: 0;
            max-width: 100%;
        }

            #jobcallHeader .d-flex {
                flex-wrap: wrap !important;
                min-width: 0;
            }

            #jobcallHeader .nav-link,
            #jobcallHeader .btn,
            #jobcallHeader .dropdown-item {
                max-width: 100%;
                white-space: normal;
                overflow-wrap: break-word;
                word-wrap: break-word;
            }

            /* In collapsed mobile navigation, dropdowns participate in layout. */
            #jobcallHeader .admin-menu {
                position: static !important;
                transform: none !important;
                width: 100%;
                min-width: 0;
                max-width: 100%;
                box-sizing: border-box;
                margin-top: 5px;
            }
}


/* ============================================================
   ISSUE 1 - ADMINISTRATION MENU PORTAL
   The menu is moved to a direct child of the ASP.NET form,
   NOT document.body, so ASP.NET postback buttons still work.
   ============================================================ */

nav.navbar.fixed-top {
    z-index: 1050 !important;
}

/* Only the portaled menu gets this positioning. */
form#form1 > .admin-menu.jc-admin-portaled {
    position: fixed !important;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: calc(100vw - 16px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
    z-index: 20000 !important;
    pointer-events: auto !important;
}

    form#form1 > .admin-menu.jc-admin-portaled .dropdown-item {
        display: block;
        width: 100%;
        white-space: normal !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
        pointer-events: auto;
    }




/* ==============================================
   ADMIN DROPDOWN - LANDSCAPE SCROLLING
   ============================================== */

@media (orientation: landscape) and (max-height: 500px) {

    .admin-menu.show {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch;
    }

        .admin-menu.show .dropdown-item {
            display: block;
            width: 100%;
            white-space: normal !important;
        }
}



/* ============================================================
   PROFILE POPUP — RESPONSIVE OVERRIDES (Stage 2)
   Keeps existing JavaScript .active class and ASP.NET link controls.
   ============================================================ */
.profile-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-box {
    position: fixed !important;
    top: 70px;
    right: 12px;
    left: auto;
    width: 310px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 85px);
    max-height: calc(100dvh - 85px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    -webkit-overflow-scrolling: touch;
}

    .profile-box.active, .profile-box.show {
        display: block;
        opacity: 1;
        visibility: visible;
    }

.profile-box-header {
    font-size: 17px;
    font-weight: 700;
    color: var(--jc-dark);
    margin-bottom: 12px;
}

.profile-box p, .profile-details p {
    margin-bottom: 8px;
    font-size: 13px;
    overflow-wrap: break-word;
}

    .profile-box p span, .profile-details span {
        font-weight: 600;
    }

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-box .profile-link {
    white-space: normal;
    overflow-wrap: break-word;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .profile-box {
        top: 60px;
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .profile-box {
        top: 8px;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }
}


/* ============================================
   JOBCALL STICKY FOOTER
   Desktop and Mobile
   ============================================ */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
}

#form1 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1 0 auto;
    min-width: 0;
}


/* ============================================
   JOBCALL FIXED FOOTER
   Desktop and Mobile
   ============================================ */

.jobcall-footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1040;
    background-color: #111;
    color: #fff;
    padding: 10px 16px;
    text-align: center;
    box-sizing: border-box;
}

    .jobcall-footer .a {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .jobcall-footer img {
        max-height: 30px;
        width: auto;
    }

    .jobcall-footer .btn {
        margin-bottom: 0 !important;
    }

/* Prevent page content from being hidden */
.page-wrapper {
    padding-bottom: 100px;
}

/* Mobile */
@media (max-width: 575.98px) {

    .jobcall-footer {
        padding: 8px;
    }

        .jobcall-footer .a {
            gap: 6px;
            font-size: 12px;
        }

        .jobcall-footer .btn {
            padding: 5px 8px;
            font-size: 12px;
        }

    .page-wrapper {
        padding-bottom: 130px;
    }
}


/* ============================================================
   STAGE 3.3 - TWO-ROW MOBILE FOOTER ONLY
   Desktop footer styling is unchanged.
   ============================================================ */
@media (max-width: 575.98px) {
    /* The logo is hidden only on phones to keep the requested two rows. */
    .jobcall-footer img {
        display: none;
    }

    .jobcall-footer .a {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        column-gap: 8px;
        row-gap: 8px;
        text-align: center;
    }

    .jobcall-footer .jc-footer-copyright {
        flex: 0 0 100%;
        width: 100%;
        text-align: center;
        white-space: nowrap;
        font-size: 12px;
    }

    .jobcall-footer .btn {
        flex: 0 0 auto;
        margin: 0 !important;
    }
}

/* Stage 3.3 - explicit two-row mobile footer (v2) */
.jobcall-footer .jc-footer-actions {
    display: contents;
}

@media (max-width: 575.98px) {
    .jobcall-footer .a.no-translate {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
    }

        .jobcall-footer .a.no-translate > img,
        .jobcall-footer .a.no-translate > input[type="image"] {
            display: none !important;
        }

    .jobcall-footer .jc-footer-copyright {
        display: block !important;
        flex: none !important;
        width: 100% !important;
        text-align: center !important;
        white-space: nowrap;
        font-size: 11px;
    }

    .jobcall-footer .jc-footer-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        width: 100%;
    }

        .jobcall-footer .jc-footer-actions .btn {
            flex: 0 0 auto !important;
            margin: 0 !important;
            white-space: nowrap;
        }
}

/* Stage 3.3 production footer centering safeguard */
.jobcall-footer {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
}

    .jobcall-footer > .a.no-translate {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

@media (min-width: 576px) {
    .jobcall-footer > .a.no-translate {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px 12px !important;
    }

    .jobcall-footer .jc-footer-actions {
        display: contents !important;
    }
}

@media (max-width: 575.98px) {
    .jobcall-footer > .a.no-translate {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
    }

    .jobcall-footer .jc-footer-copyright {
        width: 100% !important;
        text-align: center !important;
    }

    .jobcall-footer .jc-footer-actions {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 7px !important;
    }
}


/* ============================================================
   RESPONSIVE ENHANCEMENTS — 2026-11-09
   Additive rules: preserve existing fixed footer, mobile two-row
   footer, role buttons, and portaled administration menu.
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

.page-wrapper {
    min-width: 0;
    max-width: 100%;
}

    .page-wrapper img, .page-wrapper video {
        max-width: 100%;
        height: auto;
    }

    .page-wrapper .table-responsive {
        max-width: 100%;
    }

/* Keep long translated labels from forcing horizontal overflow. */
.navbar .header-section, .navbar .header-section > .d-flex {
    min-width: 0;
}

#jobcallHeader .nav-link, #jobcallHeader .btn {
    overflow-wrap: break-word;
}

@media (max-width: 991.98px) {
    .navbar > .container-fluid {
        min-width: 0;
    }

    #jobcallHeader {
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
    }

        #jobcallHeader > .header-section > .d-flex {
            justify-content: stretch !important;
            align-items: stretch !important;
        }

        #jobcallHeader .nav-link {
            display: block;
            width: 100%;
            text-align: left;
        }

        #jobcallHeader .dropdown {
            width: 100%;
        }

            #jobcallHeader .dropdown > .btn {
                width: 100%;
                text-align: left;
            }

        #jobcallHeader .profile-wrapper {
            max-width: 100%;
        }

        #jobcallHeader .admin-menu:not(.jc-admin-portaled) {
            max-height: min(55dvh, 420px);
        }
}

@media (max-width: 575.98px) {
    .navbar .header-section > .d-flex {
        min-width: 0;
        gap: 6px;
    }

    .navbar .brand-label {
        font-size: clamp(1rem, 4.2vw, 1.3rem);
    }

    .navbar .brand-logo {
        width: 40px !important;
        height: 40px !important;
    }

    #languageSelector {
        width: min(112px, 29vw);
        min-width: 0;
        font-size: 13px;
    }

    .navbar-toggler {
        padding: 5px 8px;
        flex-shrink: 0;
    }

    .page-wrapper {
        padding: 12px;
    }

    .profile-box {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 76px);
    }

        .profile-box .profile-link {
            min-height: 42px;
        }

    .modal-dialog {
        margin: 10px;
    }

    .modal-content {
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
    }

    .modal-footer {
        flex-wrap: wrap;
    }

        .modal-footer .btn, .modal-footer input[type=submit] {
            max-width: 100%;
        }

    .job-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .card-grid, .card-grid.cart-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .job-card-actions {
        flex-wrap: wrap;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    #jobcallHeader {
        max-height: calc(100dvh - 65px);
    }

    .profile-box {
        top: 8px;
        max-height: calc(100dvh - 16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bounce-inc {
        animation: none;
    }
}
