/* ToleHub Invoice Generator — all rules are intentionally scoped. */
.thig,.thig *{box-sizing:border-box}
.thig{--th-ink:#18303c;--th-dim:#6c7e86;--th-line:#dfe8e8;--th-teal:#116760;--th-soft:#eef6f4;--th-paper:#fff;color:var(--th-ink);font:15px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;max-width:1360px!important;width:100%;margin:0 auto 60px;padding:12px 8px 20px;}
.thig button,.thig input,.thig select,.thig textarea{font:inherit;letter-spacing:normal}
.thig button{cursor:pointer}.thig button:disabled{opacity:.55;cursor:not-allowed}
.thig-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0 30px}
.thig-eyebrow{display:inline-block;font-size:11px;letter-spacing:.13em;color:var(--th-teal);font-weight:800;margin-bottom:12px}
.thig h2{font-family:inherit;color:var(--th-ink);font-size:clamp(27px,3vw,43px)!important;line-height:1.13!important;letter-spacing:-.04em!important;max-width:740px;margin:0 0 13px!important;font-weight:800!important}
.thig-intro p{font-size:15px;color:var(--th-dim);line-height:1.7;max-width:610px;margin:0}
.thig-private{background:var(--th-soft);border:1px solid #d8eae5;color:var(--th-teal);padding:13px 17px;border-radius:12px;white-space:nowrap;font-weight:800;font-size:13px}.thig-private small{display:block;color:#5b7f78;font-weight:400;font-size:12px;margin-left:22px}.thig-private span{margin-right:4px}
.thig-app-layout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,0.94fr);gap:24px;align-items:start}
.thig-editor{background:#fff;border:1px solid var(--th-line);border-radius:18px;box-shadow:0 9px 32px rgba(23,56,67,.045);min-width:0;padding:0 26px 20px}
.thig-block{padding:25px 0 24px;border-bottom:1px solid var(--th-line)}.thig-section-heading{display:flex;align-items:center;gap:11px;margin:0 0 17px}
.thig-step{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--th-soft);color:var(--th-teal);font-size:12px;font-weight:800}
.thig h3{font-family:inherit;color:var(--th-ink);font-size:17px!important;font-weight:750!important;line-height:1.3!important;margin:0!important;letter-spacing:-.015em}
.thig-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}.thig-fields-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.thig label{display:block;font-size:12px;line-height:1.4;font-weight:700;color:#36505a;min-width:0}
.thig input:not([type=file]),.thig select,.thig textarea{display:block;width:100%;margin:6px 0 0;padding:11px 12px;background:#fbfcfc;color:var(--th-ink);border:1px solid #d5e1e2;border-radius:9px;outline:none;min-height:44px;max-width:100%;font-size:14px;font-weight:450;box-shadow:none}
.thig input:focus,.thig select:focus,.thig textarea:focus{border-color:#278e83;box-shadow:0 0 0 3px rgba(39,142,131,.1)}
.thig textarea{resize:vertical;min-height:72px}.thig input::placeholder,.thig textarea::placeholder{color:#9aabb0;opacity:1}
.thig-inline{display:flex;align-items:center;gap:6px}.thig-inline input{flex:1;min-width:0}.thig-inline select{width:89px;flex:0 0 89px}
.thig-logo-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.thig-logo-choose{border:1px dashed #a4beb8;border-radius:9px;padding:10px 12px;background:#f6faf9;cursor:pointer;white-space:nowrap}.thig-logo-choose input{width:140px;max-width:100%;font-size:11px;display:block;margin-top:7px;color:#48616a;font-weight:400}
.thig-muted,.thig-small-note{color:#758b94;font-size:11px}.thig-small-note{line-height:1.6;margin:10px 0 0}.thig-mini{font-size:11px;border:0;color:#a43f45;background:transparent;padding:3px}
.thig-item-row{display:grid;grid-template-columns:minmax(0,1fr) 77px 110px 25px;align-items:end;gap:9px;margin-bottom:13px}.thig-item-row label{min-width:0}.thig-item-row input{min-width:0}.thig-remove{height:44px;width:25px;border:0!important;background:transparent!important;color:#a64a4e!important;font-size:23px!important;line-height:1!important;padding:0!important}.thig-remove:hover{color:#e53c44!important}
.thig-add{background:var(--th-soft)!important;border:1px dashed #99c5bb!important;color:var(--th-teal)!important;font-size:13px!important;padding:10px 14px!important;border-radius:9px!important;font-weight:750!important}.thig-add:hover{background:#dff1ec!important}.thig-totals-fields{margin-top:22px}
.thig-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px;padding-top:25px}
.thig-actions button{border-radius:10px!important;padding:14px 10px!important;font-size:13px!important;font-weight:800!important;min-height:49px}.thig-primary{background:var(--th-teal)!important;color:#fff!important;border:1px solid var(--th-teal)!important}.thig-primary:hover{background:#09524d!important}.thig-secondary{background:#fff!important;color:var(--th-teal)!important;border:1px solid #b0c7c1!important}.thig-secondary:hover{background:#eff8f5!important}
.thig-message{min-height:18px;margin:10px 0 0!important;color:var(--th-teal);font-weight:600;font-size:12px!important}.thig-message[data-kind=error]{color:#b63d44}
.thig-drafts{display:flex;gap:8px 16px;flex-wrap:wrap;border-top:1px solid var(--th-line);margin-top:13px;padding-top:16px}.thig-drafts button{border:0!important;padding:0!important;background:none!important;text-decoration:underline;font-size:11px!important;color:#607c85!important}.thig-drafts button:hover{color:var(--th-teal)!important}
.thig-preview-col{position:sticky;top:20px;min-width:0}.thig-preview-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#4b6871;margin:2px 1px 12px;font-size:13px}.thig-preview-caption strong{color:var(--th-ink);font-weight:800}.thig-preview-caption span{color:#8ba1a6;font-size:11px}
.thig-preview{background:var(--th-paper);border:1px solid #e1e9eb;border-radius:3px;min-height:670px;box-shadow:0 14px 60px rgba(13,46,58,.11);padding:44px 36px 22px;overflow-wrap:anywhere;color:#273f49;font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:1.6}
.thig-paper-top{display:flex;justify-content:space-between;gap:12px;align-items:start;min-height:78px}.thig-paper-brand{font-size:31px;color:#173e46;letter-spacing:-.045em;font-weight:800;line-height:1.25}.thig-paper-no{font-size:11px;color:#728790;margin-top:7px}.thig-paper-top img{max-width:125px;max-height:67px;object-fit:contain}
.thig-paper-divider{border-top:2px solid #146c67;margin:17px 0 30px}
.thig-paper-parties{display:grid;grid-template-columns:1fr 1fr;gap:15px;min-height:125px}.thig-paper-parties strong{display:block;font-size:14px;color:#223e46;margin-bottom:6px}.thig-paper-parties>div>div{font-size:11px;color:#697e86}.thig-paper-label{color:#0e726c!important;font-weight:800;letter-spacing:.11em;font-size:10px!important;margin-bottom:10px}.thig-multiline{white-space:pre-line}
.thig-paper-dates{background:#f3f8f7;display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:21px 0 27px;border-radius:6px;padding:13px 15px}.thig-paper-dates div span{display:block;font-size:9px;color:#73908c;font-weight:700;letter-spacing:.08em}.thig-paper-dates strong{font-size:11px;color:#2c4e51;font-weight:750}
.thig-paper-items table{border-collapse:collapse;width:100%;table-layout:fixed;font:inherit;margin:0}.thig-paper-items th{font-size:9px!important;color:#73878c!important;border-bottom:1px solid #cbdadb!important;border-top:0!important;text-align:right!important;padding:11px 6px!important;font-weight:800!important;letter-spacing:.035em;white-space:normal}.thig-paper-items th:first-child{text-align:left!important;width:43%}.thig-paper-items th:nth-child(2){width:12%}.thig-paper-items th:nth-child(3){width:20%}.thig-paper-items th:nth-child(4){width:25%}.thig-paper-items td{font-size:11px!important;text-align:right!important;padding:15px 6px!important;color:#4b666c!important;border-bottom:1px solid #edf1f1!important;border-top:0!important;overflow-wrap:anywhere;vertical-align:top}.thig-paper-items td:first-child{text-align:left!important;font-weight:700!important;color:#24434b!important}
.thig-paper-sums{margin:26px 0 30px auto;max-width:260px}.thig-paper-sums>div{display:flex;justify-content:space-between;gap:10px;padding:4px 0;color:#57717a;font-size:11px}.thig-paper-sums>div span:last-child{white-space:nowrap}.thig-paper-sums .thig-paper-total{border-top:2px solid #173e46;margin-top:10px;padding-top:12px;color:#173e46;font-size:16px;font-weight:800}
.thig-paper-bottom{display:grid;gap:15px;margin-top:38px;font-size:11px;color:#667f86}.thig-paper-bottom>div:empty{display:none}.thig-paper-bottom .thig-paper-label{margin-bottom:4px}.thig-paper-foot{border-top:1px solid #e5eced;color:#9aadb1;text-align:center;font-size:10px;margin-top:42px;padding-top:17px}

/* Optional payment methods */
.thig-payment-intro{color:var(--th-dim);font-size:12px;margin:-4px 0 16px;line-height:1.65}
.thig-payment-options{display:grid;gap:10px}
.thig-method-card{border:1px solid var(--th-line);border-radius:12px;background:#fbfcfc;overflow:hidden}
.thig label.thig-method-toggle{display:flex;align-items:center;gap:12px;padding:13px 14px;cursor:pointer;color:var(--th-ink);font-size:14px}
.thig .thig-method-toggle input[type=checkbox]{width:19px;height:19px;min-height:19px;max-width:19px;padding:0;margin:0;accent-color:var(--th-teal);flex:0 0 19px}
.thig-method-toggle span{font-weight:800}.thig-method-toggle small{display:block;color:var(--th-dim);font-weight:400;font-size:11px;margin-top:2px}
.thig-method-fields{padding:3px 14px 17px;border-top:1px solid var(--th-line);background:#fff}
.thig-method-fields[hidden]{display:none!important}
.thig-preview-method{padding:9px 10px;margin:9px 0;background:#f3f8f7;border-left:2px solid var(--th-teal);font-size:11px;overflow-wrap:anywhere;word-break:break-word}
.thig-preview-method strong{display:block;font-size:11px;color:#204f4b;margin-bottom:4px}
.thig-preview-entry{white-space:pre-wrap;overflow-wrap:anywhere}
.thig [hidden]{display:none!important}

@media(max-width:1120px){.thig-app-layout{grid-template-columns:1fr 1fr;gap:15px}.thig-editor{padding-left:18px;padding-right:18px}.thig-preview{padding:34px 21px}.thig-item-row{grid-template-columns:minmax(0,1fr) 63px 87px 23px;gap:7px}}
@media(max-width:850px){.thig-intro{align-items:start}.thig-private{display:none}.thig-app-layout{grid-template-columns:1fr}.thig-preview-col{position:static}.thig-preview{padding:40px 30px;min-height:550px}.thig-editor{padding:0 22px 19px}}
@media(max-width:470px){.thig{padding:5px 0 30px}.thig h2{font-size:28px!important}.thig-editor{padding:0 14px 18px}.thig-fields-2{grid-template-columns:1fr 1fr}.thig-item-row{grid-template-columns:minmax(0,1fr) 52px 71px 18px;gap:5px}.thig-item-row input{padding:8px 5px;font-size:12px}.thig-item-row label{font-size:10px}.thig-remove{width:18px;font-size:21px!important}.thig-actions{grid-template-columns:1fr}.thig-preview{padding:23px 16px;font-size:11px}.thig-paper-brand{font-size:26px}.thig-paper-dates{padding:10px 8px}.thig-paper-dates strong{font-size:10px}.thig-paper-parties{gap:11px}.thig-paper-sums{max-width:230px}}
@media print{@page{size:A4;margin:12mm}body *{visibility:hidden!important}.thig .thig-preview,.thig .thig-preview *{visibility:visible!important}.thig .thig-preview{position:absolute!important;left:0!important;top:0!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:10px!important;border:0!important;box-shadow:none!important;overflow:visible!important;color:#111!important}.thig .thig-preview-col{position:static!important}.thig .thig-preview .thig-paper-items tr,.thig .thig-preview .thig-paper-sums{break-inside:avoid}}

/* ================================================================
   ToleHub Invoice Generator 1.2 — wide professional SaaS layout
   Scoped to the v2 shortcode, so legacy themes remain untouched.
   The viewport-centering rule breaks out of narrow WordPress content
   containers without modifying or replacing the active theme.
   ================================================================ */
.thig.thig-v2 {
  --th-ink:#142a35;
  --th-dim:#687d89;
  --th-line:#dee8eb;
  --th-teal:#0c756d;
  --th-soft:#eaf7f3;
  position:relative!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(1520px,calc(100vw - 64px))!important;
  max-width:none!important;
  min-width:0!important;
  margin:14px 0 70px!important;
  padding:0!important;
  isolation:isolate;
}
.thig-v2 .thig-intro {
  position:relative;
  overflow:hidden;
  align-items:center;
  padding:32px 37px 34px;
  margin:0 0 26px;
  border:1px solid #dcebe9;
  border-radius:22px;
  background:linear-gradient(115deg,#f5faf9 0%,#ffffff 58%,#f1f7fa 100%);
  box-shadow:0 7px 28px rgba(20,52,61,.035);
}
.thig-v2 .thig-intro:after {
  content:"";
  width:290px;height:290px;
  background:radial-gradient(circle,rgba(23,135,126,.095),transparent 68%);
  position:absolute;right:-90px;top:-160px;pointer-events:none;
}
.thig-v2 .thig-intro-copy {position:relative;z-index:1;max-width:860px;min-width:0}
.thig-v2 .thig-eyebrow {display:inline-flex;align-items:center;gap:8px;letter-spacing:.12em;font-size:11px;margin-bottom:15px;color:#24776c}
.thig-v2 .thig-eyebrow-dot {width:8px;height:8px;background:#18a789;box-shadow:0 0 0 4px #dcefe8;border-radius:50%;display:inline-block;flex:0 0 8px}
.thig-v2 h2 {max-width:870px;font-size:clamp(32px,3.3vw,51px)!important;line-height:1.1!important;margin:0 0 16px!important;letter-spacing:-.045em!important}
.thig-v2 h2 span {color:var(--th-teal)}
.thig-v2 .thig-intro p {font-size:15px;max-width:780px;line-height:1.75;color:#59747f}
.thig-v2 .thig-intro-features {display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin-top:22px;color:#40636c;font-size:12px;font-weight:650}
.thig-v2 .thig-intro-features span {white-space:nowrap}
.thig-v2 .thig-private {position:relative;z-index:1;flex-shrink:0;padding:17px 20px;border-radius:15px;background:#ffffffd6;box-shadow:0 8px 28px rgba(17,75,73,.05);font-size:13px}
.thig-v2 .thig-private small {margin-left:21px;font-size:11px}
.thig-v2 .thig-app-layout {display:grid;grid-template-columns:minmax(0,1.09fr) minmax(0,.91fr);gap:28px;align-items:start}
.thig-v2 .thig-editor {display:grid;gap:18px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;min-width:0}
.thig-v2 .thig-block {border:1px solid var(--th-line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(21,54,67,.04);padding:26px 28px 28px;margin:0;min-width:0}
.thig-v2 .thig-section-heading {gap:13px;margin-bottom:23px}
.thig-v2 .thig-step {width:34px;height:34px;font-size:12px;background:#e8f7f2;border-radius:10px}
.thig-v2 h3 {font-size:18px!important;letter-spacing:-.025em!important}
.thig-v2 .thig-fields {gap:17px}
.thig-v2 .thig-fields-2 {gap:16px}
.thig-v2 label {font-size:12px;line-height:1.35;letter-spacing:.01em;color:#334d5a}
.thig-v2 input:not([type=file]),
.thig-v2 select,
.thig-v2 textarea {
  font-size:14px;
  font-weight:500;
  margin-top:8px;
  min-height:48px;
  padding:12px 14px;
  border:1px solid #d9e5e9;
  border-radius:11px;
  background:#fcfdfd;
  transition:border-color .15s,box-shadow .15s,background .15s;
}
.thig-v2 textarea {min-height:82px;line-height:1.55}
.thig-v2 input:focus,.thig-v2 select:focus,.thig-v2 textarea:focus {outline:0;border-color:#279788;box-shadow:0 0 0 4px rgba(39,151,136,.095);background:#fff}
.thig-v2 .thig-logo-row {padding:14px 16px;background:#f8fbfa;border:1px dashed #c5dcd6;border-radius:12px}
.thig-v2 .thig-logo-choose {background:#fff;border:1px solid #c8d8d9;border-radius:9px;padding:12px 14px}
.thig-v2 .thig-muted {font-size:12px}
.thig-v2 .thig-item-row {grid-template-columns:minmax(0,1fr) 84px 115px 31px;gap:12px;margin-bottom:16px;align-items:end}
.thig-v2 .thig-remove {width:31px;height:48px;font-size:24px!important}
.thig-v2 .thig-add {min-height:46px;border-radius:11px!important;padding:11px 18px!important;background:#eaf7f3!important}
.thig-v2 .thig-totals-fields {margin-top:27px;padding-top:24px;border-top:1px solid #ebf0f2}
.thig-v2 .thig-payment-intro {font-size:13px;line-height:1.65;margin:-6px 0 20px}
.thig-v2 .thig-payment-options {gap:13px}
.thig-v2 .thig-method-card {border-radius:13px;box-shadow:0 2px 4px rgba(0,0,0,.01)}
.thig-v2 label.thig-method-toggle {padding:17px 18px;font-size:14px}
.thig-v2 .thig-method-toggle small {font-size:12px;line-height:1.55;margin-top:4px}
.thig-v2 .thig-method-fields {padding:20px 18px 22px;gap:17px}
.thig-v2 .thig-method-fields .thig-small-note {margin-top:1px}
.thig-v2 .thig-actions {padding:3px 0 0;gap:13px}
.thig-v2 .thig-actions button {font-size:14px!important;min-height:54px;border-radius:12px!important}
.thig-v2 .thig-primary {box-shadow:0 10px 23px rgba(12,117,109,.17)}
.thig-v2 .thig-message {padding:0 2px;min-height:15px;font-size:13px!important}
.thig-v2 .thig-drafts {margin-top:0;padding:20px 3px 2px;gap:12px 20px}
.thig-v2 .thig-drafts button {font-size:12px!important;color:#557681!important}
.thig-v2 .thig-drafts + .thig-small-note {margin:-10px 4px 6px;font-size:11px}
.thig-v2 .thig-preview-col {top:17px;max-height:calc(100vh - 35px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#d5e1e4 transparent;border-radius:16px}
.thig-v2 .thig-preview-caption {position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px;padding:2px 1px 2px 3px}
.thig-v2 .thig-preview-heading {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.thig-v2 .thig-preview-light {width:8px;height:8px;border-radius:50%;background:#17a67d;box-shadow:0 0 0 4px #dff1ea}
.thig-v2 .thig-preview-heading strong {font-size:14px;color:#183441;line-height:1.3}
.thig-v2 .thig-preview-heading small {color:#8a9ca4;font-size:11px}
.thig-v2 .thig-preview-download {border:1px solid #0e746c!important;background:#0e746c!important;color:white!important;padding:10px 14px!important;border-radius:10px!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important;min-height:42px!important;box-shadow:0 8px 16px rgba(20,107,99,.11)}
.thig-v2 .thig-preview-download:hover {background:#075b55!important}
.thig-v2 .thig-preview-surface {background:linear-gradient(135deg,#eaf2f2 0%,#f3f6f8 100%);padding:22px;border:1px solid #dfe8eb;border-radius:20px;min-width:0}
.thig-v2 .thig-preview {padding:44px 37px 27px;min-height:720px;width:100%;border:1px solid #e3e9eb;border-radius:4px;box-shadow:0 10px 32px rgba(14,57,65,.11);background:white;font-size:12px}
.thig-v2 .thig-paper-top {min-height:85px}
.thig-v2 .thig-paper-brand {font-size:34px}
.thig-v2 .thig-paper-sums {max-width:285px}
.thig-v2 .thig-paper-total strong {font-size:17px}
.thig-v2 .thig-preview-hint {font-size:11px;text-align:center;color:#82969f;padding:13px 8px 0;line-height:1.5;margin:0}
.thig-v2 [hidden] {display:none!important}
@media(min-width:1550px){.thig.thig-v2 {width:min(1520px,calc(100vw - 90px))!important}}
@media(max-width:1250px){
  .thig.thig-v2 {width:calc(100vw - 40px)!important}
  .thig-v2 .thig-app-layout {gap:18px;grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}
  .thig-v2 .thig-block {padding:23px 20px}
  .thig-v2 .thig-item-row {grid-template-columns:minmax(0,1fr) 65px 92px 27px;gap:7px}
  .thig-v2 .thig-preview-surface {padding:13px}
  .thig-v2 .thig-preview {padding:34px 22px}
  .thig-v2 .thig-preview-heading small {display:none}
}
@media(max-width:1020px){
  .thig-v2 .thig-app-layout {grid-template-columns:minmax(0,1fr)!important;gap:22px}
  .thig-v2 .thig-preview-col {position:static!important;max-height:none!important;overflow:visible!important;max-width:780px;width:100%;margin:0 auto}
  .thig-v2 .thig-editor {max-width:850px;margin:auto;width:100%}
  .thig-v2 .thig-private {display:none}
  .thig-v2 .thig-preview {padding:46px 43px}
  .thig-v2 .thig-item-row {grid-template-columns:minmax(0,1fr) 85px 120px 28px;gap:11px}
}
@media(max-width:640px){
  .thig.thig-v2 {width:calc(100vw - 24px)!important;margin:8px 0 38px!important}
  .thig-v2 .thig-intro {padding:23px 20px 25px;margin-bottom:16px;border-radius:16px}
  .thig-v2 h2 {font-size:31px!important;line-height:1.13!important}
  .thig-v2 .thig-intro p {font-size:13px}
  .thig-v2 .thig-intro-features {font-size:11px;gap:8px 13px}
  .thig-v2 .thig-editor {gap:12px}
  .thig-v2 .thig-block {padding:20px 15px 21px;border-radius:14px}
  .thig-v2 .thig-fields {gap:13px}
  .thig-v2 .thig-fields-2 {grid-template-columns:1fr 1fr;gap:10px}
  .thig-v2 input:not([type=file]),.thig-v2 select,.thig-v2 textarea {padding:11px 10px;min-height:46px;font-size:13px}
  .thig-v2 .thig-section-heading {margin-bottom:17px}
  .thig-v2 .thig-item-row {grid-template-columns:minmax(0,1fr) 57px 74px 20px;gap:5px}
  .thig-v2 .thig-item-row input {padding:9px 5px;font-size:12px;min-height:43px}
  .thig-v2 .thig-remove {width:20px;height:43px}
  .thig-v2 .thig-actions {grid-template-columns:1fr;gap:9px}
  .thig-v2 .thig-preview-caption {flex-wrap:wrap;gap:12px}
  .thig-v2 .thig-preview-download {min-height:41px!important;padding:9px 12px!important}
  .thig-v2 .thig-preview-surface {padding:10px;border-radius:15px}
  .thig-v2 .thig-preview {padding:26px 18px;min-height:550px}
  .thig-v2 .thig-paper-brand {font-size:28px}
  .thig-v2 .thig-paper-parties {gap:10px}
  .thig-v2 .thig-paper-sums {max-width:230px}
}
@media(max-width:365px){
  .thig.thig-v2 {width:calc(100vw - 12px)!important}
  .thig-v2 .thig-preview {padding:20px 10px}
  .thig-v2 .thig-item-row {grid-template-columns:minmax(0,1fr) 52px 66px 18px;gap:4px}
  .thig-v2 .thig-block {padding:18px 11px}
}
@media print {
  .thig.thig-v2 {transform:none!important;left:0!important;width:100%!important;max-width:none!important;margin:0!important;position:static!important}
  .thig-v2 .thig-preview-col,.thig-v2 .thig-preview-surface {position:static!important;max-height:none!important;overflow:visible!important;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
  .thig-v2 .thig-preview {position:absolute!important;top:0!important;left:0!important;right:0!important;max-width:100%!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:10mm!important;min-height:0!important}
  .thig-v2 .thig-preview-caption,.thig-v2 .thig-preview-hint {display:none!important}
}

/* v1.2.1 — WordPress page-title deduplication.
   Enabled ONLY on a singular page containing the invoice shortcode.
   The plugin's own hero heading remains visible; the site's header/nav and
   all other pages are untouched. The WordPress post title remains in metadata. */
body.thig-invoice-page .wp-block-post-title,
body.thig-invoice-page main .entry-title,
body.thig-invoice-page main .page-title,
body.thig-invoice-page main .page-heading,
body.thig-invoice-page h1:not(.thig h1):not(header h1):not(.site-header h1),
body.thig-invoice-page main .entry-header:has(h1),
body.thig-invoice-page main .page-header:has(h1) {
  display:none!important;
}
body.thig-invoice-page main .entry-content,
body.thig-invoice-page main .wp-block-post-content {
  margin-top:0;
}
