/* Стилови за формите што се печатат (A4 = 794 x 1123 px) */
#print-stage { position: fixed; left: -12000px; top: 0; }
.pg { width: 794px; height: 1123px; background: #fff; box-sizing: border-box; position: relative; overflow: hidden;
  font-family: 'RC', 'Roboto Condensed', Arial, sans-serif; color: #3c3f9c; }
.pg * { box-sizing: border-box; }

/* ======= КАРГО ЕКСПРЕС ======= */
.kx { padding: 16px 30px 14px; --b: #4347a6; --g: #2a9d78; --gl: #d4efe4; --bl: #e8e9f7; }
.kx-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 6px; }
.kx-logo { line-height: .9; }
.kx-logo1 { font-weight: 700; font-style: italic; font-size: 46px; color: var(--g); letter-spacing: 2px; position: relative; padding-left: 40px;
  -webkit-text-stroke: 1px var(--g); }
.kx-stripes { position: absolute; left: 0; top: 10px; width: 46px; height: 30px;
  background: repeating-linear-gradient(180deg, var(--g) 0 3px, transparent 3px 6px); transform: skewX(-20deg); }
.kx-logo2 { font-weight: 700; font-size: 34px; color: var(--b); letter-spacing: 10px; font-style: italic; }
.kx-info { text-align: right; font-size: 12.5px; line-height: 1.35; color: var(--b); }
.kx-tel { font-size: 17px; } .kx-tel b { font-size: 24px; }

.kx-frame { border: 2.5px solid var(--b); border-radius: 16px; padding: 8px 10px 10px; background: #fbfbff; }
.kx-row { display: flex; gap: 6px; margin-bottom: 5px; align-items: stretch; }
.kx-row-tight { gap: 4px; margin-bottom: 4px; }
.kx-box { border: 1.5px solid var(--b); border-radius: 7px; padding: 4px 7px; background: #fff; display: flex; align-items: flex-end; gap: 4px; min-height: 36px; position: relative; }
.kx-grow { flex: 1 1 auto; }
.kx-dash { position: absolute; left: 62%; top: 4px; bottom: 4px; border-left: 1.5px dashed var(--b); }
.kx-lbl { font-size: 12.5px; line-height: 1.05; white-space: nowrap; }
.kx-big { font-size: 15px; }
.kx-tiny { font-size: 10px; white-space: nowrap; }
.kx-tiny2 { font-size: 10.5px; line-height: 1.05; white-space: nowrap; }
.kx-line { display: inline-block; border-bottom: 1px solid var(--b); height: 18px; text-align: center; }
.kx-line i { font-style: normal; color: #111; font-weight: 700; font-size: 15px; }
.kx-sig { flex-direction: column; align-items: stretch; justify-content: space-between; min-height: 58px; }
.kx-ttl { text-align: center; font-size: 13px; }
.kx-sigline { border-top: 1px solid var(--b); text-align: center; font-size: 10px; margin: 0 10px; }
.kx-tries { display: flex; justify-content: space-around; font-size: 9.5px; text-align: center; margin-top: 4px; }
.kx-tries span { display: block; border-bottom: 1px solid var(--b); width: 90px; height: 14px; margin-bottom: 1px; }
.kx-back { text-align: center; font-weight: 700; font-size: 12.5px; border-top: 1px solid var(--b); margin: 4px 8px 0; }

.kx-note { font-size: 10.6px; font-weight: 700; line-height: 1.22; margin: 4px 2px 6px; }

.kx-sec { border: 1.5px solid var(--b); border-radius: 9px; padding: 7px 10px 6px 34px; margin-bottom: 6px; position: relative; background: #fff; }
.kx-num { position: absolute; left: -1px; top: 8px; width: 24px; height: 24px; background: var(--b); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border-radius: 0 5px 5px 0; font-size: 15px; }
.kx-num-in { position: static; border-radius: 4px; margin-right: 6px; }
.kx-fl { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 6px; }
.kx-val { border-bottom: 1px solid var(--b); min-height: 21px; color: #111; font-weight: 700; font-size: 15.5px; padding: 0 4px 1px; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-ack { align-items: center; justify-content: space-between; margin: 2px 0 0; }
.kx-small { font-size: 11px; border-bottom: 1px solid var(--b); flex: 1; padding-bottom: 2px; }
.kx-sigbox { border: 1.5px solid var(--b); border-radius: 4px; width: 230px; height: 34px; display: flex; align-items: center; justify-content: center;
  color: #c9cbe8; font-weight: 700; font-size: 19px; }

.kx-sec3 { padding: 0 6px 4px; overflow: hidden; }
.kx-s3head { display: flex; align-items: center; gap: 4px; font-size: 13px; padding: 4px 0; margin: 0 -6px 4px; padding-left: 6px; border-bottom: 1.5px solid var(--b); }
.kx-important { margin-left: 8px; background: var(--b); color: #fff; font-size: 10.5px; padding: 3px 8px; border-radius: 8px 0 0 0; flex: 1; }
.kx-cell { border: 1.5px solid var(--b); border-radius: 4px; padding: 3px 5px; display: flex; align-items: flex-end; gap: 4px; min-height: 34px; background: #fff; }
.kx-amt { font-size: 20px; text-align: center; color: #111; }
.kx-acct-wrap { flex-direction: column; align-items: stretch; gap: 1px; }
.kx-acct-title { text-align: center; font-weight: 700; }
.kx-acct { display: flex; }
.kx-acct span { flex: 1; height: 21px; border: 1px solid var(--b); margin-left: -1px; text-align: center; color: #111; font-weight: 700; font-size: 14px; line-height: 20px; }
.kx-chk { width: 22px; height: 22px; border: 1.5px solid var(--b); display: flex; align-items: center; justify-content: center; margin-left: auto; }
.kx-x { color: #111; font-weight: 700; font-size: 16px; }
.kx-desc { font-size: 13px; }

.kx-napomena { margin: 4px 4px 5px; }
.kx-table { display: flex; border: 1.5px solid var(--b); border-radius: 8px 8px 0 0; overflow: hidden; height: 200px; background: #fff; }
.kx-tcol { display: flex; flex-direction: column; border-right: 1.5px solid var(--b); }
.kx-tcol:last-child { border-right: 0; }
.kx-th { min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11.5px; line-height: 1.1; border-bottom: 1.5px solid var(--b); padding: 2px; }
.kx-green { background: var(--gl); }
.kx-td { flex: 1; display: flex; flex-direction: column; }
.kx-lines > div { flex: 1; border-bottom: 1px dotted var(--b); }
.kx-lines > div:last-child { border-bottom: 0; }
.kx-typed { color: #111; font-weight: 700; font-size: 14px; padding: 6px 6px 0; }
.kx-split > div:first-child { flex: 1.15; }
.kx-split > div:last-child { flex: 1; }
.kx-zone { min-height: 40px; border-top: 1.5px solid var(--b); font-size: 11px; }
.kx-side > div { flex: 1; font-size: 10px; line-height: 1.05; border-bottom: 1px solid var(--b); padding: 3px 4px; display: flex; align-items: center; }
.kx-side > div:last-child { border-bottom: 0; }
.kx-paid { height: 54px; border-top: 1.5px solid var(--b); text-align: center; font-size: 12px; padding-top: 4px; }
.kx-paid small { font-size: 8px; }
.kx-cash { margin-top: 0; }
.kx-cashlbl { border: 1.5px solid var(--b); border-top: 0; font-size: 16px; font-weight: 700; padding: 8px 10px; width: 30%; display: flex; align-items: center; }
.kx-cashbox { border: 1.5px solid var(--b); border-top: 0; width: 25%; display: flex; align-items: flex-end; padding: 2px 4px; margin-left: -6px; }
.kx-pay .kx-box { flex-direction: column; align-items: stretch; gap: 4px; }
.kx-pay .kx-fl { margin: 0; }
.kx-foot { font-size: 9.8px; line-height: 1.25; margin-top: 6px; font-weight: 700; color: var(--b); }

/* ======= ИСПРАТНИЦА ======= */
.ist-page { padding: 12px 34px; display: flex; flex-direction: column; justify-content: space-between; --ib: #4a50b8; --ish: #dcdef3; color: var(--ib); }
.ist { height: 535px; display: flex; flex-direction: column; }
.ist-cut { border-top: 1.5px dashed #9aa0d8; position: relative; height: 0; margin: 6px -20px; }
.ist-cut span { position: absolute; left: -2px; top: -12px; font-size: 16px; color: #9aa0d8; background: #fff; }
.ist-top { border: 2.5px solid var(--ib); padding: 6px 14px 6px; }
.ist-r1 { display: flex; align-items: flex-end; gap: 6px; min-height: 24px; margin-bottom: 3px; }
.ist-fill { background: var(--ish); border-bottom: 1.5px solid var(--ib); height: 21px; color: #111; font-weight: 700; font-size: 14px; padding: 0 6px; line-height: 21px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ist-plain { border-bottom: 1px solid var(--ib); height: 20px; color: #111; font-weight: 700; font-size: 13.5px; padding: 0 4px; line-height: 20px; white-space: nowrap; overflow: hidden; }
.ist-grow { flex: 1; }
.ist-yr { text-align: center; }
.ist-l { font-size: 13px; white-space: nowrap; }
.ist-title { text-align: center; font-size: 27px; font-weight: 700; margin: 0 0 2px; letter-spacing: .5px; }
.ist-title span { font-size: 24px; }
.ist-title u { text-decoration: none; display: inline-block; min-width: 90px; border-bottom: 2px solid var(--ib); color: #111; font-size: 24px; text-align: center; }
.ist-t { width: 100%; border-collapse: collapse; margin-top: 6px; border: 2.5px solid var(--ib); table-layout: fixed; }
.ist-t th { font-weight: 400; font-size: 12px; line-height: 1.1; border: 1px solid var(--ib); padding: 3px 2px; height: 40px; border-bottom: 2.5px solid var(--ib); }
.ist-t th:nth-child(3) { font-size: 13.5px; }
.ist-t td { border: 1px solid var(--ib); height: 18.5px; padding: 0 4px; font-size: 13px; color: #111; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ist-t td.sh { background: var(--ish); }
.ist-t td.c { text-align: center; } .ist-t td.r { text-align: right; }
.ist-t td.dn { font-weight: 400; font-size: 10px; color: #555; }
.ist-t td.nm { text-overflow: ellipsis; }
.ist-sum td { border-top: 2px solid var(--ib); font-size: 13.5px; }
.ist-sig { display: flex; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.ist-sigbox { width: 40%; height: 36px; border: 1.5px solid var(--ib); background: var(--ish); font-size: 13px; padding: 3px 6px; }
.ist-sigbox b { color: #111; margin-left: 6px; }
