/* ═══════════════════════════════════════════════════════════════════════════
   ARKASYANET CRM — CORE MOBILE & TABLET CSS ARCHITECTURE
   Version: 20261115_v1
   Targets: Viewports < 991.98px (Mobile & Tablet) and < 768px (Phone)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --crm-bottom-height: 60px;
    --crm-header-height: 52px;
    --crm-safe-bottom: env(safe-area-inset-bottom, 0px);
    --crm-safe-top: env(safe-area-inset-top, 0px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   1. APP SHELL & HEADER COMPACTION (< 991.98px)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {

    /* Hide desktop subnav row entirely */
    .crm-subnav-row {
        display: none !important;
    }

    /* Compact 52px header elements */
    .crm-pulse-tag {
        display: none !important;
    }

    .crm-btn-admin-switch {
        display: none !important;
    }

    .crm-btn-logout {
        display: none !important;
    }

    .crm-user-name,
    .crm-profil-tag {
        display: none !important;
    }

    /* User avatar chip becomes a 36x36px circle */
    .crm-user-chip {
        padding: 0 !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .crm-user-chip .crm-role-badge {
        display: none !important;
    }

    .crm-user-avatar {
        width: 32px !important;
        height: 32px !important;
    }

    /* Feedback button becomes 36x36px circular trigger */
    .crm-feedback-btn span {
        display: none !important;
    }

    .crm-feedback-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 50% !important;
    }

    /* Viewport bottom padding offset for fixed bottom nav bar */
    .crm-main-viewport,
    .crm-main-viewport>.crm,
    .crm-main-viewport>.pp-container,
    .crm-main-viewport>.crm-page {
        padding-bottom: calc(var(--crm-bottom-height) + env(safe-area-inset-bottom, 0px) + 16px) !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. 5-SLOT BOTTOM NAVIGATION BAR
   ───────────────────────────────────────────────────────────────────────────── */
.crm-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--crm-bottom-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 1200;
    background: rgba(9, 13, 22, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
    user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 992px) {
    .crm-mobile-bottom-nav {
        display: none !important;
    }
}

.crm-bottom-tab {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    background: transparent;
    border: none;
    min-height: 44px;
    cursor: pointer;
    transition: color .15s ease, transform .1s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.crm-bottom-tab i {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform .15s ease;
}

.crm-bottom-tab:hover {
    color: #f8fafc;
}

.crm-bottom-tab:active {
    transform: scale(0.94);
}

.crm-bottom-tab.active {
    color: #38bdf8;
}

.crm-bottom-tab.active i {
    transform: scale(1.12);
}

.crm-bottom-tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2.5px;
    background: #38bdf8;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.85);
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. AUTO-HIDE BOTTOM NAVIGATION ON CONFLICTS
   ───────────────────────────────────────────────────────────────────────────── */
body:has(.online-sahne-bar-kap) .crm-mobile-bottom-nav,
body:has(.lr-map-fullscreen) .crm-mobile-bottom-nav,
body.crm-hide-bottom-nav .crm-mobile-bottom-nav,
body:has(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="range"]):not([type="color"]):focus, textarea:focus, [contenteditable="true"]:focus) .crm-mobile-bottom-nav {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. APP LAUNCHER DRAWER (BOTTOM SHEET MODAL)
   ───────────────────────────────────────────────────────────────────────────── */
.crm-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1990;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: crmFadeIn .2s ease-out;
}

.crm-mobile-drawer {
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(180deg, #111928 0%, #0b1220 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 22px 22px 0 0;
    max-height: 88dvh;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -16px 45px rgba(0, 0, 0, 0.88);
    z-index: 2000;
    animation: crmSlideUp .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.crm-drawer-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 2px;
    margin: 4px auto 14px;
}

.crm-drawer-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    text-decoration: none;
    color: inherit;
    transition: background-color .15s ease;
}

.crm-drawer-user-card:active {
    background: rgba(30, 41, 59, 0.9);
}

.crm-drawer-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #38bdf8;
    flex-shrink: 0;
}

.crm-drawer-user-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.crm-drawer-user-info {
    flex: 1;
    min-width: 0;
}

.crm-drawer-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-drawer-user-role {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.crm-drawer-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 700;
    margin: 14px 4px 8px;
}

.crm-drawer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.crm-drawer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 10px 4px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    min-height: 68px;
    transition: all .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.crm-drawer-item i {
    font-size: 1.35rem;
    line-height: 1;
}

.crm-drawer-item:hover {
    color: #fff;
    background: rgba(30, 41, 59, 0.7);
}

.crm-drawer-item:active {
    transform: scale(0.96);
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. UNIVERSAL BOTTOM SHEET MODALS (< 768px)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Hidden-state guard: never override inline display:none, .d-none, or closed .modal */
    #confirmModal[style*="display: none"],
    #confirmModal[style*="display:none"],
    .admin-modal-backdrop[style*="display: none"],
    .admin-modal-backdrop[style*="display:none"],
    .d-none,
    .modal:not(.show):not(.d-block) {
        display: none !important;
    }

    /* Modal Backdrops / Overlays */
    .admin-modal-backdrop,
    .fm-modal-arka,
    .km-modal-backdrop,
    .crm-pv2-modal-backdrop,
    .crm-pms-modal-backdrop,
    .imk-modal-backdrop,
    .profil-modal-backdrop,
    .modal-backdrop-hayalet,
    .pm-modal-backdrop,
    .mh-modal-backdrop,
    .crm-fb-backdrop,
    #confirmModal.admin-modal-backdrop {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        z-index: 2000 !important;
    }

    /* Modal Bodies / Dialog Content Boxes */
    .admin-modal,
    .fm-modal,
    .km-modal-dialog,
    .km-modal-content,
    .crm-pv2-modal-content,
    .crm-pms-modal-content,
    .imk-modal-box,
    .profil-modal-kart,
    .modal-kutu-hayalet,
    .pm-modal,
    .mh-modal,
    .crm-fb-modal {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 90dvh !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.75) !important;
    }

    /* Top Drag Handle Indicator Pill */
    .admin-modal::before,
    .fm-modal::before,
    .km-modal-content::before,
    .crm-pv2-modal-content::before,
    .crm-pms-modal-content::before,
    .imk-modal-box::before,
    .profil-modal-kart::before,
    .pm-modal::before,
    .mh-modal::before,
    .crm-fb-modal::before {
        content: '';
        display: block;
        width: 38px;
        height: 4px;
        background: rgba(255, 255, 255, 0.28);
        border-radius: 2px;
        margin: 6px auto 14px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. TOAST RELOCATION TO TOP (< 768px)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    html body .imk-alert,
    html body .bulten-toast,
    html body .crm-toast-fixed,
    html body [data-crm-toast="1"],
    html body .crm-pv2-toast-container,
    html body .crm-pms-toast-container,
    .imk-alert,
    .bulten-toast,
    .crm-toast-fixed,
    [data-crm-toast="1"],
    .crm-pv2-toast-container,
    .crm-pms-toast-container {
        position: fixed !important;
        top: calc(56px + env(safe-area-inset-top, 0px)) !important;
        bottom: auto !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        border-radius: 12px !important;
        z-index: 999999 !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. 16PX INPUT ANTI-ZOOM & 44PX TOUCH TARGETS (< 768px)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Prevent iOS Safari auto-zooming on focus when font-size < 16px */
    input,
    select,
    textarea,
    .form-control,
    .form-select,
    .crm-girdi,
    .pp-input,
    .fm-input,
    .km-form-control,
    .imk-input {
        font-size: 16px !important;
    }

    /* Minimum 44px touch targets for mobile accessibility */
    button,
    .btn,
    .crm-btn,
    .pp-action-icon,
    .crm-subnav-link,
    a.btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. CONTEXTUAL MOBILE BACK BAR
   ───────────────────────────────────────────────────────────────────────────── */
.crm-mobile-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 12px;
    border-radius: 10px;
}

.crm-mobile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #38bdf8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.1);
    min-height: 38px;
    min-width: 44px;
}

.crm-mobile-back-btn:active {
    background: rgba(56, 189, 248, 0.22);
}

.crm-mobile-bar-title {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. KEYFRAME ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes crmSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes crmFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MILESTONE 2: CORE DAILY OPERATIONS, PORTFOLIOS & MEETINGS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   M2.1 DAILY OPERATIONS & QUICK ACTIONS (CrmBugun.razor)
   ───────────────────────────────────────────────────────────────────────────── */
.crm-quick-actions {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 10px;
    margin-bottom: 12px;
    scrollbar-width: none;
}

.crm-quick-actions::-webkit-scrollbar {
    display: none;
}

.crm-qa-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    min-height: 40px;
    transition: all .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.crm-qa-pill:hover,
.crm-qa-pill:focus {
    color: #fff;
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
}

.crm-qa-pill:active {
    transform: scale(0.96);
    background: rgba(56, 189, 248, 0.3);
}

@media (max-width: 767.98px) {
    .crm-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .crm-kpi>a,
    .crm-kpi>div {
        padding: 10px 8px !important;
        min-width: 0 !important;
    }

    .crm-kpi .sayi {
        font-size: clamp(1.2rem, 5vw, 1.65rem) !important;
        line-height: 1.15 !important;
        word-break: break-all;
    }

    .crm-kpi .etiket {
        font-size: 11px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M2.2 COMMUNICATION PULSE (CrmBugunIletisimNabzi.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .nabiz-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .nabiz-channel-pills {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    .nabiz-table thead {
        display: none !important;
    }

    .nabiz-table,
    .nabiz-table tbody,
    .nabiz-row {
        display: block !important;
        width: 100% !important;
    }

    .nabiz-row {
        background: linear-gradient(180deg, #111a30 0%, #0d1527 100%) !important;
        border: 1px solid rgba(148, 163, 255, 0.16) !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
        padding: 12px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    }

    .nabiz-row td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 4px 0 !important;
        border: none !important;
    }

    .nabiz-row td:first-child {
        display: block !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-bottom: 8px !important;
        margin-bottom: 6px !important;
    }

    .nabiz-row td.text-end {
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        justify-content: flex-end !important;
    }

    .nabiz-actions {
        display: flex !important;
        gap: 8px !important;
    }

    .nabiz-actions .nabiz-icon-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 10px !important;
        font-size: 1.15rem !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M2.3 PERFORMANCE DESK (CrmPerformans.razor)
   ───────────────────────────────────────────────────────────────────────────── */
.crm-perf-kpi {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 639.98px) {

    .crm-perf-kpi,
    .crm-kpi.crm-perf-kpi,
    .crm-card .crm-kpi[style*="repeat(3"] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .crm-perf-kpi>div,
    .crm-kpi.crm-perf-kpi>div {
        padding: 8px 4px !important;
        text-align: center !important;
    }

    .crm-perf-kpi .sayi,
    .crm-kpi.crm-perf-kpi .sayi {
        font-size: clamp(0.95rem, 3.8vw, 1.25rem) !important;
    }

    .crm-perf-kpi .etiket,
    .crm-kpi.crm-perf-kpi .etiket {
        font-size: 10px !important;
        letter-spacing: 0 !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M2.4 TASK LIST MOBILE CARDS (CrmGorevListe.razor)
   ───────────────────────────────────────────────────────────────────────────── */
.crm-task-filter {
    width: auto;
    min-width: 140px;
    padding: 6px 10px;
}

.crm-task-card {
    transition: transform .15s ease, border-color .15s ease;
}

.crm-task-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.crm-task-check-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crm-task-check {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #38bdf8;
}

.crm-task-title-link {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.crm-task-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crm-task-title {
    font-size: 1.05rem;
    color: #f8fafc;
    word-break: break-word;
}

.crm-task-title.completed {
    text-decoration: line-through;
    opacity: 0.65;
}

.crm-task-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.crm-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.crm-task-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.crm-task-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.crm-task-del-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.crm-task-btn {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    font-size: 13px !important;
}

@media (max-width: 767.98px) {
    .crm-task-filter {
        width: 100% !important;
        min-width: 0 !important;
    }

    .crm-task-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .crm-task-btns {
        width: 100%;
    }

    .crm-task-btns .crm-task-btn {
        flex: 1 1 auto;
    }

    .crm-task-del-wrap {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M2.5 MOBILE CUSTOMER CARD PATTERN & PORTFOLIO (CrmPortfoy.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Header & Action Bar */
    .pp-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .pp-header-actions {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding-bottom: 6px !important;
        scrollbar-width: none;
    }

    .pp-header-actions::-webkit-scrollbar {
        display: none;
    }

    .pp-header-actions>* {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* Stats Strip */
    .pp-stats {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        scrollbar-width: none;
    }

    .pp-stats::-webkit-scrollbar {
        display: none;
    }

    .pp-stat {
        flex-shrink: 0 !important;
        min-width: 90px !important;
    }

    /* Toolbar / Search */
    .pp-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .pp-search-wrap,
    .pp-search-wrap.kisa {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .pp-bar>.pp-fbtn,
    .pp-bar>.pp-fwrap {
        width: 100% !important;
    }

    .pp-bar>.pp-fwrap .pp-fbtn {
        width: 100% !important;
        justify-content: space-between !important;
    }

    /* 1. Hide Desktop Table Header */
    .pp-table thead {
        display: none !important;
    }

    .pp-table,
    .pp-table tbody,
    .pp-table tr.pp-tr {
        display: block !important;
        width: 100% !important;
    }

    /* 2. Customer Row Card */
    .pp-table tr.pp-tr {
        background: linear-gradient(180deg, #111a30 0%, #0d1527 100%) !important;
        border: 1px solid rgba(148, 163, 255, 0.16) !important;
        border-radius: 16px !important;
        margin-bottom: 12px !important;
        padding: 14px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
        position: relative !important;
    }

    .pp-table tr.pp-tr.pp-tr-acik {
        border-color: rgba(56, 189, 248, 0.45) !important;
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.15) !important;
    }

    /* Checkbox at top right */
    .pp-table td.pp-td-check {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 5 !important;
        padding: 0 !important;
        border: none !important;
    }

    .pp-table td.pp-td-check input[type=checkbox] {
        width: 22px !important;
        height: 22px !important;
        accent-color: #38bdf8 !important;
    }

    /* Name & Avatar */
    .pp-table td.pp-td-name {
        display: block !important;
        padding: 0 44px 10px 0 !important;
        border: none !important;
        width: 100% !important;
    }

    .pp-name-text {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: #f8fafc !important;
    }

    /* Compact 2x2 Metric Block */
    .pp-table td.pp-td-city,
    .pp-table td.pp-td-rep,
    .pp-table td.pp-td-c,
    .pp-table td.pp-td-r,
    .pp-table td:nth-child(6),
    .pp-table td:nth-child(11) {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: none !important;
        margin: 2px 4px 2px 0 !important;
        vertical-align: middle !important;
    }

    /* 44px Touch Action Bar */
    .pp-table td.pp-td-action-btns {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 0 0 0 !important;
        margin-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        width: 100% !important;
        border-bottom: none !important;
    }

    .pp-table .pp-row-actions {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .pp-table .pp-action-icon {
        flex: 1 1 0 !important;
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.15rem !important;
    }

    /* Accordion Expanded Row */
    .pp-table tr.pp-xp-tr {
        display: block !important;
        width: 100% !important;
        border: none !important;
        margin-top: -6px !important;
        margin-bottom: 12px !important;
        padding: 0 !important;
    }

    .pp-table tr.pp-xp-tr td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }

    .pp-xp {
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    /* Google Harita Mode */
    .lr-map-brand-capsule {
        display: none !important;
    }

    .lr-floating-search-bar {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        left: 10px !important;
        right: 10px !important;
        top: 10px !important;
        transform: none !important;
    }

    .lr-map-layer-switcher {
        top: 60px !important;
        right: 10px !important;
        z-index: 1000 !important;
    }

    .lr-google-drawer {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 60dvh !important;
        border-radius: 20px 20px 0 0 !important;
        border-right: 0 !important;
        border-top: 1px solid rgba(6, 182, 212, 0.4) !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85) !important;
        animation: lr-sheet-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 1300 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@keyframes lr-sheet-slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M2.6 CUSTOMER DETAIL STICKY ACTIONS & TABS (CrmMusteriKart.razor)
   ───────────────────────────────────────────────────────────────────────────── */
.crm-kart-bottom-bar {
    display: none;
}

@media (max-width: 767.98px) {
    .crm-kart-bottom-bar {
        position: fixed !important;
        bottom: calc(var(--crm-bottom-height) + env(safe-area-inset-bottom, 0px)) !important;
        left: 0 !important;
        right: 0 !important;
        height: 54px !important;
        background: rgba(9, 13, 22, 0.96) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border-top: 1px solid rgba(56, 189, 248, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        z-index: 1100 !important;
        padding: 0 8px !important;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5) !important;
    }

    .crm-kbb-btn {
        flex: 1 1 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        color: #cbd5e1 !important;
        text-decoration: none !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        min-height: 44px !important;
        transition: transform .1s ease, color .15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .crm-kbb-btn:active {
        transform: scale(0.94) !important;
    }

    .crm-kbb-btn i {
        font-size: 1.15rem !important;
        line-height: 1 !important;
    }

    .crm-kbb-btn.tel {
        color: #34d399 !important;
    }

    .crm-kbb-btn.wp {
        color: #22c55e !important;
    }

    .crm-kbb-btn.mail {
        color: #38bdf8 !important;
    }

    .crm-kbb-btn.not {
        color: #f59e0b !important;
    }

    /* Responsive KPI Bar on Customer Card */
    .pp-kpi-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    .pp-kpi-bar .pp-kpi-card:last-child {
        grid-column: 1 / -1 !important;
    }

    .pp-kpi-value {
        font-size: clamp(1rem, 4.2vw, 1.25rem) !important;
    }

    /* Scroll-snap tabs */
    .pp-tabs-bar {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        flex-wrap: nowrap !important;
        scrollbar-width: none;
    }

    .pp-tabs-bar::-webkit-scrollbar {
        display: none;
    }

    .pp-tab-btn {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        white-space: nowrap !important;
        min-height: 44px !important;
        padding: 8px 14px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M2.7 CUSTOMER DESK IN-ROW (CrmMusteriMasa.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .mm-tabs {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        scrollbar-width: none;
    }

    .mm-tabs::-webkit-scrollbar {
        display: none;
    }

    .mm-tab {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        white-space: nowrap !important;
        min-height: 44px !important;
        padding: 9px 12px !important;
    }

    .mm-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .mm-info {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .mm-eylem {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .mm-btn {
        width: 100% !important;
        min-height: 44px !important;
        justify-content: center !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M2.8 MEETING LIST & LIVE HUD (CrmGorusmeler.razor & CrmGorusmeIzle.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .cgx-row {
        padding: 12px !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
    }

    .cgx-actions {
        grid-column: 1 / -1 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        opacity: 1 !important;
        transform: none !important;
        gap: 8px !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .cg-action-btn {
        flex: 1 1 0 !important;
        min-height: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.15rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MILESTONE 3: POLICIES, SALES WIZARD, LEADS & MAP OVERLAYS
   Targets: Viewports < 991.98px (Tablets) and < 768px (Mobile 360px-430px)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   M3.1 POLICE V2 & POLICE MASASI (PoliceV2Sayfasi.razor & PoliceMasasiSayfasi.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Container Padding */
    .crm-pv2-container,
    .crm-pms-container {
        padding: 12px 10px !important;
    }

    /* 5-Step Stepper Compact Scrollable Strip */
    .crm-pv2-stepper {
        padding: 8px 10px !important;
        margin-bottom: 12px !important;
    }

    .crm-pv2-stepper>div.d-flex {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        flex-wrap: nowrap !important;
        padding: 4px 2px !important;
        gap: 6px !important;
        scrollbar-width: none !important;
    }

    .crm-pv2-stepper>div.d-flex::-webkit-scrollbar {
        display: none !important;
    }

    .crm-pv2-step-item {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        padding: 6px 10px !important;
        min-height: 44px !important;
        border-radius: 10px !important;
        gap: 8px !important;
    }

    .crm-pv2-step-circle {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 0.78rem !important;
    }

    .crm-pv2-step-text .step-title {
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }

    .crm-pv2-step-text .step-sub {
        display: none !important;
    }

    .crm-pv2-step-line {
        display: none !important;
    }

    /* Section Cards & Inputs */
    .crm-pv2-section-card {
        padding: 12px 10px !important;
        border-radius: 12px !important;
    }

    /* Sticky Bottom Action Bar for Step Wizard */
    .crm-pv2-step-actions {
        position: sticky !important;
        bottom: calc(var(--crm-bottom-height) + env(safe-area-inset-bottom, 0px) + 2px) !important;
        z-index: 95 !important;
        background: rgba(9, 13, 22, 0.95) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border: 1px solid rgba(56, 189, 248, 0.25) !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5) !important;
    }

    .crm-pv2-step-actions .btn {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }

    /* Policy Operations Table (.crm-pms-table & .crm-pv2-table) -> Mobile Cards */
    .crm-pms-table,
    .crm-pv2-table,
    .crm-pms-table tbody,
    .crm-pv2-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .crm-pms-table thead,
    .crm-pv2-table thead {
        display: none !important;
    }

    .crm-pms-table tr,
    .crm-pv2-table tr {
        display: block !important;
        background: #0f172a !important;
        border: 1px solid #1e293b !important;
        border-radius: 14px !important;
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
        position: relative !important;
    }

    .crm-pms-table tr.crm-pms-tr-acik,
    .crm-pv2-table tr.crm-pms-tr-acik {
        border-color: #38bdf8 !important;
        background: linear-gradient(145deg, rgba(14, 165, 233, 0.1), #0f172a) !important;
    }

    .crm-pms-table td,
    .crm-pv2-table td {
        display: block !important;
        padding: 4px 0 !important;
        border: none !important;
    }

    .crm-pms-table td.text-center:first-child {
        display: none !important;
    }

    .crm-pms-table td.text-end,
    .crm-pv2-table td.text-end {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 8px !important;
        padding-top: 10px !important;
        margin-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .crm-pms-table td.text-end .btn,
    .crm-pv2-table td.text-end .btn {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Policy Workbench Expansion */
    .crm-pms-table tr.crm-pms-xp-tr {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin-top: -6px !important;
        margin-bottom: 12px !important;
        border: none !important;
    }

    .crm-pms-table tr.crm-pms-xp-tr td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }

    .crm-pms-expanded-workbench {
        border-radius: 12px !important;
        padding: 12px 10px !important;
    }

    /* Modal Bottom Sheet Transformation */
    .crm-pv2-modal-backdrop.show,
    .crm-pms-modal-backdrop.show,
    .crm-pv2-modal-backdrop:not(.modal):not([style*="display: none"]):not([style*="display:none"]):not(.d-none),
    .crm-pms-modal-backdrop:not(.modal):not([style*="display: none"]):not([style*="display:none"]):not(.d-none) {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        background-color: rgba(3, 7, 18, 0.82) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
    }

    .crm-pv2-modal-backdrop .modal-dialog,
    .crm-pms-modal-backdrop .modal-dialog {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 92dvh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .crm-pv2-modal-backdrop .modal-content,
    .crm-pms-modal-backdrop .modal-content {
        border-radius: 20px 20px 0 0 !important;
        max-height: 92dvh !important;
        display: flex !important;
        flex-direction: column !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(56, 189, 248, 0.4) !important;
        box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.8) !important;
    }

    .crm-pv2-modal-backdrop .modal-header,
    .crm-pms-modal-backdrop .modal-header {
        padding: 12px 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        flex-shrink: 0 !important;
    }

    .crm-pv2-modal-backdrop .modal-body,
    .crm-pms-modal-backdrop .modal-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 14px 16px !important;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
        flex: 1 1 auto !important;
    }

    .crm-pv2-modal-backdrop .modal-footer,
    .crm-pms-modal-backdrop .modal-footer {
        padding: 10px 16px !important;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        flex-shrink: 0 !important;
    }

    /* Toast Relocation to Top Banner */
    .crm-pv2-toast-container,
    .crm-pms-toast-container {
        position: fixed !important;
        top: calc(58px + env(safe-area-inset-top, 0px)) !important;
        left: 12px !important;
        right: 12px !important;
        bottom: auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        z-index: 10090 !important;
    }

    .crm-pv2-toast,
    .crm-pms-toast {
        min-width: 0 !important;
        width: 100% !important;
        border-radius: 12px !important;
        padding: 10px 14px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M3.2 PAYMENT SCHEDULE (PoliceOdemeTakvimiKarti.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    .crm-petrol-table,
    .crm-petrol-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .crm-petrol-table thead {
        display: none !important;
    }

    .crm-petrol-table tr.crm-petrol-year-header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #0f1f3d !important;
        border: 1px solid #2563eb !important;
        border-radius: 10px !important;
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
        min-height: 48px !important;
        cursor: pointer !important;
    }

    .crm-petrol-table tr.crm-petrol-year-header td {
        display: inline-block !important;
        padding: 2px 4px !important;
        border: none !important;
        background: transparent !important;
    }

    .crm-petrol-table tr.crm-petrol-row {
        display: block !important;
        background: #0b1329 !important;
        border: 1px solid #1f3258 !important;
        border-radius: 12px !important;
        padding: 12px 14px !important;
        margin-bottom: 10px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }

    .crm-petrol-table tr.crm-petrol-row td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 5px 0 !important;
        border: none !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.06) !important;
        font-size: 0.82rem !important;
    }

    .crm-petrol-table tr.crm-petrol-row td:first-child {
        font-weight: 700 !important;
        color: #38bdf8 !important;
    }

    .crm-petrol-table tr.crm-petrol-row td:nth-child(1)::before {
        content: "Taksit No: ";
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .crm-petrol-table tr.crm-petrol-row td:nth-child(2)::before {
        content: "Vade Tarihi: ";
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .crm-petrol-table tr.crm-petrol-row td:nth-child(3)::before {
        content: "Ödeme Tarihi: ";
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .crm-petrol-table tr.crm-petrol-row td:nth-child(4)::before {
        content: "Prim Tutarı: ";
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .crm-petrol-table tr.crm-petrol-row td:nth-child(5)::before {
        content: "Komisyon %: ";
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .crm-petrol-table tr.crm-petrol-row td:nth-child(6)::before {
        content: "Komisyon: ";
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .crm-petrol-table tr.crm-petrol-row td:nth-child(7)::before {
        content: "Acente Payı: ";
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .crm-petrol-table tr.crm-petrol-row td:nth-child(8)::before {
        content: "Havuz Payı: ";
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .crm-petrol-table tr.crm-petrol-row td:nth-child(9)::before {
        content: "Danışman Payları: ";
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .crm-petrol-table tr.crm-petrol-row td:nth-child(10)::before {
        content: "Ödeme Durumu: ";
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .crm-petrol-table tr.crm-petrol-row td:nth-child(11)::before {
        content: "Komisyon Durumu: ";
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .crm-petrol-table tr.crm-petrol-row td:last-child {
        border-bottom: none !important;
        padding-top: 8px !important;
        justify-content: center !important;
    }

    .crm-petrol-table tr.crm-petrol-row td .btn {
        min-height: 44px !important;
        min-width: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 14px !important;
    }

    .crm-petrol-pill {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        font-size: 0.72rem !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M3.3 SALES WIZARD (CrmSatisVePoliceKaydi.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {

    /* Live Summary Card: On tablets & mobiles, make it collapsible / compact */
    .spk-sticky-card {
        position: static !important;
        margin-top: 16px !important;
    }
}

@media (max-width: 767.98px) {
    .crm-spk-container {
        padding: 12px 10px !important;
    }

    /* 6-Step Stepper Compact Track */
    .spk-stepper-card {
        padding: 8px 10px !important;
        margin-bottom: 12px !important;
    }

    .spk-stepper-track {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        flex-wrap: nowrap !important;
        padding: 4px 2px !important;
        gap: 6px !important;
        scrollbar-width: none !important;
    }

    .spk-stepper-track::-webkit-scrollbar {
        display: none !important;
    }

    .spk-step-node {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        padding: 6px 10px !important;
        min-height: 44px !important;
        border-radius: 10px !important;
        gap: 8px !important;
    }

    .spk-step-badge {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 0.78rem !important;
    }

    .spk-step-info .spk-step-title {
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }

    .spk-step-info .spk-step-sub {
        display: none !important;
    }

    .spk-step-line {
        display: none !important;
    }

    /* Step Navigation Action Buttons */
    .spk-card .d-flex.justify-content-between.mt-4,
    .spk-step-action-bar {
        position: sticky !important;
        bottom: calc(var(--crm-bottom-height) + env(safe-area-inset-bottom, 0px) + 2px) !important;
        z-index: 95 !important;
        background: rgba(9, 13, 22, 0.95) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border: 1px solid rgba(59, 130, 246, 0.25) !important;
        padding: 10px 12px !important;
        border-radius: 14px !important;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5) !important;
        margin-top: 14px !important;
        gap: 8px !important;
    }

    .spk-btn-submit,
    .spk-btn-outline,
    .spk-btn-back {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }

    /* Form Grid & Inputs */
    .spk-card {
        border-radius: 14px !important;
        padding: 14px 12px !important;
    }

    .spk-input,
    .spk-select {
        font-size: 16px !important;
        height: 46px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M3.4 LEADS DESK & BULK ACTIONS (CrmLeadler.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Prevent horizontal overflow */
    .lhs-table-wrap {
        overflow: hidden !important;
        border-radius: 12px !important;
        border: none !important;
        background: transparent !important;
    }

    /* Lead Table -> Responsive Mobile Cards */
    .lhs-table,
    .lhs-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .lhs-table thead {
        display: none !important;
    }

    .lhs-row {
        display: block !important;
        width: 100% !important;
        background: #0f172a !important;
        border: 1px solid #1e293b !important;
        border-radius: 14px !important;
        padding: 14px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    }

    .lhs-row.sel {
        border-color: #3b82f6 !important;
        background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), #0f172a) !important;
    }

    .lhs-row td {
        display: block !important;
        padding: 4px 0 !important;
        border: none !important;
        width: 100% !important;
    }

    .lhs-row td:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding-bottom: 6px !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
        margin-bottom: 6px !important;
    }

    .lhs-row td:first-child input[type="checkbox"] {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
    }

    .lhs-row-act {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        width: 100% !important;
    }

    .lhs-ic {
        flex: 1 1 0 !important;
        min-height: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.15rem !important;
    }

    .lhs-row-act .lhs-btn.sm {
        flex: 1 1 0 !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
    }

    /* Floating Bulk Action Bar Above Bottom Navigation Bar */
    .lhs-batch {
        position: fixed !important;
        bottom: calc(var(--crm-bottom-height) + env(safe-area-inset-bottom, 0px) + 8px) !important;
        left: 10px !important;
        right: 10px !important;
        z-index: 1150 !important;
        background: rgba(15, 23, 42, 0.96) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border: 1px solid rgba(59, 130, 246, 0.5) !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6) !important;
        padding: 10px 12px !important;
        gap: 8px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .lhs-batch .lhs-btn {
        min-height: 40px !important;
        padding: 6px 12px !important;
    }

    /* Modals in CrmLeadler (admin-modal-backdrop) */
    .admin-modal-backdrop:not([style*="display: none"]):not([style*="display:none"]):not(.d-none) {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        background-color: rgba(3, 7, 18, 0.82) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        z-index: 2000 !important;
    }

    .admin-modal-backdrop .admin-modal,
    .admin-modal-backdrop .modal-dialog {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 92dvh !important;
        border-radius: 20px 20px 0 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        border-top: 1px solid rgba(59, 130, 246, 0.4) !important;
        border-bottom: none !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M3.5 LEAD RADAR & HARITA OVERLAYS (CrmLeadRadar.razor & CrmHarita.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Hide top left brand capsule to avoid collision */
    .lr-map-brand-capsule {
        display: none !important;
    }

    /* Full-width floating search cockpit */
    .lr-floating-search-bar {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        z-index: 1005 !important;
    }

    .lr-search-capsule {
        width: 100% !important;
        padding: 6px 10px !important;
    }

    /* Layer switcher under search bar */
    .lr-map-layer-switcher {
        position: absolute !important;
        top: 60px !important;
        right: 10px !important;
        z-index: 1000 !important;
        display: flex !important;
        gap: 6px !important;
    }

    .lr-layer-btn {
        min-height: 36px !important;
        padding: 4px 10px !important;
        font-size: 0.78rem !important;
    }

    /* Scanning HUD */
    .lr-scanning-hud {
        position: absolute !important;
        top: 104px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        transform: none !important;
        font-size: 0.78rem !important;
        padding: 6px 12px !important;
    }

    /* 3-Stage Snapping Bottom Sheet for .lr-google-drawer */
    .lr-google-drawer {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-height: 120px !important;
        max-height: 85dvh !important;
        border-radius: 20px 20px 0 0 !important;
        border-top: 1px solid rgba(6, 182, 212, 0.5) !important;
        border-right: none !important;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.85) !important;
        z-index: 1300 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MILESTONE 4: FINANCE, COMMISSION, COMMUNICATION & SETTINGS
   Targets: Viewports < 991.98px (Tablets) and < 768px (Mobile 360px-430px)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   M4.1 COMMISSION CENTER & MODAL DOCKING (CrmKomisyonMerkezi.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Critical Bug Fix: .km-modal-dialog Centered Transform -> Bottom Sheet */
    .km-modal-backdrop {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        z-index: 2000 !important;
    }

    html body .km-modal-dialog,
    .km-modal-dialog {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 92dvh !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        z-index: 2010 !important;
        overflow: hidden !important;
    }

    .km-modal-content {
        border-radius: 20px 20px 0 0 !important;
        max-height: 92dvh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(56, 189, 248, 0.4) !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.8) !important;
    }

    .km-modal-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1 1 auto !important;
        padding: 14px 16px !important;
    }

    .km-modal-header,
    .km-modal-footer {
        flex-shrink: 0 !important;
        padding: 12px 16px !important;
    }

    /* Container & Role Strip */
    .crm-km-container {
        padding: 12px 10px !important;
    }

    .km-role-bar {
        padding: 8px 10px !important;
    }

    .km-role-bar .d-flex {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        padding-bottom: 4px !important;
        scrollbar-width: none !important;
    }

    .km-role-bar .d-flex::-webkit-scrollbar {
        display: none !important;
    }

    .km-role-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        min-height: 44px !important;
    }

    /* Tab Bars: Horizontal scrollable strips */
    .km-nav-pills {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        padding-bottom: 6px !important;
        scrollbar-width: none !important;
    }

    .km-nav-pills::-webkit-scrollbar {
        display: none !important;
    }

    .km-nav-pills .nav-item {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
    }

    .km-nav-pills .nav-link {
        white-space: nowrap !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 8px 14px !important;
    }

    /* 9 Tables inside .km-card: zero blowout, smooth touch scrolling */
    .km-card {
        padding: 12px 10px !important;
        border-radius: 14px !important;
    }

    .km-table th,
    .km-table td {
        white-space: nowrap !important;
        padding: 10px 12px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M4.2 DANISMAN BALANCES & FINANCIAL DESK (FinansDanismanBakiyeleri & FinansMasasiSayfasi)
   ───────────────────────────────────────────────────────────────────────────── */
.fm-danisman-card {
    background: linear-gradient(180deg, #111a30 0%, #0d1527 100%);
    border: 1px solid rgba(148, 163, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: border-color .15s ease;
}

.fm-danisman-card.acik {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

@media (max-width: 767.98px) {

    /* 2x2 Top KPI Grid */
    .fm-kpi {
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }

    .fm-kpi-baslik {
        font-size: 0.68rem !important;
    }

    .fm-kpi-deger {
        font-size: 1.05rem !important;
    }

    .fm-kpi-alt {
        font-size: 0.65rem !important;
    }

    /* Finans Masası Sekmeler */
    .fm-sekmeler {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        padding-bottom: 6px !important;
        scrollbar-width: none !important;
    }

    .fm-sekmeler::-webkit-scrollbar {
        display: none !important;
    }

    .fm-sekme {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        white-space: nowrap !important;
        min-height: 44px !important;
    }

    /* Finans Modals Bottom Sheet Docking */
    .fm-modal-arka {
        position: fixed !important;
        inset: 0 !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        z-index: 2000 !important;
    }

    .fm-modal-arka.fm-modal-ust {
        z-index: 2050 !important;
    }

    .fm-modal {
        position: relative !important;
        width: 100% !important;
        max-width: 100vw !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 92dvh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(6, 182, 212, 0.4) !important;
        box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.8) !important;
    }

    .fm-modal-govde {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1 1 auto !important;
        padding: 14px 16px !important;
    }

    .fm-modal-baslik,
    .fm-modal-alt {
        flex-shrink: 0 !important;
        padding: 12px 16px !important;
    }

    .fm-filtre-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .fm-filtre-bar>* {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M4.3 CARI WALLET & CALENDAR (DanismanCariCuzdanKarti.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .crm-cuzdan-modal-wrapper {
        position: fixed !important;
        inset: 0 !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        z-index: 2000 !important;
    }

    .crm-cuzdan-modal-wrapper .modal-dialog {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 92dvh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .crm-cuzdan-modal-content {
        border-radius: 20px 20px 0 0 !important;
        max-height: 92dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(6, 182, 212, 0.4) !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.8) !important;
    }

    /* Calendar Grid on Mobile Phones (360px–430px) */
    .crm-airbnb-takvim-card {
        padding: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .crm-takvim-grid {
        gap: 2px !important;
    }

    .crm-takvim-gun-btn {
        height: 32px !important;
        width: 100% !important;
        max-width: 36px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M4.4 TEMPLATE & CAMPAIGN CENTER (CrmSablonVeKampanyaMerkezi.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Input Title Overflow Fix: Line 2463 */
    .imk-input.title-in {
        min-width: 0 !important;
        width: 100% !important;
        flex: 1 1 auto !important;
    }

    /* Preview Iframe Responsive Height */
    .imk-preview-iframe,
    .imk-preview-iframe.tall {
        height: min(60dvh, 480px) !important;
        max-height: 480px !important;
    }

    /* Modals to Bottom Sheet */
    .imk-modal-backdrop {
        position: fixed !important;
        inset: 0 !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        z-index: 2000 !important;
    }

    .imk-modal-box {
        max-width: 100vw !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 92dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(56, 189, 248, 0.4) !important;
        box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.8) !important;
    }

    /* Calendar Day Grid */
    .imk-cal-grid {
        gap: 2px !important;
    }

    .imk-cal-head {
        font-size: 0.6rem !important;
        padding: 3px 0 !important;
    }

    .imk-cal-cell {
        min-height: 38px !important;
        padding: 3px !important;
    }

    /* Tables: .imk-tpl-table & .imk-table */
    .imk-tpl-table-wrap,
    .imk-rcp-table-wrap {
        border-radius: 12px !important;
    }

    .imk-tpl-table th,
    .imk-tpl-table td,
    .imk-table th,
    .imk-table td {
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M4.5 CALL CENTER OPERATIONS (CrmCagriMerkezi.razor)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .cm-table-wrap {
        border: none !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .cm-table,
    .cm-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .cm-table thead {
        display: none !important;
    }

    .cm-row {
        display: block !important;
        width: 100% !important;
        background: #0f172a !important;
        border: 1px solid #1e293b !important;
        border-radius: 14px !important;
        padding: 14px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    }

    .cm-row td {
        display: block !important;
        padding: 4px 0 !important;
        border: none !important;
        width: 100% !important;
    }

    .cm-row td:last-child {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 8px !important;
        padding-top: 10px !important;
        margin-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .cm-tel-link {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 8px 14px !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
        background: rgba(16, 185, 129, 0.15) !important;
        color: #34d399 !important;
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
    }

    .cm-btn-action {
        min-height: 44px !important;
        min-width: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 14px !important;
        border-radius: 10px !important;
    }

    .cm-expand-row {
        display: block !important;
        width: 100% !important;
        border: none !important;
        margin-top: -6px !important;
        margin-bottom: 12px !important;
    }

    .cm-expand-row td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }

    .cm-expand-panel {
        padding: 14px 12px !important;
        border-radius: 12px !important;
    }

    .cm-detail-strip {
        flex-direction: column !important;
        gap: 6px !important;
    }

    .cm-out-btn {
        min-height: 44px !important;
        padding: 8px 12px !important;
    }

    .cm-btn-save,
    .cm-btn-cancel {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 16px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M4.6 NEWSLETTERS & ADVISOR WEB (CrmBultenler & CrmDanismanWebYonetim)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Newsletters KPI Grid */
    .bulten-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    /* Newsletter Preview Drawer */
    .bulten-preview-drawer {
        padding: 10px 8px !important;
    }

    .bulten-inline-iframe {
        height: min(60dvh, 480px) !important;
        max-height: 480px !important;
    }

    .danisman-bulten-grid,
    .catalog-grid {
        grid-template-columns: 1fr !important;
    }

    /* Newsletter Tab Strips */
    .bulten-tabs {
        padding-bottom: 6px !important;
    }

    .bulten-tab {
        min-height: 44px !important;
    }

    /* CrmDanismanWebYonetim Tabs: repeat(5, 1fr) -> Horizontal Scroll Strip */
    .crm-tab-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        padding-bottom: 6px !important;
        scrollbar-width: none !important;
    }

    .crm-tab-row::-webkit-scrollbar {
        display: none !important;
    }

    .crm-web-tab-item {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        white-space: nowrap !important;
        min-height: 44px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   M4.7 PATRON DESK & SYSTEM SETTINGS (PatronMasasiSayfasi & CrmSistemAyarlariPanel)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Toast Relocation to Top Banner */
    .pm-toast {
        position: fixed !important;
        top: calc(58px + env(safe-area-inset-top, 0px)) !important;
        left: 12px !important;
        right: 12px !important;
        bottom: auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 12px !important;
        z-index: 999999 !important;
    }

    /* Patron Masası Modal Bottom Sheet Docking */
    .pm-modal-arka {
        position: fixed !important;
        inset: 0 !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        z-index: 2000 !important;
    }

    .pm-modal {
        max-width: 100vw !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 92dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid #06b6d4 !important;
        box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.8) !important;
    }
}