.scr-nustatymai .ns-note{margin-top:4px;padding:8px 12px;border-radius:8px;background:var(--warn-bg);color:var(--warn-t);font-weight:550;display:inline-block}
.scr-nustatymai .ns-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.scr-nustatymai .ns-b.wide{grid-column:1/-1}
.scr-nustatymai .ns-body{display:flex;flex-direction:column;gap:12px}
.scr-nustatymai .ns-save{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);display:flex;justify-content:flex-end}
.scr-nustatymai .ns-f{display:flex;flex-direction:column;gap:4px}
.scr-nustatymai .ns-f label{font-weight:600}
.scr-nustatymai .ns-f .select{width:100%}
.scr-nustatymai .ns-row3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.scr-nustatymai .ns-in{display:flex;align-items:center;gap:8px}
.scr-nustatymai .ns-in .input{max-width:80px;text-align:right}
.scr-nustatymai .ns-hours{display:flex;flex-direction:column;gap:6px}
.scr-nustatymai .ns-hr{display:flex;align-items:center;gap:10px}
.scr-nustatymai .ns-hr b{width:90px}
.scr-nustatymai .ns-hr .input{width:120px}
.scr-nustatymai .ns-sw{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:6px 0;border-bottom:1px solid var(--line);position:relative;cursor:pointer}
.scr-nustatymai .ns-sw:last-child{border-bottom:0}
.scr-nustatymai .ns-sw-t{display:flex;flex-direction:column}
.scr-nustatymai .ns-sw input{position:absolute;right:0;top:50%;width:48px;height:44px;margin:-22px 0 0;opacity:0;cursor:pointer}
.scr-nustatymai .ns-knob{flex:none;width:48px;height:28px;border-radius:99px;background:#6B6472;position:relative;transition:background .15s}
.scr-nustatymai .ns-knob::after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .15s}
.scr-nustatymai .ns-sw input:checked+.ns-knob{background:var(--ok-t)}
.scr-nustatymai .ns-sw input:checked+.ns-knob::after{transform:translateX(20px)}
.scr-nustatymai .ns-sw input:focus-visible+.ns-knob{outline:3px solid var(--blue);outline-offset:2px}
.scr-nustatymai .ns-tr{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;min-height:56px;border-bottom:1px solid var(--line);padding:6px 0}
.scr-nustatymai .ns-tpl .ns-tr:last-child{border-bottom:0}
.scr-nustatymai .ns-users .tbl td{height:56px}
.scr-nustatymai .ns-users .select{min-width:220px}
.scr-nustatymai .ns-uc{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-bottom:1px solid var(--line)}
.scr-nustatymai .ns-uc .select{width:100%}
@media (prefers-reduced-motion:reduce){.scr-nustatymai .ns-knob,.scr-nustatymai .ns-knob::after{transition:none}}
@media (max-width:1099px){.scr-nustatymai .ns-grid{grid-template-columns:1fr}}
@media (max-width:899px){
  .scr-nustatymai .ns-row3{grid-template-columns:1fr}
  .scr-nustatymai .ns-save .btn{width:100%}
  .scr-nustatymai .ns-hr{flex-wrap:wrap}
  .scr-nustatymai .ns-hr b{width:100%}
  .scr-nustatymai .ns-hr .input{flex:1;min-width:0;width:auto}
  .scr-nustatymai .ns-tr{grid-template-columns:1fr auto}
  .scr-nustatymai .ns-tr .btn{grid-column:1/-1}
}

/* ---- skirtukai, matricos, saugumas ---- */
.scr-nustatymai .ns-pan[hidden]{display:none}
.scr-nustatymai .ns-pan{display:flex;flex-direction:column;gap:16px}
.scr-nustatymai .ns-tabs{display:flex;gap:4px;border-bottom:2px solid var(--line);margin-bottom:16px}
.scr-nustatymai .ns-tabs button{min-height:48px;padding:0 18px;border:0;background:none;font-weight:600;color:var(--muted);border-bottom:3px solid transparent;margin-bottom:-2px;border-radius:6px 6px 0 0}
.scr-nustatymai .ns-tabs button[aria-selected=true]{color:var(--navy);border-bottom-color:var(--navy);font-weight:700}
.scr-nustatymai .ns-tabs button:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
@media (hover:hover){.scr-nustatymai .ns-tabs button:hover{background:rgba(255,255,255,.7);color:var(--navy)}}
.scr-nustatymai .ns-tsel{margin-bottom:16px}
.scr-nustatymai .ns-tsel .select{width:100%}
.scr-nustatymai .ns-link{color:var(--blue);font-weight:600}
.scr-nustatymai .ns-ip{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:10px;align-items:center}
.scr-nustatymai .ns-dev{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.scr-nustatymai .ns-dev:last-child{border-bottom:0}
.scr-nustatymai .ns-da{display:flex;gap:8px;flex:none}
.scr-nustatymai .ns-lg{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:10px 0;border-bottom:1px solid var(--line)}
.scr-nustatymai .ns-save2{display:flex;justify-content:flex-end}
/* matrica: rolė × nustatymas */
.scr-nustatymai .mx{display:flex;flex-direction:column}
.scr-nustatymai .mx-h,.scr-nustatymai .mx-r{display:grid;gap:10px;align-items:center}
.scr-nustatymai .mx-sg .mx-h,.scr-nustatymai .mx-sg .mx-r{grid-template-columns:minmax(150px,1.2fr) minmax(150px,1.2fr) .9fr 1.3fr .8fr 1fr}
.scr-nustatymai .mx-te .mx-h,.scr-nustatymai .mx-te .mx-r{grid-template-columns:minmax(150px,1.3fr) repeat(6,minmax(0,1fr))}
.scr-nustatymai .mx-pr .mx-h,.scr-nustatymai .mx-pr .mx-r{grid-template-columns:minmax(180px,1.6fr) repeat(4,minmax(0,1fr))}
.scr-nustatymai .mx-h{padding:0 0 8px;border-bottom:2px solid var(--line);color:var(--muted);font-weight:600;font-size:14px;line-height:1.3}
.scr-nustatymai .mx-h span:not(:first-child),.scr-nustatymai .mx-c .ns-sw.sm{text-align:center}
.scr-nustatymai .mx-r{min-height:60px;padding:4px 0;border-bottom:1px solid var(--line)}
.scr-nustatymai .mx-n{display:flex;flex-direction:column}
.scr-nustatymai .mx-n b{color:#1E1522}
.scr-nustatymai .mx-c{display:flex;justify-content:center;min-width:0}
.scr-nustatymai .mx-c .select{width:100%}
.scr-nustatymai .mx-sg .mx-c:first-of-type{justify-content:stretch}
.scr-nustatymai .ns-sw.sm{flex:none;min-width:48px;min-height:44px;width:48px;padding:0;border:0;justify-content:center}
.scr-nustatymai .ns-sw.sm input{right:0;left:0;margin:-22px 0 0;width:48px}
.scr-nustatymai .mx-c .ns-in .input{max-width:84px}
.scr-nustatymai .ns-sw input:disabled{cursor:not-allowed}
.scr-nustatymai .ns-sw input:disabled+.ns-knob{opacity:.55}
/* savęs užblokavimo patikra */
#mLock .lk{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:8px}
#mLock .lk .i{flex:none;width:22px;height:22px;margin-top:1px}
#mLock .lk.ok{background:var(--ok-bg);color:var(--ok-t)}
#mLock .lk.bad{background:var(--bad-bg);color:var(--bad-t)}
#mLock .lk-l{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
#mLock .lk-rec{border:1px solid var(--line);border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
@media (max-width:899px){
  .scr-nustatymai .mx-h{display:none}
  .scr-nustatymai .mx-r,.scr-nustatymai .mx-sg .mx-r,.scr-nustatymai .mx-te .mx-r,.scr-nustatymai .mx-pr .mx-r{grid-template-columns:1fr;gap:0;padding:12px 0}
  .scr-nustatymai .mx-n{padding-bottom:6px}
  .scr-nustatymai .mx-n b{font-size:var(--fs-h)}
  .scr-nustatymai .mx-c{justify-content:space-between;align-items:center;gap:12px;min-height:48px}
  .scr-nustatymai .mx-c::before{content:attr(data-l);font-weight:500;flex:1;min-width:0}
  .scr-nustatymai .mx-c .select{width:auto;min-width:150px;flex:none}
  .scr-nustatymai .ns-sw.sm{flex:none}
  .scr-nustatymai .ns-ip{grid-template-columns:1fr}
  .scr-nustatymai .ns-ip .badge{justify-self:start}
  .scr-nustatymai .ns-dev{flex-direction:column;align-items:stretch}
  .scr-nustatymai .ns-da .btn{flex:1}
  .scr-nustatymai .ns-save2 .btn{width:100%}
}
@media (max-width:420px){.scr-nustatymai .mx-c .select{min-width:130px}}

/* ---- Mano darbas: pokalbio vertinimas (ekranas #p-mano-darbas) ---- */
#p-mano-darbas .rate{background:#F5F1F6;border-left:4px solid var(--ok);border-radius:8px;padding:10px 14px;margin:8px 0}
#p-mano-darbas .rate h3{display:flex;align-items:center;gap:6px;margin-bottom:6px;color:var(--ok-t)}
#p-mano-darbas .rate-sc{margin-left:auto;font-weight:700;background:#fff;border-radius:99px;padding:0 10px}
#p-mano-darbas .rate ul{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-direction:column;gap:4px}
#p-mano-darbas .rate li{display:flex;gap:8px;align-items:flex-start}
#p-mano-darbas .rate li .i{flex:none;width:18px;height:18px;margin-top:2px;stroke-width:2.2}
#p-mano-darbas .rate li.y{color:var(--ok-t)}
#p-mano-darbas .rate li.n{color:var(--bad-t)}
#p-mano-darbas .rate li span{display:flex;flex-direction:column;color:var(--ink)}
#p-mano-darbas .rate li small{color:var(--bad-t);font-size:var(--fs-s)}
#p-mano-darbas .rate .sub{font-size:12px}
@media (max-width:767px){#p-mano-darbas #stSeg{display:flex;width:100%}#p-mano-darbas #stSeg button{flex:1;padding:0 4px;font-size:14px;line-height:1.2}}
