/* Shapekin — Interaktivní studio šablon cenových nabídek a dokumentů */

.qs-shell {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.qs-head h2 {
  margin: 0 0 4px;
}

.qs-head p {
  margin: 0;
}

/* Galerie klikacích šablon */
.qs-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 680px) {
  .qs-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .qs-gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.qs-tpl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 12px 13px;
  border-radius: 13px;
  background: linear-gradient(155deg, #1b283b 0%, #121c2a 100%);
  border: 1.5px solid #2b3d57;
  color: #e2ecf8;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.qs-tpl-card:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 12, 24, 0.45);
}

.qs-tpl-card[aria-pressed="true"] {
  border-color: #2dd4bf;
  background: linear-gradient(155deg, rgba(15, 118, 110, 0.34) 0%, #132234 100%);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.45), 0 8px 20px rgba(4, 15, 25, 0.5);
}

.qs-tpl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.qs-tpl-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.qs-tpl-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.qs-tpl-card[aria-pressed="true"] .qs-tpl-badge {
  background: rgba(45, 212, 191, 0.24);
  color: #99f6e4;
}

.qs-tpl-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #f8fafc;
}

.qs-tpl-desc {
  font-size: 0.77rem;
  line-height: 1.35;
  color: #9bb0ca;
}

/* Lišta stylu a akcí nad dokumentem */
.qs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(9, 15, 25, 0.68);
  border: 1px solid #24344d;
}

.qs-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.qs-toolbar-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}

.qs-style-pill {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #2e405b;
  background: #141f30;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.qs-style-pill:hover {
  border-color: #38bdf8;
  color: #fff;
}

.qs-style-pill[aria-pressed="true"] {
  background: #0f766e;
  border-color: #2dd4bf;
  color: #fff;
}

.qs-swatches {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body .qs-toolbar button.qs-swatch-btn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

body .qs-toolbar button.qs-swatch-btn[aria-pressed="true"] {
  border-color: #fff;
  transform: scale(1.1);
}

body .qs-toolbar button.qs-style-pill {
  min-height: 32px;
  padding: 5px 10px;
}

body .qs-toolbar input.qs-color-input {
  width: 32px;
  height: 26px;
  min-width: 32px;
  min-height: 26px;
  padding: 1px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.qs-mini-select {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid #2e405b;
  background: #141f30;
  color: #e2e8f0;
  font-size: 0.8rem;
  max-width: 210px;
}

.qs-hint-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: #93c5fd;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 7px 12px;
}

.qs-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.qs-actions-bar button {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

body .qs-actions-bar button.qs-mode-btn {
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.14);
  color: #bae6fd;
}

body .qs-actions-bar button.qs-mode-btn.is-active {
  border-color: #2dd4bf;
  background: rgba(15, 118, 110, 0.35);
  color: #ccfbf1;
}

/* Zmenšený náhled celého listu A4 („jako fotka“) */
.qs-stage.is-preview {
  padding: 10px 8px;
}

.qs-a4-frame {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(148, 163, 184, 0.25);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.qs-a4-frame:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.52), 0 0 0 1.5px rgba(45, 212, 191, 0.65);
}

.qs-paper.qs-paper-photo {
  width: 760px;
  min-width: 760px;
  max-width: none;
  margin: 0;
  padding: 24px 28px;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
}

.qs-paper.qs-paper-photo .qs-add-row-wrap,
.qs-paper.qs-paper-photo .qs-row-del,
.qs-paper.qs-paper-photo .qs-table th:last-child,
.qs-paper.qs-paper-photo .qs-table td:last-child {
  display: none;
}

.qs-paper.qs-paper-photo input,
.qs-paper.qs-paper-photo textarea {
  border-color: transparent !important;
  background: transparent !important;
  resize: none !important;
  overflow: hidden !important;
}

.qs-a4-tap-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(45, 212, 191, 0.55);
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Pracovní deska s živým listem A4 */
.qs-stage {
  background: radial-gradient(circle at top, #182334 0%, #0b111c 100%);
  border: 1px solid #22324a;
  border-radius: 14px;
  padding: 18px 14px;
  overflow-x: auto;
}

.qs-paper {
  --qs-accent: #0f766e;
  background: #ffffff;
  color: #1e293b;
  max-width: 780px;
  margin: 0 auto;
  border-radius: 10px;
  padding: 28px 30px;
  box-shadow: 0 18px 46px rgba(2, 6, 15, 0.55);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.48;
  box-sizing: border-box;
}

.qs-paper.style-compact {
  max-width: 540px;
  padding: 20px 22px;
  font-size: 13.5px;
}

.qs-paper.style-minimal {
  --qs-accent: #111827;
}

/* Přímá editace uvnitř listu A4 (vyšší specifičnost proti body.app-neon input) */
body .qs-paper input.qs-input,
body .qs-paper textarea.qs-textarea,
body .qs-paper input.qs-num {
  font: inherit;
  color: inherit;
  background: transparent;
  background-color: transparent;
  border: 1px dashed transparent;
  border-radius: 5px;
  padding: 2px 5px;
  margin: -2px -5px;
  min-height: 0;
  height: auto;
  width: 100%;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

body .qs-paper input.qs-input::placeholder,
body .qs-paper textarea.qs-textarea::placeholder,
body .qs-paper input.qs-num::placeholder {
  color: #94a3b8;
}

body .qs-paper input.qs-input:hover,
body .qs-paper textarea.qs-textarea:hover,
body .qs-paper input.qs-num:hover {
  border-color: rgba(14, 116, 144, 0.42);
  background: rgba(14, 165, 233, 0.06);
}

body .qs-paper input.qs-input:focus,
body .qs-paper textarea.qs-textarea:focus,
body .qs-paper input.qs-num:focus {
  outline: none;
  border-style: solid;
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0f172a;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.14);
}

body .qs-paper textarea.qs-textarea {
  resize: vertical;
  min-height: 40px;
  line-height: 1.45;
}

body .qs-paper input.qs-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body .qs-paper.style-craft .qs-doc-header input.qs-input {
  color: #f8fafc;
}

body .qs-paper.style-craft .qs-doc-header input.qs-doc-sub {
  color: #cbd5e1;
}

body .qs-paper.style-craft .qs-doc-header input.qs-input:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

body .qs-paper.style-craft .qs-doc-header input.qs-input:focus {
  color: #0f172a;
  background: #ffffff;
}

/* Hlavička dokumentu */
.qs-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--qs-accent);
}

.qs-paper.style-minimal .qs-doc-header {
  border-bottom: 1.5px solid #111827;
}

.qs-paper.style-craft .qs-doc-header {
  background: #0f172a;
  color: #f8fafc;
  padding: 18px 20px;
  margin: -6px -6px 18px;
  border-radius: 10px;
  border-bottom: 4px solid var(--qs-accent);
}

.qs-paper.style-craft .qs-doc-header .qs-input {
  color: #f8fafc;
}

.qs-paper.style-craft .qs-doc-header .qs-input:focus {
  color: #0f172a;
  background: #ffffff;
}

.qs-paper.style-craft .qs-doc-header .qs-doc-sub {
  color: #cbd5e1;
}

.qs-doc-header.align-center {
  flex-direction: column;
  text-align: center;
}

.qs-doc-header.align-right {
  flex-direction: row-reverse;
}

.qs-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
  min-width: 0;
}

.qs-doc-header.align-center .qs-brand-wrap {
  flex-direction: column;
}

.qs-logo-slot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qs-logo-img {
  max-height: 58px;
  max-width: 148px;
  object-fit: contain;
  border-radius: 7px;
}

.qs-logo-placeholder {
  width: 72px;
  height: 48px;
  border-radius: 8px;
  border: 1.5px dashed #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: #64748b;
  text-align: center;
  padding: 4px;
}

.qs-paper.style-craft .qs-logo-placeholder {
  border-color: #475569;
  color: #94a3b8;
}

.qs-brand-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qs-shop-name {
  font-size: 1.24rem;
  font-weight: 800;
  color: #0f172a;
}

.qs-doc-sub {
  font-size: 0.84rem;
  color: #475569;
}

.qs-title-box {
  flex: 0 1 260px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qs-doc-header.align-center .qs-title-box {
  text-align: center;
  width: 100%;
}

.qs-doc-header.align-right .qs-title-box {
  text-align: left;
}

.qs-doc-title {
  font-size: 1.36rem;
  font-weight: 800;
  color: var(--qs-accent);
  text-align: inherit;
}

.qs-paper.style-craft .qs-doc-title {
  color: #ffffff;
}

.qs-doc-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  text-align: inherit;
}

/* Strany (Dodavatel / Zákazník) + Metadata */
.qs-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.qs-party-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qs-party-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--qs-accent);
  margin-bottom: 2px;
}

.qs-party-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: #0f172a;
}

.qs-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.qs-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.qs-meta-cell span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.qs-meta-cell input {
  font-weight: 600;
  font-size: 0.88rem;
  color: #0f172a;
}

/* Název zakázky / úvod */
.qs-subject-wrap {
  margin-bottom: 12px;
}

.qs-subject-input {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
}

.qs-intro-input {
  font-size: 0.88rem;
  color: #475569;
  min-height: 32px;
}

/* Tabulka položek */
.qs-table-wrap {
  overflow-x: auto;
  margin-bottom: 10px;
}

.qs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.qs-table thead th {
  text-align: left;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  padding: 7px 6px;
  border-bottom: 2px solid var(--qs-accent);
  background: #f8fafc;
}

.qs-table thead th.num {
  text-align: right;
}

.qs-table tbody td {
  padding: 6px 5px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.qs-table tbody td.line-total {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

body .qs-paper button.qs-row-del {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.9rem;
  box-shadow: none;
  cursor: pointer;
}

body .qs-paper button.qs-row-del:hover {
  background: #fee2e2;
  color: #dc2626;
}

.qs-add-row-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

body .qs-paper button.qs-add-row-btn {
  padding: 5px 12px;
  min-height: 30px;
  border-radius: 8px;
  border: 1.5px dashed #0284c7;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}

body .qs-paper button.qs-add-row-btn:hover {
  background: #e0f2fe;
}

/* Souhrn a QR Platba */
.qs-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
  gap: 16px;
  align-items: start;
  margin-top: 8px;
}

.qs-totals-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qs-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
}

body .qs-paper .qs-total-line input.qs-inline-num {
  width: 58px;
  min-height: 24px;
  height: auto;
  display: inline-block;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  padding: 2px 5px;
  margin: 0 2px;
  border-radius: 5px;
  text-align: right;
  font-size: 0.84rem;
  box-shadow: none;
}

.qs-total-grand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 2px solid var(--qs-accent);
  font-size: 1.16rem;
  font-weight: 800;
  color: #0f172a;
}

.qs-total-grand strong {
  color: var(--qs-accent);
  font-variant-numeric: tabular-nums;
}

.qs-qr-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.qs-qr-svg {
  flex-shrink: 0;
  line-height: 0;
}

.qs-qr-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.82rem;
}

.qs-qr-fields strong {
  color: #0f172a;
  font-size: 0.88rem;
}

/* Speciální bloky pro předávací protokol / zakázkový list */
.qs-checklist {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.qs-checklist-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--qs-accent);
  margin-bottom: 6px;
}

.qs-check-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px 12px;
}

.qs-check-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  color: #1e293b;
}

.qs-check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--qs-accent);
  flex-shrink: 0;
}

.qs-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
  padding-top: 12px;
}

.qs-sign-box {
  border-top: 1.5px solid #94a3b8;
  padding-top: 6px;
  font-size: 0.8rem;
  color: #475569;
  text-align: center;
}

/* Poznámka / patička dokumentu */
.qs-note-box {
  margin-top: 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border-left: 3.5px solid var(--qs-accent);
  border-radius: 6px;
}

.qs-note-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 3px;
}

.qs-status-line {
  min-height: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #5eead4;
}

@media (max-width: 720px) {
  .qs-shell {
    gap: 8px;
  }
  .qs-head h2 {
    font-size: 1rem;
  }
  .qs-head p.muted {
    display: none;
  }
  .qs-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .qs-tpl-card {
    flex-direction: row;
    align-items: center;
    padding: 7px 9px;
    gap: 7px;
  }
  .qs-tpl-top {
    width: auto;
    flex-shrink: 0;
  }
  .qs-tpl-icon {
    font-size: 1.05rem;
  }
  .qs-tpl-badge,
  .qs-tpl-desc {
    display: none;
  }
  .qs-tpl-title {
    font-size: 0.8rem;
    line-height: 1.2;
  }
  .qs-toolbar {
    padding: 8px 9px;
    gap: 7px;
  }
  .qs-toolbar-group {
    width: 100%;
    gap: 5px;
  }
  .qs-toolbar-label {
    font-size: 0.72rem;
  }
  body .qs-toolbar button.qs-style-pill {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.76rem;
  }
  .qs-mini-select {
    flex: 1 1 130px;
    min-width: 0;
    max-width: none;
    min-height: 30px;
    padding: 4px 7px;
    font-size: 0.78rem;
  }
  .qs-hint-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px 8px;
  }
  .qs-hint-text {
    display: none;
  }
  .qs-actions-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .qs-actions-bar button {
    width: 100%;
    min-height: 36px;
    padding: 6px 6px;
    font-size: 0.78rem;
  }
  .qs-stage {
    padding: 8px 6px;
  }
  .qs-paper:not(.qs-paper-photo) {
    padding: 14px 12px;
    font-size: 13px;
  }
  .qs-paper:not(.qs-paper-photo) .qs-doc-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }
  .qs-paper:not(.qs-paper-photo) .qs-brand-wrap {
    flex: none;
    width: 100%;
  }
  .qs-paper:not(.qs-paper-photo) .qs-title-box {
    flex: none;
    width: 100%;
    text-align: left;
  }
  .qs-paper:not(.qs-paper-photo) .qs-doc-title {
    font-size: 1.15rem;
  }
  .qs-paper:not(.qs-paper-photo) .qs-parties,
  .qs-paper:not(.qs-paper-photo) .qs-bottom-grid,
  .qs-paper:not(.qs-paper-photo) .qs-signatures {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .qs-paper:not(.qs-paper-photo) .qs-meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    padding: 8px 10px;
  }
  /* Mobilní kompaktní rozložení tabulky položek v režimu úprav */
  .qs-paper:not(.qs-paper-photo) .qs-table-wrap {
    overflow-x: visible;
  }
  .qs-paper:not(.qs-paper-photo) .qs-table {
    min-width: 0;
  }
  .qs-paper:not(.qs-paper-photo) .qs-table thead {
    display: none;
  }
  .qs-paper:not(.qs-paper-photo) .qs-table tbody {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .qs-paper:not(.qs-paper-photo) .qs-table tbody tr {
    display: grid;
    grid-template-columns: 42px 36px minmax(64px, 1fr) auto 24px;
    gap: 4px 5px;
    align-items: center;
    padding: 6px 7px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
  }
  .qs-paper:not(.qs-paper-photo) .qs-table tbody td {
    padding: 0;
    border: 0;
  }
  .qs-paper:not(.qs-paper-photo) .qs-table tbody td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 4px;
    border-bottom: 1px dashed #cbd5e1;
    font-weight: 600;
  }
  .qs-paper:not(.qs-paper-photo) .qs-table tbody td.line-total {
    font-size: 0.84rem;
  }
  body .qs-paper:not(.qs-paper-photo) .qs-table input.qs-num {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 3px 3px;
    margin: 0;
    font-size: 0.82rem;
  }
  body .qs-paper:not(.qs-paper-photo) input.qs-inline-input {
    font-size: 0.82rem;
  }
}
