/* Efektyvus Čekis – tas pats vaizdas kaip programoje (app/ui/styles.py): šviesus, mėlyna + žalia. */
:root {
  --accent: #0183b8; --accent-hover: #016c98; --green-brand: #96c519; --accent-soft: #e0f3f9;
  --red: #dc2626; --red-bg: #fde2e2; --green: #15803d; --green-bg: #dcfce7; --amber: #b45309; --amber-bg: #fef3c7;
  --muted: #64748b; --text: #0f172a; --line: #e2e8f0; --line2: #cbd5e1; --bg: #f4f6fa; --panel: #ffffff;
  --gray-bg: #eef2f6;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 13px/1.4 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- antraštė */
header.top { background: var(--panel); border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--green-brand)) 1; position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 10px; padding: 6px 16px; max-width: 1600px; margin: 0 auto; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand .t { font-size: 17px; font-weight: 600; line-height: 1.1; }
.brand .t small { font-size: 10px; color: var(--muted); font-weight: 500; }
.brand .s { color: var(--muted); font-size: 11.5px; }
.top-nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- mygtukai, žetonai */
.btn { background: #fff; border: 1px solid var(--line2); border-radius: 5px; padding: 4px 11px; cursor: pointer;
  white-space: nowrap; text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { background: #f1f5f9; }
.btn:disabled { color: #94a3b8; background: #f8fafc; border-color: var(--line); cursor: default; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.primary:disabled { background: #9fd3e7; border-color: #9fd3e7; color: #f0fafd; }
.btn.danger { color: var(--red); border-color: #fca5a5; }
.btn.danger:hover { background: var(--red-bg); }
.btn.danger:disabled { color: #94a3b8; background: #f8fafc; border-color: var(--line); }
.btn.sm { padding: 2px 8px; font-size: 12px; }
.btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip { background: var(--accent-soft); color: #01587c; border-radius: 12px; padding: 3px 10px; font-weight: 600;
  font-size: 12px; white-space: nowrap; }
.chip.ok { background: var(--green-bg); color: var(--green); }
.chip.bad { background: var(--red-bg); color: var(--red); }
.chip.busy { background: var(--amber-bg); color: var(--amber); }
.chip.gray { background: var(--gray-bg); color: var(--muted); }
.chip.click { cursor: pointer; border: 1px solid transparent; }
.chip.click.on { border-color: currentColor; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--red);
  color: #fff; font-size: 11px; text-align: center; margin-left: 4px; }

/* ---------- puslapis */
main { padding: 10px 16px 30px; max-width: 1600px; margin: 0 auto; }
.toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.toolbar .grow { flex: 1; }
.hint { color: var(--muted); font-size: 12px; margin: 4px 0 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.panel h2 { font-size: 14.5px; margin: 0 0 8px; }
.panel h3 { font-size: 15px; margin: 18px 0 8px; }
.notice { background: #fff7ed; border: 1px solid #fed7aa; color: var(--amber); padding: 6px 10px; border-radius: 5px;
  margin-bottom: 8px; }
.notice.info { background: var(--accent-soft); border-color: #a9dcec; color: #01587c; }
.notice.err { background: var(--red-bg); border-color: #fca5a5; color: var(--red); }
.notice.ok { background: var(--green-bg); border-color: #86efac; color: var(--green); }

/* ---------- lentelė */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: auto; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th { background: #f8fafc; border-bottom: 1px solid var(--line); padding: 5px 6px; font-weight: 600;
  color: #334155; text-align: left; position: sticky; top: 0; white-space: nowrap; font-size: 12px; }
table.grid td { border-bottom: 1px solid #eef2f7; padding: 3px 6px; vertical-align: middle; font-size: 13px; }
table.grid tr:nth-child(even) td { background: #fafbfd; }
table.grid tr:hover td { background: #f3f9fc; }
table.grid tr.sel td { background: var(--accent-soft); }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid td.st { text-align: center; white-space: nowrap; }
td.st.ok { background: var(--green-bg) !important; color: var(--green); }
td.st.bad { background: var(--red-bg) !important; color: var(--red); }
td.st.busy { background: var(--amber-bg) !important; color: var(--amber); }
td.st.gray { background: var(--gray-bg) !important; color: var(--muted); }
td.missing { background: var(--red-bg) !important; }
td.missing::after { content: "trūksta"; color: var(--red); font-size: 11px; }
td.missing.has::after { content: ""; }
.thumb { width: 26px; height: 34px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); cursor: zoom-in;
  background: #f1f5f9; display: block; }
.file { color: var(--muted); font-size: 11.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { color: var(--muted); font-size: 11px; display: block; white-space: normal; max-width: 260px; margin: 2px auto 0; }
.vendor { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.vendor img { height: 14px; }
.empty { text-align: center; color: var(--muted); padding: 30px 16px; font-size: 13.5px; }
input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }

/* ---------- formos */
label.f { display: block; margin-bottom: 8px; }
label.f > span { display: block; font-size: 12px; color: #334155; font-weight: 600; margin-bottom: 4px; }
label.f input, label.f select, label.f textarea, .inp { width: 100%; background: #fff; border: 1px solid var(--line2);
  border-radius: 5px; padding: 5px 8px; }
label.f input:focus, label.f select:focus, label.f textarea:focus, .inp:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); }
label.f input.invalid { background: var(--red-bg); border-color: var(--red); }
label.f small { color: var(--muted); font-size: 11px; }
label.f small.e { color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.segment { display: inline-flex; }
.segment .btn { border-radius: 0; min-width: 120px; justify-content: center; }
.segment .btn:first-child { border-radius: 6px 0 0 6px; }
.segment .btn:last-child { border-radius: 0 6px 6px 0; border-left: none; }

/* ---------- prisijungimas */
.auth { max-width: 420px; margin: 7vh auto; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 28px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.auth .logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.auth .logo img { width: 52px; height: 52px; }
.auth .logo .t { font-size: 22px; font-weight: 600; }
.auth .logo .t small { font-size: 12px; color: var(--muted); font-weight: 500; }
.auth h1 { font-size: 17px; margin: 0 0 14px; text-align: center; }
.auth .btn.primary { width: 100%; justify-content: center; padding: 10px; margin-top: 4px; }
.auth .links { text-align: center; margin-top: 12px; font-size: 12.5px; }
.policy { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 4px 16px;
  background: #fbfcfe; font-size: 12.5px; }
.auth.wide { max-width: 760px; }
.policy table, #pol table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.policy th, .policy td, #pol th, #pol td { border: 1px solid var(--line); padding: 5px 7px; vertical-align: top; text-align: left; }
.policy th, #pol th { background: #f1f5f9; }
.policy h1 { font-size: 18px; } .policy h2 { font-size: 15.5px; }

/* ---------- modalinis langas */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 50; display: flex;
  align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 10px; max-width: 1100px; width: 100%; max-height: 94vh; overflow: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal.small { max-width: 520px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-h h3 { margin: 0; font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-b { padding: 12px 14px; }
.viewer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 18px; }
.viewer .img { background: #f1f5f9; border-radius: 8px; text-align: center; min-height: 300px; display: flex;
  align-items: flex-start; justify-content: center; overflow: auto; max-height: 76vh; }
.viewer .img img { max-width: 100%; height: auto; }
.viewer .tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 12.5px; margin: 6px 0 10px; }
.kv b { color: #334155; }
pre.raw { background: #f8fafc; border: 1px solid var(--line); border-radius: 5px; font: 12px Consolas, monospace;
  max-height: 200px; overflow: auto; padding: 8px; white-space: pre-wrap; }

/* ---------- įkėlimas */
.drop { position: fixed; inset: 0; background: rgba(1, 131, 184, .12); border: 4px dashed var(--accent);
  z-index: 60; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--accent);
  font-weight: 600; pointer-events: none; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff;
  padding: 10px 18px; border-radius: 8px; z-index: 80; max-width: 92vw; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.toast.err { background: var(--red); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.foot { color: var(--muted); font-size: 11.5px; text-align: center; padding: 20px; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.vend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vend-list div { border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; background: #fff; }
.vend-list img { height: 30px; display: block; margin: 0 auto 6px; }

/* ---------- telefonas: lentelė -> kortelės */
.only-mobile { display: none; }
@media (max-width: 760px) {
  .top-in { padding: 8px 12px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand .t { font-size: 15px; }
  .brand .s { display: none; }
  .top-nav .btn { padding: 4px 8px; font-size: 12.5px; }
  .top-nav .btn.icon { padding: 4px 6px; }
  main { padding: 12px 10px 40px; }
  .only-mobile { display: inline-flex; }
  .no-mobile { display: none !important; }
  .row2 { grid-template-columns: 1fr; }
  .viewer { grid-template-columns: 1fr; }
  .viewer .img { max-height: 55vh; }
  .segment .btn { min-width: 0; flex: 1; }
  table.grid.cards thead { display: none; }
  table.grid.cards, table.grid.cards tbody, table.grid.cards tr, table.grid.cards td { display: block; width: 100%; }
  table.grid.cards tr { border-bottom: 1px solid var(--line); padding: 7px 8px 7px 46px; position: relative;
    min-height: 60px; }
  table.grid.cards td { border: none; padding: 1px 0; background: transparent !important; text-align: left; }
  table.grid.cards td.c-check { position: absolute; left: 10px; top: 46px; width: auto; }
  table.grid.cards td.c-thumb { position: absolute; left: 10px; top: 10px; width: auto; }
  table.grid.cards td.c-file, table.grid.cards td.c-ocr { display: none; }
  table.grid.cards td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 11.5px; }
  table.grid.cards td.st { display: inline-block; width: auto; border-radius: 12px; padding: 2px 10px;
    margin: 3px 4px 0 0; font-size: 11.5px; }
  table.grid.cards td.st.ok { background: var(--green-bg) !important; }
  table.grid.cards td.st.bad { background: var(--red-bg) !important; }
  table.grid.cards td.st.busy { background: var(--amber-bg) !important; }
  table.grid.cards td.st.gray { background: var(--gray-bg) !important; }
  table.grid.cards td.st .sub { text-align: left; margin: 0; }
  table.grid.cards td.c-act { margin-top: 6px; }
}

/* ---------- vienoda puslapių struktūra: antraštė, stulpeliai, blokai */
.page-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
.page-h h1 { font-size: 17px; margin: 0; }
.page-h .sys { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #334155; }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.st-dot.ok { background: #16a34a; } .st-dot.bad { background: var(--red); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: start; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.card-h { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); min-height: 40px; }
.card-h h2 { font-size: 13.5px; margin: 0; flex: 1; display: flex; align-items: center; gap: 6px; }
.card-a { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.card-b { padding: 10px 12px; }
.card.foldable > .card-h { cursor: pointer; user-select: none; }
.card.foldable > .card-h .card-a { cursor: default; }
.fold-t { border: none; background: none; padding: 0 2px; font-size: 12px; color: var(--muted); cursor: pointer; transition: transform .15s; }
.card.folded .fold-t { transform: rotate(-90deg); }
.card.folded > .card-b, .card.folded > .card-h .card-a { display: none; }
.card.folded > .card-h { border-bottom: none; }
.card-b .table-wrap { border: none; border-radius: 0; margin: 0 -12px; }
.card-b > .table-wrap:first-child, .card-b > div:first-child > .table-wrap:first-child { margin-top: -10px; }
.card-b .table-wrap:last-child { margin-bottom: -10px; }
.sd { white-space: nowrap; }
.card-b h3 { font-size: 12.5px; margin: 12px 0 6px; color: #334155; }
.card-b p { margin: 0 0 8px; }
.count { background: var(--gray-bg); color: var(--muted); border-radius: 10px; padding: 0 7px; font-size: 11.5px; font-weight: 600; }
.count.red { background: var(--red-bg); color: var(--red); }
.red { color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; border-left: 3px solid var(--accent); }
.stat .v { font-size: 20px; font-weight: 600; line-height: 1.2; }
.stat .l { color: var(--muted); font-size: 11.5px; }
.stat.ok { border-left-color: #16a34a; } .stat.busy { border-left-color: #d97706; } .stat.bad { border-left-color: var(--red); }
.stat.bad .v { color: var(--red); }
.list { display: flex; flex-direction: column; }
.list .li { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid #eef2f7; }
.list .li:last-child { border-bottom: none; }
.list .li.done { opacity: .55; }
.li-main { flex: 1; min-width: 0; }
.li-main .msg { color: #475569; font-size: 12.5px; margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.li-main .when { color: var(--muted); font-size: 11.5px; margin-left: 6px; }
.li-act { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0; }
.inline-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.inline-form .inp { width: auto; flex: 1 1 160px; padding: 5px 8px; }
.inline-form .btn { flex: 0 0 auto; }
.inp.search { width: 170px; padding: 3px 8px; }
.form-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-foot .inp { width: auto; flex: 0 1 220px; padding: 4px 8px; }
.form-foot .grow { flex: 1; }
.btn-col { display: flex; flex-direction: column; gap: 6px; }
.btn-col .btn { justify-content: center; }
label.check { display: flex; gap: 7px; align-items: center; margin-bottom: 6px; cursor: pointer; }
.mono { font-family: Consolas, monospace; font-size: 15px; }
.empty.small { padding: 14px; }
tr.link { cursor: pointer; }
td.act { white-space: nowrap; text-align: right; }
th.num { text-align: right; }
.card .segment .btn { min-width: 0; flex: 1; justify-content: center; }
.card .segment { display: flex; }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tb-right { align-items: stretch; width: 100%; }
  .tb-btns, .tb-opts { justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-h .sys { margin-left: 0; }
  .inp.search { width: 120px; }
}

/* ---------- įrankių juostos varnelės */
.tb-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tb-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tb-opts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
label.tg { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); cursor: pointer;
  white-space: nowrap; border: 1px solid transparent; border-radius: 4px; padding: 0 4px; }
label.tg input { width: 12px; height: 12px; }
label.tg:has(input:checked) { color: #01587c; }

/* ---------- robotukas „Mes perimame tavo darbus“ */
.robot-modal .modal-h { border-bottom: none; position: absolute; right: 0; top: 0; background: transparent; }
.robot-modal .modal { position: relative; max-width: 460px; }
.robot-box { text-align: center; padding: 4px 8px 10px; }
.robot-box h2 { font-size: 19px; margin: 6px 0 8px; color: var(--accent); }
.robot-box p { margin: 0 0 8px; font-size: 13.5px; }
.robot-checks { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: fit-content; margin: 6px auto 12px; }
.robot-checks .check { margin: 0; }
.robot-box .btn.primary { padding: 7px 26px; }
.robot-art { width: 260px; max-width: 100%; height: auto; display: block; margin: 0 auto; overflow: visible; }
.rb-chair { transform-box: view-box; transform-origin: 88px 160px; animation: rb-spin 7s ease-in-out infinite; }
.rb-arm { transform-box: view-box; transform-origin: 102px 90px; animation: rb-type .35s ease-in-out infinite alternate; }
.rb-eyes circle { transform-box: fill-box; transform-origin: center; animation: rb-blink 4s infinite; }
.rb-ant { animation: rb-pulse 1.2s ease-in-out infinite; }
.cl { transform-box: fill-box; transform-origin: left center; animation: rb-code 2.4s ease-in-out infinite; }
.c2 { animation-delay: .3s; } .c3 { animation-delay: .6s; } .c4 { animation-delay: .9s; }
.rb-sparks .sp1 { animation: rb-float 2.6s ease-out infinite; }
.rb-sparks .sp2 { animation: rb-float 2.6s ease-out 1.3s infinite; }
@keyframes rb-spin {
  0%, 100% { transform: rotate(-2deg); } 25% { transform: rotate(2deg); } 50% { transform: rotate(-2deg); }
  62% { transform: scaleX(1); } 68% { transform: scaleX(.05); } 74% { transform: scaleX(-1); }
  80% { transform: scaleX(.05); } 86% { transform: scaleX(1); }
}
@keyframes rb-type { from { transform: rotate(-3deg); } to { transform: rotate(2deg); } }
@keyframes rb-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes rb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes rb-code { 0% { transform: scaleX(.1); opacity: .4; } 40%, 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(.1); opacity: .4; } }
@keyframes rb-float { 0% { transform: translateY(14px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-22px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .rb-chair, .rb-arm, .rb-eyes circle, .rb-ant, .cl, .rb-sparks * { animation: none; }
}

/* ---------- meniu piktogramos */
.btn.icon { padding: 4px 7px; }
.btn.icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; display: block; }

/* ---------- nepilnai nuskaityti čekiai, pavyzdžiai */
.hint.under { margin-top: 8px; }
.scan-modal .modal { max-width: 600px; }
.scan-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; margin: 8px 0 12px; }
.scan-row { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-bottom: 1px solid #eef2f7; font-size: 13px; }
.scan-row:last-child { border-bottom: none; }
.scan-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.choice { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; font: inherit; color: var(--text); }
.choice:hover { border-color: var(--accent); background: #f5fbfd; }
.choice b { font-size: 14px; color: var(--accent); }
.choice span { font-size: 12.5px; color: #475569; }
.choice.main { border-color: var(--accent); }
table.grid.mini { margin-top: 6px; font-size: 12px; }
.stats.st-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.stats.st-tiles .stat .v { font-size: 16px; }
.stats.st-tiles .stat .v small { font-size: 11px; font-weight: 500; }
table.grid th.num { text-align: right; }
.plan-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.plan-opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.plan-opt:has(input:checked) { border-color: var(--accent); background: #f5fbfd; }
.plan-opt span { display: flex; flex-direction: column; } .plan-opt small { color: var(--muted); font-size: 11.5px; }
.pm-row { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 8px; } .pm-row label.f { margin: 0; max-width: 220px; }
.pm-until { font-size: 12.5px; color: #334155; padding-bottom: 8px; }
td.nw { white-space: nowrap; }
.comp { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.comp.none { border: 1px solid #fca5a5; background: var(--red-bg); border-radius: 8px; padding: 8px 10px; }
.comp.none .li { border-color: #fecaca; }
.comp.none .chip.bad { background: #fff; }
.plan-chip.plan-top { font-size: 12px; padding: 4px 10px; white-space: nowrap; }
.plan-chip.plan-mob { display: none; }
@media (max-width: 760px) { .plan-chip.plan-top { display: none; } .plan-chip.plan-mob { display: inline-flex; } }
.q-h { font-weight: 600; font-size: 12.5px; margin-top: 8px; }
.li .chips { margin: 3px 0; }
.list .li.dev { flex-wrap: wrap; row-gap: 0; }
.dev-bottom { flex-basis: 100%; display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; margin-top: 2px; white-space: nowrap; }
.dev-opts { display: inline-flex; flex-wrap: nowrap; gap: 8px; align-items: center; font-size: 12px; color: #475569; }
.dev-btns { display: inline-flex; gap: 4px; margin-left: auto; padding-left: 16px; }   /* „Atšaukti“ – atskirai dešinėje */
.dev-confirm { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.dev-opts .pe svg { width: 13px; height: 13px; fill: #f59e0b; margin-right: -2px; }
.li-act.dev-meta { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.35; }
.li-act .ip { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.dev-opts select.inp { padding: 1px 4px; height: 22px; font-size: 12px; width: auto; }
.dev-opts label { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; white-space: nowrap; }
.comp-msg { color: var(--red); font-weight: 600; font-size: 13px; }
.st-h { font-size: 12.5px; margin: 12px 0 2px; color: #334155; }
select.inp.sm { padding: 3px 6px; font-size: 12px; width: auto; }
table.grid.mini td, table.grid.mini th { padding: 3px 6px; font-size: 12px; }
.mail-prev { border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: #fff; max-height: 60vh; overflow: auto; }
.mail-text { max-height: none; background: transparent; border: none; }
.ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ex-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .scan-choice { grid-template-columns: 1fr; } }

/* ---------- žalia varnelė (padėka) */
.ok-check { width: 96px; height: 96px; display: block; margin: 6px auto 4px; }
.ok-c { transform-box: fill-box; transform-origin: center; animation: ok-pop .35s ease-out both; }
.ok-p { stroke-dasharray: 70; stroke-dashoffset: 70; animation: ok-draw .45s .25s ease-out forwards; }
@keyframes ok-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ok-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ok-c, .ok-p { animation: none; stroke-dashoffset: 0; } }

/* 2FA susiejimas */
.totp-steps { margin: 0 0 10px; padding-left: 20px; font-size: 13px; }
.totp-steps li { margin-bottom: 4px; }
.totp-qr { text-align: center; margin: 8px 0; }
.totp-qr img { width: 200px; height: 200px; image-rendering: pixelated; background: #fff; border-radius: 6px; }
.auth-demo h1 { font-size: 18px; margin-top: 0; }

/* ---------- įmonės pasirinkimas įkeliant (įmonių grupė) */
.co-modal .modal { max-width: 460px; }
.co-modal #coQ { margin-bottom: 8px; }
.co-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.co-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; font: inherit;
  color: var(--text); background: #fff; border: 1px solid var(--line2); border-radius: 8px; padding: 9px 12px; cursor: pointer; }
.co-item:hover { border-color: var(--accent); background: #f5fbfd; }
.co-item small { color: var(--muted); font-size: 12px; }

/* ---------- „Likti prisijungus 7 d.“; meniu piktogramos telefone – dešinėje */
label.check.remember { align-items: flex-start; margin: 2px 0 8px; font-size: 13px; }
label.check.remember small { display: block; color: var(--muted); font-size: 11.5px; }
.top-nav { margin-left: auto; justify-content: flex-end; }
@media (max-width: 760px) { .brand { margin-right: 0; min-width: 0; } .top-nav { flex-wrap: nowrap; } }

/* ---------- jau atsisiųsta sąskaita */
.btn.inv-dl.done { color: var(--green); border-color: #86efac; background: var(--green-bg); }
.choice:disabled { opacity: .5; cursor: default; }

/* ---------- administratoriui: kliento pataisyti laukai */
td.fixed { background: #fef9c3; }
small.was { color: #92400e; font-size: 11px; white-space: nowrap; }
td.aifixed { background: #e0f2fe; }
.chip.ai { background: #e0f2fe; color: #075985; }
/* ---------- instrukcija */
ol.guide { counter-reset: g; list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-direction: column; gap: 12px; }
ol.guide li { counter-increment: g; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
ol.guide .g-ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: #e6f4f8; color: var(--accent);
  display: flex; align-items: center; justify-content: center; position: relative; }
ol.guide .g-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
ol.guide .g-ic::after { content: counter(g); position: absolute; top: -5px; left: -5px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
ol.guide b { font-size: 13.5px; } ol.guide .g-d { font-size: 13px; color: #475569; line-height: 1.55; }
.g-btn { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 5px; padding: 0 6px;
  font-size: 11.5px; line-height: 19px; background: #fff; color: #334155; white-space: nowrap; vertical-align: 1px; }
.g-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.g-btn.plain { border-style: dashed; }
.g-btn.icon { padding: 0 3px; } .g-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.g-opt { display: block; margin-top: 4px; }
