@charset "UTF-8";
/* Main Application Styles */
/* Import order: fonts -> variables -> mixins -> utilities -> components -> pages -> responsive */
/* Inter Font Family - Local */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("../fonts/Inter-Thin-c065f299025dcd885a234242229ba378.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100;
  font-display: swap;
  src: url("../fonts/Inter-ThinItalic-b302f975500e3869cb804f749f81ab2f.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/Inter-ExtraLight-5a1bca5c83220e9c1a878598a7c091c3.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/Inter-ExtraLightItalic-c86eb73a04d9ac79665e9c2b715e9b66.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Inter-Light-dd2d968186b9b44ec16f3eaad257580c.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Inter-LightItalic-40bd9615d96cf7c788fe5c34fc7aee7e.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Regular-2b34c4de9bd84588e446455bc3474174.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Italic-9926156dd674487afdf067d8f23ba37f.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-Medium-f195c91ea6478e6b99874ccb275a3474.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-MediumItalic-435e02f176208ee65bd50f08a2ebbdce.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-SemiBold-7731f17c0a74a2d10ffd8bed0cbc243f.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-SemiBoldItalic-af4914667aae009acb0d071beedb80b8.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Inter-Bold-bfa3604899fa6e76f5d241edff33b6b2.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Inter-BoldItalic-dbcf86219ecc39d308a5ab2b67e04f74.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/Inter-ExtraBold-aacea4c2d9deed79b9452e057783db4d.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/Inter-ExtraBoldItalic-2cf1396555cd2d7a473a484e449f9604.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/Inter-Black-3a84dc74b28349f0a5ac20daf108228e.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/Inter-BlackItalic-e9b8021485a4046014b8a7e7be778dd7.woff2") format("woff2");
}
/* Variables - Design System */
/* Integrated with Bootstrap 5 */
/* Mixins - Reusable Style Patterns */
/* Variables - Design System */
/* Integrated with Bootstrap 5 */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* Utilities - Helper Classes */
/* Variables - Design System */
/* Integrated with Bootstrap 5 */
/* Mixins - Reusable Style Patterns */
/* Variables - Design System */
/* Integrated with Bootstrap 5 */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.is-loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}
.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.is-submitting {
  opacity: 0.8;
  pointer-events: none;
}

.loading-overlay {
  position: relative;
  pointer-events: none;
}
.loading-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-hover-lift {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.btn-hover-lift:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.btn-hover-lift:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.btn-hover-lift:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-gradient-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.btn-gradient-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.btn-gradient-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.btn-gradient-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-gradient-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5 0%, #7a44f5 100%);
}

.btn-gradient-accent {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.btn-gradient-accent:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.btn-gradient-accent:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.btn-gradient-accent:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.card-base {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  padding: 1.25rem 1.25rem;
}

.card-hover {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-interactive {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  padding: 1.25rem 1.25rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.card-interactive:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gap-xs {
  gap: 0.25rem;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

.gap-xl {
  gap: 3rem;
}

.shadow-xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.shadow-primary {
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3) !important;
}

.shadow-success {
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3) !important;
}

.shadow-danger {
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.3) !important;
}

.shadow-warning {
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3) !important;
}

.shadow-hover {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.shadow-hover:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.z-notifications {
  z-index: 10000 !important;
}

.z-modal {
  z-index: 1050 !important;
}

.z-tooltip {
  z-index: 1070 !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.fade-out {
  animation: fadeOut 0.3s ease-in-out;
}

.slide-in-right {
  animation: slideInRight 0.3s ease-in-out;
}

.slide-in-left {
  animation: slideInLeft 0.3s ease-in-out;
}

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-start {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.flex-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.flex-column-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-3-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.grid-4-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}
.badge-status.badge-success {
  background-color: #10b981;
  color: #ffffff;
}
.badge-status.badge-success.badge-soft {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.badge-status.badge-danger {
  background-color: #ef4444;
  color: #ffffff;
}
.badge-status.badge-danger.badge-soft {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.badge-status.badge-warning {
  background-color: #f59e0b;
  color: #111827;
}
.badge-status.badge-warning.badge-soft {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.badge-status.badge-info {
  background-color: #3b82f6;
  color: #ffffff;
}
.badge-status.badge-info.badge-soft {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.badge-status.badge-primary {
  background-color: #6366f1;
  color: #ffffff;
}
.badge-status.badge-primary.badge-soft {
  background-color: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}
.badge-status.badge-secondary {
  background-color: #64748b;
  color: #ffffff;
}
.badge-status.badge-secondary.badge-soft {
  background-color: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}
.badge-soft.badge-soft-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.badge-soft.badge-soft-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.badge-soft.badge-soft-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #d97706;
}
.badge-soft.badge-soft-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}
.badge-soft.badge-soft-primary {
  background-color: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
}

.bg-gradient-accent {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff;
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #ffffff;
}

.border-radius-lg {
  border-radius: 0.75rem !important;
}

.border-radius-xl {
  border-radius: 1rem !important;
}

.border-radius-2xl {
  border-radius: 1.5rem !important;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 0.5rem;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 0.5rem;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #808998;
}

.custom-scrollbar-thin::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.custom-scrollbar-thin::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 0.5rem;
}
.custom-scrollbar-thin::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 0.5rem;
}
.custom-scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #b4bbc5;
}

.hover-lift {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
  transform: translateY(-2px);
}

.hover-grow {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-grow:hover {
  transform: scale(1.05);
}

.hover-shadow {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-shadow:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.focus-ring-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
}

.focus-ring-success:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.focus-ring-danger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

/* Components Styles */
/* Notifications Container */
.notifications-container {
  z-index: 10000;
}

/* Product Images */
.product-image--thumbnail {
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
}
.product-image--small {
  width: 50px;
  height: 50px;
  object-fit: cover;
}
.product-image--icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.status-badge[style*=background-color] {
  color: white;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}
.empty-state__icon {
  font-size: 3rem;
  color: #6c757d;
  margin-bottom: 1rem;
}
.empty-state__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.empty-state__text {
  color: #6c757d;
}

/* Image Placeholders */
.image-placeholder {
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-placeholder--small {
  width: 50px;
  height: 50px;
}
.image-placeholder--medium {
  width: 200px;
  height: 200px;
}
.image-placeholder--large {
  max-width: 300px;
  max-height: 300px;
}

/* Tables */
.table__delivery-col {
  min-width: 300px;
}

/* Alert Hidden */
.alert-hidden {
  display: none;
}

/* Loading States */
.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}
.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* Modal Forms */
.modal-form__delete {
  display: inline-block;
}

/* Progress Bars */
.progress--thin {
  height: 6px;
}
.progress--medium {
  height: 8px;
}

/* Card Sections Hidden */
.card-section-hidden {
  display: none;
}

/* Sidebar Navigation - Fixed Sidebar with Smooth Transitions */
#sidebarMenu {
  width: 60px;
}
#sidebarMenu::-webkit-scrollbar {
  width: 6px;
}
#sidebarMenu::-webkit-scrollbar-track {
  background: transparent;
}
#sidebarMenu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
#sidebarMenu::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}
#sidebarMenu.show {
  transform: translateX(0) !important;
}
#sidebarMenu .nav-link {
  position: relative;
  margin: 0.12rem 0.35rem;
  border-radius: 0.55rem;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
#sidebarMenu .nav-link.active {
  color: var(--sidebar-active-color, #0d6efd) !important;
  background-color: var(--sidebar-active-bg, #e7f1ff) !important;
  box-shadow: inset 4px 0 0 var(--sidebar-active-color, #0d6efd), 0 2px 8px rgba(15, 23, 42, 0.1);
  font-weight: 700;
}
#sidebarMenu .nav-link.active-parent {
  box-shadow: inset 3px 0 0 var(--sidebar-active-color, #0d6efd);
  font-weight: 600;
}
#sidebarMenu .nav-link.active i, #sidebarMenu .nav-link.active-parent i {
  color: inherit;
}

html[data-bs-theme=dark] #sidebarMenu .nav-link.active {
  color: var(--sidebar-active-color-dark, #fff) !important;
  background-color: var(--sidebar-active-bg-dark, #263b5c) !important;
}

#sidebarMenu .nav-link.sidebar-accent-returns {
  --sidebar-active-color: #16834f;
  --sidebar-active-bg: #e8f7ef;
  --sidebar-active-color-dark: #8ef0bd;
  --sidebar-active-bg-dark: #173d2b;
}

#sidebarMenu[style*="width: 250px"] ~ #mainContent {
  padding-left: 250px !important;
}

@media (max-width: 767.98px) {
  #sidebarMenu {
    display: block !important;
    width: 280px !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 60px !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  #sidebarMenu.show {
    transform: translateX(0) !important;
  }
  #sidebarMenu .nav-link {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  #sidebarMenu .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  #sidebarMenu .nav-link i {
    font-size: 1.1rem;
    width: 24px;
  }
  #sidebarMenu .navbarText {
    display: inline !important;
    opacity: 1 !important;
  }
  #sidebarMenu #integracjeSubmenu {
    background-color: rgba(0, 0, 0, 0.02);
  }
  #sidebarMenu #integracjeSubmenu .nav-link {
    padding-left: 2.5rem;
    font-size: 0.95rem;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  #sidebarMenu {
    width: 60px !important;
  }
  #sidebarMenu .navbarText {
    display: none !important;
  }
  #mainContent {
    padding-left: 70px !important;
  }
}
/* Panel Produktów - Dodatkowe style uzupełniające Bootstrap 5 */
/* Dodatkowe animacje dla przycisków */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Hover effects dla kart */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Lepsze style dla kodów produktów */
code {
  font-size: 0.85em;
}

/* Hover effects dla tabel */
.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.075);
}

/* Style dla badge'ów z ikonami */
.badge i {
  font-size: 0.8em;
}

/* Loading animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loading::after {
  content: "";
}

/* AI Generation Button Styles */
.btn-ai-generate {
  position: relative;
  overflow: hidden;
}

.btn-ai-generate:hover {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
}

.btn-ai-generate:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.btn-ai-generate .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* AI generated content highlight */
.ai-generated {
  position: relative;
  background: linear-gradient(90deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
  border-left: 3px solid #28a745;
  animation: glow 2s ease-in-out;
}

@keyframes glow {
  0% {
    background-color: rgba(40, 167, 69, 0.2);
  }
  100% {
    background-color: transparent;
  }
}
/* Toast container improvements */
.toast {
  backdrop-filter: blur(10px);
}

/* Input group with AI button styling */
.input-group .btn {
  border-left: 0;
}

.input-group .form-control:focus + .btn {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Improved textarea auto-resize */
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* AI generation status indicators */
.ai-status {
  font-size: 0.875em;
  margin-top: 0.25rem;
}

.ai-status.generating {
  color: #0d6efd;
}

.ai-status.success {
  color: #198754;
}

.ai-status.error {
  color: #dc3545;
}

/* Loading spinner for AI generation */
.loading-spinner::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 4px solid var(--bs-light);
  border-top: 4px solid var(--bs-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Dodatkowe style dla małych ekranów */
@media (max-width: 768px) {
  .card-header h1 {
    font-size: 1.25rem;
  }
  .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  .table-responsive {
    font-size: 0.875rem;
  }
}
/* Sticky table header */
.table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Style dla kolumny Allegro z popoverami */
.auction-badges {
  min-width: 90px;
  text-align: center;
}

.auction-badges .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 2.5rem;
  font-weight: 600;
  user-select: none;
  position: relative;
}

.auction-badges .badge:focus {
  outline: 2px solid rgba(0, 123, 255, 0.5);
  outline-offset: 2px;
}

.auction-badges .badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auction-badges .badge:hover .allegro-icon {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.auction-badges .badge i {
  font-size: 0.8em;
}

/* Ikona Allegro - pomarańczowa litera A */
.allegro-icon {
  display: inline-block;
  font-weight: 900;
  font-family: "Arial Black", Arial, sans-serif;
  color: #ff5a00;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 0.9em;
  line-height: 1;
}

.badge .allegro-icon {
  color: inherit;
  text-shadow: none;
  font-weight: 700;
}

/* Niestandardowe style popover */
.auction-popover-custom {
  max-width: 400px;
  font-size: 0.875rem;
  cursor: default;
  z-index: 1060;
}

.auction-popover-custom .popover-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  font-weight: bold;
  color: #495057;
  cursor: default;
}

.auction-popover-custom .popover-body {
  padding: 1rem;
  cursor: default;
}

/* Zapobieganie zamknięciu popover przy kliknięciu w jego zawartość */
.auction-popover-custom * {
  pointer-events: auto;
}

/* Style dla treści popover */
.auction-popover .auction-item {
  margin-bottom: 0;
}

.auction-popover .auction-item:not(:last-child) {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

.auction-popover a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.auction-popover a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.auction-popover .small {
  font-size: 0.8rem;
  line-height: 1.4;
}

.auction-popover .small div {
  margin-bottom: 0.25rem;
}

.auction-popover .text-success {
  color: #28a745 !important;
  font-weight: 600;
}

/* Animacja dla badge */
.auction-popover-trigger {
  position: relative;
}

.auction-popover-trigger::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ffc107;
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s infinite;
}

.auction-popover-trigger:hover::after {
  opacity: 1;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}
/* Responsive dla małych ekranów */
@media (max-width: 768px) {
  .auction-popover-custom {
    max-width: 300px;
    font-size: 0.8rem;
  }
  .auction-badges .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}
/* Tooltips dla aukcji */
.tooltip {
  font-size: 0.8rem;
}

.tooltip-inner {
  max-width: 200px;
  text-align: center;
}

/* Login Page Styles */
/* Variables - Design System */
/* Integrated with Bootstrap 5 */
/* Mixins - Reusable Style Patterns */
/* Variables - Design System */
/* Integrated with Bootstrap 5 */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
body.login-page {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  min-height: 100vh;
}
body.login-page .container-fluid {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
body.login-page .container-fluid .row {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.login-container {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
  width: 100%;
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  color: #ffffff;
}
.login-header h1 {
  font-size: 1.53125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.login-header p {
  font-size: 0.8125rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.login-body {
  padding: 3rem 1.5rem;
}
.login-body .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.8125rem;
}
.login-body .form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}
.login-body .form-control:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.login-body .form-control:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.6;
}
.login-body .form-control:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.login-body .form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.login-body .form-check-input {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
}
.login-body .form-check-input:checked {
  background-color: #6366f1;
  border-color: #6366f1;
}
.login-body .form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
}
.login-body .form-check-label {
  font-size: 0.8125rem;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}
.login-body .alert {
  padding: 1rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
}
.login-body .alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}
.login-body .alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #2563eb;
}
.login-body .alert-info a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.login-body .alert-info a:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1.5rem;
}

.btn-login {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  width: 100%;
  padding: calc(1rem + 2px);
  font-size: 0.9296875rem;
  font-weight: 600;
}
.btn-login:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.btn-login:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-login:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5 0%, #7a44f5 100%);
}
.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #f3f4f6;
  color: #4b5563;
  font-size: calc(0.8125rem - 1px);
}

@media (max-width: 480px) {
  .login-header {
    padding: 1.5rem 1rem;
  }
  .login-header h1 {
    font-size: 1.3125rem;
  }
  .login-body {
    padding: 1.5rem 1rem;
  }
}
/* Order Form Styles */
.order-form-container .card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 2rem;
}
.order-form-container .product-search-wrapper {
  position: relative;
}
.order-form-container .product-search-wrapper .product-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 0.25rem 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.order-form-container .product-search-wrapper .product-search-dropdown .list-group-item {
  cursor: pointer;
  border-left: none;
  border-right: none;
}
.order-form-container .product-search-wrapper .product-search-dropdown .list-group-item:first-child {
  border-top: none;
}
.order-form-container .product-search-wrapper .product-search-dropdown .list-group-item:last-child {
  border-bottom: none;
  border-radius: 0 0 0.25rem 0.25rem;
}
.order-form-container .product-search-wrapper .product-search-dropdown .list-group-item:hover {
  background-color: #f8f9fa;
}
.order-form-container .available-products-container,
.order-form-container .selected-products-container {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  background-color: #fff;
}
.order-form-container .available-products-container .table,
.order-form-container .selected-products-container .table {
  margin-bottom: 0;
}
.order-form-container .available-products-container::-webkit-scrollbar,
.order-form-container .selected-products-container::-webkit-scrollbar {
  width: 8px;
}
.order-form-container .available-products-container::-webkit-scrollbar-track,
.order-form-container .selected-products-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.order-form-container .available-products-container::-webkit-scrollbar-thumb,
.order-form-container .selected-products-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.order-form-container .available-products-container::-webkit-scrollbar-thumb:hover,
.order-form-container .selected-products-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.order-form-container .available-products-container .add-to-order-btn {
  min-width: 35px;
  padding: 0.25rem 0.5rem;
  font-weight: bold;
}
.order-form-container .available-products-container .add-to-order-btn.disabled {
  cursor: not-allowed;
}
.order-form-container .available-products-container tbody tr {
  transition: background-color 0.15s ease;
}
.order-form-container .available-products-container tbody tr:hover:not(:has(td[colspan])) {
  background-color: #f8f9fa;
}
.order-form-container .products-table .quantity-input,
.order-form-container .products-table .price-input {
  min-width: 70px;
}
.order-form-container .products-table .remove-product-btn {
  padding: 0.25rem 0.5rem;
  font-size: 1.2rem;
  line-height: 1;
  min-width: 35px;
}
.order-form-container .products-table tbody tr {
  transition: background-color 0.2s;
}
.order-form-container .products-table tbody tr:hover:not(:has(td[colspan])) {
  background-color: #fff3cd;
}
.order-form-container .cost-summary {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.25rem;
}
.order-form-container .cost-summary .form-label {
  font-weight: 600;
}
.order-form-container .cost-summary #final-price {
  font-weight: 700;
  font-size: 1.1rem;
  background-color: #e9ecef;
}
.order-form-container .customer-section h5 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dee2e6;
  color: #495057;
  font-weight: 600;
}
.order-form-container .customer-section .position-relative {
  position: relative;
}
.order-form-container .customer-section .customer-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 250px;
  overflow-y: auto;
  background: white;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 0.25rem 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  margin-top: -1px;
}
.order-form-container .customer-section .customer-suggestions-dropdown .list-group-item {
  cursor: pointer;
  border-left: none;
  border-right: none;
  padding: 0.75rem 1rem;
}
.order-form-container .customer-section .customer-suggestions-dropdown .list-group-item:first-child {
  border-top: none;
}
.order-form-container .customer-section .customer-suggestions-dropdown .list-group-item:last-child {
  border-bottom: none;
  border-radius: 0 0 0.25rem 0.25rem;
}
.order-form-container .customer-section .customer-suggestions-dropdown .list-group-item:hover {
  background-color: #e9ecef;
}
.order-form-container .customer-section .customer-suggestions-dropdown .list-group-item strong {
  color: #0d6efd;
}
.order-form-container .customer-section .customer-suggestions-dropdown .list-group-item small {
  display: block;
  margin-top: 0.25rem;
}
.order-form-container .customer-section .customer-suggestions-dropdown::-webkit-scrollbar {
  width: 8px;
}
.order-form-container .customer-section .customer-suggestions-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.order-form-container .customer-section .customer-suggestions-dropdown::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.order-form-container .customer-section .customer-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.order-form-container .customer-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 250px;
  overflow-y: auto;
  background: white;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 0.25rem 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  margin-top: -1px;
}
.order-form-container .customer-suggestions-dropdown .list-group-item {
  cursor: pointer;
  border-left: none;
  border-right: none;
  padding: 0.75rem 1rem;
}
.order-form-container .customer-suggestions-dropdown .list-group-item:first-child {
  border-top: none;
}
.order-form-container .customer-suggestions-dropdown .list-group-item:last-child {
  border-bottom: none;
  border-radius: 0 0 0.25rem 0.25rem;
}
.order-form-container .customer-suggestions-dropdown .list-group-item:hover {
  background-color: #e9ecef;
}
.order-form-container .customer-suggestions-dropdown .list-group-item strong {
  color: #0d6efd;
}
.order-form-container .customer-suggestions-dropdown .list-group-item small {
  display: block;
  margin-top: 0.25rem;
}
.order-form-container .customer-suggestions-dropdown::-webkit-scrollbar {
  width: 8px;
}
.order-form-container .customer-suggestions-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.order-form-container .customer-suggestions-dropdown::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.order-form-container .customer-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.order-form-container .col-md-6 h5 {
  color: #495057;
  font-weight: 600;
  border-bottom: 2px solid #0d6efd;
  padding-bottom: 0.5rem;
}

/* Order list and cards */
.order-row-shipped {
  background-color: #70d3ef !important;
}
.order-row-shipped > td {
  background-color: #70d3ef !important;
}
.order-row-shipped > td:first-child {
  border-left: 4px solid #0dcaf0;
}

.order-row-paid {
  background-color: #96d283 !important;
}
.order-row-paid > td {
  background-color: #96d283 !important;
}
.order-row-paid > td:first-child {
  border-left: 4px solid #75b798;
}

.order-row-default {
  background-color: #ffffff !important;
}
.order-row-default > td {
  background-color: #ffffff !important;
}
.order-row-default > td:first-child {
  border-left: 4px solid #dee2e6;
}

.order-row-out-of-stock {
  background-color: #ffffff !important;
}
.order-row-out-of-stock > td {
  background-color: #ffffff !important;
}
.order-row-out-of-stock > td:first-child {
  border-left: 4px solid #dc3545;
}

[data-bs-theme=dark] .order-row-shipped {
  background-color: #1a5c63 !important;
}
[data-bs-theme=dark] .order-row-shipped > td {
  background-color: #1a5c63 !important;
}
[data-bs-theme=dark] .order-row-paid {
  background-color: #1f4a1f !important;
}
[data-bs-theme=dark] .order-row-paid > td {
  background-color: #1f4a1f !important;
}
[data-bs-theme=dark] .order-row-default {
  background-color: #212529 !important;
}
[data-bs-theme=dark] .order-row-default > td {
  background-color: #212529 !important;
}
[data-bs-theme=dark] .order-row-out-of-stock {
  background-color: #212529 !important;
}
[data-bs-theme=dark] .order-row-out-of-stock > td {
  background-color: #212529 !important;
}
[data-bs-theme=dark] .order-page-toolbar,
[data-bs-theme=dark] .order-list-table-wrap {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--bs-body-bg);
}
[data-bs-theme=dark] .order-results-count,
[data-bs-theme=dark] .order-legend-item {
  color: var(--bs-secondary-color);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
[data-bs-theme=dark] .order-list-table thead th {
  background: #20252b !important;
  color: #f8f9fa;
  border-bottom-color: #495057;
}
[data-bs-theme=dark] .order-list-table {
  --order-row-separator-color: rgba(255, 255, 255, 0.13);
}

.order-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, var(--bs-body-bg) 0%, var(--bs-tertiary-bg) 100%);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(33, 37, 41, 0.06);
}

.order-page-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  min-width: 0;
  margin-left: auto;
  order: 2;
  text-align: right;
}
.order-page-heading > .d-flex {
  justify-content: flex-end;
}
.order-page-heading h1 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
}

.order-results-count {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  color: #495057;
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.order-row-legend,
.order-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.order-row-legend {
  justify-content: flex-end;
}

.order-toolbar-actions {
  order: 1;
}

.order-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.14rem 0.42rem;
  color: #5c636a;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e2e6ea;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.order-legend-dot {
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid rgba(33, 37, 41, 0.18);
  border-radius: 50%;
  flex: 0 0 auto;
}

.order-legend-dot-shipped {
  background: #70d3ef;
  border-color: #0dcaf0;
}

.order-legend-dot-paid {
  background: #96d283;
  border-color: #75b798;
}

.order-legend-dot-default {
  background: #ffffff;
  border-color: #adb5bd;
}

.order-toolbar-actions .btn {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-list-table-wrap {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.65rem;
  background: var(--bs-body-bg);
  box-shadow: 0 3px 14px rgba(33, 37, 41, 0.07);
}

.order-list-table {
  --order-row-separator-color: rgba(55, 65, 81, 0.18);
  margin-bottom: 0;
}
.order-list-table thead th {
  background: #f1f3f5 !important;
  color: #343a40;
  border-bottom: 2px solid #adb5bd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.order-list-table tbody td {
  position: relative;
  border-bottom: 0 !important;
}
.order-list-table tbody td::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--order-row-separator-color);
  pointer-events: none;
}

.order-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.order-cards-header {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.order-cards-header .order-card-columns {
  gap: 0.75rem;
}
.order-cards-header .order-card-col {
  font-size: 0.75rem;
  font-weight: 700;
  color: #495057;
}

#orders-table-body tr {
  transition: box-shadow 0.15s ease;
  cursor: default;
}
#orders-table-body tr:hover {
  filter: none;
  box-shadow: none;
}
#orders-table-body tr:hover > td {
  filter: none;
  background-image: linear-gradient(rgba(33, 37, 41, 0.035), rgba(33, 37, 41, 0.035));
}

body.order-index-page {
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .order-list-table-wrap {
    overflow: visible;
  }
  .order-list-table {
    width: 100%;
    table-layout: fixed;
  }
  .order-list-table > :not(caption) > * > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .order-list-table th:nth-child(1) {
    width: 3% !important;
  }
  .order-list-table th:nth-child(2) {
    width: 6% !important;
  }
  .order-list-table th:nth-child(3) {
    width: 15% !important;
  }
  .order-list-table th:nth-child(4) {
    width: 24% !important;
  }
  .order-list-table th:nth-child(5) {
    width: 19% !important;
  }
  .order-list-table th:nth-child(6) {
    width: 10% !important;
  }
  .order-list-table th:nth-child(7) {
    width: 10% !important;
  }
  .order-list-table th:nth-child(8) {
    width: 13% !important;
  }
  .order-list-table [id^=order-document-] {
    flex-wrap: wrap;
    min-width: 0;
  }
  .order-list-table thead th {
    position: sticky;
    top: 37px;
    z-index: 20;
    box-shadow: 0 2px 0 rgba(33, 37, 41, 0.12);
  }
}
.order-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}
.order-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #adb5bd;
}

.order-card-header {
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.order-card-header:hover {
  background-color: #f8f9fa;
}
.order-card-header[aria-expanded=true] {
  background-color: #e9ecef;
  border-bottom: 1px solid #dee2e6;
}
.order-card-header[aria-expanded=true] .toggle-icon i {
  transform: rotate(180deg);
}

/* Column Layout */
.order-card-columns {
  display: grid;
  grid-template-columns: 40px 90px 110px minmax(180px, 2fr) minmax(140px, 1fr) 110px minmax(150px, 1fr) 110px 100px;
  gap: 0.75rem;
  align-items: center;
}

.order-card-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0; /* Allow shrinking */
}
.order-card-col .col-label {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  display: none; /* Hidden on desktop, shown on mobile */
}
.order-card-col .col-value {
  font-size: 0.875rem;
  color: #212529;
  line-height: 1.4;
}

.order-card-col-toggle {
  justify-content: center;
  align-items: center;
}
.order-card-col-toggle .toggle-icon {
  color: #6c757d;
  transition: all 0.3s ease;
}
.order-card-col-toggle .toggle-icon i {
  transition: transform 0.3s ease;
  font-size: 1rem;
}
.order-card-col-toggle .toggle-icon:hover {
  color: #495057;
}

.order-card-col-id .badge {
  font-size: 0.875rem;
  padding: 0.375rem 0.5rem;
}

.order-card-col-date .col-value {
  white-space: nowrap;
}

.order-card-col-customer {
  min-width: 0; /* Allow text truncation */
}
.order-card-col-customer .col-value {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.order-card-col-customer strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.order-card-col-customer img {
  vertical-align: middle;
  margin-left: 0.25rem;
}
.order-card-col-customer .allegro-nick {
  font-weight: 600;
  color: #ff5a00;
  font-size: 0.8rem;
}
.order-card-col-customer .order-card-address {
  font-size: 0.7rem;
  color: #6c757d;
  line-height: 1.2;
}

.order-card-col-delivery .col-value {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.order-card-col-delivery .btn {
  padding: 0.25rem 0.4rem;
  font-size: 0.7rem;
  line-height: 1.2;
}
.order-card-col-delivery form {
  display: inline-block;
}
.order-card-col-delivery .shipping-badge {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.order-card-col-delivery .shipping-badge .badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.35rem;
}

.order-card-col-payment .col-value {
  font-size: 0.75rem;
  line-height: 1.4;
}
.order-card-col-payment .badge {
  font-size: 0.65rem;
  margin-top: 0.25rem;
}

.order-card-col-status select {
  font-size: 0.75rem;
  padding: 0.25rem 0.35rem;
  width: 100%;
  min-width: 120px;
}

.order-card-col-price .col-value {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.order-card-col-price strong {
  font-size: 0.95rem;
  color: #198754;
  font-weight: 700;
}
.order-card-col-price .price-actions {
  display: flex;
  gap: 0.4rem;
}
.order-card-col-price .price-actions a {
  color: #6c757d;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}
.order-card-col-price .price-actions a:hover {
  color: #495057;
}
.order-card-col-price .price-actions a i {
  font-size: 0.85rem;
}

.order-card-col-products .col-value {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.order-card-col-products .badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

/* Order Card Details (Collapsed Content) */
.order-card-details {
  animation: slideDown 0.3s ease-out;
  transform-origin: top;
}
.order-card-details.collapsing {
  transition: height 0.35s ease;
}
.order-card-details.show {
  animation: fadeIn 0.3s ease-out;
}

.order-card-body {
  padding: 1.5rem;
  background-color: #f8f9fa;
}

.detail-section {
  margin-bottom: 1.5rem;
}
.detail-section:last-child {
  margin-bottom: 0;
}
.detail-section h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.detail-section h5 i {
  color: #6c757d;
}
.detail-section h5 .btn-link {
  font-size: 0.875rem;
  padding: 0;
  margin-left: auto;
}
.detail-section .list-group-item {
  border: 1px solid #dee2e6;
  background-color: #fff;
}
.detail-section .list-group-item .product-info h6 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #212529;
}
.detail-section .list-group-item .product-info a {
  text-decoration: none;
  color: inherit;
}
.detail-section .list-group-item .product-info a:hover h6 {
  color: #0d6efd;
}
.detail-section .table {
  margin-bottom: 0;
  background-color: #fff;
}
.detail-section .table td {
  padding: 0.5rem;
  border-color: #e9ecef;
}
.detail-section .table td:first-child {
  width: 30%;
  color: #6c757d;
}

/* Product stock badges - table view */
table .product-stock-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  margin: 1px;
  line-height: 1.2;
  cursor: pointer;
}

.order-details-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.order-details-btn:hover, .order-details-btn:focus-visible {
  color: #fff !important;
  background: #0d6efd;
  transform: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.order-id-badge {
  font-size: 0.88rem;
  padding: 0.38rem 0.52rem;
  letter-spacing: 0.01em;
}

.order-date {
  margin-top: 0.18rem;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
}

.order-customer-name {
  display: inline-block;
  color: var(--bs-emphasis-color);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
}

.order-customer-phone,
.order-marketplace-login {
  font-size: 0.76rem;
  line-height: 1.25;
}

.allegro-login-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
  cursor: copy;
}
.allegro-login-copy:hover {
  color: #0759d1;
  text-decoration: underline;
}
.allegro-login-copy:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.55);
  outline-offset: 2px;
  border-radius: 0.2rem;
}
.allegro-login-copy.is-copied {
  color: #087a58;
}

.allegro-login-copy-icon {
  flex: 0 0 auto;
  font-size: 0.68rem;
  opacity: 0.72;
}

.order-shipping-primary {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.28rem;
}

.order-shipping-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.order-shipping-action-btn {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.95rem;
  border-radius: 0.42rem;
}

.order-shipping-method {
  min-width: 0;
  color: var(--bs-emphasis-color);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.order-delivery-type-badge {
  padding: 0.22rem 0.42rem;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.order-smart-inline-badge {
  padding: 0.22rem 0.48rem;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.order-payment-method {
  display: inline-block;
  color: var(--bs-emphasis-color);
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.3;
}

.order-status-cell .status-badge {
  width: 100%;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.45rem;
  border-color: rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 1px 2px rgba(33, 37, 41, 0.12);
}

.order-status-cell > .mt-1 .badge {
  width: 100%;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.34rem;
  font-size: 0.68rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.order-status-cell > .mt-1 .badge > i {
  flex: 0 0 auto;
}

.order-total-price {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-price-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.18rem;
  margin-top: 0.28rem;
}

.order-price-action {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid rgba(108, 117, 125, 0.24);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem !important;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.order-price-action:hover, .order-price-action:focus-visible {
  color: #0d6efd !important;
  background: #fff;
  border-color: #0d6efd;
}

[data-bs-theme=dark] .order-price-action {
  background: rgba(255, 255, 255, 0.08);
}

.order-products-cell {
  padding-right: 0.7rem !important;
}

#custom-product-tooltip {
  animation: fadeIn 0.15s ease-out;
}

.quick-awaiting-receipt-btn {
  padding-inline: 0.4rem;
  border: 1px solid #111 !important;
  white-space: nowrap;
}
.quick-awaiting-receipt-btn:hover, .quick-awaiting-receipt-btn:focus, .quick-awaiting-receipt-btn:active {
  border-color: #111 !important;
}

#orders-table-body tr.order-row-highlight > td {
  background-color: rgba(255, 165, 0, 0.4) !important;
  transition: background-color 0.8s ease;
}

#orders-table-body tr.order-row-highlight-off > td {
  background-color: rgba(255, 165, 0, 0.1) !important;
  transition: background-color 0.8s ease;
}

#orders-table-body tr.order-row-close-pulse > td {
  animation: order-row-close-pulse 4.2s ease-in-out;
}

@keyframes order-row-close-pulse {
  0%, 100% {
    filter: brightness(1) saturate(1);
    opacity: 1;
  }
  12%, 42%, 72% {
    filter: brightness(0.48) saturate(0.65);
    opacity: 0.68;
  }
  27%, 57%, 87% {
    filter: brightness(0.94) saturate(0.95);
    opacity: 0.96;
  }
}
@media (prefers-reduced-motion: reduce) {
  #orders-table-body tr.order-row-close-pulse > td {
    animation-name: order-row-close-pulse-reduced;
    animation-duration: 1.4s;
  }
}
@keyframes order-row-close-pulse-reduced {
  0%, 100% {
    filter: brightness(1) saturate(1);
    opacity: 1;
  }
  35% {
    filter: brightness(0.58) saturate(0.7);
    opcity: 0.74;
  }
}
#orders-table-body tr.order-row-awaiting-receipt > td {
  filter: brightness(0.55) saturate(0.65);
  opacity: 0.72;
  pointer-events: none;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Responsive Design */
@media (max-width: 1600px) {
  .order-card-columns {
    grid-template-columns: 35px 85px 100px minmax(160px, 2fr) minmax(130px, 1fr) 100px minmax(140px, 1fr) 100px 90px;
    gap: 0.6rem;
  }
}
@media (max-width: 1400px) {
  .order-card-columns {
    grid-template-columns: 35px 80px 95px minmax(140px, 2fr) minmax(120px, 1fr) 95px minmax(130px, 1fr) 95px 85px;
    gap: 0.5rem;
  }
  .order-card-header {
    padding: 0.85rem;
  }
  .order-card-col-customer strong {
    font-size: 0.8rem;
  }
}
@media (max-width: 1200px) {
  .order-card-columns {
    grid-template-columns: 35px 75px minmax(140px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr);
    gap: 0.5rem;
  }
  /* Hide header and less important columns on medium screens */
  .order-cards-header .order-card-col-date,
  .order-cards-header .order-card-col-payment,
  .order-cards-header .order-card-col-status,
  .order-cards-header .order-card-col-products {
    display: none;
  }
  .order-card-col-date,
  .order-card-col-payment,
  .order-card-col-status,
  .order-card-col-products {
    display: none;
  }
}
@media (max-width: 768px) {
  .order-page-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem;
  }
  .order-page-heading {
    align-items: flex-start;
    margin-left: 0;
    order: 0;
    text-align: left;
  }
  .order-page-heading > .d-flex {
    justify-content: flex-start;
  }
  .order-row-legend {
    justify-content: flex-start;
  }
  .order-toolbar-actions {
    width: 100%;
    flex-wrap: nowrap;
    order: 1;
  }
  .order-toolbar-actions > .btn,
  .order-toolbar-actions > .btn-group {
    flex: 1 1 0;
  }
  .order-toolbar-actions .btn-group > .btn {
    width: 100%;
  }
  .order-list-table-wrap {
    border-radius: 0.45rem;
  }
  .order-cards-header {
    display: none; /* Hide header on mobile */
  }
  .order-card-header {
    padding: 0.75rem;
  }
  .order-card-columns {
    grid-template-columns: 30px 1fr;
    gap: 0.5rem;
  }
  .order-card-col {
    grid-column: span 2;
  }
  .order-card-col .col-label {
    display: block; /* Show labels on mobile */
  }
  .order-card-col.order-card-col-toggle {
    grid-column: 1;
    grid-row: 1/span 4;
    align-self: start;
    padding-top: 0.25rem;
  }
  .order-card-col.order-card-col-id {
    grid-column: 2;
    grid-row: 1;
  }
  .order-card-col-customer strong,
  .order-card-col-customer .order-card-address {
    white-space: normal;
  }
  .order-card-col-delivery .col-value {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 576px) {
  .order-row-legend {
    gap: 0.3rem;
  }
  .order-legend-item {
    padding-inline: 0.34rem;
    font-size: 0.62rem;
  }
  .order-card-header {
    padding: 0.5rem;
  }
  .order-card-body {
    padding: 1rem;
  }
  .order-card-col-id .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.4rem;
  }
  .order-card-col-price strong {
    font-size: 0.85rem;
  }
}
/* Order Card Status Background Colors */
.card.bg-success-subtle {
  background-color: #d1e7dd !important;
  border-color: #a3cfbb !important;
}
.card.bg-success-subtle .card-header {
  background-color: #c3e6cb !important;
  border-bottom-color: #a3cfbb !important;
}

.card.bg-info-subtle {
  background-color: #cff4fc !important;
  border-color: #9eeaf9 !important;
}
.card.bg-info-subtle .card-header {
  background-color: #b6effb !important;
  border-bottom-color: #9eeaf9 !important;
}

.card.bg-warning-subtle {
  background-color: #fff3cd !important;
  border-color: #ffe69c !important;
}
.card.bg-warning-subtle .card-header {
  background-color: #ffecb5 !important;
  border-bottom-color: #ffe69c !important;
}

.card.bg-white {
  background-color: #ffffff !important;
  border-color: #dee2e6 !important;
}
.card.bg-white .card-header {
  background-color: #f8f9fa !important;
  border-bottom-color: #dee2e6 !important;
}

/* Product Stock Status Badges */
.badge.stock-available {
  background-color: #198754 !important;
  color: white !important;
}

.badge.stock-warehouse {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.badge.stock-unavailable {
  background-color: #dc3545 !important;
  color: white !important;
}

/* ============================================================================
   Order Card Custom Styles - Using Bootstrap Variables
   ============================================================================ */
/* Font sizes for order card columns - use !important to override Bootstrap's .small class */
.order-card-text-base {
  font-size: 1.05rem !important;
}

.order-card-text-lg {
  font-size: 1.15rem !important;
}

/* Order ID badge */
.order-card-id {
  font-size: 1rem !important;
}

/* Badge base style - target cards with data-order-id */
[data-order-id] .badge {
  font-size: 0.85rem;
}

/* Document/action icons */
.order-card-doc-icon {
  font-size: 1.1rem !important;
}

/* Disabled link styling */
.order-card-link-disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Allegro logo */
.order-card-allegro-logo {
  height: 16px;
}

.order-card-allegro-logo-sm {
  height: 14px;
}

/* Product thumbnail */
.order-card-product-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* Change document type button disabled state */
.order-card-btn-disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Status change dropdown */
.order-card-status-dropdown {
  min-width: 120px;
}

/* Formatted ShopGold status message editor */
.status-message-editor {
  min-height: 12rem;
  max-height: 24rem;
  overflow-y: auto;
  background-color: #fff;
  line-height: 1.5;
  white-space: normal;
}

.status-message-editor:empty::before {
  content: attr(data-placeholder);
  color: #6c757d;
  pointer-events: none;
}

.generate-package-modal {
  --package-accent: #0d6efd;
  --package-accent-dark: #0759d1;
  --package-surface: #ffffff;
  --package-subtle: #f6f8fb;
  --package-border: #dce2e9;
  --package-muted: #66717d;
}
.generate-package-modal .modal-dialog {
  max-width: min(1180px, 100vw - 2rem);
}
.generate-package-modal .package-modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 0.9rem;
  box-shadow: 0 1.4rem 3.5rem rgba(25, 35, 45, 0.28);
}
.generate-package-modal .package-modal-header {
  min-height: 4.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--package-accent-dark) 0%, var(--package-accent) 72%, #3495ff 100%);
  border: 0;
}
.generate-package-modal .package-modal-title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
}
.generate-package-modal .min-w-0 {
  min-width: 0;
}
.generate-package-modal .package-modal-title-icon,
.generate-package-modal .package-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0.65rem;
}
.generate-package-modal .package-modal-title-icon {
  width: 2.55rem;
  height: 2.55rem;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.26);
}
.generate-package-modal .package-modal-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.2;
}
.generate-package-modal .package-order-number {
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.generate-package-modal .package-smart-badge {
  color: #463600;
  background: #ffd75e;
  border: 1px solid rgba(255, 236, 172, 0.9);
}
.generate-package-modal .package-modal-shipping-name {
  max-width: min(72vw, 900px);
  margin-top: 0.2rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.generate-package-modal .package-modal-body {
  padding: 1rem;
  background: #f3f6fa;
}
.generate-package-modal .package-order-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 1fr) auto;
  overflow: hidden;
  color: #23303d;
  background: linear-gradient(135deg, #eaf8ff 0%, #f6fbff 100%);
  border: 1px solid #b9deef;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(45, 104, 135, 0.08);
}
.generate-package-modal .package-summary-block {
  min-width: 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.78rem;
  line-height: 1.55;
}
.generate-package-modal .package-summary-block + .package-summary-block {
  border-left: 1px solid rgba(63, 133, 168, 0.2);
}
.generate-package-modal .package-summary-customer,
.generate-package-modal .package-summary-shipping {
  overflow-wrap: anywhere;
}
.generate-package-modal .package-summary-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  min-width: 145px;
  text-align: right;
}
.generate-package-modal .package-summary-total strong {
  color: #087a58;
  font-size: 1.05rem;
}
.generate-package-modal .package-summary-label {
  color: var(--package-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.generate-package-modal .package-form-section {
  overflow: hidden;
  background: var(--package-surface);
  border: 1px solid var(--package-border);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(33, 37, 41, 0.05);
}
.generate-package-modal .package-section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  background: linear-gradient(180deg, #fbfcfd 0%, #f3f6f9 100%);
  border-bottom: 1px solid var(--package-border);
}
.generate-package-modal .package-section-heading-inline {
  justify-content: space-between;
}
.generate-package-modal .package-section-icon {
  width: 2rem;
  height: 2rem;
  color: var(--package-accent-dark);
  background: #e7f1ff;
  border: 1px solid #cfe2ff;
}
.generate-package-modal .package-section-heading strong {
  display: block;
  color: #27313b;
  font-size: 0.86rem;
}
.generate-package-modal .package-section-description {
  margin-top: 0.08rem;
  color: var(--package-muted);
  font-size: 0.69rem;
  line-height: 1.3;
}
.generate-package-modal .package-recipient-section > .row,
.generate-package-modal .package-section-body {
  padding: 0.8rem;
}
.generate-package-modal .package-recipient-section > .row {
  margin: 0;
}
.generate-package-modal .package-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1rem;
  margin: 0 0 0.22rem;
  color: #4c5966;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.generate-package-modal .package-field-label span {
  color: #8a949e;
  font-size: 0.58rem;
  font-weight: 650;
  text-transform: none;
}
.generate-package-modal .package-field-help {
  margin-top: 0.22rem;
  color: var(--package-muted);
  font-size: 0.64rem;
  line-height: 1.25;
}
.generate-package-modal .package-address-number {
  max-width: 4.2rem;
}
.generate-package-modal .package-postcode {
  max-width: 5.6rem;
}
.generate-package-modal .form-control,
.generate-package-modal .form-select,
.generate-package-modal .input-group-text {
  border-color: #cfd7df;
}
.generate-package-modal .form-control:focus,
.generate-package-modal .form-select:focus {
  border-color: #70a8f8;
  box-shadow: 0 0 0 0.16rem rgba(13, 110, 253, 0.14);
}
.generate-package-modal .package-provider-detected {
  padding: 0.38rem 0.55rem;
  color: #0b5ed7;
  background: #e7f1ff;
  border: 1px solid #b6d4fe;
}
.generate-package-modal .package-provider-tabs {
  gap: 0.35rem;
  padding: 0.3rem;
  background: var(--package-subtle);
  border: 1px solid var(--package-border);
  border-radius: 0.55rem;
}
.generate-package-modal .package-provider-tabs .nav-link {
  min-width: 6.2rem;
  color: #536171;
  border: 1px solid transparent;
  border-radius: 0.42rem;
  font-size: 0.76rem;
  font-weight: 700;
}
.generate-package-modal .package-provider-tabs .nav-link.active {
  color: #0b5ed7;
  background: #fff;
  border-color: #b6d4fe;
  box-shadow: 0 2px 5px rgba(33, 93, 166, 0.12);
}
.generate-package-modal .package-add-button {
  min-height: 2rem;
  white-space: nowrap;
}
.generate-package-modal .package-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfd8e2;
  border-radius: 0.65rem;
  box-shadow: 0 2px 7px rgba(33, 37, 41, 0.05);
}
.generate-package-modal .package-card:last-child {
  margin-bottom: 0 !important;
}
.generate-package-modal .package-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.45rem;
  padding: 0.42rem 0.58rem;
  background: #f6f9fc;
  border-bottom: 1px solid #dce3ea;
}
.generate-package-modal .package-number-badge {
  display: inline-flex;
  align-items: center;
  color: #24364a;
  font-size: 0.76rem;
}
.generate-package-modal .remove-package-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
}
.generate-package-modal .package-dimensions-grid {
  padding: 0.65rem;
}
.generate-package-modal .package-dimensions-grid .package-field {
  min-width: 0;
}
.generate-package-modal .package-dimensions-grid .package-field-label {
  gap: 0.2rem;
  white-space: nowrap;
}
.generate-package-modal .package-type-select {
  font-weight: 750;
  text-align: center;
  text-align-last: center;
}
@media (min-width: 992px) {
  .generate-package-modal .package-shipping-layout {
    grid-column: 1/-1;
    min-width: 0;
  }
  .generate-package-modal .package-list-section .package-dimensions-grid {
    display: grid;
    grid-template-columns: 100px 100px 100px 100px 86px 74px;
    justify-content: start;
  }
  .generate-package-modal .package-list-section .package-dimensions-grid > [class*=col-] {
    width: auto;
    max-width: none;
  }
}
.generate-package-modal .package-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.2rem;
  padding: 0.65rem 1rem;
  background: #fff;
  border-top: 1px solid var(--package-border);
}
.generate-package-modal .package-submit-note {
  max-width: 38rem;
  color: var(--package-muted);
  font-size: 0.7rem;
  line-height: 1.35;
}
.generate-package-modal .package-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.generate-package-modal .package-submit-button {
  min-height: 2.45rem;
  padding-inline: 1rem;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(13, 110, 253, 0.22);
}

[data-bs-theme=dark] .generate-package-modal {
  --package-surface: #22272e;
  --package-subtle: #1b2026;
  --package-border: #3c444d;
  --package-muted: #a9b3bd;
}
[data-bs-theme=dark] .generate-package-modal .package-modal-body {
  background: #171b20;
}
[data-bs-theme=dark] .generate-package-modal .package-order-summary {
  color: #e7edf3;
  background: linear-gradient(135deg, #183746 0%, #1e2d36 100%);
  border-color: #315b70;
}
[data-bs-theme=dark] .generate-package-modal .package-summary-total strong {
  color: #66d9b7;
}
[data-bs-theme=dark] .generate-package-modal .package-section-heading,
[data-bs-theme=dark] .generate-package-modal .package-card-header {
  background: #292f36;
}
[data-bs-theme=dark] .generate-package-modal .package-section-heading strong,
[data-bs-theme=dark] .generate-package-modal .package-number-badge {
  color: #e6edf3;
}
[data-bs-theme=dark] .generate-package-modal .package-section-icon,
[data-bs-theme=dark] .generate-package-modal .package-provider-detected {
  color: #8bb9ff;
  background: #18375e;
  border-color: #315f91;
}
[data-bs-theme=dark] .generate-package-modal .package-field-label {
  color: #c1c9d1;
}
[data-bs-theme=dark] .generate-package-modal .package-provider-tabs .nav-link.active,
[data-bs-theme=dark] .generate-package-modal .package-card,
[data-bs-theme=dark] .generate-package-modal .package-modal-footer {
  color: var(--bs-body-color);
  background: #22272e;
}
[data-bs-theme=dark] .generate-package-modal .package-provider-tabs .nav-link.active {
  border-color: #4778ad;
}
[data-bs-theme=dark] .generate-package-modal .form-control,
[data-bs-theme=dark] .generate-package-modal .form-select,
[data-bs-theme=dark] .generate-package-modal .input-group-text {
  border-color: #4a535d;
}

@media (max-width: 991.98px) {
  .generate-package-modal .package-order-summary {
    grid-template-columns: minmax(0, 1.4fr) minmax(210px, 1fr);
  }
  .generate-package-modal .package-summary-total {
    grid-column: 1/-1;
    align-items: flex-start;
    border-top: 1px solid rgba(63, 133, 168, 0.2);
    border-left: 0 !important;
    text-align: left;
  }
}
@media (max-width: 767.98px) {
  .generate-package-modal .modal-dialog {
    max-width: calc(100vw - 1rem);
    margin: 0.5rem;
  }
  .generate-package-modal .package-modal-header {
    padding: 0.65rem 0.75rem;
  }
  .generate-package-modal .package-modal-title-icon {
    width: 2.2rem;
    height: 2.2rem;
  }
  .generate-package-modal .package-modal-shipping-name {
    max-width: 74vw;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .generate-package-modal .package-modal-body {
    padding: 0.65rem;
  }
  .generate-package-modal .package-order-summary {
    grid-template-columns: 1fr;
  }
  .generate-package-modal .package-summary-block + .package-summary-block {
    border-top: 1px solid rgba(63, 133, 168, 0.2);
    border-left: 0;
  }
  .generate-package-modal .package-section-heading {
    align-items: flex-start;
  }
  .generate-package-modal .package-provider-tabs .nav-link {
    min-width: 0;
    padding-inline: 0.65rem !important;
  }
  .generate-package-modal .package-modal-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
  }
  .generate-package-modal .package-submit-note {
    max-width: none;
  }
  .generate-package-modal .package-footer-actions {
    width: 100%;
    margin: 0;
  }
  .generate-package-modal .package-footer-actions .btn:last-child {
    flex: 1;
  }
}
.order-details-modal {
  --details-surface: #ffffff;
  --details-subtle: #f5f7fa;
  --details-border: #dce2e8;
  --details-muted: #687481;
  --details-text: #24303d;
  --details-accent: #0d6efd;
}
.order-details-modal .modal-dialog {
  max-width: min(1240px, 100vw - 2rem);
}
.order-details-modal .order-details-content {
  overflow: hidden;
  border: 0;
  border-radius: 0.9rem;
  box-shadow: 0 1.4rem 3.5rem rgba(25, 35, 45, 0.28);
}
.order-details-modal .order-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border-bottom: 1px solid #cbd9e8;
}
.order-details-modal .order-details-title-wrap,
.order-details-modal .order-details-header-actions,
.order-details-modal .order-details-title-meta,
.order-details-modal .order-details-summary-customer,
.order-details-modal .order-details-summary-shipping {
  display: flex;
  align-items: center;
}
.order-details-modal .order-details-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.75rem;
}
.order-details-modal .order-details-title-block {
  min-width: 0;
}
.order-details-modal .order-details-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
}
.order-details-modal .order-details-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  color: #0759d1;
  background: #e7f1ff;
  border: 1px solid #b6d4fe;
  border-radius: 0.65rem;
}
.order-details-modal .order-details-title {
  flex: 0 0 auto;
  margin: 0;
  color: var(--details-text);
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}
.order-details-modal .order-details-number {
  color: #0759d1;
  font-weight: 800;
}
.order-details-modal .order-details-title-meta {
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0;
  color: var(--details-muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.order-details-modal .order-details-date {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.28rem 0.52rem;
  color: #415568;
  background: #edf2f7;
  border: 1px solid #d4dee8;
  border-radius: 0.48rem;
  line-height: 1;
  white-space: nowrap;
}
.order-details-modal .order-details-title-meta .badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.34rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
}
.order-details-modal .order-details-header-actions {
  flex: 0 0 auto;
  gap: 0.5rem;
}
.order-details-modal .order-details-total {
  padding: 0.35rem 0.55rem;
  color: #087a58;
  background: #e9f8f2;
  border: 1px solid #b7e4d4;
  border-radius: 0.5rem;
  font-size: 0.92rem;
  white-space: nowrap;
}
.order-details-modal .order-details-package-button {
  min-height: 2.35rem;
  font-weight: 700;
  white-space: nowrap;
}
.order-details-modal .order-details-summary-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  align-items: center;
  gap: 0.75rem;
  padding: 0.58rem 1rem;
  color: #43505d;
  background: #f7f9fc;
  border-bottom: 1px solid var(--details-border);
  font-size: 0.74rem;
}
.order-details-modal .order-details-summary-customer {
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.order-details-modal .order-details-summary-item {
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-details-modal .order-details-summary-shipping {
  justify-self: end;
  min-width: 0;
  max-width: 34rem;
  gap: 0.35rem;
}
.order-details-modal .order-details-summary-shipping strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-details-modal .order-details-body {
  padding: 1rem;
  background: #f2f5f8;
}
.order-details-modal .order-details-section {
  overflow: hidden;
  background: var(--details-surface);
  border: 1px solid var(--details-border);
  border-radius: 0.7rem;
  box-shadow: 0 2px 8px rgba(33, 37, 41, 0.05);
}
.order-details-modal .order-details-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.62rem 0.75rem;
  background: linear-gradient(180deg, #fbfcfd 0%, #f3f6f9 100%);
  border-bottom: 1px solid var(--details-border);
}
.order-details-modal .order-details-section-header h6 {
  color: var(--details-text);
  font-size: 0.84rem;
}
.order-details-modal .order-details-section-hint {
  margin-top: 0.12rem;
  color: var(--details-muted);
  font-size: 0.64rem;
  line-height: 1.2;
}
.order-details-modal .order-products-section > .row {
  margin: 0;
  padding: 0.75rem;
}
.order-details-modal .order-products-section > .alert,
.order-details-modal .order-products-section > .mt-3 {
  margin-right: 0.75rem;
  margin-left: 0.75rem;
}
.order-details-modal .order-product-card {
  overflow: hidden;
  border: 1px solid #d7dee6;
  border-radius: 0.6rem;
  box-shadow: 0 1px 5px rgba(33, 37, 41, 0.05);
}
.order-details-modal .order-product-card-header {
  padding: 0.55rem;
  background: #fff;
  border-bottom-color: #e1e6eb;
}
.order-details-modal .order-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  object-fit: contain;
  background: #f5f7f9;
  border: 1px solid #e0e5ea;
  border-radius: 0.5rem;
}
.order-details-modal .order-product-image-placeholder {
  font-size: 1.2rem;
}
.order-details-modal .order-product-name {
  display: -webkit-box;
  overflow: hidden;
  color: #263645;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.order-details-modal .order-product-model {
  display: inline-flex;
  align-items: center;
  margin-top: 0.3rem;
  padding: 0.16rem 0.4rem;
  color: #a12b36;
  background: #fff0f1;
  border: 1px solid #f2c8cc;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 750;
}
.order-details-modal .order-product-purchased-quantity {
  margin-left: 0.34rem;
  padding-left: 0.38rem;
  color: #7d1824;
  border-left: 1px solid rgba(161, 43, 54, 0.28);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}
.order-details-modal .order-product-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
}
.order-details-modal .order-product-metrics {
  padding: 0 !important;
}
.order-details-modal .order-product-metrics-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.order-details-modal .order-product-metric {
  min-width: 0;
  padding: 0.48rem 0.2rem;
  text-align: center;
}
.order-details-modal .order-product-metric + .order-product-metric {
  border-left: 1px solid #e2e7ec;
}
.order-details-modal .order-product-metric strong,
.order-details-modal .order-product-metric .badge {
  font-size: 0.72rem;
}
.order-details-modal .order-product-metric-label {
  margin-bottom: 0.14rem;
  color: var(--details-muted);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.order-details-modal .order-product-metric-total strong {
  color: #a12b36 !important;
  font-size: 0.9rem !important;
}
.order-details-modal .order-address-section {
  display: flex;
  flex-direction: column;
}
.order-details-modal .order-address-form {
  flex: 1;
  padding: 0.75rem;
  background: #fff;
}
.order-details-modal .order-details-field-label {
  display: block;
  margin-bottom: 0.2rem;
  color: #4f5c69;
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.order-details-modal .order-address-form .form-control {
  border-color: #cfd7df;
}
.order-details-modal .order-address-form .form-control:focus {
  border-color: #70a8f8;
  box-shadow: 0 0 0 0.16rem rgba(13, 110, 253, 0.14);
}
.order-details-modal .order-details-section-body {
  padding: 0.75rem;
}
.order-details-modal .order-notes-section textarea {
  min-height: 4.2rem;
}
.order-details-modal .order-details-right-column .order-address-section .order-details-section-header {
  min-height: 2.65rem;
  padding: 0.4rem 0.62rem;
}
.order-details-modal .order-details-right-column .order-address-form {
  padding: 0.5rem 0.62rem;
}
.order-details-modal .order-details-right-column .order-address-form > .mb-2,
.order-details-modal .order-details-right-column .order-address-form > .row.mb-2 {
  margin-bottom: 0.28rem !important;
}
.order-details-modal .order-details-right-column .order-address-form .form-control-sm {
  min-height: 1.7rem;
  padding: 0.14rem 0.42rem;
  font-size: 0.74rem;
  line-height: 1.2;
}
.order-details-modal .order-details-right-column .order-address-form .btn-sm {
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
}
.order-details-modal .order-details-right-column .order-details-field-label {
  margin-bottom: 0.08rem;
  font-size: 0.58rem;
  line-height: 1.05;
}
.order-details-modal .order-details-right-column .order-notes-section {
  margin-top: 0.58rem !important;
}
.order-details-modal .order-details-right-column .order-notes-section .order-details-section-body {
  padding: 0.48rem 0.62rem;
}
.order-details-modal .order-details-right-column .order-notes-section form > .mb-3 {
  margin-bottom: 0.42rem !important;
}
.order-details-modal .order-details-right-column .order-notes-section .form-label {
  margin-bottom: 0.18rem;
  font-size: 0.74rem;
  font-weight: 650;
}
.order-details-modal .order-details-right-column .order-notes-section textarea.form-control {
  height: 3.2rem;
  min-height: 3.2rem;
  padding: 0.3rem 0.42rem;
  font-size: calc(0.74rem + 2px);
  line-height: 1.25;
}
.order-details-modal .order-details-right-column .order-notes-section .btn {
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
}
.order-details-modal .order-details-right-column .order-total-summary,
.order-details-modal .order-details-right-column .order-shipping-section,
.order-details-modal .order-details-right-column .order-documents-section {
  margin-top: 0.58rem !important;
}
.order-details-modal .order-details-right-column .order-total-summary-items {
  gap: 0.45rem 0.9rem;
  padding: 0.48rem 0.65rem;
}
.order-details-modal .order-details-right-column .order-shipping-section {
  padding: 0.55rem 0.65rem;
}
.order-details-modal .order-total-summary {
  overflow: hidden;
  background: linear-gradient(135deg, #eef9f5 0%, #f7fcfa 100%);
  border: 1px solid #b9dfd1;
  border-radius: 0.65rem;
  box-shadow: 0 2px 7px rgba(36, 123, 91, 0.06);
}
.order-details-modal .order-total-summary-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.73rem;
}
.order-details-modal .order-total-summary-items > div:last-child {
  margin-left: auto;
}
.order-details-modal .order-total-summary-items > div:last-child strong {
  font-size: 0.95rem;
}
.order-details-modal .order-shipping-section,
.order-details-modal .order-documents-section {
  margin-right: 0;
  margin-left: 0;
  padding: 0.75rem;
}
.order-details-modal .order-shipping-section > .col-12,
.order-details-modal .order-documents-section > .col-12 {
  padding: 0;
}
.order-details-modal .order-shipping-section .d-flex.align-items-center.justify-content-between {
  gap: 0.75rem;
}
.order-details-modal .order-shipping-actions {
  flex-wrap: wrap;
}
.order-details-modal .order-documents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}
.order-details-modal .order-documents-payment {
  overflow: hidden;
  font-size: 0.76rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-details-modal .order-documents-actions {
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: 100%;
}
.order-details-modal .order-documents-actions .btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.15rem;
  padding: 0.25rem 0.3rem !important;
  font-size: 0.68rem !important;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
}
.order-details-modal .order-details-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.65rem 1rem;
  background: #fff;
  border-top-color: var(--details-border);
}
.order-details-modal .order-details-footer-hint {
  color: var(--details-muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

[data-bs-theme=dark] .order-details-modal {
  --details-surface: #22272e;
  --details-subtle: #1b2026;
  --details-border: #3c444d;
  --details-muted: #a9b3bd;
  --details-text: #e7edf3;
}
[data-bs-theme=dark] .order-details-modal .order-details-header,
[data-bs-theme=dark] .order-details-modal .order-details-section-header {
  background: #292f36;
}
[data-bs-theme=dark] .order-details-modal .order-details-title-icon {
  color: #8bb9ff;
  background: #18375e;
  border-color: #315f91;
}
[data-bs-theme=dark] .order-details-modal .order-details-number {
  color: #8bb9ff;
}
[data-bs-theme=dark] .order-details-modal .order-details-date {
  color: #d9e2ec;
  background: #343b43;
  border-color: #4a5561;
}
[data-bs-theme=dark] .order-details-modal .order-details-total {
  color: #66d9b7;
  background: #173b31;
  border-color: #2d6c59;
}
[data-bs-theme=dark] .order-details-modal .order-details-summary-bar,
[data-bs-theme=dark] .order-details-modal .order-details-body {
  background: #171b20;
}
[data-bs-theme=dark] .order-details-modal .order-details-summary-bar {
  color: #c8d0d8;
}
[data-bs-theme=dark] .order-details-modal .order-product-card-header,
[data-bs-theme=dark] .order-details-modal .order-address-form,
[data-bs-theme=dark] .order-details-modal .order-details-footer {
  background: #22272e;
}
[data-bs-theme=dark] .order-details-modal .order-product-name {
  color: #e3e9ef;
}
[data-bs-theme=dark] .order-details-modal .order-product-model {
  color: #ffb2ba;
  background: #4a2228;
  border-color: #73333c;
}
[data-bs-theme=dark] .order-details-modal .order-product-purchased-quantity {
  color: #ffd2d6;
  border-left-color: rgba(255, 178, 186, 0.38);
}
[data-bs-theme=dark] .order-details-modal .order-product-image {
  background: #1b2026;
  border-color: #414a53;
}
[data-bs-theme=dark] .order-details-modal .order-details-field-label {
  color: #c1c9d1;
}
[data-bs-theme=dark] .order-details-modal .order-total-summary {
  background: #17342c;
  border-color: #2f6657;
}

@media (max-width: 991.98px) {
  .order-details-modal .order-details-summary-bar {
    grid-template-columns: 1fr;
  }
  .order-details-modal .order-details-summary-shipping {
    justify-self: stretch;
    max-width: none;
  }
  .order-details-modal .order-details-summary-shipping strong {
    white-space: normal;
  }
  .order-details-modal .order-products-section > .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-details-modal .order-products-section > .row > .col-12 {
    width: auto;
  }
}
@media (max-width: 767.98px) {
  .order-details-modal .modal-dialog {
    max-width: calc(100vw - 1rem);
    margin: 0.5rem;
  }
  .order-details-modal .order-details-header {
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
  }
  .order-details-modal .order-details-title-icon {
    display: none;
  }
  .order-details-modal .order-details-total {
    display: none;
  }
  .order-details-modal .order-details-title-line {
    gap: 0.4rem 0.55rem;
  }
  .order-details-modal .order-details-summary-bar,
  .order-details-modal .order-details-body {
    padding: 0.65rem;
  }
  .order-details-modal .order-details-summary-customer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
  .order-details-modal .order-products-section > .row {
    grid-template-columns: 1fr;
  }
  .order-details-modal .order-product-image {
    width: 68px;
    height: 68px;
  }
  .order-details-modal .order-product-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .order-details-modal .order-product-metric:nth-child(4) {
    border-left: 0;
  }
  .order-details-modal .order-product-metric:nth-child(n+4) {
    border-top: 1px solid #e2e7ec;
  }
  .order-details-modal .order-shipping-section .d-flex.align-items-center.justify-content-between {
    align-items: flex-start !important;
    flex-direction: column;
  }
  .order-details-modal .order-shipping-actions {
    width: 100%;
  }
  .order-details-modal .order-shipping-actions .btn {
    flex: 1 1 auto;
  }
  .order-details-modal .order-total-summary-items > div:last-child {
    margin-left: 0;
  }
  .order-details-modal .order-details-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
.order-fulfillment-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.65rem;
  border: 1px solid #d9e3dc;
  border-radius: 0.65rem;
  background: #f7faf8;
}

.fulfillment-product-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}

.fulfillment-product-row .order-product-card {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.fulfillment-control-strip {
  flex: 0 0 130px;
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  padding: 0.35rem 0.25rem;
  border: 1px solid #d9e3dc;
  border-radius: 0.65rem;
  background: #fff;
  color: #26352d;
  text-align: center;
}

.fulfillment-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.fulfillment-stepper .btn {
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border-radius: 0.45rem;
}

.fulfillment-quantity-input {
  width: 3.25rem;
  min-width: 3.25rem;
  height: 1.65rem;
  min-height: 1.65rem;
  padding: 0.1rem 0.25rem;
  border-color: #b9c8bf;
  font-weight: 700;
  text-align: center;
  appearance: textfield;
}

.fulfillment-quantity-input::-webkit-outer-spin-button,
.fulfillment-quantity-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.fulfillment-quantity-input:focus {
  border-color: #287445;
  box-shadow: 0 0 0 0.12rem rgba(40, 116, 69, 0.16);
}

.fulfillment-quantity-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  width: 100%;
  white-space: nowrap;
}

.fulfillment-choice-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.85rem;
  padding: 0.25rem 0.3rem;
  border-radius: 0.5rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: none;
}

.fulfillment-full-toggle {
  border: 1px solid #4f9468;
  background: #e8f3ec;
  color: #185b32;
  font-size: 0.76rem;
}

.fulfillment-full-toggle:hover,
.fulfillment-full-toggle:focus-visible {
  border-color: #287445;
  background: #dcece2;
  color: #124926;
}

.fulfillment-full-toggle.is-active {
  border-color: #1f6b3c;
  background: #287445;
  color: #fff;
}

.fulfillment-defer-toggle {
  margin-top: 0.06rem;
  border: 1px solid #e3c778;
  background: #fff8df;
  color: #684f09;
  font-size: 0.72rem;
}

.fulfillment-defer-toggle:hover,
.fulfillment-defer-toggle:focus-visible {
  border-color: #d1a93c;
  background: #fff0bd;
  color: #554006;
}

.fulfillment-defer-toggle.is-active {
  border-color: #c59c28;
  background: #f4c84a;
  color: #342700;
}

.fulfillment-choice-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.fulfillment-product-row.is-deferred .fulfillment-control-strip {
  border-color: #d1a93c;
  background: #fff9e8;
}

.fulfillment-product-row.is-fully-prepared .fulfillment-control-strip {
  border-color: #8bb49a;
  background: #e8f3ec;
}

.fulfillment-product-row.is-fully-prepared .order-product-card {
  border-color: #8bb49a;
  background: #f1f6f2;
}

.fulfillment-product-row.is-fully-prepared .order-product-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(35, 77, 54, 0.035) 0 9px, rgba(35, 77, 54, 0.085) 9px 18px);
}

.fulfillment-product-row.is-fully-shipped .order-product-card {
  filter: grayscale(0.9);
  opacity: 0.62;
}

.fulfillment-product-row.is-fully-shipped .fulfillment-control-strip {
  background: #eef1ef;
  color: #58635d;
}

.fulfillment-history-note {
  line-height: 1.25;
}

.fulfillment-document-blocked {
  cursor: not-allowed;
}

.fulfillment-scan-panel {
  padding: 0.7rem 0.8rem;
  margin-top: 0.65rem;
  border: 1px solid #b8d4c1;
  border-radius: 0.65rem;
  background: #f3faf5;
}

.order-manufacturer-scanner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}

.order-manufacturer-scanner-row > .alert {
  flex: 1 1 28rem;
}

.fulfillment-scan-panel-top {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: max-content 18rem minmax(10rem, 15rem);
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin: 0 0 0 auto;
  padding: 0.35rem 0.55rem;
  box-shadow: 0 2px 7px rgba(35, 77, 54, 0.08);
}

.fulfillment-scan-panel-top .fulfillment-scan-form {
  width: 18rem;
}

.fulfillment-scan-panel-top .fulfillment-scan-input {
  flex: 1 1 11rem;
  width: 11rem;
}

.fulfillment-scan-panel-top .fulfillment-scan-feedback {
  min-width: 0;
  min-height: 0;
  margin-top: 0;
  line-height: 1.25;
}

.fulfillment-scan-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fulfillment-scan-input {
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.fulfillment-scan-feedback {
  min-height: 1.15rem;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .fulfillment-product-row {
    flex-direction: column;
  }
  .fulfillment-control-strip {
    flex-basis: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .fulfillment-scan-form {
    align-items: stretch;
    flex-direction: column;
  }
  .fulfillment-scan-panel-top {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }
  .fulfillment-scan-panel-top .fulfillment-scan-form {
    width: 100%;
  }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .fulfillment-scan-panel-top {
    grid-template-columns: max-content minmax(0, 1fr);
    width: 100%;
    margin-left: 0;
  }
  .fulfillment-scan-panel-top .fulfillment-scan-form {
    width: 100%;
  }
  .fulfillment-scan-panel-top .fulfillment-scan-feedback {
    grid-column: 1/-1;
  }
}
.order-legend-dot-cancelled {
  border-color: rgba(196, 0, 0, 0.65);
  background: repeating-linear-gradient(-45deg, #f1f2f3 0, #f1f2f3 4px, #c9cdd1 4px, #c9cdd1 6px);
}

#orders-table-body tr.order-row-cancelled {
  position: relative;
  isolation: isolate;
  min-height: 5.4rem;
}
#orders-table-body tr.order-row-cancelled > td {
  min-height: 5.4rem;
  color: #5e646a !important;
  background-color: #f1f2f3 !important;
  background-image: repeating-linear-gradient(-45deg, rgba(86, 92, 98, 0.055) 0, rgba(86, 92, 98, 0.055) 8px, rgba(86, 92, 98, 0.13) 8px, rgba(86, 92, 98, 0.13) 10px) !important;
  border-color: rgba(73, 80, 87, 0.24) !important;
  filter: none !important;
  opacity: 1 !important;
}
#orders-table-body tr.order-row-cancelled > td:first-child {
  position: static;
  border-left: 8px solid rgba(73, 80, 87, 0.6) !important;
}
#orders-table-body tr.order-row-cancelled > td:last-child {
  border-right: 8px solid rgba(73, 80, 87, 0.6) !important;
}
#orders-table-body tr.order-row-cancelled > td > :not(.order-cancelled-decoration),
#orders-table-body tr.order-row-cancelled > td > .btn,
#orders-table-body tr.order-row-cancelled > td > form,
#orders-table-body tr.order-row-cancelled > td img {
  opacity: 0.58;
  filter: grayscale(0.5) saturate(0.55);
}
#orders-table-body tr.order-row-cancelled > td .badge,
#orders-table-body tr.order-row-cancelled > td .alert,
#orders-table-body tr.order-row-cancelled > td button,
#orders-table-body tr.order-row-cancelled > td a,
#orders-table-body tr.order-row-cancelled > td select {
  filter: grayscale(0.42) saturate(0.58);
}
#orders-table-body tr.order-row-cancelled > td a,
#orders-table-body tr.order-row-cancelled > td button,
#orders-table-body tr.order-row-cancelled > td select,
#orders-table-body tr.order-row-cancelled > td input {
  position: relative;
  z-index: 7;
}
#orders-table-body tr.order-row-cancelled:hover > td {
  background-color: #f1f2f3 !important;
  background-image: repeating-linear-gradient(-45deg, rgba(86, 92, 98, 0.055) 0, rgba(86, 92, 98, 0.055) 8px, rgba(86, 92, 98, 0.13) 8px, rgba(86, 92, 98, 0.13) 10px) !important;
}
#orders-table-body tr.order-row-cancelled.order-row-highlight > td, #orders-table-body tr.order-row-cancelled.order-row-highlight-off > td, #orders-table-body tr.order-row-cancelled.order-row-close-pulse > td, #orders-table-body tr.order-row-cancelled.order-row-awaiting-receipt > td {
  animation: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.order-cancelled-decoration {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}
.order-cancelled-decoration .order-cancelled-side {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: clamp(40px, 4.5vw, 60px);
  background: linear-gradient(90deg, rgba(73, 80, 87, 0.3), rgba(73, 80, 87, 0.08));
}
.order-cancelled-decoration .order-cancelled-side-left {
  left: 0;
}
.order-cancelled-decoration .order-cancelled-side-right {
  right: 0;
  transform: scaleX(-1);
}

.order-cancelled-watermark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 1vw, 0.85rem);
  width: min(760px, 100% - 150px);
  padding: 0.42rem 1rem;
  color: #c40000;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(196, 0, 0, 0.3);
  border-radius: 0.65rem;
  box-shadow: 0 2px 12px rgba(33, 37, 41, 0.1);
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.98), 0 0 7px rgba(255, 255, 255, 0.94);
  transform: translate(-50%, -50%) rotate(-1deg);
}

.order-cancelled-watermark-icon {
  flex: 0 0 auto;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.order-cancelled-watermark-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  line-height: 1.08;
}

.order-cancelled-watermark-title {
  font-size: clamp(1.25rem, 2.15vw, 2.15rem);
  font-weight: 900;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.order-cancelled-watermark-subtitle,
.order-cancelled-watermark-date {
  margin-top: 0.18rem;
  color: #a10000;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  font-weight: 750;
}

.order-cancelled-watermark-date {
  color: #6c1c1c;
  font-weight: 650;
}

[data-bs-theme=dark] #orders-table-body tr.order-row-cancelled > td,
[data-bs-theme=dark] #orders-table-body tr.order-row-cancelled:hover > td {
  color: #b5bac1 !important;
  background-color: #34383d !important;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 8px, rgba(255, 255, 255, 0.1) 8px, rgba(255, 255, 255, 0.1) 10px) !important;
}
[data-bs-theme=dark] .order-cancelled-watermark {
  background: rgba(29, 31, 34, 0.82);
  border-color: rgba(255, 82, 82, 0.5);
  color: #ff5555;
  text-shadow: 0 1px 2px #111, 0 0 6px #111;
}
[data-bs-theme=dark] .order-cancelled-watermark-subtitle,
[data-bs-theme=dark] .order-cancelled-watermark-date {
  color: #ff8c8c;
}

@media (max-width: 767.98px) {
  #orders-table-body tr.order-row-cancelled,
  #orders-table-body tr.order-row-cancelled > td {
    min-height: 6rem;
  }
  .order-cancelled-decoration .order-cancelled-side {
    width: 28px;
  }
  .order-cancelled-decoration {
    display: flex;
    align-items: center;
  }
  .order-cancelled-watermark {
    position: sticky;
    top: auto;
    left: 1rem;
    width: calc(100vw - 5.5rem);
    max-width: 320px;
    margin-left: 1rem;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    transform: none;
  }
  .order-cancelled-watermark-icon {
    font-size: 1.8rem;
  }
  .order-cancelled-watermark-title {
    max-width: 14ch;
    font-size: clamp(1rem, 4.5vw, 1.35rem);
    line-height: 1;
    white-space: normal;
  }
  .order-cancelled-watermark-subtitle {
    max-width: 30ch;
    font-size: 0.66rem;
    line-height: 1.08;
  }
  .order-cancelled-watermark-date {
    font-size: 0.62rem;
  }
}
.stats-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}
.stats-card.blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.stats-card.green {
  background: linear-gradient(135deg, #06d6a0 0%, #118ab2 100%);
}
.stats-card.orange {
  background: linear-gradient(135deg, #f77f00 0%, #d62828 100%);
}
.stats-card.purple {
  background: linear-gradient(135deg, #7209b7 0%, #560bad 100%);
}
.stats-card.teal {
  background: linear-gradient(135deg, #06d6a0 0%, #073b4c 100%);
}
.stats-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
  opacity: 0.9;
}
.stats-card .value {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}
.stats-card .icon {
  font-size: 3rem;
  opacity: 0.3;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.chart-container {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  min-height: 400px;
}
.chart-container h4 {
  color: #333;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.product-table {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
.product-table h4 {
  color: #333;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.product-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}
.product-item:hover {
  background-color: #f8f9fa;
}
.product-item:last-child {
  border-bottom: none;
}

.product-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  width: 50px;
  text-align: center;
}

.product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

.product-info {
  flex: 1;
}

.product-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.product-model {
  font-size: 0.9rem;
  color: #888;
}

.product-stats {
  text-align: right;
}

.product-count {
  font-size: 1.2rem;
  font-weight: bold;
  color: #667eea;
}

.product-quantity {
  font-size: 0.9rem;
  color: #888;
}

.product-revenue {
  font-size: 1rem;
  color: #06d6a0;
  font-weight: 600;
}

.statistics-page .page-header {
  margin-bottom: 30px;
}
.statistics-page .page-header h1 {
  color: #333;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.statistics-page .page-header p {
  color: #888;
  font-size: 1.1rem;
}

.badge-metric {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 5px;
}
.badge-metric.badge-success {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.period-filter-container {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.period-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.period-btn {
  padding: 12px 24px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 25px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.period-btn i {
  font-size: 1rem;
}
.period-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}
.period-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.custom-date-picker {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
}

.date-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.date-input-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}
.date-input-group input {
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  padding: 10px 15px;
  font-size: 0.95rem;
}
.date-input-group input:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.allegro-create-offer .product-search-results {
  max-height: 300px;
  overflow-y: auto;
}
.allegro-create-offer #category_list {
  max-height: 400px;
  overflow-y: auto;
}

.product-summary .product-name {
  max-width: 300px;
  word-wrap: break-word;
}
.product-summary .table td {
  vertical-align: middle;
}
.product-summary .badge {
  font-size: 0.875rem;
}
.product-summary .refresh-stock-btn:hover {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Mobile & Tablet Responsive Styles */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #343a40;
  z-index: 1030;
  padding: 0 1rem;
  align-items: center;
  justify-content: space-between;
}
.mobile-header .mobile-brand {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-header .mobile-menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
}
.mobile-header .mobile-menu-toggle:hover {
  color: #adb5bd;
}
.mobile-header .mobile-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.85rem;
}
.mobile-header .mobile-user-info i {
  font-size: 1rem;
}

@media (max-width: 1024px) {
  #sidebarMenu {
    width: 60px !important;
  }
  #sidebarMenu .navbarText {
    display: none !important;
  }
  #sidebarMenu #integracjeSubmenu {
    display: none !important;
  }
  #mainContent {
    padding-left: 70px !important;
  }
  .card-header .row {
    flex-wrap: wrap;
  }
  .order-card-columns {
    grid-template-columns: 35px 80px minmax(120px, 1.5fr) minmax(100px, 1fr) 100px 100px 80px;
  }
}
@media (max-width: 992px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  .navbar .navbar-brand {
    font-size: 1rem;
  }
  .navbar .nav-item .text-white {
    font-size: 0.8rem;
  }
  .navbar .nav-item .text-white small {
    display: none;
  }
  #mainContent {
    padding: 0.5rem !important;
    padding-left: 70px !important;
  }
  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .order-card-columns {
    grid-template-columns: 30px 70px 1fr minmax(80px, 120px) 90px;
    gap: 0.4rem;
  }
  .order-card-col-payment,
  .order-card-col-status {
    display: none;
  }
  .card-body .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .card-body .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .card-body .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-dialog {
    max-width: 90%;
    margin: 1rem auto;
  }
  .modal-lg {
    max-width: 95%;
  }
}
@media (max-width: 767.98px) {
  .mobile-header {
    display: flex;
  }
  header.navbar {
    display: none !important;
  }
  #sidebarMenu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px !important;
    z-index: 1040;
    padding-top: 1rem;
  }
  #sidebarMenu.show {
    transform: translateX(0);
  }
  #sidebarMenu .navbarText {
    display: inline !important;
  }
  #sidebarMenu #integracjeSubmenu {
    display: block !important;
  }
  #sidebarMenu #sidebarToggle {
    display: none;
  }
  #sidebarMenu .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  #mainContent {
    padding-left: 0 !important;
    padding-top: 66px !important;
    padding: 66px 0.5rem 0.5rem 0.5rem !important;
  }
  h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .btn-group-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  .btn-group-mobile .btn {
    width: 100%;
  }
  .btn-primary:not(.btn-sm),
  .btn-success:not(.btn-sm) {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .order-cards-header {
    display: none !important;
  }
  .card.mb-2 {
    margin-bottom: 0.75rem !important;
  }
  .card-header {
    padding: 0.75rem !important;
  }
  .card-header .row {
    margin: 0;
  }
  .card-header .col-1, .card-header .col-2, .card-header .col-3 {
    flex: none;
    width: auto;
    padding: 0.25rem;
  }
  .order-card-columns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .order-card-col {
    width: 100%;
  }
  .order-card-col .col-label {
    display: block !important;
    margin-bottom: 0.25rem;
  }
  .card-header .row.g-2 {
    display: flex;
    flex-wrap: wrap;
  }
  .card-header .row.g-2 > [class*=col-] {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    padding: 0.25rem;
  }
  .card-header .row.g-2 > .col-1:first-child {
    order: 1;
    width: 40px;
  }
  .card-header .row.g-2 > .col-1:nth-child(2) {
    order: 2;
    flex: 1;
  }
  .card-header .row.g-2 > .col-3 {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
  }
  .card-header .row.g-2 > .col-2:nth-of-type(1) {
    order: 4;
    width: 100%;
    flex: 0 0 100%;
  }
  .card-header .row.g-2 > .col-1:nth-of-type(3) {
    order: 5;
    width: 50%;
    flex: 0 0 50%;
  }
  .card-header .row.g-2 > .col-2:nth-of-type(2) {
    order: 6;
    width: 50%;
    flex: 0 0 50%;
  }
  .card-header .row.g-2 > .col-1:nth-of-type(4) {
    order: 7;
    width: 50%;
    flex: 0 0 50%;
  }
  .card-header .row.g-2 > .col-1:last-child {
    order: 8;
    width: 50%;
    flex: 0 0 50%;
  }
  .collapse .card-body {
    padding: 1rem;
  }
  .collapse .card-body .row.g-3 {
    margin: 0;
  }
  .collapse .card-body .row.g-3 > [class*=col-] {
    padding: 0.5rem 0;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .table {
    font-size: 0.85rem;
  }
  .table td, .table th {
    padding: 0.5rem;
  }
  .form-control,
  .form-select {
    font-size: 16px;
    padding: 0.625rem 0.75rem;
    min-height: 44px;
  }
  .btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
  }
  .btn-sm {
    min-height: 36px;
    padding: 0.375rem 0.75rem;
  }
  .modal-dialog {
    margin: 0;
    max-width: 100%;
    min-height: 100vh;
  }
  .modal-dialog .modal-content {
    min-height: 100vh;
    border-radius: 0;
  }
  .modal-lg,
  .modal-xl {
    max-width: 100%;
  }
  #filterModal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
    min-height: auto;
  }
  #filterModal .modal-dialog .modal-content {
    min-height: auto;
    border-radius: 0.5rem;
  }
  #filterModal .row.g-3 > [class*=col-] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .list-group-item {
    padding: 0.75rem;
  }
  .list-group-item .d-flex {
    flex-wrap: wrap;
  }
  .list-group-item .img-thumbnail {
    width: 40px !important;
    height: 40px !important;
  }
  .list-group-item .flex-grow-1 {
    flex: 0 0 calc(100% - 50px);
  }
  .list-group-item .flex-grow-1 .small {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .list-group-item .flex-grow-1 .small .mx-2 {
    display: none;
  }
  .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
  }
  .text-success strong {
    font-size: 1rem;
  }
  .order-card-col-status select,
  .form-select-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.5rem;
    min-height: 36px;
  }
  #shipping-info-container,
  [id^=shipping-info-] {
    overflow-x: auto;
  }
  #shipping-info-container .table,
  [id^=shipping-info-] .table {
    min-width: 500px;
  }
  .order-notes-section textarea {
    min-height: 80px;
  }
  .disabled-until-expanded {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
  }
}
@media (max-width: 575.98px) {
  .mobile-header {
    height: 50px;
  }
  .mobile-header .mobile-brand {
    font-size: 1rem;
  }
  #mainContent {
    padding-top: 60px !important;
  }
  h1 {
    font-size: 1.25rem;
  }
  .card-header {
    padding: 0.5rem !important;
  }
  .card-header .row.g-2.align-items-center.small {
    font-size: 0.75rem;
  }
  .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
  }
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  .btn-sm .fa,
  .btn-sm .fas {
    margin-right: 0;
  }
  .btn-mobile-icon-only span:not(.visually-hidden) {
    display: none;
  }
  .price-actions a {
    font-size: 1rem;
    padding: 0.25rem;
  }
}
@media (max-width: 767.98px) and (orientation: landscape) {
  .mobile-header {
    height: 44px;
  }
  #mainContent {
    padding-top: 54px !important;
  }
  #sidebarMenu {
    padding-top: 0.5rem;
  }
  .modal-dialog {
    min-height: auto;
    margin: 0.5rem;
  }
  .modal-dialog .modal-content {
    min-height: auto;
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
  }
}
@media (hover: none) and (pointer: coarse) {
  .nav-link {
    padding: 0.75rem 1rem;
  }
  .card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  .order-card-header:hover {
    background-color: transparent;
  }
  .btn:active {
    transform: scale(0.98);
  }
  .table-responsive,
  .overflow-auto {
    -webkit-overflow-scrolling: touch;
  }
}
@media print {
  .mobile-header,
  #sidebarMenu,
  .btn,
  .modal,
  .sidebar-overlay {
    display: none !important;
  }
  #mainContent {
    padding: 0 !important;
  }
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
  .collapse {
    display: block !important;
  }
}
/* Base Styles */
:root {
  --bs-body-font-size: 14px;
  --bs-btn-font-size: 14px;
}

/* Safe area for mobile devices (notch, etc.) */
body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}

/* Pagination */
.pagination .page {
  margin: 0 5px;
}
.pagination .page a {
  text-decoration: none;
}

/*# sourceMappingURL=app.output.css.map */
