:root {
  color-scheme: light;
  --bg: #eef0f2; --surface-1: #ffffff; --surface-2: #f6f7f9; --border: #dde1e6; --border-strong: #c5cbd3;
  --text-primary: #14181d; --text-secondary: #4b545e; --text-muted: #7c8590;
  --accent: #1f4e8c; --accent-soft: #e4edf8; --on-accent: #ffffff;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --series-other: #9a9994;
  --seq-4: #2a78d6;
  --good: #0f8f3c; --good-soft: #e3f4e8; --warning: #c47d00; --warning-soft: #fff1d6; --critical: #c93434; --critical-soft: #fbe6e6;
  --shadow: 0 1px 2px rgba(20,24,29,.05), 0 8px 24px rgba(20,24,29,.06);
  --radius: 12px; --radius-sm: 8px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark; --bg: #101315; --surface-1: #171b1f; --surface-2: #1f2429; --border: #2d343b; --border-strong: #3d464f;
  --text-primary: #f2f4f6; --text-secondary: #b8c0c8; --text-muted: #808a94;
  --accent: #6aa3e8; --accent-soft: #1c2c40; --on-accent: #0c1724;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-other: #6f6e69;
  --seq-4: #3987e5;
  --good: #3dbb6a; --good-soft: #14301f; --warning: #e0a030; --warning-soft: #33280e; --critical: #e5605d; --critical-soft: #3a1a1a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}}
:root[data-theme="dark"] {
  color-scheme: dark; --bg: #101315; --surface-1: #171b1f; --surface-2: #1f2429; --border: #2d343b; --border-strong: #3d464f;
  --text-primary: #f2f4f6; --text-secondary: #b8c0c8; --text-muted: #808a94;
  --accent: #6aa3e8; --accent-soft: #1c2c40; --on-accent: #0c1724;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-other: #6f6e69;
  --seq-4: #3987e5;
  --good: #3dbb6a; --good-soft: #14301f; --warning: #e0a030; --warning-soft: #33280e; --critical: #e5605d; --critical-soft: #3a1a1a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text-primary); font: 14px/1.5 var(--font-body); }
h1, h2, h3, .num { font-family: var(--font-display); }
.num { font-variant-numeric: tabular-nums; }
a { color: var(--accent); }
button, select, input { font: inherit; }
:is(button, select, input, .row, .tab, .link-row):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- išdėstymas: šoninis meniu + turinys */
.shell { display: flex; min-height: 100vh; }
.side { width: 232px; flex: 0 0 232px; background: var(--surface-1); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; gap: 2px; }
.side .brand { padding: 4px 10px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }   /* ir kai brand — nuoroda (.side a centruoja) */
.side .brand h1 { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.side .brand .sub { color: var(--text-muted); font-size: 12px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 14px; }
.side a:hover { background: var(--surface-2); color: var(--text-primary); }
.side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.side a .ic { width: 18px; text-align: center; font-size: 14px; opacity: .8; }
/* Meniu grupė (pvz. „Rizikos“): antraštė nespaudžiama, subpunktai atitraukti iki antraštės teksto */
.side .nav-grp { display: flex; flex-direction: column; gap: 2px; }
.nav-grp-h { display: flex; align-items: center; gap: 10px; padding: 9px 10px 3px; color: var(--text-muted); font-weight: 600; font-size: 14px; cursor: default; }
.side .nav-grp-h .ic { width: 18px; text-align: center; font-size: 14px; opacity: .8; }
.side .nav-grp a { padding-left: 38px; }
.side .badge { margin-left: auto; font-family: var(--font-display); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--critical); color: #fff; border-radius: 999px; padding: 1px 7px; }
.side .badge:empty { display: none; }
.side .badge.muted-badge { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.side-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.side-foot .st { display: flex; align-items: center; gap: 6px; }
.main { flex: 1; min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; background: var(--surface-1); border-bottom: 1px solid var(--border); }
.top .in { padding-inline: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-height: 60px; padding-block: 8px; }
.top .view-title { min-height: 44px; display: flex; align-items: center; }   /* ta pati vieta ir kai veiksmai persikelia į kitą eilutę */
.view-title { font-size: 17px; font-weight: 600; margin: 0 auto 0 0; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface-2); padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--text-secondary); padding: 0 12px; min-height: 28px; border-radius: 999px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.seg button:hover { color: var(--text-primary); }
.seg button[aria-pressed="true"] { background: var(--text-primary); color: var(--surface-1); }
.ctl { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 13px; }
.fsel { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); padding-left: 12px; overflow: hidden; }
.fsel > span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.fsel select { border: 0; background: transparent; min-height: 32px; padding: 0 28px 0 6px; font-weight: 500; color: var(--text-primary); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237c8590' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; cursor: pointer; }
.fsel select:focus-visible { outline: none; }
.fsel:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.top .in, .filters { flex-wrap: nowrap; }
/* Penki filtrai (su „Tikslas“ ir „Klientas“) vienoje eilutėje su antrašte telpa tik plačiame ekrane — siauresniame filtrai pereina į antrą eilutę,
   o antraštė nelūžta; pasirinkimo plotis ribotas, kad ilgiausias variantas („pasiūlymas · sekimas“) neišpūstų laukelio */
@media (max-width: 1440px) { .top .in, .filters { flex-wrap: wrap; } }
.view-title { white-space: nowrap; }
.fsel select { max-width: 11em; text-overflow: ellipsis; }
select, input[type="search"] { min-height: 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-primary); padding: 4px 10px; }
input[type="search"] { width: 200px; }
/* Chrome select'ui prideda savo vidinį atitraukimą — be jo tekstas prasideda ten pat, kur įvedimo laukuose; rodyklė sava (kaip .fsel).
   Vėlesnės taisyklės select'ams turi keisti background-color, ne background, kitaip dingsta rodyklė. */
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237c8590' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 28px; cursor: pointer; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex: none; }
.led.on { background: var(--good); } .led.busy { background: var(--warning); animation: pulse 1s infinite; } .led.err { background: var(--critical); }
@keyframes pulse { 50% { opacity: .3; } }
.btn { border: 1px solid var(--border-strong); background: var(--surface-1); color: var(--text-primary); border-radius: 999px; padding: 4px 12px; min-height: 28px; cursor: pointer; font-weight: 500; font-size: 12px; }
.btn:hover { border-color: var(--text-primary); } .btn:disabled { opacity: .5; cursor: default; }
/* Mygtukas šalia įvedimo lauko ar formos apačioje — to paties aukščio kaip laukas (34 px; formose .form — 40 px) */
.btn.fld { min-height: 34px; padding: 4px 14px; font-size: 13px; }
.applog { font: 11px/1.5 var(--font-mono); color: var(--text-secondary); white-space: pre-wrap; max-height: 420px; overflow: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 10px; font-size: 13px; margin: 0; }
.kv dt { color: var(--text-muted); } .kv dd { margin: 0; }
audio { width: 100%; margin: 8px 0 4px; }
.ln.seek { cursor: pointer; } .ln.seek:hover .t { color: var(--accent); }
.ln.vieta, .ln.k.vieta { background: var(--accent-soft); border-radius: 4px; box-shadow: 0 0 0 4px var(--accent-soft); }   /* atidaryta iš „▶ klausyti nuo …“ */
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { width: auto; flex: none; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 4px; }
  .side .brand { padding: 4px 8px; flex-basis: 100%; flex-direction: row; align-items: baseline; gap: 8px; }
  .side a { padding: 6px 10px; font-size: 13px; }
  .side-foot { display: none; }
}
.wrap { max-width: 1320px; margin: 0 auto; padding-block: 20px 40px; padding-inline: 24px; }
.view { display: grid; gap: 20px; }
.view.card { display: block; }
.view[hidden], [hidden] { display: none !important; }
.view .kpis { margin-bottom: 0; }
section h2 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.005em; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; }
.sec-head .hint { color: var(--text-muted); font-size: 12px; }
.muted { color: var(--text-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
span.num, b.num, td.num { white-space: nowrap; }   /* datos, telefonai, skaičiai nelūžta per dvi eilutes */
.small { font-size: 12px; }

/* ---- KPI */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 12px; display: grid; gap: 2px; min-width: 0; }
.tile .k { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.tile .v { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.tile .s { font-size: 12px; color: var(--text-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tile.alert { border-color: var(--critical); background: var(--critical-soft); }
.tile.alert .v { color: var(--critical); }
.tile.warn .v { color: var(--warning); }
.delta { font-weight: 600; font-size: 12px; }
.delta.up { color: var(--good); } .delta.down { color: var(--critical); } .delta.flat { color: var(--text-muted); }

/* ---- dėmesio blokas */
.attn { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.panel { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.panel h3 { font-size: 13px; font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.list li { min-width: 0; }
.link-row { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; margin-inline: -8px; border-radius: var(--radius-sm); cursor: pointer; border: 0; background: transparent; text-align: left; color: inherit; width: calc(100% + 16px); }
.link-row .l1 { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.link-row:hover { background: var(--surface-2); }
.link-row .when { font-family: var(--font-display); font-weight: 600; font-size: 12px; white-space: nowrap; }
.link-row .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-row .meta { display: block; color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.empty { color: var(--text-muted); font-size: 13px; padding: 10px 0; display: flex; align-items: center; gap: 8px; }
.empty::before { content: "✓"; color: var(--good); font-weight: 700; }

/* ---- diagramos */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; }
.card.wide { grid-column: 1 / -1; }
.card h2 { font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-secondary); margin: 4px 0 8px; }
.legend i, .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dot { border-radius: 50%; width: 9px; height: 9px; }
svg { width: 100%; height: auto; display: block; }
#ch2 { max-width: 760px; }   /* plačioje kortelėje SVG neišsitampo iki neįskaitomo dydžio */
.grid-line { stroke: var(--border); stroke-width: 1; }
.tip { position: fixed; pointer-events: none; background: var(--text-primary); color: var(--surface-1); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 12px; line-height: 1.4; z-index: 30; max-width: 260px; box-shadow: var(--shadow); }

/* ---- kriterijų / elgsenos juostos */
.sc { display: grid; grid-template-columns: 110px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; }
.track { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; height: 8px; overflow: hidden; }
.bar { height: 100%; background: var(--seq-4); border-radius: 3px; }
.score { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.beh td { vertical-align: middle; }
/* flex, ne grid: paskutinės eilutės plytelės išsitempia per visą plotį (7 plytelės — be tuščios vietos) */
.msum { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.msum > .tile { flex: 1 1 220px; }
.msum .tile { align-content: start; } .msum .tile .v { font-size: 24px; }
.mlink { border: 0; background: none; padding: 0; margin: 0; font: inherit; text-align: left; color: var(--text-muted); cursor: pointer; }
.mlink:hover { color: var(--text-primary); text-decoration: underline; }
.mlink[aria-pressed="true"] { color: var(--accent); font-weight: 600; }
.msum .rows { display: grid; gap: 4px; margin-top: 6px; }
.mi { display: grid; grid-template-columns: 80px 1fr; gap: 8px 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--border); }
.mi:first-child { border-top: 0; }
.mi .d { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.mi .q { color: var(--text-muted); font-size: 12px; }
.beh .pct { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.beh .cellbar { display: grid; grid-template-columns: 1fr 48px; gap: 8px; align-items: center; }
/* Vienodo pločio stulpeliai — visų rodiklių juostos vienodo ilgio, nepriklausomai nuo antraštės; siaurame lange slenka */
table.beh { table-layout: fixed; min-width: 760px; }
table.beh th:first-child { width: 200px; }
@media (max-width: 600px) { table.beh th:first-child { width: 120px; } }
.beh .n { color: var(--text-muted); font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---- lentelės */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; position: sticky; top: 0; background: var(--surface-1); z-index: 1; }
tbody tr:last-child td { border-bottom: 0; }
.tblwrap { overflow: auto; max-height: 560px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
#calls-sec .tblwrap { max-height: none; }
/* Lentelių vaizduose slenka visas puslapis (ne konteineris), todėl lipni antraštė laikosi po viršutine juosta */
.view.card .tblwrap { overflow: visible; max-height: none; }
.view.card th { top: var(--topbar, 60px); }
@media (max-width: 860px) { .view.card .tblwrap { overflow-x: auto; } .view.card th { position: static; } }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tab { border: 1px solid var(--border); background: var(--surface-1); color: var(--text-secondary); border-radius: 999px; padding: 5px 12px; min-height: 32px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { border-color: var(--border-strong); color: var(--text-primary); }
.tab[aria-selected="true"] { background: var(--text-primary); color: var(--surface-1); border-color: var(--text-primary); }
.tab b { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.tab.over[aria-selected="false"] b { color: var(--critical); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; border: 1px solid var(--border); color: var(--text-secondary); white-space: nowrap; background: var(--surface-1); }
.pill.good { border-color: transparent; background: var(--good-soft); color: var(--good); }
.pill.bad { border-color: transparent; background: var(--critical-soft); color: var(--critical); }
.pill.warn { border-color: transparent; background: var(--warning-soft); color: var(--warning); }
.pill.stage { background: var(--surface-2); }
.pill.new { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
tr.t-over td:first-child { box-shadow: inset 3px 0 0 var(--critical); }
tr.t-today td:first-child { box-shadow: inset 3px 0 0 var(--warning); }
tr.t-done td { color: var(--text-muted); }
.due { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.due .rel { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--text-muted); }
.rating { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 6px; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface-2); }
.rating.good { background: var(--good-soft); color: var(--good); }
.rating.bad { background: var(--critical-soft); color: var(--critical); }
.rating.warn { background: var(--warning-soft); color: var(--text-primary); }   /* ta pati taisyklė kaip lentelėse: ≥ 7,5 / ≥ 6 */
.dir { color: var(--text-muted); white-space: nowrap; }
/* Skambučių lentelė: fiksuoti stulpeliai — išskleidus eilutę (detalės) pločiai nešokinėja. Siauresniame lange — kaip anksčiau (prekei / temai liktų per mažai vietos). */
@media (min-width: 1100px) {
  #calls { table-layout: fixed; }
  #calls th:nth-child(1) { width: 112px; } #calls th:nth-child(2) { width: 46px; } #calls th:nth-child(3) { width: 150px; }
  #calls th:nth-child(4) { width: 180px; } #calls th:nth-child(6) { width: 130px; } #calls th:nth-child(7) { width: 64px; }
  #calls tr.row td { overflow: hidden; text-overflow: ellipsis; }
}
#calls td.seller { white-space: nowrap; }
.row { cursor: pointer; }
.row:hover td { background: var(--surface-2); }
.row td:first-child::before { content: "›"; display: inline-block; width: 14px; color: var(--text-muted); transition: transform .15s; }
.row[aria-expanded="true"] td:first-child::before { transform: rotate(90deg); }
.row[aria-expanded="true"] td { background: var(--accent-soft); }
.row[aria-expanded="true"] .pill.new { background: var(--surface-1); }
.detail td { background: var(--surface-2); padding: 14px 16px 16px 34px; }
.detail .box { display: grid; gap: 16px 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.detail h4 { margin: 0 0 4px; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.detail h4 + * { margin-bottom: 10px; }
.detail ul { margin: 0; padding-left: 18px; }
.detail li { margin-bottom: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.links { display: flex; gap: 12px; font-size: 12px; }
details.tr { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
details.tr summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 500; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.tr summary::-webkit-details-marker { display: none; }
details.tr summary::before { content: "›"; display: inline-block; transition: transform .15s; }
details.tr[open] summary::before { transform: rotate(90deg); }
.dlg { margin-top: 10px; max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-1); padding: 8px 12px; display: grid; gap: 6px; }
.ln { display: grid; grid-template-columns: 44px 84px 1fr; gap: 10px; align-items: baseline; font-size: 13px; }
.ln .t { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.ln .who { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ln.p .who { color: var(--series-1); } .ln.k .who { color: var(--series-2); } .ln.c .who { color: var(--series-3); }
.ln.k { background: var(--surface-2); margin-inline: -12px; padding-inline: 12px; padding-block: 3px; }
@media (max-width: 720px) {
  .tile .v { font-size: 24px; }
  input[type="search"] { width: 140px; }
  .top .in { padding-inline: 16px; } .wrap { padding-inline: 16px; }
  #tasks th:nth-child(5), #tasks td:nth-child(5), #tasks th:nth-child(6), #tasks td:nth-child(6), #calls th:nth-child(2), #calls td:nth-child(2) { display: none; }
  .ln { grid-template-columns: 40px 1fr; } .ln .who { grid-column: 2; } .ln span:last-child { grid-column: 2; }
}

/* paieškos laukas viršutinėje juostoje (Skambučiai, Užduotys) */
.search-inline { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.search-inline input[type="search"] { width: 260px; max-width: 40vw; }
.sec-head .search-inline { margin-left: auto; }
@media (max-width: 720px) { .search-inline { width: 100%; margin-left: 0; } .search-inline input[type="search"] { flex: 1; width: auto; max-width: none; } }

/* Filtrai: kompiuteryje visi matomi; telefone — po „Filtrai“ mygtuku, kad sąrašui liktų ekranas */
.filt-btn { display: none; }
@media (max-width: 720px) {
  .filters .filt-btn { display: inline-flex; align-items: center; }
  .filters .fsel { display: none; }
  .filters.open .fsel { display: flex; width: 100%; }
  .filters.open .fsel select { flex: 1; max-width: none; }
}

/* Skambučiai telefone — kortelės: data · darbuotojas · balas / tema / grupė · numeris */
@media (max-width: 720px) {
  #calls, #calls tbody { display: block; width: 100%; }   /* eilutė-kortelė per visą plotį */
  #calls thead { display: none; }
  #calls tr.row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "date seller score" "title title title" "group group phone"; gap: 4px 10px; padding: 12px; border-bottom: 1px solid var(--border); }
  #calls tr.row td { display: block; padding: 0; border: 0; min-width: 0; }
  #calls tr.row td:nth-child(1) { grid-area: date; color: var(--text-secondary); }
  #calls tr.row td:nth-child(2) { display: none; }
  #calls tr.row td:nth-child(3) { grid-area: seller; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; }
  #calls tr.row td:nth-child(4) { grid-area: group; white-space: normal !important; font-size: 12px; }
  #calls tr.row td:nth-child(5) { grid-area: title; font-weight: 600; }
  #calls tr.row td:nth-child(6) { grid-area: phone; color: var(--text-secondary); font-size: 12px; align-self: end; justify-self: end; }
  #calls tr.row td:nth-child(7) { grid-area: score; justify-self: end; }
  #calls tr.detail td { display: block; }
}
.beh-h { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 18px 0 8px; }
.beh-h:first-child { margin-top: 4px; }

/* Datos laukai — static/datos.js: tekstas yyyy-mm-dd ir 📅 mygtukas naršyklės kalendoriui (Studiohotel, 2026-11-08) */
.data-w { position: relative; display: inline-flex; align-items: center; max-width: 100%; min-width: 0; vertical-align: middle; }
/* apgaubiantis span — ne etiketė: „.field > span“, „.fsel span“ stiliai jam netaikomi (šriftas — kaip lauko tėvo) */
span.data-w.data-w { font-size: inherit; font-weight: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; margin: 0; padding: 0; }
.data-w > .data-lt { flex: 1 1 auto; min-width: 0; padding-right: 30px !important; font-variant-numeric: tabular-nums; }
.data-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: var(--text-muted); cursor: pointer; display: grid; place-items: center; }
.data-btn::before { content: ""; width: 15px; height: 15px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat; }
.data-btn:hover { color: var(--text-primary); background: var(--surface-2); }
.data-btn:disabled { cursor: default; opacity: .5; }
.data-w > input.data-nat { position: absolute !important; left: 0; bottom: 0; width: 100% !important; height: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none; }
.data-lt.bloga { border-color: var(--critical) !important; }
