/* ==========================================================================

   SERVİSLOC MOBILE APP MODE (STRICTLY SCOPED FOR MOBILE <= 768px)

   Does NOT alter desktop styles (> 768px). Desktop panel remains 100% intact.

   ========================================================================== */



@media (min-width: 769px) {

    #mobileAppShell {

        display: none !important;

    }

}



@media (max-width: 768px) {

    /* Hide desktop shell and isolate from style/layout calculations */

    body.authenticated #mainDashboardContainer,

    body.mobile-mode #mainDashboardContainer {

        display: none !important;

        contain: strict !important;

        content-visibility: hidden !important;

    }



    /* Strictly hide mobile app shell before authentication */
    body:not(.authenticated) #mobileAppShell {
        display: none !important;
    }

    /* Lock html & body to strict mobile app viewport once authenticated */
    html:has(body.authenticated.mobile-mode),
    body.authenticated.mobile-mode {
        width: 100vw !important;
        height: 100dvh !important;
        height: 100vh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
        position: fixed !important;
        inset: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #F8FAFC !important;
    }

    body.authenticated.mobile-mode #panelSection {
        width: 100vw !important;
        height: 100dvh !important;
        height: 100vh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        position: fixed !important;
        inset: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.authenticated.mobile-mode #mobileAppShell,
    body.authenticated #mobileAppShell {
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        height: 100dvh !important;
        height: 100vh !important;
        max-height: 100dvh !important;
        overflow: hidden !important; /* Shell never scrolls! */
        position: fixed !important;
        inset: 0 !important;
        background: #F8FAFC !important;
        -webkit-tap-highlight-color: transparent;
        contain: layout size;
    }



    /* Never show dev mode popup */

    #modalDevModeNotice {

        display: none !important;

    }



    /* Mobile Login Lock: Fixed viewport, zero scroll, blurred darkened background image behind sharp white card */

    html:has(body:not(.authenticated)),

    body:not(.authenticated) {

        position: fixed !important;

        inset: 0 !important;

        width: 100vw !important;

        height: 100dvh !important;

        max-height: 100dvh !important;

        overflow: hidden !important;

        overscroll-behavior: none !important;

        touch-action: none !important;

        margin: 0 !important;

        padding: 0 !important;

        background: #090D16 !important;

        background-image: none !important;

    }



    body:not(.authenticated)::before,

    body:not(.authenticated)::after {

        display: none !important;

        content: none !important;

        opacity: 0 !important;

        visibility: hidden !important;

    }



    body:not(.authenticated) #panelSection {

        position: fixed !important;

        inset: 0 !important;

        width: 100vw !important;

        height: 100dvh !important;

        padding: 0 !important;

        margin: 0 !important;

        background: #090D16 !important;

        z-index: 100 !important;

    }



    .sl-auth-page,

    #loginContainer.sl-auth-page {

        position: fixed !important;

        inset: 0 !important;

        width: 100vw !important;

        height: 100dvh !important;

        min-height: 100dvh !important;

        max-height: 100dvh !important;

        padding: 16px !important;

        margin: 0 !important;

        overflow: hidden !important;

        overscroll-behavior: none !important;

        touch-action: none !important;

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        background-color: #090D16 !important;

        background-image: none !important;

        z-index: 101 !important;

        opacity: 1 !important;

        filter: none !important;

    }

    .sl-auth-shell {

        grid-template-columns: 1fr !important;

        padding: 0 !important;

        gap: 0 !important;

        width: 100% !important;

        max-width: 400px !important;

        min-height: auto !important;

        max-height: calc(100dvh - 32px) !important;

        border-radius: 22px !important;

        overflow: hidden !important;

        background: #FFFFFF !important;

        z-index: 102 !important;

        opacity: 1 !important;

        filter: none !important;

        backdrop-filter: none !important;

        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;

    }

    .sl-auth-brand-col,

    .sl-auth-brand-img-frame,

    .sl-auth-brand-img,

    #loginBrandVideo {

        display: none !important;

        visibility: hidden !important;

        width: 0 !important;

        height: 0 !important;

        pointer-events: none !important;

    }

    .sl-auth-feature-list {

        display: none !important;

    }

    .grecaptcha-badge {

        visibility: hidden !important;

        opacity: 0 !important;

        pointer-events: none !important;

    }

    .sl-auth-card,

    .sl-auth-card-col {

        padding: 26px 20px !important;

        background: #FFFFFF !important;

    }

    .sl-auth-input,

    #loginUsername,

    #loginPassword {

        font-size: 16px !important;

    }

    #loginUsername {

        text-transform: lowercase !important;

    }



    /* Base reset inside mobile app */

    #mobileAppShell,

    #mobileAppShell * {

        box-sizing: border-box;

    }



    /* ==========================================================================

       TOP APP BAR

       ========================================================================== */

    .mobile-appbar {

        flex-shrink: 0 !important;

        position: relative !important;

        top: 0 !important;

        left: 0 !important;

        right: 0 !important;

        z-index: 100 !important;

        background: #FFFFFF;

        border-bottom: 1px solid #E2E8F0;

        height: calc(56px + env(safe-area-inset-top, 0px));

        padding-top: env(safe-area-inset-top, 0px);

        padding-left: 14px;

        padding-right: 14px;

        display: flex !important;

        align-items: center;

        justify-content: space-between;

        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);

    }



    .mobile-appbar-left {

        display: flex;

        align-items: center;

        gap: 10px;

        min-width: 0;

    }



    .mobile-appbar-logo {

        width: 32px;

        height: 32px;

        border-radius: 8px;

        background: #0F172A;

        color: #38BDF8;

        display: flex;

        align-items: center;

        justify-content: center;

        font-size: 0.95rem;

        flex-shrink: 0;

    }



    .mobile-appbar-title-wrap {

        display: flex;

        flex-direction: column;

        min-width: 0;

    }



    .mobile-appbar-title {

        font-size: 0.95rem;

        font-weight: 700;

        color: #0F172A;

        letter-spacing: -0.01em;

        line-height: 1.15;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

    }



    .mobile-appbar-title span {

        color: #2563EB;

    }



    .mobile-appbar-subtitle {

        font-size: 0.6875rem;

        color: #64748B;

        font-weight: 600;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

    }



    .mobile-appbar-actions {

        display: flex;

        align-items: center;

        gap: 4px;

        flex-shrink: 0;

    }



    .mobile-appbar-btn {

        width: 38px;

        height: 38px;

        border-radius: 8px;

        border: 1px solid transparent;

        background: transparent;

        color: #475569;

        font-size: 1rem;

        display: flex;

        align-items: center;

        justify-content: center;

        cursor: pointer;

        transition: all 0.15s;

    }



    .mobile-appbar-btn:active {

        background: #F1F5F9;

        color: #0F172A;

        transform: scale(0.95);

    }



    .mobile-appbar-back-btn {

        width: 36px;

        height: 36px;

        border-radius: 8px;

        border: 1px solid #CBD5E1;

        background: #F8FAFC;

        color: #0F172A;

        font-size: 0.95rem;

        display: none;

        align-items: center;

        justify-content: center;

        cursor: pointer;

        flex-shrink: 0;

        transition: all 0.15s;

    }



    .mobile-appbar-back-btn:active {

        background: #E2E8F0;

        transform: scale(0.95);

    }



    /* ==========================================================================

       MAIN CONTENT CONTAINER

       ========================================================================== */

    .mobile-content,

    #mobileScreenContainer {

        flex: 1 1 0% !important;

        width: 100% !important;

        height: 100% !important;

        min-height: 0 !important;

        padding: 14px 14px calc(115px + env(safe-area-inset-bottom, 0px)) 14px !important;

        overflow-y: auto !important;

        -webkit-overflow-scrolling: touch !important;

        overscroll-behavior-y: contain !important;

        touch-action: pan-y !important;

        will-change: scroll-position !important;

        transform: translateZ(0);

    }



    /* Screen header */

    .mobile-screen-header {

        display: flex;

        align-items: center;

        justify-content: space-between;

        margin-bottom: 14px;

    }



    .mobile-screen-title {

        font-size: 1.15rem;

        font-weight: 700;

        color: #0F172A;

        margin: 0;

        display: flex;

        align-items: center;

        gap: 8px;

        letter-spacing: -0.01em;

    }



    .mobile-screen-subtitle {

        font-size: 0.75rem;

        color: #64748B;

        margin-top: 2px;

    }



    /* ==========================================================================

       BOTTOM NAVIGATION BAR

       ========================================================================== */

    .mobile-bottom-nav {

        flex-shrink: 0 !important;

        position: fixed !important;

        bottom: 0 !important;

        left: 0 !important;

        right: 0 !important;

        z-index: 1000 !important;

        background: #FFFFFF;

        border-top: 1px solid #E2E8F0;

        height: calc(60px + env(safe-area-inset-bottom, 0px));

        padding-bottom: env(safe-area-inset-bottom, 0px);

        display: flex;

        align-items: center;

        justify-content: space-around;

        box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.04);

        transform: translateZ(0);

    }



    .mobile-nav-item {

        flex: 1;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        height: 100%;

        background: none;

        border: none;

        color: #64748B;

        font-size: 0.65rem;

        font-weight: 600;

        cursor: pointer;

        padding: 4px 2px;

        position: relative;

        transition: color 0.15s;

        text-decoration: none;

    }



    .mobile-nav-item i {

        font-size: 1.1rem;

        margin-bottom: 3px;

        transition: transform 0.15s;

    }



    .mobile-nav-item.active {

        color: #2563EB;

        font-weight: 700;

    }



    .mobile-nav-item.active i {

        transform: translateY(-1px);

    }



    .mobile-nav-badge {

        position: absolute;

        top: 6px;

        right: 50%;

        margin-right: -16px;

        background: #EF4444;

        color: #FFFFFF;

        font-size: 0.625rem;

        font-weight: 700;

        min-width: 16px;

        height: 16px;

        border-radius: 999px;

        display: flex;

        align-items: center;

        justify-content: center;

        padding: 0 4px;

        border: 2px solid #FFFFFF;

    }



    /* ==========================================================================

       FLOATING ACTION BUTTON (FAB)

       ========================================================================== */

    .mobile-fab {

        position: fixed;

        right: 16px;

        bottom: calc(72px + env(safe-area-inset-bottom, 0px));

        z-index: 990;

        height: 48px;

        padding: 0 18px;

        border-radius: 24px;

        background: #2563EB;

        color: #FFFFFF;

        border: none;

        display: inline-flex;

        align-items: center;

        gap: 8px;

        font-size: 0.875rem;

        font-weight: 600;

        cursor: pointer;

        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4), 0 2px 6px rgba(15, 23, 42, 0.08);

        transition: transform 0.15s, background 0.15s;

    }



    .mobile-fab:active {

        transform: scale(0.96);

        background: #1D4ED8;

    }



    .mobile-fab i {

        font-size: 0.95rem;

    }



    /* ==========================================================================

       MOBILE CARD COMPONENT

       ========================================================================== */

    .mobile-card {

        background: #FFFFFF;

        border: 1px solid #E2E8F0;

        border-radius: 10px;

        padding: 14px;

        margin-bottom: 10px;

        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);

        transition: border-color 0.15s, box-shadow 0.15s;

        position: relative;

    }



    .mobile-card:active {

        border-color: #CBD5E1;

        background: #FAFAFA;

    }



    .mobile-card-header {

        display: flex;

        align-items: center;

        justify-content: space-between;

        margin-bottom: 8px;

    }



    .mobile-card-title {

        font-size: 0.9375rem;

        font-weight: 700;

        color: #0F172A;

        margin: 0;

        display: flex;

        align-items: center;

        gap: 8px;

    }



    .mobile-card-body {

        font-size: 0.8125rem;

        color: #475569;

        line-height: 1.45;

    }



    .mobile-card-row {

        display: flex;

        align-items: center;

        justify-content: space-between;

        margin-top: 6px;

        font-size: 0.8125rem;

    }



    .mobile-card-footer {

        display: flex;

        align-items: center;

        justify-content: flex-end;

        gap: 6px;

        margin-top: 10px;

        padding-top: 10px;

        border-top: 1px solid #F1F5F9;

    }



    /* ==========================================================================

       MOBILE TR PLATE BOX

       ========================================================================== */

    .mobile-plate-box {

        display: inline-flex;

        align-items: center;

        height: 28px;

        background: #FFFFFF;

        border: 1.5px solid #0F172A;

        border-radius: 4px;

        overflow: hidden;

        font-family: 'Inter', monospace, sans-serif;

        font-weight: 800;

        font-size: 0.8125rem;

        color: #0F172A;

        letter-spacing: 0.05em;

        user-select: none;

    }



    .mobile-plate-tr {

        background: #1D4ED8;

        color: #FFFFFF;

        font-size: 0.5625rem;

        font-weight: 800;

        padding: 0 4px;

        height: 100%;

        display: flex;

        align-items: center;

        justify-content: center;

        letter-spacing: 0;

    }



    .mobile-plate-text {

        padding: 0 7px;

        white-space: nowrap;

    }



    /* ==========================================================================

       MOBILE STATUS PILLS & BADGES

       ========================================================================== */

    .mobile-badge {

        display: inline-flex;

        align-items: center;

        gap: 5px;

        padding: 3px 8px;

        border-radius: 999px;

        font-size: 0.6875rem;

        font-weight: 600;

        white-space: nowrap;

    }



    .mobile-badge-blue { background: #EFF6FF; color: #1D4ED8; border: 1px solid #DBEAFE; }

    .mobile-badge-amber { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }

    .mobile-badge-emerald { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }

    .mobile-badge-purple { background: #FAF5FF; color: #7E22CE; border: 1px solid #E9D5FF; }

    .mobile-badge-rose { background: #FFF1F2; color: #BE123C; border: 1px solid #FECDD3; }

    .mobile-badge-slate { background: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }



    /* ==========================================================================

       ACTION BUTTONS & CHIPS

       ========================================================================== */

    .mobile-btn {

        height: 38px;

        padding: 0 14px;

        border-radius: 6px;

        font-size: 0.8125rem;

        font-weight: 600;

        border: 1px solid transparent;

        display: inline-flex;

        align-items: center;

        justify-content: center;

        gap: 6px;

        cursor: pointer;

        transition: all 0.15s;

        text-decoration: none;

    }



    .mobile-btn:active {

        transform: scale(0.97);

    }



    .mobile-btn-primary { background: #2563EB; color: #FFFFFF; }

    .mobile-btn-secondary { background: #FFFFFF; border-color: #CBD5E1; color: #334155; }

    .mobile-btn-success { background: #16A34A; color: #FFFFFF; }

    .mobile-btn-ghost { background: transparent; color: #475569; }

    .mobile-btn-danger { background: #FEE2E2; color: #DC2626; border-color: #FECACA; }



    .mobile-btn-sm {

        height: 32px;

        padding: 0 10px;

        font-size: 0.75rem;

        border-radius: 5px;

    }



    .mobile-btn-icon {

        width: 34px;

        height: 34px;

        padding: 0;

        border-radius: 6px;

        display: inline-flex;

        align-items: center;

        justify-content: center;

        font-size: 0.875rem;

    }



    /* Horizontal Filter Chips Carousel */

    .mobile-chip-bar {

        display: flex;

        gap: 6px;

        overflow-x: auto;

        padding-bottom: 6px;

        margin-bottom: 12px;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;

    }

    .mobile-chip-bar::-webkit-scrollbar {

        display: none;

    }



    .mobile-chip {

        height: 32px;

        padding: 0 12px;

        border-radius: 16px;

        background: #FFFFFF;

        border: 1px solid #CBD5E1;

        color: #475569;

        font-size: 0.75rem;

        font-weight: 600;

        display: inline-flex;

        align-items: center;

        gap: 6px;

        white-space: nowrap;

        cursor: pointer;

        flex-shrink: 0;

    }



    .mobile-chip.active {

        background: #2563EB;

        color: #FFFFFF;

        border-color: #2563EB;

    }



    /* ==========================================================================

       BOTTOM SHEET & FULL-SCREEN OVERLAY

       ========================================================================== */

    .mobile-sheet-backdrop {

        position: fixed;

        inset: 0;

        background: rgba(15, 23, 42, 0.55);

        backdrop-filter: blur(3px);

        z-index: 2000;

        display: flex;

        flex-direction: column;

        justify-content: flex-end;

        opacity: 0;

        pointer-events: none;

        transition: opacity 0.2s ease;

    }



    .mobile-sheet-backdrop.active {

        opacity: 1;

        pointer-events: auto;

    }



    .mobile-sheet {

        background: #FFFFFF;

        border-top-left-radius: 16px;

        border-top-right-radius: 16px;

        max-height: 90vh;

        width: 100%;

        display: flex;

        flex-direction: column;

        transform: translateY(100%);

        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);

        box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);

        padding-bottom: env(safe-area-inset-bottom, 12px);

    }



    .mobile-sheet-backdrop.active .mobile-sheet {

        transform: translateY(0);

    }



    .mobile-sheet-handle {

        width: 36px;

        height: 4px;

        background: #CBD5E1;

        border-radius: 999px;

        margin: 10px auto 4px auto;

    }



    .mobile-sheet-header {

        padding: 12px 18px;

        border-bottom: 1px solid #F1F5F9;

        display: flex;

        align-items: center;

        justify-content: space-between;

    }



    .mobile-sheet-title {

        font-size: 1.05rem;

        font-weight: 700;

        color: #0F172A;

        margin: 0;

    }



    .mobile-sheet-body {

        padding: 16px 18px;

        overflow-y: auto;

        flex: 1;

        -webkit-overflow-scrolling: touch;

    }



    .mobile-sheet-footer {

        padding: 12px 18px;

        border-top: 1px solid #F1F5F9;

        display: flex;

        gap: 8px;

    }



    /* ==========================================================================

       FORM ELEMENTS (TOUCH OPTIMIZED, PREVENTS ZOOM)

       ========================================================================== */

    .mobile-form-group {

        margin-bottom: 12px;

    }



    .mobile-label {

        display: block;

        font-size: 0.8125rem;

        font-weight: 600;

        color: #334155;

        margin-bottom: 4px;

    }



    .mobile-input,

    .mobile-select,

    .mobile-textarea {

        width: 100%;

        height: 44px;

        padding: 0 12px;

        border: 1px solid #CBD5E1;

        border-radius: 8px;

        background: #FFFFFF;

        font-size: 16px !important; /* Prevents auto-zoom on iOS */

        color: #0F172A;

        outline: none;

        transition: border-color 0.15s, box-shadow 0.15s;

    }



    .mobile-textarea {

        height: 78px;

        padding: 10px 12px;

        resize: none;

    }



    .mobile-input:focus,

    .mobile-select:focus,

    .mobile-textarea:focus {

        border-color: #2563EB;

        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);

    }



    /* Quick service tag chips */

    .mobile-tag-grid {

        display: flex;

        flex-wrap: wrap;

        gap: 6px;

        margin-top: 6px;

    }



    .mobile-tag-btn {

        height: 30px;

        padding: 0 10px;

        border-radius: 15px;

        background: #F1F5F9;

        border: 1px solid #E2E8F0;

        color: #475569;

        font-size: 0.75rem;

        font-weight: 600;

        cursor: pointer;

    }



    .mobile-tag-btn.active {

        background: #EFF6FF;

        border-color: #93C5FD;

        color: #1D4ED8;

    }



    /* ==========================================================================

       STICKY BOTTOM ACTION BAR (IN DETAIL SCREENS)

       ========================================================================== */

    .mobile-sticky-actions {

        position: fixed;

        bottom: 0;

        left: 0;

        right: 0;

        z-index: 1050;

        background: #FFFFFF;

        border-top: 1px solid #E2E8F0;

        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) 14px;

        display: flex;

        align-items: center;

        gap: 8px;

        box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08);

    }



    /* Photo capture list */

    .mobile-photo-grid {

        display: grid;

        grid-template-columns: repeat(4, 1fr);

        gap: 8px;

        margin-top: 8px;

    }



    .mobile-photo-thumb {

        position: relative;

        aspect-ratio: 1;

        border-radius: 6px;

        overflow: hidden;

        border: 1px solid #CBD5E1;

    }



    .mobile-photo-thumb img {

        width: 100%;

        height: 100%;

        object-fit: cover;

    }



    .mobile-photo-del {

        position: absolute;

        top: 2px;

        right: 2px;

        width: 20px;

        height: 20px;

        border-radius: 50%;

        background: rgba(15, 23, 42, 0.7);

        color: #FFFFFF;

        border: none;

        display: flex;

        align-items: center;

        justify-content: center;

        font-size: 0.65rem;

        cursor: pointer;

    }



    /* ==========================================================================

       FULL SCREEN SEARCH OVERLAY

       ========================================================================== */

    .mobile-search-overlay {

        position: fixed;

        inset: 0;

        z-index: 3000;

        background: #F8FAFC;

        display: flex;

        flex-direction: column;

        display: none;

    }



    .mobile-search-overlay.active {

        display: flex;

    }



    .mobile-search-header {

        background: #FFFFFF;

        padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px 14px;

        border-bottom: 1px solid #E2E8F0;

        display: flex;

        align-items: center;

        gap: 10px;

    }



    .mobile-search-input-wrap {

        flex: 1;

        position: relative;

        display: flex;

        align-items: center;

    }



    .mobile-search-input-wrap i {

        position: absolute;

        left: 12px;

        color: #94A3B8;

        font-size: 0.875rem;

    }



    .mobile-search-input {

        width: 100%;

        height: 42px;

        padding: 0 34px 0 34px;

        border: 1px solid #CBD5E1;

        border-radius: 8px;

        font-size: 16px !important;

        outline: none;

        background: #F8FAFC;

    }



    .mobile-search-input:focus {

        border-color: #2563EB;

        background: #FFFFFF;

    }



    .mobile-search-clear {

        position: absolute;

        right: 10px;

        background: none;

        border: none;

        color: #94A3B8;

        cursor: pointer;

        font-size: 0.875rem;

        padding: 4px;

    }



    .mobile-search-results {

        flex: 1;

        overflow-y: auto;

        padding: 14px;

        -webkit-overflow-scrolling: touch;

    }



    /* Menu Grid Screen */

    .mobile-menu-grid {

        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

    }



    .mobile-menu-card {

        background: #FFFFFF;

        border: 1px solid #E2E8F0;

        border-radius: 10px;

        padding: 14px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

        cursor: pointer;

        text-decoration: none;

        color: inherit;

        transition: all 0.15s;

    }



    .mobile-menu-card:active {

        background: #F8FAFC;

        border-color: #CBD5E1;

    }



    .mobile-menu-icon {

        width: 36px;

        height: 36px;

        border-radius: 8px;

        display: flex;

        align-items: center;

        justify-content: center;

        font-size: 1rem;

    }



    .mobile-menu-title {

        font-size: 0.875rem;

        font-weight: 600;

        color: #0F172A;

    }



    .mobile-menu-desc {

        font-size: 0.71875rem;

        color: #64748B;

        line-height: 1.35;

    }



    /* ==========================================================================

       ÇIRAK BUTTON POSITIONING (10PX ABOVE #mobileFab "İŞ EMRİ AÇ")

       ========================================================================== */

    body.authenticated #btnFloatingAiAssistant,

    body.authenticated .floating-cirak-fab {

        position: fixed !important;

        right: 16px !important;

        left: auto !important;

        bottom: calc(72px + 48px + 10px + env(safe-area-inset-bottom, 0px)) !important;

        z-index: 2005 !important;

        height: 42px !important;

        padding: 0 12px 0 6px !important;

        border-radius: 24px !important;

        display: inline-flex !important;

        align-items: center !important;

        gap: 6px !important;

        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.45), 0 0 16px rgba(56, 189, 248, 0.25) !important;

        transition: bottom 0.2s ease, transform 0.15s ease !important;

    }



    body.authenticated .floating-cirak-fab .fab-emblem-wrap {

        width: 30px !important;

        height: 30px !important;

    }



    body.authenticated .floating-cirak-fab .fab-emblem-wrap svg {

        width: 30px !important;

        height: 30px !important;

    }



    body.authenticated .floating-cirak-fab .fab-text {

        font-size: 0.88rem !important;

    }



    body.authenticated.m-fab-hidden #btnFloatingAiAssistant,

    body.authenticated.m-fab-hidden .floating-cirak-fab {

        bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;

    }



    /* ==========================================================================

       SHARED DESKTOP MODALS ADAPTED FOR NATIVE MOBILE APP EXPERIENCE

       ========================================================================== */

    .ocr-modal,

    .vp-modal {

        position: fixed !important;

        inset: 0 !important;

        width: 100% !important;

        height: 100% !important;

        padding: 8px !important;

        z-index: 100500 !important;

    }



    body.mobile-mode:has(.ocr-modal[style*="display: flex"]) .mobile-bottom-nav,

    body.mobile-mode:has(.ocr-modal[style*="display: block"]) .mobile-bottom-nav,

    body.mobile-mode:has(.ocr-modal.active) .mobile-bottom-nav,

    body.mobile-mode:has(.m-modal.active) .mobile-bottom-nav,

    body.mobile-mode:has(#modalOilStickerPreview[style*="display: flex"]) .mobile-bottom-nav {

        display: none !important;

    }



    .ocr-modal-content,

    .vp-content {

        width: 100% !important;

        max-width: 100% !important;

        max-height: 92vh !important;

        padding: 14px !important;

        border-radius: 16px !important;

        overflow-y: auto !important;

        -webkit-overflow-scrolling: touch !important;

    }



    /* Native Bottom Sheet for Çırak Asistan on Mobile */

    .cirak-backdrop {

        position: fixed !important;

        inset: 0 !important;

        width: 100% !important;

        height: 100% !important;

        padding: 0 !important;

        z-index: 100095 !important;

        align-items: flex-end !important;

        background: rgba(15, 23, 42, 0.75) !important;

    }



    .cirak-card {

        width: 100% !important;

        max-width: 100% !important;

        max-height: 90vh !important;

        padding: 0 !important;

        border-radius: 22px 22px 0 0 !important;

        border-bottom: none !important;

        overflow: hidden !important;

        display: flex !important;

        flex-direction: column !important;

        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4) !important;

        animation: mobileDrawerSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;

    }



    .cirak-drag-handle-bar {

        display: flex !important;

        justify-content: center !important;

        padding: 10px 0 2px 0 !important;

        background: var(--bg-card, #ffffff) !important;

    }



    .cirak-body {

        padding: 1rem 1rem calc(24px + env(safe-area-inset-bottom, 0px)) 1rem !important;

        max-height: calc(90vh - 85px) !important;

        overflow-y: auto !important;

        -webkit-overflow-scrolling: touch !important;

    }



    .ocr-modal-content .form-grid-2,

    .ocr-modal-content .form-grid-3,

    .ocr-modal-content .form-grid-4,

    #qcChecklistContainer,

    #editWoChecklistContainer {

        grid-template-columns: 1fr !important;

        gap: 10px !important;

    }



    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),

    select,

    textarea,

    .ocr-modal-content input,

    .ocr-modal-content select,

    .ocr-modal-content textarea {

        font-size: 16px !important;

    }



    /* Live Camera Plate Reader Modal */

    .m-plate-scanner-modal {

        position: fixed;

        inset: 0;

        z-index: 100500 !important;

        background: rgba(11, 17, 32, 0.96);

        backdrop-filter: blur(8px);

        -webkit-backdrop-filter: blur(8px);

        display: none;

        flex-direction: column;

        padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px)) 14px;

        color: #F8FAFC;

    }



    .m-plate-scanner-modal.active {

        display: flex !important;

    }



    .m-plate-video-box {

        position: relative;

        width: 100%;

        height: 240px;

        background: #000;

        border-radius: 14px;

        overflow: hidden;

        border: 2px solid #38BDF8;

        margin: 10px 0;

    }



    .m-plate-video-box video {

        width: 100%;

        height: 100%;

        object-fit: cover;

    }



    .m-plate-frame-overlay {

        position: absolute;

        inset: 0;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        pointer-events: none;

        background: radial-gradient(transparent 45%, rgba(11, 17, 32, 0.72) 85%);

    }



    .m-tr-plate-box {

        width: 86%;

        max-width: 310px;

        height: 70px;

        border: 2.5px solid #38BDF8;

        border-radius: 10px;

        display: flex;

        align-items: stretch;

        overflow: hidden;

        position: relative;

        box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);

        background: rgba(255, 255, 255, 0.05);

    }



    .m-tr-plate-band {

        width: 28px;

        background: rgba(37, 99, 235, 0.9);

        color: #FFF;

        font-weight: 900;

        font-size: 0.72rem;

        display: flex;

        align-items: flex-end;

        justify-content: center;

        padding-bottom: 6px;

    }



    .m-tr-plate-placeholder {

        flex: 1;

        display: flex;

        align-items: center;

        justify-content: center;

        font-family: var(--sl-font-mono, monospace);

        font-size: 1.35rem;

        font-weight: 800;

        letter-spacing: 3px;

        color: rgba(255, 255, 255, 0.38);

    }



    /* Mobile Mode Selector Cards in New Work Order */

    .m-wo-mode-grid {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 8px;

        margin-bottom: 12px;

    }



    .m-wo-mode-card {

        background: #FFFFFF;

        border: 2px solid #CBD5E1;

        border-radius: 10px;

        padding: 10px;

        cursor: pointer;

        transition: all 0.15s ease;

        display: flex;

        flex-direction: column;

        gap: 4px;

    }



    .m-wo-mode-card.active-lift {

        border-color: #2563EB;

        background: #EFF6FF;

    }



    .m-wo-mode-card.active-complete {

        border-color: #059669;

        background: #ECFDF5;

    }

}



.m-plate-scanner-modal {

    position: fixed;

    inset: 0;

    z-index: 100500 !important;

    background: rgba(11, 17, 32, 0.96);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 16px;

    color: #F8FAFC;

}

.m-plate-scanner-modal.active {

    display: flex !important;

}

.m-plate-scanner-inner {

    width: 100%;

    max-width: 460px;

    background: #1E293B;

    border: 1px solid #334155;

    border-radius: 16px;

    padding: 16px;

    box-shadow: 0 25px 50px rgba(0,0,0,0.5);

}

.m-plate-video-box {

    position: relative;

    width: 100%;

    height: 230px;

    background: #000;

    border-radius: 12px;

    overflow: hidden;

    border: 2px solid #38BDF8;

    margin: 10px 0;

}

.m-plate-video-box video {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.m-plate-frame-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    pointer-events: none;

    background: radial-gradient(transparent 45%, rgba(11, 17, 32, 0.72) 85%);

}

.m-tr-plate-box {

    width: 86%;

    max-width: 310px;

    height: 68px;

    border: 2.5px solid #38BDF8;

    border-radius: 10px;

    display: flex;

    align-items: stretch;

    overflow: hidden;

    position: relative;

    box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);

    background: rgba(255, 255, 255, 0.05);

}

.m-tr-plate-band {

    width: 28px;

    background: rgba(37, 99, 235, 0.9);

    color: #FFF;

    font-weight: 900;

    font-size: 0.72rem;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    padding-bottom: 6px;

}

.m-tr-plate-placeholder {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: monospace;

    font-size: 1.35rem;

    font-weight: 800;

    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.38);

}



/* ==========================================================================

   MOBILE CORE NATIVE UI COMPONENTS (.m-card, .m-form-*, .m-btn, .m-plate)

   Styles scoped strictly for mobile app parity and native aesthetic

   ========================================================================== */



/* Universal Form Controls inside Mobile App */

#mobileAppShell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),

#mobileAppShell select,

#mobileAppShell textarea,

.m-form-input,

.m-form-select,

.m-form-textarea {

    width: 100% !important;

    min-height: 44px !important;

    padding: 10px 14px !important;

    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */

    border: 1.5px solid #CBD5E1 !important;

    border-radius: 10px !important;

    background: #FFFFFF !important;

    color: #0F172A !important;

    box-sizing: border-box !important;

    outline: none !important;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;

    -webkit-appearance: none !important;

    appearance: none !important;

    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;

}



#mobileAppShell textarea,

.m-form-textarea {

    min-height: 80px !important;

    resize: vertical !important;

}



#mobileAppShell select,

.m-form-select {

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;

    background-position: right 12px center !important;

    background-size: 16px 16px !important;

    padding-right: 36px !important;

}



#mobileAppShell input:focus,

#mobileAppShell select:focus,

#mobileAppShell textarea:focus,

.m-form-input:focus,

.m-form-select:focus,

.m-form-textarea:focus {

    border-color: #2563EB !important;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;

}



/* Card Component (.m-card) */

.m-card {

    background: #FFFFFF !important;

    border: 1px solid #E2E8F0 !important;

    border-radius: 14px !important;

    padding: 14px !important;

    margin-bottom: 12px !important;

    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;

    color: #0F172A !important;

    box-sizing: border-box !important;

    position: relative !important;

}



/* Specialized Cards for Mobile Screens (Hero, Pricing, Activation) */

.m-card.m-card-license-hero,

.m-card-license-hero {

    background: linear-gradient(135deg, #0B132B 0%, #1E3A8A 55%, #1D4ED8 100%) !important;

    border: 1px solid rgba(59, 130, 246, 0.45) !important;

    border-radius: 18px !important;

    color: #FFFFFF !important;

    padding: 18px !important;

    margin-bottom: 14px !important;

    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28), 0 4px 14px rgba(37, 99, 235, 0.2) !important;

    position: relative !important;

    overflow: hidden !important;

    box-sizing: border-box !important;

}



.m-card.m-card-license-hero::before,

.m-card-license-hero::before {

    content: "";

    position: absolute;

    top: -50px;

    right: -50px;

    width: 140px;

    height: 140px;

    border-radius: 50%;

    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(37, 99, 235, 0) 70%);

    pointer-events: none;

}



.m-card.m-card-pricing-highlight,

.m-card-pricing-highlight {

    background: #FFFFFF !important;

    border: 2px solid #2563EB !important;

    border-radius: 18px !important;

    padding: 18px !important;

    margin-bottom: 14px !important;

    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12) !important;

    position: relative !important;

    box-sizing: border-box !important;

}



.m-card.m-card-activation,

.m-card-activation {

    background: #FFFFFF !important;

    border: 1px solid #E2E8F0 !important;

    border-radius: 18px !important;

    padding: 18px !important;

    margin-bottom: 24px !important;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;

    position: relative !important;

    box-sizing: border-box !important;

}



.m-license-screen-wrap {

    padding-bottom: 140px !important;

    box-sizing: border-box !important;

}



/* Form Helper Classes */

.m-form-group {

    margin-bottom: 12px !important;

}



.m-form-label {

    display: block !important;

    font-size: 0.8125rem !important;

    font-weight: 700 !important;

    color: #334155 !important;

    margin-bottom: 5px !important;

}



.m-screen-header {

    display: flex !important;

    justify-content: space-between !important;

    align-items: center !important;

    margin-bottom: 12px !important;

}



.m-screen-title {

    font-size: 1.25rem !important;

    font-weight: 800 !important;

    color: #0F172A !important;

    margin: 0 !important;

    letter-spacing: -0.02em !important;

}



/* Work Order Mode Selector Grid & Buttons */

.m-wo-mode-grid {

    display: grid !important;

    grid-template-columns: 1fr 1fr !important;

    gap: 10px !important;

    margin-bottom: 12px !important;

}



.m-wo-mode-btn {

    background: #FFFFFF !important;

    border: 2px solid #E2E8F0 !important;

    border-radius: 12px !important;

    padding: 12px 10px !important;

    text-align: center !important;

    cursor: pointer !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 4px !important;

    transition: all 0.2s ease !important;

    color: #334155 !important;

}



.m-wo-mode-btn.active-intake {

    background: #EFF6FF !important;

    border-color: #3B82F6 !important;

    color: #1D4ED8 !important;

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;

}



.m-wo-mode-btn.active-completed {

    background: #ECFDF5 !important;

    border-color: #10B981 !important;

    color: #047857 !important;

    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important;

}



/* Chips & Tags */

.m-wo-staff-chip,

.m-chip {

    padding: 6px 12px !important;

    border-radius: 20px !important;

    background: #F1F5F9 !important;

    border: 1px solid #CBD5E1 !important;

    color: #334155 !important;

    font-size: 0.8rem !important;

    font-weight: 600 !important;

    cursor: pointer !important;

    display: inline-flex !important;

    align-items: center !important;

    gap: 5px !important;

    transition: all 0.15s ease !important;

}



.m-chip-row {

    display: flex !important;

    flex-wrap: wrap !important;

    gap: 6px !important;

    margin: 6px 0 !important;

}



.m-wo-staff-chip.active,

.m-chip.active {

    background: #EFF6FF !important;

    border-color: #3B82F6 !important;

    color: #1D4ED8 !important;

}



/* Button Classes */

.m-btn {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 8px !important;

    min-height: 44px !important;

    padding: 10px 18px !important;

    border-radius: 12px !important;

    font-size: 0.875rem !important;

    font-weight: 700 !important;

    cursor: pointer !important;

    border: 1px solid transparent !important;

    transition: all 0.15s ease !important;

    text-decoration: none !important;

}



.m-btn:active {

    transform: scale(0.97) !important;

}



.m-btn-primary {

    background: #2563EB !important;

    color: #FFFFFF !important;

    border-color: #2563EB !important;

    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;

}



.m-btn-primary:active {

    background: #1D4ED8 !important;

}



.m-btn-secondary {

    background: #FFFFFF !important;

    color: #334155 !important;

    border-color: #CBD5E1 !important;

    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;

}



.m-btn-secondary:active {

    background: #F8FAFC !important;

}



.m-btn-danger {

    background: #EF4444 !important;

    color: #FFFFFF !important;

    border-color: #EF4444 !important;

}



/* Turkish License Plate Badge (.m-plate) */

.m-plate {

    display: inline-flex !important;

    align-items: center !important;

    background: #FFFFFF !important;

    border: 1.5px solid #0F172A !important;

    border-radius: 6px !important;

    padding: 2px 8px 2px 6px !important;

    font-family: 'DIN Alternate', 'Trebuchet MS', monospace !important;

    font-size: 0.88rem !important;

    font-weight: 800 !important;

    color: #0F172A !important;

    letter-spacing: 1px !important;

    box-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;

}



.m-plate::before {

    content: "TR" !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    background: #1D4ED8 !important;

    color: #FFFFFF !important;

    font-size: 0.6rem !important;

    font-weight: 900 !important;

    padding: 1px 4px !important;

    border-radius: 3px !important;

    margin-right: 6px !important;

}



/* Authentic Turkish Plate Input Component (.m-tr-plate-input-shell) */

.m-tr-plate-input-shell {

    display: flex !important;

    align-items: stretch !important;

    background: #FFFFFF !important;

    border: 2px solid #0F172A !important;

    border-radius: 12px !important;

    overflow: hidden !important;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;

    height: 52px !important;

}



.m-tr-plate-flag {

    width: 40px !important;

    background: #1D4ED8 !important;

    color: #FFFFFF !important;

    font-weight: 900 !important;

    font-size: 0.85rem !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    letter-spacing: 0.5px !important;

    flex-shrink: 0 !important;

}



.m-tr-plate-input {

    flex: 1 !important;

    border: none !important;

    background: transparent !important;

    padding: 0 14px !important;

    font-family: 'DIN Alternate', 'Trebuchet MS', monospace !important;

    font-size: 1.35rem !important;

    font-weight: 900 !important;

    letter-spacing: 3px !important;

    text-transform: uppercase !important;

    color: #0F172A !important;

    outline: none !important;

    box-shadow: none !important;

    min-height: auto !important;

}



/* Position top sync bar cleanly below mobile appbar without overlap */

#servislocDataSyncBar {

    top: calc(64px + env(safe-area-inset-top, 0px)) !important;

    font-size: 0.75rem !important;

    padding: 6px 14px !important;

    max-width: 90% !important;

    white-space: nowrap !important;

    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;

}



/* ==========================================================================

   STACKING CONTEXT OVERRIDES FOR NESTED MODALS ON MOBILE

   ========================================================================== */

#modalQuickPayment,

#modalCustomerPayment,

#modalCollectPayment,

#modalWorkOrderSplit,

#smQuickPaymentModal {

    z-index: 100650 !important;

}

#modalPartsCatalog,

#modalWorkOrderStockPicker,

#modalProContact,

#modalProContactLedger,

#registeredPlatesModal,

#registeredCustomersModal,

#corporateClientModal,

#kasaReverseEntryModal,

#modalCustomerEdit,

#modalSupplierPayment,

#modalSupplierLedger,

#modalExpense,

#modalMergeCustomers {

    z-index: 200000 !important;

}



#modalProInvoice,

#modalProCheck,

#modalProTransfer,

#modalSupplierPurchase {

    z-index: 100650 !important;

}



#modalVehiclePicker,

.vp-modal {

    z-index: 250000 !important;

}



#panelSubscriptionModal,

#panelPaytrModalBackdrop,

#trialExpiredLockModal {

    z-index: 300000 !important;

}



#modalMobileReceiptViewer {

    z-index: 100500 !important;

}



/* ==========================================================================

   MOBILE PRINT STYLES FOR SERVICE RECEIPTS & SLIPS

   ========================================================================== */

@media print {

    body.mobile-mode {

        overflow: visible !important;

        height: auto !important;

        position: static !important;

    }

    #mobileAppShell,

    .mobile-appbar,

    .mobile-bottom-nav,

    .mobile-fab,

    .cirak-fab-pill,

    #modalMobileReceiptViewer {

        display: none !important;

    }

}



/* ==========================================================================

   ENHANCED MOBILE APP EXTENSIONS (BRANCHES, CRM, PRO ACC, EXPERTISE, EXPORT)

   ========================================================================== */

.m-branch-pill {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 5px 10px;

    border-radius: 20px;

    background: rgba(37, 99, 235, 0.12);

    border: 1px solid rgba(37, 99, 235, 0.3);

    color: #1D4ED8;

    font-size: 0.72rem;

    font-weight: 800;

    cursor: pointer;

    white-space: nowrap;

    max-width: 140px;

    overflow: hidden;

    text-overflow: ellipsis;

    transition: all 0.15s ease;

}

.m-branch-pill:active {

    background: rgba(37, 99, 235, 0.25);

    transform: scale(0.97);

}



/* Horizontal Subtab Chips Bar */

.m-subtab-bar {

    display: flex;

    gap: 6px;

    overflow-x: auto;

    padding: 4px 2px 8px 2px;

    margin-bottom: 12px;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

}

.m-subtab-bar::-webkit-scrollbar {

    display: none;

}

.m-subtab-chip {

    flex-shrink: 0;

    padding: 7px 12px;

    border-radius: 12px;

    border: 1px solid #E2E8F0;

    background: #FFFFFF;

    color: #475569;

    font-size: 0.76rem;

    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);

    transition: all 0.15s ease;

}

.m-subtab-chip.active {

    border-color: #2563EB;

    background: #2563EB;

    color: #FFFFFF;

    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);

}

.m-subtab-chip:active {

    transform: scale(0.96);

}



/* 5-Step Segmented Fuel Level Picker */

.m-fuel-segmented {

    display: flex;

    background: #F1F5F9;

    padding: 3px;

    border-radius: 12px;

    border: 1.5px solid #CBD5E1;

    gap: 2px;

    margin-top: 4px;

}

.m-fuel-seg-btn {

    flex: 1;

    padding: 8px 2px;

    border-radius: 9px;

    border: none;

    background: transparent;

    color: #64748B;

    font-size: 0.73rem;

    font-weight: 800;

    cursor: pointer;

    text-align: center;

    transition: all 0.15s ease;

}

.m-fuel-seg-btn.active {

    background: #FFFFFF;

    color: #0F172A;

    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);

}

.m-fuel-seg-btn.active.fuel-empty { color: #DC2626; border-left: 2px solid #DC2626; }

.m-fuel-seg-btn.active.fuel-full { color: #059669; border-right: 2px solid #059669; }



/* Damage Hotspot Chips Grid */

.m-damage-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 6px;

    margin-top: 8px;

}

.m-damage-chip {

    padding: 8px 4px;

    border-radius: 10px;

    border: 1px solid #E2E8F0;

    background: #F8FAFC;

    color: #334155;

    font-size: 0.72rem;

    font-weight: 700;

    text-align: center;

    cursor: pointer;

    user-select: none;

    transition: all 0.12s ease;

    line-height: 1.25;

}

.m-damage-chip.active {

    background: #FEF2F2;

    border-color: #EF4444;

    color: #DC2626;

    font-weight: 800;

    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.15);

}

.m-damage-chip:active {

    transform: scale(0.96);

}



/* Compact Stock Inline Qty Buttons */

.m-inline-qty-ctrl {

    display: inline-flex;

    align-items: center;

    gap: 3px;

    background: #F1F5F9;

    border-radius: 8px;

    padding: 2px 4px;

    border: 1px solid #E2E8F0;

}

.m-inline-qty-btn {

    width: 32px;

    height: 32px;

    min-width: 32px;

    border-radius: 8px;

    border: 1px solid #CBD5E1;

    background: #FFFFFF;

    color: #0F172A;

    font-weight: 900;

    font-size: 1.05rem;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    line-height: 1;

    user-select: none;

    touch-action: manipulation;

    -webkit-tap-highlight-color: transparent;

    transition: all 0.12s ease;

}

.m-inline-qty-btn:active {

    background: #2563EB;

    color: #FFFFFF;

    border-color: #2563EB;

    transform: scale(0.92);

}



/* Universal Mobile Bottom Sheet */

.m-bottom-sheet-backdrop {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(8px);

    z-index: 100300;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.22s ease;

}

.m-bottom-sheet-backdrop.active {

    opacity: 1;

    pointer-events: auto;

}

.m-bottom-sheet-content {

    background: #FFFFFF;

    border-radius: 24px 24px 0 0;

    width: 100%;

    max-width: 520px;

    max-height: 88vh;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;

    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);

    transform: translateY(100%);

    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);

}

.m-bottom-sheet-backdrop.active .m-bottom-sheet-content {

    transform: translateY(0);

}

.m-bottom-sheet-handle {

    width: 44px;

    height: 5px;

    border-radius: 3px;

    background: #CBD5E1;

    margin: 10px auto 4px auto;

    flex-shrink: 0;

}

.m-bottom-sheet-body {

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

    padding: 14px 18px 24px 18px;

}



/* ==========================================================================

   MOBILE ACCORDION / COLLAPSIBLE CARDS SYSTEM (FOR WORK ORDERS & FORMS)

   ========================================================================== */

.m-accordion-card {

    background: #FFFFFF;

    border: 1.5px solid #E2E8F0;

    border-radius: 14px;

    margin-bottom: 10px;

    overflow: hidden;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;

}

.m-accordion-card.open {

    border-color: #93C5FD;

    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);

}

.m-accordion-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 12px 14px;

    background: #FFFFFF;

    cursor: pointer;

    user-select: none;

    -webkit-tap-highlight-color: transparent;

    transition: background 0.15s ease;

}

.m-accordion-card.open .m-accordion-header {

    background: #F8FAFC;

    border-bottom: 1px solid #E2E8F0;

}

.m-accordion-title-wrap {

    display: flex;

    align-items: center;

    gap: 10px;

    flex: 1;

    min-width: 0;

}

.m-accordion-icon-box {

    width: 34px;

    height: 34px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 0.95rem;

    flex-shrink: 0;

    background: #F1F5F9;

    color: #475569;

}

.m-accordion-card.open .m-accordion-icon-box {

    background: #EFF6FF;

    color: #2563EB;

}

.m-accordion-texts {

    flex: 1;

    min-width: 0;

}

.m-accordion-title {

    font-weight: 800;

    font-size: 0.88rem;

    color: #0F172A;

    line-height: 1.25;

    display: flex;

    align-items: center;

    gap: 6px;

    flex-wrap: wrap;

}

.m-accordion-summary {

    font-size: 0.72rem;

    color: #64748B;

    margin-top: 2px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    font-weight: 600;

}

.m-accordion-chevron {

    width: 28px;

    height: 28px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #64748B;

    font-size: 0.82rem;

    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    flex-shrink: 0;

    background: #F1F5F9;

}

.m-accordion-card.open .m-accordion-chevron {

    transform: rotate(180deg);

    color: #2563EB;

    background: #EFF6FF;

}

.m-accordion-body {

    padding: 14px;

    display: none;

    animation: mAccSlideDown 0.22s ease-out;

}

.m-accordion-card.open .m-accordion-body {

    display: block;

}

@keyframes mAccSlideDown {

    from { opacity: 0; transform: translateY(-4px); }

    to { opacity: 1; transform: translateY(0); }

}



/* ==========================================================================

   BULLETPROOF MOBILE PRINT SYSTEM (IOS AIRPRINT & ANDROID PRINT SERVICE)

   ========================================================================== */

#mobilePrintReceiptContainer {

    display: none;

}



@media screen {

    body.is-printing-mobile-receipt #mobilePrintReceiptContainer {

        display: block !important;

        position: fixed !important;

        inset: 0 !important;

        z-index: 999999 !important;

        background: #FFFFFF !important;

        overflow-y: auto !important;

        padding: 16px !important;

        -webkit-overflow-scrolling: touch;

    }

}



@media print {

    body.is-printing-mobile-receipt {

        background: #FFFFFF !important;

        overflow: visible !important;

        height: auto !important;

        position: static !important;

    }

    body.is-printing-mobile-receipt > *:not(#mobilePrintReceiptContainer) {

        display: none !important;

        visibility: hidden !important;

    }

    body.is-printing-mobile-receipt #mobilePrintReceiptContainer {

        display: block !important;

        position: static !important;

        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;

        background: #FFFFFF !important;

        visibility: visible !important;

    }

    body.is-printing-mobile-receipt #mobilePrintReceiptContainer * {

        visibility: visible !important;

    }

    body.is-printing-mobile-receipt .m-print-table {

        display: table !important;

        width: 100% !important;

        border-collapse: collapse !important;

    }

    body.is-printing-mobile-receipt .m-print-tr {

        display: table-row !important;

    }

    body.is-printing-mobile-receipt .m-print-td,

    body.is-printing-mobile-receipt .m-print-th {

        display: table-cell !important;

    }

    @page {

        size: auto;

        margin: 8mm;

    }

}



/* ==========================================================================

   MOBILE NATIVE APP LAUNCH / SPLASH SCREEN (1s MAX)

   ========================================================================== */

.mobile-splash-screen {

    position: fixed;

    inset: 0;

    z-index: 99999999;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: #FFFFFF;

    background: radial-gradient(circle at 50% 36%, #F0F7FF 0%, #FFFFFF 72%);

    padding: 24px;

    box-sizing: border-box;

    overflow: hidden;

    touch-action: none;

    user-select: none;

    -webkit-user-select: none;

    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);

}



.mobile-splash-card {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    max-width: 320px;

    width: 100%;

}



.mobile-splash-logo-wrap {

    animation: splashScaleIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;

}



.mobile-splash-logo {

    width: 145px;

    height: auto;

    max-width: 60vw;

    object-fit: contain;

    filter: drop-shadow(0 6px 20px rgba(37, 99, 235, 0.15));

}



.mobile-splash-welcome {

    font-size: 1.35rem;

    font-weight: 800;

    color: #0F172A;

    letter-spacing: -0.02em;

    margin-top: 22px;

    opacity: 1;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

}



.mobile-splash-sub {

    font-size: 0.8rem;

    font-weight: 500;

    color: #64748B;

    margin-top: 6px;

    opacity: 1;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

}



.mobile-splash-loader {

    width: 100px;

    height: 3px;

    background: #E2E8F0;

    border-radius: 99px;

    overflow: hidden;

    margin-top: 26px;

    opacity: 1;

}



.mobile-splash-loader-bar {

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, #2563EB, #3B82F6, #60A5FA);

    border-radius: 99px;

    transform: translateX(-100%);

    animation: splashProgress 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;

}



.mobile-splash-screen.splash-fade-out {

    opacity: 0 !important;

    transform: scale(1.03) !important;

    pointer-events: none !important;

}



@keyframes splashScaleIn {

    0% {

        opacity: 0;

        transform: scale(0.86) translateY(10px);

    }

    100% {

        opacity: 1;

        transform: scale(1) translateY(0);

    }

}



@keyframes splashFadeIn {

    0% {

        opacity: 0;

        transform: translateY(6px);

    }

    100% {

        opacity: 1;

        transform: translateY(0);

    }

}



@keyframes splashProgress {

    0% { transform: translateX(-100%); }

    50% { transform: translateX(-25%); }

    100% { transform: translateX(0%); }

}



@media (min-width: 769px) {

    body:not(.mobile-mode) .mobile-splash-screen {

        display: none !important;

    }

}















/* High priority z-index for Vehicle Picker Modal */

.vp-modal, #modalVehiclePicker { z-index: 200050 !important; }

