/* AudioLine platforma — papildinājumi tāmes rīka dizaina sistēmai (app.css) */

:root { --red2: #c62828; }
.app > .content, .app > .main, .app > .editor { min-height: 0; }
a { color: inherit; }
.grow { flex: 1; }
.small { font-size: 12.5px; }
.center { text-align: center; }
.neg { color: var(--red) !important; }
.pos { color: var(--green); }
.warnt { color: var(--orange); }
.pre { white-space: pre-wrap; margin: 0; }
textarea { width: 100%; resize: vertical; line-height: 1.45; }
select { cursor: pointer; }
.content-inner.wide { max-width: 1280px; }
.content-inner.narrow { max-width: 760px; }

/* ── Augšējā josla ── */
.brand { text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand .bt { color: var(--text2); font-weight: 500; }
.topnav { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.topnav::-webkit-scrollbar { display: none; }
.seg a { border: none; background: transparent; padding: 5px 14px; border-radius: 7px; font-weight: 500; color: var(--text2); transition: all .15s; text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--text); }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
:root[data-theme="dark"] .seg a.on { background: #3a3a3c; }
.topright { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bare { border: none; background: none; padding: 0; display: inline-flex; align-items: center; border-radius: 20px; }
.bare:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.menu button.on { background: var(--accent-soft); color: var(--accent-text); }
.menu .ml { flex: 1; }
.menu .mh { font-size: 11.5px; color: var(--text3); margin-left: 10px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head { padding: 8px 10px 6px; font-size: 12px; color: var(--text2); font-weight: 600; }

/* ── Pamatelementi ── */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 600; flex-shrink: 0; letter-spacing: .02em; }
.avatar.ghost { width: 26px; height: 26px; background: var(--surface3); color: var(--text3); font-size: 12px; border: 1px dashed var(--border2); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.sm { font-size: 10.5px; padding: 1px 7px; }
.badge.big { font-size: 12.5px; padding: 5px 11px; cursor: pointer; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-h h3 { margin: 0; }
.card h3 { font-size: 14px; }
.field small { font-size: 11px; }
.field select, .field input { width: 100%; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; margin-bottom: 10px; }
.formgrid.g3 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid2 .card { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border2); background: var(--surface); padding: 5px 11px; border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--text2); }
.chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.chips.sm .chip { font-size: 11.5px; padding: 2px 8px; }
.toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .tg { width: 34px; height: 20px; border-radius: 10px; background: var(--surface3); border: 1px solid var(--border2); position: relative; transition: background .15s; flex-shrink: 0; }
.toggle .tg::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.toggle input:checked + .tg { background: var(--green); border-color: var(--green); }
.toggle input:checked + .tg::after { transform: translateX(14px); }
.toggle input:focus-visible + .tg { box-shadow: 0 0 0 3px rgba(0,113,227,.25); }
.toggle.dis { opacity: .5; }
.toggles { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.psel { min-width: 170px; }
.psel.warn { border-color: var(--orange); color: var(--orange); }
.modal.wide { width: 640px; }
.modal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.modal textarea { margin-bottom: 12px; }
.modal .field { margin-bottom: 4px; }
.modal .formgrid input { margin-bottom: 0; }
.toast { display: flex; align-items: center; gap: 12px; }
.toast.err { background: var(--red); color: #fff; }
.toast button { border: none; background: none; color: inherit; font-weight: 700; text-decoration: underline; padding: 0; }
.empty .et { color: var(--text2); font-weight: 500; }
.progress { width: 140px; height: 6px; border-radius: 3px; background: var(--surface3); overflow: hidden; }
.progress div { height: 100%; background: var(--green); transition: width .3s; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.r { text-align: right; }

/* ── Pasākuma lapa ── */
.evpage .ehead .row2 .field:not(.grow) { min-width: 140px; }
.evtabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg); overflow-x: auto; flex-shrink: 0; scrollbar-width: none; }
.evtabs::-webkit-scrollbar { display: none; }
.evtabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px 9px; font-size: 13px; font-weight: 600; color: var(--text2); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.evtabs a:hover { color: var(--text); }
.evtabs a.on { color: var(--accent-text); border-bottom-color: var(--accent); }
.evtabs .cnt { font-size: 10.5px; background: var(--surface3); color: var(--text2); padding: 1px 7px; border-radius: 10px; font-family: var(--mono); font-weight: 600; }
.evtabs a.on .cnt { background: var(--accent); color: #fff; }
.evtabs .cnt.ok { background: var(--green-soft); color: var(--green); }
.evbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.evbody > .content { flex: 1; }
.versions .grow { flex: 1; }
.vfield { display: flex; align-items: center; gap: 6px; }
.vfield label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); font-weight: 600; }
.vfield input { padding: 4px 8px; width: 140px; font-size: 13px; }
.trow.faintrow { font-size: 12px; }
.trow.faintrow .l { color: var(--text3); }
.pipeline { display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.pstep { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border2); background: var(--surface); padding: 6px 13px 6px 7px; border-radius: 20px; font-weight: 500; color: var(--text2); font-size: 13px; }
.pstep .pn { width: 20px; height: 20px; border-radius: 50%; background: var(--surface3); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-family: var(--mono); }
.pstep.past { color: var(--text); }
.pstep.past .pn { background: var(--green-soft); color: var(--green); }
.pstep.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pstep.on .pn { background: rgba(255,255,255,.22); color: #fff; }
.ready { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ready li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.ready li:last-child { border-bottom: 0; }
.ready a { text-decoration: none; }
.ready a:hover { text-decoration: underline; }
.ready .rk { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.ready .ok .rk { background: var(--green-soft); color: var(--green); }
.ready .no .rk { background: var(--orange-soft); color: var(--orange); }
.ready .no a { font-weight: 500; }
.maplinks { display: flex; gap: 10px; font-size: 12.5px; }
.maplinks a { color: var(--blue); text-decoration: none; }

/* Komanda */
.crewlist { display: flex; flex-direction: column; gap: 10px; }
.crow { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; border-left: 3px solid var(--orange); }
.crow.st-confirmed { border-left-color: var(--green); }
.crow.st-declined { border-left-color: var(--red); opacity: .75; }
.crow.empty { border-left-color: var(--text3); border-style: dashed; border-left-style: solid; }
.cmain { display: flex; align-items: center; gap: 12px; }
.cwho { flex: 1; min-width: 0; }
.cwho .psel { font-weight: 600; border-color: transparent; background: transparent; padding-left: 4px; margin-left: -4px; max-width: 100%; }
.cwho .psel:hover { border-color: var(--border2); }
.csub { display: flex; gap: 12px; font-size: 12px; color: var(--text2); padding-left: 2px; flex-wrap: wrap; }
.csub a { color: var(--text2); text-decoration: none; }
.cstat { text-align: right; }
.cfields { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(220px, 1.6fr) minmax(220px, 1.6fr) minmax(150px, 190px) 110px; gap: 10px; margin-top: 10px; align-items: end; }
.pair { display: flex; gap: 6px; align-items: center; }
.pair input, .pair select { min-width: 0; }
.pair input[type=date] { flex: 1.4; }
.pair input[type=time] { flex: 1; }
.pair .num { width: 84px; flex-shrink: 0; text-align: right; }
.unit { color: var(--text3); font-size: 12px; }
.hbtn { flex-wrap: wrap; border: 1px solid var(--border2); background: var(--surface); border-radius: var(--radius-sm); padding: 6px 10px; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; width: 100%; justify-content: space-between; }
.hbtn.pend { border-color: var(--orange); }
.costv { padding: 7px 0; font-weight: 600; }
.hlist { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border2); }
.crewsum { display: flex; gap: 28px; justify-content: flex-end; padding: 16px 4px 0; flex-wrap: wrap; }
.crewsum div { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.crewsum span { font-size: 12px; }
.crewsum b { font-size: 17px; }
.hours { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.htable { border-collapse: collapse; font-size: 13px; width: 100%; }
.htable td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.htable .hact { text-align: right; white-space: nowrap; }
.htable .hact > * { margin-left: 4px; }
.htable .htot td { font-weight: 600; border-bottom: none; }
.hform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--surface2); padding: 12px; border-radius: var(--radius-sm); width: 100%; }
.hform .field input { width: auto; }
.hform .field.grow input { width: 100%; }
.hfa { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* Kontrolsaraksts */
.clcard { padding: 14px 16px 8px; }
.clitem { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.clitem:last-of-type { border-bottom: none; }
.clbox { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border2); background: var(--surface); color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.clbox:hover:not(:disabled) { border-color: var(--green); }
.clitem.done .clbox { background: var(--green); border-color: var(--green); }
.clitem.auto .clbox { border-style: dashed; cursor: default; }
.clitem.auto.done .clbox { border-style: solid; }
.clt { flex: 1; min-width: 0; }
.clin { width: 100%; border-color: transparent; background: transparent; padding: 4px 6px; margin-left: -6px; }
.clin:hover { border-color: var(--border2); }
.clitem.done .clin { color: var(--text2); text-decoration: line-through; text-decoration-color: var(--text3); }
.clmeta { font-size: 11px; color: var(--text3); }
.clwho { width: 150px; font-size: 12.5px; padding: 4px 6px; }
.clwho.none { color: var(--text3); }

/* Finanses */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--text); }
a.kpi:hover { box-shadow: var(--shadow); }
.kpi span { font-size: 12px; color: var(--text2); font-weight: 500; }
.kpi b { font-size: 24px; letter-spacing: -.02em; }
.kpi small { font-size: 11.5px; color: var(--text3); }
.kpi.pos b { color: var(--green); }
.kpi.neg b { color: var(--red); }
.kpi.warn { border-color: var(--orange); }
.kpi.warn b { color: var(--orange); }
.cmp { padding: 8px 0; border-bottom: 1px solid var(--border); }
.cmp:last-of-type { border-bottom: none; }
.cmp-h { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.cmp-h b { flex: 1; }
.cmp-r { display: grid; grid-template-columns: 50px 1fr 80px; gap: 10px; align-items: center; font-size: 12px; color: var(--text2); margin: 3px 0; }
.cmp-r .mono { text-align: right; }
.bar { height: 8px; background: var(--surface3); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--text3); border-radius: 4px; }
.cmp-r:last-child .bar i { background: var(--green); }
.cmp-r:last-child .bar i.over { background: var(--red); }
.ftable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ftable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.ftable td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ftable tr.tot td { font-weight: 700; border-bottom: none; border-top: 1px solid var(--border2); }
.ftable tr.off td { opacity: .45; }
.ftable.edit td { padding: 4px 6px; }
.ftable.edit input, .ftable.edit select { width: 100%; }
.ftable .num { text-align: right; }
.ftable a { text-decoration: none; font-weight: 500; }
.ftable a:hover { text-decoration: underline; }
.tscroll { overflow-x: auto; }
.rep td { white-space: nowrap; }
.invrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alert { margin-top: 10px; background: var(--red-soft); color: var(--red); padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 500; font-size: 13px; }

/* Faili */
.drop { border: 2px dashed var(--border2); border-radius: var(--radius); padding: 30px 20px; text-align: center; cursor: pointer; margin-bottom: 16px; transition: all .15s; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--surface); }
.drop:hover, .drop.on { border-color: var(--accent); background: var(--accent-soft); }
.drop .big { font-size: 30px; }
.flist { padding: 6px 14px; }
.frow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.frow:last-child { border-bottom: none; }
.fic { font-size: 20px; }
.fn { flex: 1; min-width: 0; font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn:hover { text-decoration: underline; }
.frow .iconbtn { text-decoration: none; }
.lrow { display: grid; grid-template-columns: 1fr 2fr auto auto; gap: 8px; margin-bottom: 6px; align-items: center; }

/* ── Saraksti ── */
.evrow { grid-template-columns: 1fr auto auto auto auto; text-decoration: none; color: var(--text); }
.evrow .date { display: flex; flex-direction: column; align-items: flex-end; min-width: 110px; }
.evrow .date small { font-size: 11px; color: var(--accent-text); font-weight: 500; }
.evline { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.evline:last-child { border-bottom: none; }
.evline:hover .t { color: var(--accent-text); }
.dbox { width: 44px; height: 44px; border-radius: 10px; background: var(--surface3); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.dbox b { font-size: 17px; }
.dbox span { font-size: 10px; color: var(--text2); margin-top: 2px; }
.dbox.today { background: var(--accent); color: #fff; }
.dbox.today span { color: rgba(255,255,255,.8); }
.evmain { flex: 1; min-width: 0; }
.evmain .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evmain .d { font-size: 12.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evchips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mini { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: var(--surface3); color: var(--text2); font-family: var(--mono); white-space: nowrap; }
.mini.ok { background: var(--green-soft); color: var(--green); }
.mini.no { background: var(--orange-soft); color: var(--orange); }
.rel { min-width: 52px; text-align: right; }
.issues { display: flex; flex-direction: column; }
.issue { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); text-decoration: none; font-size: 13px; }
.issue:last-child { border-bottom: none; }
.issue:hover .it { text-decoration: underline; }
.issue .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--text3); }
.issue.lvl2 .dot { background: var(--orange); }
.issue.lvl3 .dot { background: var(--red); }
.issue.lvl3 .it { color: var(--red); font-weight: 600; }
.issue .it { font-weight: 500; }
.issue .ie { margin-left: auto; color: var(--text2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.allgood { color: var(--green); font-weight: 600; padding: 20px 0; }

/* ── Kalendārs ── */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); gap: 1px; }
.cal-h { background: var(--surface2); padding: 7px 8px; font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; }
.cal-d { background: var(--surface); min-height: 104px; padding: 5px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-d.out { background: var(--surface2); }
.cal-d.out .cal-n { color: var(--text3); }
.cal-d.we { background: color-mix(in srgb, var(--surface) 94%, var(--text)); }
.cal-n { font-size: 12px; font-weight: 600; color: var(--text2); padding: 2px 4px; font-family: var(--mono); align-self: flex-start; border-radius: 10px; }
.cal-d.today .cal-n { background: var(--accent); color: #fff; }
.cal-e { display: block; font-size: 11.5px; padding: 3px 6px; border-radius: 5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--surface3); color: var(--text); border-left: 3px solid var(--text3); }
.cal-e:hover { filter: brightness(.96); }
.cal-e b { font-family: var(--mono); font-weight: 600; font-size: 10.5px; }
.cal-e.cont { opacity: .7; }
.s-inquiry { border-left-color: var(--text3) !important; background: var(--surface3); border-style: dashed; }
.s-quoted { border-left-color: var(--blue) !important; background: rgba(0,113,227,.09); }
.s-confirmed { border-left-color: var(--green) !important; background: var(--green-soft); }
.s-done { border-left-color: var(--orange) !important; background: var(--orange-soft); }
.s-invoiced { border-left-color: var(--accent) !important; background: var(--accent-soft); }
.s-paid { border-left-color: var(--green) !important; background: var(--surface3); }
.cal-e.mine { font-weight: 600; }
.cal-e.cw { box-shadow: inset 0 0 0 1px var(--accent); }
.cal-more { font-size: 11px; color: var(--text3); padding-left: 6px; }
.agenda { display: none; margin-top: 16px; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.legend .lg { font-size: 11.5px; padding: 2px 9px; border-radius: 5px; border-left: 3px solid; }

/* ── Mani darbi un call sheet ── */
.sech { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); margin: 22px 0 8px; }
.workcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 14px; margin-bottom: 8px; border-left: 3px solid var(--orange); }
.workcard.st-confirmed { border-left-color: var(--green); }
.workcard.st-declined { border-left-color: var(--red); opacity: .7; }
.workcard .evline { border-bottom: none; }
.wbtns { display: flex; align-items: center; gap: 8px; padding: 0 0 12px 56px; flex-wrap: wrap; }
.wbtns .faint { margin-right: auto; }
.calhint { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); border-color: transparent; }
.calhint > div { flex: 1; }
.cs .card { margin-bottom: 12px; }
.cs-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cs-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.cs-head h1 { font-size: 24px; margin: 0 0 3px; letter-spacing: -.02em; }
.cs-date { width: 64px; height: 64px; border-radius: 14px; background: var(--accent); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.cs-date b { font-size: 26px; }
.cs-date span { font-size: 12px; margin-top: 3px; opacity: .85; }
.mycard { border-left: 3px solid var(--orange); }
.mycard.st-confirmed { border-left-color: var(--green); }
.mygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.mygrid div { display: flex; flex-direction: column; gap: 2px; }
.mygrid b { font-size: 18px; }
.mybtns { display: flex; gap: 10px; }
.btn.big { padding: 12px 20px; font-size: 15px; flex: 1; justify-content: center; }
.myhours { margin-top: 6px; }
.tl { display: flex; flex-direction: column; }
.tli { display: flex; gap: 14px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--border); }
.tli:last-child { border-bottom: none; }
.tli b { font-size: 16px; min-width: 52px; }
.cs-addr b { font-size: 15px; }
.maps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.maps .btn { text-decoration: none; }
.contact { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.contact:last-child { border-bottom: none; }
.contact > .faint:first-child { min-width: 110px; font-size: 12.5px; }
.contact b { flex: 1; }
.contact .btn { text-decoration: none; }
.docl { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); text-decoration: none; font-weight: 500; }
.docl:last-child { border-bottom: none; }

/* ── Cilvēki ── */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pcard.off { opacity: .55; }
.pc-top { display: flex; align-items: center; gap: 10px; }
.pc-n { flex: 1; min-width: 0; }
.pc-info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pc-info a { color: var(--blue); text-decoration: none; }
.pc-warn { font-size: 12px; color: var(--orange); background: var(--orange-soft); padding: 6px 10px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ── Iestatījumi ── */
.sidebar a.folder { text-decoration: none; }
.phin { font-weight: 600; font-size: 14px; border-color: transparent; background: transparent; padding: 3px 6px; margin-left: -6px; }
.phin:hover { border-color: var(--border2); }
.tplrow { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tplrow input { flex: 1; }
.trow2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.trow2:last-child { border-bottom: none; }
.revlist { max-height: 50vh; overflow-y: auto; margin-bottom: 12px; }
.steps { padding-left: 20px; color: var(--text2); font-size: 13px; line-height: 1.6; }
.steps b { color: var(--text); }

/* ── Pieteikšanās ── */
.authwrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); }
.authcard { width: 380px; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.authcard form { display: flex; flex-direction: column; gap: 12px; }
.authcard h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.02em; }
.authcard p { margin: 0; }
.authlogo { height: 34px; display: block; margin-bottom: 18px; }
:root[data-theme="dark"] .authlogo { filter: invert(1); }
.btn.block { width: 100%; justify-content: center; padding: 10px; }

/* ── Pielāgošana ── */
@media (max-width: 1180px) {
  .cfields { grid-template-columns: 1fr 1fr 1fr; }
  .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newbtn .nt { display: none; }
}
@media (max-width: 900px) {
  .grid2 { grid-template-columns: 1fr; }
  .brand .bt, .savestate .sl { display: none; }
  .savestate { padding: 6px; }
  .topbar { gap: 8px; padding: 0 10px; }
}
@media (max-width: 760px) {
  .content { padding: 14px 14px 80px; }
  .pagehead h1 { font-size: 22px; }
  .search input { width: 100%; }
  .search { flex: 1 1 100%; }
  .evrow { grid-template-columns: 1fr auto; }
  .evrow > .vers, .evrow > .avatar, .evrow > .sum { display: none; }
  .ehead .row2 .field, .evpage .ehead .row2 .field:not(.grow) { min-width: calc(50% - 6px); flex: 1 1 calc(50% - 6px); }
  .ehead .row1 .name { font-size: 17px; min-width: 0; }
  .cfields { grid-template-columns: 1fr 1fr; }
  .cfields > :nth-child(2), .cfields > :nth-child(3) { grid-column: span 2; }
  .kpis, .kpis.k4 { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 20px; }
  .cal-d { min-height: 54px; padding: 2px; }
  .cal-e { font-size: 0; padding: 0; height: 6px; border-left-width: 0; border-radius: 3px; }
  .cal-e b { display: none; }
  .cal-more { font-size: 9px; }
  .agenda { display: block; }
  .legend { display: none; }
  .wbtns { padding-left: 0; }
  .lrow { grid-template-columns: 1fr auto; }
  .lrow input:nth-child(2) { grid-column: 1; }
  .clwho { width: 96px; }
  .frow { flex-wrap: wrap; }
  .crewsum { justify-content: space-between; gap: 12px; }
  .hfa { width: 100%; justify-content: flex-end; }
  .people { grid-template-columns: 1fr; }
  .vfield { display: none; }
  .modal.wide { width: 100%; }
  .modal { max-height: 90vh; overflow-y: auto; }
  .issue .ie { max-width: 40%; }
  .topnav a { padding: 5px 10px; }
  .brand img { height: 22px; }
}
@media print {
  .topbar, .cs-top, .mybtns, .hours .btn, .hfa { display: none !important; }
  #root, .app { height: auto; overflow: visible; }
  .content { overflow: visible; padding: 0; }
  .card { break-inside: avoid; box-shadow: none; }
  body { background: #fff; }
}

/* ── Labojumi ── */
.btn, a.btn, a.iconbtn { text-decoration: none; }
.card > input { width: 100%; }
.hlist2 { display: flex; flex-direction: column; width: 100%; }
.hent { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--border); align-items: center; }
.hmain { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.hmain .hh { margin-left: auto; }
.hsub { grid-column: 1; font-size: 12px; color: var(--text3); }
.hent .hact { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 4px; align-items: center; }
.htot2 { display: flex; align-items: center; gap: 10px; padding: 8px 0 0; font-weight: 600; font-size: 13px; }
.htot2 b { margin-right: auto; }
@media (max-width: 760px) {
  .workcard .evline, .evline { flex-wrap: wrap; }
  .evline .evchips { order: 3; width: 100%; justify-content: flex-start; padding-left: 56px; margin-top: -2px; }
  .hmain .hh { margin-left: 0; }
}
