/*
 * Surgeonex — Mobile Responsive Fixes
 * Production-ready. Covers: frontend, patient portal, auth, booking, search,
 * doctor/clinic/service cards, footer, header, shimmer loaders, backend dashboards.
 * All breakpoints use mobile-first cascade overrides.
 */

/* ─── 1. GLOBAL BASE — Prevent horizontal overflow on all pages ─────────── */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure images never overflow their containers */
img {
    max-width: 100%;
    height: auto;
}

/* Tables must scroll on mobile, never cause overflow */
.table-responsive-force {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ─── 2. SHIMMER CARDS — Remove fixed 300px width, make fluid ───────────── */
.doctor-card.doctor-section-card,
.clinics-card.clinic-section-card,
.services-card.shimmer-services-card,
.category-card.category-shimmer-card,
.serach-card.search-shimmer-card {
    width: 100% !important;
    max-width: 340px;
    min-width: 0;
}

/* Shimmer loader grid — responsive flex wrap */
#shimmer-loader {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

#shimmer-loader > * {
    flex: 1 1 260px;
    max-width: 340px;
    min-width: 0;
    width: auto !important;
}

@media (max-width: 575px) {
    #shimmer-loader > * {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .doctor-card.doctor-section-card,
    .clinics-card.clinic-section-card,
    .services-card.shimmer-services-card,
    .category-card.category-shimmer-card,
    .serach-card.search-shimmer-card {
        max-width: 100%;
    }
}

/* ─── 3. HEADER — Mobile nav overflow & toggler ─────────────────────────── */

/* Ensure floating header doesn't overflow on small screens */
.header-center-home .navbar-inner {
    flex-wrap: nowrap;
    overflow: visible;
}

/* Offcanvas mobile nav panel — full height, scrollable */
@media (max-width: 1199.98px) {
    .sx-interface.frontend-surgeonex .header-center-home {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    /* Keep logo and hamburger aligned */
    .header-center-home .landing-header {
        gap: 8px;
    }

    .header-center-home .landing-header-brand {
        min-width: 0;
        flex-shrink: 0;
    }

    /* Prevent account/login links from overflowing */
    .right-panel {
        min-width: 0;
    }

    /* Collapsible right panel on mobile */
    .right-panel .collapse.navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--sx-surface, #fff);
        border-top: 1px solid var(--sx-line, #e5e5e5);
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        box-shadow: 0 12px 32px rgba(0,0,0,0.12);
        padding: 12px 16px 16px;
        z-index: 1050;
    }
}

@media (max-width: 575px) {
    /* Header padding tighter on small phones */
    .header-center-home .navbar-inner {
        padding-inline: 12px;
    }

    /* Logo size reduction */
    .header-center-home .navbar-brand img,
    .header-center-home .sx-brand-logo {
        max-height: 36px;
    }
}

/* ─── 4. FRONTEND HERO / HOME PAGE ──────────────────────────────────────── */

@media (max-width: 991.98px) {
    /* Hero grid: stack on tablet */
    .surgeonex-v2-hero {
        grid-template-columns: 1fr !important;
    }

    .surgeonex-v2-hero .main-banner {
        min-height: 320px;
    }

    /* Hero heading scale */
    .surgeonex-v2-copy h1,
    .sx-hero-heading {
        font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    }
}

@media (max-width: 575px) {
    .surgeonex-v2-hero .main-banner {
        min-height: 220px;
        border-radius: 20px !important;
    }

    /* Booking panel full-width */
    .sx-home-booking-section .row > [class*="col-"] {
        padding-inline: 0;
    }

    /* Stats / counters stack */
    .sx-trust-stats,
    .sx-platform-counters {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
}

/* ─── 5. DIRECTORY PAGES (Doctors / Clinics / Services) ─────────────────── */

/* Filter bar wraps properly on mobile */
.sx-directory-filters {
    gap: 10px;
}

@media (max-width: 767px) {
    .sx-directory-filters {
        grid-template-columns: 1fr !important;
    }

    .sx-directory-filter {
        width: 100%;
    }

    /* Directory title */
    .surgeonex-directory-head h1.surgeonex-directory-title {
        font-size: 1.6rem;
    }

    /* Results grid — single column on mobile */
    .sx-catalog-results td {
        display: block;
        width: 100%;
    }
}

/* ─── 6. DOCTOR DETAIL PAGE ─────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    /* Sidebar shifts below main content */
    .doctor-detail-layout .col-lg-4 {
        margin-top: 24px;
    }

    /* Doctor profile header stacks */
    .sx-doctor-profile-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 575px) {
    /* Availability table scrollable */
    .sx-availability-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Procedure/location accordion cards full-width */
    .sx-procedure-locations {
        padding-inline: 0;
    }

    /* CTA buttons stack */
    .sx-doctor-cta-row {
        flex-direction: column;
        gap: 10px;
    }

    .sx-doctor-cta-row .btn {
        width: 100%;
    }
}

/* ─── 7. HOSPITAL (CLINIC) DETAIL PAGE ──────────────────────────────────── */

@media (max-width: 767px) {
    /* Metric cards: 2-column on mobile */
    .sx-hospital-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    /* Work panels stack */
    .sx-hospital-work-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .sx-hospital-work-panel {
        padding: 16px;
    }

    /* Gallery images stay contained */
    .sx-hospital-gallery img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
    }
}

/* ─── 8. BOOKING PAGE ───────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    /* Booking sidebar below main on tablet */
    .surgeonex-booking-page .col-lg-8,
    .surgeonex-booking-page .col-lg-4 {
        width: 100%;
    }

    .surgeonex-booking-page .col-lg-4 {
        margin-top: 24px;
    }
}

@media (max-width: 575px) {
    /* Step wizard horizontal scrollable */
    .appointments-steps-list {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .appointments-steps-list::-webkit-scrollbar {
        display: none;
    }

    .appointments-steps-item {
        flex: 0 0 auto;
    }

    /* Step text truncate on small screens */
    .appointments-steps-item .step-text {
        font-size: 0.72rem;
        max-width: 70px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Summary cards stack vertically */
    .surgeonex-booking-page .row.gy-3 > [class*="col-"] {
        width: 100% !important;
    }

    /* Calendar / slot picker */
    .sx-booking-shell .fc {
        font-size: 0.8rem;
    }

    /* Payment icons */
    .payment-method-img {
        width: 32px !important;
        height: auto !important;
    }
}

/* ─── 9. SEARCH PAGE ────────────────────────────────────────────────────── */

@media (max-width: 575px) {
    /* Search shimmer card fluid */
    #shimmer-loader .serach-card,
    .search-shimmer-card {
        width: 100% !important;
        max-width: 100%;
    }

    /* Search input full width */
    .sx-search-shell .custom-search-group {
        border-radius: 14px;
    }

    /* No-result layout stack */
    #no_result .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    #no_result img {
        max-width: 180px;
    }
}

/* ─── 10. PATIENT PORTAL (Sidebar nav + content) ─────────────────────────── */

@media (max-width: 991.98px) {
    /* Portal grid: stacked, nav on top */
    .sx-patient-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
    }

    /* Side nav becomes horizontal scrollable tabs */
    .sx-patient-nav {
        display: flex;
        flex-direction: row !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding: 10px 12px;
        background: var(--sx-surface, #fff);
        border-bottom: 1px solid var(--sx-line, #e5e5e5);
        border-radius: 0;
        scrollbar-width: none;
        position: sticky;
        top: 70px;
        z-index: 100;
    }

    .sx-patient-nav::-webkit-scrollbar {
        display: none;
    }

    .sx-patient-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 40px;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 0.82rem;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Nav icons — hide label on very small, show icon */
    .sx-patient-content {
        padding: 16px;
    }
}

@media (max-width: 575px) {
    .sx-patient-nav a span {
        display: inline-block !important; /* Keep readable text label */
        font-size: 0.78rem;
    }

    .sx-patient-nav a {
        padding: 10px 14px;
        min-width: 44px;
        justify-content: center;
    }

    .sx-patient-nav a i {
        font-size: 1.1rem;
    }

    /* Patient heading */
    .sx-patient-heading h1 {
        font-size: 1.4rem;
    }

    .sx-patient-portal {
        padding-top: 0;
    }
}

/* ─── 11. APPOINTMENT CARDS ──────────────────────────────────────────────── */

@media (max-width: 575px) {
    /* Appointment card action buttons stack */
    .appointments-card .d-flex.gap-3 {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .appointments-card .btn {
        flex: 1 1 auto;
        min-width: 100px;
        font-size: 0.8rem;
    }

    /* Doctor avatar in card */
    .appointments-card .doctor-avatar {
        width: 36px !important;
        height: 36px !important;
    }
}

/* ─── 12. AUTH PAGES (Login / Register / Forgot Password) ───────────────── */

/* Auth layout: side panel + form */
@media (max-width: 991.98px) {
    .sx-access-layout {
        flex-direction: column !important;
        min-height: 100vh;
    }

    /* Side intro panel hides on mobile, full form */
    .sx-access-layout [class*="sx-access-intro"],
    .sx-access-layout .sx-access-panel {
        display: none !important;
    }

    .sx-access-form {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh;
        padding: 24px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    /* Login form card full width */
    .auth-container .col-xl-4,
    .auth-container .col-lg-5,
    .auth-container .col-md-6 {
        width: 100% !important;
        max-width: 100%;
        padding-inline: 8px;
    }

    .auth-card {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        font-size: 0.85rem;
    }

    /* Btn full width on mobile */
    .auth-card .btn[type="submit"] {
        width: 100%;
    }

    /* Remember/forgot row wraps */
    .auth-card .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Staff / admin login (/admin/login) */
@media (max-width: 575px) {
    .sx-staff-auth .sx-access-form {
        padding: 16px;
    }

    .sx-staff-auth .sx-access-form .card,
    .sx-staff-auth .sx-access-form form {
        width: 100%;
        max-width: 100%;
    }

    .sx-staff-auth .sx-access-form button[type="submit"] {
        width: 100%;
    }
}

/* ─── 13. FOOTER — Mobile & Responsive Refinement (max-width: 767px) ────── */
@media (max-width: 767.98px) {
    /* Each navigation group gets a compact two-column list on phones. */
    .sx-interface.frontend-surgeonex .sx-site-footer {
        border-radius: 24px 24px 0 0;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    .sx-site-footer .sx-footer-wrap { padding-inline: 20px; }
    .sx-site-footer .sx-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding-block: 32px 24px;
    }
    .sx-site-footer :is(.sx-footer-about, .sx-footer-group) { grid-column: 1 / -1; text-align: start; }
    .sx-site-footer .sx-footer-brand { font-size: 26px; }
    .sx-site-footer .sx-footer-about p { font-size: 14px; line-height: 1.65; }
    .sx-site-footer .sx-footer-group ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 18px;
        align-items: start;
    }
    .sx-site-footer .sx-footer-group a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding-block: 8px;
        font-size: 13px;
        line-height: 1.5;
    }
    .sx-site-footer .sx-footer-contact a { font-size: 13px; }
    .sx-site-footer .sx-footer-baseline {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
        gap: 16px;
        padding-block: 20px 0;
    }
    .sx-site-footer .sx-footer-baseline small { font-size: 12px; line-height: 1.6; }
    .sx-site-footer .sx-footer-social { justify-content: flex-start; gap: 10px; }

    /* Backend Footer: ensure sticky footer doesn't block screen on mobile */
    .footer.sticky {
        position: static !important;
    }
    .footer .footer-body {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
        padding: 12px 16px !important;
    }
}

/* ─── 14. BLOG CARDS ────────────────────────────────────────────────────── */

@media (max-width: 575px) {
    /* Blog image fixed height → auto */
    .blog-img {
        height: 200px !important;
        border-radius: 14px 14px 0 0;
        overflow: hidden;
    }

    .blog-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ─── 15. DOCTOR DETAIL — PROFILE STICKY SIDEBAR ────────────────────────── */

@media (max-width: 991.98px) {
    /* Profile sticky sidebar: un-stick on mobile */
    .sx-doctor-profile-sidebar {
        position: static !important;
        top: auto !important;
    }
}

/* ─── 16. INTERNATIONAL PATIENTS PAGE ────────────────────────────────────── */

@media (max-width: 767px) {
    .international-patients-page .row > [class*="col-"] {
        margin-bottom: 20px;
    }

    /* Hero image overflow */
    .international-patients-hero {
        overflow: hidden;
        border-radius: 20px;
    }
}

/* ─── 17. BACKEND DASHBOARDS (Doctor / Vendor / Receptionist / Admin) ────── */

/* Sidebar auto-collapses, only show on larger screens */
@media (max-width: 1199.98px) {
    /* Sidebar hidden, toggled by offcanvas */
    .sx-workspace .iq-navbar .product-offcanvas {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* Dashboard stats cards: 2-col grid */
    .sx-workspace .iq-top-navbar,
    .sx-workspace .content-inner {
        padding-inline: 12px;
    }

    /* Widget/stat cards wrap */
    .sx-workspace .row-cols-md-4 {
        --bs-columns: 2;
    }

    /* DataTable horizontal scroll */
    .sx-workspace .table-responsive,
    .sx-workspace .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* FullCalendar on mobile */
    .sx-workspace .fc .fc-toolbar {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .sx-workspace .fc .fc-toolbar-chunk {
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .sx-workspace .fc .fc-button {
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    /* Dashboard intro banner */
    .sx-interface.sx-workspace .sx-dashboard-intro {
        border-radius: 20px;
        padding: 20px;
    }
}

@media (max-width: 575px) {
    /* Vendor dashboard metrics */
    .sx-hospital-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .sx-hospital-metrics article {
        padding: 12px;
    }

    /* Care shortcuts */
    .sx-care-shortcuts {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 14px 0;
    }

    .sx-care-shortcuts a {
        padding: 12px;
    }

    /* Account setting buttons */
    .sx-account-shell .account-setting-btn {
        flex: 1 1 140px;
    }
}

/* ─── 18. FORMS — Full-width inputs on mobile ───────────────────────────── */

@media (max-width: 575px) {
    /* All selects and inputs full width */
    .sx-interface .form-select,
    .sx-interface .form-control {
        font-size: 16px; /* Prevent iOS zoom on input focus */
    }

    /* Date pickers */
    input[type="date"],
    input[type="time"] {
        font-size: 16px;
    }

    /* Stacked form rows */
    .sx-interface .row.g-3 > [class*="col-sm-"],
    .sx-interface .row.g-3 > [class*="col-md-"] {
        width: 100%;
    }
}

/* ─── 19. MODALS — Full-screen on mobile ────────────────────────────────── */

@media (max-width: 575px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
        min-height: 100%;
    }

    .modal-content {
        border-radius: 20px 20px 0 0;
        min-height: 60vh;
    }

    /* Slide-up style */
    .modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .modal.show .modal-dialog {
        transform: translateY(0);
    }
}

/* ─── 20. TOAST / SNACKBAR ──────────────────────────────────────────────── */

@media (max-width: 575px) {
    .snackbar {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

/* ─── 21. BACK TO TOP BUTTON ────────────────────────────────────────────── */

@media (max-width: 575px) {
    #back-to-top {
        bottom: 16px !important;
        right: 16px !important;
    }

    #back-to-top .btn {
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
}

/* ─── 22. HORIZONTAL SCROLL — REVIEW / TESTIMONIALS ─────────────────────── */

@media (max-width: 767px) {
    /* Testimonials horizontal swipe */
    .sx-testimonial-row,
    .sx-review-row {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        scrollbar-width: none;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .sx-testimonial-row::-webkit-scrollbar,
    .sx-review-row::-webkit-scrollbar {
        display: none;
    }

    .sx-testimonial-row > *,
    .sx-review-row > * {
        flex: 0 0 280px;
    }
}

/* ─── 23. AI CHATBOT BUTTON — Safe area on mobile ───────────────────────── */

@media (max-width: 575px) {
    .sx-ai-chatbot {
        bottom: 16px !important;
        right: 16px !important;
    }

    /* Avoid overlap with back-to-top */
    .sx-ai-chatbot__toggle {
        width: 50px;
        height: 50px;
    }
}

/* ─── 24. ABOUT US / CONTACT US PAGE ────────────────────────────────────── */

@media (max-width: 767px) {
    .about-team-grid,
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
}

@media (max-width: 479px) {
    .about-team-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── 25. PAGE INTRO / BREADCRUMB ───────────────────────────────────────── */

@media (max-width: 575px) {
    .sx-page-intro,
    .public-page-intro {
        padding-block: 24px;
    }

    .sx-page-intro h1,
    .public-page-intro h1 {
        font-size: 1.4rem;
    }

    /* Breadcrumb wraps */
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.8rem;
    }
}

/* ─── 26. SELECT2 DROPDOWNS — Mobile fix ────────────────────────────────── */

@media (max-width: 575px) {
    .select2-container {
        width: 100% !important;
    }

    .select2-dropdown {
        font-size: 15px;
    }
}

/* ─── 27. INVOICE PAGE — Print-safe + mobile ────────────────────────────── */

@media (max-width: 767px) {
    .frontend_invoice,
    .invoice-page {
        padding: 12px !important;
    }

    .frontend_invoice table {
        font-size: 0.8rem;
    }

    /* Scroll invoice table */
    .frontend_invoice .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ─── 28. SAFE AREA INSETS (iPhone notch / home bar) ────────────────────── */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sx-patient-nav {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

/* ─── 29. FOCUS RING IMPROVEMENTS FOR TOUCH ─────────────────────────────── */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .sx-interface.frontend-surgeonex :is(.sx-doctor-card, .sx-specialty-card, .sx-procedure-card, .sx-hospital-card):hover {
        transform: none !important;
        border-color: var(--sx-line) !important;
    }

    /* Larger tap targets */
    .sx-patient-nav a,
    .sx-care-shortcuts a {
        min-height: 48px;
    }

    /* Button tap targets */
    .btn {
        min-height: 44px;
    }
}

/* ─── 30. TYPOGRAPHY SCALE — Fluid on mobile ────────────────────────────── */

@media (max-width: 575px) {
    /* Prevent text overflow */
    p, h1, h2, h3, h4, h5, h6 {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Section headings scale down */
    .sx-interface.frontend-surgeonex h2.section-heading,
    .sx-interface.frontend-surgeonex .sx-section-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }
}


/* ─── 31. PROFILE ALIGNMENT & COLOR HARMONIZATION ───────────────────────── */
/* Patient Profile (Frontend) */
.sx-profile-edit-shell {
    padding-inline: 0 !important;
}
.profile-box {
    padding: 24px 16px !important;
    text-align: center;
    border-radius: 20px !important;
}
.profile-box #profileImage {
    box-shadow: 0 4px 14px rgba(16, 60, 50, 0.12);
    border: 3px solid #ffffff;
}
.personal-info-container {
    padding: 28px !important;
    border-radius: 20px !important;
}
.sx-profile-edit-btn {
    background: var(--sx-tint, #e3efdf) !important;
    border: 1px solid var(--sx-line, #d6e1d6) !important;
    color: var(--sx-action, #17604e) !important;
    padding: 6px 14px !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.sx-profile-edit-btn:hover {
    background: var(--sx-action, #17604e) !important;
    color: #ffffff !important;
}
.personal-info-container .info-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sx-secondary-text, #485e54);
    margin-bottom: 4px;
}
.personal-info-container .info-value {
    font-size: 1rem;
    color: var(--sx-text, #152e27);
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 991.98px) {
    .sx-profile-edit-shell .row {
        margin-inline: 0 !important;
    }
    .sx-profile-edit-shell [class*="col-"] {
        padding-inline: 0 !important;
    }
    .personal-info-container {
        padding: 20px 16px !important;
    }
    .personal-info-container .row > [class*="col-"] {
        margin-bottom: 12px;
    }
}

/* Backend User & Doctor Profile Dropdown */
.iq-navbar .dropdown-menu .dropdown-header {
    background: #edf1e7 !important;
    color: #103c32 !important;
}
.iq-navbar .dropdown-menu .dropdown-header h6,
.iq-navbar .dropdown-menu .dropdown-header small {
    color: #103c32 !important;
}
@media (max-width: 767.98px) {
    .iq-navbar .dropdown-menu-end {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        min-width: 260px !important;
        max-width: calc(100vw - 32px) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    }
}
