/* Kompaktní styl pro interní nástroje xx-neverejna-cast/tools */

body.tools-compact {
  max-width: 1500px;
  margin: 0 auto;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}

body.tools-compact h1 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: normal;
  line-height: 1.3;
}

body.tools-compact h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}

body.tools-compact h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 10px 0 6px;
  line-height: 1.3;
}

body.tools-compact p {
  font-size: inherit;
  margin: 4px 0 0;
}

body.tools-compact code {
  font-size: 0.92em;
}

body.tools-compact .muted,
body.tools-compact .muted2 {
  color: #64748b;
  font-size: 12px;
}

body.tools-compact .hero {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: none;
  margin-bottom: 10px;
}

body.tools-compact .hero h1 {
  margin-bottom: 2px;
}

body.tools-compact .hero p {
  color: #64748b;
  font-size: 12px;
}

body.tools-compact .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
}

body.tools-compact .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin: 8px 0;
}

body.tools-compact .toolbar label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #64748b;
}

body.tools-compact .toolbar .grow {
  flex: 1;
  min-width: 160px;
}

body.tools-compact .toolbar select,
body.tools-compact .toolbar input[type="text"],
body.tools-compact .toolbar input[type="search"],
body.tools-compact .toolbar input[type="date"],
body.tools-compact .toolbar input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  padding: 3px 7px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  min-height: 26px;
  background: #fff;
}

body.tools-compact .toolbar button,
body.tools-compact .btn,
body.tools-compact .btn-main,
body.tools-compact .btn-secondary {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

body.tools-compact .toolbar button {
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
}

body.tools-compact .toolbar .checkbox {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  font-size: 12px;
  color: inherit;
}

body.tools-compact .toolbar .checkbox input {
  margin: 0;
}

body.tools-compact .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

body.tools-compact .pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}

body.tools-compact .settings-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 8px;
}

body.tools-compact .settings-title {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 6px;
}

body.tools-compact .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0;
}

body.tools-compact .tab {
  display: block;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #dbe4ee;
  background: #fff;
  color: #334155;
  text-decoration: none;
  min-width: 88px;
}

body.tools-compact .tab b {
  display: block;
  font-size: 12px;
}

body.tools-compact .tab small {
  display: block;
  color: #64748b;
  font-size: 10px;
  line-height: 1.3;
}

body.tools-compact .tab.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

body.tools-compact .tab.active small {
  color: #ccfbf1;
}

body.tools-compact .tab.tab-warn {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

body.tools-compact .tab.tab-warn small {
  color: #b91c1c;
}

body.tools-compact .tab.tab-warn.active {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

body.tools-compact .tab.tab-warn.active small {
  color: #fecaca;
}

body.tools-compact .layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 10px;
}

body.tools-compact .card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: none;
  margin: 8px 0;
}

body.tools-compact .card.nested {
  padding: 8px 10px;
}

body.tools-compact .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.tools-compact .meta {
  display: grid;
  gap: 6px;
}

body.tools-compact .meta div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
}

body.tools-compact .meta b {
  display: block;
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
  font-weight: 600;
}

body.tools-compact .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0;
}

body.tools-compact .btn-main {
  background: #0f766e;
  color: #fff;
  border: 1px solid #0f766e;
}

body.tools-compact .btn-main:hover {
  background: #115e59;
}

body.tools-compact .btn-secondary {
  background: #f8fafc;
  color: #1d4ed8;
  border: 1px solid #dbe4ee;
}

body.tools-compact .pair-bulk {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
}
body.tools-compact .pair-bulk h2 {
  margin: 0 0 6px;
}
body.tools-compact .pair-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 0;
}
body.tools-compact .pair-bulk-ow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-left: 8px;
}
body.tools-compact .pair-bulk-result {
  border: 1px solid #86efac;
  background: #ecfdf5;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
}
body.tools-compact .pair-bulk-result.is-preview {
  border-color: #fcd34d;
  background: #fffbeb;
}
body.tools-compact .pair-bulk-result ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
  font-size: 12px;
  max-height: 240px;
  overflow: auto;
}
body.tools-compact .pair-prog {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  font-size: 13px;
}

body.tools-compact .stat-box b {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  color: #64748b;
}

body.tools-compact .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

body.tools-compact .warn,
body.tools-compact .err {
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
}

body.tools-compact .warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

body.tools-compact .err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

body.tools-compact .scroll {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

body.tools-compact table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

body.tools-compact th,
body.tools-compact td {
  border-bottom: 1px solid #e5e7eb;
  padding: 4px 6px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

body.tools-compact th {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 2;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #64748b;
}

body.tools-compact .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body.tools-compact .mono {
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

body.tools-compact .badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

body.tools-compact .badge-p {
  background: #dcfce7;
  color: #166534;
}

body.tools-compact .badge-d {
  background: #dbeafe;
  color: #1d4ed8;
}

body.tools-compact .badge-esc {
  background: #ffedd5;
  color: #9a3412;
}

body.tools-compact tr.escort {
  background: #fffbeb;
}

body.tools-compact .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #475467;
  margin: 8px 0;
}

body.tools-compact .legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.tools-compact .swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid #cbd5e1;
}

body.tools-compact .pill.ok-pill {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

body.tools-compact .pill.warn-pill {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

body.tools-compact .pill.diff-pill {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

body.tools-compact .pill.miss-pill {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #5b21b6;
}

body.tools-compact tr.row-ok {
  background: #f0fdf4;
}

body.tools-compact tr.row-diff {
  background: #fff7ed;
}

body.tools-compact tr.row-warn {
  background: #fffbeb;
}

body.tools-compact tr.row-neuctovat {
  background: #f1f5f9;
}

body.tools-compact tr.row-neuctovat-escort {
  background: #e2e8f0;
}

body.tools-compact tr.row-section-neuctovat td {
  background: #334155;
  color: #f8fafc;
  font-size: 12px;
  padding: 8px 10px;
  border-top: 2px solid #0f172a;
}

body.tools-compact tr.row-missing {
  background: #faf5ff;
}

body.tools-compact tr.row-escort {
  background: #fffbeb;
}

body.tools-compact tr.row-escort td {
  border-bottom: 1px solid #fde68a;
}

body.tools-compact .badge-ok {
  background: #dcfce7;
  color: #166534;
}

body.tools-compact .badge-diff {
  background: #ffedd5;
  color: #9a3412;
}

body.tools-compact .badge-warn {
  background: #fef3c7;
  color: #92400e;
}

body.tools-compact .badge-neuctovat {
  background: #cbd5e1;
  color: #0f172a;
}

body.tools-compact .neuctovat-pill {
  background: #e2e8f0;
  color: #0f172a;
}

body.tools-compact .badge-miss {
  background: #ede9fe;
  color: #5b21b6;
}

body.tools-compact .badge-hd {
  background: #ffedd5;
  color: #9a3412;
}

body.tools-compact .badge-ne {
  background: #f1f5f9;
  color: #64748b;
}

body.tools-compact .badge-import {
  background: #fef3c7;
  color: #92400e;
}

body.tools-compact td.wrap {
  white-space: normal;
  min-width: 110px;
  max-width: 160px;
}

body.tools-compact .kody {
  font-size: 9px;
  color: #64748b;
}

body.tools-compact .cell-excel {
  color: #78716c;
  font-style: italic;
}

body.tools-compact a.name-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #94a3b8;
}

body.tools-compact a.name-link:hover {
  color: #0f766e;
  border-bottom-color: #0f766e;
}

body.tools-compact .piu-navrh-btn {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #0f766e;
  background: #fff;
  color: #0f766e;
  cursor: pointer;
  line-height: 1.35;
  white-space: nowrap;
}
body.tools-compact .piu-navrh-btn:hover {
  background: #ecfdf5;
}
body.tools-compact .piu-navrh-btn.is-ok {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}

body.tools-compact .piu-navrh-cell {
  display: inline-flex;
  flex-direction: row;
  align-items: stretch;
  gap: 4px;
  vertical-align: middle;
}
body.tools-compact .piu-navrh-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.tools-compact .piu-navrh-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45em;
  height: 1.35em;
  padding: 0 3px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border-radius: 3px;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  color: #64748b;
  text-decoration: none;
  box-sizing: border-box;
}
body.tools-compact a.piu-navrh-ico.is-on {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #0f766e;
}
body.tools-compact a.piu-navrh-ico.is-on:hover {
  background: #d1fae5;
  color: #115e59;
}
body.tools-compact .piu-navrh-ico.is-off {
  opacity: 0.45;
  cursor: default;
}
body.tools-compact .piu-navrh-ico-e {
  align-self: stretch;
  min-height: calc(3 * 1.35em + 4px);
  font-size: 12px;
  border-color: #0f766e;
  background: #fff;
  color: #0f766e;
}
body.tools-compact .piu-navrh-ico-e.is-ok {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}
body.tools-compact .piu-navrh-ico-e.is-pair {
  background: #86efac;
  border-color: #16a34a;
  color: #14532d;
  font-weight: 800;
  box-shadow: 0 0 0 1px #bbf7d0;
}
body.tools-compact .piu-navrh-ico-e.is-pair.is-pair-name {
  background: #fde68a;
  border-color: #ca8a04;
  color: #713f12;
  box-shadow: none;
}
body.tools-compact .piu-navrh-ico-e.is-pair.is-ok {
  background: #4ade80;
}
.npw-stored-list {
  margin: 0 0 12px;
  padding-left: 1.2em;
}
.npw-stored-item {
  margin: 6px 0;
}
.npw-stored-item.is-missing {
  opacity: 0.65;
}
.npw-stored-item .btn-secondary {
  margin-left: 8px;
  vertical-align: middle;
}

.ndv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.ndv-tab {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  text-decoration: none;
}
.ndv-tab:hover {
  background: #f1f5f9;
}
.ndv-tab.is-active {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #115e59;
}
.ndv-sekce {
  margin: 18px 0 6px;
  font-size: 1.05rem;
}
.ndv-sekce-hint {
  margin: 0 0 8px;
}
.ndv-dl {
  margin: 0;
}
.ndv-row {
  display: grid;
  grid-template-columns: minmax(140px, 32%) 1fr;
  gap: 6px 14px;
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
}
.ndv-row dt {
  margin: 0;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
}
.ndv-row dd {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  word-break: break-word;
}
.ndv-isds {
  margin: 8px 0 12px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.ndv-files {
  margin: 0;
  padding-left: 1.2em;
}
.ndv-json {
  margin: 0;
  padding: 12px;
  max-height: min(70vh, 900px);
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 640px) {
  .ndv-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.piu-navrh-dialog {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0;
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}
.piu-navrh-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}
.piu-navrh-dialog form {
  margin: 0;
  padding: 16px 18px 18px;
}
.piu-navrh-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.piu-navrh-dialog h2 {
  margin: 0;
  font-size: 1.05rem;
}
.piu-navrh-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0 4px;
}
.piu-navrh-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.piu-navrh-name-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.piu-navrh-name-row code {
  flex: 1 1 220px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  word-break: break-all;
  font-weight: 500;
}
.piu-navrh-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.piu-navrh-ok {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #86efac;
  font-weight: 600;
}

.piu-zip-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 4px;
}
.piu-zip-item {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 12px;
}
.piu-zip-item:hover:not(.is-locked) {
  border-color: #0f766e;
  background: #f0fdfa;
}
.piu-zip-item.is-picked {
  border-color: #0f766e;
  background: #ecfdf5;
  box-shadow: 0 0 0 1px #0f766e;
}
.piu-zip-item.is-locked {
  cursor: default;
  opacity: 0.78;
  background: #f8fafc;
}
.piu-zip-kind {
  font-weight: 700;
  color: #0f766e;
}
.piu-zip-item.is-locked .piu-zip-kind {
  color: #64748b;
}
.piu-zip-name {
  font-family: Consolas, ui-monospace, monospace;
  word-break: break-all;
}
.piu-zip-meta {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}
.piu-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 8px 0 4px;
  max-height: none;
  overflow: visible;
  padding-bottom: 4px;
}
.piu-thumb {
  position: relative;
  width: 100%;
  max-width: 220px;
  border: 2px solid #cbd5e1;
  background: #fff;
  padding: 2px;
  border-radius: 8px;
  cursor: default;
  box-sizing: border-box;
}
.piu-thumb.is-on {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px #16a34a;
}
.piu-thumb.is-vyuctovani {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}
.piu-thumb.is-on.is-vyuctovani {
  border-color: #0f766e;
  box-shadow: 0 0 0 1px #0f766e;
}
.piu-thumb canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.piu-thumb > span.npw-strana-cislo {
  position: absolute;
  left: 4px;
  top: 4px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  z-index: 1;
}
.piu-thumb.is-on > span.npw-strana-cislo {
  background: #16a34a;
}
.npw-strana-volby {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 3px 3px;
  font-size: 10px;
  line-height: 1.2;
  color: #334155;
}
.npw-strana-volby label {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  margin: 0;
}
.npw-strana-volby input {
  margin-top: 1px;
  flex-shrink: 0;
}
.npw-strana-tools {
  display: flex;
  gap: 4px;
  padding: 4px 3px 0;
}
.npw-rotate {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.npw-rotate:hover {
  background: #e2e8f0;
}
.npw-rot-badge {
  position: absolute;
  right: 4px;
  top: 4px;
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  z-index: 1;
}
.npw-legend {
  margin: 0 0 8px;
  font-size: 12px;
}
.npw-leg-doc { font-weight: 700; color: #166534; }
.npw-leg-vyu { font-weight: 700; color: #1d4ed8; }
.npw-vysledek {
  border-color: #86efac !important;
  background: #f0fdf4 !important;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12);
}
.npw-vysledek h2 { color: #166534; }
.npw-vysledek .piu-navrh-ok {
  font-size: 1.05rem;
  margin: 8px 0 14px;
}

.npw-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1100px;
}
.npw-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px 16px;
}
.npw-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.npw-who {
  margin: 0 0 6px;
  font-weight: 600;
}
.npw-zip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 4px;
}
.npw-zfo-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
}
.npw-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.npw-file-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  border: 1px solid #dbe3ee;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.npw-file-card:hover {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.1);
}
.npw-file-card.is-picked {
  border-color: #0f766e;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
}
.npw-file-block {
  margin: 0 0 18px;
  padding: 10px 12px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  scroll-margin-top: 12px;
}
.npw-file-block.is-focus {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.18);
}
.npw-file-block-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}
.npw-file-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  max-height: none;
  overflow: visible;
}
.npw-file-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 54px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.npw-file-card.is-pdf .npw-file-icon {
  background: linear-gradient(160deg, #ef4444, #b91c1c);
}
.npw-file-card.is-image .npw-file-icon {
  background: linear-gradient(160deg, #8b5cf6, #6d28d9);
}
.npw-file-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}
.npw-file-kind {
  font-size: 12px;
  font-weight: 800;
  color: #0f766e;
}
.npw-file-name {
  font-size: 12px;
  font-family: Consolas, ui-monospace, monospace;
  color: #0f172a;
  word-break: break-all;
  line-height: 1.3;
}
.npw-file-meta {
  font-size: 11px;
  color: #64748b;
}
.npw-thumbs {
  max-height: none;
}
.npw-thumbs .piu-thumb {
  max-width: none;
}
.npw-thumbs .piu-thumb canvas,
.npw-thumbs .piu-thumb img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}
.npw-img-wrap {
  cursor: default;
  padding: 4px;
}
.npw-page-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 6px 0 10px;
}
.npw-isds {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.npw-isds-box {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px 12px;
}
.npw-isds-box h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.npw-dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 13px;
}
.npw-dl dt {
  color: #64748b;
  margin: 0;
}
.npw-dl dd {
  margin: 0;
  word-break: break-word;
}
.npw-isds-warn {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-weight: 600;
}
@media (max-width: 700px) {
  .npw-file-grid {
    grid-template-columns: 1fr;
  }
  .piu-thumbs,
  .npw-file-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .npw-dl {
    grid-template-columns: 1fr;
  }
}

.ndc-status {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 14px;
}
.ndc-status-OK { border-color: #86efac; background: #ecfdf5; }
.ndc-status-KONTROLA { border-color: #fcd34d; background: #fffbeb; }
.ndc-status-PROBLM,
.ndc-status-PROBLÉM { border-color: #fca5a5; background: #fef2f2; }
.ndc-issues { margin: 8px 0; padding-left: 18px; font-size: 13px; }
.ndc-errors { color: #b91c1c; }
.ndc-warnings { color: #a16207; }
.ndc-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ndc-docs { position: sticky; top: 8px; }
.ndc-doc-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ndc-doc-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 12px;
}
.ndc-doc-btn:hover:not(:disabled) { border-color: #0f766e; background: #f0fdfa; }
.ndc-doc-btn.is-missing { opacity: 0.65; cursor: default; }
.ndc-doc-name { font-family: Consolas, ui-monospace, monospace; word-break: break-all; }
.ndc-preview {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  min-height: 220px;
  padding: 8px;
  overflow: auto;
  max-height: 70vh;
}
.ndc-preview canvas,
.ndc-preview img { max-width: 100%; height: auto; display: block; }
.ndc-kroky {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.ndc-krok {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 110px;
  max-width: 160px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.ndc-krok.is-active { border-color: #0f766e; box-shadow: 0 0 0 1px #0f766e; background: #f0fdfa; }
.ndc-krok.is-hotovo { border-color: #86efac; background: #f0fdf4; }
.ndc-krok-cislo { font-size: 11px; font-weight: 800; color: #0f766e; }
.ndc-krok-nazev { font-size: 12px; font-weight: 700; line-height: 1.25; }
.ndc-krok-stav { font-size: 11px; }
.ndc-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.ndc-group-head h2 { margin: 0 0 4px; }
.ndc-group-napoveda { margin: 0; font-size: 13px; }
.ndc-group-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.ndc-field-list { display: flex; flex-direction: column; gap: 8px; }
.ndc-field {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
}
.ndc-field.is-active { border-color: #0f766e; box-shadow: 0 0 0 1px #0f766e; }
.ndc-field.is-verified { border-left: 3px solid #16a34a; }
.ndc-field.is-pending { border-left: 3px solid #f59e0b; }
.ndc-field-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.ndc-nazev { font-size: 14px; font-weight: 700; color: #0f172a; }
.ndc-path { font-size: 11px; color: #64748b; }
.ndc-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  background: #e2e8f0;
}
.ndc-conf-high { background: #dcfce7; color: #166534; }
.ndc-conf-medium { background: #fef3c7; color: #92400e; }
.ndc-conf-low { background: #fee2e2; color: #991b1b; }
.ndc-verify { font-size: 12px; margin-left: auto; cursor: pointer; }
.ndc-value {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
}
.ndc-meta { font-size: 11px; margin-top: 4px; }
.ndc-pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 6px;
  overflow: auto;
  max-height: 240px;
  font-size: 12px;
}
@media (max-width: 900px) {
  .ndc-layout { grid-template-columns: 1fr; }
  .ndc-docs { position: static; }
  .ndc-group-head { flex-direction: column; }
  .ndc-group-nav { flex-direction: column; }
}

@media (max-width: 1100px) {
  body.tools-compact .layout {
    grid-template-columns: 1fr;
  }

  body.tools-compact .grid2 {
    grid-template-columns: 1fr;
  }
}

body.tools-compact .vyzp-fakt-table .vyzp-edit {
  font: inherit;
  font-size: 11px;
  max-width: 11em;
  padding: 2px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
}
body.tools-compact .vyzp-fakt-table input.vyzp-edit {
  width: 4.2em;
  text-align: center;
}
body.tools-compact .vyzp-fakt-table .vyzp-edit-pobocka {
  max-width: 18em;
  min-width: 12em;
}
body.tools-compact .vyzp-fakt-table tr.row-warn td {
  background: #fff7ed;
}
body.tools-compact .vyzp-edit-status {
  min-height: 1.2em;
  margin: 8px 0 0;
}

body.tools-compact .vyzp-ucty-switch {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
body.tools-compact .vyzp-ucty-switch a {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-right: 1px solid #e2e8f0;
}
body.tools-compact .vyzp-ucty-switch a:last-child {
  border-right: 0;
}
body.tools-compact .vyzp-ucty-switch a.is-on {
  background: #1e3a5f;
  color: #fff;
}

body.tools-compact .vyzp-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: flex-end;
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
body.tools-compact .vyzp-bulk-title {
  font-size: 13px;
  color: #1e3a5f;
  margin-right: 4px;
  align-self: center;
}
body.tools-compact .vyzp-bulk label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #475467;
  margin: 0;
}
body.tools-compact .vyzp-bulk label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  align-self: center;
}
body.tools-compact .vyzp-bulk input,
body.tools-compact .vyzp-bulk select {
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}
body.tools-compact .vyzp-bulk #vyzp-bulk-pobocka {
  min-width: 14em;
}
body.tools-compact .vyzp-bulk-cop {
  font-size: 12px;
  color: #64748b;
  align-self: center;
  min-width: 9em;
}
body.tools-compact .vyzp-bulk .btn-main {
  align-self: center;
}
