:root {
  --dxc-primary: #374151;
  --dxc-accent: #f4a259;
  --dxc-accent-dark: #e08e3f;
  --dxc-teal: #6b7280;
  --dxc-dark: #1f2937;
  --dxc-light: #f3f4f6;
  --dxc-white: #ffffff;
  --dxc-border: #e5e7eb;
  --dxc-shadow: 0 4px 20px rgba(31, 41, 55, 0.07);
  --dxc-shadow-lg: 0 12px 40px rgba(31, 41, 55, 0.11);
}

html, body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background-color: var(--dxc-light);
  color: #1f2d3d;
}

html.dxc-app,
html.dxc-app body {
  height: 100%;
  overflow: hidden;
}

html.dxc-app body.dxc-sidebar-open {
  overflow: hidden;
}

a { text-decoration: none; }

.bg-brand { background-color: var(--dxc-primary) !important; }
.text-brand { color: var(--dxc-primary) !important; }
.btn-brand { background-color: var(--dxc-accent); color: var(--dxc-dark); border: none; box-shadow: 0 4px 14px rgba(244, 162, 89, 0.35); }
.btn-brand:hover { background-color: var(--dxc-accent-dark); color: var(--dxc-dark); }
.btn-accent { background-color: var(--dxc-primary); color: #fff; border: none; }
.btn-accent:hover { background-color: var(--dxc-dark); color: #fff; }

.brand-mark {
  display: inline-block;
  background: var(--dxc-accent);
  color: var(--dxc-dark);
  font-weight: 800;
  border-radius: 8px;
  padding: 2px 8px;
  margin-left: 6px;
}

.navbar-brand-logo {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25));
}

.footer-brand {
  background: #fff;
  border-top: 1px solid #e6eaf0;
}

/* ===== Landing ===== */
.hero {
  background: linear-gradient(135deg, var(--dxc-primary), var(--dxc-dark));
  color: #fff;
  padding: 90px 0 80px;
}
.hero h1 { font-weight: 800; font-size: 2.5rem; }
.section { padding: 70px 0; }
.section-alt { background: #fff; }
.feature-card, .step-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  box-shadow: 0 6px 24px rgba(13, 59, 102, 0.06);
  border: 1px solid #eef1f6;
}
.icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27, 153, 139, 0.12);
  color: var(--dxc-teal);
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: 14px;
}

/* ===== Dashboard ===== */
.dxc-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.dxc-sidebar {
  width: 268px;
  flex-shrink: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111827 0%, var(--dxc-dark) 45%, #374151 100%);
  color: #d1d5db;
  border-left: 1px solid rgba(255,255,255,.06);
  box-shadow: 4px 0 28px rgba(0,0,0,.14);
  overflow: hidden;
  transition: width .25s ease, min-width .25s ease, opacity .2s ease;
}

@media (min-width: 992px) {
  .dxc-shell.sidebar-collapsed .dxc-sidebar {
    width: 0;
    min-width: 0;
    opacity: 0;
    border: none;
    box-shadow: none;
    pointer-events: none;
  }
}

.dxc-sidebar-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  text-decoration: none;
  color: inherit;
  transition: background .18s;
}
.dxc-sidebar-brand:hover {
  background: rgba(255,255,255,.05);
  color: #fff;
}
.dxc-sidebar-logo-img {
  display: block;
  width: 176px;
  height: 50px;
  object-fit: contain;
  object-position: center;
}
.dxc-sidebar-logo {
  display: none;
}
.dxc-sidebar-brand-text,
.dxc-sidebar-brand-name,
.dxc-sidebar-brand-sub {
  display: none;
}

.dxc-sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 12px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.dxc-sidebar-nav::-webkit-scrollbar { width: 5px; }
.dxc-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}
.dxc-sidebar-nav::-webkit-scrollbar-track { background: transparent; }

.dxc-nav { display: flex; flex-direction: column; gap: 2px; }
.dxc-nav-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 14px 12px 6px;
  margin-top: 4px;
}
.dxc-nav-label:first-child { margin-top: 0; padding-top: 4px; }

.dxc-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  font-weight: 500;
  transition: background .18s, color .18s, transform .15s, box-shadow .18s;
  border: 1px solid transparent;
  text-decoration: none;
}
.dxc-nav-link-text {
  flex: 1 1 auto;
  min-width: 0;
}
.dxc-nav-attention {
  margin-inline-start: auto;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 .4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(239, 68, 68, .35);
}
tr.dxc-row-attention {
  background: #fff7ed !important;
}
tr.dxc-row-attention td:first-child {
  box-shadow: inset 3px 0 0 #ef4444;
}
.dxc-attention-chip {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.4;
  vertical-align: middle;
}
.dxc-deliver-shipment-card.dxc-row-attention {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff7f7 0%, #fff 60%);
  box-shadow: inset -3px 0 0 #ef4444;
}
.dxc-nav-link:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
  transform: translateX(-2px);
}
.dxc-nav-link.active {
  background: linear-gradient(90deg, rgba(244,162,89,.22) 0%, rgba(244,162,89,.08) 100%);
  color: #fff;
  font-weight: 700;
  border-color: rgba(244,162,89,.25);
  box-shadow: inset 3px 0 0 var(--dxc-accent);
}
.dxc-nav-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  font-size: .85rem;
  line-height: 1;
  color: rgba(255,255,255,.75);
}
.dxc-nav-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dxc-nav-link.active .dxc-nav-icon {
  background: rgba(244,162,89,.25);
  color: #fff;
}

.dxc-content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--dxc-light);
}
.dxc-topbar {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dxc-border);
  padding: 12px 24px;
  box-shadow: 0 2px 16px rgba(31, 41, 55, 0.06);
}
.dxc-main {
  flex: 1;
  padding: 24px;
  min-height: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.dxc-support-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.dxc-support-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.dxc-support-banner-text strong {
  font-size: 0.88rem;
}

.dxc-support-banner-btn {
  border: 1px solid #f59e0b;
  background: #fff;
  color: #92400e;
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.dxc-support-banner-btn:hover {
  background: #fef3c7;
}

/* Dashboard pages fill the content area; wide tables scroll inside .table-responsive */
.dxc-main > :is(
  .dxc-list-page,
  .dxc-shipments-page,
  .dxc-dashboard,
  .dxc-reports,
  .dxc-notifications-page,
  .dxc-shipment-dash,
  .dxc-carton-dash,
  .dxc-customer-page,
  .dxc-profile-page,
  .dxc-consignment
) {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.dxc-topbar-start {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dxc-topbar-title {
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dxc-topbar-end {
  flex-shrink: 0;
}

.dxc-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #dde3eb;
  border-radius: 10px;
  background: #fff;
  color: var(--dxc-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  box-shadow: 0 1px 4px rgba(31, 41, 55, 0.08);
}

.dxc-sidebar-toggle:hover {
  background: #f4f7fb;
  border-color: #c5ced9;
}

.dxc-sidebar-backdrop {
  display: none;
}

/* Legacy brand-mark (landing etc.) */
.dxc-sidebar .brand { display: none; }
.dxc-sidebar a:not(.dxc-nav-link) {
  display: flex; align-items: center; gap: 8px;
  color: #cdd8e6; padding: 12px 18px;
}

.stat-card {
  background: #fff; border-radius: 14px; padding: 20px;
  box-shadow: var(--dxc-shadow); border: 1px solid var(--dxc-border);
}
.stat-card .value { font-size: 1.8rem; font-weight: 800; color: var(--dxc-dark); }
.stat-card .label { color: #6b7280; font-size: .9rem; }

.badge-status { font-weight: 600; }

/* ===== Shipment Label (print) — 4×6 inch ===== */
.label-sheet {
  width: 4in;
  min-height: 6in;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #000;
  padding: 0.14in;
}
.label-sheet .label-brand { font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; }
.label-sheet .label-code { font-size: 1.5rem; font-weight: 800; margin: 6px 0; }
.label-sheet .barcode { margin: 10px 0; }
.label-sheet table { width: 100%; font-size: .9rem; }
.label-sheet td { padding: 3px 4px; text-align: right; }
.label-instruction { margin-top: 10px; font-weight: 700; border-top: 1px dashed #000; padding-top: 8px; }

@media (max-width: 991.98px) {
  .dxc-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(31, 41, 55, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .dxc-shell.sidebar-open .dxc-sidebar-backdrop {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .dxc-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    z-index: 1050;
    width: min(288px, 86vw);
    max-width: 100%;
    transform: translateX(100%);
    transition: transform .28s ease, box-shadow .28s ease;
    box-shadow: none;
  }

  .dxc-shell.sidebar-open .dxc-sidebar {
    transform: translateX(0);
    box-shadow: -12px 0 40px rgba(0, 0, 0, .35);
  }

  .dxc-content {
    width: 100%;
    flex: 1 1 100%;
  }

  .dxc-topbar {
    padding: 10px 14px;
  }

  .dxc-main {
    padding: 16px 14px 24px;
  }

  .dxc-main > .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }

  .dxc-main > .d-flex.justify-content-between.align-items-center .btn,
  .dxc-main > .d-flex.justify-content-between.align-items-center .btn-group {
    width: 100%;
  }

  .dxc-main > .d-flex.justify-content-between.align-items-center h4,
  .dxc-main > .d-flex.justify-content-between.align-items-center h3 {
    font-size: 1.05rem;
  }

  .stat-card {
    padding: 14px 12px;
  }

  .stat-card .value {
    font-size: 1.35rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .stat-card .label {
    font-size: .78rem;
    line-height: 1.4;
    margin-top: 4px;
  }

  .dxc-page-panel-head {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
    padding: 16px;
  }

  .dxc-page-panel-title h4 {
    font-size: 1rem;
  }

  .dxc-page-panel-filters {
    padding: 16px;
  }

  .dxc-page-panel-body,
  .dxc-page-panel .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dxc-data-table {
    min-width: 560px;
  }
}

@media (max-width: 575.98px) {
  .dxc-main .row.g-3 > [class*="col-6"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dxc-topbar-title {
    font-size: .85rem;
    max-width: 120px;
  }

  .dxc-topbar-logout .btn {
    padding: 4px 10px;
    font-size: .78rem;
  }

  .stat-card .value {
    font-size: 1.5rem;
  }
}

@media print {
  .no-print, header, footer, .dxc-sidebar, .dxc-topbar { display: none !important; }
  body { background: #fff; }
  .dxc-main { padding: 0; }
  .label-sheet { border: 2px solid #000; box-shadow: none; }
  @page { margin: 10mm; }
}

/* گالری عکس کارتن */
.carton-gallery-viewport {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.carton-gallery-slide {
  display: none;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  padding: 8px;
}
.carton-gallery-slide.is-active { display: block; }
.carton-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(7, 30, 51, 0.75);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.carton-gallery-nav:hover { background: rgba(7, 30, 51, 0.95); }
.carton-gallery-prev { right: 10px; }
.carton-gallery-next { left: 10px; }
.carton-gallery-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
}
.carton-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 2px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.carton-gallery-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #f8f9fa;
  scroll-snap-align: start;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s;
}
.carton-gallery-thumb.is-active {
  border-color: var(--dxc-primary, #0d3b66);
  opacity: 1;
}
.carton-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carton-gallery:focus { outline: none; }
.carton-gallery:focus-visible .carton-gallery-viewport {
  box-shadow: 0 0 0 2px var(--dxc-accent, #f4a259);
}

/* ارسال داخلی — نحوه ارسال و رهگیری */
.dxc-domestic-dispatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 6px;
  font-size: .84rem;
}
.dxc-domestic-dispatch-row-full { flex-direction: column; gap: 2px; }
.dxc-domestic-dispatch-k { color: #64748b; font-weight: 600; min-width: 88px; }
.dxc-domestic-dispatch-v { font-weight: 600; color: #0f172a; }

.tracking-receipt-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}
.tracking-receipt-link { display: inline-block; }
.tracking-receipt-img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  object-fit: contain;
  background: #fff;
}
.carton-tracking-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .85rem;
  color: #166534;
  line-height: 1.6;
}
.carton-tracking-note .text-muted { color: #15803d !important; font-weight: 600; margin-left: 6px; }

/* ===== زنگ اعلان در هدر ===== */
.notification-bell-wrap { position: relative; }
.notification-bell-btn {
  position: relative;
  width: 42px; height: 42px;
  border: none; border-radius: 12px;
  background: linear-gradient(145deg, #f8fafc, #eef2f7);
  box-shadow: 0 2px 8px rgba(13,59,102,.08);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.notification-bell-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13,59,102,.12);
  background: #fff;
}
.notification-bell-btn[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--dxc-accent, #f4a259), #e88b3a);
  box-shadow: 0 6px 20px rgba(244, 162, 89, .35);
}
.notification-bell-btn[aria-expanded="true"] .notification-bell-icon { filter: brightness(10); }
.notification-bell-icon { font-size: 1.15rem; line-height: 1; }
.notification-bell-badge {
  position: absolute; top: -4px; inset-inline-start: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: linear-gradient(135deg, var(--dxc-accent, #f4a259), #e88b3a);
  color: #fff; font-size: .65rem; font-weight: 800;
  border-radius: 999px; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(244, 162, 89, .45);
}
.notification-bell-badge.d-none { display: none !important; }

/* ===== پنل شناور اعلان (کنار زنگ) ===== */
.notification-backdrop {
  position: fixed; inset: 0; z-index: 1040;
  background: rgba(55, 65, 81, 0.15);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.notification-backdrop.is-open { opacity: 1; visibility: visible; }

.notification-panel {
  position: fixed; z-index: 1050;
  width: min(420px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 80px));
  opacity: 0; visibility: hidden;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;
  transition: opacity .28s cubic-bezier(.4,0,.2,1),
              transform .28s cubic-bezier(.4,0,.2,1),
              visibility .28s;
  pointer-events: none;
}
.notification-panel.is-open {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.notification-panel-inner {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(13,59,102,.04),
    0 24px 48px rgba(13,59,102,.14),
    0 0 0 1px rgba(13,59,102,.06);
  display: flex; flex-direction: column;
  max-height: inherit;
}
.notification-panel-glow {
  position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(244,162,89,.35) 0%, transparent 70%);
  pointer-events: none;
}
.notification-panel-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #f0f3f8;
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}
.notification-panel-head-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--dxc-accent, #f4a259), #e88b3a);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(244, 162, 89, .3);
}
.notification-panel-title { font-weight: 800; color: #374151; font-size: .95rem; }
.notification-panel-sub { font-size: .75rem; color: #94a3b8; margin-top: 2px; }
.notification-panel-close {
  width: 32px; height: 32px; border: none; border-radius: 10px;
  background: #f1f5f9; color: #64748b; font-size: 1.25rem; line-height: 1;
  cursor: pointer; transition: background .15s, color .15s;
  display: flex; align-items: center; justify-content: center;
}
.notification-panel-close:hover { background: #e2e8f0; color: var(--dxc-dark); }

.notification-panel-body {
  overflow-y: auto; flex: 1; min-height: 120px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.notification-panel-loading {
  text-align: center; padding: 40px 20px; color: #94a3b8; font-size: .85rem;
}
.notification-panel-item {
  display: flex; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid #f4f6f9;
  transition: background .15s;
}
.notification-panel-item:last-child { border-bottom: none; }
.notification-panel-item.is-unread {
  background: linear-gradient(90deg, rgba(244,162,89,.08) 0%, transparent 100%);
  cursor: pointer;
}
.notification-panel-item.is-unread:hover { background: rgba(244,162,89,.12); }
.notification-panel-item.is-read { opacity: .82; }
.notification-panel-item-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 800;
}
.notification-panel-item.notif-type-air .notification-panel-item-icon { background: #e0f2fe; color: #0369a1; }
.notification-panel-item.notif-type-ship .notification-panel-item-icon { background: #dbeafe; color: #1d4ed8; }
.notification-panel-item.notif-type-track .notification-panel-item-icon { background: #d1fae5; color: #047857; }
.notification-panel-item.notif-type-ok .notification-panel-item-icon { background: #dcfce7; color: #15803d; }
.notification-panel-item.notif-type-warn .notification-panel-item-icon { background: #fef3c7; color: #b45309; }
.notification-panel-item.notif-type-info .notification-panel-item-icon { background: #f1f5f9; color: #475569; }
.notification-panel-item-title { font-size: .82rem; font-weight: 700; color: var(--dxc-dark); line-height: 1.4; }
.notification-panel-item-time { font-size: .68rem; color: #94a3b8; white-space: nowrap; flex-shrink: 0; }
.notification-panel-item-text { font-size: .78rem; color: #64748b; margin: 4px 0 0; line-height: 1.55; }
.notification-panel-empty {
  text-align: center; padding: 48px 24px; color: #94a3b8;
}
.notification-panel-empty-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: #f8fafc; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.notification-panel-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f0f3f8;
  background: #fafbfd;
}
.notification-panel-btn-ghost {
  border: none; background: transparent;
  color: #c2410c; font-size: .78rem; font-weight: 600;
  cursor: pointer; padding: 6px 10px; border-radius: 8px;
  transition: background .15s;
}
.notification-panel-btn-ghost:hover { background: rgba(244, 162, 89, .1); }
.notification-panel-btn-primary {
  font-size: .78rem; font-weight: 700;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--dxc-accent, #f4a259), #e88b3a);
  padding: 8px 16px; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(244, 162, 89, .25);
  transition: transform .15s, box-shadow .15s;
}
.notification-panel-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(244, 162, 89, .35); }

/* ===== صفحه اعلان‌ها — تمام عرض ===== */
.notifications-page-full {
  margin: -24px;
  min-height: calc(100vh - 57px);
  background: #f0f3f8;
}
.notifications-page-hero {
  position: relative; overflow: hidden;
  padding: 36px 32px 32px;
}
.notifications-page-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, #071e33 0%, #0d3b66 45%, #1b998b 100%);
}
.notifications-page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 100%, rgba(244,162,89,.25) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 0%, rgba(255,255,255,.08) 0%, transparent 50%);
}
.notifications-page-hero-content {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px;
}
.notifications-page-kicker {
  display: block; font-size: .7rem; font-weight: 800;
  letter-spacing: .18em; color: rgba(255,255,255,.55); margin-bottom: 6px;
}
.notifications-page-title {
  font-size: 1.75rem; font-weight: 900; color: #fff; margin: 0 0 8px;
}
.notifications-page-desc { color: rgba(255,255,255,.75); font-size: .9rem; margin: 0; max-width: 480px; }
.notifications-page-stats {
  display: flex; gap: 12px; margin-right: auto;
}
.notifications-stat {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 14px 22px;
  text-align: center; min-width: 88px;
}
.notifications-stat-accent {
  background: rgba(244,162,89,.22);
  border-color: rgba(244,162,89,.35);
}
.notifications-stat-num {
  display: block; font-size: 1.5rem; font-weight: 900; color: #fff; line-height: 1.2;
}
.notifications-stat-lbl { font-size: .72rem; color: rgba(255,255,255,.65); }
.notifications-mark-all-btn {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff; font-size: .82rem; font-weight: 600;
  padding: 10px 18px; border-radius: 12px;
  cursor: pointer; backdrop-filter: blur(4px);
  transition: background .15s, border-color .15s;
}
.notifications-mark-all-btn:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
}

.notifications-page-body { padding: 28px 32px 40px; }

.notifications-empty-state {
  text-align: center; padding: 80px 24px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 4px 24px rgba(13,59,102,.06);
  border: 1px solid #e8edf3;
}
.notifications-empty-ring {
  width: 88px; height: 88px; margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8fafc, #eef2f7);
  border: 2px dashed #cbd5e1;
  display: flex; align-items: center; justify-content: center;
}
.notifications-empty-bell { font-size: 2rem; opacity: .7; }
.notifications-empty-state h3 { font-size: 1.15rem; font-weight: 800; color: var(--dxc-dark); margin-bottom: 8px; }
.notifications-empty-state p { color: #94a3b8; margin: 0; font-size: .9rem; }

.notifications-timeline { display: flex; flex-direction: column; gap: 0; }
.notifications-timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 20px;
  position: relative;
}
.notifications-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 48px; bottom: -4px;
  right: 23px; width: 2px;
  background: linear-gradient(180deg, #cbd5e1 0%, transparent 100%);
}
.notifications-timeline-marker { padding-top: 4px; position: relative; z-index: 1; }
.notifications-timeline-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.notif-type-air .notifications-timeline-icon { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0369a1; }
.notif-type-ship .notifications-timeline-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.notif-type-track .notifications-timeline-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }
.notif-type-ok .notifications-timeline-icon { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
.notif-type-warn .notifications-timeline-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.notif-type-info .notifications-timeline-icon { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #475569; }

.notifications-timeline-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  border: 1px solid #e8edf3;
  box-shadow: 0 2px 12px rgba(13,59,102,.04);
  transition: box-shadow .2s, transform .2s;
}
.notifications-timeline-item.is-unread .notifications-timeline-card {
  border-inline-start: 4px solid var(--dxc-accent);
  box-shadow: 0 4px 20px rgba(244,162,89,.12);
}
.notifications-timeline-item.is-read .notifications-timeline-card { opacity: .88; }
.notifications-timeline-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.notifications-timeline-title { font-size: 1rem; font-weight: 800; color: var(--dxc-dark); margin: 0; }
.notifications-timeline-time { font-size: .75rem; color: #94a3b8; white-space: nowrap; }
.notifications-timeline-body { color: #475569; font-size: .9rem; line-height: 1.7; margin: 0 0 12px; }
.notifications-read-btn {
  border: none; background: var(--dxc-primary); color: #fff;
  font-size: .78rem; font-weight: 600;
  padding: 6px 16px; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.notifications-read-btn:hover { background: var(--dxc-dark); }
.notifications-read-badge {
  font-size: .72rem; color: #94a3b8;
  background: #f1f5f9; padding: 4px 10px; border-radius: 6px;
}

@media (max-width: 768px) {
  .notifications-page-full { margin: -24px -12px; }
  .notifications-page-hero { padding: 24px 20px; }
  .notifications-page-body { padding: 20px 16px 32px; }
  .notifications-page-stats { width: 100%; justify-content: flex-start; }
  .notifications-timeline-item { grid-template-columns: 40px 1fr; gap: 0 14px; }
  .notifications-timeline-icon { width: 40px; height: 40px; font-size: .95rem; }
}

/* ===== Admin shipments page ===== */
.dxc-shipments-page,
.dxc-list-page {
  width: 100%;
  text-align: right;
}

.dxc-page-panel {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(13, 59, 102, .04);
  overflow: hidden;
  width: 100%;
}

.dxc-page-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eef1f6;
}

.dxc-page-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dxc-page-panel-title h4 {
  font-weight: 800;
  color: var(--dxc-dark);
}

.dxc-count-chip {
  font-size: .78rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 999px;
}

.dxc-export-btn {
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.dxc-page-panel-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid #eef1f6;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dxc-page-panel-tabs::-webkit-scrollbar { height: 0; }

.dxc-status-tab {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  font-size: .84rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
  margin-bottom: -1px;
}

.dxc-status-tab:hover {
  color: var(--dxc-primary);
}

.dxc-status-tab.active {
  color: var(--dxc-primary);
  border-bottom-color: var(--dxc-primary);
}

.dxc-page-panel-filters {
  padding: 16px 24px;
  background: #fafbfc;
  border-bottom: 1px solid #eef1f6;
}

.dxc-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.9fr 0.9fr auto;
  gap: 12px;
  align-items: end;
}

.dxc-filter-grid-3 {
  grid-template-columns: 1.2fr 1fr 1.2fr auto;
}

.dxc-filter-grid-2 {
  grid-template-columns: 1.2fr 2fr auto;
}

.dxc-row-muted {
  opacity: 0.72;
}

.dxc-row-muted td {
  color: #9ca3af;
}

.dxc-seller-manage-panel {
  margin-bottom: 18px;
}

.dxc-seller-manage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dxc-seller-manage-block {
  padding: 14px 16px;
  border: 1px solid var(--dxc-border, #e5e7eb);
  border-radius: 12px;
  background: #fafbfc;
}

.dxc-seller-manage-block.dxc-seller-manage-danger {
  background: #fef2f2;
  border-color: #fecaca;
}

.dxc-seller-manage-title {
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--dxc-primary, #374151);
}

.dxc-seller-manage-hint {
  font-size: .78rem;
  color: #9ca3af;
  margin: 0 0 10px;
  line-height: 1.5;
}

.dxc-seller-reset-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dxc-seller-reset-fields .form-control {
  flex: 1 1 140px;
  min-width: 120px;
}

@media (max-width: 992px) {
  .dxc-seller-manage-grid {
    grid-template-columns: 1fr;
  }
}

select.dxc-filter-input {
  appearance: auto;
  cursor: pointer;
  text-align: right;
  direction: rtl;
}

.dxc-filter-field {
  min-width: 0;
  overflow: visible;
}

/* فرم‌های ثبت/ویرایش: تراز از بالا تا خطای اعتبارسنجی ستون‌ها را به‌هم نریزد */
.dxc-page-panel-filters form .dxc-filter-grid {
  align-items: start;
}

.dxc-form-validation {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.875rem;
  line-height: 1.5;
}

.dxc-form-validation.validation-summary-errors {
  display: block;
}

.dxc-form-validation ul {
  margin: 0;
  padding-right: 1.15rem;
  padding-left: 0;
}

.dxc-form-validation li {
  margin: 0.15rem 0;
}

.dxc-field-error,
.dxc-filter-field .field-validation-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #b91c1c;
  word-break: break-word;
}

.dxc-filter-field .field-validation-valid {
  display: none;
}

.dxc-filter-grid-3 .dxc-filter-field-full {
  grid-column: 1 / -1;
}

.dxc-page-panel-filters {
  overflow: visible;
  position: relative;
  z-index: 2;
}

.dxc-page-panel-filters-secondary {
  padding-top: 0;
  border-top: 1px dashed #eef1f6;
}

.dxc-page-panel:has(.dxc-searchable-select.is-open) {
  overflow: visible;
  z-index: 20;
}

/* آکاردئون فیلترها — مشترک گزارش و لیست */
.dxc-filters-accordion-panel,
.dxc-report-filters-panel {
  margin-bottom: 16px;
  overflow: visible;
}

.dxc-filters-accordion-panel--embedded {
  margin-bottom: 0;
  border-top: 1px solid #eef1f6;
  border-bottom: 1px solid #eef1f6;
  background: #fff;
}

.dxc-filters-accordion-toggle,
.dxc-report-filters-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: #fff;
  border-bottom: 1px solid #eef1f6;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  color: var(--dxc-dark, #374151);
  cursor: pointer;
}

.dxc-filters-accordion-toggle-label,
.dxc-report-filters-toggle-label {
  flex: 1;
  text-align: right;
}

.dxc-filters-accordion-chevron,
.dxc-report-filters-chevron {
  width: 20px;
  height: 20px;
  stroke: #94a3b8;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
  flex-shrink: 0;
}

.dxc-filters-accordion-chevron.is-open,
.dxc-report-filters-chevron.is-open {
  transform: rotate(180deg);
}

.dxc-filters-accordion-badge,
.dxc-report-filters-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(244, 162, 89, .15);
  color: #c2410c;
  font-size: .68rem;
  font-weight: 700;
}

.dxc-filters-accordion-head,
.dxc-report-filters-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 0;
  background: #fafbfc;
  border-bottom: 1px solid #eef1f6;
}

.dxc-filters-accordion-head-title,
.dxc-report-filters-head-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--dxc-dark, #374151);
}

@media (min-width: 768px) {
  .dxc-filters-accordion-body.collapse,
  .dxc-report-filters-body.collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }

  .dxc-filters-accordion-panel:not(.dxc-filters-accordion-panel--embedded),
  .dxc-report-filters-panel {
    overflow: visible;
  }

  .dxc-filters-accordion-head,
  .dxc-report-filters-head {
    padding-bottom: 0;
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .dxc-filters-accordion-panel--embedded {
    margin: 0;
  }
}

.dxc-filter-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .04em;
  margin-bottom: 5px;
}

.dxc-filter-input,
.dxc-searchable-select-trigger {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-size: .88rem;
  color: #334155;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
  direction: rtl;
  text-align: right;
}

.dxc-filter-input:focus,
.dxc-searchable-select-trigger:focus {
  outline: none;
  border-color: var(--dxc-primary);
  box-shadow: 0 0 0 3px rgba(13, 59, 102, .08);
}

.dxc-filter-input::placeholder {
  color: #b0bac7;
  text-align: right;
  direction: rtl;
}

.dxc-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 1px;
}

.dxc-filter-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

.dxc-filter-actions .btn.btn-sm {
  padding: 0 16px;
  font-size: .875rem;
}

.dxc-page-panel-empty {
  text-align: center;
  padding: 56px 24px;
}

.dxc-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: .5;
}

.dxc-page-panel-foot {
  padding: 14px 24px;
  border-top: 1px solid #eef1f6;
  background: #fafbfc;
}

.dxc-data-table {
  --bs-table-bg: transparent;
  --bs-table-color: inherit;
  margin-bottom: 0;
}

.dxc-data-table thead th {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 11px 20px;
  border: none !important;
  border-bottom: 1px solid #e8edf3 !important;
  white-space: nowrap;
  text-align: right;
  --bs-table-bg: #f8fafc;
  --bs-table-color: #64748b;
}

.dxc-data-table tbody tr {
  transition: background .1s ease;
}

.dxc-data-table tbody tr:hover {
  background: #f8fafc;
}

.dxc-data-table tbody td {
  padding: 13px 20px;
  border-bottom: 1px solid #f1f4f8;
  vertical-align: middle;
  font-size: .88rem;
  text-align: right;
}

.dxc-data-table tbody tr:last-child td {
  border-bottom: none;
}

.dxc-data-table .col-row {
  width: 44px;
  text-align: right;
}

.dxc-data-table .col-action {
  width: 88px;
  text-align: right;
}

.dxc-data-table .dxc-code {
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--dxc-primary);
  font-size: .84rem;
}

.dxc-data-table .dxc-store-name {
  font-weight: 500;
  color: #334155;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dxc-data-table .dxc-num {
  font-weight: 600;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.dxc-data-table .dxc-unit {
  font-weight: 400;
  font-size: .78rem;
  color: #94a3b8;
  margin-inline-start: 3px;
}

.dxc-data-table .dxc-row-action {
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--dxc-primary) !important;
  padding: 4px 12px;
}

.dxc-data-table .dxc-row-action:hover {
  background: #eef4fb !important;
  border-color: #c5d3e3 !important;
}

.dxc-server-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dxc-server-pagination .pagination .page-link {
  border-radius: 8px;
  margin: 0 2px;
  color: var(--dxc-primary);
  border-color: #e2e8f0;
  min-width: 34px;
  text-align: center;
  font-size: .85rem;
}

.dxc-server-pagination .pagination .page-item.active .page-link {
  background: var(--dxc-primary);
  border-color: var(--dxc-primary);
}

.dxc-server-pagination .pagination .page-item.disabled .page-link {
  color: #cbd5e1;
}

.dxc-searchable-select {
  position: relative;
}

.dxc-searchable-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dxc-searchable-select-trigger {
  cursor: pointer;
  text-align: right;
  position: relative;
}

.dxc-searchable-select-trigger::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-top-color: #94a3b8;
  margin-top: 2px;
}

.dxc-searchable-select-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 16px;
}

.dxc-searchable-select-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 2400;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13, 59, 102, .1);
  padding: 8px;
}

.dxc-searchable-select.is-open .dxc-searchable-select-panel:not(.is-floating) {
  display: block;
}

.dxc-searchable-select-panel.is-floating {
  display: block;
  position: fixed;
  z-index: 10050;
}

.dxc-searchable-select-search {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  font-size: .85rem;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  margin-bottom: 6px;
}

.dxc-searchable-select-search:focus {
  outline: none;
  border-color: var(--dxc-primary);
}

.dxc-searchable-select-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.dxc-searchable-select-item {
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: .85rem;
  transition: background .1s ease;
}

.dxc-searchable-select-item:hover,
.dxc-searchable-select-item.is-selected {
  background: #eef4fb;
  color: var(--dxc-primary);
  font-weight: 600;
}

.dxc-searchable-select-empty {
  padding: 10px;
  text-align: center;
  color: #94a3b8;
  font-size: .84rem;
}

.dxc-jalali-date {
  cursor: pointer;
}

@media (max-width: 992px) {
  .dxc-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dxc-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 576px) {
  .dxc-page-panel-head,
  .dxc-page-panel-filters,
  .dxc-page-panel-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dxc-page-panel-tabs {
    padding: 0 16px;
  }

  .dxc-filter-grid {
    grid-template-columns: 1fr;
  }

  .dxc-data-table thead th,
  .dxc-data-table tbody td {
    padding: 10px 14px;
    font-size: .84rem;
  }

  .dxc-server-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .dxc-server-pagination .pagination {
    justify-content: center;
  }
}

/* Shared money field (unit outside input — no overlap) */
.dxc-money-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.dxc-money-field:focus-within {
  border-color: rgba(244, 162, 89, 0.75);
  box-shadow: 0 0 0 3px rgba(244, 162, 89, 0.15);
}

.dxc-money-field input,
.dxc-money-field .dxc-filter-input,
.dxc-money-field .dxc-review-price-input,
.dxc-money-field .dxc-review-final-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  text-align: left;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.dxc-money-unit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  min-width: 28px;
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
}

.dxc-review-final-wrap .dxc-money-unit {
  min-width: 52px;
  padding: 0 12px;
  font-size: .78rem;
}

/* Searchable dropdown (site-wide) */
.dxc-search-select {
  position: relative;
}

.dxc-search-select-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: right;
  cursor: pointer;
  padding: 9px 12px 9px 28px;
  position: relative;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.4;
  min-height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  font-size: .88rem;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.05);
}

.dxc-search-select-trigger::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: 1px;
  border: 5px solid transparent;
  border-top-color: #9ca3af;
  transform: translateY(-25%);
  pointer-events: none;
  transition: transform .15s ease, border-top-color .15s ease;
}

.dxc-search-select.is-open .dxc-search-select-trigger {
  border-color: rgba(244, 162, 89, 0.65);
  box-shadow: 0 0 0 3px rgba(244, 162, 89, 0.12);
}

.dxc-search-select.is-open .dxc-search-select-trigger::after {
  border-top-color: #f4a259;
  transform: translateY(-75%) rotate(180deg);
}

.dxc-search-select.is-disabled .dxc-search-select-trigger {
  background-color: #f9fafb;
  cursor: not-allowed;
  opacity: .75;
}

.dxc-search-select-label {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
}

.dxc-search-select:not(.has-value) .dxc-search-select-label {
  color: #9ca3af;
}

.dxc-search-select-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid rgba(244, 162, 89, 0.45);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.14);
  padding: 8px;
}

.dxc-search-select-panel.is-floating {
  display: block;
  position: fixed;
  z-index: 10050;
}

.dxc-search-select-search {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  margin-bottom: 6px;
  font-size: .84rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  background: #fff;
}

.dxc-search-select-search:focus {
  outline: none;
  border-color: rgba(244, 162, 89, 0.75);
  box-shadow: 0 0 0 3px rgba(244, 162, 89, 0.15);
}

.dxc-search-select-list {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.dxc-search-select-option {
  display: block;
  width: 100%;
  text-align: right;
  border: none;
  background: transparent;
  padding: 9px 10px;
  font-size: .84rem;
  color: #374151;
  cursor: pointer;
  border-radius: 7px;
}

.dxc-search-select-option:hover,
.dxc-search-select-option.is-selected {
  background: rgba(244, 162, 89, 0.1);
  color: #374151;
}

.dxc-search-select-empty {
  padding: 12px;
  font-size: .8rem;
  color: #9ca3af;
  text-align: center;
}

/* Shared confirm dialog */
#dxcConfirmModal {
  z-index: 1060;
}

.dxc-confirm-modal {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(127, 29, 29, 0.18);
}

.dxc-confirm-body {
  padding: 28px 24px 12px;
  text-align: center;
}

.dxc-confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.dxc-confirm-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #991b1b;
  margin: 0 0 8px;
}

.dxc-confirm-message {
  margin: 0;
  font-size: .88rem;
  line-height: 1.7;
  color: #6b7280;
  white-space: pre-line;
}

.dxc-confirm-footer {
  background: transparent;
  border-top: none;
  padding: 12px 20px 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dxc-confirm-ok-btn,
.dxc-confirm-danger-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
  cursor: pointer;
  transition: filter .15s ease;
}

.dxc-confirm-ok-btn:hover,
.dxc-confirm-danger-btn:hover {
  filter: brightness(1.05);
}

/* Shared image dropzone (_ImageDropzone) */
.dxc-img-dropzone {
  position: relative;
  min-height: 118px;
  border-radius: 14px;
  border: 1.5px dashed #cbd5e1;
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.dxc-img-dropzone--wide {
  min-height: 156px;
}

.dxc-img-dropzone:hover,
.dxc-img-dropzone.is-drag {
  border-color: #0d9488;
  background: rgba(13, 148, 136, 0.06);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.dxc-img-dropzone.has-image {
  border-style: solid;
  border-color: #e2e8f0;
  min-height: 180px;
}

.dxc-img-dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  width: 100%;
  height: 100%;
  font-size: 0;
}

.dxc-img-dropzone-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem;
  text-align: center;
  pointer-events: none;
}

.dxc-img-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.35rem;
  border-radius: 14px;
  background: #fff;
  color: #0d9488;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.dxc-img-dropzone-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.dxc-img-dropzone-hint {
  font-size: 0.75rem;
  color: #64748b;
}

.dxc-img-dropzone-preview {
  position: absolute;
  inset: 0;
}

.dxc-img-dropzone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dxc-img-dropzone-clear {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dxc-img-dropzone-clear:hover {
  background: #dc2626;
}

