/**
 * Mobile Responsive Styles
 * 
 * Comprehensive mobile-first responsive design for AC Order Management System
 * This file contains all mobile-specific optimizations and touch-friendly improvements
 * 
 * @package AcOrderManagement
 * @since 2.5.0
 */

/* ==========================================================================
   CSS Custom Properties for Mobile
   ========================================================================== */
:root {
    --mobile-padding: 12px;
    --mobile-radius: 10px;
    --mobile-font-base: 14px;
    --mobile-font-small: 12px;
    --mobile-touch-target: 44px;
    --mobile-gap: 10px;
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

/* ==========================================================================
   Base Mobile Optimizations
   ========================================================================== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Better touch behavior */
* {
    -webkit-tap-highlight-color: rgba(248, 188, 50, 0.2);
}

/* Prevent text selection on interactive elements */
button, 
.btn, 
.nav-link,
.clickable {
    -webkit-user-select: none;
    user-select: none;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ==========================================================================
   Touch-Friendly Elements
   ========================================================================== */

/* Minimum touch target size (44x44px Apple guidelines) */
@media (hover: none) and (pointer: coarse) {
    button,
    .btn,
    .nav-link,
    input[type="checkbox"],
    input[type="radio"],
    select,
    .form-check-input,
    .page-link,
    .dropdown-item,
    .list-group-item-action {
        min-height: var(--mobile-touch-target);
        min-width: var(--mobile-touch-target);
    }

    /* Larger checkbox and radio buttons */
    input[type="checkbox"],
    input[type="radio"],
    .form-check-input {
        width: 22px;
        height: 22px;
        cursor: pointer;
    }

    /* Bigger tap targets for links */
    a {
        padding: 4px 0;
    }

    /* Remove hover states that cause sticky on touch */
    .btn:hover,
    .nav-link:hover,
    .card:hover,
    tr:hover {
        transform: none !important;
    }
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
@media (max-width: 767px) {
    /* Mobile header improvements */
    header.navbar {
        padding: var(--mobile-padding) !important;
        position: sticky;
        top: 0;
        z-index: 1030;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Hamburger menu button */
    .navbar-toggler,
    [data-bs-toggle="offcanvas"] {
        padding: 10px 12px;
        border: 2px solid #F8BC32;
        border-radius: 8px;
    }

    /* Mobile menu items */
    .offcanvas .nav-link {
        padding: 16px 20px !important;
        font-size: 16px;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .offcanvas .nav-link img,
    .offcanvas .nav-link i {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    /* Bottom safe area for iOS */
    .offcanvas-body {
        padding-bottom: calc(var(--mobile-padding) + var(--safe-area-inset-bottom)) !important;
    }
}

/* ==========================================================================
   Mobile Tables - Card View Transformation
   ========================================================================== */
@media (max-width: 767px) {
    /* Generic table to card transformation */
    .table-responsive-cards thead {
        display: none;
    }

    .table-responsive-cards tbody {
        display: flex;
        flex-direction: column;
        gap: var(--mobile-gap);
    }

    .table-responsive-cards tbody tr {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: var(--mobile-radius);
        padding: var(--mobile-padding);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .table-responsive-cards tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }

    .table-responsive-cards tbody td:last-child {
        border-bottom: none;
    }

    .table-responsive-cards tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: var(--mobile-font-small);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        margin-right: 10px;
    }

    /* Orders table specific */
    .orders-table tbody tr {
        display: flex;
        flex-direction: column;
        position: relative;
        padding: 15px;
        margin-bottom: 12px;
        background: #fff;
        border-radius: var(--mobile-radius);
        border: 1px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .orders-table tbody td {
        display: flex;
        padding: 6px 0;
        border: none;
        width: 100% !important;
    }

    .orders-table tbody td.col-checkbox {
        position: absolute;
        top: 12px;
        right: 12px;
        width: auto !important;
        padding: 0;
    }

    .orders-table tbody td.col-order {
        order: 1;
        font-weight: 700;
        font-size: 16px;
        padding-right: 40px;
    }

    .orders-table tbody td.col-image {
        order: 2;
    }

    .orders-table tbody td.col-status {
        order: 3;
    }

    .orders-table tbody td.col-customer,
    .orders-table tbody td.col-agent {
        order: 4;
    }

    .orders-table tbody td.col-actions {
        order: 5;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e5e7eb;
        justify-content: center;
    }

    /* Warehouse table */
    .warehouse-table {
        min-width: unset !important;
    }

    .warehouse-table thead {
        display: none;
    }

    .warehouse-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
        margin-bottom: 10px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: var(--mobile-radius);
    }

    .warehouse-table tbody td {
        padding: 6px 8px;
        font-size: var(--mobile-font-small);
    }

    .warehouse-table tbody td:first-child {
        grid-column: span 2;
        font-weight: 600;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 10px;
        margin-bottom: 4px;
    }
}

/* ==========================================================================
   Mobile Forms
   ========================================================================== */
@media (max-width: 767px) {
    /* Form controls */
    .form-control,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="tel"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 14px 16px !important;
        border-radius: 10px !important;
        min-height: var(--mobile-touch-target);
    }

    /* Full-width inputs on mobile */
    .form-control,
    .form-select,
    input:not([type="checkbox"]):not([type="radio"]),
    select {
        width: 100% !important;
    }

    /* Form labels */
    .form-label,
    label {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
    }

    /* Form groups */
    .form-group,
    .mb-3 {
        margin-bottom: 16px !important;
    }

    /* Form rows - stack on mobile */
    .form-row,
    .row:has(.form-control),
    .row:has(.form-select) {
        flex-direction: column;
    }

    .form-row > [class*="col-"],
    .row:has(.form-control) > [class*="col-"],
    .row:has(.form-select) > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 12px;
    }

    /* File inputs */
    input[type="file"] {
        padding: 12px !important;
        border: 2px dashed #d1d5db;
        border-radius: var(--mobile-radius);
        background: #f9fafb;
    }

    /* Search inputs */
    .search-box input,
    input[type="search"] {
        padding-left: 40px !important;
    }

    /* Date inputs */
    input[type="date"] {
        -webkit-appearance: none;
        appearance: none;
    }

    /* Textarea */
    textarea {
        min-height: 100px;
        resize: vertical;
    }

    /* Checkbox and radio groups */
    .form-check {
        padding: 12px 0;
        padding-left: 32px;
        min-height: var(--mobile-touch-target);
        display: flex;
        align-items: center;
    }

    .form-check-input {
        width: 22px !important;
        height: 22px !important;
        margin-top: 0;
    }

    .form-check-label {
        font-size: 15px;
        padding-left: 8px;
    }
}

/* ==========================================================================
   Mobile Buttons
   ========================================================================== */
@media (max-width: 767px) {
    /* Base button styles */
    .btn {
        padding: 14px 20px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        font-weight: 600;
        min-height: var(--mobile-touch-target);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* Full-width buttons in certain contexts */
    .btn-block,
    .modal-footer .btn,
    .card-footer .btn,
    .form-actions .btn {
        width: 100%;
    }

    /* Button groups - stack on mobile */
    .btn-group,
    .button-group,
    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-group .btn {
        width: 100%;
        border-radius: 10px !important;
    }

    /* Small buttons */
    .btn-sm {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    /* Icon buttons */
    .btn-icon,
    .btn:has(> i:only-child),
    .btn:has(> .dashicons:only-child) {
        width: var(--mobile-touch-target);
        height: var(--mobile-touch-target);
        padding: 0 !important;
    }
}

/* ==========================================================================
   Mobile Cards
   ========================================================================== */
@media (max-width: 767px) {
    .card {
        border-radius: var(--mobile-radius) !important;
        margin-bottom: var(--mobile-gap);
        overflow: hidden;
    }

    .card-header {
        padding: 14px 16px !important;
        font-size: 15px;
    }

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

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

    /* Stat cards */
    .card-stat,
    .summary-card {
        padding: 16px;
    }

    .card-stat .card-value,
    .summary-card .card-value {
        font-size: 1.5rem;
    }

    .card-stat .card-title,
    .summary-card .card-label {
        font-size: 12px;
    }

    /* Card grids */
    .row-cols-md-4,
    .row-cols-md-3,
    .row-cols-lg-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--mobile-gap) !important;
    }

    .row-cols-md-4 > .col,
    .row-cols-md-3 > .col,
    .row-cols-lg-4 > .col {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* Very small screens - single column */
@media (max-width: 480px) {
    .row-cols-md-4,
    .row-cols-md-3 {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Mobile Modals
   ========================================================================== */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 0 !important;
        max-width: 100% !important;
        min-height: 100vh;
        display: flex;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 20px 20px 0 0 !important;
        border: none;
        max-height: 90vh;
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .modal-header {
        padding: 20px !important;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }

    .modal-title {
        font-size: 18px;
        font-weight: 700;
    }

    .modal-body {
        padding: 20px !important;
        overflow-y: auto;
        max-height: calc(90vh - 140px);
    }

    .modal-footer {
        padding: 16px 20px !important;
        padding-bottom: calc(16px + var(--safe-area-inset-bottom)) !important;
        flex-direction: column;
        gap: 10px;
        border-top: 1px solid #e5e7eb;
        position: sticky;
        bottom: 0;
        background: #fff;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0 !important;
    }

    /* Close button */
    .btn-close {
        width: 40px;
        height: 40px;
        padding: 0;
        background-size: 14px;
    }

    /* Full-screen modal option */
    .modal-fullscreen-mobile .modal-dialog {
        min-height: 100vh;
    }

    .modal-fullscreen-mobile .modal-content {
        border-radius: 0 !important;
        min-height: 100vh;
    }
}

/* ==========================================================================
   Mobile Dropdowns
   ========================================================================== */
@media (max-width: 767px) {
    .dropdown-menu {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto !important;
        transform: none !important;
        border-radius: 20px 20px 0 0;
        max-height: 70vh;
        overflow-y: auto;
        animation: slideUp 0.3s ease-out;
        padding-bottom: var(--safe-area-inset-bottom);
    }

    .dropdown-item {
        padding: 16px 20px;
        font-size: 16px;
        border-bottom: 1px solid #f3f4f6;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-divider {
        margin: 8px 0;
    }

    /* Overlay for mobile dropdowns */
    .dropdown.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
}

/* ==========================================================================
   Mobile Pagination
   ========================================================================== */
@media (max-width: 767px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .page-link {
        min-width: var(--mobile-touch-target);
        min-height: var(--mobile-touch-target);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: 14px;
        border-radius: 8px !important;
    }

    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        border-radius: 8px !important;
    }

    /* Hide extra page numbers on very small screens */
    .page-item:not(:first-child):not(:last-child):not(.active):nth-child(n+4):nth-last-child(n+4) {
        display: none;
    }
}

/* ==========================================================================
   Mobile Alerts & Notifications
   ========================================================================== */
@media (max-width: 767px) {
    .alert {
        padding: 14px 16px;
        border-radius: var(--mobile-radius);
        font-size: 14px;
        margin-bottom: var(--mobile-gap);
    }

    .alert-dismissible {
        padding-right: 50px;
    }

    .alert .btn-close {
        padding: 16px;
    }

    /* Toast notifications */
    .toast-container {
        bottom: calc(20px + var(--safe-area-inset-bottom)) !important;
        left: var(--mobile-padding) !important;
        right: var(--mobile-padding) !important;
    }

    .toast {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   Mobile Dashboard
   ========================================================================== */
@media (max-width: 767px) {
    /* Dashboard header */
    .dashboard-header,
    .page-header,
    .insights-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
        padding: var(--mobile-padding) 0;
    }

    .dashboard-header h1,
    .page-header h1 {
        font-size: 22px;
    }

    /* Dashboard actions */
    .header-actions,
    .dashboard-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .header-actions .btn,
    .dashboard-actions .btn {
        width: 100%;
    }

    /* Date range picker */
    .date-range-picker {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .date-range-picker .date-preset,
    .date-range-picker button {
        flex: 1;
        text-align: center;
    }

    /* Filter bars */
    .filter-bar,
    .overview-filter-bar {
        padding: var(--mobile-padding);
    }

    .filter-bar .filter-group,
    .overview-filter-bar .filter-group {
        flex-direction: column;
        gap: 10px;
    }

    /* Dashboard tabs */
    .dashboard-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 8px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .dashboard-tabs .tab-btn {
        flex-shrink: 0;
        padding: 12px 16px;
        white-space: nowrap;
        font-size: 13px;
    }

    /* Summary cards grid */
    .insights-summary,
    .summary-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* ==========================================================================
   Mobile Filters
   ========================================================================== */
@media (max-width: 767px) {
    /* Filter cards */
    .filter-card {
        margin-bottom: var(--mobile-gap);
    }

    .filter-card-header {
        padding: 12px 16px;
    }

    .filter-card-body {
        padding: 16px;
    }

    /* Filter toggles */
    .filter-toggle-btn,
    .stock-toggle-btn {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
    }

    /* Stock attributes grid */
    .stock-attributes-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    /* Filter actions */
    .filter-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }

    .filter-actions .btn {
        width: 100%;
    }

    /* Bulk actions */
    .bulk-action-row,
    .bulk-action-container {
        flex-direction: column;
        gap: 10px;
    }

    .bulk-action-select {
        width: 100%;
        flex-direction: column;
    }

    .bulk-action-select .form-select-sm {
        border-radius: 8px 8px 0 0 !important;
    }

    .bulk-action-select .btn {
        border-radius: 0 0 8px 8px !important;
    }
}

/* ==========================================================================
   Mobile Sidebar / Off-canvas
   ========================================================================== */
@media (max-width: 767px) {
    /* Hide desktop sidebar */
    .sidebar:not(.offcanvas) {
        display: none !important;
    }

    /* Main content takes full width */
    main,
    main.col-md-9,
    main.col-lg-10 {
        width: 100% !important;
        max-width: 100% !important;
        padding: var(--mobile-padding) !important;
        margin: 0 !important;
    }

    /* Off-canvas sidebar */
    .offcanvas {
        width: 85% !important;
        max-width: 320px;
    }

    .offcanvas-header {
        padding: 16px 20px;
        background: #1f2937;
        color: #fff;
    }

    .offcanvas-body {
        padding: 0;
    }

    .offcanvas .nav-link {
        padding: 16px 20px !important;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #e5e7eb;
    }

    .offcanvas .nav-link:active {
        background: #f3f4f6;
    }
}

/* ==========================================================================
   Mobile Images
   ========================================================================== */
@media (max-width: 767px) {
    /* Responsive images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Image grids */
    .image-grid,
    .order-images-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .image-grid img,
    .order-images-grid img {
        border-radius: 8px;
        aspect-ratio: 1;
        object-fit: cover;
    }

    /* Thumbnails */
    .thumbnail,
    .product-image,
    .order-image {
        width: 60px !important;
        height: 60px !important;
    }

    /* Avatar sizes */
    .avatar,
    .worker-avatar,
    .user-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
}

/* ==========================================================================
   Mobile Typography
   ========================================================================== */
@media (max-width: 767px) {
    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    h4 {
        font-size: 16px !important;
    }

    h5, h6 {
        font-size: 14px !important;
    }

    p, 
    .text-body,
    body {
        font-size: var(--mobile-font-base);
        line-height: 1.6;
    }

    small,
    .small,
    .text-small {
        font-size: var(--mobile-font-small);
    }
}

/* ==========================================================================
   Mobile Spacing
   ========================================================================== */
@media (max-width: 767px) {
    /* Reduce container padding */
    .container,
    .container-fluid {
        padding-left: var(--mobile-padding) !important;
        padding-right: var(--mobile-padding) !important;
    }

    /* Section margins */
    section,
    .section {
        margin-bottom: 24px;
    }

    /* Row gaps */
    .row {
        margin-left: calc(var(--mobile-gap) / -2);
        margin-right: calc(var(--mobile-gap) / -2);
    }

    .row > [class*="col-"] {
        padding-left: calc(var(--mobile-gap) / 2);
        padding-right: calc(var(--mobile-gap) / 2);
    }
}

/* ==========================================================================
   Mobile Utilities
   ========================================================================== */

/* Hide on mobile */
@media (max-width: 767px) {
    .hide-mobile,
    .d-none-mobile,
    .desktop-only {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 768px) {
    .mobile-only,
    .show-mobile {
        display: none !important;
    }
}

/* Full width on mobile */
@media (max-width: 767px) {
    .w-mobile-100 {
        width: 100% !important;
    }
}

/* Text alignment mobile */
@media (max-width: 767px) {
    .text-mobile-center {
        text-align: center !important;
    }

    .text-mobile-left {
        text-align: left !important;
    }
}

/* ==========================================================================
   Mobile-specific Component Fixes
   ========================================================================== */

/* Fix for iOS input zoom */
@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Fix for position:fixed on iOS */
@supports (-webkit-touch-callout: none) {
    .modal,
    .offcanvas {
        -webkit-overflow-scrolling: touch;
    }

    .modal-body,
    .offcanvas-body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Bottom navigation bar safe area */
@media (max-width: 767px) {
    .bottom-nav,
    .fixed-bottom {
        padding-bottom: var(--safe-area-inset-bottom);
    }
}

/* ==========================================================================
   Mobile Print Styles
   ========================================================================== */
@media print {
    .mobile-only,
    .offcanvas,
    .modal,
    .toast,
    .navbar-toggler {
        display: none !important;
    }
}

/* ==========================================================================
   Accessibility on Mobile
   ========================================================================== */
@media (max-width: 767px) {
    /* Focus states */
    :focus-visible {
        outline: 3px solid #F8BC32 !important;
        outline-offset: 2px;
    }

    /* Skip link */
    .skip-link:focus {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 9999;
        padding: 16px 24px;
        background: #1f2937;
        color: #fff;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
    }
}

/* ==========================================================================
   Loading States Mobile
   ========================================================================== */
@media (max-width: 767px) {
    .loading-overlay,
    .page-loader {
        padding: 20px;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
    }

    .skeleton-card {
        border-radius: var(--mobile-radius);
        padding: var(--mobile-padding);
    }
}

/* ==========================================================================
   Landscape Orientation Fixes
   ========================================================================== */
@media (max-width: 767px) and (orientation: landscape) {
    /* Reduce header height */
    header.navbar {
        padding: 8px var(--mobile-padding) !important;
    }

    /* Modal height adjustment */
    .modal-dialog {
        max-height: 100vh;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 12px !important;
    }

    .modal-body {
        max-height: calc(95vh - 120px);
    }

    /* Cards in landscape - 2 columns */
    .row-cols-md-4,
    .row-cols-md-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Adjust sidebar menu */
    .offcanvas {
        max-width: 280px;
    }
}

/* ==========================================================================
   Very Small Screens (320px)
   ========================================================================== */
@media (max-width: 360px) {
    :root {
        --mobile-padding: 10px;
        --mobile-gap: 8px;
    }

    .btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    h1 {
        font-size: 20px !important;
    }

    h2 {
        font-size: 18px !important;
    }

    .card-stat .card-value {
        font-size: 1.25rem;
    }
}
