/* agent workspace, right panel (design V5 parity) */
/* Çalışma alanı, the column next to the call box: Main "Müşteri kartı" (inbound), Temsilci-Giden(-Onizleme) "Arama
   adımları" + "Aranan kayıt" (outbound), Temsilci-Durum (no call). Sizes and colours are the boards' own values.
   The column fills the viewport under the 64px header like the 1440×900 boards; longer content scrolls inside.
   Its width changes with the page's third column, so the narrow layouts follow the column (container queries). */
.ws2-side { flex: 1 1 auto; min-width: 0; min-height: 0; max-height: calc(100vh - 96px); display: flex; flex-direction: column;
  gap: 16px; line-height: normal; container: ws2side / inline-size; }
.ws2-muted { font-size: 12.5px; color: var(--muted); }
.ws2-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }

/* ----------------------------------------------------------------- customer card (Main) */
.ws2-card { flex: 1 1 auto; min-width: 0; min-height: 0; box-sizing: border-box; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; display: flex; flex-direction: column; }
.ws2-top { padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line-soft); }
.ws2-who { display: flex; align-items: center; gap: 14px; }
.ws2-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--p-eaf1fb); color: var(--blue); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ws2-avatar.out { background: var(--p-fff1e6); color: var(--i-a1470d); }
.ws2-avatar svg.i { width: 20px; height: 20px; }
.ws2-who-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex-grow: 1; }
.ws2-who-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ws2-who h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums; }
.ws2-sub { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
/* the design's "Numarayla eşleşti": we have no customer records, so a neutral "Kayıtlı müşteri yok" */
.ws2-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px;
  font-weight: 600; white-space: nowrap; flex-shrink: 0; background: var(--p-f1f3ee); color: var(--text-2); }
.ws2-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ws2-btn { height: 34px; padding: 0 12px; border: 1px solid var(--p-e0e0e0); border-radius: 10px; background: var(--card); font-family: inherit;
  font-size: 12.5px; color: var(--text); cursor: pointer; white-space: nowrap; }
.ws2-btn:hover:not(:disabled) { background: var(--p-fafafa); }
.ws2-btn.lg { height: 36px; padding: 0 14px; font-size: 13px; }
.ws2-btn.primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-weight: 600; }
.ws2-btn.primary:hover:not(:disabled) { background: var(--f-a7db2e); }
.ws2-btn:disabled { color: var(--i-a8a8a8); background: var(--p-fafafa); border-color: var(--p-ececec); cursor: not-allowed; }

.ws2-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ws2-tile { padding: 10px 12px; border-radius: 12px; background: var(--p-f4f7fc); border: 1px solid var(--p-dfe7f4); display: flex; flex-direction: column;
  gap: 3px; min-width: 0; }
.ws2-tile span { font-size: 11.5px; color: var(--text-2); }
.ws2-tile b { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums; }
.ws2-warn { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--p-fff8ea);
  border: 1px solid var(--p-f1ddae); font-size: 13px; color: var(--i-5c3d06); }
.ws2-warn svg.i { color: var(--amber-ink); margin-top: 1px; }

.ws2-body { flex: 1 1 auto; min-height: 0; display: flex; }
.ws2-col { width: 50%; box-sizing: border-box; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  min-height: 0; }
.ws2-col:first-child { border-right: 1px solid var(--line-soft); }
.ws2-h3row { display: flex; align-items: center; gap: 8px; }
.ws2-h3row h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); flex-grow: 1; }
.ws2-h3row span { font-size: 12px; color: var(--muted); }
.ws2-rec + .ws2-h3row { margin-top: 4px; }
.ws2-rec { border: 1px solid var(--p-ececec); border-radius: 12px; padding: 12px 14px; }
.ws2-rec.ws2-empty { font-size: 12.5px; color: var(--muted); }

.ws2-foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ws2-plan { border: 1px solid var(--p-ececec); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ws2-plan label, .ws2-plan-f { display: flex; flex-direction: column; gap: 5px; }
.ws2-plan label span, .ws2-plan-f > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.ws2-plan-actions { display: flex; gap: 8px; }
.ws2-input { height: 36px; box-sizing: border-box; border: 1px solid var(--p-e0e0e0); border-radius: 10px; padding: 0 10px; font-family: inherit;
  font-size: 13px; color: var(--ink); background: var(--card); width: 100%; }
.ws2-input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }

/* Temas geçmişi */
.ws2-tl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ws2-tl > li { display: flex; gap: 12px; }
.ws2-tl > li.ws2-tl-none { display: block; padding: 0 0 14px; font-size: 13px; color: var(--muted); }
.ws2-rail { width: 14px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.ws2-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; flex-shrink: 0; }
.ws2-line { width: 2px; flex-grow: 1; background: var(--p-ededed); margin-top: 4px; }
.ws2-tl-body { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; min-width: 0; }
.ws2-tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ws2-tl-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; box-sizing: border-box; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--p-e4e6e1); font-size: 11.5px; color: var(--text); white-space: nowrap; }
.ws2-tl-pill b { font-weight: 600; }
.ws2-tl-when { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ws2-tl-text { font-size: 13px; line-height: 19px; color: var(--ink); overflow-wrap: anywhere; }
.ws2-tl-meta { font-size: 12px; color: var(--muted); }

/* ----------------------------------------------------------------- outbound (Temsilci-Giden): steps and the called record */
.ws2-stepsbox { flex-shrink: 0; box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px; }
.ws2-stepper { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ws2-stepper > li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ws2-stepbar { height: 5px; border-radius: 999px; background: var(--p-e6e6e6); }
.ws2-steplabel { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--i-8a8a8a); white-space: nowrap; }
.ws2-stepno { width: 18px; height: 18px; border-radius: 50%; background: var(--p-efefef); color: var(--i-8a8a8a); font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ws2-stepsub { font-size: 11.5px; line-height: 15px; color: var(--muted); }
.ws2-stepper > li.done .ws2-stepbar, .ws2-stepper > li.done .ws2-stepno { background: var(--green); }
.ws2-stepper > li.done .ws2-steplabel { color: var(--text); }
.ws2-stepper > li.now .ws2-stepbar, .ws2-stepper > li.now .ws2-stepno { background: var(--amber); }
.ws2-stepper > li.now .ws2-steplabel { color: var(--i-7a4e08); font-weight: 700; }
.ws2-stepper > li.fail .ws2-stepbar, .ws2-stepper > li.fail .ws2-stepno { background: var(--red); }
.ws2-stepper > li.fail .ws2-steplabel { color: var(--red-ink); font-weight: 600; }
.ws2-stepper > li:is(.done, .now, .fail) .ws2-stepno { color: var(--on-fill); }

.ws2-card.ws2-out { padding: 18px 20px; gap: 14px; }
.ws2-out .ws2-who { gap: 12px; }
.ws2-out .ws2-avatar { width: 42px; height: 42px; font-size: 14px; }
.ws2-out .ws2-who-text { gap: 2px; }
.ws2-out .ws2-who-line { gap: 8px; }
.ws2-out .ws2-who h2 { font-size: 18px; }
.ws2-out .ws2-scroll { gap: 14px; }
.ws2-why { flex-shrink: 0; padding: 12px 14px; border-radius: 12px; background: var(--p-fff8ea); border: 1px solid var(--p-f1ddae); display: flex;
  flex-direction: column; gap: 4px; }
.ws2-why span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber-ink); }
.ws2-why p { margin: 0; font-size: 13.5px; line-height: 20px; color: var(--i-3a2804); }
.ws2-why p.ws2-task-note { font-size: 13px; color: var(--i-5a3e08); }
/* Arama Nedeni (test note 11 Kas, UX Notu 5): what made this call in one line, when, how often the customer called */
.ws2-why .ws2-why-t { font-size: 14px; font-weight: 600; color: var(--i-3a2804); }
.ws2-why .ws2-why-meta { font-size: 12px; color: var(--amber-ink); font-variant-numeric: tabular-nums; }
/* Önceki Denemeler: one row per earlier contact — when, which way, what came of it, who */
.ws2-hist { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.ws2-hist .ws2-h3row { padding: 0 2px; }
.ws2-att { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ws2-att li { display: grid; grid-template-columns: 96px 44px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 2px;
  border-bottom: 1px solid var(--p-f4f4f4); font-size: 12.5px; line-height: 17px; }
.ws2-att li:last-child { border-bottom: 0; }
.ws2-att time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ws2-att b { font-weight: 600; }
.ws2-att span { color: var(--ink); overflow-wrap: anywhere; }
.ws2-att small { font-size: 12px; color: var(--text-2); }
.ws2-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ws2-pair > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ws2-pair h3 { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ws2-mini { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--p-ececec); border-radius: 12px; min-width: 0; }
.ws2-mini > b { font-size: 13px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ws2-mini-sub { font-size: 12.5px; line-height: 17px; color: var(--text-2); }
.ws2-mini-meta { font-size: 12px; color: var(--muted); }
.ws2-mini-meta b { font-weight: 600; }
.ws2-mini-text { font-size: 13px; line-height: 18px; color: var(--ink); overflow-wrap: anywhere; }
.ws2-mini.ws2-empty { font-size: 12.5px; line-height: 17px; color: var(--muted); }
.ws2-script { flex-shrink: 0; padding: 14px 16px; border-radius: 12px; background: var(--p-fafaf7); border: 1px solid var(--p-efefea); display: flex;
  flex-direction: column; gap: 6px; }
.ws2-script span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.ws2-script p { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink); }

/* ----------------------------------------------------------------- the agent's day (Temsilci-Durum) */
.ws2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex-shrink: 0; }
.ws2-kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws2-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column;
  gap: 2px; min-width: 0; }
.ws2-kpi span { font-size: 12px; color: var(--muted); }
.ws2-kpi b { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ws2-kpi small { font-size: 12px; color: var(--text-2); min-height: 14px; }
.ws2-panel { box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex;
  flex-direction: column; gap: 14px; min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.ws2-panel.recent { flex: 1 1 auto; gap: 4px; overflow: hidden; }
.ws2-panel.recent .ws2-scroll { gap: 0; }
.ws2-panel-head { display: flex; align-items: baseline; gap: 8px; }
.ws2-panel.recent .ws2-panel-head { padding-bottom: 6px; }
.ws2-panel-head h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); flex-grow: 1; }
.ws2-panel-head span { font-size: 12px; color: var(--muted); }
.ws2-link { border: 0; background: transparent; padding: 0; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--green-ink);
  cursor: pointer; }
.ws2-link:hover:not(:disabled) { color: var(--i-3a5507); }
.ws2-link:disabled { cursor: default; color: var(--faint); }
.ws2-row { display: flex; align-items: center; gap: 10px; min-height: 50px; border-bottom: 1px solid var(--p-f4f4f4); }
.ws2-row-main { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.ws2-row-main > span { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws2-row-main > span b { font-weight: 600; }
.ws2-row-main > small { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws2-row > time { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Son görüşmelerim: a row opens the call's whole story (read only) */
.ws2-rec-call { border-bottom: 1px solid var(--p-f4f4f4); }
.ws2-rec-call > .ws2-row { border-bottom: 0; }
.ws2-row-btn { width: 100%; padding: 0 4px; border: 0; border-radius: 10px; background: transparent; font-family: inherit; text-align: left;
  cursor: pointer; }
.ws2-row-btn:hover { background: var(--p-f7f8f5); }
.ws2-chev { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: var(--faint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.15s; }
.ws2-rec-call.on .ws2-chev { transform: rotate(180deg); }
.ws2-facts { margin: 0 4px 10px; padding: 10px 12px; border-radius: 10px; background: var(--p-f7f8f5); display: flex; flex-direction: column; gap: 5px; }
.ws2-facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; font-size: 12.5px; line-height: 17px; }
.ws2-facts dt { color: var(--muted); }
.ws2-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
/* Bugünkü Sürelerim (third column while waiting; UX Notu 4): icon mini cards in the status colours' light tints, the
   value larger than the name, and under them a thin bar of the day in the status colours (the same as Raporlar) */
.dt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dt-card { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--p-efefef); border-radius: 12px; min-width: 0; }
.dt-ico { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dt-ico svg.i { width: 16px; height: 16px; }
.dt-txt { display: flex; flex-direction: column; min-width: 0; }
.dt-txt > span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-txt > b { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dt-txt > b small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.dt-ico.st-session { background: var(--p-f1f2f0); color: var(--i-3d403e); }
.dt-ico.st-ready { background: var(--st-ready-bg); color: var(--st-ready-ink); }
.dt-ico.st-talk { background: var(--st-talk-bg); color: var(--st-talk-ink); }
.dt-ico.st-wrap { background: var(--st-wrap-bg); color: var(--st-wrap-ink); }
.dt-ico.st-break { background: var(--st-break-bg); color: var(--st-break-ink); }
.dt-ico.st-nready { background: var(--st-nready-bg); color: var(--st-nready-ink); }
/* "Bugün": the day's calls, a label with a short line under it and the number on the right */
.dc h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.dc-list { margin: 0; display: flex; flex-direction: column; }
.dc-list > div { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--p-f4f4f4); }
.dc-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dc-list dt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dc-list dt span { font-size: 13px; font-weight: 600; color: var(--ink); }
.dc-list dt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-list dd { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.dt-bar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--gray-bg); }
.dt-bar > span { min-width: 3px; }
.dt-bar .st-ready { background: var(--st-ready); } .dt-bar .st-talk { background: var(--st-talk); }
.dt-bar .st-wrap { background: var(--st-wrap); } .dt-bar .st-break { background: var(--st-break); }
.dt-bar .st-nready { background: var(--st-nready); } .dt-bar .st-none { flex-grow: 1; background: transparent; }
.ws2-more { align-self: flex-start; }
/* the warning's facts: last contact, last agent, open callback */
.ws2-warn-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ws2-warn-facts { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ws2-warn-facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; font-size: 12px; line-height: 16px; }
.ws2-warn-facts dt { color: var(--amber-ink); font-weight: 600; }
.ws2-warn-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
/* a section Monster fills later: one quiet line, not an empty card */
.ws2-none { padding: 6px 2px 8px; font-size: 12px; color: var(--faint); }

/* ----------------------------------------------------------------- narrower columns (a third column beside, smaller screens) */
@container ws2side (max-width: 760px) {
  .ws2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws2-card:not(.ws2-out) .ws2-who { flex-wrap: wrap; }
  .ws2-actions { width: 100%; padding-left: 60px; box-sizing: border-box; }
}
@container ws2side (max-width: 600px) {
  .ws2-top { padding: 16px 16px 14px; }
  .ws2-col { padding: 16px; }
  .ws2-kpis, .ws2-kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container ws2side (max-width: 480px) {
  .ws2-card.ws2-out { padding: 16px; }
  .ws2-stepsbox { padding: 14px 16px; }
}
@container ws2side (max-width: 440px) {
  .ws2-actions { padding-left: 0; flex-wrap: wrap; }
  .ws2-body { flex-direction: column; }
  .ws2-col { width: 100%; }
  .ws2-col:first-child { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .ws2-pair { grid-template-columns: minmax(0, 1fr); }
  .ws2-steplabel { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 11.5px; }
  .ws2-stepsub { display: none; }
  .ws2-att li { grid-template-columns: 88px minmax(0, 1fr); }
  .ws2-att li > span { grid-column: 1 / -1; }
}
@media (max-width: 980px) {                      /* the page stacks its columns: no fixed height, the page scrolls */
  .ws2-side { max-height: none; }
  .ws2-scroll, .ws2-panel { overflow: visible; }
}
