/* admin-orders — owned by one agent; see index.html */

/* ================================================================================================
   Payment progress bar (owner request: the old .oh-pay strip on the reservation screen was too
   small/barely visible; it must be eye-catching at a glance). Markup is generated in
   admin-orders.js (bsPayBarBig / bsPayBarSlim) — these rules only style it. Colour states:
   none (grey/red) -> partial (amber) -> full (green). Fill grows from the right because the whole
   page is RTL (dir="rtl" on <html>), so "right" is the reading-start edge.
   ================================================================================================ */

/* -- big bar: reservation detail screen ------------------------------------------------------- */
.bs-pay-wrap { margin: 14px -26px 0; padding: 16px 26px 20px; background: #f8fafc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bs-pay-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.bs-pay-pct { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.bs-pay-state { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: #e2e8f0; color: var(--mut); }

.bs-pay-none .bs-pay-pct { color: var(--red); }
.bs-pay-none .bs-pay-state { background: #fee2e2; color: var(--red); }
.bs-pay-partial .bs-pay-pct { color: var(--amber); }
.bs-pay-partial .bs-pay-state { background: #fef3c7; color: #92400e; }
.bs-pay-full .bs-pay-pct { color: var(--green); }
.bs-pay-full .bs-pay-state { background: #dcfce7; color: #166534; }

.bs-pay-track { position: relative; height: 18px; border-radius: 999px; background: #e2e8f0; box-shadow: inset 0 1px 3px rgba(15, 23, 42, .18); overflow: hidden; }
.bs-pay-fill { position: absolute; inset: 0 0 0 auto; right: 0; height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.22, 1, .36, 1); background: linear-gradient(90deg, #cbd5e1, #94a3b8); }
.bs-pay-none .bs-pay-fill { background: linear-gradient(90deg, #f87171, #dc2626); }
.bs-pay-partial .bs-pay-fill { background: linear-gradient(90deg, #fbbf24, #d97706); }
.bs-pay-full .bs-pay-fill { background: linear-gradient(90deg, #4ade80, #16a34a); }

/* segment ticks at 25/50/75% — small contrasting marks on top of the track */
.bs-pay-ticks { position: absolute; inset: 0; pointer-events: none; }
.bs-pay-ticks i { position: absolute; top: 2px; bottom: 2px; width: 2px; background: rgba(255, 255, 255, .7); border-radius: 1px; }

.bs-pay-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.bs-pay-amounts div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; }
.bs-pay-amounts small { display: block; color: var(--mut); font-size: 11px; margin-bottom: 2px; }
.bs-pay-amounts b { font-size: 14px; font-weight: 700; }

@media (max-width: 640px) {
  .bs-pay-wrap { margin: 14px -16px 0; padding: 14px 16px 16px; }
  .bs-pay-pct { font-size: 20px; }
  .bs-pay-amounts { gap: 6px; }
  .bs-pay-amounts div { padding: 6px 4px; }
  .bs-pay-amounts b { font-size: 12.5px; }
  .bs-pay-amounts small { font-size: 10px; }
}

/* -- slim bar: reservations list rows ("نسبة الدفع" column) ----------------------------------- */
.bs-pay-sm { position: relative; min-width: 72px; height: 14px; border-radius: 999px; background: #e2e8f0; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .15); }
.bs-pay-sm-fill { position: absolute; inset: 0 0 0 auto; right: 0; height: 100%; border-radius: 999px; transition: width .4s ease; background: linear-gradient(90deg, #cbd5e1, #94a3b8); }
.bs-pay-sm.bs-pay-none .bs-pay-sm-fill { background: linear-gradient(90deg, #f87171, #dc2626); }
.bs-pay-sm.bs-pay-partial .bs-pay-sm-fill { background: linear-gradient(90deg, #fbbf24, #d97706); }
.bs-pay-sm.bs-pay-full .bs-pay-sm-fill { background: linear-gradient(90deg, #4ade80, #16a34a); }
.bs-pay-sm span { position: relative; font-size: 10px; font-weight: 800; color: #0f172a; text-shadow: 0 1px 1px rgba(255, 255, 255, .7); }

/* ================================================================================================
   Activity log ("سجل النشاط") — live screen (PAGES.activity override in admin-orders.js, loaded
   after admin-more.js so it replaces the mock-data-only page in server mode). Mobile-first:
   filters stack into one column, the timeline list never needs horizontal scroll.
   ================================================================================================ */
.bs-act-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.bs-act-filters .f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mut); }
.bs-act-filters input, .bs-act-filters select { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-family: inherit; font-size: 13px; }
.bs-act-filters .bs-act-actions { display: flex; gap: 8px; align-items: center; grid-column: 1 / -1; justify-content: flex-start; }

.bs-act-list { display: flex; flex-direction: column; gap: 0; }
.bs-act-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bs-act-row:last-child { border-bottom: 0; }
.bs-act-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--pri); }
.bs-act-body { flex: 1; min-width: 0; }
.bs-act-desc { font-size: 13.5px; line-height: 1.6; }
.bs-act-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 11.5px; color: var(--mut); }

.bs-act-empty, .bs-act-error { text-align: center; color: var(--mut); padding: 40px 10px; }
.bs-act-error { color: var(--red); }
.bs-act-more { display: flex; justify-content: center; padding: 14px 0 4px; }

@media (max-width: 640px) {
  .bs-act-filters { grid-template-columns: 1fr 1fr; }
  .bs-act-row { gap: 8px; }
}

/* shipping-instructions banner: stack on phones so the text keeps its full width (it was squeezed to one word per line) */
@media (max-width:640px){.sbn{flex-wrap:wrap;padding:14px}.sbn-tx{flex:1 1 calc(100% - 70px)}.sbn-btns{width:100%}.sbn-btns .btn,.sbn>.btn{flex:1 1 auto;width:100%}}
