/* «راسل» — the WhatsApp inbox (rasel*.js), 2026-11-22 */
.rs-ban { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 10px; border-radius: var(--bo-r); font-size: var(--bo-fs-sm); background: var(--bo-surface-2); border: 1px solid var(--bo-line); }
.rs-ban--off { background: #f4f5f7; }
.rs-ban--test { background: #fff7e6; border-color: #f3d39a; }
.rs-ban--bad { background: #fdecec; border-color: #f2b8b8; color: #8a1f1f; }
/* outline icons: without fill:none every Lucide path painted as a black blob (member 2026-11-26) */
.rs-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rs { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; gap: 10px; height: calc(100vh - 190px); min-height: 480px; }
.rs-side, .rs-main, .rs-cust { background: var(--bo-surface); border: 1px solid var(--bo-line); border-radius: var(--bo-r-lg); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.rs-boxes { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--bo-line); flex-wrap: wrap; }
.rs-box { border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; cursor: pointer; font: inherit; font-size: var(--bo-fs-sm); color: var(--bo-ink-2); transition: background .15s; }
.rs-box:hover { background: var(--bo-surface-2); }
.rs-box.on { background: var(--bo-dark); color: #fff; }
.rs-box i:not(:empty) { font-style: normal; background: var(--bo-orange); color: #231a08; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-inline-start: 4px; }
.rs-find { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--bo-line); }
.rs-find input { flex: 1; min-width: 0; }
.rs-find select { width: 110px; }
.rs-find input, .rs-find select { min-height: 38px; border: 1px solid var(--bo-line); border-radius: 10px; background-color: #fff; }
.rs-list { overflow-y: auto; flex: 1; }
.rs-item { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: start; border: 0; border-bottom: 1px solid var(--bo-line); background: transparent; padding: 10px 12px; cursor: pointer; font: inherit; transition: background .15s; }
.rs-item:hover { background: var(--bo-surface-2); }
.rs-item.on { background: #eef4ff; box-shadow: inset -3px 0 0 var(--bo-blue); }
.rs-item__top { display: flex; justify-content: space-between; gap: 8px; }
.rs-item__top small { color: var(--bo-muted); white-space: nowrap; }
.rs-item--unread b { font-weight: 900; }
.rs-item__mid { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: var(--bo-fs-xs); color: var(--bo-muted); }
.rs-item__last { display: flex; justify-content: space-between; gap: 6px; font-size: var(--bo-fs-sm); color: var(--bo-ink-2); overflow: hidden; }
.rs-chip { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--bo-surface-2); border: 1px solid var(--bo-line); color: var(--bo-ink-2); white-space: nowrap; }
.rs-chip--ok { background: #e8f6ee; border-color: #b6e0c6; color: #17663a; }
.rs-chip--new { background: #fff3e0; border-color: #f5cf95; color: #8a5a00; }
.rs-dot { font-style: normal; background: #1f9d55; color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 11px; padding: 0 5px; flex: none; }
.rs-empty, .rs-muted { color: var(--bo-muted); font-size: var(--bo-fs-sm); }
.rs-empty { padding: 20px; text-align: center; }
.rs-bad { color: var(--bo-red); }
.rs-note { font-size: var(--bo-fs-sm); color: var(--bo-ink-2); background: var(--bo-surface-2); padding: 8px 10px; border-radius: var(--bo-r); margin: 0 0 10px; }

.rs-hello { margin: auto; text-align: center; color: var(--bo-muted); }
.rs-hello .rs-ic { width: 40px; height: 40px; }
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--bo-line); flex-wrap: wrap; }
.rs-head__ops { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }
.rs-head__ops .btn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rs-head__ops .btn .rs-ic { width: 14px; height: 14px; }
.rs-head__top { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px; }
.rs-back { display: none; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--bo-surface-2, #f1f3f2); color: var(--bo-ink); place-items: center; cursor: pointer; transition: background .15s; }
.rs-back:hover, .rs-back:focus-visible { background: #e3e8e5; }
.rs-back .rs-ic { width: 20px; height: 20px; }
.rs-tocust { display: none; flex: none; align-items: center; gap: 4px; font: inherit; font-size: var(--bo-fs-sm); border: 1px solid var(--bo-line); background: var(--bo-surface); color: var(--bo-ink-2); border-radius: 999px; padding: 6px 10px; cursor: pointer; transition: background .15s; }
.rs-tocust:hover, .rs-tocust:focus-visible { background: #eef6f1; border-color: #1d6b4f; color: #1d6b4f; }
.rs-msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
  background: #efeae2 radial-gradient(circle at 1px 1px, rgba(0, 0, 0, .035) 1px, transparent 0) 0 0 / 18px 18px; }
.rs-older { align-self: center; }
/* RTL page: flex-start is the right edge. Ours (out) on the right, the customer (in) on the left (member 2026-11-26) */
.rs-msg { max-width: min(72%, 560px); display: flex; flex-direction: column; gap: 2px; }
.rs-msg--out { align-self: flex-start; }
.rs-msg--in { align-self: flex-end; }
.rs-msg__b { padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 1.5px rgba(0, 0, 0, .08); white-space: pre-wrap; word-break: break-word; line-height: 1.65; }
.rs-msg--out .rs-msg__b { background: #d9fdd3; border-start-start-radius: 4px; }
.rs-msg--in .rs-msg__b { border-start-end-radius: 4px; }
.rs-msg__h { font-size: 11px; font-weight: 700; color: #1d6b4f; padding-inline: 6px; display: flex; align-items: center; gap: 4px; }
.rs-msg__h .rs-ic { width: 12px; height: 12px; }
.rs-msg--note { align-self: center; max-width: min(84%, 640px); width: 100%; }
.rs-msg--note .rs-msg__b { background: #fff4b8; border: 1px solid #f0d76a; border-radius: 10px; color: #4a3b00; }
.rs-msg--note .rs-msg__h { color: #8a6d00; }
.rs-msg small { font-size: 11px; color: #667781; padding-inline: 6px; }
.rs-msg--out small { text-align: start; }
.rs-msg--in small { text-align: end; }
.rs-sys { align-self: center; font-size: 11.5px; color: #54656f; background: rgba(255, 255, 255, .85); border-radius: 8px; padding: 3px 10px; max-width: 80%; text-align: center; }
.rs-sys small { color: #8696a0; margin-inline-start: 4px; }
.rs-day { align-self: center; position: sticky; top: 0; z-index: 1; margin: 6px 0; }
.rs-day span { font-size: 11.5px; background: #fff; color: #54656f; padding: 4px 12px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.rs-compose { border-top: 1px solid var(--bo-line); padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 8px; background: var(--bo-surface); }
.rs-compose textarea { width: 100%; resize: vertical; min-height: 60px; font: inherit; }
.rs-compose--note textarea { background: #fffbe0; border-color: #f0d76a; }
/* composer 2026-11-26: slim bar (reply/note + tools), then field + round send */
.rs-cbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.rs-ctools { display: flex; gap: 4px; margin-inline-start: auto; }
.rs-tool { font: inherit; font-size: var(--bo-fs-sm); display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--bo-line); background: var(--bo-surface); color: var(--bo-ink-2); border-radius: 999px; padding: 4px 10px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.rs-tool .rs-ic { width: 13px; height: 13px; }
.rs-tool:hover, .rs-tool:focus-visible { background: #eef6f1; border-color: #1d6b4f; color: #1d6b4f; }
.rs-cin { display: flex; align-items: flex-end; gap: 8px; }
.rs-compose .rs-cin textarea { flex: 1; min-width: 0; width: auto; resize: none; min-height: 44px; max-height: 160px; overflow-y: auto; border: 1px solid var(--bo-line); border-radius: 22px; padding: 10px 14px; line-height: 1.5; background: #fff; transition: border-color .15s, box-shadow .15s; }
.rs-compose .rs-cin textarea:focus { outline: none; border-color: #1d6b4f; box-shadow: 0 0 0 3px rgba(29, 107, 79, .14); }
.rs-compose--note .rs-cin textarea { background: #fffbe0; border-color: #f0d76a; }
.rs-compose--note .rs-cin textarea:focus { border-color: #e0bd25; box-shadow: 0 0 0 3px rgba(224, 189, 37, .2); }
.rs-sendb { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #1d6b4f; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px rgba(29, 107, 79, .3); transition: background .15s, transform .15s, opacity .15s; }
.rs-sendb:hover, .rs-sendb:focus-visible { background: #15563f; }
.rs-sendb:active { transform: scale(.94); }
.rs-sendb:disabled { opacity: .55; cursor: default; }
.rs-sendb .rs-ic { width: 20px; height: 20px; }
[dir="rtl"] .rs-sendb .rs-ic { transform: scaleX(-1); }
.rs-compose--note .rs-sendb { background: #e0bd25; color: #4a3b00; box-shadow: 0 2px 6px rgba(224, 189, 37, .35); }
.rs-compose--note .rs-sendb .rs-ic { transform: none; }
.rs-note--tpl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rs-note--tpl .btn { display: inline-flex; align-items: center; gap: 4px; }
.rs-ctabs { display: flex; gap: 4px; }
.rs-ctab { font: inherit; font-size: var(--bo-fs-sm); border: 1px solid var(--bo-line); background: var(--bo-surface); color: var(--bo-ink-2); border-radius: 999px; padding: 4px 12px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; transition: background .15s, border-color .15s; }
.rs-ctab .rs-ic { width: 13px; height: 13px; }
.rs-ctab.on { background: #1d6b4f; border-color: #1d6b4f; color: #fff; }
.rs-ctab--note.on { background: #f5d547; border-color: #e0bd25; color: #4a3b00; }
.rs-compose .rs-note { margin: 0; }
.rs-av { width: 38px; height: 38px; border-radius: 50%; background: #dfe9e4; color: #1d6b4f; display: grid; place-items: center; font-weight: 800; flex: none; }
.rs-head__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rs-head__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; }
.rs-head__who small { color: var(--bo-muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rs-assign { display: inline-flex; align-items: center; gap: 4px; }
.rs-assign select { max-width: 210px; text-overflow: ellipsis; }
.rs-compose__btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }

.rs-cust { padding: 12px; overflow-y: auto; gap: 10px; }
.rs-cust__name { font-weight: 900; font-size: var(--bo-fs-md); }
.rs-cust__ops { display: flex; gap: 6px; flex-wrap: wrap; }
.rs-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rs-plist li { border: 1px solid var(--bo-line); border-radius: var(--bo-r); padding: 6px 8px; font-size: var(--bo-fs-sm); }
.rs-pick { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.rs-pick button { width: 100%; text-align: start; border: 0; border-bottom: 1px solid var(--bo-line); background: transparent; padding: 8px; cursor: pointer; font: inherit; display: flex; flex-direction: column; }
.rs-pick button:hover { background: var(--bo-surface-2); }
.rs-prev { white-space: pre-wrap; background: #dcf3d6; border-radius: 10px; padding: 8px 10px; font-size: var(--bo-fs-sm); }

.rs-dlg { width: min(560px, 94vw); }
.rs-dlg--wide { width: min(920px, 96vw); }
.rs-f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.rs-f > span { font-weight: 700; font-size: var(--bo-fs-sm); }
.rs-f--row { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.rs-dlg__f { display: grid; gap: 8px; }
.rs-row { display: flex; gap: 6px; }
.rs-row select { flex: 1; min-width: 0; }
.rs-log { max-height: 60vh; overflow: auto; }

.rs-ccard__m { display: block; color: var(--bo-ink-2); padding-inline-start: 8px; border-inline-start: 2px solid var(--bo-line); margin-top: 2px; }
.rs-ccard__m--out { border-color: #8fd18b; }

/* the chat column is narrow on a laptop too (list + chat + customer side by side): short labels there as well */
.rs-main { container-type: inline-size; }
@container (max-width: 520px) {
  .rs-hsm { display: none; }
  .rs-head__top { flex-basis: 100%; }
  .rs-head__ops { width: 100%; margin: 0; flex-wrap: nowrap; }
  .rs-head__ops .rs-assign { flex: 1; min-width: 0; }
  .rs-head__ops .rs-assign select { max-width: none; width: 100%; }
}
.rs-topbtns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rs-topbtns .btn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
@media (max-width: 1200px) { .rs { grid-template-columns: 300px minmax(0, 1fr); } .rs-cust { display: none; scroll-margin-top: 8px; } .rs--open .rs-cust { display: flex; grid-column: 1 / -1; } .rs--open .rs-tocust { display: inline-flex; } }
@media (max-width: 760px) {
  .rs { grid-template-columns: 1fr; height: auto; }
  .rs-main { display: none; }
  .rs--open .rs-side { display: none; }
  /* the chat fills the screen: header on top, messages scroll inside, the reply box stays at the bottom;
     the customer file follows below (the «العميل» button jumps to it) */
  .rs--open .rs-main { display: flex; height: calc(100dvh - 16px); min-height: 420px; scroll-margin-top: 8px; }
  .rs-back { display: inline-grid; }
  .rs-msg { max-width: 86%; }
  .rs-msgs { padding: 12px 10px; }
  .rs-head { padding: 8px 10px; gap: 8px; }
  .rs-head__top { flex-basis: 100%; gap: 8px; }
  .rs-head__ops { width: 100%; margin: 0; flex-wrap: nowrap; justify-content: stretch; }
  .rs-head__ops .rs-assign { flex: 1; min-width: 0; }
  .rs-head__ops .rs-assign select { max-width: none; width: 100%; min-height: 36px; }
  .rs-head__ops .btn { flex: none; min-height: 36px; }
  .rs-hsm { display: none; }
  .rs-compose { padding: 6px 8px 8px; gap: 6px; }
  .rs-compose .rs-cin textarea { font-size: 16px; } /* 16px keeps iPhone from zooming in on focus */
  .rs-tool, .rs-ctab { padding: 5px 10px; }
  .rs-find { flex-wrap: wrap; }
  .rs-find input { flex: 1 1 100%; font-size: 16px; }
  .rs-find select { flex: 1 1 0; width: auto; min-width: 0; }
  /* the page's top buttons: one row that slides sideways instead of three stacked rows */
  .top__act:has(.rs-topbtns) { flex: 1 1 100%; min-width: 0; }
  .rs-topbtns { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rs-topbtns::-webkit-scrollbar { display: none; }
  .rs-topbtns .btn { flex: none; font-size: 13px; }
}

/* the AI part of a conversation (rasel-ai.js), 2026-11-23 */
.rsa { border-top: 1px solid var(--bo-line); margin-top: 10px; padding-top: 10px; }
.rsa h4 { margin: 0 0 6px; }
.rsa-hint { font-size: var(--bo-fs-xs); }
.rsa-q, .rsa-a { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--bo-line); border-radius: var(--bo-r); background: var(--bo-surface-2); font-size: var(--bo-fs-sm); }
.rsa-q__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.rsa-q__h bdi { white-space: nowrap; font-weight: 600; }
.rsa-q ul, .rsa-a ul, .rsa-full ul { margin: 2px 0 6px; padding-inline-start: 18px; }
.rsa-ok li::marker { color: #1f9d55; }
.rsa-miss li { color: #8a5a00; }
.rsa-note li { color: var(--bo-ink-2); font-style: italic; }
.rsa-dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 6px 0; }
.rsa-dl dt { color: var(--bo-muted); }
.rsa-dl dd { margin: 0; }
.rsa-bar { display: inline-block; width: 70px; height: 6px; border-radius: 999px; background: var(--bo-line); vertical-align: middle; overflow: hidden; }
.rsa-bar i { display: block; height: 100%; background: var(--bo-blue); }
.rsa-full { max-height: 65vh; overflow-y: auto; font-size: var(--bo-fs-sm); min-width: min(560px, 80vw); }
.rsa-full h4 { margin: 12px 0 4px; }
.rsa-reply { margin: 4px 0; padding: 8px 10px; border-inline-start: 3px solid var(--bo-blue); background: #eef4ff; border-radius: var(--bo-r); white-space: pre-wrap; }
.rsa-ins__f { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.rsa-t { width: 100%; border-collapse: collapse; font-size: var(--bo-fs-sm); }
.rsa-t th, .rsa-t td { padding: 6px 8px; border-bottom: 1px solid var(--bo-line); text-align: start; vertical-align: top; }
.rsa-t__more td { background: var(--bo-surface-2); font-size: var(--bo-fs-xs); }

/* live assistant, tabs, list badges, quick filters, 360 and the board (rasel-live.js / rasel-board.js), 2026-11-23 */
.rs-quick { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 8px; }
.rs-qk { font: inherit; font-size: var(--bo-fs-xs); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--bo-line); background: var(--bo-surface); color: var(--bo-ink-2); cursor: pointer; transition: background .15s, border-color .15s; }
.rs-qk:hover { border-color: var(--bo-blue); }
.rs-qk.on { background: var(--bo-blue); border-color: var(--bo-blue); color: #fff; }
.rs-qk i { font-style: normal; font-weight: 700; }
.rs-qk i:empty { display: none; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rs-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; line-height: 1.5; padding: 0 7px; border-radius: 999px; background: var(--bo-surface-2); border: 1px solid var(--bo-line); color: var(--bo-ink-2); white-space: nowrap; }
.rs-tag .rs-ic { width: 11px; height: 11px; }
.rs-tag--ok { background: #e8f6ee; border-color: #b6e0c6; color: #17663a; }
.rs-tag--warn { background: #fff3e0; border-color: #f5cf95; color: #8a5a00; }
.rs-tag--bad { background: #fdecec; border-color: #f2b8b8; color: #a3202a; }
.rs-tag--wait { background: #eef4ff; border-color: #c7d8f8; color: #1d4f9c; }
.rs-tag--late { background: #fdecec; border-color: #f2b8b8; color: #a3202a; font-weight: 600; }

.rs-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--bo-line); margin: -4px -4px 0; position: sticky; top: -12px; background: var(--bo-surface); z-index: 1; }
.rs-tab { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 4px; font: inherit; font-size: var(--bo-fs-sm); padding: 8px 4px; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--bo-ink-2); cursor: pointer; transition: color .15s, border-color .15s; }
.rs-tab:hover { color: var(--bo-ink); }
.rs-tab.on { color: var(--bo-blue); border-bottom-color: var(--bo-blue); font-weight: 600; }
.rs-tab .rs-ic { width: 14px; height: 14px; }
.rs-pane { display: flex; flex-direction: column; gap: 8px; }
.rs-pane[hidden] { display: none; }

.rsl { display: flex; flex-direction: column; gap: 6px; font-size: var(--bo-fs-sm); }
.rsl-head { display: flex; flex-wrap: wrap; gap: 4px; }
.rsl-cmp { border: 1px solid #f2b8b8; background: #fdf3f3; border-radius: var(--bo-r); padding: 8px 10px; }
.rsl-cmp b { display: flex; align-items: center; gap: 4px; color: #a3202a; }
.rsl-cmp p { margin: 4px 0 0; }
.rsl-cmp q { display: block; margin-top: 4px; color: var(--bo-ink-2); font-style: italic; }
.rsl-sum { margin: 0; line-height: 1.7; }
.rsl-h { margin: 6px 0 2px; font-size: var(--bo-fs-sm); }
.rsl-h--do { color: #17663a; } .rsl-h--dont { color: #a3202a; } .rsl-h--show { color: #1d4f9c; }
.rsl-l, .rsl-l--do, .rsl-l--dont, .rsl-l--show { margin: 0; padding-inline-start: 18px; line-height: 1.7; }
.rsl-l--do li::marker { color: #1f9d55; } .rsl-l--dont li::marker { color: #d0353f; } .rsl-l--show li::marker { color: #2f6fd6; }
.rsl-next, .rsl-opp, .rsl-risk { margin: 4px 0 0; padding: 6px 8px; border-radius: var(--bo-r); }
.rsl-next { background: var(--bo-surface-2); }
.rsl-opp { background: #e8f6ee; } .rsl-risk { background: #fff3e0; }
.rsl-ops { align-items: center; border-top: 1px solid var(--bo-line); padding-top: 8px; }
.rsl-vote { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; color: var(--bo-muted); }
.rsl-360 { border-top: 1px solid var(--bo-line); margin-top: 8px; padding-top: 8px; font-size: var(--bo-fs-sm); }
.rsl-360 h5 { margin: 8px 0 2px; }
.rsl-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.rsl-kpis span { display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--bo-line); border-radius: var(--bo-r); background: var(--bo-surface-2); font-size: var(--bo-fs-xs); color: var(--bo-muted); }
.rsl-kpis b { font-size: var(--bo-fs-md, 15px); color: var(--bo-ink); }
.rsl-kpi--bad b { color: #a3202a; }
.rsl-als { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.rsl-al { padding: 4px 8px; border-radius: var(--bo-r); background: #eef4ff; }
.rsl-al--warn { background: #fff3e0; }
.rsl-pay { display: block; color: var(--bo-ink-2); }

.rs-dlg--board { width: min(1120px, 96vw); }
.rsb-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.rsb-top h3 { margin: 0; }
.rsb-top .rs-row { flex-wrap: wrap; align-items: center; }
.rsb { max-height: 72vh; overflow-y: auto; font-size: var(--bo-fs-sm); }
.rsb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin-bottom: 10px; }
.rsb-k { padding: 10px; border: 1px solid var(--bo-line); border-radius: var(--bo-r-lg, 10px); background: var(--bo-surface-2); display: flex; flex-direction: column; gap: 2px; }
.rsb-k b { font-size: 20px; color: var(--bo-ink); }
.rsb-k span { color: var(--bo-muted); font-size: var(--bo-fs-xs); }
.rsb-k--ok b { color: #17663a; } .rsb-k--warn b { color: #8a5a00; } .rsb-k--bad b { color: #a3202a; }
.rsb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.rsb-s { border: 1px solid var(--bo-line); border-radius: var(--bo-r-lg, 10px); padding: 10px 12px; margin-bottom: 10px; min-width: 0; }
.rsb-s h4 { margin: 0 0 6px; }
.rsb-tw { overflow-x: auto; }
.rsb-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rsb-bars li { display: grid; grid-template-columns: minmax(80px, 38%) 1fr auto; align-items: center; gap: 8px; }
.rsb-bars i { height: 8px; border-radius: 999px; background: var(--bo-line); position: relative; overflow: hidden; }
.rsb-bars i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--bo-blue); border-radius: inherit; }
.rsb-hours { display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; gap: 2px; height: 70px; direction: ltr; }
.rsb-hours i { height: max(2px, var(--h)); background: var(--bo-blue); border-radius: 2px 2px 0 0; opacity: .8; }
.rsb-hours__x { display: flex; justify-content: space-between; direction: ltr; font-size: 10px; color: var(--bo-muted); }
.rsb-sum { border: 1px solid #c7d8f8; background: #f4f8ff; border-radius: var(--bo-r-lg, 10px); padding: 10px 12px; margin-bottom: 10px; font-size: var(--bo-fs-sm); }
.rsb-sum ul { margin: 2px 0 6px; padding-inline-start: 18px; }
/* owner's sending switch (2026-11-26) */
.rs-sw--off { color: #475467; }
.rs-sw--test { color: #9a6700; }
.rs-sw-now { padding: 8px 12px; border-radius: 8px; border: 1px solid #e4e7ec; background: #f8f9fb; display: flex; gap: 6px; align-items: center; }
.rs-sw-now.rs-sw--test { background: #fff7e6; border-color: #f3d39a; }
.rs-sw-now.rs-sw--live { background: #fef2f2; border-color: #fecaca; color: #b42318; }
.rs-sw-opt { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; }
/* media in a message (2026-11-26) */
.rs-media { display: block; max-width: 100%; border-radius: 8px; margin-block-end: 4px; }
.rs-media--img { max-height: 260px; object-fit: contain; background: #f1f3f2; cursor: zoom-in; }
.rs-media--stk { width: 120px; height: 120px; object-fit: contain; }
.rs-media--aud { width: 260px; max-width: 100%; height: 36px; }
.rs-media--vid { max-height: 260px; background: #000; }
.rs-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #d9e1dd; border-radius: 8px; background: #f7faf8; color: inherit; text-decoration: none; margin-block-end: 4px; }
.rs-file:hover { background: #eef4f0; }
.rs-file span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-file small { color: #6b7570; direction: ltr; }
.rs-read { font-size: .86em; background: rgba(0, 0, 0, .04); border-inline-start: 3px solid #7a9c8c; padding: 4px 8px; border-radius: 4px; margin-block: 4px; white-space: pre-wrap; }
.rs-read--bad { border-color: #c98a3c; color: #8a5a1c; }
.rs-readbtn { font: inherit; font-size: .82em; border: 0; background: none; color: #2f6b55; cursor: pointer; padding: 2px 0; text-decoration: underline; }
.rs-readbtn:disabled { opacity: .6; cursor: default; }
/* employee tools in the customer tab (2026-11-26) */
.rs-tools { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line, #e5e7eb); display: grid; gap: 8px; }
.rs-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#rpOut { display: grid; gap: 6px; margin-top: 8px; }

/* «المشرف الذكي» (2026-11-26) */
.rs-chip--bad { background: #fde8ea; color: #a3202a; }
.rsv-h { margin: 16px 0 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.rsv-c { border: 1px solid var(--bo-line); border-radius: var(--bo-r-lg, 10px); padding: 12px; margin-block-end: 12px; background: var(--bo-surface); }
.rsv-c > header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-block-end: 8px; }
.rsv-c > header .rs-row { margin-inline-start: auto; }
.rsv-c .rsb-kpis { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.rsv-sum { margin: 8px 0; line-height: 1.7; }
.rsv-sc { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.rsv-sc li { display: grid; grid-template-columns: 130px 1fr 48px; gap: 8px; align-items: center; font-size: var(--bo-fs-sm); }
.rsv-sc i { height: 8px; border-radius: 4px; background: var(--bo-surface-2); position: relative; overflow: hidden; }
.rsv-sc i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: #8a96a8; border-radius: 4px; }
.rsv-sc li.is-ok i::after { background: #1f9d55; } .rsv-sc li.is-mid i::after { background: #d99a00; } .rsv-sc li.is-bad i::after { background: #d0353f; }
.rsv-sc b { text-align: end; }
.rsv-l { padding-inline-start: 18px; margin: 4px 0 8px; display: grid; gap: 8px; }
.rsv-q { margin: 4px 0 0; padding: 6px 10px; border-inline-start: 3px solid var(--bo-line); background: var(--bo-surface-2); border-radius: 6px; font-size: var(--bo-fs-sm); color: var(--bo-ink); }
@media (max-width: 600px) { .rsv-sc li { grid-template-columns: 96px 1fr 40px; } }

/* ---- customer file in the conversation (2026-11-26): everything about the customer, details in popups ---- */
.rf { display: grid; gap: 12px; }
.rf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rf-head .rs-cust__name { font-size: 15px; font-weight: 700; }
.rf-ico { border: 0; background: transparent; color: var(--muted, #64748b); cursor: pointer; padding: 4px; border-radius: 6px; }
.rf-ico:hover { background: #f1f5f9; color: #0f172a; }
/* customer actions: an even 2-column grid instead of buttons of every width (2026-11-26) */
.rf-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rf-acts .btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; min-width: 0; min-height: 38px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.rf-acts .btn .rs-ic { color: #1d6b4f; }
.rf-acts .btn--p .rs-ic { color: inherit; }
.rf-acts .rf-paused { grid-column: 1 / -1; }
@media (min-width: 761px) and (max-width: 1200px) { .rf-acts { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.rf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.rf-tile { display: grid; gap: 2px; text-align: start; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s; }
button.rf-tile:hover { border-color: #94a3b8; box-shadow: 0 2px 6px rgba(15, 23, 42, .06); }
div.rf-tile { cursor: default; }
.rf-tile b { font-size: 16px; font-variant-numeric: tabular-nums; }
.rf-tile span { font-size: 11.5px; color: #64748b; }
.rf-tile--ok { border-color: #bbf7d0; background: #f0fdf4; }
.rf-tile--ok b { color: #15803d; }
.rf-tile--bad { border-color: #fecaca; background: #fef2f2; }
.rf-tile--bad b { color: #b91c1c; }
.rf-tile--warn { border-color: #fde68a; background: #fffbeb; }
.rf-tile--warn b { color: #b45309; }
.rf-sec h5 { margin: 0 0 6px; font-size: 12.5px; color: #475569; display: flex; justify-content: space-between; align-items: center; }
.rf-sec h5 a { font-weight: 400; font-size: 12px; }
.rf-list { display: grid; gap: 4px; }
.rf-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 7px 9px; border: 1px solid #eef2f7; border-radius: 8px; background: #fff; font-size: 12.5px; text-align: start; width: 100%; font: inherit; }
.rf-row small { color: #64748b; grid-column: 1 / -1; }
.rf-click { cursor: pointer; transition: background .15s, border-color .15s; }
.rf-click:hover { background: #f8fafc; border-color: #cbd5e1; }
.rf-list--big .rf-row { padding: 10px 12px; font-size: 13.5px; }
.rf-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.rf-dl dt { color: #64748b; }
.rf-dl dd { margin: 0; }
.rf-tw { overflow-x: auto; }
.rf-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rf-t th, .rf-t td { padding: 6px 8px; border-bottom: 1px solid #eef2f7; text-align: start; vertical-align: top; }
.rf-t th { color: #64748b; font-weight: 600; background: #f8fafc; }
.rf-po { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.rf-po > div:first-child { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; }
.rs-chip--warn { background: #fef3c7; color: #92400e; }

/* owner board 2026-11-26: what needs action first, then demand by country / kind, then staff */
.rsb-h { margin: 18px 0 8px; font-size: 15px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.rsb-h small { font-weight: 400; font-size: 12px; }
.rsb-kpis--top { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rsb-k--big { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line, #e5e7eb); background: #fff; display: flex; flex-direction: column; gap: 2px; }
.rsb-k--big b { font-size: 26px; line-height: 1.1; }
.rsb-k--big span { font-size: 13px; color: #374151; }
.rsb-k--big small { font-size: 11.5px; color: #6b7280; }
.rsb-k--bad { background: #fef2f2; border-color: #fecaca; } .rsb-k--bad b { color: #b91c1c; }
.rsb-k--warn { background: #fffbeb; border-color: #fde68a; } .rsb-k--warn b { color: #b45309; }
.rsb-k--ok { background: #f0fdf4; border-color: #bbf7d0; } .rsb-k--ok b { color: #15803d; }
.rsb-grid--2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.rsb-sub { grid-column: 1 / -1; margin-top: -2px; color: #6b7280; font-size: 11.5px; padding-inline-start: 2px; }
.rsb-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.rsb-chips li { background: #f3f4f6; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; }
.rsb-tw { overflow-x: auto; }
.rsb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; margin-inline-end: 4px; }
.rsb-dot.on { background: #16a34a; }
.rsb-more { margin-top: 14px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 8px 12px; background: #fff; }
.rsb-more summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.rsb-owner { border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 12px; padding: 12px 14px; }
.rsb-sws { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin: 8px 0; }
.rsb-sw { display: flex; gap: 8px; align-items: flex-start; background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.rsb-sw span { display: flex; flex-direction: column; } .rsb-sw small { color: #6b7280; font-size: 11.5px; }
.rf-paused { opacity: .6; border-style: dashed; }
.rf-paused small { font-size: 11px; color: #b45309; }
/* «اقترح برنامج» (ذكاء الوجهات) */
.rsp-lock { margin: 0 0 8px; padding: 6px 10px; border-radius: var(--bo-r); background: #fff7ed; color: #9a3412; font-size: var(--bo-fs-sm); }
.rsp-req { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--bo-line); border-radius: var(--bo-r); background: var(--bo-surface-2); }
.rsp-req .rs-chip { display: inline-block; margin: 2px 0; }
.rsp-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.rsp-c { padding: 3px 8px; border-radius: 999px; font-size: 12px; border: 1px solid; }
.rsp-c.is-ok { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.rsp-c.is-bad { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.rsp-days { display: grid; gap: 6px; max-height: 52vh; overflow: auto; }
.rsp-day { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--bo-line); }
.rsp-day ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.rsp-day__n { font-size: 13px; }
.rsp-k { display: inline-block; min-width: 44px; padding: 1px 6px; border-radius: 6px; background: #eef2f7; font-size: 11.5px; text-align: center; }
.rsp-k--HOTEL { background: #e0f2fe; } .rsp-k--TOUR { background: #dcfce7; } .rsp-k--FLIGHT { background: #ede9fe; } .rsp-k--FREE { background: #f3f4f6; }
.rsp-asked { font-size: 11px; color: #166534; font-weight: 600; }
.rsp-sug { font-size: 11px; color: #6b7280; }
.rsp-qs ul { margin: 2px 0 6px; padding-inline-start: 18px; }
.rsp-said p { margin: 4px 0; font-size: var(--bo-fs-sm); color: #4b5563; white-space: pre-wrap; }
@media (max-width: 560px) { .rsp-day { grid-template-columns: 1fr; gap: 2px; } }

/* «راسل» ops: canned replies, close reason, classification, shift end, Rasel boxes, customer tools */
.rs-inp { width: 100%; box-sizing: border-box; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; padding: 8px 10px; font: inherit; background: #fff; }
.rs-inp:focus { outline: 2px solid #93c5fd; outline-offset: 1px; }
.rs-canned__list { max-height: 52vh; overflow: auto; margin: 10px 0; display: grid; gap: 6px; }
.rs-canned__item { text-align: start; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; padding: 8px 10px; background: #fff; cursor: pointer; font: inherit; transition: background .15s, border-color .15s; }
.rs-canned__item:hover, .rs-canned__item:focus-visible { background: #f0f9ff; border-color: #7dd3fc; }
.rs-canned__item small { display: block; color: var(--muted, #64748b); white-space: pre-wrap; margin-top: 2px; }
.rs-close textarea { margin: 8px 0; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.rs-chips button { border: 1px solid var(--line, #e5e7eb); background: #fff; border-radius: 999px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: var(--bo-fs-sm, 13px); }
.rs-chips button:hover { background: #f1f5f9; }
.rs-class__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; max-height: 56vh; overflow: auto; margin: 10px 0; }
.rs-class__g { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 8px 10px; }
.rs-class__g h5 { margin: 0 0 6px; font-size: var(--bo-fs-sm, 13px); }
.rs-class__g label { display: flex; gap: 6px; align-items: center; padding: 2px 0; cursor: pointer; }
.rs-shift__list { max-height: 56vh; overflow: auto; display: grid; gap: 8px; margin: 10px 0; }
.rs-shift__row { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.rs-shift__row label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.rs-shift__last { font-size: var(--bo-fs-sm, 13px); color: var(--muted, #64748b); }
.rs-shift .muted, .rs-class .muted, .rs-close .muted { color: var(--muted, #64748b); font-size: var(--bo-fs-sm, 13px); }
.rt-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rt-q { width: 100%; box-sizing: border-box; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; padding: 8px 10px; margin: 6px 0 10px; font: inherit; }
.rt-frame { margin-top: 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; overflow: hidden; background: #f8fafc; }
.rt-frame iframe { width: 100%; height: 70vh; border: 0; background: #fff; display: block; }
.rt-pp { min-height: 200px; display: grid; place-items: center; background: #f8fafc; border-radius: 10px; padding: 8px; }
.rt-pp img { max-width: 100%; max-height: 72vh; border-radius: 6px; }
.rt-pp iframe { width: 100%; height: 72vh; border: 0; }
.rs-rbox { width: 100%; margin-top: 6px; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; padding: 6px 8px; font: inherit; background: #fff; }
.rs-punch { display: inline-flex; align-items: center; gap: 6px; }
