/* ==========================================================================
   نظام البيان المحاسبي - التنسيقات العامة (CSS)
   متوافق مع Bootstrap 5 RTL مع دعم الوضع الليلي وتنسيقات الطباعة الاحترافية
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
  --primary-color: #1e3a8a;
  --primary-hover: #172554;
  --secondary-color: #0f766e;
  --accent-color: #f59e0b;
  --danger-color: #dc2626;
  --success-color: #16a34a;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-text: #f8fafc;
  --light-bg: #f8fafc;
  --light-card: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--light-bg);
  color: #1e293b;
  min-height: 100vh;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* الوضع المظلم (Dark Mode) */
body.dark-mode {
  background-color: #0b0f19;
  color: #e2e8f0;
}

body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu {
  background-color: #161e2e;
  border-color: #283548;
  color: #f1f5f9;
}

body.dark-mode .table {
  color: #e2e8f0;
  border-color: #283548;
}

body.dark-mode .table-hover > tbody > tr:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #fff;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
  background-color: #111827;
  border-color: #374151;
  color: #f9fafb;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
  background-color: #111827;
  border-color: #3b82f6;
  color: #fff;
}

body.dark-mode .bg-light {
  background-color: #1e293b !important;
}

body.dark-mode .border-light {
  border-color: #334155 !important;
}

/* شريط الإحصائيات وبورصة أربيل */
.erbil-ticker {
  background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
  color: white;
  border-radius: var(--border-radius);
  padding: 10px 18px;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.erbil-rate-badge {
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* البطاقات الإحصائية */
.stat-card {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
}

.stat-card .stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-blue { background: rgba(30, 58, 138, 0.12); color: #1e3a8a; }
.icon-green { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.icon-amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.icon-red { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.icon-purple { background: rgba(147, 51, 234, 0.12); color: #9333ea; }
.icon-teal { background: rgba(15, 118, 110, 0.12); color: #0f766e; }

/* بطاقات المنتجات وصورها */
.product-img-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #f1f5f9;
}

.product-img-preview-box {
  width: 100%;
  height: 180px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background-color: #f8fafc;
  position: relative;
}

.product-img-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* الباركود و QR Code */
.barcode-svg-box, .qrcode-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.barcode-svg-box svg {
  max-width: 100%;
  height: auto;
}

/* أزرار وشارات */
.btn-primary {
  background-color: #1e3a8a;
  border-color: #1e3a8a;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #172554;
  border-color: #172554;
}

.badge-paid {
  background-color: #dcfce7;
  color: #15803d;
  font-weight: 600;
}

.badge-pending {
  background-color: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
}

.badge-overdue {
  background-color: #fee2e2;
  color: #b91c1c;
  font-weight: 600;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* جدول الأقساط */
.installment-timeline {
  position: relative;
  padding: 10px 0;
}

.installment-month-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #fff;
  transition: all 0.2s ease;
}

.installment-month-card.paid {
  border-right: 5px solid #16a34a;
  background-color: #f0fdf4;
}

.installment-month-card.pending {
  border-right: 5px solid #0284c7;
}

.installment-month-card.overdue {
  border-right: 5px solid #dc2626;
  background-color: #fef2f2;
}

/* شريط التبويبات المخصص */
.nav-pills-custom .nav-link {
  color: #475569;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pills-custom .nav-link.active {
  background-color: #1e3a8a;
  color: #fff;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

.nav-pills-custom .nav-link:hover:not(.active) {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* استايل السندات والفواتير للطباعة */
#printable-area {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }
  #printable-area, #printable-area * {
    visibility: visible;
  }
  #printable-area {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 10px;
    background: white;
    color: black;
  }

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

  /* تنسيق ملصقات الباركود */
  .barcode-stickers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px;
  }

  .barcode-sticker-item {
    border: 1px dashed #94a3b8;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    page-break-inside: avoid;
  }

  /* تنسيق الفاتورة الحرارية 80mm */
  .thermal-receipt {
    width: 78mm;
    max-width: 78mm;
    margin: 0 auto;
    font-size: 12px;
    line-height: 1.4;
    font-family: 'Cairo', monospace, sans-serif;
    border: 1px solid #ddd;
    padding: 8px;
  }
}

/* كارت الشريك ونسبة الحصص */
.partner-card {
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
  background: white;
  transition: transform 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-3px);
}

.progress-thin {
  height: 8px;
  border-radius: 4px;
}

/* ==========================================================================
   تنسيقات نقاط البيع (POS) والبحث الشامل والمتاجر المتعددة
   ========================================================================== */

/* شريط البحث الشامل */
.universal-search-wrapper {
  position: relative;
  min-width: 260px;
  max-width: 450px;
  flex-grow: 1;
}

.universal-search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 1px solid #e2e8f0;
  max-height: 420px;
  overflow-y: auto;
  z-index: 1080;
  margin-top: 5px;
  display: none;
}

body.dark-mode .universal-search-dropdown {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

.search-category-header {
  background: #f8fafc;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
}

body.dark-mode .search-category-header {
  background: #0f172a;
  color: #94a3b8;
  border-color: #334155;
}

.search-item-row {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

body.dark-mode .search-item-row {
  border-color: #334155;
}

.search-item-row:hover {
  background: #f0fdf4;
}

body.dark-mode .search-item-row:hover {
  background: #334155;
}

/* شارة المتجر الحالي في الرأس */
.current-store-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.current-store-badge:hover {
  background: #e2e8f0;
}

body.dark-mode .current-store-badge {
  background: #1e293b;
  border-color: #475569;
  color: #f1f5f9;
}

/* جرس الإشعارات ونبض التنبيه */
.notif-btn-wrapper {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  padding: 3px 6px;
  border-radius: 50%;
  font-size: 0.65rem;
}

/* بطاقات منتجات شاشة البيع السريع POS */
.pos-product-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.pos-product-card:hover {
  border-color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.pos-product-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  background: #f8fafc;
}

body.dark-mode .pos-product-card {
  background: #1e293b;
  border-color: #334155;
}

/* سلة مبيعات POS */
.pos-cart-panel {
  background: #fff;
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 170px);
  min-height: 550px;
}

body.dark-mode .pos-cart-panel {
  background: #161e2e;
  border-color: #283548;
}

.pos-cart-items-box {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
}

.pos-cart-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
}

body.dark-mode .pos-cart-item {
  border-color: #334155;
}

/* أزرار طرق الدفع السريعة */
.payment-type-btn {
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-type-btn.cash {
  background: #f0fdf4;
  color: #15803d;
  border-color: #86efac;
}

.payment-type-btn.cash.active, .payment-type-btn.cash:hover {
  background: #16a34a;
  color: #fff;
}

.payment-type-btn.inst {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.payment-type-btn.inst.active, .payment-type-btn.inst:hover {
  background: #0284c7;
  color: #fff;
}

.payment-type-btn.debt {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* ==========================================================================
   تنسيقات المتجر العام للزوار (Storefront) والأدوار والشعار
   ========================================================================== */

/* بانر المتجر الإلكتروني العام */
.storefront-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
  color: white;
  border-radius: var(--border-radius);
  padding: 25px 20px;
  margin-bottom: 25px;
  box-shadow: var(--box-shadow);
}

.storefront-product-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  background: #fff;
  transition: all 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.storefront-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.storefront-img-box {
  width: 100%;
  height: 170px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.storefront-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.storefront-product-card:hover .storefront-img-box img {
  transform: scale(1.05);
}

body.dark-mode .storefront-product-card {
  background: #161e2e;
  border-color: #283548;
}

body.dark-mode .storefront-img-box {
  background: #0f172a;
}

/* شارة الدور النشط */
.role-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.role-guest { background: #e0f2fe; color: #0369a1; }
.role-customer { background: #dcfce7; color: #15803d; }
.role-manager { background: #fef3c7; color: #b45309; }
.role-admin { background: #fee2e2; color: #b91c1c; }

/* شعار الموقع في الهيدر */
.site-logo-img {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
  border-radius: 6px;
}

/* صندوق الكابتشا التفاعلي */
.captcha-box-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

body.dark-mode .captcha-box-wrapper {
  background: #1e293b;
  border-color: #475569;
}

/* شارات والعداد التنازلي للاشتراكات */
.live-sub-countdown {
  font-family: monospace;
  letter-spacing: 1px;
  font-weight: 800;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
}

.pulse-warning {
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(234, 179, 8, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.store-closed-overlay {
  position: relative;
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.8);
}

/* ==========================================================================
   تنسيقات سلة المشتريات المجمعة بالمتاجر والزر العائم
   ========================================================================== */

.cart-floating-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1040;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-floating-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.5);
  color: #fff;
}

.cart-count-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 800;
}

.store-cart-group {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  background: #fff;
}

body.dark-mode .store-cart-group {
  background: #1e293b;
  border-color: #334155;
}

.store-cart-header {
  background: #f1f5f9;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.dark-mode .store-cart-header {
  background: #0f172a;
  border-color: #334155;
}

.cart-item-card {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.dark-mode .cart-item-card {
  border-color: #334155;
}

.cart-item-card:last-child {
  border-bottom: none;
}

.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

.cart-qty-ctrl button {
  background: #f8fafc;
  border: none;
  padding: 4px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}

body.dark-mode .cart-qty-ctrl button {
  background: #334155;
  color: #fff;
}

.cart-qty-ctrl button:hover {
  background: #e2e8f0;
}

.cart-qty-ctrl span {
  padding: 4px 12px;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

/* ==========================================================================
   بانر إغلاق المتجر بالخط الكبير والواضح
   ========================================================================== */

.store-closure-banner {
  background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%);
  border: 3px solid #ef4444;
  border-radius: 16px;
  padding: 30px 24px;
  margin: 25px 0;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.15);
  text-align: center;
}

body.dark-mode .store-closure-banner {
  background: #2b1113;
  border-color: #ef4444;
}

.store-closure-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #b91c1c;
  margin-bottom: 15px;
}

.closure-reason-box {
  background: #ffffff;
  border: 2px dashed #dc2626;
  border-radius: 12px;
  padding: 16px 20px;
  display: inline-block;
  max-width: 90%;
  margin: 15px auto;
  font-size: 1.4rem;
  font-weight: 800;
  color: #991b1b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .closure-reason-box {
  background: #1f1214;
  color: #fca5a5;
  border-color: #ef4444;
}

/* ==========================================================================
   وضع الصيانة العام للموقع (Maintenance Mode Screen)
   ========================================================================== */

#maintenance-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.maintenance-card {
  max-width: 620px;
  width: 100%;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.5s ease-out;
}

.maintenance-icon-box {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  margin: 0 auto 25px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}

.gear-spin {
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#maintenance-admin-bar {
  background: #dc2626;
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ==========================================================================
   تنسيقات محرك توصيات الاهتمامات الذكي (Personalized Recommendations)
   ========================================================================== */
.recommendations-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.recommendations-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
}

.interest-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #1e293b;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.recommendation-card {
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  background: #fff;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.recommendation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
  border-color: #60a5fa;
}

.recommendation-reason-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   تنسيقات بوابات الدفع الإلكتروني ورموز الاستجابة السريعة (Payment Gateways)
   ========================================================================== */
.qr-payment-box {
  border: 2px dashed #93c5fd !important;
  background: #f8fafc;
  border-radius: 16px;
  display: inline-block;
}

.payment-method-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.payment-method-card.selected, .payment-method-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

/* ==========================================================================
   تنسيقات بوليصة الشحن والتتبع المباشر (Delivery Waybill & Tracking)
   ========================================================================== */
.waybill-slip {
  background: #fff;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 24px;
  font-family: 'Cairo', sans-serif;
  color: #0f172a;
}

.waybill-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.waybill-barcode-svg {
  height: 60px;
  width: 100%;
  max-width: 280px;
}

.tracking-timeline {
  position: relative;
  padding-right: 25px;
}

.tracking-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: 3px;
  background: #e2e8f0;
}

.tracking-timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.tracking-timeline-item:last-child {
  margin-bottom: 0;
}

.tracking-timeline-dot {
  position: absolute;
  top: 2px;
  right: -25px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #94a3b8;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #cbd5e1;
}

.tracking-timeline-item.active .tracking-timeline-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px #10b981;
}

@media print {
  body * {
    visibility: hidden;
  }
  .waybill-slip, .waybill-slip * {
    visibility: visible;
  }
  .waybill-slip {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    padding: 0;
  }
}

