.accueil-menu-item{
    font-size:50px;
}
.color-info{
    color:#028ee1;
}
.color-success{
    color:#1eacbe;
}
.color-warning{
    color:#e9ab2e;
}
.color-primary{
    color:#6352ce;
}
.color-danger{
    color:#e6294b;
}
.btn-add{
    padding: 10px 10px 10px 10px;
    font-size:16px;
}
.style-carac{
    background:#fff;
    padding:10px 10px 6px 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.171);
    margin-top:20px;
}
.style-carac-textaera{
    background:#fff;
    padding:5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.171);
}
.style-carac-type{
    border: 1px solid #eeeeee;
    background: #eeeeee;
    padding:10px 10px 6px 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.171);
    margin-top:20px;
}
.label-detail-title{
    font-weight: bold;
}

/* Spunchy admin refresh */
:root {
    --sp-bg: #f5f7fb;
    --sp-surface: #ffffff;
    --sp-surface-soft: #f8fafc;
    --sp-border: #e6ebf2;
    --sp-text: #172033;
    --sp-muted: #667085;
    --sp-blue: #2563eb;
    --sp-blue-dark: #123b86;
    --sp-green: #10a37f;
    --sp-amber: #f59e0b;
    --sp-red: #ef4444;
    --sp-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}

html,
body {
    background: var(--sp-bg) !important;
    color: var(--sp-text);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body,
.page-wrapper,
.container-fluid {
    color: var(--sp-text);
}

a,
a:hover,
a:focus {
    color: var(--sp-blue);
}

.topbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--sp-border);
    box-shadow: 0 8px 26px rgba(15, 23, 42, .06);
}

.topbar .navbar {
    min-height: 72px;
    padding: 0 20px;
}

.navbar-header {
    background: transparent !important;
    min-width: 240px;
}

.spunchy-admin-brand {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 0 18px !important;
    text-decoration: none !important;
}

.spunchy-admin-brand .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    flex-shrink: 0;
}

.spunchy-admin-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
}

.spunchy-admin-brand .brand-word {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.01em;
    color: var(--sp-blue-dark);
}

.left-sidebar,
.sidebar-nav,
.scroll-sidebar {
    background: #0b1220 !important;
}

.left-sidebar {
    box-shadow: 10px 0 28px rgba(15, 23, 42, .10);
}

.sidebar-nav {
    padding: 16px 12px 24px;
}

.sidebar-nav ul li a {
    color: #cbd5e1 !important;
    border-radius: 12px;
    border: 0 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    margin: 3px 0;
    padding: 10px 14px;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.sidebar-nav ul li a i {
    color: #93a4bc !important;
    font-size: 18px;
    min-width: 24px;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active,
.sidebar-nav>ul>li.active>a,
.sidebar-nav .has-arrow[aria-expanded="true"] {
    background: rgba(37, 99, 235, .18) !important;
    color: #ffffff !important;
    transform: translateX(2px);
}

.sidebar-nav ul li a:hover i,
.sidebar-nav ul li a.active i,
.sidebar-nav>ul>li.active>a i {
    color: #ffffff !important;
}

.sidebar-nav ul li ul {
    padding: 4px 0 8px 14px;
}

.sidebar-nav ul li ul li a {
    color: #aebcd0 !important;
    font-size: 13px;
    padding: 8px 12px;
    margin-left: 10px;
}

.nav-subtitle {
    margin: 14px 0 6px;
    padding: 0 12px;
}

.nav-subtitle-span {
    color: #7d8ca5 !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-wrapper {
    background: var(--sp-bg) !important;
    padding-top: 72px;
}

.page-titles {
    background: transparent !important;
    border: 0 !important;
    margin: 0 0 18px !important;
    padding: 24px 28px 8px !important;
}

.page-titles h3,
.text-themecolor {
    color: var(--sp-text) !important;
    font-weight: 900 !important;
    letter-spacing: -.01em;
}

.breadcrumb {
    background: transparent !important;
    font-size: 13px;
    font-weight: 700;
}

.breadcrumb-item,
.breadcrumb-item.active,
.breadcrumb a {
    color: var(--sp-muted) !important;
}

.container-fluid {
    padding: 0 28px 32px !important;
}

.card,
.white-box,
.setting-page fieldset,
.vendor_payout_create-inner fieldset,
.restaurant_payout_create-inner fieldset {
    border: 1px solid var(--sp-border) !important;
    border-radius: 14px !important;
    box-shadow: var(--sp-shadow) !important;
    background: var(--sp-surface) !important;
}

.card {
    overflow: hidden;
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--sp-border) !important;
    color: var(--sp-text) !important;
    font-weight: 900;
}

.card-body {
    color: var(--sp-text);
}

.table-responsive {
    border-radius: 12px;
}

.table,
table.dataTable {
    color: var(--sp-text) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table thead th,
table.dataTable thead th {
    background: var(--sp-surface-soft) !important;
    color: #475467 !important;
    border-bottom: 1px solid var(--sp-border) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td,
.table th,
table.dataTable tbody td,
table.dataTable tbody th {
    border-top: 1px solid #edf1f6 !important;
    color: var(--sp-text) !important;
    vertical-align: middle !important;
}

.table tbody tr:hover,
table.dataTable tbody tr:hover {
    background: #f7fbff !important;
}

.text-muted,
.help-block,
.form-text,
small,
.small {
    color: var(--sp-muted) !important;
}

label,
.control-label {
    color: #344054 !important;
    font-size: 13px;
    font-weight: 800 !important;
}

.form-control,
select.form-control,
textarea.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 42px;
    border: 1px solid #d7deea !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: var(--sp-text) !important;
    box-shadow: none !important;
    font-size: 14px;
}

.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: var(--sp-blue) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
}

.btn {
    border-radius: 10px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

.btn-primary,
.btn-info,
.btn-warning {
    background: var(--sp-blue) !important;
    border-color: var(--sp-blue) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-info:hover,
.btn-warning:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.btn-default,
.btn-light {
    background: #eef3fb !important;
    border-color: #eef3fb !important;
    color: #344054 !important;
}

.badge,
.label,
.badge-stat,
.info-pill,
.service-tag,
.svc-tag {
    font-weight: 900 !important;
}

.action-btn a,
.action-icon,
.delete-btn,
.edit-btn,
.view-btn {
    text-decoration: none !important;
}

#overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

#overlay[style*="block"] {
    display: flex !important;
}

.footer {
    background: #ffffff !important;
    border-top: 1px solid var(--sp-border);
    color: var(--sp-muted);
}

.login-register {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .24), transparent 34%),
        linear-gradient(135deg, #07111f 0%, #0f1d32 55%, #102a5c 100%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-logo img {
    max-width: 132px;
    max-height: 132px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .26));
}

.login-box.card {
    width: min(430px, 100%);
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28) !important;
}

.login-box .card-body {
    padding: 34px !important;
}

.login-box .box-title {
    color: var(--sp-text);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

@media (max-width: 767px) {
    .topbar .navbar {
        padding: 0 10px;
    }

    .navbar-header {
        min-width: auto;
    }

    .spunchy-admin-brand .brand-word {
        display: none;
    }

    .container-fluid,
    .page-titles {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Spunchy final admin shell - loaded last to beat legacy theme colors */
body #app,
body #main-wrapper {
    background:
        linear-gradient(180deg, rgba(37, 99, 235, .05), transparent 280px),
        #f4f7fb !important;
}

body .topbar {
    background: rgba(255,255,255,.94) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(214, 222, 235, .9) !important;
    box-shadow: 0 10px 32px rgba(15, 23, 42, .08) !important;
}

body .left-sidebar,
body .scroll-sidebar,
body .sidebar-nav {
    background:
        linear-gradient(180deg, #071326 0%, #0b1630 48%, #09111f 100%) !important;
}

body .left-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(59,130,246,.18), transparent 34%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 14px);
}

body .sidebar-nav ul li a {
    position: relative;
    overflow: hidden;
}

body .sidebar-nav ul li a::before {
    content: "";
    position: absolute;
    inset: 6px auto 6px 6px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background .18s ease;
}

body .sidebar-nav ul li a:hover::before,
body .sidebar-nav ul li a.active::before,
body .sidebar-nav>ul>li.active>a::before {
    background: #60a5fa;
}

body .sidebar-nav ul li a:hover,
body .sidebar-nav ul li a.active,
body .sidebar-nav>ul>li.active>a,
body .sidebar-nav .has-arrow[aria-expanded="true"] {
    background: linear-gradient(90deg, rgba(37, 99, 235, .30), rgba(37, 99, 235, .10)) !important;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .14);
}

body .page-wrapper {
    padding-top: 76px !important;
}

body .page-titles {
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(245,248,255,.88)) !important;
    border: 1px solid rgba(214,222,235,.85) !important;
    border-radius: 18px !important;
    margin: 20px 28px 18px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

body .container-fluid {
    max-width: 1640px;
}

body .card,
body .provider-stat-card,
body .fleet-stat,
body .spunchy-quick-action,
body .business-analytics .card-box {
    border-radius: 18px !important;
    border: 1px solid rgba(214, 222, 235, .86) !important;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .08) !important;
    transition: box-shadow .18s ease, border-color .18s ease;
}

body .spunchy-quick-action:hover,
body .business-analytics .card-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, .12) !important;
    border-color: rgba(37, 99, 235, .22) !important;
}

body .card:hover {
    box-shadow: 0 18px 44px rgba(15, 23, 42, .10) !important;
    border-color: rgba(37, 99, 235, .16) !important;
}

body .business-analytics .card-box {
    min-height: 128px;
    background:
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
    color: #172033 !important;
    padding: 22px !important;
}

body .business-analytics .card-box h5 {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body .business-analytics .card-box h2 {
    color: #0f172a !important;
    font-size: 34px !important;
    font-weight: 900 !important;
}

body .business-analytics .card-box i {
    color: #2563eb !important;
    opacity: .16 !important;
    font-size: 54px !important;
}

body .spunchy-dashboard-header {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    background:
        linear-gradient(120deg, #123b86 0%, #2563eb 46%, #0ea5e9 100%) !important;
    box-shadow: 0 24px 60px rgba(37, 99, 235, .26);
}

body .spunchy-dashboard-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,.18) 45%, transparent 56%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 48px);
    animation: spunchyShine 7s linear infinite;
}

body .spunchy-dashboard-header > * {
    position: relative;
    z-index: 1;
}

body .spunchy-dashboard-header h2 {
    font-size: 32px !important;
    letter-spacing: -.02em !important;
}

body .badge-live {
    animation: spunchyPulse 1.8s ease-in-out infinite;
}

body .spunchy-quick-actions {
    margin-top: -42px;
    position: relative;
    z-index: 2;
}

body .spunchy-quick-action {
    min-height: 96px;
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: blur(12px);
}

body .spunchy-quick-action i {
    background: linear-gradient(135deg, #e8f0ff, #dbeafe) !important;
    color: #1d4ed8 !important;
}

body .table-responsive {
    border: 1px solid rgba(214,222,235,.86);
    background: #fff;
}

body table.dataTable thead th,
body .table thead th {
    background: #f3f6fb !important;
}

body .modal-content {
    border-radius: 20px !important;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .24) !important;
}

body .btn-primary,
body .filter-pill.active,
body .assign-imei-btn:hover,
body .action-icon.view:hover,
body .action-icon.approve:hover {
    background: linear-gradient(135deg, #2563eb, #123b86) !important;
    border-color: #2563eb !important;
}

body .btn-danger,
body .action-icon.reject:hover {
    background: linear-gradient(135deg, #ef4444, #be123c) !important;
    border-color: #ef4444 !important;
}

body .form-control,
body select.form-control {
    background: #f9fbfe !important;
}

body .form-control:focus {
    background: #ffffff !important;
}

body .login-register {
    background:
        linear-gradient(115deg, rgba(37,99,235,.28), transparent 38%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 56px),
        linear-gradient(135deg, #071326 0%, #0f1d32 58%, #123b86 100%) !important;
}

body .login-logo {
    animation: spunchyFloat 3.6s ease-in-out infinite;
}

@keyframes spunchyShine {
    0% { background-position: -260px 0, 0 0; }
    100% { background-position: 460px 0, 140px 0; }
}

@keyframes spunchyPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,.24); }
    50% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

@keyframes spunchyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Mobile/tablet admin polish - keep this at the very end. */
@media (max-width: 991px) {
    body .page-wrapper,
    body .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body .topbar,
    body .topbar .top-navbar,
    body .navbar-header {
        min-height: 64px !important;
    }

    body .topbar .top-navbar .navbar-header {
        width: auto !important;
        flex-shrink: 0 !important;
    }

    body .topbar .navbar-collapse,
    body .topbar .navbar-nav {
        min-width: 0 !important;
    }

    body .page-titles {
        padding: 18px 14px !important;
        margin: 0 -12px 18px !important;
    }

    body .page-titles h3,
    body .page-titles h4,
    body .spunchy-dashboard-header h2 {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    body .business-analytics .card-box,
    body .spunchy-quick-action,
    body .card,
    body .white-box {
        margin-bottom: 14px !important;
        border-radius: 16px !important;
    }

    body .business-analytics .card-box h2 {
        font-size: 26px !important;
    }

    body .table-responsive,
    body .dataTables_wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body table.table,
    body table.dataTable {
        min-width: 760px !important;
    }

    body .dataTables_length,
    body .dataTables_filter,
    body .dataTables_info,
    body .dataTables_paginate {
        float: none !important;
        width: 100% !important;
        text-align: left !important;
        margin: 8px 0 !important;
    }

    body .dataTables_filter input,
    body .form-control,
    body select.form-control {
        width: 100% !important;
        max-width: 100% !important;
    }

    body .modal-dialog {
        margin: 12px !important;
    }
}

@media (max-width: 575px) {
    body .left-sidebar {
        width: 250px !important;
    }

    body .page-wrapper {
        padding-top: 64px !important;
    }

    body .spunchy-dashboard-header {
        min-height: 132px !important;
        padding: 18px !important;
        border-radius: 0 0 22px 22px !important;
    }

    body .spunchy-quick-actions {
        margin-top: -24px !important;
    }

    body .btn,
    body .action-icon,
    body button {
        min-height: 38px !important;
    }

    body .filter-pill,
    body .nav-pills .nav-link {
        margin-bottom: 8px !important;
        white-space: nowrap !important;
    }

    body .row {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }

    body .row > [class*="col-"] {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    body .card-body {
        padding: 14px !important;
    }

    body .action-btn {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    body .action-btn a,
    body .action-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
    }
}

/* Touch-friendly improvements for all mobile */
@media (max-width: 991px) {
    body .sidebar-nav ul li a {
        padding: 12px 14px !important;
        min-height: 44px !important;
    }

    body .topbar .nav-toggler {
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body .navbar-nav .dropdown-menu {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 0 0 16px 16px !important;
        box-shadow: 0 12px 40px rgba(0,0,0,.15) !important;
    }

    body .breadcrumb {
        flex-wrap: wrap !important;
        font-size: 12px !important;
    }

    body .page-titles h3 {
        word-break: break-word !important;
    }

    body .select2-container {
        width: 100% !important;
    }

    body .nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
    }

    body .nav-tabs .nav-item {
        flex-shrink: 0 !important;
    }

    body .card-header .nav {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL MOBILE RESPONSIVE — all screens ≤ 767px
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Sidebar collapses cleanly */
    body .left-sidebar { z-index: 1050 !important; }

    /* Page wrapper full width */
    body .page-wrapper { margin-left: 0 !important; padding: 0 !important; }
    body #main-wrapper.show-sidebar .page-wrapper { margin-left: 0 !important; }

    /* Topbar */
    body .topbar { padding: 0 10px !important; height: 56px !important; }
    body .topbar .navbar-header { width: 100% !important; }
    body .top-left-part { width: auto !important; }

    /* Page titles */
    body .page-breadcrumb { padding: 12px 14px 0 !important; }
    body .page-title { font-size: 17px !important; margin-bottom: 2px !important; }
    body .page-titles { padding: 12px 14px !important; }
    body .container-fluid { padding: 12px 10px !important; }

    /* Cards */
    body .card { border-radius: 12px !important; margin-bottom: 14px !important; }
    body .card-header { padding: 12px 14px !important; font-size: 14px !important; flex-wrap: wrap !important; gap: 8px !important; }
    body .card-body { padding: 14px !important; }
    body .card-footer { padding: 10px 14px !important; }

    /* Tables — horizontal scroll */
    body .table-responsive { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
    body .table th, body .table td { white-space: nowrap !important; font-size: 12px !important; padding: 8px 10px !important; }

    /* Buttons — full width on mobile */
    body .btn-block-mobile { display: block !important; width: 100% !important; margin-bottom: 6px !important; }
    body .d-flex .btn { flex: 1 !important; font-size: 12px !important; padding: 8px 10px !important; }

    /* Forms */
    body .form-control { font-size: 14px !important; height: 40px !important; }
    body select.form-control { height: 40px !important; }
    body textarea.form-control { height: auto !important; }
    body .form-group { margin-bottom: 12px !important; }
    body label { font-size: 12px !important; }

    /* Input groups */
    body .input-group .btn { padding: 8px 12px !important; }

    /* Stats / summary tiles */
    body .stat-tile { padding: 12px 8px !important; }
    body .stat-tile-val { font-size: 18px !important; }
    body .stat-tile-label { font-size: 10px !important; }

    /* API cards (vehicle tracking) */
    body .api-card-header { font-size: 13px !important; padding: 12px 14px !important; flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
    body .api-card-header input, body .api-card-header select { width: 100% !important; }

    /* Modals */
    body .modal-dialog { margin: 10px !important; }
    body .modal-content { border-radius: 14px !important; }

    /* DataTables */
    body .dataTables_wrapper .dataTables_filter input { width: 140px !important; }
    body .dataTables_wrapper .dataTables_length select { width: 60px !important; }
    body .dataTables_wrapper .row { flex-direction: column !important; gap: 8px !important; }

    /* Profile / person cards */
    body .person-card { flex-direction: column !important; text-align: center !important; }
    body .person-avatar { margin: 0 auto 8px !important; }

    /* Action buttons in tables */
    body .action-btn { display: flex !important; flex-wrap: wrap !important; gap: 4px !important; }

    /* Hide non-essential columns hint */
    body .hide-mobile { display: none !important; }

    /* Charts */
    body canvas { max-height: 220px !important; }

    /* Pagination */
    body .pagination { flex-wrap: wrap !important; }

    /* Badges inline */
    body .badge { font-size: 10px !important; padding: 3px 7px !important; }

    /* Row gutters */
    body .row { margin-left: -6px !important; margin-right: -6px !important; }
    body .row > [class*="col-"] { padding-left: 6px !important; padding-right: 6px !important; }
}


/* ═══════════════════════════════════════════════════════════════════════
   SPUNCHY ADMIN — COMPREHENSIVE MOBILE RESPONSIVE LAYER (v2026-05-24)
   Covers every admin page: dashboard, providers, marketplace bookings,
   identity verifications, admin notifications, vehicle tracking, etc.
   Drawer-style sidebar with overlay, fluid tables, stacked stat cards.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Tablet & smaller (≤ 991px) ───────────────────────────────────── */
@media (max-width: 991px) {

    /* Sidebar becomes an off-canvas drawer */
    body .left-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 260px !important;
        max-width: 80vw !important;
        z-index: 1060 !important;
        transform: translateX(-100%) !important;
        transition: transform .28s cubic-bezier(.4,.0,.2,1) !important;
        box-shadow: 2px 0 18px rgba(0,0,0,.18) !important;
    }
    body.show-sidebar .left-sidebar,
    body #main-wrapper.show-sidebar .left-sidebar {
        transform: translateX(0) !important;
    }
    /* Backdrop overlay when drawer open */
    body.show-sidebar::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 1055;
        animation: spunchyOverlay .25s ease;
    }
    @keyframes spunchyOverlay {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* Page wrapper full-width regardless of sidebar state */
    body .page-wrapper,
    body #main-wrapper .page-wrapper,
    body #main-wrapper.show-sidebar .page-wrapper {
        margin-left: 0 !important;
    }

    /* Hamburger always visible on tablet & mobile */
    body .nav-toggler.hidden-md-up { display: inline-flex !important; }
    body .sidebartoggler.hidden-sm-down { display: none !important; }
}

/* ─── Phone (≤ 767px) ──────────────────────────────────────────────── */
@media (max-width: 767px) {

    /* Topbar tightening */
    body .topbar { padding: 0 8px !important; height: 56px !important; }
    body .navbar-brand { padding: 0 8px !important; }
    body .navbar-brand .brand-word { font-size: 15px !important; }
    body .topbar .navbar-nav { gap: 0 !important; }
    body .topbar .nav-link { padding: 8px 10px !important; }
    body .top-navbar .navbar-collapse { flex: 1 !important; }

    /* Profile picture smaller */
    body .topbar .profile-pic { width: 32px !important; height: 32px !important; }

    /* Page content */
    body .page-wrapper > .container-fluid { padding: 12px 12px !important; }
    body .page-breadcrumb { padding: 12px 14px 0 !important; }
    body .page-title { font-size: 17px !important; line-height: 1.3 !important; }
    body .page-titles h3, body .page-titles h4 { font-size: 17px !important; }

    /* Stat cards stack 2-up */
    body .row > .col-md-3 { flex: 0 0 50% !important; max-width: 50% !important; margin-bottom: 12px !important; }
    body .row > .col-md-4 { flex: 0 0 100% !important; max-width: 100% !important; margin-bottom: 12px !important; }
    body .row > .col-md-6 { flex: 0 0 100% !important; max-width: 100% !important; margin-bottom: 12px !important; }
    body .row > .col-md-8, body .row > .col-md-9 { flex: 0 0 100% !important; max-width: 100% !important; }
    body .row > .col-lg-3, body .row > .col-lg-4, body .row > .col-lg-6, body .row > .col-lg-8, body .row > .col-lg-9, body .row > .col-lg-12 {
        flex: 0 0 100% !important; max-width: 100% !important;
    }

    /* Marketplace booking stat strip */
    body .row > .col-sm-6.col-lg-2,
    body .row > .col-sm-6.col-lg-3 {
        flex: 0 0 50% !important; max-width: 50% !important; margin-bottom: 10px !important;
    }
    body .card-box { padding: 12px !important; }
    body .card-box h3 { font-size: 22px !important; margin: 0 !important; }
    body .card-box h6 { font-size: 12px !important; margin-bottom: 4px !important; }

    /* Tabs / pills wrap & scroll horizontally */
    body .nav-tabs, body .nav-pills {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        white-space: nowrap !important;
        padding-bottom: 4px !important;
    }
    body .nav-tabs::-webkit-scrollbar,
    body .nav-pills::-webkit-scrollbar { display: none !important; }
    body .nav-tabs .nav-item, body .nav-pills .nav-item { flex: 0 0 auto !important; }
    body .nav-tabs .nav-link, body .nav-pills .nav-link { font-size: 13px !important; padding: 6px 12px !important; }

    /* DataTables / tables — horizontal scroll, smaller text */
    body .table-responsive { overflow-x: auto !important; border-radius: 10px !important; }
    body .table { font-size: 12px !important; }
    body .table th, body .table td { padding: 8px 10px !important; white-space: nowrap !important; }
    body .table img.doc-thumb,
    body .table .iv-doc-img { width: 50px !important; height: 50px !important; }

    /* Filter row */
    body .row.mb-3 > .col-md-4,
    body .row.mb-3 > .col-md-3 { margin-bottom: 8px !important; }

    /* Filter inputs */
    body input.form-control,
    body select.form-control {
        font-size: 14px !important;
        height: 40px !important;
        border-radius: 8px !important;
    }

    /* Identity verification action buttons stack */
    body .iv-action-btn,
    body .btn-approve-doc,
    body .btn-reject-doc {
        margin: 2px 4px 2px 0 !important;
        font-size: 11px !important;
    }

    /* Admin notifications cards */
    body .notif-card .d-flex.justify-content-between { flex-direction: column !important; gap: 10px !important; align-items: flex-start !important; }
    body .notif-content { font-size: 11px !important; padding: 8px 10px !important; }
    body .wa-btn { width: 100% !important; justify-content: center !important; }

    /* Provider show page, vehicle cards */
    body .vehicle-card, body .driver-card { padding: 12px !important; }
    body .vehicle-card .row, body .driver-card .row { row-gap: 8px !important; }

    /* Modal dialogs */
    body .modal-dialog { margin: 10px !important; max-width: calc(100vw - 20px) !important; }
    body .modal-dialog.modal-lg { max-width: calc(100vw - 20px) !important; }
    body .modal-content { border-radius: 14px !important; }
    body .modal-header { padding: 14px 16px !important; }
    body .modal-body { padding: 14px 16px !important; }
    body .modal-footer { padding: 10px 16px !important; flex-direction: column-reverse !important; gap: 8px !important; }
    body .modal-footer .btn { width: 100% !important; margin: 0 !important; }

    /* Buttons */
    body .btn { font-size: 13px !important; padding: 8px 14px !important; }
    body .btn-sm { font-size: 11px !important; padding: 5px 10px !important; }
    body .btn-block { width: 100% !important; }

    /* Form actions row */
    body .form-actions { flex-direction: column !important; gap: 8px !important; }
    body .form-actions .btn { width: 100% !important; }

    /* Search inputs in card headers */
    body .card-header .input-group { width: 100% !important; margin-top: 8px !important; }

    /* Vehicle tracking map */
    body #map, body .map-container { height: 300px !important; }

    /* DataTable footer pagination */
    body .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 4px 8px !important; font-size: 12px !important;
    }
    body .dataTables_wrapper .dataTables_info { font-size: 11px !important; }

    /* Footer */
    body .footer { padding: 14px 12px !important; font-size: 11px !important; text-align: center !important; }

    /* Login page (auth/login.blade.php) */
    body .auth-box { width: 92vw !important; max-width: 380px !important; padding: 24px 20px !important; }

    /* Hide non-essential text labels in tight spaces */
    body .hide-mobile { display: none !important; }
    body .show-mobile { display: block !important; }
}

/* ─── Tiny phone (≤ 480px) — extra-compact ─────────────────────────── */
@media (max-width: 480px) {

    /* Stat cards single column */
    body .row > .col-sm-6,
    body .row > .col-sm-6.col-lg-2,
    body .row > .col-sm-6.col-lg-3,
    body .row > .col-md-3 {
        flex: 0 0 100% !important; max-width: 100% !important;
    }

    /* Page padding */
    body .page-wrapper > .container-fluid { padding: 10px 8px !important; }
    body .page-breadcrumb { padding: 10px 10px 0 !important; }
    body .page-title { font-size: 16px !important; }

    /* Card body */
    body .card-body { padding: 12px !important; }

    /* Table cells even tighter */
    body .table th, body .table td { padding: 6px 8px !important; font-size: 11px !important; }
    body .table img.doc-thumb,
    body .table .iv-doc-img { width: 42px !important; height: 42px !important; }

    /* Stat tile typography */
    body .iv-stat h3,
    body .card-box h3 { font-size: 20px !important; }
    body .iv-stat p,
    body .card-box h6 { font-size: 11px !important; }

    /* Hamburger touch target */
    body .nav-toggler { padding: 12px !important; }
}

/* ─── Print: hide sidebar & topbar so reports look clean ──────────── */
@media print {
    body .left-sidebar, body .topbar, body .footer { display: none !important; }
    body .page-wrapper { margin-left: 0 !important; padding: 0 !important; }
    body .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ─── Show-mobile helper (paired with hide-mobile) ─────────────────── */
.show-mobile { display: none; }
@media (max-width: 767px) { .show-mobile { display: block; } }
