/* Canlı izleme (design V5 parity: Canli-Izleme.dc.html). The design draws with the browser defaults (content-box,
   line-height normal); app.css uses border-box, so fixed heights below include the border (e.g. 32px + 2px = 34px). */

/* ------------------------------------------------------------------ header (app.css .top: 64px, padding 0 20px, gap 12px) */
.lv-top { line-height: normal; }
.lv-sub { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lv-dot7 { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.lv-dot7.idle { background: var(--amber); }
.lv-pbx { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--text); text-decoration: none; white-space: nowrap; }
.lv-pbx:hover { color: var(--ink); border-color: var(--p-d6d6d6); }
.lv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.lv-dot.bad { background: var(--red); }
.lv-dot.idle { background: var(--p-c8c8c8); }
.lv-filter { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px; border: 1px solid var(--p-e0e0e0); border-radius: 10px;
  font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.lv-filter .sel.lv-sel { height: 36px; max-width: 220px; padding: 0 4px 0 0; border: 0; background: transparent; font-size: 13px; color: var(--ink); }
.lv-filter .sel.lv-sel:focus-visible, .lv-filter .sel.lv-sel.open { outline: none; }
.lv-filter:focus-within { outline: 2px solid var(--green); outline-offset: 1px; }

/* ------------------------------------------------------------------ body */
.lv-body { flex-grow: 1; height: calc(100vh - 64px); min-height: 640px; padding: 16px; display: flex; flex-direction: column; gap: 16px;
  line-height: normal; }
.lv-none { margin: 0; font-size: 12.5px; color: var(--muted); }

.lv-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.lv-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; display: flex; flex-direction: column;
  gap: 2px; min-width: 0; }
.lv-kpi.warn { border-color: var(--p-f1d9a4); }
/* the full titles (test note 11 Kas: "20 Saniye İçinde Cevaplananlar") may take two lines on a narrow screen; the
   numbers sit at the foot of each tile, so they stay on one line across the row */
.lv-kpi-l { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; font-size: 12px; line-height: 15px;
  color: var(--muted); }
.lv-kpi-l > span:first-child { min-width: 0; overflow-wrap: break-word; }
.lv-kpi.warn .lv-kpi-l { color: var(--amber-ink); }
.lv-kpi-v { margin-top: auto; font-size: 25px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.lv-kpi-s { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lv-main { flex-grow: 1; min-height: 0; display: flex; gap: 16px; }
.lv-left { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lv-right { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.lv-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column;
  gap: 10px; min-width: 0; }
.lv-card h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------------------ Kuyruklar */
.lv-queues { gap: 4px; }
.lv-qhead { display: flex; align-items: baseline; gap: 10px; }
.lv-qhead > span { font-size: 12px; color: var(--muted); }
.lv-qhead > span.lv-warn-text { color: var(--red-ink); }
.lv-qscroll { display: flex; flex-direction: column; gap: 4px; }   /* the design's rows sit in the section's 4px gap */
.lv-qrow { display: grid; grid-template-columns: minmax(0, 1fr) 70px 80px 70px 60px 80px 80px 60px; gap: 10px; }
.lv-qth { padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--muted); }
.lv-qth > span { white-space: nowrap; }
.lv-qtr { align-items: center; min-height: 33px; border-bottom: 1px solid var(--p-f6f6f6); font-size: 13px; color: var(--ink);
  font-variant-numeric: tabular-nums; }
.lv-qname { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.lv-qname > i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.lv-qname > i.hot { background: var(--amber); }
.lv-qname > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-ivr { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-hot { font-weight: 700; color: var(--amber-ink); }
.lv-sl { color: var(--i-3a5507); font-weight: 600; white-space: nowrap; }
.lv-sl.low { color: var(--red-ink); }
.lv-sl.none { color: var(--muted); font-weight: 400; }
.lv-sl small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.lv-qempty { min-height: 33px; display: flex; align-items: center; border-bottom: 1px solid var(--p-f6f6f6); font-size: 12.5px; color: var(--muted); }
.lv-ai { display: flex; align-items: center; gap: 10px; padding-top: 4px; font-size: 12.5px; color: var(--text); }
.lv-ai-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: var(--p-e3f4ef);
  color: var(--i-0b6b5e); flex-shrink: 0; }
.lv-ai-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lv-ai b { color: var(--i-0b6b5e); }

/* ------------------------------------------------------------------ Temsilciler */
.lv-agents { flex-grow: 1; min-height: 0; }
.lv-ahead { display: flex; align-items: center; gap: 10px; }
.lv-acount { font-size: 12px; color: var(--muted); flex-grow: 1; }
.lv-link { border: 0; padding: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.lv-link:hover { color: var(--ink); text-decoration: underline; }
.lv-profiles { font-size: 12px; color: var(--text); white-space: nowrap; }
.lv-view { display: inline-flex; border: 1px solid var(--p-e4e4e4); border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.lv-view button { height: 26px; padding: 0 10px; border: 0; background: var(--card); font-family: inherit; font-size: 12px; color: var(--text); cursor: pointer; }
.lv-view button + button { border-left: 1px solid var(--p-e4e4e4); }
.lv-view button[aria-pressed="true"] { background: var(--p-f1f3ee); color: var(--ink); font-weight: 600; }
/* the list view: one scannable row per agent */
.lv-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.lv-lrow { display: grid; grid-template-columns: minmax(150px, 1.2fr) 150px 70px minmax(0, 2fr) 96px; gap: 12px; align-items: center; }
.lv-lhead { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--muted); position: sticky; top: 0;
  background: var(--card); z-index: 1; }
.lv-lcell { border-bottom: 1px solid var(--p-f4f4f4); }
.lv-lbtn { width: 100%; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; font-family: inherit;
  text-align: left; cursor: pointer; }
.lv-lbtn:hover { background: var(--p-f7f8f5); }
.lv-lbtn.warn { background: var(--p-fffcf3); }
.lv-lname { display: flex; flex-direction: column; min-width: 0; }
.lv-lname b { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-lname small { font-size: 11.5px; color: var(--muted); }
.lv-ltoday { font-size: 12px; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv-bar { display: flex; height: 9px; border-radius: 999px; overflow: hidden; gap: 2px; flex-shrink: 0; }
.lv-bar > span { min-width: 3px; }
.lv-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.lv-leg { display: inline-flex; align-items: center; gap: 6px; height: 24px; margin: 0 -6px; padding: 0 6px; border: 0; border-radius: 7px;
  background: transparent; font-family: inherit; font-size: 12px; color: var(--text); cursor: pointer; }
.lv-leg:hover { background: var(--p-f4f5f1); }
.lv-leg.on { background: var(--lime-soft); box-shadow: inset 0 0 0 1px var(--p-cfe68e); color: var(--ink); font-weight: 600; }
.lv-clear { font-size: 12px; color: var(--green-ink); font-weight: 600; }
.lv-legend i { width: 9px; height: 9px; border-radius: 3px; }
.lv-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.lv-grid { flex: 1 1 auto; min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  align-content: start; }
.lv-grid.all { overflow-y: auto; }
.lv-grid > .lv-none { grid-column: 1 / -1; }
.lv-agent { border: 1px solid var(--p-ededed); background: var(--card); border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; gap: 6px;
  min-width: 0; }
.lv-agent.warn { border-color: var(--p-f1d9a4); background: var(--p-fffcf3); }
.lv-a1 { display: flex; align-items: center; gap: 7px; }
.lv-aname { font-size: 13px; font-weight: 600; color: var(--ink); flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-prof { height: 18px; display: inline-flex; align-items: center; padding: 0 6px; border-radius: 5px; background: var(--gray-bg); color: var(--text);
  font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.lv-a2 { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.lv-state { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 7px; border-radius: 999px; font-size: 11.5px;
  font-weight: 600; white-space: nowrap; }
.lv-state > i { width: 6px; height: 6px; border-radius: 50%; }
.lv-time { font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-work { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-work b { font-weight: 600; }

/* ------------------------------------------------------------------ Giden ve geri arama */
.lv-oitem { display: flex; flex-direction: column; gap: 5px; padding-bottom: 10px; border-bottom: 1px solid var(--p-f2f2f2); }
.lv-o1 { display: flex; align-items: center; gap: 8px; }
.lv-oname { font-size: 13.5px; font-weight: 600; color: var(--ink); flex-grow: 1; min-width: 0; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-decoration: none; }
.lv-oname:hover { text-decoration: underline; }
.lv-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  white-space: nowrap; }
.lv-omethod { font-size: 12px; color: var(--text-2); }
.lv-track { height: 6px; border-radius: 999px; background: var(--gray-bg); overflow: hidden; }
.lv-track > div { height: 6px; border-radius: 999px; }
.lv-ometa { font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.lv-more { font-size: 12px; color: var(--muted); text-decoration: none; }
.lv-more:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------------ Uyarılar */
.lv-alerts { flex-grow: 1; min-height: 0; overflow: hidden; }
.lv-alist { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.lv-alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; flex-shrink: 0; }
.lv-alert > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; fill: none; stroke-width: 1.9; stroke-linecap: round;
  stroke-linejoin: round; }
.lv-abody { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.lv-atitle { font-size: 13px; font-weight: 600; flex-grow: 1; min-width: 0; }
.lv-cta { height: 26px; padding: 0 9px; border: 1px solid var(--p-e0e0e0); border-radius: 8px; background: var(--card); font-family: inherit; font-size: 12px;
  color: var(--text); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.lv-cta:hover:not(:disabled) { border-color: var(--p-cfcfcf); color: var(--ink); }
.lv-cta:disabled { cursor: not-allowed; opacity: 0.55; }
.lv-atext { font-size: 12px; line-height: 17px; color: var(--text); }
.lv-abtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lv-cta.pri { border-color: var(--f-0b6b5e); background: var(--f-0b6b5e); color: var(--on-fill); font-weight: 600; }
.lv-cta.pri:hover:not(:disabled) { border-color: var(--f-08584d); background: var(--f-08584d); color: var(--on-fill); }

/* ------------------------------------------------------------------ narrower screens: columns stack and the page scrolls */
@media (max-width: 1180px) {
  .lv-body { height: auto; min-height: 0; }
  .lv-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lv-main { flex-direction: column; }
  .lv-right { width: auto; }
  .lv-grid { overflow: visible; }
}
@media (max-width: 720px) {
  .lv-top .grow { display: none; }
  .lv-lrow { grid-template-columns: minmax(0, 1fr) 128px 56px; }
  .lv-lrow > :nth-child(4), .lv-lrow > :nth-child(5) { display: none; }
  .lv-body { padding: 12px 16px 24px; }
  .lv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-qscroll { overflow-x: auto; }
  .lv-qscroll > .lv-qrow, .lv-qscroll > .lv-qempty { min-width: 760px; }
  .lv-ahead { flex-wrap: wrap; }
  .lv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .lv-grid { grid-template-columns: minmax(0, 1fr); }
}

/* a card opens the supervisor's choices for that agent (break a supervisor may start, Hazır) */
.lv-acell { position: relative; min-width: 0; display: flex; }
.lv-acell > .lv-agent { width: 100%; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.lv-acell > .lv-agent:hover { border-color: var(--p-daddd5); }
.lv-acell > .lv-agent:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.lv-amenu { position: fixed; top: auto; right: auto; width: 260px; z-index: 30; }
