/* Audioline Input List — eksportētais A4 dokuments (ekrānam un drukai). Vienmēr gaišs. */

.doc {
  --ink: #121820;
  --ink2: #3a4450;
  --mute: #6b7785;
  --hair: #dfe4e9;
  --zebra: #f5f7f9;
  width: 210mm; min-height: 297mm; flex: none;
  background: #fff; color: var(--ink);
  padding: 13mm 12mm 12mm;
  font: 400 9.6pt/1.35 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  font-feature-settings: 'tnum' 1;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  border-radius: 2px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.doc h1, .doc h2, .doc h3 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; color: var(--ink); margin: 0; letter-spacing: 0; }

/* Galvene */
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 10mm; padding-bottom: 4mm; border-bottom: .6pt solid var(--hair); }
.dh-co { display: flex; align-items: center; gap: 3.2mm; min-width: 0; }
.dh-logo { max-height: 11mm; max-width: 45mm; object-fit: contain; }
.dh-mark {
  width: 10mm; height: 10mm; border-radius: 2.2mm; background: var(--ink); color: #fff;
  display: grid; place-items: center; font: 700 13pt 'Barlow Condensed', sans-serif; letter-spacing: .02em;
}
.dh-co b { display: block; font: 700 12pt/1.1 'Barlow Condensed', sans-serif; }
.dh-co div > span { display: block; color: var(--mute); font-size: 8.5pt; }
.dh-kind { font: 600 12pt 'Barlow Condensed', sans-serif; color: var(--mute); white-space: nowrap; }

.doc-title { padding: 6mm 0 4mm; }
.doc-title h1 { font-size: 30pt; line-height: .98; font-weight: 700; }
.dt-sub { display: flex; flex-wrap: wrap; margin-top: 2.4mm; font-size: 11pt; color: var(--ink2); font-weight: 500; }
.dt-sub span + span { border-left: .8pt solid #c4ccd4; margin-left: 3mm; padding-left: 3mm; }

/* Info */
.doc-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.2pt solid var(--ink); }
.di-cell { padding: 2mm 3mm 2.2mm 0; border-bottom: .6pt solid var(--hair); min-width: 0; }
.di-cell span { display: block; font-size: 7.6pt; color: var(--mute); }
.di-cell b { display: block; font-weight: 600; font-size: 10pt; white-space: pre-line; overflow-wrap: anywhere; }
.di-cell.wide { grid-column: span 2; }

/* Sadaļas */
.doc-sec { margin-top: 7mm; }
.ds-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6mm; margin-bottom: 2mm; }
.ds-head h2 { font-size: 15pt; font-weight: 700; }
.ds-head span { color: var(--mute); font-size: 8.6pt; }

/* Tabulas */
.dt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dt th {
  text-align: left; font-weight: 600; font-size: 7.6pt; color: var(--mute);
  padding: 1.4mm 1.6mm; border-bottom: 1.2pt solid var(--ink); white-space: nowrap; overflow: hidden;
}
.dt td { padding: 1.15mm 1.6mm; border-bottom: .5pt solid var(--hair); vertical-align: middle; overflow-wrap: anywhere; }
.dt tbody tr:not(.grp-row):nth-child(even) td { background: var(--zebra); }
.dt td.c-ch, .dt th.c-ch { padding-left: 0; padding-right: 1.2mm; text-align: center; }
.dt .tab {
  display: block; background: var(--gc); color: var(--gi); border-radius: 1.2mm;
  font: 700 11.5pt/1 'Barlow Condensed', sans-serif; padding: 1.1mm 0 .9mm; text-align: center;
}
.dt .c-src { font-weight: 600; font-size: 10.2pt; }
.dt .c-48 { text-align: center; }
.dt .c-box { font-weight: 600; white-space: nowrap; }
.dt .c-note { color: var(--ink2); font-size: 9pt; }
.dt .c-type, .dt .c-mix { color: var(--ink2); }
col.c-ch { width: 11mm; }
.dt-in col.c-mic { width: 21%; }
.dt-in col.c-stand { width: 15%; }
.dt-in col.c-box { width: 13%; }
.dt-in col.c-48 { width: 10mm; }
.dt-in col.c-note { width: 21%; }
.dt-out col.c-type { width: 19mm; }
.dt-out col.c-mix { width: 14mm; }
.dt-out col.c-mic { width: 22%; }
.dt-out col.c-amp { width: 16%; }
.dt-out col.c-box { width: 17mm; }
.dt-out col.c-note { width: 17%; }
.tag { display: inline-block; font: 700 7pt/1 'Barlow Semi Condensed', sans-serif; padding: .6mm 1mm .5mm; border-radius: .8mm; vertical-align: .3mm; }
.tag.p48 { color: #c62828; border: .7pt solid #c62828; }
.tag.rf { color: #0b6bcb; border: .7pt solid #0b6bcb; margin-left: 1.4mm; }
.grp-row td { padding: 2.6mm 0 .8mm; border-bottom: 0; background: none !important; }
.grp-row span { font: 700 8.6pt 'Barlow Semi Condensed', sans-serif; color: var(--ink); display: inline-flex; align-items: center; gap: 1.6mm; }
.grp-row span::before { content: ''; width: 2.4mm; height: 2.4mm; border-radius: .6mm; background: var(--gc); }
.grp-row small { color: var(--mute); font-size: 8pt; margin-left: 1.6mm; }

/* Piezīmes */
.doc-notes p { margin: 0 0 2mm; white-space: pre-line; max-width: 160mm; }

/* Skatuves plāns (drukas krāsas) */
.doc-stage .sp-svg { display: block; width: 100%; height: auto; max-height: 200mm; }
.sp-svg.print .sp-stage { fill: #f6f8fa; stroke: #121820; stroke-width: 3; }
.sp-svg.print .sp-grid path { stroke: #d5dbe1; stroke-width: 1.5; stroke-dasharray: 3 9; }
.sp-svg.print .sp-front { stroke: #121820; stroke-width: 7; stroke-linecap: round; }
.sp-svg.print .sp-edge { fill: #6b7785; font: 600 24px 'Barlow Semi Condensed', sans-serif; text-anchor: middle; }
.sp-svg.print .sp-dim { fill: #6b7785; font: 500 20px 'Barlow Semi Condensed', sans-serif; text-anchor: end; }
.sp-svg.print .b { fill: #fff; stroke: #121820; stroke-width: 3; }
.sp-svg.print .b.soft { fill: #eef1f4; }
.sp-svg.print .b.fill { fill: #121820; }
.sp-svg.print .b.fill2 { fill: #8a96a3; stroke: none; }
.sp-svg.print .b.cym { fill: none; stroke-width: 2; stroke-dasharray: 5 4; }
.sp-svg.print .b.cone { fill: none; stroke-width: 2; }
.sp-svg.print .b.riser { fill: #f0f2f5; stroke: #8a96a3; stroke-dasharray: 12 6; }
.sp-svg.print .b.dark { fill: #121820; }
.sp-svg.print .b.dot { fill: #fff; stroke: none; }
.sp-svg.print .line { stroke: #121820; stroke-width: 3; fill: none; stroke-linecap: round; }
.sp-svg.print .line.faint { opacity: .3; stroke-width: 2; }
.sp-svg.print .line.thick { stroke-width: 8; }
.sp-svg.print .bolt { fill: #f5a300; }
.sp-svg.print .sp-in { fill: #121820; font: 700 15px 'Barlow Condensed', sans-serif; text-anchor: middle; }
.sp-svg.print .sp-label { fill: #121820; font: 600 22px 'Barlow Semi Condensed', sans-serif; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.sp-svg.print .sp-label.big { font: 700 30px 'Barlow Condensed', sans-serif; }
.sp-svg.print .sp-ch rect { fill: #121820; }
.sp-svg.print .sp-ch text { fill: #fff; font: 700 19px 'Barlow Condensed', sans-serif; text-anchor: middle; }

/* Aprīkojums */
.gear-cols { columns: 3 48mm; column-gap: 7mm; }
.gear-blk { break-inside: avoid; margin-bottom: 4mm; }
.gear-blk h3 { font-size: 10.5pt; font-weight: 700; padding-bottom: 1mm; border-bottom: 1pt solid var(--ink); margin-bottom: .8mm; }
.gear-blk ul { list-style: none; margin: 0; padding: 0; }
.gear-blk li { display: grid; grid-template-columns: 8mm 1fr; gap: 2mm; padding: .7mm 0; border-bottom: .5pt solid var(--hair); }
.gear-blk li b { text-align: right; font: 700 10pt 'Barlow Condensed', sans-serif; }

/* Kājene */
.doc-foot { margin-top: 10mm; padding-top: 2.4mm; border-top: .6pt solid var(--hair); display: flex; justify-content: space-between; gap: 8mm; font-size: 8pt; color: var(--mute); }
.doc-foot b { color: var(--ink); margin-right: 3mm; }
.doc-foot span { white-space: pre; }
.df-meta { white-space: pre; text-align: right; }

/* ---------- Druka ---------- */
@media print {
  @page { size: A4; margin: 12mm 12mm 15mm; }
  :root, [data-theme] { color-scheme: light !important; }
  html, body { background: #fff !important; }
  body { min-height: 0; }
  .top, .demo-banner, .exp-side, #toasts, .modal-back, .drawer, .menu, .bulk { display: none !important; }
  .app { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .exp { display: block !important; padding: 0 !important; }
  .exp-preview { padding: 0 !important; background: none !important; min-height: 0 !important; border-radius: 0 !important; margin: 0 !important; }
  .exp-paper { display: block !important; }
  .doc { width: auto !important; min-height: 0 !important; padding: 0 !important; box-shadow: none !important; border-radius: 0; zoom: 1 !important; }
  .page-break { break-before: page; }
  .dt tr { break-inside: avoid; }
  .dt thead { display: table-header-group; }
  .grp-row { break-after: avoid; }
  .ds-head { break-after: avoid; }
  .doc-stage { break-inside: avoid; }
  .doc-foot { break-inside: avoid; }
}
