/*
 * outbound.css: Ask an agent to call (outbound calls, 9 Oct 2026). Only what the
 * existing parts don't have: the drawer reuses Create service case's cs-* (customers.css),
 * the notice reuses the alert Issue box (al-issue, calls.css), tags reuse cl-alert-tag,
 * chips reuse hm-chip. Colours only from tokens.css. Logical properties for the Arabic pass.
 */

/* ---------- the drawer ---------- */
.ob-fixed {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.ob-fixed__text {
  font-weight: 500;
  color: var(--ag-ink);
}
.ob-fixed__change {
  margin-inline-start: auto;
}
.ob-fixed__lock {
  display: inline-flex;
  margin-inline-start: auto;
  color: var(--ag-muted);
}
.ob-agent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ob-agent__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ag-ink);
}
.ob-agent .ag-chip {
  flex: none;
}
.ob-search {
  width: 100%;
}
.ob-search .cv-search__input {
  width: 100%;
  height: 42px;
  padding-inline-start: 36px;
}
.ob-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 10px;
  border: 1px solid var(--ag-line);
  background: var(--ag-card);
}
.ob-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: start;
  font-size: 14px;
  color: var(--ag-ink);
}
.ob-result:hover,
.ob-result:focus-visible {
  background: var(--ag-hover);
}
.ob-result__name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ob-result__num {
  grid-column: 2;
  grid-row: 1;
  font-size: 12.5px;
  color: var(--ag-muted);
}
.ob-result__last {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--ag-muted);
}
.ob-results__none {
  padding: 10px;
  font-size: 13.5px;
  color: var(--ag-muted);
}
.ob-about {
  min-height: 88px;
}
.ob-about__foot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ob-about__foot .cs-help:first-child {
  flex: 1;
}
.ob-count {
  flex: none;
  font-variant-numeric: tabular-nums;
}
.ob-sched {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: -8px;
}
.ob-sched__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.ob-tries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--ag-ink);
}
.cs-case .select-trigger.ob-mini {
  width: auto;
  min-width: 76px;
  height: 36px;
}
/* the notice on top: the alert Issue box; red (asked not to be called), amber (already booked), plain (no agent) */
.ob-notice {
  margin: 0;
}
.ob-notice--amber {
  border-color: color-mix(in srgb, var(--ag-test) 45%, var(--ag-line));
}
.ob-notice--plain {
  border-color: var(--ag-line);
}
.ob-notice__text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ag-ink);
}
.ob-notice__line {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ag-muted);
}
.ob-notice .cl-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13.5px;
}

/* ---------- tags and chips ---------- */
.cl-alert-tag.ob-tag--amber::before {
  background: var(--ag-test);
}
.cl-alert-tag.ob-tag--amber {
  color: var(--ag-note-ink);
}
.hm-chip.ob-chip--red {
  gap: 6px;
  background: color-mix(in srgb, var(--ag-red) 10%, transparent);
  border-color: transparent;
  color: var(--ag-red);
}
.ob-chip__clear {
  margin-inline-start: 6px;
  font-size: 13px;
}
/* the direction word beside the arrow: "↗ Out", "↙ In" */
.ob-dir {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.ob-dir__word {
  font-size: 12.5px;
  color: var(--ag-muted);
}

/* ---------- Live calls: the second line under the customer, the Scheduled tab ---------- */
.ob-by {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ag-muted);
}
.ob-about-cell {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ob-row--struck td:not(:last-child) {
  text-decoration: line-through;
  color: var(--ag-muted);
}
.ob-sched-none {
  padding: 40px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--ag-muted);
}

/* ---------- Customer 360 Overview: Booked calls; Home rows: Call back + Mark as called back ---------- */
.ag-well.ob-booked {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 16px;
  text-align: start;
}
.ob-booked__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--ag-ink);
}
.ob-booked__acts {
  display: flex;
  gap: 12px;
}
.ob-rowacts {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.ob-rowacts .ag-btn {
  gap: 6px;
}
.ob-booked__text .cl-alert-tag {
  display: inline-flex;
  margin: 0 0 0 0;
  margin-inline-start: 8px;
  vertical-align: middle;
}
.ob-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ag-ink-2);
}

/* narrow screens: the drawer takes the whole width */
@media (max-width: 900px) {
  .drawer.ob-drawer {
    max-width: none;
    width: 100%;
  }
  .ob-sched__row {
    grid-template-columns: 1fr;
  }
}

/* Customer 360's call rows: a try nobody answered, with tries left, in amber */
.vw-rrow3__status.ob-status--amber {
  color: var(--ag-note-ink);
}
.vw-rrow3__dot--noanswer {
  background: var(--ag-test);
}
.cl-outcome__dot--noanswer,
.cl-outcome__dot--busy,
.cl-outcome__dot--voicemail {
  background: var(--ag-test);
}

/* Security & data › Calling hours: the sentence with two time selects */
.sc-hours .select-trigger.ob-mini {
  width: auto;
  min-width: 96px;
}

/* Agent › Actions › Callback request: Who calls back */
.ob-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ob-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ag-ink);
  cursor: pointer;
}
.ob-radio.is-off {
  color: var(--ag-muted);
  cursor: default;
}
.ob-radio__sub {
  padding-inline-start: 26px;
}
.ob-radio__sub .select-trigger {
  width: 100%;
}
.ob-says {
  margin: 0;
}

/* Agent › Test: a third choice (Test call to my phone) takes its own row */
.ts-modes > .ts-mode:nth-child(3):last-child {
  grid-column: 1 / -1;
}

/* a button with an icon (Call a customer): the icon keeps its gap */
.ag-btn.ob-btn {
  gap: 6px;
}

/* ---------- Scheduled calls (10 Oct 2026): Conversations › Scheduled calls and an agent's Conversations tab ----------
   The table fits the page: the customer's number goes under the name, About wraps to two lines,
   Cancel and ⋮ stay in view at the end. */
.ob-table td {
  white-space: normal;
}
.ob-caller {
  color: var(--ag-ink);
  font-weight: 500;
}
.ob-agentname {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ag-ink);
  font-weight: 500;
}
.ob-nowrap {
  white-space: nowrap;
}
.ob-table .ob-about-cell {
  max-width: 320px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}
.ob-table .cl-alert-tag {
  margin-top: 6px;
}
.ob-table th.ob-actcell,
.ob-table td.ob-actcell {
  width: 1%;
  white-space: nowrap;
  text-align: end;
}
.ob-cancel {
  font-size: 14px;
}
/* the call list's Scheduled tab (10 Oct 2026): a thin divider before it (calls not made yet) */
.cl-tabsep {
  align-self: center;
  width: 1px;
  height: 18px;
  margin-inline: 8px;
  background: var(--ag-line);
}
.cl-card [data-sched] .cl-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ag-line);
}
.cl-card [data-sched] .cl-frame {
  margin: 0;
}
.cl-card [data-sched] .cv-table th:first-child,
.cl-card [data-sched] .cv-table td:first-child {
  padding-inline-start: 24px;
}
.cl-card [data-sched] .cv-table th:last-child,
.cl-card [data-sched] .cv-table td:last-child {
  padding-inline-end: 16px;
}
