:root{
  /* --primary-color: #0e4132; */
  --primary-color: #b1c900;
}
@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat-VariableFont_wght.woff2") format("woff2"),
       url("./fonts/Montserrat-VariableFont_wght.woff") format("woff"),
       url("./fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
}
html, body{
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #000;
  background-color: #f6f6f6;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #8c9e06;
    --bs-btn-border-color: #8c9e06;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #8c9e06;
    --bs-btn-hover-border-color: #8c9e06;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #8c9e06;
    --bs-btn-active-border-color: #8c9e06;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #8c9e06;
    --bs-btn-disabled-border-color: #8c9e06;
    --bs-primary-rgb: 14, 65, 50;
}
.container {
    width: auto;
    max-width: 680px;
    padding: 0 15px;
  }
  .cmdMain a{
    text-decoration: none !important;
  }
  footer div:last-child {
    margin-bottom: 0;
  }
.footer-text{
  font-size: 12px;
}
.nav-item{
  width: 100%;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
  padding: 0px 5px 2px 7px;
  background-color: transparent !important;
  border: none !important;
  color: #8a9c02 !important;
  font-weight: 600;
  
}
.profile-name{
    background-color: #92a602;
    padding: 6px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #fff;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 auto;
}
.login-logo{
    max-width: 250px;
    border: 1px solid #ebeaea;
    border-radius: 5px;
}
.nav-link:focus, .nav-link:hover {
  color: #8a9c02;
}
.everFreshSidebar{
  width: 200px;
  border-right: 1px solid #f6f6f6;
}
.everFreshSidebar-bg{
  background-color: rgb(233 234 235) !important;
}
.main-cards a{
  text-decoration: none !important;
  color: #000 !important;
}
.main-cards a:hover{
  text-decoration: none !important;
  color: #8a9c02 !important;
}
a.text-white{
  color: #fff !important;
}
#customerTable a{
  color: #ffffff !important;
}
span.item_name{
  width: 200px;
}

/* ===================================
   MOBILE RESPONSIVE STYLES
   =================================== */

/* Mobile Sidebar */
@media (max-width: 768px) {
  .everFreshSidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px !important;
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
  
  .everFreshSidebar.show {
    left: 0;
  }
  
  .everFreshSidebar .logo {
    max-height: 50px !important;
  }
  
  /* Mobile Overlay for Sidebar */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
  }
  
  .mobile-overlay.show {
    display: block;
  }
  
  /* Mobile Header */
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .mobile-header .btn-link {
    text-decoration: none;
    padding: 0;
  }
  
  /* Main Content Area */
  .main-content-mobile {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }
  
  /* Typography */
  body {
    font-size: 13px;
  }
  
  h1, .h1 {
    font-size: 1.75rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  h3, .h3 {
    font-size: 1.25rem;
  }
  
  h4, .h4 {
    font-size: 1.1rem;
  }
  
  h5, .h5 {
    font-size: 1rem;
  }
  
  h6, .h6 {
    font-size: 0.9rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .card-header {
    padding: 0.5rem 0.75rem;
  }
  
  /* Buttons */
  .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }
  
  .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .btn-lg {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  
  /* Forms */
  .form-control,
  .form-select {
    font-size: 0.875rem;
  }
  
  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }
  
  /* Tables */
  .table {
    font-size: 0.8rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem;
  }
  
  /* DataTables Responsive */
  .dataTables_wrapper {
    overflow-x: auto;
  }
  
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    font-size: 0.8rem;
  }
  
  .dataTables_wrapper .dataTables_length select {
    padding: 0.25rem;
  }
  
  .dataTables_wrapper .dataTables_filter input {
    padding: 0.25rem 0.5rem;
  }
  
  /* Modals */
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-content {
    border-radius: 0.5rem;
  }
  
  .modal-header {
    padding: 0.75rem;
  }
  
  .modal-body {
    padding: 0.75rem;
  }
  
  .modal-footer {
    padding: 0.5rem;
  }
  
  /* Alerts */
  .alert {
    font-size: 0.875rem;
    padding: 0.75rem;
  }
  
  /* Badges */
  .badge {
    font-size: 0.7rem;
  }
  
  /* Spacing Utilities */
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  .pt-4 {
    padding-top: 1rem !important;
  }
  
  .pb-4 {
    padding-bottom: 1rem !important;
  }
  
  .mt-4 {
    margin-top: 1rem !important;
  }
  
  .mb-4 {
    margin-bottom: 1rem !important;
  }
  
  /* Container */
  .container {
    padding: 0 0.75rem;
  }
  
  /* Row gutters */
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Footer */
  footer {
    font-size: 0.75rem;
    padding: 1rem 0.75rem !important;
  }
  
  /* Login/Register Pages */
  .login-logo {
    max-width: 180px;
  }
  
  .cmdMain .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Navigation */
  .nav-pills .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  /* Dropdown */
  .dropdown-menu {
    font-size: 0.875rem;
  }
  
  /* Profile Name Circle */
  .profile-name {
    width: 32px;
    height: 32px;
    font-size: 14px !important;
  }
  
  /* Stats/Dashboard Cards */
  .stats-card .card-body {
    padding: 0.75rem;
  }
  
  .stats-card h3,
  .stats-card h4 {
    font-size: 1.25rem;
  }
  
  .stats-card h5,
  .stats-card h6 {
    font-size: 0.875rem;
  }
  
  .stats-card i {
    font-size: 1.5rem !important;
  }
  
  /* Task Cards */
  .task-card {
    border-left-width: 3px;
  }
  
  .task-card .card-body {
    padding: 0.75rem;
  }
  
  .task-card .card-title {
    font-size: 0.9rem;
  }
  
  .task-card .card-text {
    font-size: 0.8rem;
  }
  
  /* Image Upload Preview */
  .image-preview-item {
    width: 80px;
    height: 80px;
  }
  
  /* Product Cards */
  .product-card .card-body {
    padding: 0.75rem;
  }
  
  /* Customer Cards */
  .customer-card .card-body {
    padding: 0.75rem;
  }
  
  /* Enquiry Details */
  .enquiry-details .row {
    margin-bottom: 0.5rem;
  }
  
  /* Hide desktop-only elements */
  .d-desktop-only {
    display: none !important;
  }
}

/* Tablet Adjustments (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .everFreshSidebar {
    width: 180px;
  }
  
  body {
    font-size: 13px;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    font-size: 0.875rem;
  }
}

/* Small Mobile (max 576px) */
@media (max-width: 576px) {
  /* Full width columns */
  .col-sm-6,
  .col-md-6,
  .col-lg-4,
  .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Smaller text */
  body {
    font-size: 12px;
  }
  
  h4, .h4 {
    font-size: 1rem;
  }
  
  /* Compact buttons */
  .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }
  
  /* Smaller cards */
  .card-body {
    padding: 0.5rem;
  }
  
  .card-header {
    padding: 0.5rem;
  }
  
  /* Table scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Modal full screen on very small devices */
  .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100vh;
  }
  
  .modal-content {
    height: 100%;
    border-radius: 0;
  }
  
  /* Profile name smaller */
  .profile-name {
    width: 28px;
    height: 28px;
    font-size: 12px !important;
  }
  
  /* Logo smaller */
  .login-logo {
    max-width: 150px;
  }
  
  .everFreshSidebar .logo {
    max-height: 40px !important;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .mobile-header {
    padding: 0.5rem 1rem;
  }
  
  .vh-100 {
    height: auto !important;
  }
  
  .card-body {
    padding: 0.5rem;
  }
}

/* Print Styles */
@media print {
  .everFreshSidebar,
  .mobile-header,
  footer,
  .btn,
  .mobile-overlay {
    display: none !important;
  }
  
  .main-content-mobile {
    width: 100% !important;
  }
  
  .card {
    page-break-inside: avoid;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    padding: 0.75rem;
  }
  
  .form-control,
  .form-select {
    min-height: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .btn:hover,
  .nav-link:hover,
  .card:hover {
    transform: none;
  }
}

/* iOS Safe Area */
@supports (padding: max(0px)) {
  .mobile-header {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .everFreshSidebar {
    padding-left: max(1rem, env(safe-area-inset-left));
  }
  
  footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom)) !important;
  }
}

/* ===================================
   MOBILE RESPONSIVE STYLES
   =================================== */

/* Mobile Sidebar */
@media (max-width: 768px) {
  .everFreshSidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px !important;
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 1rem !important;
  }
  .show-on-mobile {
    display: block !important;
  }
  .dashboard-cards {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .dashboard-cards .col-12 {
    padding: 0.75rem !important;
  }
  
  .dashboard-cards hr {
    margin: 0.5rem 0 !important;
  }
  
  .row.main-cards {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  main.row {
    padding-top: 0 !important;
  }
  
  /* Remove extra padding from main element on mobile */
  main.row.overflow-auto {
    padding: 0 !important;
  }
  .hide-on-mobile {
    display: none !important;
  }
  
  /* For the sidebar profile dropdown container */
  .everFreshSidebar .hide-on-mobile {
    display: none !important;
  }
  
  .everFreshSidebar .show-on-mobile {
    display: block !important;
  }
  .everFreshSidebar.show {
    left: 0;
  }
  
  .everFreshSidebar .logo {
    max-height: 50px !important;
  }
  
  /* Remove all padding and margins from inner container */
  .everFreshSidebar .sidebar-inner {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Logo link - minimal spacing */
  .everFreshSidebar .sidebar-logo-link {
    padding: 0 !important;
    margin: 0 0 0.5rem 0 !important;
    display: block !important;
  }
  
  /* Force vertical layout for sidebar menu */
  .everFreshSidebar .d-flex {
    flex-direction: column !important;
  }
  
  .everFreshSidebar ul.nav {
    width: 100% !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .everFreshSidebar ul.nav li {
    width: 100% !important;
    margin: 0 !important;
  }
  
  .everFreshSidebar .nav-item {
    margin: 0 !important;
  }
  
  .everFreshSidebar .nav-link {
    display: flex !important;
    align-items: center;
    padding: 0.75rem 0.5rem !important;
    width: 100%;
    margin: 0 !important;
  }
  
  .everFreshSidebar .nav-link.px-sm-0,
  .everFreshSidebar .nav-link.px-2 {
    padding: 0.75rem 0.5rem !important;
  }
  
  .everFreshSidebar .nav-link i {
    margin-right: 0.5rem;
  }
  
  .everFreshSidebar .nav-link span {
    display: inline !important;
  }
  
  .everFreshSidebar .d-none.d-sm-inline {
    display: inline !important;
  }
  
  .everFreshSidebar .ms-1 {
    margin-left: 0.5rem !important;
  }
  
  /* Dropdown menu */
  .everFreshSidebar .dropdown {
    width: 100%;
    margin: 0 !important;
  }
  
  .everFreshSidebar .dropdown-toggle {
    width: 100%;
  }
  
  .everFreshSidebar .dropdown-toggle.px-sm-0,
  .everFreshSidebar .dropdown-toggle.px-1 {
    padding: 0.75rem 0.5rem !important;
  }
  
  .everFreshSidebar .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    border: none;
    box-shadow: none;
    background-color: rgba(0,0,0,0.1);
    margin-left: 0.5rem;
  }
  
  /* Profile dropdown at bottom */
  .everFreshSidebar .dropdown.py-sm-4 {
    width: 100%;
    margin-top: auto !important;
    padding: 0.5rem 0 !important;
  }
  
  .everFreshSidebar .dropdown.py-sm-4.mt-sm-auto {
    margin-top: auto !important;
  }
  
  .everFreshSidebar .dropdown.py-sm-4.ms-auto,
  .everFreshSidebar .dropdown.py-sm-4.ms-sm-0 {
    margin-left: 0 !important;
  }
  
  .everFreshSidebar .dropdown.py-sm-4 a {
    width: 100%;
    justify-content: center;
  }
  
  .everFreshSidebar .dropdown.py-sm-4 .dropdown-menu {
    margin-left: 0;
    background-color: #212529;
  }
  
  /* Mobile Overlay for Sidebar */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
  }
  
  .mobile-overlay.show {
    display: block;
  }
  
  /* Mobile Header */
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .mobile-header .btn-link {
    text-decoration: none;
    padding: 0;
  }
  
  /* Main Content Area */
  .main-content-mobile {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }
  
  /* Typography */
  body {
    font-size: 13px;
  }
  
  h1, .h1 {
    font-size: 1.75rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  h3, .h3 {
    font-size: 1.25rem;
  }
  
  h4, .h4 {
    font-size: 1.1rem;
  }
  
  h5, .h5 {
    font-size: 1rem;
  }
  
  h6, .h6 {
    font-size: 0.9rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .card-header {
    padding: 0.5rem 0.75rem;
  }
  
  /* Buttons */
  .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }
  
  .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .btn-lg {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  
  /* Forms */
  .form-control,
  .form-select {
    font-size: 0.875rem;
  }
  
  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }
  
  /* Tables */
  .table {
    font-size: 0.8rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem;
  }
  
  /* DataTables Responsive */
  .dataTables_wrapper {
    overflow-x: auto;
  }
  
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    font-size: 0.8rem;
  }
  
  .dataTables_wrapper .dataTables_length select {
    padding: 0.25rem;
  }
  
  .dataTables_wrapper .dataTables_filter input {
    padding: 0.25rem 0.5rem;
  }
  
  /* Modals */
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-content {
    border-radius: 0.5rem;
  }
  
  .modal-header {
    padding: 0.75rem;
  }
  
  .modal-body {
    padding: 0.75rem;
  }
  
  .modal-footer {
    padding: 0.5rem;
  }
  
  /* Alerts */
  .alert {
    font-size: 0.875rem;
    padding: 0.75rem;
  }
  
  /* Badges */
  .badge {
    font-size: 0.7rem;
  }
  
  /* Spacing Utilities */
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  .pt-4 {
    padding-top: 1rem !important;
  }
  
  .pb-4 {
    padding-bottom: 1rem !important;
  }
  
  .mt-4 {
    margin-top: 1rem !important;
  }
  
  .mb-4 {
    margin-bottom: 1rem !important;
  }
  
  /* Container */
  .container {
    padding: 0 0.75rem;
  }
  
  /* Row gutters */
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Footer */
  footer {
    font-size: 0.75rem;
    padding: 1rem 0.75rem !important;
  }
  
  /* Login/Register Pages */
  .login-logo {
    max-width: 180px;
  }
  
  .cmdMain .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Navigation */
  .nav-pills .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  /* Dropdown */
  .dropdown-menu {
    font-size: 0.875rem;
  }
  
  /* Profile Name Circle */
  .profile-name {
    width: 32px;
    height: 32px;
    font-size: 14px !important;
  }
  
  /* Stats/Dashboard Cards */
  .stats-card .card-body {
    padding: 0.75rem;
  }
  
  .stats-card h3,
  .stats-card h4 {
    font-size: 1.25rem;
  }
  
  .stats-card h5,
  .stats-card h6 {
    font-size: 0.875rem;
  }
  
  .stats-card i {
    font-size: 1.5rem !important;
  }
  
  /* Task Cards */
  .task-card {
    border-left-width: 3px;
  }
  
  .task-card .card-body {
    padding: 0.75rem;
  }
  
  .task-card .card-title {
    font-size: 0.9rem;
  }
  
  .task-card .card-text {
    font-size: 0.8rem;
  }
  
  /* Image Upload Preview */
  .image-preview-item {
    width: 80px;
    height: 80px;
  }
  
  /* Product Cards */
  .product-card .card-body {
    padding: 0.75rem;
  }
  
  /* Customer Cards */
  .customer-card .card-body {
    padding: 0.75rem;
  }
  
  /* Enquiry Details */
  .enquiry-details .row {
    margin-bottom: 0.5rem;
  }
  
  /* Hide desktop-only elements */
  .d-desktop-only {
    display: none !important;
  }
}

/* Tablet Adjustments (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .everFreshSidebar {
    width: 180px;
  }
  
  body {
    font-size: 13px;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    font-size: 0.875rem;
  }
}

/* Small Mobile (max 576px) */
@media (max-width: 576px) {
  /* Full width columns */
  .col-sm-6,
  .col-md-6,
  .col-lg-4,
  .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Smaller text */
  body {
    font-size: 12px;
  }
  
  h4, .h4 {
    font-size: 1rem;
  }
  
  /* Compact buttons */
  .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }
  
  /* Smaller cards */
  .card-body {
    padding: 0.5rem;
  }
  
  .card-header {
    padding: 0.5rem;
  }
  
  /* Table scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Modal full screen on very small devices */
  .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100vh;
  }
  
  .modal-content {
    height: 100%;
    border-radius: 0;
  }
  
  /* Profile name smaller */
  .profile-name {
    width: 28px;
    height: 28px;
    font-size: 12px !important;
  }
  
  /* Logo smaller */
  .login-logo {
    max-width: 150px;
  }
  
  .everFreshSidebar .logo {
    max-height: 40px !important;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .mobile-header {
    padding: 0.5rem 1rem;
  }
  
  .vh-100 {
    height: auto !important;
  }
  
  .card-body {
    padding: 0.5rem;
  }
}

/* Print Styles */
@media print {
  .everFreshSidebar,
  .mobile-header,
  footer,
  .btn,
  .mobile-overlay {
    display: none !important;
  }
  
  .main-content-mobile {
    width: 100% !important;
  }
  
  .card {
    page-break-inside: avoid;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    padding: 0.75rem;
  }
  
  .form-control,
  .form-select {
    min-height: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .btn:hover,
  .nav-link:hover,
  .card:hover {
    transform: none;
  }
}

/* iOS Safe Area */
@supports (padding: max(0px)) {
  .mobile-header {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .everFreshSidebar {
    padding-left: max(1rem, env(safe-area-inset-left));
  }
  
  footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom)) !important;
  }
}
.show-on-mobile {
  display: none !important;
}

.hide-on-mobile {
  display: block !important;
}

.profile-name{
    background-color: #92a602;
    padding: 6px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #fff;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.main-menu-list{
  width: 100%;
}

/* Fix gap between dashboard-cards and main-cards - GLOBAL */
.dashboard-cards {
  margin: 0 !important;
  padding: 0 !important;
}

.dashboard-cards .col-12.p-3.bg-light {
  padding: 0.75rem 1rem 0 1rem !important;
  margin: 0 !important;
}

.dashboard-cards hr {
  margin: 0.5rem 0 0 0 !important;
}

main.row.overflow-auto.flex-grow-1 {
  padding: 0 !important;
  margin: 0 !important;
}

.row.main-cards {
  margin: 0 !important;
  padding-top: 0.5rem !important;
}

/* Mobile specific fix */
@media (max-width: 768px) {
  .dashboard-cards {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .dashboard-cards .col-12 {
    padding: 0.5rem 0.75rem 0 0.75rem !important;
  }
  
  .dashboard-cards .col-12.p-3 {
    padding: 0.5rem 0.75rem 0 0.75rem !important;
  }
  
  .dashboard-cards .col-12.bg-light {
    padding: 0.5rem 0.75rem 0 0.75rem !important;
  }
  
  .dashboard-cards hr {
    margin: 0.5rem 0 0 0 !important;
  }
  
  main.row.overflow-auto.flex-grow-1 {
    padding: 0 !important;
  }
  
  .row.main-cards {
    margin: 0 !important;
    padding: 0.5rem 0.5rem 0 0.5rem !important;
  }
  
  .row.main-cards.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

 .section-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 12px 20px;
            margin: -20px -20px 20px -20px;
            border-radius: 5px 5px 0 0;
            font-weight: 600;
        }
        .card-section {
            margin-bottom: 25px;
        }
        .file-upload-label {
            cursor: pointer;
            padding: 10px 15px;
            border: 2px dashed #ddd;
            border-radius: 5px;
            text-align: center;
            transition: all 0.3s;
        }
        .file-upload-label:hover {
            border-color: #667eea;
            background: #f8f9fa;
        }
        .file-preview {
            margin-top: 10px;
        }
        .file-preview-item {
            display: inline-block;
            margin: 5px;
            padding: 8px 12px;
            background: #e9ecef;
            border-radius: 5px;
            font-size: 14px;
        }
        .attachment-item {
            display: inline-block;
            margin: 5px;
            padding: 8px 12px;
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            text-decoration: none;
            color: #495057;
            transition: all 0.2s;
        }
        .attachment-item:hover {
            background-color: #e9ecef;
            color: #212529;
            border-color: #0d6efd;
            transform: translateY(-2px);
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .attachment-item i {
            font-size: 16px;
            margin-right: 5px;
            color: #0d6efd;
        }
      /* Modern Order Tracking Workflow Timeline */
.workflow-timeline {
    padding: 30px 0;
    position: relative;
}

.workflow-stage {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.workflow-stage:last-child {
    margin-bottom: 0;
}

.stage-icon-wrapper {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 4px solid #dee2e6;
    transition: all 0.4s ease;
    position: relative;
}

.icon-circle i {
    font-size: 26px;
    color: #adb5bd;
    transition: all 0.3s ease;
}

/* Completed Stage */
.workflow-stage.completed .icon-circle {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    border-color: #198754;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.workflow-stage.completed .icon-circle i {
    color: #fff;
}

/* Active Stage */
.workflow-stage.active .icon-circle {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    border-color: #0d6efd;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

.workflow-stage.active .icon-circle i {
    color: #fff;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(13, 110, 253, 0.7), 0 0 0 8px rgba(13, 110, 253, 0.1);
    }
}

/* Pending Stage */
.workflow-stage.pending .icon-circle {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Vertical Connection Line */
.stage-connector {
    position: absolute;
    left: 30px;
    top: 60px;
    width: 4px;
    height: calc(100% + 40px);
    background: #dee2e6;
    z-index: 1;
    transition: all 0.5s ease;
}

.workflow-stage:last-child .stage-connector {
    display: none;
}

.workflow-stage.completed .stage-connector {
    background: linear-gradient(to bottom, #198754, #20c997);
}

/* Stage Content */
.stage-content {
    margin-left: 25px;
    flex: 1;
    padding-top: 8px;
}

.stage-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.workflow-stage.completed .stage-title {
    color: #198754;
}

.workflow-stage.active .stage-title {
    color: #0d6efd;
}

.workflow-stage.pending .stage-title {
    color: #adb5bd;
}

.stage-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.stage-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workflow-stage.completed .stage-status {
    background-color: #d1e7dd;
    color: #0a3622;
}

.workflow-stage.active .stage-status {
    background-color: #cfe2ff;
    color: #084298;
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.workflow-stage.pending .stage-status {
    background-color: #e9ecef;
    color: #6c757d;
}

.stage-timestamp {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.stage-timestamp i {
    margin-right: 4px;
}

/* Checkmark Animation */
.workflow-stage.completed .icon-circle::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #fff;
    font-weight: bold;
    opacity: 0;
    animation: checkmarkPop 0.5s ease forwards;
}

@keyframes checkmarkPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.workflow-stage.completed .icon-circle i {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .icon-circle i {
        font-size: 22px;
    }
    
    .stage-connector {
        left: 25px;
        top: 50px;
    }
    
    .stage-content {
        margin-left: 20px;
    }
    
    .stage-title {
        font-size: 16px;
    }
    
    .stage-description {
        font-size: 13px;
    }
}
.sechead{
  position: relative;
  display: flex;
  width: 100%;
  justify-content: space-between;
}
