/* Портал НПУ: доповнення до стилів порталу ДВВ (app.css не змінюється) */
/* Герб — кругла іконка сервера НПУ (зображення без змін) */
img.npuemblem { border-radius: 50%; object-fit: cover; }
.brand img.npuemblem { width: 46px; height: 46px; }
.login .left img.npuemblem.big, .login img.big { width: 150px; height: 150px; }
.sheet .arms.npuemblem { width: 74px; height: 74px; margin: 0 auto 14px; }
.sheet.mini .arms.npuemblem { width: 44px; height: 44px; }
.sheet.npu .sign .rank { font-weight: 400; font-size: 12.5px; margin-top: 3px; }
.sheet.npu p.addr { margin-bottom: 10px; }
/* Таблиці балів, підсумки, живий перегляд документа */
.lines { white-space: pre-line; }
.livepv { min-width: 0; }
.livepv .pages, .livepv .sheet { margin: 0 auto; }
/* Чекліст і рядки заявок (з порталу ЕМД) */
.check { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 10px 16px; border-bottom: 1px solid var(--rule-2); }
.check:last-child { border-bottom: 0; }
.check .ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--canvas-2); color: var(--ink-3); }
.check .ok.on { background: var(--green-bg); color: var(--green); }
.check .tt { font-size: 14px; }
.reqrow { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule-2); cursor: pointer; }
.reqrow:hover { background: var(--canvas); }
.reqrow:last-child { border-bottom: 0; }
.reqrow .tt { font-weight: 600; }
.reqrow .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.dl2 { display: grid; grid-template-columns: 190px 1fr; gap: 6px 14px; font-size: 14px; }
.dl2 dt { color: var(--ink-3); }
.dl2 dd { margin: 0; word-break: break-word; white-space: pre-line; }
.typebtns { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.typebtns button { text-align: left; padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: var(--r); cursor: pointer; }
.typebtns button:hover:not([disabled]) { border-color: var(--navy-3); }
.typebtns button[disabled] { opacity: .55; cursor: not-allowed; }
.typebtns b { display: block; font-size: 14px; }
.typebtns span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.guardok { color: var(--green); font-weight: 600; }
.sigbox { display: flex; align-items: center; justify-content: center; min-height: 110px; border: 1px dashed var(--rule); border-radius: var(--r); background: #fbf7ee; padding: 10px; }
.sigbox img { max-height: 90px; max-width: 100%; }
html[data-theme="dark"] .sigbox { background: #fff; }
@media (max-width: 640px) {
  .dl2 { grid-template-columns: 1fr; gap: 2px; }
  .dl2 dd { margin-bottom: 8px; }
  .typebtns { grid-template-columns: 1fr; }
  .reqrow { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .brand img.npuemblem { width: 34px; height: 34px; flex: none; } }
@media (max-width: 640px) { .login .left img.npuemblem.big { width: 64px; height: 64px; } }
/* Наказ: емблема НП (зі зразка) над шапкою */
.sheet .arms.nstar { width: 76px; height: 76px; object-fit: contain; margin: 0 auto 12px; }
.sheet.mini .arms.nstar { width: 44px; height: 44px; }
/* Постанова / орієнтування УВБ — за зразком УВБ01/26 */
.sheet.npu.uvb { padding: 56px 70px 52px 78px; font-size: 15px; line-height: 1.32; }
.sheet.npu.uvb .uhead { display: grid; grid-template-columns: 1.12fr 1fr; gap: 22px; align-items: end; margin-bottom: 26px; }
.sheet.npu.uvb .ul { text-align: center; font-size: 14.2px; line-height: 1.3; letter-spacing: .01em; }
.sheet.npu.uvb .ul .ustar { display: block; width: 92px; height: 92px; object-fit: contain; margin: 0 auto 10px; }
.sheet.npu.uvb .ur { font-weight: 700; font-size: 14.6px; line-height: 1.34; }
.sheet.npu.uvb .utitle { text-align: center; font-weight: 700; font-size: 15.6px; margin-top: 6px; }
.sheet.npu.uvb .utitle span { font-weight: 700; }
.sheet.npu.uvb .utitle span.n { font-weight: 400; }
.sheet.npu.uvb .usubj { text-align: center; font-weight: 700; font-size: 15.6px; margin: 2px 24px 16px; }
.sheet.npu.uvb .usec { font-weight: 700; text-transform: uppercase; margin: 12px 0 4px; }
.sheet.npu.uvb p.uline { margin-bottom: 3px; }
.sheet.npu.uvb p.uwarn { text-indent: 0; text-align: center; color: #c0161b; font-weight: 700; text-decoration: underline; margin: 16px 20px; }
.sheet.npu.uvb .usign { grid-template-columns: 1fr 210px; min-height: 170px; }
.sheet.npu.uvb .usign .pos { max-width: 330px; font-size: 14.4px; line-height: 1.3; }
.sheet.npu.uvb .useal { position: absolute; left: 30px; top: 58px; width: 150px; height: 148px; object-fit: contain; mix-blend-mode: multiply; transform: rotate(-4deg); pointer-events: none; }
.sheet.mini.npu.uvb .uhead { gap: 10px; margin-bottom: 12px; }
.sheet.mini.npu.uvb .ul .ustar { width: 44px; height: 44px; }
/* Phones: the «ПРОЄКТ» watermark of a narrow sheet stays inside the sheet (it was cut at the edge) */
@media (max-width: 640px) { .sheet .wm { font-size: 46px; border-width: 4px; padding: 4px 14px; } }
