body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

.card {
  border-radius: 0.75rem;
}

.navbar-brand {
  font-weight: 700;
}

.commander-topbar {
  padding: 0.5rem 0.75rem;
}

.commander-icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

.global-topbar {
  position: sticky;
  top: 0;
  z-index: 1300;
}

.global-topbar__brand {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1rem;
  line-height: 1.25;
  background: linear-gradient(90deg, #fbbf24, #f472b6, #60a5fa, #34d399, #fbbf24);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: globalBrandShimmer 6s linear infinite;
  text-align: center;
}

@keyframes globalBrandShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

 .bg-red-500 {
  background: #ef4444 !important;
 }

/* تخطيط خاص بلوحة تحكم الحكمدار العام */
.commander-layout {
  display: flex;
  gap: 1rem;
}

.commander-sidebar {
  background: #020617; /* قريب من slate-950 بلون هادئ */
  color: #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  width: 260px;
  flex-shrink: 0;
  min-height: calc(100vh - 5rem);
  position: sticky;
  top: 1rem;
}

.commander-main {
  flex: 1;
  min-width: 0;
}

.commander-sidebar-link {
  color: #cbd5f5;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.commander-sidebar-link:hover {
  background: #1e293b; /* slate-800 */
  color: #f9fafb;
}

.commander-sidebar-link--active {
  background: #1e293b;
  color: #f9fafb;
}

.commander-sidebar-link--muted {
  color: #94a3b8;
}

/* سلوك الشريط الجانبي على شاشات الجوال (أقل من 768px) */
@media (max-width: 767.98px) {
  .commander-layout {
    position: relative;
  }

  .commander-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0; /* متوافق مع RTL */
    border-radius: 0;
    width: 260px;
    max-width: 80%;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 1040;
  }

  .commander-layout.commander-layout--sidebar-open .commander-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .commander-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1030;
  }

  .commander-layout.commander-layout--sidebar-open .commander-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 768px) {
  .commander-sidebar-backdrop {
    display: none;
  }
}

/* تخطيط خاص بلوحة تحكم مكتب المالية (تصميم مختلف عن الحكمدار) */
.finance-layout {
  display: flex;
  gap: 1rem;
}

.finance-sidebar {
  width: 280px;
  flex-shrink: 0;
  min-height: calc(100vh - 5rem);
  position: sticky;
  top: 1rem;
  border-radius: 1rem;
  padding: 1rem;
  color: #e2e8f0;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(34, 211, 238, 0.22), transparent 50%),
    linear-gradient(180deg, #0b1020, #071225);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.finance-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.finance-brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.finance-brand__title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.finance-brand__subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

.finance-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #cbd5e1;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.finance-sidebar-link:hover {
  background: rgba(34, 211, 238, 0.12);
  color: #e2e8f0;
  transform: translateY(-1px);
}

.finance-sidebar-link--active {
  background: rgba(34, 211, 238, 0.18);
  color: #e2e8f0;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.finance-sidebar-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.finance-main {
  flex: 1;
  min-width: 0;
}

.finance-topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #e2e8f0;
  background: radial-gradient(900px 400px at 100% 0%, rgba(34, 211, 238, 0.18), transparent 50%),
    linear-gradient(90deg, #0f172a, #061225);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.18);
}

.finance-topbar__title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.finance-topbar__headline {
  font-weight: 900;
  font-size: 1.05rem;
}

.finance-topbar__sub {
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.82rem;
}

.finance-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.finance-icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

.finance-kpi {
  border-radius: 1rem;
}

.finance-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

.finance-kpi-icon.accent-cyan {
  background: rgba(34, 211, 238, 0.24);
  border: 1px solid rgba(34, 211, 238, 0.45);
}

.finance-kpi-icon.accent-emerald {
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.finance-kpi-icon.accent-violet {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.finance-kpi-icon.accent-yellow {
  background: rgba(250, 204, 21, 0.22);
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.finance-kpi-icon.accent-pink {
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(236, 72, 153, 0.45);
}

.finance-card {
  border-radius: 1rem;
}

/* تخطيط خاص بلوحة تحكم مكتب الإمداد */
.supply-layout {
  display: flex;
  gap: 1rem;
}

.supply-sidebar {
  width: 280px;
  flex-shrink: 0;
  min-height: calc(100vh - 5rem);
  position: sticky;
  top: 1rem;
  border-radius: 1.1rem;
  padding: 1.25rem 1.15rem;
  color: #f8fafc;
  background: linear-gradient(160deg, #0b162c, #091027 53%, #051524);
  box-shadow: 0 22px 45px rgba(8, 15, 36, 0.44);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.supply-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.supply-brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(59, 130, 246, 0.2));
  color: #38bdf8;
  font-size: 1.45rem;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.supply-brand__title {
  font-weight: 800;
  letter-spacing: 0.3px;
}

.supply-brand__subtitle {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.75);
}

.supply-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  text-decoration: none;
  color: rgba(226, 232, 240, 0.82);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.supply-sidebar-link:hover {
  background: rgba(59, 130, 246, 0.18);
  transform: translateX(-3px);
  color: #f8fafc;
}

.supply-category-card,
.supply-subcategory-card {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.45);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.supply-category-card + .supply-category-card,
.supply-subcategory-card + .supply-subcategory-card {
  margin-top: 0.6rem;
}

.supply-category-card--selected {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  transform: translateY(-2px);
}

.supply-category-card__body,
.supply-subcategory-card__body {
  flex: 1;
  padding: 1rem 1.1rem;
  background: transparent;
  border: 0;
  text-align: inherit;
  color: inherit;
  cursor: pointer;
}

.supply-category-card__body:focus-visible,
.supply-subcategory-card__body:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.7);
  outline-offset: 2px;
}

.supply-category-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  font-size: 1.25rem;
}

.supply-category-card__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.supply-card-action {
  align-self: center;
  margin-inline-end: 0.75rem;
  margin-inline-start: -0.25rem;
}

.supply-card-action.btn-outline-danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}

.supply-card-action.btn-outline-danger:hover {
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(248, 113, 113, 0.15);
}

.supply-subcategory-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.supply-product-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.supply-product-row {
  position: relative;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.4);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.28);
}

.supply-product-row__remove {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
}

.supply-product-row__remove:hover {
  color: #f44336;
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.18);
}

.supply-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  animation: supplyModalFade 0.18s ease;
}

.supply-modal {
  width: min(920px, 95%);
  border-radius: 1.1rem;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.45);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.supply-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.supply-modal__body {
  padding: 1.25rem;
  color: #e2e8f0;
  overflow-y: auto;
  flex: 1 1 auto;
}

.supply-modal__body .form-label {
  color: rgba(226, 232, 240, 0.75);
}

.supply-modal__body .form-control,
.supply-modal__body .form-select,
.supply-modal__body textarea {
  background: rgba(15, 23, 42, 0.65);
  color: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.supply-modal__body .form-control:focus,
.supply-modal__body .form-select:focus,
.supply-modal__body textarea:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.supply-modal-form .btn-primary {
  background: linear-gradient(120deg, #38bdf8, #6366f1);
  border: 0;
}

.supply-modal-form .btn-primary:hover {
  background: linear-gradient(120deg, #0ea5e9, #4f46e5);
}

@keyframes supplyModalFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.supply-sidebar-link--active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(14, 165, 233, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #f8fafc;
  box-shadow: 0 12px 25px rgba(13, 148, 136, 0.22);
}

.supply-sidebar-footer {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.supply-main {
  flex: 1;
  min-width: 0;
}

.supply-topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  padding: 1rem 1.15rem;
  border-radius: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #0f172a;
  background: linear-gradient(120deg, rgba(224, 242, 254, 0.9), #ffffff);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 16px 35px rgba(14, 165, 233, 0.12);
}

.supply-topbar__title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.supply-topbar__headline {
  font-weight: 900;
  font-size: 1.05rem;
}

.supply-topbar__sub {
  color: #64748b;
  font-size: 0.82rem;
}

.supply-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.supply-icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

.supply-card {
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.1rem 1.25rem;
}

.supply-card--kpi {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.65);
}

.supply-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #0f172a;
}

.supply-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.supply-chart {
  height: 320px;
}

.supply-chart--donut {
  height: 300px;
}

.supply-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.supply-timeline__item {
  display: flex;
  gap: 0.85rem;
}

.supply-timeline__badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.supply-timeline__badge.is-in {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.85), rgba(22, 163, 74, 0.78));
}

.supply-timeline__badge.is-out {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.78));
}

.supply-timeline__body {
  flex: 1;
  border-radius: 0.85rem;
  background: linear-gradient(90deg, rgba(241, 245, 249, 0.65), rgba(241, 245, 249, 0.2));
  padding: 0.65rem 0.85rem;
}

.accent-cyan { background: rgba(56, 189, 248, 0.24); border: 1px solid rgba(56, 189, 248, 0.45); }
.accent-amber { background: rgba(251, 191, 36, 0.24); border: 1px solid rgba(251, 191, 36, 0.45); }
.accent-green { background: rgba(34, 197, 94, 0.22); border: 1px solid rgba(34, 197, 94, 0.42); }
.accent-rose { background: rgba(244, 63, 94, 0.22); border: 1px solid rgba(244, 63, 94, 0.4); }
.accent-sand { background: rgba(226, 232, 240, 0.65); border: 1px solid rgba(148, 163, 184, 0.35); }

.supply-dashboard-root {
  position: relative;
  min-height: 520px;
}

.supply-dashboard-content {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.supply-hydrated .supply-dashboard-content {
  opacity: 1;
  transform: translateY(0);
}

.supply-hydrated .supply-skeleton {
  display: none;
}

.supply-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.supply-skeleton-card,
.supply-skeleton-chart,
.supply-skeleton-stack {
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.25), rgba(226, 232, 240, 0.4));
  min-height: 110px;
}

.supply-skeleton-chart { min-height: 300px; }
.supply-skeleton-stack { min-height: 300px; }

.supply-inventory-root {
  position: relative;
  min-height: 640px;
}

.supply-inventory-content {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.supply-inventory-hydrated .supply-inventory-content {
  opacity: 1;
  transform: none;
}

.supply-inventory-hydrated .supply-inventory-skeleton {
  display: none;
}

.supply-inventory-panel {
  border-radius: 1.1rem;
  padding: 1.25rem 1.15rem;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.62));
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(59, 130, 246, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.supply-inventory-panel__headline {
  font-weight: 800;
  font-size: 1rem;
}

.supply-inventory-categories {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.supply-inventory-category {
  border-radius: 0.85rem;
  padding: 0.85rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  background: rgba(30, 64, 175, 0.22);
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.supply-inventory-category:hover {
  transform: translateX(-4px);
  background: rgba(59, 130, 246, 0.28);
}

.supply-inventory-category.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.25));
  border-color: rgba(56, 189, 248, 0.55);
}

.supply-inventory-category__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  font-size: 1.25rem;
}

.supply-inventory-category__meta {
  margin-inline-start: auto;
  text-align: end;
}

.supply-inventory-subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.supply-inventory-chip {
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.45);
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.supply-inventory-chip:hover {
  background: rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.6);
}

.supply-inventory-chip.is-active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(16, 185, 129, 0.35));
  border-color: rgba(16, 185, 129, 0.55);
}

.supply-inventory-metric-card {
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.supply-inventory-metric-card .metric-label {
  font-size: 0.8rem;
  color: #64748b;
}

.supply-inventory-metric-card .metric-value {
  font-weight: 800;
  font-size: 1.4rem;
  color: #0f172a;
}

.supply-inventory-filter-card {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(115deg, rgba(226, 232, 240, 0.35), rgba(241, 245, 249, 0.85));
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 24px rgba(148, 163, 184, 0.22);
}

.supply-inventory-search {
  position: relative;
}

.supply-inventory-search input {
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding-inline-start: 2.75rem;
  padding-inline-end: 1rem;
  height: 48px;
}

.supply-inventory-search i {
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
}

.supply-inventory-status-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.supply-inventory-status-chip {
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  cursor: pointer;
  background: #ffffff;
  color: #1f2937;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.supply-inventory-status-chip.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(14, 165, 233, 0.35));
  color: #0f172a;
  border-color: rgba(59, 130, 246, 0.65);
}

.supply-inventory-section-title {
  font-weight: 800;
  color: #0f172a;
}

.supply-product-card {
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}

.supply-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(30, 64, 175, 0.18);
}

.supply-product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.supply-product-card__title {
  font-weight: 700;
  color: #0f172a;
}

.supply-product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #475569;
}

.supply-product-card__footer .stock {
  font-weight: 700;
  color: #0f172a;
}

.supply-inventory-highlights {
  display: grid;
  gap: 1rem;
}

.supply-inventory-highlight-card {
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.supply-inventory-highlight-card h6 {
  font-weight: 800;
  color: #0f172a;
}

.supply-inventory-highlight-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.supply-inventory-highlight-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #334155;
}

.supply-inventory-highlight-card li span {
  color: #0f172a;
  font-weight: 600;
}

.supply-inventory-chart {
  height: 320px;
}

.supply-inventory-empty {
  border-radius: 1rem;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.75), rgba(226, 232, 240, 0.55));
  border: 1px dashed rgba(148, 163, 184, 0.5);
  text-align: center;
  color: #475569;
}

.badge-status-high {
  background: rgba(59, 130, 246, 0.12);
  color: #0f172a;
}

.badge-status-critical {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.badge-status-low {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.badge-status-slow {
  background: rgba(15, 118, 110, 0.18);
  color: #0f766e;
}

.badge-status-new {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.supply-product-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.supply-product-card__chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.supply-product-card__chip {
  border-radius: 9999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  background: rgba(226, 232, 240, 0.8);
  color: #334155;
}

.supply-detail-root {
  position: relative;
  min-height: 540px;
}

.supply-detail-content {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.supply-detail-hydrated .supply-detail-content {
  opacity: 1;
  transform: none;
}

.supply-detail-hydrated .supply-detail-skeleton {
  display: none;
}

.supply-detail-hero {
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(120deg, rgba(30, 64, 175, 0.25), rgba(14, 165, 233, 0.18));
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 18px 36px rgba(30, 64, 175, 0.18);
  color: #0f172a;
}

.supply-detail-hero__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.supply-detail-hero__title {
  font-weight: 900;
  font-size: 1.35rem;
}

.supply-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #475569;
}

.supply-detail-metric-card {
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.supply-detail-chart {
  height: 340px;
}

.supply-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.supply-detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #1f2937;
  border-radius: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(241, 245, 249, 0.75);
}

.supply-detail-related {
  display: grid;
  gap: 0.75rem;
}

.supply-detail-related a {
  text-decoration: none;
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0f172a;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.supply-detail-related a:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(30, 64, 175, 0.16);
}

.supply-detail-empty {
  border-radius: 1rem;
  padding: 2.5rem 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  text-align: center;
  color: #475569;
  background: rgba(241, 245, 249, 0.6);
}

.supply-reports-root,
.supply-stocktaking-root,
.supply-movement-root,
.supply-transfers-root,
.supply-settings-root {
  position: relative;
  min-height: 520px;
}

.supply-reports-content,
.supply-stocktaking-content,
.supply-movement-content,
.supply-transfers-content,
.supply-settings-content {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.supply-reports-hydrated .supply-reports-content,
.supply-stocktaking-hydrated .supply-stocktaking-content,
.supply-movement-hydrated .supply-movement-content,
.supply-transfers-hydrated .supply-transfers-content,
.supply-settings-hydrated .supply-settings-content {
  opacity: 1;
  transform: none;
}

.supply-reports-hydrated .supply-reports-skeleton,
.supply-stocktaking-hydrated .supply-stocktaking-skeleton,
.supply-movement-hydrated .supply-movement-skeleton,
.supply-transfers-hydrated .supply-transfers-skeleton,
.supply-settings-hydrated .supply-settings-skeleton {
  display: none;
}

.supply-reports-skeleton,
.supply-stocktaking-skeleton,
.supply-movement-skeleton,
.supply-transfers-skeleton,
.supply-settings-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.supply-report-kpi {
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.supply-report-chart {
  height: 360px;
}

.supply-report-heatmap {
  height: 320px;
}

.supply-suppliers-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.supply-supplier-item {
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.55), rgba(241, 245, 249, 0.55));
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.supply-supplier-meter {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 160px;
}

.supply-supplier-meter__bar {
  flex: 1;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(59, 130, 246, 0.75));
}

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

.supply-service-card {
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.55);
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.supply-service-progress {
  margin-top: 0.5rem;
  background: rgba(148, 163, 184, 0.28);
  border-radius: 9999px;
  height: 6px;
  overflow: hidden;
}

.supply-service-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(14, 165, 233, 0.85));
}

.supply-stocktaking-panel {
  border-radius: 1.1rem;
  padding: 1.2rem 1.15rem;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.9), rgba(14, 116, 144, 0.65));
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.35);
}

.supply-stocktaking-panel__headline {
  font-weight: 800;
  font-size: 1rem;
}

.supply-stocktaking-kpi {
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.55);
  padding: 1rem 1.1rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.supply-stocktaking-progress {
  margin-top: 0.5rem;
  height: 6px;
  background: rgba(148, 163, 184, 0.28);
  border-radius: 9999px;
  overflow: hidden;
}

.supply-stocktaking-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.55), rgba(16, 185, 129, 0.85));
}

.supply-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.supply-schedule-item {
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  background: rgba(30, 64, 175, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f8fafc;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.supply-variance-chart {
  height: 320px;
}

.supply-teams-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.supply-team-card {
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.supply-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.supply-checklist li {
  border-radius: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(241, 245, 249, 0.75);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1f2937;
}

.supply-movement-chart {
  height: 280px;
}

.supply-movement-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.supply-movement-filter {
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #ffffff;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.supply-movement-filter.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(14, 165, 233, 0.35));
  color: #0f172a;
  border-color: rgba(59, 130, 246, 0.65);
}

.supply-channel-card {
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.supply-channel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
}

.supply-channel-row:last-child {
  border-bottom: 0;
}

.supply-history-table {
  width: 100%;
  border-collapse: collapse;
}

.supply-history-table thead th {
  background: rgba(241, 245, 249, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  color: #475569;
}

.supply-history-table tbody td {
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding: 0.7rem 0.75rem;
  font-size: 0.82rem;
}

.supply-history-status {
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  background: rgba(226, 232, 240, 0.8);
  color: #334155;
}

.supply-history-type-in {
  color: #0f766e;
}

.supply-history-type-out {
  color: #b91c1c;
}

.supply-history-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
}

.supply-history-search {
  position: relative;
}

.supply-history-search input {
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding-inline-start: 2.5rem;
  height: 44px;
}

.supply-history-search i {
  position: absolute;
  inset-inline-start: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
}

.supply-transfers-summary {
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.supply-transfers-filter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.supply-transfer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.supply-transfer-tag {
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #ffffff;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.supply-transfer-tag.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(14, 165, 233, 0.35));
  border-color: rgba(59, 130, 246, 0.55);
  color: #0f172a;
}

.supply-lane-card {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(14, 165, 233, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.supply-transfers-table thead th {
  background: rgba(241, 245, 249, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  color: #475569;
}

.supply-transfers-table tbody td {
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding: 0.75rem 0.75rem;
  font-size: 0.82rem;
}

.supply-transfer-status {
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  background: rgba(226, 232, 240, 0.8);
  color: #1f2937;
}

.supply-transfer-status.is-pending { background: rgba(251, 191, 36, 0.25); color: #b45309; }
.supply-transfer-status.is-active { background: rgba(59, 130, 246, 0.2); color: #1d4ed8; }
.supply-transfer-status.is-complete { background: rgba(34, 197, 94, 0.25); color: #166534; }

.supply-transfer-priority {
  border-radius: 9999px;
  padding: 0.25rem 0.7rem;
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
  font-size: 0.72rem;
}

.supply-transfer-priority.is-normal { background: rgba(59, 130, 246, 0.15); color: #1d4ed8; }
.supply-transfer-priority.is-planned { background: rgba(16, 185, 129, 0.15); color: #047857; }

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

.supply-settings-card {
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  padding: 1rem 1.15rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.supply-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.supply-category-item {
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(241, 245, 249, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.supply-subcategory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.supply-subcategory-tag {
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
}

.supply-settings-form .form-control,
.supply-settings-form .form-select {
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.supply-template-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.supply-template-item {
  border-radius: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(241, 245, 249, 0.55);
}

.supply-template-item ul {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.supply-template-item li {
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  background: rgba(15, 118, 110, 0.15);
  color: #0f766e;
  font-size: 0.72rem;
}

.supply-settings-empty {
  border-radius: 1rem;
  padding: 2.25rem 1rem;
  text-align: center;
  color: #64748b;
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.7), rgba(226, 232, 240, 0.5));
}

.supply-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.supply-settings-actions .btn {
  border-radius: 0.85rem;
}

.supply-printing .supply-sidebar,
.supply-printing .supply-sidebar-backdrop,
.supply-printing .supply-topbar,
.supply-printing .supply-topbar__actions,
.supply-printing .supply-brand,
.supply-printing .supply-sidebar-footer {
  display: none !important;
}

.supply-printing .supply-main {
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
}

.supply-print-section {
  background: #ffffff;
  padding: 1.5rem 1.25rem;
}

.supply-print-section .supply-card,
.supply-print-section .supply-transfers-summary,
.supply-print-section .supply-settings-card,
.supply-print-section .supply-report-kpi,
.supply-print-section .supply-inventory-metric-card {
  box-shadow: none !important;
  border-color: rgba(148, 163, 184, 0.6) !important;
}

.supply-print-section .row {
  gap: 1rem;
}

.supply-print-section .supply-card__header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
  .supply-layout {
    position: relative;
  }

  .supply-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    border-radius: 0;
    width: 280px;
    max-width: 85%;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 1040;
  }

  .supply-layout.supply-layout--sidebar-open .supply-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .supply-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1030;
  }

  .supply-layout.supply-layout--sidebar-open .supply-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 991.98px) {
  .supply-inventory-panel {
    position: sticky;
    top: 5rem;
  }
}

@media (max-width: 767.98px) {
  .supply-inventory-panel {
    position: static;
  }

  .supply-inventory-search input {
    padding-inline-start: 2.5rem;
  }

  .supply-detail-hero__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .supply-schedule-item {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .supply-movement-filters {
    justify-content: flex-start;
  }

  .supply-transfers-filter {
    gap: 0.75rem;
  }
}

@media (min-width: 768px) {
  .supply-sidebar-backdrop {
    display: none;
  }
}

/* Sidebar behavior on mobile */
@media (max-width: 767.98px) {
  .finance-layout {
    position: relative;
  }

  .finance-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    border-radius: 0;
    width: 280px;
    max-width: 85%;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 1040;
  }

  .finance-layout.finance-layout--sidebar-open .finance-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .finance-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1030;
  }

  .finance-layout.finance-layout--sidebar-open .finance-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 768px) {
  .finance-sidebar-backdrop {
    display: none;
  }
}

/* تخطيط خاص بلوحة تحكم مكتب الجرحى والمصابين */
.wounded-layout {
  display: flex;
  gap: 1rem;
}

.wounded-sidebar {
  width: 280px;
  flex-shrink: 0;
  min-height: calc(100vh - 5rem);
  position: sticky;
  top: 1rem;
  border-radius: 1rem;
  padding: 1rem;
  color: #e2e8f0;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(251, 191, 36, 0.18), transparent 50%),
    linear-gradient(180deg, #1a0e00, #120b00);
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.wounded-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wounded-brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.wounded-brand__title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.wounded-brand__subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

.wounded-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #cbd5e1;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wounded-sidebar-link:hover {
  background: rgba(251, 191, 36, 0.12);
  color: #e2e8f0;
  transform: translateY(-1px);
}

.wounded-sidebar-link--active {
  background: rgba(251, 191, 36, 0.18);
  color: #e2e8f0;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.wounded-sidebar-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.wounded-main {
  flex: 1;
  min-width: 0;
}

.wounded-topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #e2e8f0;
  background: radial-gradient(900px 400px at 100% 0%, rgba(251, 191, 36, 0.15), transparent 50%),
    linear-gradient(90deg, #1a0e00, #0f0800);
  border: 1px solid rgba(251, 191, 36, 0.15);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.18);
}

.wounded-topbar__title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.wounded-topbar__headline {
  font-weight: 900;
  font-size: 1.05rem;
}

.wounded-topbar__sub {
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.82rem;
}

.wounded-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wounded-icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

@media (max-width: 767.98px) {
  .wounded-layout {
    position: relative;
  }

  .wounded-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    border-radius: 0;
    width: 280px;
    max-width: 85%;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 1040;
  }

  .wounded-layout.wounded-layout--sidebar-open .wounded-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .wounded-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1030;
  }

  .wounded-layout.wounded-layout--sidebar-open .wounded-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 768px) {
  .wounded-sidebar-backdrop {
    display: none;
  }
}

/* تخطيط خاص بلوحة تحكم مكتب الشهداء */
.martyrs-layout {
  display: flex;
  gap: 1rem;
}

.martyrs-sidebar {
  width: 280px;
  flex-shrink: 0;
  min-height: calc(100vh - 5rem);
  position: sticky;
  top: 1rem;
  border-radius: 1rem;
  padding: 1rem;
  color: #e2e8f0;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(239, 68, 68, 0.18), transparent 50%),
    linear-gradient(180deg, #1a0000, #120000);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.martyrs-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.martyrs-brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.martyrs-brand__title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.martyrs-brand__subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

.martyrs-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #cbd5e1;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.martyrs-sidebar-link:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #e2e8f0;
  transform: translateY(-1px);
}

.martyrs-sidebar-link--active {
  background: rgba(239, 68, 68, 0.18);
  color: #e2e8f0;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.martyrs-sidebar-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.martyrs-main {
  flex: 1;
  min-width: 0;
}

.martyrs-topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #e2e8f0;
  background: radial-gradient(900px 400px at 100% 0%, rgba(239, 68, 68, 0.15), transparent 50%),
    linear-gradient(90deg, #1a0000, #0f0000);
  border: 1px solid rgba(239, 68, 68, 0.15);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.18);
}

.martyrs-topbar__title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.martyrs-topbar__headline {
  font-weight: 900;
  font-size: 1.05rem;
}

.martyrs-topbar__sub {
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.82rem;
}

.martyrs-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.martyrs-icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

.martyrs-dashboard-root {
  position: relative;
  min-height: 520px;
}

.martyrs-dashboard-root .martyrs-dashboard-content {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.martyrs-dashboard-root.martyrs-hydrated .martyrs-dashboard-content {
  opacity: 1;
  transform: translateY(0);
}

.martyrs-dashboard-root.martyrs-hydrated .martyrs-skeleton {
  display: none;
}

.martyrs-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.martyrs-skeleton-card,
.martyrs-skeleton-card--lg,
.martyrs-skeleton-chart {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.18);
}

.martyrs-skeleton-card::after,
.martyrs-skeleton-card--lg::after,
.martyrs-skeleton-chart::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  animation: martyrsSkeletonPulse 1.6s ease-in-out infinite;
}

.martyrs-skeleton-card {
  height: 110px;
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.12), rgba(51, 0, 0, 0.18));
}

.martyrs-skeleton-card--lg {
  height: 130px;
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.12), rgba(51, 0, 0, 0.18));
}

.martyrs-skeleton-chart {
  height: 320px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(30, 41, 59, 0.12));
}

@keyframes martyrsSkeletonPulse {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 767.98px) {
  .martyrs-layout {
    position: relative;
  }

  .martyrs-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    border-radius: 0;
    width: 280px;
    max-width: 85%;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 1040;
  }

  .martyrs-layout.martyrs-layout--sidebar-open .martyrs-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .martyrs-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1030;
  }

  .martyrs-layout.martyrs-layout--sidebar-open .martyrs-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 768px) {
  .martyrs-sidebar-backdrop {
    display: none;
  }
}

/* =============================================================
   Supply Action Buttons (Print / Excel Export)
   ============================================================= */
.supply-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.65rem;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.5);
  color: #e2e8f0;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.supply-action-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.6);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

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

.supply-action-btn .bi-printer {
  color: #60a5fa;
}

.supply-action-btn .bi-file-earmark-excel {
  color: #4ade80;
}

/* =============================================================
   Print Report — in-modal preview styles
   ============================================================= */
.rpt-page {
  max-width: 1050px;
  margin: 0 auto;
  padding: 32px 40px;
  background: #fff;
  color: #0f172a;
  font-family: 'Cairo', 'Segoe UI', sans-serif;
}

.rpt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 3px solid #0f172a;
  margin-bottom: 28px;
}

.rpt-header__logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1e40af, #0ea5e9);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
}

.rpt-header__title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}

.rpt-header__sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.rpt-header__meta {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
}

.rpt-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e40af;
  border-right: 4px solid #1e40af;
  padding-right: 10px;
  margin-bottom: 14px;
  margin-top: 28px;
}

.rpt-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.rpt-metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}

.rpt-metric__label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.rpt-metric__value {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.rpt-metric--green { border-top: 3px solid #10b981; }
.rpt-metric--red   { border-top: 3px solid #ef4444; }
.rpt-metric--blue  { border-top: 3px solid #0ea5e9; }
.rpt-metric--amber { border-top: 3px solid #f59e0b; }

.rpt-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rpt-page thead tr {
  background: #0f172a;
  color: #fff;
}

.rpt-page thead th {
  padding: 10px 12px;
  font-weight: 700;
  text-align: right;
}

.rpt-page tbody tr:nth-child(even) {
  background: #f8fafc;
}

.rpt-page tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.badge-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge-critical { background: #fee2e2; color: #b91c1c; }
.badge-low      { background: #fef3c7; color: #92400e; }
.badge-new      { background: #d1fae5; color: #065f46; }
.badge-slow     { background: #e0e7ff; color: #3730a3; }
.badge-stable   { background: #f0fdf4; color: #166534; }
.badge-high     { background: #ecfdf5; color: #059669; }

.rpt-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
}

/* =============================================================
   Supply Low-Stock Alert Panel
   ============================================================= */
.supply-alert-panel {
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.18), rgba(239, 68, 68, 0.12));
  border: 1px solid rgba(239, 68, 68, 0.35);
  overflow: hidden;
}

.supply-alert-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(239, 68, 68, 0.15);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  color: #e2e8f0;
}

.supply-alert-panel__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 260px;
  overflow-y: auto;
}

.supply-alert-item {
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  color: #e2e8f0;
}

.supply-alert-item--critical {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.supply-alert-item--low {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.supply-alert-item__detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.8);
}

.supply-alert-item__reorder {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #86efac;
  font-weight: 600;
}

/* =============================================================
   Supply Notifications Page
   ============================================================= */
.supply-notifications-root {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.supply-notif-card {
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.15s ease;
}

.supply-notif-card:hover {
  background: rgba(30, 41, 59, 0.7);
}

.supply-notif-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.supply-notif-card__icon--danger {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.supply-notif-card__icon--warning {
  background: rgba(234, 179, 8, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.supply-notif-card__icon--info {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.supply-notif-card__body {
  flex: 1;
  min-width: 0;
}

.supply-notif-card__title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.supply-notif-card__desc {
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.9rem;
}

.supply-notif-card__meta {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.7);
  margin-top: 0.35rem;
}

.supply-notif-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(148, 163, 184, 0.7);
}

/* =============================================================
   Hide floating signals FAB on invoice detail page
   ============================================================= */
.invoice-page-container ~ * #signals-fab,
.invoice-page-container ~ #signals-fab {
  display: none !important;
}

body:has(.invoice-page-container) #signals-fab {
  display: none !important;
}

@media print {
  #signals-fab,
  #notifications-popover,
  #global-logo-fixed {
    display: none !important;
  }

  .global-topbar {
    display: flex !important;
    background: #fff !important;
    color: #000 !important;
    border-bottom: 2px solid #0f172a !important;
    padding: 6px 20px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .global-topbar__logo {
    display: inline-block !important;
    height: 40px !important;
    width: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #0f172a !important;
  }

  .global-topbar__brand {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 15px !important;
  }
}

/* =============================================================
   Supply Issue Invoice Detail — Printable Layout
   ============================================================= */
.invoice-page-wrapper {
  position: relative;
  min-height: 100vh;
  padding: 1.5rem;
  background: radial-gradient(1200px 800px at 80% -10%, rgba(59, 130, 246, 0.15), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(14, 165, 233, 0.12), transparent 70%),
    linear-gradient(160deg, #040b14, #071322, #0b172b 85%);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.invoice-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 16px 45px rgba(2, 6, 23, 0.45);
}

.invoice-toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 9999px;
}

.invoice-sheet {
  width: min(900px, 100%);
  margin: 0 auto 2rem;
  padding: 2.5rem;
  border-radius: 1.25rem;
  background: #f9fafb;
  color: #0f172a;
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-family: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", sans-serif;
}

.invoice-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

.invoice-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.invoice-brand__logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(14, 165, 233, 0.45));
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: inset 0 8px 20px rgba(255, 255, 255, 0.35);
}

.invoice-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  color: #0f172a;
}

.invoice-subtitle {
  color: rgba(30, 41, 59, 0.75);
  margin: 0;
  font-size: 0.95rem;
}

.invoice-meta {
  display: grid;
  gap: 0.75rem;
  min-width: 220px;
}

.invoice-meta__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

.invoice-meta__value {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.invoice-information {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.invoice-information__card {
  padding: 1rem 1.25rem;
  border-radius: 0.9rem;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.08);
}

.invoice-information__label {
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.65);
  margin-bottom: 0.35rem;
}

.invoice-information__value {
  font-weight: 700;
  color: #0f172a;
}

.invoice-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.invoice-section-heading h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.invoice-section-heading__subtitle {
  margin: 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
}

.invoice-table-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.12);
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.invoice-table th,
.invoice-table td {
  padding: 0.9rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.92rem;
}

.invoice-table thead th {
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.invoice-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.9);
}

.invoice-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

.invoice-empty {
  padding: 1.5rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.05);
  text-align: center;
  color: rgba(15, 23, 42, 0.6);
}

.invoice-summary {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.invoice-summary__card {
  padding: 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.96));
  color: #e2e8f0;
  box-shadow: 0 18px 40px rgba(30, 64, 175, 0.3);
}

.invoice-summary__label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}

.invoice-summary__value {
  font-size: 1.3rem;
  font-weight: 800;
}

.invoice-signatures {
  margin: 2.5rem 0 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.invoice-signature__label {
  display: block;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.6);
  margin-bottom: 0.6rem;
}

.invoice-signature__line {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.15), rgba(59, 130, 246, 0.4));
  border-radius: 999px;
}

.invoice-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.2);
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .invoice-page-wrapper {
    padding: 1rem;
  }

  .invoice-sheet {
    padding: 1.75rem 1.25rem;
  }

  .invoice-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .invoice-toolbar > div,
  .invoice-toolbar .btn {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  body {
    background: white !important;
  }

  .invoice-page-wrapper,
  .invoice-sheet {
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
    background: white;
    color: #0f172a;
  }

  .invoice-toolbar,
  .supply-layout,
  .supply-sidebar,
  .supply-topbar,
  .supply-main .supply-topbar,
  .breadcrumb,
  .btn,
  .navbar,
  .sidebar,
  .commander-layout,
  .d-print-none {
    display: none !important;
  }

  .invoice-sheet {
    width: auto;
    padding: 2cm;
  }

  .invoice-table th,
  .invoice-table td {
    padding: 0.6rem;
  }

  .invoice-footer {
    font-size: 0.8rem;
  }
}
