/* Generátor ISDOC – rozvržení formuláře a náhled XML */
.tool form#gen{display:grid;gap:20px;margin-top:20px}
.gsec h2{font-size:20px;margin:0 0 18px}
.gcols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.irow{position:relative;display:grid;grid-template-columns:minmax(0,2.4fr) minmax(0,.7fr) minmax(0,.7fr) minmax(0,1.2fr) minmax(0,.8fr) 40px;gap:0 12px;align-items:end;padding-bottom:6px;border-bottom:1px dashed var(--line);margin-bottom:16px}
.irow .irem{height:48px;margin-bottom:16px;border:1.5px solid var(--line);border-radius:var(--r-sm);background:#fff;color:var(--mute);cursor:pointer}
.irow .irem:hover{color:#b91c1c;border-color:#b91c1c}
.gtot{margin-top:22px;max-width:380px;margin-left:auto}
.gout .ph-row{align-items:center}
.xml{max-height:420px;overflow:auto;background:#0f172a;color:#e2e8f0;border-radius:var(--r);padding:18px;font:500 13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;tab-size:2}
.thead+.note a{color:inherit;text-decoration:underline;font-weight:700}
.novat .it-vatw{display:none}
.novat .irow{grid-template-columns:minmax(0,2.4fr) minmax(0,.7fr) minmax(0,.7fr) minmax(0,1.2fr) 40px}
@media (max-width:980px){.gcols{grid-template-columns:1fr}}
@media (max-width:760px){
  .irow{grid-template-columns:1fr 1fr;padding-bottom:14px}
  .irow .i-desc{grid-column:1/-1}
  .irow .irem{grid-column:1/-1;height:42px;margin-bottom:0}
  .novat .irow{grid-template-columns:1fr 1fr}
}
