/* ================================================================
   overlay-panels.css — Unified Overlay System v2
   cart | quote | orders — slide-up (mobile) / side-panel (desktop)
================================================================ */

/* ─── Backdrop ─── */
.site-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 20, 55, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  will-change: opacity;
}
.site-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Panel Base — mobile: slide-up sheet ─── */
.side-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 32px rgba(0,60,119,0.18);
  z-index: 3100;
  transform: translateY(105%);/*إخفاء البانل للأسفل قبل الفتح*/
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
  will-change: transform;
}
.side-panel.is-open {
  transform: translateY(0);/*إظهار البانل من الأسفل*/
}

/* ─── Desktop: right side drawer ─── */
@media (min-width: 769px) {
  .side-panel {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 0;
    width: 460px;
    max-width: 460px;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    transform: translateX(110%);/*إخفاء البانل لليمين قبل الفتح*/
  }
  /* RTL: panel slides in from LEFT */
  [dir="rtl"] .side-panel {
    left: 0;
    right: auto;
    transform: translateX(-110%);/*إخفاء البانل لليسار قبل الفتح*/
  }
  .side-panel.is-open {
    transform: translateX(0) !important;/*إظهار البانل*/
  }
}

/* ─── Drag handle (mobile only) ─── */
.side-panel__drag-handle {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: #dde3ed;
  display: block;
  margin: 12px auto 4px;
  flex-shrink: 0;
}
@media (min-width: 769px) {
  .side-panel__drag-handle { display: none; }
}

/* ─── Header ─── */
.side-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid #e8edf5;
  flex-shrink: 0;
  background: #fff;
  gap: 10px;
}
.side-panel__title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.side-panel__title-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eef2f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003c77;
  font-size: 0.92rem;
  flex-shrink: 0;
}
.side-panel__title {
  font-size: 1rem;
  font-weight: 800;
  color: #003c77;
  white-space: nowrap;
}
.side-panel__count-badge {
  background: #6fc282;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}
.side-panel__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #eef2f9;
  color: #667085;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.side-panel__close:hover { background: #003c77; color: #fff; }

/* ─── Scrollable body ─── */
.side-panel__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 18px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.side-panel__body::-webkit-scrollbar { width: 4px; }
.side-panel__body::-webkit-scrollbar-track { background: transparent; }
.side-panel__body::-webkit-scrollbar-thumb { background: #dde3ed; border-radius: 2px; }

/* ─── Footer ─── */
.side-panel__footer {
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e8edf5;
  background: #fff;
  flex-shrink: 0;
}

/* ================================================================
   CART CONTENT
================================================================ */
.panel-cart__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f7;
}
.panel-cart__item:last-child { border-bottom: none; }

.panel-cart__thumb {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 9px;
  border: 1px solid #e8edf5;
  background: #f7f9fc;
  flex-shrink: 0;
}
.panel-cart__info { flex: 1; min-width: 0; }
.panel-cart__name {
  font-size: 0.83rem;
  font-weight: 700;
  color: #003c77;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.panel-cart__sku  { font-size: 0.7rem; color: #9ca3af; margin-bottom: 3px; }
.panel-cart__unit { font-size: 0.78rem; color: #667085; font-weight: 600; }
.panel-cart__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.panel-cart__line-total {
  font-size: 0.86rem;
  font-weight: 800;
  color: #003c77;
  white-space: nowrap;
}

.panel-qty {
  display: flex;
  align-items: center;
  gap: 3px;
}
.panel-qty__btn {
  width: 25px;
  height: 25px;
  border: 1.5px solid #c8d4e8;
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: #003c77;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  line-height: 1;
  padding: 0;
}
.panel-qty__btn:hover { border-color: #003c77; background: #003c77; color: #fff; }
.panel-qty__val {
  min-width: 22px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #003c77;
}

.panel-cart__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #e53935;
  font-size: 0.7rem;
  padding: 0;
  opacity: 0.65;
  transition: opacity 0.18s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 3px;
}
.panel-cart__remove:hover { opacity: 1; }

/* Summary box */
.panel-summary {
  background: #f0f4fa;
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 12px;
}
.panel-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #667085;
  padding: 3px 0;
}
.panel-summary__row.grand {
  font-size: 0.92rem;
  font-weight: 800;
  color: #003c77;
  border-top: 1.5px solid #dde3ed;
  margin-top: 6px;
  padding-top: 9px;
}

/* Buttons */
.panel-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-family: "Cairo", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
  text-decoration: none;
}
.panel-btn--primary { background: #6fc282; color: #fff; }
.panel-btn--primary:hover { background: #5aab6e; }
.panel-btn--secondary {
  background: transparent;
  color: #003c77;
  border: 1.5px solid #dde3ed;
  margin-top: 7px;
  font-size: 0.84rem;
}
.panel-btn--secondary:hover { border-color: #003c77; background: #eef2f9; }

/* ================================================================
   QUOTE CONTENT
================================================================ */
.panel-quote__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f7;
}
.panel-quote__item:last-child { border-bottom: none; }
.panel-quote__thumb {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 9px;
  border: 1px solid #e8edf5;
  background: #f7f9fc;
  flex-shrink: 0;
}
.panel-quote__info { flex: 1; min-width: 0; }
.panel-quote__name {
  font-size: 0.83rem;
  font-weight: 700;
  color: #003c77;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-quote__sku { font-size: 0.7rem; color: #9ca3af; margin-top: 2px; }

.panel-sent-banner {
  background: #e6ffef;
  border: 1px solid #7fd4a0;
  color: #0a5c2a;
  border-radius: 10px;
  padding: 9px 13px;
  text-align: center;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

/* ================================================================
   ORDERS CONTENT
================================================================ */
.panel-orders__filter-bar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f7;
}
.panel-filter-btn {
  padding: 4px 11px;
  border-radius: 20px;
  border: 1.5px solid #dde3ed;
  background: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  color: #003c77;
  font-weight: 600;
  transition: all 0.18s;
  font-family: "Cairo", Arial, sans-serif;
}
.panel-filter-btn.active { background: #003c77; color: #fff; border-color: #003c77; }
.panel-filter-btn:hover:not(.active) { border-color: #003c77; }

.panel-order-card {
  background: #f7f9fc;
  border-radius: 11px;
  padding: 12px 13px;
  margin-bottom: 9px;
  border: 1px solid #e8edf5;
}
.panel-order-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.panel-order-card__id   { font-size: 0.72rem; color: #9ca3af; margin-bottom: 2px; }
.panel-order-card__num  { font-size: 0.88rem; font-weight: 800; color: #003c77; }
.panel-order-card__date { font-size: 0.7rem; color: #9ca3af; margin-top: 2px; }
.panel-order-card__right { text-align: end; flex-shrink: 0; }
.panel-order-card__total { font-weight: 700; font-size: 0.84rem; color: #003c77; margin-top: 5px; }

.panel-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}
.panel-status-badge--completed { background: #e6ffef; color: #0a7a3b; }
.panel-status-badge--cancelled { background: #ffecec; color: #b30000; }
.panel-status-badge--pending   { background: #fff3cd; color: #856404; }

.panel-order-card__items { margin-top: 9px; padding-top: 9px; border-top: 1px solid #e8edf5; }
.panel-order-card__items-label { font-size: 0.7rem; color: #9ca3af; margin-bottom: 5px; }
.panel-order-card__item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 2px 0;
  color: #1a1a2e;
}
.panel-order-card__type-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-inline-start: 4px;
}
.panel-order-card__toggle {
  background: none;
  border: none;
  color: #003c77;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 3px 0 0;
  font-family: "Cairo", Arial, sans-serif;
  font-weight: 600;
}
.panel-order-card__toggle:hover { text-decoration: underline; }

/* ─── Login / empty states ─── */
.panel-order__login-msg,
.panel-order__empty {
  text-align: center;
  padding: 40px 16px;
  color: #667085;
}
.panel-order__login-msg i,
.panel-order__empty i {
  font-size: 2.2rem;
  color: #dde3ed;
  display: block;
  margin-bottom: 11px;
}
.panel-order__login-msg h5,
.panel-order__empty h5 {
  font-size: 0.92rem;
  color: #003c77;
  margin-bottom: 5px;
}
.panel-order__login-msg p,
.panel-order__empty p { font-size: 0.8rem; margin-bottom: 12px; }
.panel-order__login-msg a,
.panel-order__empty a {
  display: inline-block;
  padding: 8px 20px;
  background: #003c77;
  color: #fff;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
}

.panel-empty {
  text-align: center;
  padding: 44px 16px;
  color: #667085;
}
.panel-empty i { font-size: 2.4rem; color: #dde3ed; display: block; margin-bottom: 11px; }
.panel-empty p { font-size: 0.85rem; margin-bottom: 12px; }
.panel-empty a {
  display: inline-block;
  padding: 8px 20px;
  background: #003c77;
  color: #fff;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
}

/* ─── Loading spinner ─── */
.panel-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 16px;
}
.panel-loading::after {
  content: '';
  width: 26px;
  height: 26px;
  border: 3px solid #dde3ed;
  border-top-color: #003c77;
  border-radius: 50%;
  animation: panelSpin 0.55s linear infinite;
}
@keyframes panelSpin { to { transform: rotate(360deg); } }

/* ================================================================
   AUTH PANEL (login + signup tabs)
================================================================ */

/* ─── Tab switcher ─── */
.panel-auth__tabs {
  display: flex;
  border-bottom: 1px solid #e8edf5;
  flex-shrink: 0;
  background: #fafbfd;
}
.panel-auth__tab {
  flex: 1;
  padding: 13px 10px;
  border: none;
  background: none;
  font-family: "Cairo", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.panel-auth__tab.active {
  color: #003c77;
  border-bottom-color: #003c77;
  background: #fff;
}

/* ─── Auth fields shared ─── */
.panel-auth__field {
  margin-bottom: 13px;
}
.panel-auth__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #003c77;
  margin-bottom: 5px;
}
.panel-auth__field-wrap {
  position: relative;
}
.panel-auth__icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.85rem;
  pointer-events: none;
}
[dir="ltr"] .panel-auth__icon { right: auto; left: 12px; }

.panel-auth__field input,
.panel-auth__field select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid #dde3ed;
  border-radius: 10px;
  font-size: 0.86rem;
  font-family: "Cairo", Arial, sans-serif;
  color: #1a1a2e;
  background: #f7f9fc;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  box-sizing: border-box;
}
[dir="ltr"] .panel-auth__field input { padding: 10px 12px 10px 36px; }

.panel-auth__field input:focus,
.panel-auth__field select:focus {
  border-color: #003c77;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,60,119,0.08);
}
.panel-auth__field input.pa-error,
.panel-auth__field select.pa-error { border-color: #e53935; }

.panel-auth__err {
  font-size: 0.72rem;
  color: #e53935;
  margin-top: 3px;
  display: none;
}
.panel-auth__err.show { display: block; }

/* pwd toggle button */
.panel-auth__pwd-toggle {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  line-height: 1;
}
[dir="ltr"] .panel-auth__pwd-toggle { left: auto; right: 10px; }

/* remember + forgot row */
.panel-auth__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.78rem;
}
.panel-auth__remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  cursor: pointer;
}
.panel-auth__remember input { accent-color: #003c77; cursor: pointer; }
.panel-auth__forgot { color: #003c77; font-weight: 600; text-decoration: none; font-size: 0.78rem; }
.panel-auth__forgot:hover { text-decoration: underline; }

/* divider */
.panel-auth__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #9ca3af;
  font-size: 0.75rem;
}
.panel-auth__divider::before,
.panel-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8edf5;
}

/* social buttons */
.panel-auth__social {
  display: flex;
  gap: 9px;
  margin-bottom: 14px;
}
.panel-auth__social-btn {
  flex: 1;
  padding: 9px 10px;
  border: 1.5px solid #dde3ed;
  border-radius: 10px;
  background: #fff;
  font-family: "Cairo", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.18s;
  color: #1a1a2e;
}
.panel-auth__social-btn:hover { background: #f0f4fa; }

/* switch link */
.panel-auth__switch {
  text-align: center;
  font-size: 0.8rem;
  color: #667085;
}
.panel-auth__switch button {
  background: none;
  border: none;
  color: #003c77;
  font-weight: 700;
  cursor: pointer;
  font-family: "Cairo", Arial, sans-serif;
  font-size: 0.8rem;
  padding: 0;
}
.panel-auth__switch button:hover { text-decoration: underline; }

/* alert banners */
.panel-auth__alert {
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.8rem;
  margin-bottom: 12px;
  display: none;
  align-items: center;
  gap: 7px;
}
.panel-auth__alert.show { display: flex; }
.panel-auth__alert--error  { background: #fdecec; color: #c0392b; border: 1px solid #f5b5b5; }
.panel-auth__alert--success { background: #e8f9ee; color: #1a7a3a; border: 1px solid #a3dfb5; }

/* signup: account type tabs */
.panel-signup__type-tabs {
  display: flex;
  gap: 0;
  border: 1.5px solid #dde3ed;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.panel-signup__type-tab {
  flex: 1;
  padding: 9px 10px;
  border: none;
  background: none;
  font-family: "Cairo", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.18s, color 0.18s;
  border-left: 1.5px solid #dde3ed;
}
.panel-signup__type-tab:first-child { border-left: none; }
[dir="ltr"] .panel-signup__type-tab { border-left: none; border-right: 1.5px solid #dde3ed; }
[dir="ltr"] .panel-signup__type-tab:first-child { border-right: none; }
.panel-signup__type-tab.active { background: #003c77; color: #fff; }

/* grid for 2-col signup */
.panel-signup__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.panel-signup__grid .panel-auth__field--full {
  grid-column: 1 / -1;
}

/* section heading inside signup */
.panel-signup__section-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #003c77;
  padding-bottom: 8px;
  border-bottom: 2px solid #003c77;
  margin: 16px 0 12px;
  display: inline-block;
}

/* إخفاء قسم معلومات الشركة عند اختيار حساب شخصي */
.panel-auth__section--hidden { display: none; }

/* نجمة الحقول المطلوبة */
.panel-auth__required { color: #e53935; }

/* password requirements */
.panel-auth__pwd-reqs {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 10px;
}
.panel-auth__pwd-reqs li {
  font-size: 0.72rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}
.panel-auth__pwd-reqs li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dde3ed;
  flex-shrink: 0;
  transition: background 0.18s;
}
.panel-auth__pwd-reqs li.met { color: #0a7a3b; }
.panel-auth__pwd-reqs li.met::before { background: #6fc282; }

/* terms */
.panel-auth__terms {
  font-size: 0.74rem;
  color: #9ca3af;
  text-align: center;
  margin: 10px 0 14px;
  line-height: 1.5;
}
.panel-auth__terms a { color: #003c77; font-weight: 600; text-decoration: none; }
.panel-auth__terms a:hover { text-decoration: underline; }

/* phone wrap */
.panel-auth__phone-wrap {
  display: flex;
  border: 1.5px solid #dde3ed;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f9fc;
  transition: border-color 0.18s;
}
.panel-auth__phone-wrap:focus-within {
  border-color: #003c77;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,60,119,0.08);
}
.panel-auth__phone-country {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-left: 1.5px solid #dde3ed;
  background: #f0f4f8;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
}
[dir="ltr"] .panel-auth__phone-country { border-left: none; border-right: 1.5px solid #dde3ed; }
.panel-auth__phone-country img { width: 20px; height: 13px; object-fit: cover; border-radius: 2px; }
.panel-auth__phone-input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 10px 12px !important;
  font-size: 0.86rem;
  font-family: "Cairo", Arial, sans-serif;
  outline: none;
}

/* whatsapp checkbox */
.panel-auth__whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #667085;
  cursor: pointer;
  padding: 8px 12px;
  border: 1.5px solid #dde3ed;
  border-radius: 10px;
  background: #f7f9fc;
  transition: border-color 0.18s, background 0.18s;
  margin-top: 8px;
}
.panel-auth__whatsapp:hover { border-color: #25d366; background: #f3fef6; }
.panel-auth__whatsapp input { accent-color: #25d366; cursor: pointer; }
.panel-auth__whatsapp i { color: #25d366; }

/* ── Auth panel: wider on desktop (signup has lots of fields) ── */
@media (min-width: 769px) {
  #panelAuth {
    width: 75vw;
    max-width: 75vw;
  }
}

/* ── expand to full page button ── */
.side-panel__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-panel__expand-btn {
  width: 130px;
  height: 40px;
  border-radius: 20px;       
  background: #eef2f9;
  color: #003c77;
  display: inline-flex;       /* inline-flex أنسب للـ <a> داخل flex parent */
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;        /* يمنع كسر النص */
  transition: background 0.2s, color 0.2s;
}
.side-panel__expand-btn:hover { background: #003c77; color: #fff; }

/* ================================================================
   Header split buttons — cart / quote / orders
   "فتح الـ panel" + "عرض الصفحة الكاملة"
================================================================ */
.header__action-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
/* tiny "عرض الصفحة" link below each header action button */
.header__view-page {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  display: none;
  align-items: center;
  gap: 3px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.header__view-page:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.header__view-page i { font-size: 0.52rem; }

/* nav orders split — horizontal */
.nav__item-split {
  display: flex;
  align-items: center;
  gap: .1px;
  height: 100%;
}
.nav__view-page {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  transition: color 0.18s, background 0.18s;
  flex-shrink: 0;
}
.nav__view-page:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* view-page links — desktop only (mobile-first) */
@media (min-width: 769px) {
  .header__view-page,
  .nav__view-page { display: flex; }
}

/* ── page-cart__thumb: حجم الصورة في الصفحة الكاملة (أكبر من البانل) ── */
.page-cart__thumb {
  width: 72px !important;
  height: 72px !important;
}

/* ================================================================
   overlay-panels.css — إضافات v2
   حالات الطلب الصحيحة + عناصر بطاقة الطلب المحدّثة
================================================================ */

/* ── حالات الطلب — OrderStatus enum ── */
.panel-status-badge--pending   { background: #fffbeb; color: #856404; }
.panel-status-badge--accepted  { background: #eff6ff; color: #1d4ed8; }
.panel-status-badge--shipping  { background: #f5f3ff; color: #7c3aed; }
.panel-status-badge--delivered { background: #ecfdf5; color: #0a7a3b; }
.panel-status-badge--rejected  { background: #fef2f2; color: #b91c1c; }

/* إضافة أيقونة للشارة */
.panel-status-badge i { font-size: 0.65rem; }

/* ── صف المنتج داخل بطاقة الطلب (مع صورة) ── */
.panel-order-card__item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed #f1f5f9;
}
.panel-order-card__item-row:last-of-type { border-bottom: none; }

.panel-order-card__item-img {
  width: 36px;
  height: 36px;
  min-width: 36px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #e8edf5;
  background: #f7f9fc;
  flex-shrink: 0;
}

.panel-order-card__item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-order-card__item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #003c77;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-order-card__item-spn {
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: monospace;
}

.panel-order-card__item-qty {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #64748b;
}

.panel-order-card__item-price {
  font-weight: 700;
  color: #003c77;
  font-size: 0.78rem;
}

/* ── رابط "عرض جميع الطلبات" ── */
.panel-order-card__view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  margin-top: 8px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
  font-weight: 700;
  color: #003c77;
  text-decoration: none;
  transition: color 0.15s;
}
.panel-order-card__view-all:hover { color: #0056b3; }
