/*
 * EDURO COMPANY BACKEND — COMPREHENSIVE MOBILE STYLES
 * Breakpoints: 767px (mobile), 1023px (tablet), 1024px+ (desktop)
 * Alle Employer-Backend-Seiten: Dashboard, Jobs, Bewerber, Chat, Profil, Booking
 */

/* ══════════════════════════════════════════════════════════
   1. GLOBAL OVERFLOW & BOX MODEL
   ══════════════════════════════════════════════════════════ */
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    max-width: 100vw;
}
* {
    box-sizing: border-box;
}
img {
    max-width: 100%;
    height: auto;
}

/* ══════════════════════════════════════════════════════════
   2. OFFCANVAS MOBILE NAVIGATION
   ══════════════════════════════════════════════════════════ */

/* Hamburger button — shown only on mobile */
.eduro-mobile-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.eduro-mobile-burger:hover {
    background: rgba(222,107,59,0.1);
}
.eduro-mobile-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}
.eduro-mobile-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.eduro-mobile-burger.open span:nth-child(2) { opacity: 0; }
.eduro-mobile-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer overlay */
.eduro-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1098;
    opacity: 0;
    transition: opacity 0.3s;
}
.eduro-drawer-overlay.active {
    display: block;
    opacity: 1;
}

/* Drawer panel */
.eduro-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: calc(100vw - 48px);
    height: 100%;
    background: #fff;
    z-index: 1099;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
}
.eduro-mobile-drawer.open {
    transform: translateX(0);
}

/* Drawer header */
.eduro-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0ece8;
    background: linear-gradient(135deg,#DE6B3B,#F2943C);
    flex-shrink: 0;
}
.eduro-drawer-head .drawer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}
.eduro-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

/* Drawer user info */
.eduro-drawer-user {
    padding: 16px 20px 8px;
    border-bottom: 1px solid #f0ece8;
    flex-shrink: 0;
}
.eduro-drawer-user-name {
    font-size: 15px;
    font-weight: 700;
    color: #1E1E1E;
    margin: 0 0 2px;
}
.eduro-drawer-user-role {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Drawer section label */
.eduro-drawer-section-label {
    padding: 14px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaa;
    margin: 0;
}

/* Drawer links */
.eduro-drawer-nav {
    flex: 1;
    padding: 0 0 8px;
}
.eduro-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    min-height: 44px;
}
.eduro-drawer-link:hover,
.eduro-drawer-link:focus {
    background: #FFF3EE;
    color: #DE6B3B;
    text-decoration: none;
}
.eduro-drawer-link.active {
    background: #FFF3EE;
    border-left-color: #DE6B3B;
    color: #DE6B3B;
    font-weight: 700;
}
.eduro-drawer-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}
.eduro-drawer-link .drawer-badge {
    margin-left: auto;
    background: #DE6B3B;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Drawer divider */
.eduro-drawer-divider {
    height: 1px;
    background: #f0ece8;
    margin: 4px 20px;
}

/* Drawer footer: logout */
.eduro-drawer-footer {
    padding: 12px 20px 24px;
    border-top: 1px solid #f0ece8;
    flex-shrink: 0;
}
.eduro-drawer-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff3f3;
    border: 1px solid #fcc;
    border-radius: 10px;
    color: #c0392b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    min-height: 44px;
}
.eduro-drawer-logout:hover {
    background: #fde;
    color: #c0392b;
    text-decoration: none;
}

@media (max-width: 767px) {
    .eduro-mobile-burger { display: flex; }
}

/* ══════════════════════════════════════════════════════════
   3. HEADER MOBILE LAYOUT
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Force header to be a flex row with logo + burger */
    .site_header .navbar {
        padding: 0;
    }
    .site_header .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-left: 16px;
        padding-right: 12px;
        min-height: 56px;
        flex-wrap: nowrap;
    }
    .site_header .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        float: none;
    }
    .site_header .navbar-brand {
        padding: 8px 0;
        float: none;
    }
    .site_header .navbar-brand img {
        height: 32px;
        width: auto;
    }
    /* Hide the Bootstrap collapse nav on mobile — replaced by drawer */
    .site_header .navbar-collapse {
        display: none !important;
    }
    /* Hide Bootstrap's built-in toggle (we use our custom burger) */
    .site_header .navbar-toggle {
        display: none !important;
    }
    /* Hide notification bell in header on mobile (accessible via drawer) */
    #notification-menu {
        display: none !important;
    }
    /* Alert banners below header: full width, readable */
    .profileUpdate {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 0;
    }
}

/* ══════════════════════════════════════════════════════════
   4. MAIN CONTENT CONTAINER
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
    }
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5,
    .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10,
    .col-md-11, .col-md-12 {
        padding-left: 8px;
        padding-right: 8px;
    }
    /* Prevent any element from causing horizontal overflow */
    .row {
        margin-left: -8px;
        margin-right: -8px;
        overflow-x: hidden;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ══════════════════════════════════════════════════════════
   5. DASHBOARD LAYOUT (eduro-dashboard__layout)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
    /* Stack sidebar and main vertically */
    .eduro-dashboard__layout {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .eduro-dashboard__sidebar {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        top: auto !important;
        flex-shrink: 0;
    }
    .eduro-dashboard__main {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
    }
    /* Filter sidebar: collapsible accordion on mobile */
    .eduro-dashboard__sidebar .sidebar-filters-wrapper {
        display: none;
    }
    .eduro-dashboard__sidebar .sidebar-filters-wrapper.open {
        display: block;
    }
    .eduro-dashboard__sidebar .sidebar-filter-toggle-btn {
        display: flex !important;
    }
}
@media (max-width: 767px) {
    /* Dashboard KPI / stat cards: 2-column grid */
    .entitlement-banner {
        flex-direction: column;
        gap: 12px;
    }
    .entitlement-banner > div {
        min-width: unset !important;
        width: 100%;
    }
    .entitlement-banner > a.btn {
        width: 100%;
        text-align: center;
    }
    /* Job filter tabs: horizontal scroll */
    .eduro-dashboard__filter-tabs,
    .job-filter-tabs-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        padding-bottom: 4px;
    }
    /* Sorting bar */
    .eduro-sort-bar,
    .job-sort-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    /* Job grid: single column */
    .jobs-grid,
    .eduro-jobs-grid {
        grid-template-columns: 1fr !important;
    }
    /* Dashboard section padding */
    .eduro-dashboard__main {
        padding: 12px 0 !important;
    }
}

/* ══════════════════════════════════════════════════════════
   6. CARDS — UNIVERSAL
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .dashboardBoxShadow,
    .publicProfileContent .col-md-3,
    .publicProfileContent .col-md-9 {
        float: none !important;
        width: 100% !important;
    }
    /* Card base */
    body.eduro-theme .card,
    body.eduro-theme .dashboardCard,
    body.eduro-theme .profileCard {
        border-radius: 16px;
        margin-bottom: 16px;
        overflow: hidden;
    }
    /* Job cards: full width */
    body.eduro-theme .jobs-grid-item {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin-bottom: 12px;
    }
}

/* ══════════════════════════════════════════════════════════
   7. FORMS — INPUTS, LABELS, SELECTS
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* iOS zoom prevention: minimum 16px font on inputs */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important;
        min-height: 48px;
    }
    select {
        max-width: 100%;
        width: 100%;
    }
    /* Select2 full width */
    .select2-container {
        width: 100% !important;
    }
    /* Form groups stack vertically */
    .form-group {
        margin-bottom: 16px;
    }
    /* Labels legible */
    label {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 6px;
        display: block;
    }
    /* Primary submit buttons full width */
    .btn-primary.btn-block-mobile,
    .form-submit-row .btn-primary,
    .publicProForm .submit-btn-row .btn {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }
    /* Two-column form rows → single column */
    .publicProfileContent .form-row,
    .col-md-6 {
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
    }
    /* Profile edit: sidebar left + main right → stack */
    .publicProfile-upload-pic {
        max-width: 100%;
    }
}

/* ══════════════════════════════════════════════════════════
   8. TABLES → SCROLLABLE OR CARDS ON MOBILE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Wrap all tables in scrollable container */
    .table-responsive-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        border-radius: 8px;
    }
    /* Prevent tables from setting min widths that overflow */
    body.eduro-theme table {
        min-width: 0;
    }
    /* Reports / data tables: horizontal scroll */
    .reports-table-wrap,
    .kpi-table,
    .application-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    /* Applicant list: table rows → compact */
    body.eduro-theme .applicantsTile {
        padding: 12px;
        margin-bottom: 10px;
    }
    body.eduro-theme .applicantsTile .col-md-1,
    body.eduro-theme .applicantsTile .col-md-2,
    body.eduro-theme .applicantsTile .col-md-3,
    body.eduro-theme .applicantsTile .col-md-4 {
        float: none !important;
        width: 100% !important;
        padding: 4px 0 !important;
    }
    body.eduro-theme .applicantsTile .applicantAvatar {
        float: left;
        margin-right: 12px;
        margin-bottom: 0;
    }
    body.eduro-theme .applicantsTile .applicantInfo {
        overflow: hidden;
    }
}

/* ══════════════════════════════════════════════════════════
   9. MODALS — ALWAYS FULL-WIDTH ON MOBILE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 16px;
        max-width: calc(100vw - 32px) !important;
        width: calc(100vw - 32px) !important;
    }
    .modal-content {
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }
    .modal-body {
        max-height: calc(100vh - 160px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .modal-footer {
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #dee2e6;
        z-index: 1;
    }
    .modal-footer .btn {
        min-height: 44px;
        flex: 1;
    }
}

/* ══════════════════════════════════════════════════════════
   10. JOB LIST (company/job_list_modern)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
    /* Filter sidebar becomes a toggle */
    .eduro-filter-sidebar {
        display: none;
    }
    .eduro-filter-sidebar.mobile-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: #fff;
        overflow-y: auto;
        padding: 20px 16px;
    }
    .eduro-filter-mobile-btn {
        display: flex !important;
    }
}
@media (max-width: 767px) {
    /* Job card layout */
    body.eduro-theme .jcm-card {
        margin-bottom: 12px;
        border-radius: 16px !important;
        overflow: hidden;
    }
    body.eduro-theme .jcm-card-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    body.eduro-theme .jcm-card-title {
        font-size: 15px;
    }
    body.eduro-theme .jcm-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
    }
    body.eduro-theme .jcm-card-actions .btn {
        min-height: 40px;
        font-size: 13px;
        padding: 8px 12px;
    }
    /* Publish / unpublish buttons: full width */
    body.eduro-theme .btn-publish-job,
    body.eduro-theme .btn-unpublish-job {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
    /* Status filter tabs */
    .jcm-filter-pills {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        padding-bottom: 4px;
    }
    /* View toggle (grid/list/map): always show on mobile */
    .jcm-view-toggle {
        gap: 4px;
    }
    .jcm-view-toggle .btn {
        padding: 6px 10px;
    }
    /* Map view: limit height */
    #job-map-container {
        height: 300px !important;
    }
    /* Draft hint card */
    .jcm-draft-hint {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ══════════════════════════════════════════════════════════
   11. APPLICANT MANAGEMENT (Kanban / Bewerber)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Kanban columns: full width stacked */
    .kanban-board,
    .applicants-kanban {
        flex-direction: column !important;
        gap: 16px;
    }
    .kanban-column,
    .applicants-kanban-column {
        width: 100% !important;
        min-width: 0 !important;
        flex-shrink: 0;
    }
    /* Status tabs: horizontal scroll */
    .applicant-status-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        white-space: nowrap;
        padding-bottom: 4px;
        gap: 6px;
    }
    /* Applicant card on mobile */
    .applicant-card-mobile {
        padding: 12px 14px;
        border-radius: 14px;
        margin-bottom: 10px;
    }
    /* Global applicant list: filter */
    .applicants-global-filter-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .applicants-global-filter-row .form-control {
        width: 100%;
    }
    /* Applicant detail: profile header */
    .applicant-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    /* Action bar sticky at top on mobile */
    .applicant-detail-actions-bar {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 10px 16px;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    .applicant-detail-actions-bar .btn {
        min-height: 44px;
        flex: 1;
        min-width: 120px;
    }
}

/* ══════════════════════════════════════════════════════════
   12. MESSENGER / CHAT
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Chat layout: two panels, show only one at a time */
    .chat-layout,
    .messenger-wrapper {
        flex-direction: column !important;
        height: calc(100vh - 60px) !important;
        overflow: hidden;
    }
    /* Conversation list panel */
    .chat-conversations-panel,
    .messenger-sidebar {
        width: 100% !important;
        height: 100% !important;
        flex-shrink: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Message view panel */
    .chat-messages-panel,
    .messenger-main {
        width: 100% !important;
        height: 100% !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    /* When a conversation is open: hide list, show messages */
    .messenger-wrapper.conversation-open .chat-conversations-panel,
    .messenger-wrapper.conversation-open .messenger-sidebar {
        display: none !important;
    }
    .messenger-wrapper:not(.conversation-open) .chat-messages-panel,
    .messenger-wrapper:not(.conversation-open) .messenger-main {
        display: none !important;
    }
    /* Message feed */
    .chat-messages-feed,
    .messenger-messages {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
    }
    /* Message input: sticky at bottom */
    .chat-input-bar,
    .messenger-input-row {
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 10px 12px;
        display: flex;
        gap: 8px;
        align-items: center;
        flex-shrink: 0;
    }
    .chat-input-bar input,
    .messenger-input-row input,
    .messenger-input-row textarea {
        flex: 1;
        min-height: 44px;
        font-size: 16px !important;
        border-radius: 22px;
        padding: 10px 16px;
    }
    .chat-input-bar .btn-send,
    .messenger-input-row .btn-send {
        min-width: 44px;
        min-height: 44px;
        border-radius: 50%;
    }
    /* Back button in chat header */
    .chat-back-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        min-height: 44px;
        min-width: 44px;
        color: #DE6B3B;
        font-weight: 600;
        text-decoration: none;
    }
    .chat-back-btn:hover {
        color: #c05a2e;
        text-decoration: none;
    }
}

/* ══════════════════════════════════════════════════════════
   13. PROFILE PAGES (personal, public, facility)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
    /* Profile settings modern: stack sidebar + main */
    .psm-wrapper {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .psm-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding: 16px !important;
        align-items: flex-start !important;
    }
    .psm-photo-card {
        flex: 0 0 auto;
        width: 180px !important;
        min-width: 140px !important;
    }
    .psm-nav {
        flex: 1;
        min-width: 200px;
    }
    .psm-main {
        width: 100% !important;
    }
}
@media (max-width: 767px) {
    /* Profile settings: full column */
    .psm-sidebar {
        flex-direction: column !important;
        width: 100% !important;
        padding: 16px !important;
    }
    .psm-photo-card {
        width: 100% !important;
        text-align: center;
    }
    .psm-avatar-upload {
        margin: 0 auto;
    }
    .psm-nav {
        width: 100%;
    }
    .psm-nav a {
        display: block;
        padding: 12px 16px;
        min-height: 44px;
    }
    /* Classic profile pages: stack layout */
    .publicProfileContent {
        display: flex;
        flex-direction: column;
    }
    .publicProfileContent > .col-md-3 {
        order: 2;
    }
    .publicProfileContent > .col-md-9 {
        order: 1;
    }
    /* Job photo upload card: contain image */
    .pm-photo-upload__preview {
        width: 100%;
        height: 160px !important;
        max-height: none !important;
        object-fit: cover;
        display: block;
    }
    /* Facility profile edit: tabs/sections */
    .company-facility-form {
        padding: 16px;
    }
    /* Gallery grid on mobile: 2 columns */
    .facility-gallery-grid,
    .gallery-images-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .facility-gallery-grid .gallery-item,
    .gallery-images-grid .gallery-item {
        border-radius: 10px;
        overflow: hidden;
    }
    /* Facility gallery images */
    .gallery-thumb,
    .facility-thumb {
        width: 100%;
        height: 100px;
        object-fit: cover;
        display: block;
        border-radius: 10px;
    }
    /* Hero header on public facility page */
    body.eduro-theme .myfacility-header {
        min-height: 240px !important;
        padding: 20px 16px !important;
    }
    body.eduro-theme .myfacility-header h1 {
        font-size: 22px !important;
    }
    body.eduro-theme .myfacility-header p {
        font-size: 14px;
    }
}

/* ══════════════════════════════════════════════════════════
   14. JOB CREATE / EDIT WIZARD (stelle anlegen)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Wizard stepper: compact */
    .wizard-step-bar,
    .step-indicators {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .wizard-step-bar .step {
        flex-shrink: 0;
        font-size: 12px;
    }
    /* Wizard step counter */
    .wizard-step-counter {
        font-size: 14px;
        font-weight: 700;
        color: #DE6B3B;
        margin-bottom: 12px;
        display: block;
    }
    /* Benefits list: accordion */
    .benefits-list,
    .benefit-groups {
        max-height: none;
        overflow: visible;
    }
    /* Language / chip rows: wrap */
    .language-chips,
    .chip-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .language-chip,
    .chip {
        min-height: 36px;
        padding: 6px 12px;
        font-size: 13px;
    }
    /* Back/forward wizard buttons */
    .wizard-nav-btns {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 12px 0;
        border-top: 1px solid #eee;
        display: flex;
        gap: 10px;
        z-index: 10;
    }
    .wizard-nav-btns .btn {
        flex: 1;
        min-height: 48px;
        font-size: 15px;
    }
    /* Form sections */
    .job-form-section {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 16px;
    }
}

/* ══════════════════════════════════════════════════════════
   15. BOOKING FLOW (Produktauswahl, Konfiguration, etc.)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Product cards: single column */
    .booking-products-grid,
    .product-select-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    /* Product card */
    .booking-product-card,
    .product-card {
        padding: 20px;
        border-radius: 16px;
    }
    /* Price display */
    .product-price-tag {
        font-size: 28px;
        font-weight: 800;
    }
    /* CTA button */
    .booking-cta-btn,
    .product-select-btn {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }
    /* Membership cards: stack */
    .membership-cards-row,
    .pricing-cards-row {
        flex-direction: column !important;
        gap: 16px;
    }
    .membership-card,
    .pricing-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ══════════════════════════════════════════════════════════
   16. IMAGE CONTAINMENT (Job-Foto, Galerie, Hero, Avatar)
   ══════════════════════════════════════════════════════════ */

/* Job-Foto in sidebar: never break out */
.company-job-photo-preview,
.pm-photo-upload__preview {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Strict: pm-photo-upload__preview always contained */
body.eduro-theme .pm-photo-upload__preview,
body.eduro-theme .pm-photo-upload__preview.visible {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    max-width: 100%;
    position: static;
    left: auto;
    right: auto;
    transform: none;
}

/* company-sidebar-upload-preview: same fix */
.company-sidebar-upload-preview {
    display: block;
    width: 100%;
    height: 140px;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 8px;
    position: static;
    left: auto;
    right: auto;
}

/* Public facility hero image: cover + overlay */
.company-public-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gallery images: always contained */
body.eduro-theme .companyGallery img,
body.eduro-theme .company-gallery img,
body.eduro-theme .facility-gallery img,
.gallery-tile img,
.gallery-thumb {
    width: 100%;
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Global: no image can cause horizontal overflow */
@media (max-width: 767px) {
    img {
        max-width: 100%;
    }
    .upload-prfile-pic img,
    .publicProfile-upload-pic img {
        max-width: 100%;
        height: auto;
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-height: 200px;
        object-fit: cover;
    }
}

/* ══════════════════════════════════════════════════════════
   17. STICKY BUTTONS — MOBILE CTAs
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Floating action button: publish on job detail */
    .mobile-fab-publish {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 500;
        min-height: 52px;
        padding: 14px 22px;
        border-radius: 50px;
        font-size: 15px;
        font-weight: 700;
        box-shadow: 0 4px 20px rgba(222,107,59,0.4);
        background: linear-gradient(135deg,#DE6B3B,#F2943C);
        color: #fff;
        border: none;
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

/* ══════════════════════════════════════════════════════════
   18. MISC MOBILE FIXES
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Select2 dropdowns: full width */
    .select2-dropdown {
        max-width: calc(100vw - 32px) !important;
    }
    /* Notification alerts in profile: full width */
    .header_alert,
    #header_alert {
        max-width: 100%;
        margin: 0 8px;
        border-radius: 12px;
    }
    /* Alerts partial */
    #header_alert {
        position: relative;
        top: auto;
        margin-bottom: 16px;
        font-size: 14px;
    }
    /* Prevent tables in job details from overflowing */
    .job-details-table {
        width: 100%;
        overflow-x: auto;
        display: block;
    }
    /* Pagination: compact */
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }
    .pagination .page-item .page-link {
        min-width: 36px;
        min-height: 36px;
        padding: 6px;
        font-size: 13px;
    }
    /* Dropzone on mobile: tappable */
    .dropzone {
        min-height: 120px;
        padding: 20px;
    }
    /* Progress bar text */
    .profile-progress-bar {
        overflow: hidden;
    }
    /* Tab navs: horizontal scroll */
    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 0;
    }
    .nav-tabs .nav-item {
        flex-shrink: 0;
    }
    .nav-tabs .nav-link {
        white-space: nowrap;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    /* Tooltip: don't overflow on mobile */
    .tooltip {
        max-width: calc(100vw - 32px);
        word-wrap: break-word;
    }
    /* Buttons: minimum touch target */
    .btn {
        min-height: 40px;
    }
    .btn-sm {
        min-height: 36px;
    }
    /* Rating widget: tappable */
    .rating-widget {
        min-height: 44px;
    }
    /* Sidebar profile left menu modern: full width on mobile */
    .profile-left-menu-modern {
        width: 100%;
    }
    /* Collapse toggle button for filter sidebar */
    .eduro-filter-toggle,
    .sidebar-filter-toggle-btn {
        display: none;
        width: 100%;
        min-height: 44px;
        margin-bottom: 12px;
        background: #fff;
        border: 1px solid #DE6B3B;
        border-radius: 10px;
        color: #DE6B3B;
        font-weight: 600;
        font-size: 14px;
        padding: 10px 16px;
        cursor: pointer;
    }
    /* Footer: compact */
    footer {
        padding: 20px 16px;
    }
}

/* ══════════════════════════════════════════════════════════
   19. TABLET ADJUSTMENTS (768px–1023px)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
    .eduro-drawer-overlay,
    .eduro-mobile-drawer {
        display: none !important;
    }
    .eduro-mobile-burger {
        display: none !important;
    }
    /* 2-column grid for job cards */
    .jobs-grid,
    .eduro-jobs-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    /* Applicants: 2 columns */
    .applicants-tiles-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}
