/* Custom SkyNet Worldwide Express Styles */
:root {
  --skynet-red: #F40E12;
  --skynet-dark-red: #F40E12;
  --skynet-light-gray: #f8f9fa;
  --skynet-gray: #6c757d;
  --skynet-dark: #343a40;
  --skynet-green: #01c401;
  --skynet-th-color: #fde7e7;
}

/* Global Font Settings */
* {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

}

.text-danger {
  color: var(--skynet-red) !important;
}

.text-success {
  color: var(--skynet-green) !important;
}

.text-gray {
  color: var(--skynet-gray) !important;
}

.code_input {
  display: inline;
  float: left;
  width: 30%;
}

.name_input {
  display: inline;
  float: right;
  width: 70%;
}

.code_input_short {
  display: inline;
  float: left;
  width: 20%;
}

#map {
  height: 300px;
  /* set map height */
  width: 100%;
}

.name_input_long {
  display: inline;
  float: right;
  width: 80%;
}

.hidden {
  display: none;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #e1e5e9 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 12px !important;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #F3F4F6;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
}

#app {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 100%;
}

/* Navigation Styles */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white !important;
  font-family: 'Poppins', sans-serif;
  padding: 0.75rem 0;
}

.navbar .nav-icon {
  padding: 5px 7px;
  background: var(--skynet-red);
  color: #fff;
  text-align: center;
  border-radius: 50%;
  margin-right: 5px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure all navigation icons have circular background */
.navbar {
  padding: 0px;
}

.nav-btn-secondary .nav-icon {
  background: var(--skynet-red);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}

.navbar .container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

.dropdown-toggle::after {
  font-size: 19px;
  /* color: var(--skynet-red); */
}

.fixed-button {
  width: 150px;
}

.navbar-brand {
  padding: 0;
}

/* Logo Image Styling */
.logo-image {
  height: 70px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  filter: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Brand/Logo Styling */
.brand-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Poppins', sans-serif;
}

.brand-main {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
  font-family: 'Poppins', sans-serif;
}

.brand-sub {
  background-color: var(--skynet-red);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 2px;
}

.brand-sub span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
}

.brand-tagline {
  font-size: 0.6rem;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

/* Navigation Button Styles */
.nav-btn-primary {
  background-color: var(--skynet-red) !important;
  border-color: var(--skynet-red) !important;
  color: white !important;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: fit-content;
  font-size: 15px;
}

.nav-btn-primary:hover {
  background-color: var(--skynet-dark-red) !important;
  border-color: var(--skynet-dark-red) !important;
}

.nav-btn-secondary {
  background-color: #ffffff !important;
  border-color: #dee2e6 !important;
  color: #495057 !important;
  font-weight: 500;
  padding: 0.5rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: fit-content;
}

.nav-btn-secondary:hover {
  background-color: #e9ecef !important;
  border-color: #adb5bd !important;
}

.nav-btn-secondary .text-danger {
  color: var(--skynet-red) !important;
}

/* Wallet Button Styling - Same as International */
.btn-wallet {
  background-color: var(--skynet-red) !important;
  border-color: var(--skynet-red) !important;
  color: white !important;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: fit-content;
}

.btn-wallet:hover {
  background-color: var(--skynet-dark-red) !important;
  border-color: var(--skynet-dark-red) !important;
}

/* Modern Dropdown Styling */
.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  min-width: 200px;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  font-weight: 400;
  color: #495057;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--skynet-red);
  transform: translateX(2px);
}

.dropdown-item i {
  width: 16px;
  margin-right: 0.5rem;
  font-size: 0.75rem;
}

.dropdown-divider {
  margin: 0.25rem 0;
  border-color: #e9ecef;
}

/* User Profile Button */
.user-profile-btn {
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
}

.user-profile-btn:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Hamburger Menu Button */
#menu-toggle {
  border: 1px solid #dee2e6;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

#menu-toggle:hover {
  background-color: #e9ecef;
}

/* Avatar Styles */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--skynet-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

/* Custom Button Styles */
.btn-outline-danger {
  border-color: var(--skynet-red);
  color: var(--skynet-red);
}

.btn-outline-danger:hover {
  background-color: var(--skynet-red);
  border-color: var(--skynet-red);
  color: white;
}

.btn-outline-secondary {
  border-color: var(--skynet-gray);
  color: var(--skynet-gray);
}

.btn-outline-secondary:hover {
  background-color: var(--skynet-gray);
  border-color: var(--skynet-gray);
  color: white;
}

/* KPI Cards */
.kpi-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
}

.kpi-card .card-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.kpi-card h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
  margin: 1rem 0;
}

/* News & Updates */
.news-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
}

.news-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ff0000bd;
  padding: 1rem;
}

/* Table Styles */
.table {
  font-size: 0.875rem;
}

.table th {
  border-top: none;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: var(--skynet-dark);
}

.table td {
  vertical-align: middle;
  border-top: 1px solid #f8f9fa;
}

/* Flag Icons */
.flag-icon {
  width: 16px;
  height: 12px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
}

.flag-icon-us {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 480"><path fill="%23bd3d44" d="M0 0h640v480H0z"/><path stroke="%23fff" stroke-width="37" d="M0 55.3h640M0 129h640M0 202.7h640M0 276.3h640"/><rect fill="%23192370" width="247" height="259"/><g fill="%23fff"><g id="d"><g id="c"><path id="e" d="M24.8 25l-1.4 4.3h-4.5l3.6 2.6-1.4 4.3 3.6-2.6 3.6 2.6-1.4-4.3 3.6-2.6h-4.5z"/><use href="%23e" y="8.7"/></g><use href="%23c" y="17.4"/></g><use href="%23d" y="34.8"/></g><g fill="%23bd3d44"><use href="%23e" y="8.7"/><use href="%23c" y="17.4"/><use href="%23d" y="34.8"/></g></svg>');
}

.flag-icon-de {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 480"><path fill="%23ffce00" d="M0 320h640v160H0z"/><path d="M0 0h640v160H0z"/><path fill="%23d00" d="M0 160h640v160H0z"/></svg>');
}

/* Credit Limit Chart */
.credit-chart-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 1rem 0;
}

.credit-chart {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(var(--skynet-red) 0deg 270deg, #e9ecef 270deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.credit-chart::before {
  content: '';
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
}

.credit-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-color.balanced {
  background-color: #e9ecef;
}

.legend-color.used {
  background-color: var(--skynet-red);
}

/* Sign In Page Styles */
.signin-form {
  max-width: 400px;
  width: 100%;
  padding: 2rem;
}

.signin-form h2 {
  font-size: 2rem;
  font-weight: 600;
}

.form-control {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.75rem;
}

.form-control:focus {
  border-color: var(--skynet-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-select {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23F40E12' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.form-select:focus {
  border-color: var(--skynet-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-item {
    margin-bottom: 0.5rem;
  }

  .kpi-card h2 {
    font-size: 1.5rem;
  }

  .chart-container {
    height: 200px;
  }

  .credit-chart {
    width: 80px;
    height: 80px;
  }

  .credit-chart::before {
    width: 50px;
    height: 50px;
  }
}

/* Main Content Area */
#dashboard-section,
#orders-section,
#new-order-section {
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  margin: 0;
  max-width: 100%;
}

/* Override Bootstrap row margins */
.row {
  margin-left: 0;
  margin-right: 0;
}

/* Override Bootstrap col padding */
.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-sm,
.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-md,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12,
.col-lg,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-xl,
.col-xl-1,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-10,
.col-xl-11,
.col-xl-12 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Additional spacing controls */
.card {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.card-body {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Ensure no horizontal scroll */
* {
  box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--skynet-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--skynet-dark);
}


/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */


/* ========================================
   LARGE DESKTOP (1400px and up)
   ======================================== */
@media (min-width: 1400px) {
  .container-fluid {
    max-width: 1320px;
    margin: 0 auto;
  }

  .navbar-brand {
    margin-right: 2rem;
  }

  .kpi-card h2 {
    font-size: 2.5rem;
  }

  .table-responsive {
    font-size: 0.95rem;
  }
}


/* ========================================
   DESKTOP (1200px to 1399px)
   ======================================== */
@media (min-width: 1200px) and (max-width: 1399px) {
  .navbar-nav {
    gap: 0.5rem;
  }

  .brand-main {
    font-size: 1.3rem;
  }

  .kpi-card h2 {
    font-size: 2.2rem;
  }
}


/* ========================================
   LAPTOP (992px to 1199px)
   ======================================== */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-nav {
    gap: 0.25rem;
  }

  .brand-main {
    font-size: 1.2rem;
  }

  .brand-sub span {
    font-size: 0.65rem;
  }

  .kpi-card h2 {
    font-size: 2rem;
  }

  .sidebar {
    width: 260px;
  }
}


/* ========================================
   TABLET LANDSCAPE (768px to 991px)
   ======================================== */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
  }

  .nav-btn-primary {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  .brand-main {
    font-size: 1.1rem;
  }

  .brand-sub span {
    font-size: 0.6rem;
  }

  .brand-tagline {
    font-size: 0.6rem;
  }

  .kpi-card h2 {
    font-size: 1.8rem;
  }

  /* Adjust table for tablet */
  .table-responsive {
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.25rem;
  }

  /* Stack KPI cards in 2 columns */
  .kpi-card {
    margin-bottom: 1rem;
  }
}


/* ========================================
   TABLET PORTRAIT (576px to 767px)
   ======================================== */
@media (min-width: 576px) and (max-width: 767px) {
  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-items: center;
  }

  .nav-btn-primary {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
  }

  .brand-main {
    font-size: 1rem;
  }

  .brand-sub span {
    font-size: 0.55rem;
  }

  .brand-tagline {
    font-size: 0.55rem;
  }

  .kpi-card h2 {
    font-size: 1.6rem;
  }

  /* Adjust table for small tablet */
  .table-responsive {
    font-size: 0.8rem;
  }

  .table th,
  .table td {
    padding: 0.4rem 0.2rem;
  }

  /* Hide less important columns on tablet */
  .table .d-none-tablet {
    display: none !important;
  }

  /* Stack KPI cards in 2 columns */
  .kpi-card {
    margin-bottom: 1rem;
  }

  /* Adjust form controls */
  .form-control,
  .form-select {
    font-size: 0.9rem;
  }

  /* Adjust buttons */
  .btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}


/* ========================================
   MOBILE LARGE (480px to 575px)
   ======================================== */
@media (min-width: 480px) and (max-width: 575px) {
  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.15rem;
    align-items: center;
  }

  .nav-btn-primary {
    font-size: 0.6rem;
    padding: 0.2rem 0.3rem;
  }

  .brand-main {
    font-size: 0.9rem;
  }

  .brand-sub span {
    font-size: 0.5rem;
  }

  .brand-tagline {
    font-size: 0.5rem;
  }

  .kpi-card h2 {
    font-size: 1.4rem;
  }

  .sidebar {
    width: 100%;
    left: -100%;
  }

  .sidebar.active {
    left: 0;
  }

  /* Show all navigation items in horizontal layout */
  .navbar-nav .nav-item {
    display: block;
  }

  /* Adjust table for mobile */
  .table-responsive {
    font-size: 0.75rem;
  }

  .table th,
  .table td {
    padding: 0.3rem 0.15rem;
  }

  /* Hide most columns on mobile */
  .table .d-none-mobile {
    display: none !important;
  }

  /* Stack KPI cards in single column */
  .kpi-card {
    margin-bottom: 1rem;
  }

  /* Adjust form controls */
  .form-control,
  .form-select {
    font-size: 0.85rem;
  }

  /* Adjust buttons */
  .btn-sm {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  /* Adjust card padding */
  .card-body {
    padding: 1rem 0.75rem;
  }
}


/* ========================================
   MOBILE MEDIUM (375px to 479px)
   ======================================== */
@media (min-width: 375px) and (max-width: 479px) {
  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.1rem;
    align-items: center;
  }

  .nav-btn-primary {
    font-size: 0.55rem;
    padding: 0.15rem 0.25rem;
  }

  .brand-main {
    font-size: 0.8rem;
  }

  .brand-sub span {
    font-size: 0.45rem;
  }

  .brand-tagline {
    font-size: 0.45rem;
  }

  .kpi-card h2 {
    font-size: 1.2rem;
  }

  /* Show all navigation items in horizontal layout */
  .navbar-nav .nav-item {
    display: block;
  }

  /* Adjust table for small mobile */
  .table-responsive {
    font-size: 0.7rem;
  }

  .table th,
  .table td {
    padding: 0.25rem 0.1rem;
  }

  /* Hide most columns on small mobile */
  .table .d-none-mobile-small {
    display: none !important;
  }

  /* Stack KPI cards in single column */
  .kpi-card {
    margin-bottom: 0.75rem;
  }

  /* Adjust form controls */
  .form-control,
  .form-select {
    font-size: 0.8rem;
  }

  /* Adjust buttons */
  .btn-sm {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
  }

  /* Adjust card padding */
  .card-body {
    padding: 0.75rem 0.5rem;
  }

  /* Adjust container padding */
  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Ensure navbar has proper height for vertical nav */
  .navbar {
    min-height: auto;
    padding: 0.5rem 0;
  }
}


/* ========================================
   MOBILE SMALL (320px to 374px)
   ======================================== */
@media (min-width: 320px) and (max-width: 374px) {
  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.05rem;
    align-items: center;
  }

  .nav-btn-primary {
    font-size: 0.5rem;
    padding: 0.1rem 0.2rem;
  }

  .brand-main {
    font-size: 0.75rem;
  }

  .brand-sub span {
    font-size: 0.4rem;
  }

  .brand-tagline {
    font-size: 0.4rem;
  }

  .kpi-card h2 {
    font-size: 1rem;
  }

  /* Show all navigation items in horizontal layout */
  .navbar-nav .nav-item {
    display: block;
  }

  /* Adjust table for very small mobile */
  .table-responsive {
    font-size: 0.65rem;
  }

  .table th,
  .table td {
    padding: 0.2rem 0.05rem;
  }

  /* Hide most columns on very small mobile */
  .table .d-none-mobile-xs {
    display: none !important;
  }

  /* Stack KPI cards in single column */
  .kpi-card {
    margin-bottom: 0.5rem;
  }

  /* Adjust form controls */
  .form-control,
  .form-select {
    font-size: 0.75rem;
  }

  /* Adjust buttons */
  .btn-sm {
    font-size: 0.65rem;
    padding: 0.1rem 0.25rem;
  }

  /* Adjust card padding */
  .card-body {
    padding: 0.5rem 0.25rem;
  }

  /* Adjust container padding */
  .container-fluid {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}


/* ========================================
   EXTRA SMALL MOBILE (below 320px)
   ======================================== */
@media (max-width: 319px) {
  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.02rem;
    align-items: center;
  }

  .nav-btn-primary {
    font-size: 0.45rem;
    padding: 0.05rem 0.15rem;
  }

  .brand-main {
    font-size: 0.7rem;
  }

  .brand-sub span {
    font-size: 0.35rem;
  }

  .brand-tagline {
    font-size: 0.35rem;
  }

  .kpi-card h2 {
    font-size: 0.9rem;
  }

  /* Show all navigation items in horizontal layout */
  .navbar-nav .nav-item {
    display: block;
  }

  /* Adjust table for extra small mobile */
  .table-responsive {
    font-size: 0.6rem;
  }

  .table th,
  .table td {
    padding: 0.15rem 0.02rem;
  }

  /* Hide most columns on extra small mobile */
  .table .d-none-mobile-xxs {
    display: none !important;
  }

  /* Stack KPI cards in single column */
  .kpi-card {
    margin-bottom: 0.25rem;
  }

  /* Adjust form controls */
  .form-control,
  .form-select {
    font-size: 0.7rem;
  }

  /* Adjust buttons */
  .btn-sm {
    font-size: 0.6rem;
    padding: 0.05rem 0.2rem;
  }

  /* Adjust card padding */
  .card-body {
    padding: 0.25rem 0.1rem;
  }

  /* Adjust container padding */
  .container-fluid {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
  }
}


/* ========================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ======================================== */
@media (orientation: landscape) and (max-height: 600px) {
  .navbar {
    padding: 0.25rem 0;
  }

  .brand-main {
    font-size: 0.9rem;
  }

  .brand-sub span {
    font-size: 0.5rem;
  }

  .brand-tagline {
    font-size: 0.5rem;
  }

  .kpi-card h2 {
    font-size: 1.4rem;
  }

  .card-body {
    padding: 0.75rem;
  }
}


/* ========================================
   HIGH DPI DISPLAYS (Retina, 4K, etc.)
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .brand-main,
  .brand-sub span,
  .brand-tagline {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .nav-btn-secondary,
  .btn-sm {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}


/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

  .navbar,
  .btn,
  .dropdown-menu {
    display: none !important;
  }

  .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
  }

  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }

  .table {
    border-collapse: collapse !important;
  }

  .table th,
  .table td {
    border: 1px solid #000 !important;
  }

  .kpi-card {
    border: 1px solid #000 !important;
    break-inside: avoid;
  }
}


/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .kpi-card:hover {
    transform: none !important;
  }
}

@media (prefers-contrast: high) {
  .text-muted {
    color: #000 !important;
  }

  .bg-light {
    background-color: #fff !important;
  }

  .border {
    border-color: #000 !important;
  }
}


/* ========================================
   NEW ORDER PAGE STYLES
   ======================================== */

/* Section Number Styling */
.section-number {
  width: 30px;
  height: 30px;
  background-color: var(--skynet-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

/* Vertical Stepper Styles */
.vertical-stepper {
  position: relative;
  padding-left: 60px;
}

.vertical-stepper::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 45px;
  bottom: 125px;
  width: 2px;
  background: var(--skynet-red);
  z-index: 1;
}

.stepper-card {
  position: relative;
  margin-bottom: 2rem;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stepper-card .section-number {
  position: absolute;
  left: -45px;
  top: 20px;
  width: 30px;
  height: 30px;
  background-color: var(--skynet-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 2;
}

.stepper-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--skynet-red);
}

.stepper-card .card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
  padding: 0.7rem 1rem;
}

.stepper-card .card-header h5 {
  color: var(--skynet-dark);
  margin: 0;
}

.stepper-card .card-body {
  padding: 1.5rem;
}



/* Right Column Normal Positioning */
.col-lg-4 {
  position: relative;
}

/* Responsive Stepper */
@media (max-width: 768px) {
  .col-lg-4 {
    margin-top: 2rem;
  }

  .vertical-stepper {
    padding-left: 40px;
  }

  .vertical-stepper::before {
    left: 20px;
  }

  .stepper-card .section-number {
    left: -30px;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }


}

/* Stepper Animation */
@keyframes stepComplete {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.stepper-card.completed .section-number {
  animation: stepComplete 0.5s ease;
}

/* Form Styling for New Order */
.form-label {
  font-weight: 500;
  color: var(--skynet-dark);
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}



.form-control,
.form-select {
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background-color: #ffffff;
  color: #495057;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23F40E12' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--skynet-red);
  box-shadow: 0 0 0 0.15rem rgba(244, 14, 18, 0.15);
  background-color: #ffffff;
  outline: none;
}

.form-control::placeholder,
.form-select::placeholder {
  color: #adb5bd;
  font-size: 0.8rem;
}

/* Change cursor for disabled fields */
.form-control:disabled,
.form-select:disabled {
  cursor: no-drop;
}

/* Red asterisk for required fields */
.form-label.required::after {
  content: "*";
  color: var(--skynet-red);
  margin-left: 0.25rem;
}

/* KYC Upload Button Styling */
.btn-danger {
  background-color: var(--skynet-red);
  border-color: var(--skynet-red);
  font-weight: 600;
 /* text-transform: uppercase; */
  letter-spacing: 0.5px;
}

.btn-danger:hover {
  background-color: #d32f2f;
  border-color: #d32f2f;
}

/* Package Visual */
.package-visual {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  border: 2px dashed #dee2e6;
}

/* AWB Input Container */
.awb-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.awb-edit-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--skynet-red);
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.awb-edit-btn:hover {
  background-color: #d32f2f;
  transform: translateY(-50%) scale(1.1);
}

.awb-edit-btn i {
  font-size: 12px;
}

/* Adjust input padding to accommodate the button */
.awb-input-container .form-control {
  padding-right: 40px;
}

/* Sort By Bar */
.sort-by-bar {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.sort-by-label {
  color: var(--skynet-red);
  font-weight: 500;
  font-size: 0.875rem;
}

.sort-by-value {
  color: var(--skynet-dark);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Shipping Options */
.shipping-option {
  position: relative;
}

.shipping-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shipping-option-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.shipping-icon {
  width: 42px;
  height: 42px;
  background-color: #e9ecef;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.shipping-icon i {
  color: var(--skynet-dark);
  font-size: 1.2rem;
}

.shipping-content {
  flex-grow: 1;
}

.shipping-title {
  color: var(--skynet-dark);
  margin-bottom: 0.25rem;
}

.shipping-subtitle {
  font-size: 0.875rem;
  color: #6c757d;
}

.shipping-radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  background-color: #ffffff;
  position: relative;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.shipping-radio:checked+.shipping-option-label .shipping-radio-custom {
  border-color: var(--skynet-red);
  background-color: var(--skynet-red);
}

.shipping-radio:checked+.shipping-option-label .shipping-radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
}

.shipping-status {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Calendar Styling */
.flatpickr-calendar {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Poppins', sans-serif;
  z-index: 9999;
}

.flatpickr-months {
  background: var(--skynet-red);
  border-radius: 8px 8px 0 0;
  padding: 4px 0;
}

.flatpickr-month {
  color: #ffffff;
  font-weight: 600;
}

.flatpickr-current-month {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
}

.flatpickr-monthDropdown-months {
  background: transparent;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 1.1rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 8px;
  padding-right: 30px;
}

.flatpickr-monthDropdown-months option {
  background: #ffffff;
  color: var(--skynet-dark);
}

/* Year dropdown styling */
.flatpickr-current-month .numInputWrapper {
  position: relative;
}

.flatpickr-current-month .numInputWrapper input {
  background: transparent;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: none;
}

/* Basic year input styling */
.flatpickr-current-month .numInputWrapper input {
  background: transparent;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  outline: none;
  box-shadow: none;
}

/* Use default Flatpickr year arrows */
.flatpickr-current-month .numInputWrapper .arrowUp,
.flatpickr-current-month .numInputWrapper .arrowDown {
  color: #ffffff;
  fill: #ffffff;
}

/* Target the specific Flatpickr arrow pseudo-elements */
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
  border-bottom-color: #ffffff !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-top-color: #ffffff !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  color: #ffffff;
  fill: #ffffff;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  opacity: 1;
  filter: brightness(1);
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  fill: #ffffff;
  transform: scale(1.1);
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  stroke: #ffffff;
  fill: none;
}

/* Ensure navigation arrows are visible */
.flatpickr-prev-month,
.flatpickr-next-month {
  position: relative;
  z-index: 1;
}

.flatpickr-prev-month::before,
.flatpickr-next-month::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  z-index: -1;
}

/* Month and year text styling */
.flatpickr-current-month {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.flatpickr-monthDropdown-months {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.flatpickr-weekdays {
  background: #f8f9fa;
  border-bottom: 1px solid #e1e5e9;
}

.flatpickr-weekday {
  color: var(--skynet-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 0;
}

.flatpickr-days {
  background: #ffffff;
}

.flatpickr-day {
  border-radius: 6px;
  margin: 2px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.flatpickr-day:hover {
  background: rgba(244, 14, 18, 0.1);
  border-color: var(--skynet-red);
}

.flatpickr-day.selected {
  background: var(--skynet-red);
  border-color: var(--skynet-red);
  color: #ffffff;
}

.flatpickr-day.today {
  background: rgba(244, 14, 18, 0.2);
  border-color: var(--skynet-red);
  color: var(--skynet-red);
  font-weight: 600;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #adb5bd;
}

.flatpickr-day.disabled {
  color: #dee2e6;
  background: transparent;
}

.flatpickr-day.disabled:hover {
  background: transparent;
  border-color: transparent;
}

/* Calendar input styling */
.calendar-input {
  position: relative;
}

.calendar-input::after {
  content: '\f073';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--skynet-red);
  pointer-events: none;
  z-index: 1;
}

.calendar-input input {
  padding-right: 40px;
}

/* Time Picker Styling to match Date Picker */
.flatpickr-calendar.timepicker {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Poppins', sans-serif;
  z-index: 9999;
}

.flatpickr-calendar.timepicker .flatpickr-time {
  background: var(--skynet-red);
  border-radius: 8px 8px 0 0;
  padding: 8px 0;
}

.flatpickr-calendar.timepicker .flatpickr-time .numInputWrapper {
  background: transparent;
  border: none;
}

.flatpickr-calendar.timepicker .flatpickr-time .numInputWrapper input {
  background: transparent;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  outline: none;
  box-shadow: none;
}

.flatpickr-calendar.timepicker .flatpickr-time .numInputWrapper .arrowUp,
.flatpickr-calendar.timepicker .flatpickr-time .numInputWrapper .arrowDown {
  color: #ffffff;
  fill: #ffffff;
}

.flatpickr-calendar.timepicker .flatpickr-time .numInputWrapper span.arrowUp:after {
  border-bottom-color: #ffffff !important;
}

.flatpickr-calendar.timepicker .flatpickr-time .numInputWrapper span.arrowDown:after {
  border-top-color: #ffffff !important;
}

.flatpickr-calendar.timepicker .flatpickr-am-pm {
  background: transparent;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.flatpickr-calendar.timepicker .flatpickr-am-pm:hover {
  background: rgba(255, 255, 255, 0.2);
}

.flatpickr-calendar.timepicker .flatpickr-am-pm.selected {
  background: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

/* Map Container */
.map-container {
  position: relative;
  background-color: #ffffff;
  overflow: hidden;
}

.map-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.map-marker {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Form Check Styling */
.form-check-input:checked {
  background-color: var(--skynet-red);
  border-color: var(--skynet-red);
}

.form-check-input:focus {
  border-color: var(--skynet-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Button Styling */
.btn-outline-danger {
  border-color: var(--skynet-red);
  color: var(--skynet-red);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-danger:hover {
  background-color: var(--skynet-red);
  border-color: var(--skynet-red);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(244, 14, 18, 0.2);
}

.btn-danger {
  background-color: var(--skynet-red);
  border-radius: 6px;
  padding: 0.4rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(244, 14, 18, 0.2);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 14, 18, 0.3);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* Card Styling */
.card {
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
  border-bottom: 1px solid #dee2e6;
  background-color: #ffffff;
  border-radius: 12px 12px 0 0 !important;
}

/* Form Group Spacing */
.form-group {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 0.875rem !important;
}

/* Modern Card Styling */
.card {
  border: 1px solid #e1e5e9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-header {
  border-bottom: 1px solid #e1e5e9;
  background-color: #ffffff;
  border-radius: 10px 10px 0 0 !important;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

/* Section Number Enhancement */
.section-number {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--skynet-red), #e63946);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(244, 14, 18, 0.2);
}

/* Responsive adjustments for new order page */
@media (max-width: 768px) {
  .logo-image {
    height: 40px;
    max-width: 150px;
  }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .logo-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Responsive adjustments for new order page */
@media (max-width: 768px) {
  .navbar .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  #dashboard-section,
  #orders-section,
  #new-order-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .col,
  .col-1,
  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-10,
  .col-11,
  .col-12,
  .col-sm,
  .col-sm-1,
  .col-sm-2,
  .col-sm-3,
  .col-sm-4,
  .col-sm-5,
  .col-sm-6,
  .col-sm-7,
  .col-sm-8,
  .col-sm-9,
  .col-sm-10,
  .col-sm-11,
  .col-sm-12,
  .col-md,
  .col-md-1,
  .col-md-2,
  .col-md-3,
  .col-md-4,
  .col-md-5,
  .col-md-6,
  .col-md-7,
  .col-md-8,
  .col-md-9,
  .col-md-10,
  .col-md-11,
  .col-md-12,
  .col-lg,
  .col-lg-1,
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-9,
  .col-lg-10,
  .col-lg-11,
  .col-lg-12,
  .col-xl,
  .col-xl-1,
  .col-xl-2,
  .col-xl-3,
  .col-xl-4,
  .col-xl-5,
  .col-xl-6,
  .col-xl-7,
  .col-xl-8,
  .col-xl-9,
  .col-xl-10,
  .col-xl-11,
  .col-xl-12 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .section-number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .form-control,
  .form-select {
    padding: 0.5rem 0.625rem;
    font-size: 0.8rem;
  }

  .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .card-body {
    padding: 1rem;
  }

  .card-header {
    padding: 0.875rem 1rem;
  }

  .package-visual {
    padding: 1rem;
  }

  .cost-summary {
    padding: 1rem;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .navbar .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  #dashboard-section,
  #orders-section,
  #new-order-section {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}


/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

/* Login Page Specific Styles */
body.login-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: auto;
  /* Ensure the body can handle zoom properly */
  position: relative;
}

/* Login Page Specific Styles */
body.signup-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  margin: 0;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: auto;
  /* Ensure the body can handle zoom properly */
  position: relative;
}

/* Main Container */
.login-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: 600px;
  max-height: 90vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: auto;
  position: relative;
  /* Ensure container adapts to zoom */
  box-sizing: border-box;
}

/* Left Panel - Sign In Form */
.login-form-panel {
  flex: 1;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-width: 0;
  overflow: hidden;
}

.form-content {
  width: 100%;
  max-width: 400px;
  min-width: 0;
}

/* Logo and Header */
.login-header {
  margin-bottom: 2rem;
  text-align: center;
}

.login-page .brand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  width: 70%;
  max-width: 70%;
  height: auto;
  object-fit: contain;
}

.login-page .brand-main {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.login-page .brand-sub {
  background-color: var(--skynet-red);
  padding: 0.25rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.login-page .brand-sub span {
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.login-page .brand-tagline {
  font-size: 0.8rem;
  line-height: 1;
}

/* Sign In Title */
.signin-title {
  margin-bottom: 1rem;
}

.signin-title h1 {
  font-size: 2.5rem;
  margin: 0;
}

/* Account Link */
.account-link {
  margin-bottom: 2rem;
}

.account-link p {
  margin: 0;
  font-size: 0.95rem;
}

/* Form Styles */
.login-form {
  width: 100%;
}

.login-page .form-label {
  font-weight: 500;
  color: var(--skynet-dark);
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.login-page .form-control {
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.login-page .form-control:focus {
  border-color: var(--skynet-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Password Input Group */
.password-input-group {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--skynet-gray);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--skynet-red);
}

/* Form Options */
.form-options {
  margin-bottom: 2rem;
}

.form-check-label {
  font-size: 0.9rem;
  color: var(--skynet-dark);
}

/* Sign In Button */
.signin-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  background-color: var(--skynet-red);
  border-color: var(--skynet-red);
  transition: all 0.2s ease;
}

.signin-btn:hover {
  background-color: var(--skynet-dark-red);
  border-color: var(--skynet-dark-red);
  transform: translateY(-1px);
}

/* Separator */
.separator {
  position: relative;
  text-align: center;
}

.separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #dee2e6;
}

.separator-text {
  background: white;
  padding: 0 1rem;
  color: var(--skynet-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Social Login Buttons */
.social-login {
  margin-bottom: 1rem;
}

.social-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: white;
  color: var(--skynet-dark);
  transition: all 0.2s ease;
}

.social-btn:hover {
  border-color: var(--skynet-red);
  color: var(--skynet-red);
  background-color: rgba(220, 53, 69, 0.05);
}

/* Right Panel - Promotional Content */
.promo-panel {
  flex: 1;
  background: var(--skynet-red);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.promo-content {
  width: 100%;
  max-width: 500px;
  text-align: center;
  color: white;
  z-index: 2;
  position: relative;
  min-width: 0;
}

/* Promotional Image */
.promo-image {
  margin-bottom: 2rem;
}

.delivery-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}

/* Company Name */
.company-name {
  margin-bottom: 1.5rem;
}

.company-name h2 {
  font-size: 2rem;
  margin: 0;
  font-weight: bold;
}

/* Company Description */
.company-description {
  margin-bottom: 2rem;
}

.company-description p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
}

/* Carousel Navigation */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: #F40E12;
  padding: 1rem 1.5rem;
  position: relative;
  box-shadow: 0 4px 15px rgba(244, 14, 18, 0.3);
}



.carousel-arrow {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  font-size: 14px;
  transform: rotate(-5deg);
}

.carousel-arrow:last-child {
  transform: rotate(5deg);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1) rotate(-5deg);
  color: white;
}

.carousel-arrow:last-child:hover {
  transform: scale(1.1) rotate(5deg);
}

.carousel-arrow.clicked {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0.95) rotate(-5deg);
  color: white;
}

.carousel-arrow:last-child.clicked {
  transform: scale(0.95) rotate(5deg);
}

.carousel-dots {
  display: flex;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.3);
}

.dot.active::before {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(1.2);
}

/* Enhanced carousel nav positioning and effects */
.carousel-nav {
  margin-top: 2rem;
  backdrop-filter: blur(5px);
}

/* Add subtle glow effect to active elements */
.carousel-arrow:focus,
.dot:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Smooth animation for dot transitions */
.dot {
  animation: dotPulse 2s ease-in-out infinite;
}

.dot.active {
  animation: activeDotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes activeDotPulse {

  0%,
  100% {
    opacity: 0.9;
  }

  50% {
    opacity: 1;
  }
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.dot.active::before {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(1.2);
}

/* Enhanced carousel nav positioning and effects */
.carousel-nav {
  margin-top: 2rem;
  backdrop-filter: blur(5px);
}

/* Add subtle glow effect to active elements */
.carousel-arrow:focus,
.dot:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Smooth animation for dot transitions */
.dot {
  animation: dotPulse 2s ease-in-out infinite;
}

.dot.active {
  animation: activeDotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes activeDotPulse {

  0%,
  100% {
    opacity: 0.9;
  }

  50% {
    opacity: 1;
  }
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* CSB Information Button Styling */
:root {
  --skynet-red: #F40E12;
  --skynet-red-dark: #D10000;
  --skynet-red-rgba: rgba(244, 14, 18, 0.3);
  --skynet-red-rgba-hover: rgba(244, 14, 18, 0.4);
  --skynet-red-rgba-focus: rgba(244, 14, 18, 0.3);
}

.csb-button-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px var(--skynet-red-rgba);
  transition: all 0.3s ease;
}

.csb-button-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--skynet-red-rgba-hover);
}

.csb-button-card .card-header {
  background: var(--skynet-red);
  border: none;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.csb-button-card .card-body {
  display: none;
}

.csb-button-card .form-check-input {
  background-color: white;
  border: 2px solid white;
  width: 16px;
  height: 16px;
}

.csb-button-card .form-check-input:checked {
  background-color: white;
  border-color: white;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23F40E12' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.csb-button-card .form-check-input:focus {
  border-color: white;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

.csb-button-card .form-check-inline {
  margin-right: 0;
  margin-left: 16px;
}

.csb-button-card .form-check-inline:first-child {
  margin-left: 0;
}



/* Login Page Responsive Design */
@media (max-width: 1024px) {
  body.login-page {
    padding: 15px;
  }

  .login-container {
    max-height: 85vh;
  }

  .login-form-panel,
  .promo-panel {
    padding: 1.5rem;
  }

  .login-page .brand-main {
    font-size: 1.8rem;
  }

  .signin-title h1 {
    font-size: 2.2rem;
  }

  .company-name h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  body.login-page {
    padding: 10px;
    min-height: auto;
    height: auto;
  }

  .login-container {
    flex-direction: column;
    height: auto;
    min-height: auto;
    border-radius: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .login-form-panel {
    order: 2;
    padding: 2rem 1.5rem;
    flex: 1;
  }

  /* Mobile carousel controls */
  .carousel-nav {
    padding: 0.8rem 1.2rem;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .carousel-dots {
    gap: 0.6rem;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  .dot::before {
    width: 10px;
    height: 10px;
  }
}

.promo-panel {
  order: 1;
  padding: 2rem 1.5rem;
  min-height: 300px;
  flex: 1;
}

.form-content {
  max-width: 100%;
}

.login-page .brand-main {
  font-size: 1.6rem;
}

.signin-title h1 {
  font-size: 2rem;
}

.company-name h2 {
  font-size: 1.6rem;
}

.delivery-image {
  max-width: 100%;
}

@media (max-width: 480px) {
  body.login-page {
    padding: 5px;
    min-height: auto;
    height: auto;
  }

  .login-container {
    max-height: none;
    overflow: visible;
  }

  .login-form-panel,
  .promo-panel {
    padding: 1.5rem 1rem;
  }

  .login-page .brand-main {
    font-size: 1.4rem;
  }

  .signin-title h1 {
    font-size: 1.8rem;
  }

  .company-name h2 {
    font-size: 1.4rem;
  }
}

/* Handle zoom scenarios and high zoom levels */
@media screen and (max-height: 600px),
(max-width: 600px) {
  body.login-page {
    padding: 10px;
    min-height: auto;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .login-container {
    max-height: none;
    min-height: auto;
    overflow: visible;
    margin: 10px 0;
  }

  .login-form-panel,
  .promo-panel {
    padding: 1rem;
  }
}

/* Handle 125% and 150% zoom levels specifically */
@media screen and (max-height: 700px) and (min-width: 1000px) {
  body.login-page {
    padding: 15px;
    min-height: auto;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .login-container {
    max-height: none;
    min-height: auto;
    overflow: visible;
    margin: 15px 0;
    max-width: 95vw;
  }

  .login-form-panel,
  .promo-panel {
    padding: 1.5rem;
  }
}

/* Handle very high zoom levels */
@media screen and (max-height: 400px) {
  body.login-page {
    padding: 5px;
  }

  .login-container {
    margin: 5px 0;
  }

  .login-form-panel,
  .promo-panel {
    padding: 0.75rem;
  }
}

/* Additional zoom level handling using viewport units */
@media screen and (max-height: 80vh) and (min-width: 1200px) {
  body.login-page {
    min-height: auto;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
  }

  .login-container {
    max-height: none;
    min-height: auto;
    overflow: visible;
    margin: 10px 0;
  }
}

/* Handle medium zoom levels (125%, 150%) */
@media screen and (max-height: 75vh) and (min-width: 1200px) {
  body.login-page {
    padding: 15px;
    min-height: auto;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .login-container {
    max-height: none;
    min-height: auto;
    overflow: visible;
    margin: 15px 0;
    max-width: 95vw;
  }
}

.login-page .form-control {
  padding: 0.75rem;
}

.signin-btn {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

.social-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
}

/* Login Page Animation for form elements */
.login-page .form-control,
.signin-btn,
.social-btn {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Page Zoom handling and overflow prevention */
@media screen and (max-width: 100vw) {
  body.login-page {
    overflow-x: hidden;
  }

  .login-container {
    margin: 0 auto;
  }
}

/* Login Page High zoom level handling */
@media screen and (min-resolution: 2dppx) {
  .login-container {
    transform: scale(0.95);
    transform-origin: center center;
  }
}

/* Login Page Very high zoom level handling */
@media screen and (min-resolution: 3dppx) {
  .login-container {
    transform: scale(0.9);
    transform-origin: center center;
  }
}

/* Login Page Hover effects */
.login-page .form-control:hover {
  border-color: #adb5bd;
  box-shadow: 0 0 0 0.1rem rgba(173, 181, 189, 0.25);
}

.signin-btn:active {
  transform: translateY(0);
}

.social-btn:active {
  transform: scale(0.98);
}

.pr-0 {
  padding-right: 0 !important;
}

.pl-0 {
  padding-left: 0 !important;
}

.border-none {
  border: none !important;
}

/* Add Another Button Styling */
.btn-white {
  background-color: white !important;
  border: 1px solid #dc3545 !important;
  color: #dc3545 !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-white:hover {
  background-color: #f8f9fa !important;
  border-color: #c82333 !important;
  color: #c82333 !important;
}

.btn-white .fas.fa-plus-circle {
  color: #dc3545 !important;
  font-size: 1.1rem;
}

/* Universal Editable Field Styling */
.editable-field-btn {
  background-color: var(--skynet-red);
  border: none;
  color: white;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 0.7rem;
}

.editable-field-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 2px 8px rgba(244, 14, 18, 0.3);
}

.editable-field-btn.editing {
  background-color: #28a745;
}

.editable-field-btn.saved {
  background-color: var(--skynet-red);
}

.editable-field-container {
  position: relative;
}

.editable-field-container input:disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

/* Remove Item Button Styling */
.remove-item-btn {
  background-color: var(--skynet-red);
  border: none;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.remove-item-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(244, 14, 18, 0.3);
  background-color: #d10000;
}

/* Skynet Red Header Styling */
.skynet-red-header {
  background-color: var(--skynet-red) !important;
  color: white !important;
  border-radius: 0 !important;
  border-bottom: none !important;
}

/* Override stepper-card header for shipment invoice items */
.stepper-card .skynet-red-header {
  background: var(--skynet-red) !important;
  border-bottom: none !important;
}

/* ========================================
   COURIER BACKGROUND ANIMATIONS
   ======================================== */

/* Background Animation Container */
.background-animations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(244, 14, 18, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
}

/* Courier Animations Container */
.courier-animations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Delivery Truck Styles */
.delivery-truck {
  position: absolute;
  font-size: 3rem;
  color: rgba(244, 14, 18, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(244, 14, 18, 0.1));
}

.delivery-truck:hover {
  color: rgba(244, 14, 18, 0.4);
  transform: scale(1.1);
}

.truck-trail {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 14, 18, 0.3), transparent);
  transform: translateY(-50%);
  border-radius: 1px;
  opacity: 0;
}

/* Flying Plane Styles */
.flying-plane {
  position: absolute;
  font-size: 2.5rem;
  color: rgba(244, 14, 18, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(244, 14, 18, 0.08));
}

.flying-plane:hover {
  color: rgba(244, 14, 18, 0.3);
  transform: scale(1.15);
}

.plane-trail {
  position: absolute;
  top: 50%;
  left: -30px;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 14, 18, 0.2), transparent);
  transform: translateY(-50%);
  border-radius: 0.5px;
  opacity: 0;
}

/* Floating Package Styles */
.floating-package {
  position: absolute;
  font-size: 2rem;
  color: rgba(244, 14, 18, 0.12);
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(244, 14, 18, 0.06));
}

.floating-package:hover {
  color: rgba(244, 14, 18, 0.25);
  transform: scale(1.2);
}

.package-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(244, 14, 18, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* Delivery Route Styles */
.delivery-route {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(244, 14, 18, 0.1), transparent);
  border-radius: 2px;
  opacity: 0;
}

/* Floating Icon Styles */
.floating-icon {
  position: absolute;
  font-size: 1.8rem;
  color: rgba(244, 14, 18, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(244, 14, 18, 0.05));
}

.floating-icon:hover {
  color: rgba(244, 14, 18, 0.25);
  transform: scale(1.3);
}

.icon-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(244, 14, 18, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* Ensure login container stays above animations */
.login-container {
  position: relative;
  z-index: 10;
}

/* Responsive adjustments for animations */
@media (max-width: 768px) {
  .delivery-truck {
    font-size: 2.2rem;
  }

  .flying-plane {
    font-size: 2rem;
  }

  .floating-package {
    font-size: 1.6rem;
  }

  .floating-icon {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .delivery-truck {
    font-size: 1.8rem;
  }

  .flying-plane {
    font-size: 1.6rem;
  }

  .floating-package {
    font-size: 1.3rem;
  }

  .floating-icon {
    font-size: 1.2rem;
  }
}

.shipper-db-container {
  border-radius: 8px;
  padding: 8px;
  background: #f8f9fa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  margin-left: auto;
  margin-right: auto;
}

.shipper-db-header {
  font-size: 1.2rem;
  font-weight: 400;
  color: #ffffff;
  border-radius: 6px;
  padding: 0px 7px;
  margin-bottom: 15px;
  letter-spacing: 1px;
  color: #5e17eb;
  background-color: #5e17eb17;
}

.shipper-form-label {
  font-size: 14px;
  font-weight: 500;
  color: #343a40;
  padding-top: 10px;
}

.shipper-db-container .form-control,
.shipper-db-container .select_search {
  border-radius: 5px;
  border: 1px solid #ced4da;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  background: #fff;
  transition: border .2s;
}

.shipper-db-container .form-control:focus,
.shipper-db-container .select_search:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, .1);
}

.shipper-db-container .form-group {
  margin-bottom: 22px;
}

@media (max-width: 600px) {
  .shipper-db-header {
    font-size: 1.2rem;
    padding: 8px 10px;
  }

  .shipper-db-container {
    padding: 18px 6px;
  }
}


td a:hover {
  outline: 0;
  text-decoration: none;
  color: #ef233c;
}

.invoice-modern-ui {
  background: #f6f7fb;
  padding: 30px;
  border-radius: 28px;
}

.invoice-modern-ui .box {
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  margin-bottom: 32px;
  overflow: hidden;
}

.invoice-modern-ui .box-header {
  padding: 24px 32px 8px;
  border-bottom: none;
}

/* .invoice-modern-ui .box-body {
  padding: 0 32px 32px;
} */


.invoice-modern-ui .invoice-filters-grid .form-group {
  margin-top: 5px;
}

.invoice-modern-ui label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.invoice-modern-ui .form-control,
.invoice-modern-ui .select_search {
  height: 34px;
  border-radius: 3px;
  border: 1px solid #ddd;
  box-shadow: none;
}

.invoice-modern-ui .form-control:focus,
.invoice-modern-ui .select_search:focus {
  border-color: #f5001d;
}

.invoice-modern-ui .btn,
.invoice-modern-ui .btn-primary,
.invoice-modern-ui .btn-secondary {
  border-radius: 5px;
  padding: 4px 12px;
  font-weight: 500;
 /* text-transform: uppercase; */
  letter-spacing: 0.04em;
  border: none;
  background-color: #f40e12;
  color: white;
}

.invoice-modern-ui .btn-primary,
.invoice-modern-ui .btn-secondary,
.invoice-modern-ui .btn-danger {
  color: #fff;
}

.invoice-modern-ui .btn-default,
.invoice-modern-ui .btn-light,
.invoice-modern-ui .btn-outline-secondary {
  border: 1px solid #e2e8f0;
  color: #475569;
  background: #fff;
  box-shadow: none;
}

.invoice-modern-ui .invoice-toolbar {
  align-items: center;
  padding: 10px 0 18px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.invoice-modern-ui .invoice-toolbar span {
  display: inline-block;
  margin-right: 18px;
  font-weight: 600;
  color: #475569;
}

.invoice-modern-ui table {
  border-collapse: separate;
  border-spacing: 0 12px;
}

.invoice-modern-ui #first tr:first-child th,
.invoice-modern-ui #second tr:first-child th {
    position: sticky;
    top: 0;
    color: var(--skynet-red) !important;
    z-index: 10;
    background: #fff;
    border-color: #fde7e7 !important;
    background: var(--skynet-th-color) !important;
    white-space: nowrap;
    font-weight: 600;
}

.link_highlight {
  color: #f50000;
  text-decoration: none;
}

.invoice-modern-ui #first tr:not(:first-child),
.invoice-modern-ui #second tr:not(:first-child) {
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.invoice-modern-ui #first td,
.invoice-modern-ui #second td {
  padding: 16px 18px;
  border-top: none;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #1f2933;
}

.invoice-modern-ui #first tr.inactive_row td {
  background: #fff3cd;
}

.invoice-modern-ui #second td a,
.invoice-modern-ui #first td a {
  font-weight: 600;
  color: #ef233c;
}

.invoice-modern-ui .export_button,
.invoice-modern-ui .print_button,
.invoice-modern-ui .edit_button {
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.invoice-modern-ui .export_button {
  background: #fff5f0;
  color: #d9480f;
  border-color: #ffd0be;
}

.invoice-modern-ui .print_button {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #dbeafe;
}

.invoice-modern-ui .edit_button {
  background: #ffe8ec;
  color: #b91c1c;
  border-color: #ffc9d4;
}

.invoice-modern-ui .table-responsive {
  border-radius: 20px;
}

.invoice-modern-ui #pagination_per_page_id {
  border-radius: 30px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding-left: 20px;
}

.invoice-modern-ui .select_invoice_td,
.invoice-modern-ui .auto_email_td {
  width: 80px;
}

.invoice-modern-ui .form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.invoice-modern-ui .modal-content {
  border-radius: 24px;
  border: none;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
}

@media (max-width: 991px) {
  .invoice-modern-ui {
    padding: 18px;
  }

  .invoice-modern-ui .box {
    padding: 12px;
  }

  .invoice-modern-ui .box-body {
    padding: 0 12px 20px;
  }

  .invoice-modern-ui table {
    border-spacing: 0 8px;
  }
}

:root {
  --ledger-primary: #ff0011;
  --ledger-primary-dark: #ff0011;
  --ledger-muted: #8c8fa0;
  --ledger-border: #e6e8ef;
  --ledger-soft-bg: #fff5f5;
}

.ledger-card {
  background: #ffffff;
  border: 1px solid var(--ledger-border);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 10px 0 25px;
  box-shadow: 0 12px 30px rgba(20, 20, 43, 0.08);
}

.ledger-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ledger-border);
  margin-bottom: 18px;
}

.ledger-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  color: #1b1c1f;
}

.ledger-card__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ledger-muted);
}

.ledger-card__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-pill {
  border-radius: 5px;
  font-weight: 500;
  padding: 3px 8px;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.btn-pill i {
  font-size: 14px;
}

.btn-soft {
  background: var(--ledger-soft-bg);
  color: var(--ledger-primary);
  border: 1px solid rgba(244, 63, 75, 0.25);
}

.btn-soft:hover {
  background: rgba(244, 63, 75, 0.12);
  border-color: var(--ledger-primary);
}

.btn-solid {
  background: var(--ledger-primary);
  color: #fff;
  border: 1px solid transparent;
}

.btn-solid:hover {
  background: var(--ledger-primary-dark);
  color: #fff;
}

.order-search {
  position: relative;
}

.order-search input {
  padding-left: 36px !important;
}

.order-search:before {
  content: "\f002";
  font-family: FontAwesome;
  position: absolute;
  left: 16px;
  top: 46px;
  transform: translateY(-50%);
  color: #b5b8c6;
  font-size: 13px;
}

.ledger-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ledger-table {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--ledger-border);
  padding: 0 18px 18px;
  box-shadow: 0 8px 26px rgba(18, 18, 43, 0.06);
}

.ledger-table table thead th,
.ledger-table table tr:first-child th {
  background: #fde7e7  !important;
  color: #ff0011 !important;
 /* text-transform: uppercase; */
  font-size: 15px;
  letter-spacing: 0.03em;
}

.ledger-table table td,
.ledger-table table th {
  vertical-align: middle !important;
}

.ledger-table table tbody tr:hover {
  background: rgba(244, 63, 75, 0.04);
}

.ledger_print {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.section_head {
  background: #b5d4ee !important;
  color: black !important;
  padding: 3px;
}

.credit_msg {

  font-size: 13px;
  font-weight: 700;
  color: #065a20 !important;
}

@media print {
  body {
    margin: 5px;
  }

  .layout-top-nav .content-wrapper {
    margin-top: 0px;
  }

  .no-print,
  .no-print * {
    display: none !important;
  }

  ::-webkit-scrollbar {
    display: none;
  }
}

.manifest-main-box {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid #eef0f4;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(44, 62, 80, 0.12);
  margin: 15px 4px;
}

.manifest-filters {
  background: rgba(248, 250, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  border: 1px solid #e6e9f2;
  box-shadow: 0 4px 18px rgba(44, 62, 80, 0.10);
  padding: 15px;
  width: 200vh;
}

.manifest-filters .form-control {
  border-radius: 5px;
  border: 1px solid #dce1eb;
  height: 30px;
}

.manifest-filters .form-group {
  font-size: 15px;
}

.manifest-filters .form-control:focus {
  border-color: #0162e8;
  box-shadow: 0 0 0 4px rgba(1, 98, 232, 0.12);
}

.manifest-header {
  font-size: 30px;
  font-weight: 500;
  color: #f40e12;
  padding: 9px;
}

.manifest-table-box {
  border-radius: 14px;
  border: 1px solid #e6e9f2;
  box-shadow: 0 8px 30px rgba(44, 62, 80, 0.12);
}

.manifest-table thead th {
  background: linear-gradient(to bottom, #f5f7fb, #edeff5);
  font-size: 15px;
  border-bottom-width: 3px;
}

.manifest-table tbody tr {
  transition: background 0.20s, box-shadow 0.20s;
}

.manifest-table tbody tr:hover {
  background: #f5f7ff !important;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.10);
}

.manifest-table .btn-action {
  border-radius: 10px;
  background: #e8efff;
}

.manifest-table .btn-action:hover {
  background: #d7e3ff;
  transform: translateY(-1px);
}

.btn-primary,
.btn-success,
.btn-warning {
  border-radius: 8px !important;
  padding: 7px 16px;
  font-weight: 600;
}

.btn-primary:hover {
  background: #014ec0;
}

.btn-success:hover {
  background: #1eaa36;
}

.btn-warning:hover {
  background: #e5a307;
}

/* Checkbox modern look */
.manifest-table input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #0162e8;
  border-radius: 4px;
}

/* Table input modern feel */
.table_input {
  border-radius: 6px;
  border: 1px solid #dce1eb;
  padding: 4px 6px;
}

.table_input:focus {
  border-color: #0162e8;
  box-shadow: 0 0 0 3px rgba(1, 98, 232, 0.15);
}

.dropdown-button{
    background: var(--skynet-red, #f40e12);
    font-size: 13px;
    color: #fff;
    border-radius: 6px;
    border: none;
    padding: 8px 20px;
    font-weight: 500;
    letter-spacing: .3px;
    transition: background-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.dropdown-button:hover,
.dropdown-button:focus{
    background: #c4162f;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(244, 14, 18, 0.18);
    transform: translateY(-1px);
    text-decoration: none;
    outline: none;
}

footer.no-print {
    text-align: center;
    margin: 10px
}

.fixing {
 padding-left: 20px;
}
.fixing1 {
 margin-right: -16px;
}
