/* Clients hub (לקוחות) — tabs + status on top of the active-clients screens */
.ch-card-status { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.ch-chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); color: #e2e8f0; }
.ch-chip.warn { background: rgba(234,179,8,0.15); border-color: rgba(234,179,8,0.5); color: #fde68a; }
.ch-chip.gold { background: rgba(212,175,55,0.2); border-color: var(--gold); color: #fde68a; }
.ch-chip.bad { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.5); color: #fca5a5; }
.ch-chip.muted { opacity: 0.6; }
.ch-own-card { border: 1px solid var(--gold) !important; }
.ch-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,0.08); overflow-x: auto; flex-shrink: 0; direction: rtl; }
.ch-tab { background: none; border: none; color: var(--muted); padding: 10px 14px; cursor: pointer; font: inherit; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.ch-tab.active { color: var(--text); border-bottom-color: var(--gold); }
/* sheet-style row (finance look, renderer/finance-sheet.css .sheet-tabs): overflow visible so "עוד ⋯" can open */
.ch-tabs.sheet-tabs { overflow: visible; margin: 8px 0 0; padding: 0 20px; flex-wrap: wrap; }
.ch-panel { flex: 1; overflow-y: auto; padding: 20px; direction: rtl; }
.ch-overview { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ch-box { background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ch-box-title { color: var(--gold); font-weight: 600; }
.ch-sub { color: var(--muted); font-size: 13px; }
.ch-link { align-self: flex-start; margin-top: auto; font-size: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; }
.ch-details-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.ch-details-extra h3, [data-ch-panel="details"] h3 { color: var(--gold); font-size: 16px; margin: 10px 0; }
#vp-timeline-panel.ch-timeline-full { width: 100% !important; max-width: 900px; margin: 0 auto; border-right: none !important; }
.ch-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ch-overlay-box { background: #0b1526; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; width: min(1200px, 100%); height: 92vh; display: flex; flex-direction: column; color: var(--text); }
.ch-overlay-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ch-overlay-head h2 { margin: 0; color: var(--gold); font-size: 17px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-overlay-head { gap: 10px; }
.ch-overlay-body { flex: 1; overflow-y: auto; padding: 16px; }
#vp-timeline-panel .vp-timeline-body { white-space: pre-wrap; }
.ch-ai-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ch-ai-bar .pill, .ch-gold { background: var(--gold); color: #000; border: none; }
.ch-modal-small { height: auto; max-height: 92vh; width: min(760px, 100%); }
.ch-textarea { width: 100%; min-height: 180px; margin: 10px 0; background: rgba(0,0,0,0.25); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 10px; font: inherit; font-size: 13px; }
.ch-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.ch-result .ch-box { margin: 10px 0; }
@media (max-width: 640px) {
  .ch-panel { padding: 12px 16px 90px; }
  .ch-tabs { padding: 0 8px; }
  /* 📱 one swipeable row of tabs instead of 5 wrapped rows (Sharon 16.10) */
  .ch-tabs.sheet-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 8px; }
  .ch-tabs.sheet-tabs::-webkit-scrollbar { display: none; }
  .ch-tabs.sheet-tabs .ch-tab { flex: none; }
}

/* switched-off menu item (calendar) */
.pill.is-off, .mob-nav-item.is-off { opacity: .4; cursor: not-allowed; pointer-events: none; filter: grayscale(1); }

/* 🧩 מה חסר (owner only) + per-package shoot day / Drive / video count */
.ch-audit-banner { direction: rtl; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.4); color: #fecaca; }
.ch-audit-banner details { flex-basis: 100%; }
.ch-audit-banner summary { cursor: pointer; color: #fde68a; }
.ch-missing { grid-column: 1 / -1; margin-bottom: 14px; }
.ch-missing.has { border-color: rgba(239,68,68,0.45); }
.ch-missing.ok { border-color: rgba(34,197,94,0.4); }
.ch-miss-list { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow-y: auto; margin-top: 4px; }
.ch-miss-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,0.03); font-size: 13px; }
.ch-miss-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ch-miss-kind { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(239,68,68,0.2); color: #fca5a5; white-space: nowrap; }
.ch-miss-row.k-mismatch .ch-miss-kind { background: rgba(234,179,8,0.2); color: #fde68a; }
.ch-miss-row.k-stale .ch-miss-kind { background: rgba(59,130,246,0.2); color: #93c5fd; }
.ch-miss-go { font-size: 12px; padding: 3px 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; white-space: nowrap; }
.ch-bad { color: #fca5a5; }
.ch-flash { outline: 2px solid var(--gold) !important; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(212,175,55,0.25) !important; transition: box-shadow .3s; }
.ch-pkg-extra { direction: rtl; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.ch-pkg-extra label { display: flex; align-items: center; gap: 6px; }
.ch-pkg-extra input { background: rgba(0,0,0,0.25); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 13px; }
.ch-pkg-extra .ch-pkg-driveLink { width: 240px; max-width: 60vw; }
.ch-pkg-extra .ch-pkg-videoCount { width: 64px; }
.ch-pkg-extra a { color: #60a5fa; text-decoration: none; }
@media (max-width: 640px) {
  .ch-miss-row { flex-wrap: wrap; }
  .ch-pkg-extra .ch-pkg-driveLink { width: 100%; max-width: none; }
}
/* 🎓 ליווי 1:1 — entry process list over the client grid (renderer/clients-hub.js renderOneOnOneBanner) */
.ch-oo-banner { direction: rtl; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.35); color: #fde68a; }
.ch-oo-banner summary { cursor: pointer; }
.ch-oo-banner .ch-miss-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }

/* Client page centered column on wide screens, empty sides (Sharon 14.10). Scrollbars stay at the edge. */
@media (min-width: 900px) {
  #vp-detail-view { --ch-col: 1100px; --ch-side: max(20px, calc((100% - var(--ch-col)) / 2)); }
  #vp-detail-view > header.workspace-topbar,
  #vp-detail-view > .ch-tabs.sheet-tabs { padding-inline: var(--ch-side); }
  #vp-detail-view .ch-panel,
  #vp-detail-view .vp-videos-panel { padding-inline: var(--ch-side) !important; }
}
