/* SąmatosPRO v2 — profesionalų redaktoriaus (app.html) vizualinis sluoksnis.
   Kraunamas PO app.html vidiniais stiliais. Tik išvaizda: jokios logikos, jokio DOM keitimo.
   Visos taisyklės – @media screen, todėl PDF / spausdinimo išvaizda nepaliesta (išskyrus šriftą). */
body{font-family:var(--ff)}
:root{--gold-gradient:linear-gradient(135deg,#4F46E5 0%,#4338CA 100%)}
button,input,select,textarea{font-family:inherit}
@media screen{
/* ---- prekės ženklas: tas pats ženklas kaip svetainėje ---- */
.ev2-brand-mark svg{display:none}
.ev2-brand-mark{position:relative;width:28px;height:28px;border-radius:7px}
.ev2-brand-mark::before,.ev2-brand-mark::after{content:"";position:absolute;left:7px;height:3px;border-radius:2px;background:#fff}
.ev2-brand-mark::before{top:9px;width:14px}.ev2-brand-mark::after{top:15px;width:9px}
.navbar .brand{display:inline-flex;align-items:center;gap:10px;font-weight:700;letter-spacing:-.02em}
@media (min-width:901px){.navbar .brand{display:none}}

/* ---- atšaukimo toastas ---- */
.toast.toast-undo{display:flex;align-items:center;gap:14px;pointer-events:auto;padding:6px 6px 6px 16px}
.toast-undo-btn{min-height:40px;padding:0 14px;border:0;border-radius:8px;background:rgba(255,255,255,.14);color:#fff;font:700 13px/1 var(--ff);cursor:pointer}
.toast-undo-btn:hover{background:rgba(255,255,255,.24)}
.toast-undo-btn:focus-visible{outline:2px solid #A5B4FC;outline-offset:2px}

/* ---- telefonas: eilutė = kortelė su tipu, kiekiu, vienetu, kaina, suma ---- */
@media (max-width:680px){
 html.editor-v2 #mainTable tr[data-row-type]{border-radius:12px}
 html.editor-v2 #mainTable td.row-sum{display:flex;align-items:center;gap:10px;font-size:16px !important;font-weight:700 !important;color:var(--ds-accent,#4F46E5);align-self:center}
 html.editor-v2 #mainTable td.row-sum::before{font-size:11.5px;font-weight:700;letter-spacing:.02em;padding:4px 9px;border-radius:999px;background:#EEF2FF;color:#3730A3}
 html.editor-v2 #mainTable tr[data-row-type="work"] td.row-sum::before{content:"Darbas"}
 html.editor-v2 #mainTable tr[data-row-type="material"] td.row-sum::before{content:"Medžiaga";background:#ECFDF5;color:#065F46}
 html.editor-v2 #mainTable .btn-delete,html.editor-v2 .container .btn-delete{width:44px;height:44px;min-height:44px !important;background-size:20px;justify-self:end;border-radius:10px}
}

/* ---- dokumento duomenų skirtukas telefone: pilno pločio laukai ---- */
@media (max-width:680px){
 html.editor-v2 .ev2-head > div:first-child{min-width:0 !important}
 html.editor-v2 #docTitle{font-size:14px !important;letter-spacing:0 !important;text-overflow:ellipsis}
 html.editor-v2 .ev2-head span:has(> #docNumber),html.editor-v2 .ev2-head span:has(> #docDate){display:block;flex:1 1 130px;min-width:0;font-size:13px !important;color:var(--text) !important}
 html.editor-v2 #docNumber,html.editor-v2 #docDate{width:100% !important;min-width:0;display:block !important;margin-top:4px}
 html.editor-v2 .ev2-head > .no-print{width:100% !important}
 html.editor-v2 #legalForm{width:100%}
}

/* ---- modalai telefone: patogūs paspaudimo plotai ---- */
@media (max-width:680px){
 #myEstimatesList .btn-action,#myPricesModal .btn-action{min-height:44px;min-width:44px}
 #myEstimatesList > div{gap:10px}
}

/* ---- vieningas fokuso žiedas (klaviatūrai) ---- */
:where(button,a,select,summary,[tabindex]):focus-visible{outline:2px solid #4F46E5;outline-offset:2px}
:where(.app-sidebar,.toast) :focus-visible{outline-color:#A5B4FC}
.btn-upgrade{box-shadow:0 6px 16px -8px rgba(79,70,229,.55)}
}

/* Meniu (☰ / paskyra) uždengiamas prilipusios dokumento antraštės (.etb, z-index 40):
   navbar buvo position:static + backdrop-filter → savo sluoksnis be z-index. */
.editor-v2 .navbar{position:relative;z-index:60}
