/* Main Application Styles */
/* Import order: fonts -> variables -> mixins -> utilities -> components -> pages -> responsive */
/* Inter Font Family - Local */
@import 'product-panel.css';
@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[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;
  }
}
/* 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 Cards Styles */
.order-row-shipped {
  background-color: #80e6ef !important;
}
.order-row-shipped > td {
  background-color: #80e6ef !important;
}

.order-row-paid {
  background-color: #eaffdc !important;
}
.order-row-paid > td {
  background-color: #eaffdc !important;
}

.order-row-default {
  background-color: #ffffff !important;
}
.order-row-default > td {
  background-color: #ffffff !important;
}

.order-row-out-of-stock {
  background-color: #ffffff !important;
}
.order-row-out-of-stock > td {
  background-color: #ffffff !important;
}

[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;
}

.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;
}

.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;
}

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

/* 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-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-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;
}

.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 */
