/* G.PACK shared theme styles */

body {
  font-family: "Tajawal", sans-serif;
  background-color: #f3f4f6;
}

.gpack-purple {
  background-color: #3e206d;
}

.gpack-yellow {
  color: #fccf4d;
}

.gpack-btn {
  background-color: #fccf4d;
  color: #3e206d;
  transition: all 0.3s;
}

.gpack-btn:hover {
  background-color: #e6bd45;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-item {
  border-right: 4px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-right-color: rgba(252, 207, 77, 0.5);
}

.sidebar-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-right-color: #fccf4d;
  color: #fff !important;
  font-weight: bold;
}

.modal {
  transition: opacity 0.25s ease;
}

body.modal-active {
  overflow-x: hidden;
  overflow-y: hidden !important;
}

.tab-btn {
  border-bottom: 3px solid transparent;
  color: #6b7280;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 15px;
  white-space: nowrap;
}

.tab-btn.active {
  border-bottom-color: #3e206d;
  color: #3e206d;
  font-weight: bold;
  background-color: #f9fafb;
}

/* Pantone cards (clients) */
.pantone-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  width: 100px;
  text-align: center;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pantone-color {
  height: 60px;
  width: 100%;
}

.pantone-info {
  padding: 8px;
  font-size: 10px;
  color: #374151;
  font-weight: bold;
}

/* Suppliers page extras */
.nav-scroll::-webkit-scrollbar {
  width: 4px;
}

.nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.nav-scroll:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}

#sidebar {
  transition: width 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.sidebar-collapsed {
  width: 0 !important;
  overflow: hidden;
}

@media (max-width: 768px) {
  .sidebar-mobile-hidden {
    transform: translateX(100%) !important;
  }
  .sidebar-collapsed {
    transform: translateX(100%) !important;
    width: 0 !important;
  }
  aside, #sidebar {
    position: fixed;
    height: 100vh;
    z-index: 50;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
  }
}

/* Print rules */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile Fixes & Scrollbar Hiding */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

aside nav, .overflow-y-auto {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

aside nav::-webkit-scrollbar, .overflow-y-auto::-webkit-scrollbar, #sidebar-container::-webkit-scrollbar, #sidebar::-webkit-scrollbar {
  display: none;
}
#sidebar, #sidebar-container, aside, aside nav {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* removed duplicate mobile block */

/* G.PACK Strict Scrollbar Hiding */
aside nav::-webkit-scrollbar,
.overflow-y-auto::-webkit-scrollbar,
.hide-scrollbar::-webkit-scrollbar,
.nav-scroll::-webkit-scrollbar {
  display: none !important;
}

aside nav,
.overflow-y-auto,
.hide-scrollbar,
.nav-scroll {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

body {
  overflow-x: hidden;
}

@media print {
    img {
        visibility: visible !important;
        display: inline-block !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        opacity: 1 !important;
    }
}