/* Minimal professional UI (no external libs) */
.gtechps-app { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.gtechps-header{ display:flex; justify-content:space-between; gap:16px; align-items:flex-end; margin: 8px 0 16px; }
.gtechps-header h2{ margin:0; font-size: 24px; letter-spacing: .2px; }
.gtechps-sub{ opacity:.75; font-size: 13px; }
.gtechps-topbar{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.gtechps-label{ font-size:12px; opacity:.8; }
.gtechps-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin: 10px 0 14px; }
.gtechps-tab{ border:1px solid rgba(0,0,0,.12); background:#fff; border-radius: 999px; padding: 8px 12px; cursor:pointer; }
.gtechps-tab.is-active{ border-color: rgba(0,0,0,.35); font-weight:600; }
.gtechps-panel{ display:none; }
.gtechps-panel.is-active{ display:block; }
.gtechps-grid{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px){ .gtechps-grid{ grid-template-columns: 1fr; } }

.gtechps-card{ border:1px solid rgba(0,0,0,.10); background:#fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.04); margin-bottom: 12px; }
.gtechps-card h3{ margin: 0 0 10px; }
.gtechps-card-lite{ border:1px dashed rgba(0,0,0,.18); border-radius: 14px; padding: 12px; margin: 12px 0; background: rgba(0,0,0,.02); }

.gtechps-toolbar{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom: 10px; }
.gtechps-toolbar-right{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

.gtechps-input, .gtechps-select{ width: 100%; max-width: 100%; border:1px solid rgba(0,0,0,.14); border-radius: 10px; padding: 10px 12px; background:#fff; }
.gtechps-select{ min-width: 220px; }
.gtechps-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media (max-width: 900px){ .gtechps-row{ grid-template-columns: 1fr; } }
.gtechps-form label{ display:block; font-size: 12px; opacity:.8; margin: 2px 0 6px; }
.gtechps-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px; }
.gtechps-btn{ border:1px solid rgba(0,0,0,.14); background:#fff; border-radius: 12px; padding: 9px 12px; cursor:pointer; }
.gtechps-btn.is-primary{ border-color: rgba(0,0,0,.28); font-weight: 600; }
.gtechps-btn.is-ghost{ background: transparent; }
.gtechps-hint{ font-size: 12px; opacity: .75; margin-top: 8px; }

.gtechps-tablewrap{ overflow:auto; border:1px solid rgba(0,0,0,.10); border-radius: 12px; }
.gtechps-table{ width:100%; border-collapse: collapse; font-size: 13px; }
.gtechps-table th, .gtechps-table td{ padding: 10px 10px; border-bottom:1px solid rgba(0,0,0,.08); white-space: nowrap; }
.gtechps-table th{ text-align:left; font-size: 12px; opacity:.8; background: rgba(0,0,0,.02); position: sticky; top: 0; }
.gtechps-table tr:hover td{ background: rgba(0,0,0,.02); }

.gtechps-kpis{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
@media (max-width: 900px){ .gtechps-kpis{ grid-template-columns: 1fr; } }
.gtechps-kpi{ border:1px solid rgba(0,0,0,.10); border-radius: 12px; padding: 10px; background:#fff; }
.gtechps-kpi .v{ font-size: 18px; font-weight: 700; }
.gtechps-kpi .k{ font-size: 12px; opacity:.75; margin-top: 2px; }

.gtechps-msg{ margin-top: 8px; font-size: 13px; }
.gtechps-msg.ok{ color: #0a7a34; }
.gtechps-msg.err{ color: #b3261e; }

.gtechps-totals{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 10px; font-size: 13px; }
.gtechps-pill{ border:1px solid rgba(0,0,0,.12); border-radius: 999px; padding: 8px 10px; background:#fff; }


.gtechps-preview-wrap{ margin-top: 12px; }
.gtechps-doc-preview{ border:1px solid rgba(0,0,0,.10); border-radius: 14px; background:#fff; padding: 16px; }
.gtechps-doc-head{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; padding-bottom:12px; border-bottom:1px solid rgba(0,0,0,.08); margin-bottom:12px; }
.gtechps-doc-title{ margin:0; font-size:20px; }
.gtechps-doc-meta{ text-align:right; font-size:12px; opacity:.85; }
.gtechps-doc-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-bottom: 12px; }
.gtechps-doc-box{ border:1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 12px; background: rgba(0,0,0,.015); }
.gtechps-doc-label{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; opacity:.7; margin-bottom:6px; }
.gtechps-doc-value{ font-size:13px; line-height:1.5; }
.gtechps-doc-table{ width:100%; border-collapse:collapse; margin: 8px 0 12px; font-size:13px; }
.gtechps-doc-table th,.gtechps-doc-table td{ padding: 8px 8px; border-bottom:1px solid rgba(0,0,0,.08); text-align:left; vertical-align:top; }
.gtechps-doc-table th:last-child,.gtechps-doc-table td:last-child{ text-align:right; }
.gtechps-doc-totals{ margin-left:auto; width:min(320px,100%); }
.gtechps-doc-total-row{ display:flex; justify-content:space-between; gap:12px; padding:7px 0; border-bottom:1px solid rgba(0,0,0,.08); font-size:13px; }
.gtechps-doc-total-row.is-grand{ font-size:16px; font-weight:700; }
.gtechps-doc-note{ margin-top: 12px; padding-top: 12px; border-top:1px solid rgba(0,0,0,.08); font-size: 13px; line-height:1.5; }
.gtechps-doc-empty{ padding: 16px; text-align:center; font-size:13px; opacity:.72; border:1px dashed rgba(0,0,0,.14); border-radius: 12px; }
@media (max-width: 900px){ .gtechps-doc-grid{ grid-template-columns:1fr; } .gtechps-doc-head{ flex-direction:column; } .gtechps-doc-meta{text-align:left;} }

.gtechps-doc-invoice-template{max-width:860px;margin:0 auto;background:#fff;padding:14px 18px;color:#1f1f1f;font-family:Arial,Helvetica,sans-serif;}
.gtechps-doc-brand-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px;}
.gtechps-doc-brand-mark{font-size:26px;font-weight:800;line-height:1.1;color:#0b5fb3;max-width:340px;word-break:break-word;}
.gtechps-doc-brand-title{font-size:46px;font-weight:800;line-height:1;color:#0b5fb3;letter-spacing:.02em;}
.gtechps-doc-top-meta{display:flex;justify-content:space-between;gap:18px;margin:18px 0 14px;}
.gtechps-doc-to-block,.gtechps-doc-right-meta{font-size:13px;line-height:1.5;}
.gtechps-doc-right-meta{text-align:right;min-width:210px;}
.gtechps-doc-right-meta strong{display:inline-block;margin-right:4px;}
.gtechps-doc-section-label{font-weight:700;margin-bottom:6px;}
.gtechps-doc-table-template thead th{background:#dda92c;color:#1f1f1f;border-bottom:0;font-weight:700;}
.gtechps-doc-table-template tbody td,.gtechps-doc-table-template tfoot td{background:#efd9a7;border-bottom:1px solid #fff;}
.gtechps-doc-table-template tbody tr:nth-child(even) td{background:#ead2a0;}
.gtechps-doc-table-template th,.gtechps-doc-table-template td{padding:7px 8px;font-size:13px;}
.gtechps-doc-table-template td.num,.gtechps-doc-table-template th.num,.gtechps-doc-table-template td:last-child,.gtechps-doc-table-template th:last-child{text-align:right;}
.gtechps-doc-table-template tfoot td{font-weight:700;}
.gtechps-doc-footer-block{margin-top:20px;font-size:13px;line-height:1.6;}
.gtechps-doc-bank{margin-top:18px;}
.gtechps-doc-note-inline{margin-top:14px;}
@media (max-width: 900px){.gtechps-doc-brand-row,.gtechps-doc-top-meta{flex-direction:column;}.gtechps-doc-right-meta{text-align:left;min-width:0;}.gtechps-doc-brand-title{font-size:34px;}}

.gtechps-textarea{min-height:44px;resize:vertical;line-height:1.35;}
.gtechps-item-inline{grid-template-columns:minmax(0,1.9fr) 120px 160px 110px;align-items:end;}
.gtechps-item-inline .gtechps-item-col{min-width:0;}
.gtechps-item-inline .it-remove{width:100%;}
.gtechps-doc-invoice-template,.gtechps-doc-receipt-template{font-size:10px;line-height:1.35;}
.gtechps-doc-brand-mark{font-size:22px;}
.gtechps-doc-brand-title{font-size:38px;}
.gtechps-doc-to-block,.gtechps-doc-right-meta,.gtechps-doc-footer-block{font-size:10px;}
.gtechps-doc-table-template th,.gtechps-doc-table-template td{padding:6px 7px;font-size:10px;}
@media (max-width: 900px){.gtechps-item-inline{grid-template-columns:1fr;}}
.gtechps-actions-cell{white-space:normal;min-width:210px;}
.gtechps-doc-logo{max-height:72px;max-width:180px;display:block;margin-bottom:8px;object-fit:contain;}
.gtechps-doc-logo--placeholder{border:1px dashed rgba(0,0,0,.2);padding:10px 14px;border-radius:8px;font-size:11px;display:inline-block;background:#fafafa;}
.gtechps-doc-brand-left{display:flex;flex-direction:column;align-items:flex-start;gap:6px;}
.gtechps-doc-brand-title--small{font-size:28px;}
.gtechps-item-inline{display:grid;grid-template-columns:minmax(0,2.2fr) 110px 140px 140px 110px;gap:10px;align-items:end;margin-bottom:10px;}
.gtechps-item-line-total{border:1px solid rgba(0,0,0,.12);border-radius:10px;padding:10px 12px;background:#fff;min-height:20px;}
.gtechps-item-col label{display:block;font-size:12px;opacity:.8;margin:0 0 6px;}
.gtechps-doc-receipt-template{max-width:760px;margin:0 auto;background:#fff;padding:14px 18px;font-family:Arial,Helvetica,sans-serif;font-size:10px;line-height:1.35;}
.gtechps-doc-receipt-template .gtechps-doc-box{font-size:10px;}
@media (max-width: 900px){.gtechps-item-inline{grid-template-columns:1fr;}}

/* v2.2.4 frontend cleanup */
.gtechps-shell{
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  width:100vw;
  max-width:100vw;
  padding:32px clamp(16px,2.4vw,36px);
  background:#f4f7fb;
  box-sizing:border-box;
}
.gtechps-shell *, .gtechps-shell *::before, .gtechps-shell *::after{ box-sizing:border-box; }
.gtechps-app{
  --gtech-bg:#f4f7fb;
  --gtech-surface:#ffffff;
  --gtech-surface-soft:#f8fafc;
  --gtech-border:#d9e2ef;
  --gtech-border-strong:#c3d0e2;
  --gtech-text:#16314f;
  --gtech-muted:#5f748f;
  --gtech-primary:#0f4c81;
  --gtech-primary-dark:#0a355c;
  --gtech-accent:#e8b23a;
  --gtech-accent-soft:#fff6df;
  --gtech-shadow:0 12px 28px rgba(12,38,71,.08);
  width:min(1680px, 100%);
  margin:0 auto;
  color:var(--gtech-text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.gtechps-app h2,.gtechps-app h3,.gtechps-app strong{color:var(--gtech-primary-dark)!important;}
.gtechps-header{
  align-items:flex-start;
  margin:0 0 22px;
  padding:24px 28px;
  border:1px solid var(--gtech-border);
  border-radius:24px;
  background:linear-gradient(135deg,#ffffff 0%,#f7fbff 68%,#fff9ea 100%);
  box-shadow:var(--gtech-shadow);
}
.gtechps-header h2{font-size:34px;font-weight:800;line-height:1.05;margin:0 0 6px;}
.gtechps-sub{font-size:14px;color:var(--gtech-muted);opacity:1;}
.gtechps-topbar{
  padding:18px;
  border:1px solid var(--gtech-border);
  border-radius:18px;
  background:rgba(255,255,255,.92);
  min-width:min(100%, 420px);
  justify-content:flex-end;
}
.gtechps-label{font-size:12px;font-weight:700;color:var(--gtech-muted);text-transform:uppercase;letter-spacing:.08em;opacity:1;}
.gtechps-tabs{gap:10px;margin:0 0 20px;}
.gtechps-tab{
  border:1px solid var(--gtech-border-strong);
  background:var(--gtech-surface);
  color:var(--gtech-primary-dark);
  border-radius:999px;
  padding:10px 18px;
  font-weight:600;
  box-shadow:0 4px 10px rgba(15,76,129,.05);
}
.gtechps-tab.is-active{
  background:var(--gtech-primary);
  color:#fff;
  border-color:var(--gtech-primary);
}
.gtechps-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.gtechps-card{
  border:1px solid var(--gtech-border);
  background:var(--gtech-surface);
  border-radius:22px;
  padding:22px;
  box-shadow:var(--gtech-shadow);
  margin-bottom:16px;
}
.gtechps-card-lite{
  border:1px solid var(--gtech-border);
  border-radius:18px;
  padding:16px;
  margin:12px 0;
  background:var(--gtech-surface-soft);
}
.gtechps-toolbar{margin-bottom:14px;}
.gtechps-toolbar h3,.gtechps-card h3{margin:0;font-size:18px;font-weight:800;}
.gtechps-toolbar-right{gap:10px;}
.gtechps-input,.gtechps-select,.gtechps-item-line-total{
  width:100%;
  border:1px solid var(--gtech-border-strong)!important;
  border-radius:14px;
  padding:12px 14px;
  background:#fff!important;
  color:var(--gtech-text)!important;
  box-shadow:none!important;
}
.gtechps-input::placeholder{color:#90a1b7;}
.gtechps-select{min-width:0;}
.gtechps-row{gap:14px;margin-bottom:14px;}
.gtechps-form label,.gtechps-item-col label{font-size:12px;font-weight:700;color:var(--gtech-muted);text-transform:uppercase;letter-spacing:.05em;opacity:1;}
.gtechps-actions{gap:10px;margin-top:14px;}
.gtechps-btn{
  border:1px solid var(--gtech-border-strong)!important;
  background:#fff!important;
  color:var(--gtech-primary-dark)!important;
  border-radius:14px;
  padding:10px 14px;
  font-weight:700;
}
.gtechps-btn.is-primary{
  background:linear-gradient(135deg,var(--gtech-accent) 0%, #f5c34f 100%)!important;
  border-color:#d6a12a!important;
}
.gtechps-btn.is-ghost{background:var(--gtech-surface-soft)!important;}
.gtechps-hint,.gtechps-msg{color:var(--gtech-muted);opacity:1;}
.gtechps-msg.ok{color:#137a52;}.gtechps-msg.err{color:#b3261e;}
.gtechps-tablewrap{
  overflow:auto;
  border:1px solid var(--gtech-border);
  border-radius:18px;
  background:#fff;
}
.gtechps-table th,.gtechps-table td{
  white-space:normal;
  color:var(--gtech-text);
  border-bottom:1px solid #e8eef6;
}
.gtechps-table th{
  background:#eef4fb;
  color:var(--gtech-primary-dark);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.gtechps-table tr:hover td{background:#f9fbfe;}
.gtechps-kpis{gap:12px;}
.gtechps-kpi{
  border:1px solid var(--gtech-border);
  border-radius:18px;
  padding:14px;
  background:linear-gradient(180deg,#fff 0%,#f9fbff 100%);
}
.gtechps-kpi .v{color:var(--gtech-primary-dark);font-size:22px;}
.gtechps-kpi .k{color:var(--gtech-muted);}
.gtechps-pill{
  border:1px solid var(--gtech-border);
  background:var(--gtech-accent-soft);
  color:var(--gtech-primary-dark);
}
.gtechps-totals{gap:12px;}
.gtechps-split-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(380px,.92fr);
  gap:18px;
  align-items:start;
}
.gtechps-preview-sticky{position:sticky;top:24px;margin-top:0;}
.gtechps-doc-preview{
  border:1px solid var(--gtech-border);
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  padding:18px;
  min-height:420px;
}
.gtechps-doc-head{border-bottom:1px solid var(--gtech-border);margin-bottom:14px;padding-bottom:14px;}
.gtechps-doc-box{border:1px solid var(--gtech-border);background:#f8fbff;}
.gtechps-doc-label{color:var(--gtech-muted);}
.gtechps-doc-table th,.gtechps-doc-table td{border-bottom:1px solid #e6edf7;}
.gtechps-doc-total-row{border-bottom:1px solid #e1e9f3;}
.gtechps-doc-note{border-top:1px solid var(--gtech-border);}
.gtechps-doc-invoice-template,.gtechps-doc-receipt-template{
  max-width:none;
  margin:0;
  border:1px solid var(--gtech-border);
  border-radius:18px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6);
}
.gtechps-doc-brand-row{margin-bottom:18px;align-items:flex-start;}
.gtechps-doc-brand-mark{color:var(--gtech-primary)!important;font-size:24px;}
.gtechps-doc-brand-title,.gtechps-doc-brand-title--small{color:var(--gtech-primary)!important;}
.gtechps-doc-brand-title{font-size:40px;}
.gtechps-doc-top-meta{margin:16px 0 18px;}
.gtechps-doc-table-template thead th{background:var(--gtech-accent)!important;color:#1f2d3d!important;}
.gtechps-doc-table-template tbody td,.gtechps-doc-table-template tfoot td{background:#fffaf0;border-bottom:1px solid #efe0b6;}
.gtechps-doc-table-template tbody tr:nth-child(even) td{background:#fff5dd;}
.gtechps-doc-footer-block{margin-top:18px;padding-top:14px;border-top:1px solid #e8eef6;}
.gtechps-actions-cell{min-width:260px;}
.gtechps-item-inline{
  grid-template-columns:minmax(0,2.4fr) 110px 140px 140px 110px;
  gap:12px;
  padding:12px;
  border:1px solid var(--gtech-border);
  border-radius:18px;
  background:#fff;
  margin-bottom:12px;
}
.gtechps-item-line-total{font-weight:700;background:#f8fbff!important;}
#gtechps-company{min-width:260px;}
@media (max-width: 1200px){
  .gtechps-split-grid{grid-template-columns:1fr;}
  .gtechps-preview-sticky{position:static;}
}
@media (max-width: 980px){
  .gtechps-shell{left:auto;right:auto;margin:0;width:100%;max-width:100%;padding:20px 12px;}
  .gtechps-header{padding:18px;}
  .gtechps-header h2{font-size:28px;}
  .gtechps-topbar{min-width:0;width:100%;justify-content:flex-start;}
  .gtechps-grid,.gtechps-kpis,.gtechps-row,.gtechps-item-inline{grid-template-columns:1fr;}
  .gtechps-doc-brand-title{font-size:32px;}
}


.gtechps-login-shell{max-width:560px;margin:40px auto;}
.gtechps-login-card{padding:28px;}
.gtechps-login-card #loginform p{margin:0 0 14px;}
.gtechps-login-card label{display:block;font-weight:600;margin-bottom:6px;}
.gtechps-login-card input[type="text"],.gtechps-login-card input[type="password"],.gtechps-login-card input[type="email"]{width:100%;padding:10px 12px;border:1px solid #d0d7de;border-radius:8px;box-sizing:border-box;}
.gtechps-login-card .button-primary{display:inline-block;background:#111827;color:#fff;border:none;border-radius:8px;padding:10px 18px;cursor:pointer;}


/* v2.7.0 Professional A4 PDF-matched preview */
.gtechps-app{width:min(1880px, 100%);} 
.gtechps-split-grid{grid-template-columns:minmax(0,.8fr) minmax(900px,1.2fr);align-items:start;}
.gtechps-preview-wrap{overflow:auto;background:#eef3f8;}
.gtechps-doc-preview{padding:18px;background:#eef3f8;overflow:auto;}
.gtechps-a4-stage{min-width:210mm;display:flex;justify-content:center;}
.gtechps-a4-page{width:210mm;min-width:210mm;min-height:297mm;background:#fff;box-shadow:0 10px 28px rgba(12,38,71,.16);position:relative;}
.gtechps-doc-pdf-match{width:100%;min-height:297mm;margin:0;background:#fff;border-radius:0;box-shadow:none;border:none;color:#1f2937!important;font-family:Arial,Helvetica,sans-serif!important;font-size:10px!important;line-height:1.28!important;padding:18mm 16mm 22mm;box-sizing:border-box;position:relative;}
.gtechps-doc-pdf-match .header{width:100%;border-collapse:collapse;margin-bottom:12mm;}
.gtechps-doc-pdf-match .header td{vertical-align:top;}
.gtechps-doc-pdf-match .header-left{width:58%;}
.gtechps-doc-pdf-match .header-right,.gtechps-doc-pdf-match .right{text-align:right;width:42%;}
.gtechps-doc-pdf-match .left{width:58%;}
.gtechps-doc-pdf-match .brand-table{border-collapse:collapse;width:100%;}
.gtechps-doc-pdf-match .brand-table td{vertical-align:top;}
.gtechps-doc-pdf-match .brand-logo-cell{width:calc(var(--gtech-logo-width,120px) + 18px);}
.gtechps-doc-pdf-match .company-logo{max-width:var(--gtech-logo-width,120px);max-height:78px;display:block;object-fit:contain;}
.gtechps-doc-pdf-match .company-name{font-size:21px!important;font-weight:700;line-height:1.08;color:#111827!important;margin:0 0 4px;}
.gtechps-doc-pdf-match .company-tagline{font-size:11px;color:#6b7280;margin:0 0 4px;}
.gtechps-doc-pdf-match .company-contacts{font-size:10px;color:#4b5563;line-height:1.45;margin:0;}
.gtechps-doc-pdf-match .company-left{text-align:left;}.gtechps-doc-pdf-match .company-right{text-align:right;}
.gtechps-doc-pdf-match .invoice-title,.gtechps-doc-pdf-match .title{font-size:25px!important;font-weight:800;letter-spacing:.1em;margin:0 0 8px;color:#111827!important;}
.gtechps-doc-pdf-match .meta-card{border-top:2px solid #e5e7eb;padding-top:6px;}
.gtechps-doc-pdf-match .meta-table{width:100%;border-collapse:collapse;}
.gtechps-doc-pdf-match .meta-table td{padding:3px 0;vertical-align:top;font-size:10px;}
.gtechps-doc-pdf-match .meta-label{color:#6b7280;text-align:right;padding-right:8px;width:42%;white-space:nowrap;}
.gtechps-doc-pdf-match .meta-value{text-align:right;width:58%;font-weight:700;color:#111827;}
.gtechps-doc-pdf-match .meta{font-size:11px;line-height:1.5;}
.gtechps-doc-pdf-match .top-grid{width:100%;border-collapse:separate;border-spacing:0;margin-bottom:8mm;}
.gtechps-doc-pdf-match .bill-card,.gtechps-doc-pdf-match .summary-card{border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;vertical-align:top;}
.gtechps-doc-pdf-match .bill-card{width:52%;}.gtechps-doc-pdf-match .summary-card{width:48%;background:#fffbef!important;border-color:#eadfb6;}
.gtechps-doc-pdf-match .section-title,.gtechps-doc-pdf-match .footer-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#6b7280!important;margin-bottom:5px;}
.gtechps-doc-pdf-match .customer-name{font-size:13px;font-weight:700;color:#111827;margin-bottom:4px;}
.gtechps-doc-pdf-match .customer-line{margin-bottom:2px;font-size:10px;}
.gtechps-doc-pdf-match .summary-row{padding:8px 0;border-bottom:1px solid #eadfb6;font-size:11px;}
.gtechps-doc-pdf-match .summary-row.total{border-bottom:none;font-size:14px;font-weight:700;color:#111827;padding-bottom:0;}
.gtechps-doc-pdf-match .invoice-table{width:100%;border-collapse:collapse;table-layout:fixed;margin-bottom:8mm;}
.gtechps-doc-pdf-match .invoice-table thead th{background:var(--gtech-accent-pdf)!important;color:#111827!important;border:1px solid #d7d7d7;padding:8px 10px;text-align:left;font-size:10px;font-weight:700;}
.gtechps-doc-pdf-match .invoice-table tbody td{border-bottom:1px solid #e5e7eb;padding:10px;font-size:10px;vertical-align:top;background:#fff!important;}
.gtechps-doc-pdf-match .invoice-table tbody tr.filler td{height:18px;color:transparent;}
.gtechps-doc-pdf-match .col-desc{width:54%;}.gtechps-doc-pdf-match .col-qty{width:10%;text-align:center;}.gtechps-doc-pdf-match .col-price,.gtechps-doc-pdf-match .col-total{width:18%;text-align:right;}
.gtechps-doc-pdf-match .desc-text{white-space:pre-line;word-wrap:break-word;color:#111827;}
.gtechps-doc-pdf-match .totals-wrap{margin-left:auto;width:42%;background:#fffaf0;border:1px solid #eadfb6;border-radius:10px;padding:10px 14px;box-sizing:border-box;}
.gtechps-doc-pdf-match .totals-table{width:100%;border-collapse:collapse;}
.gtechps-doc-pdf-match .totals-table td{padding:5px 0;font-size:10px;border:none;}
.gtechps-doc-pdf-match .totals-table .label{color:#6b7280;font-size:10px;display:table-cell;}
.gtechps-doc-pdf-match .totals-table .value{text-align:right;font-weight:700;color:#111827;white-space:nowrap;font-size:10px;display:table-cell;}
.gtechps-doc-pdf-match .totals-table .grand-total td{font-size:14px;font-weight:800;border-top:2px solid #d8c27e;padding-top:8px;}
.gtechps-doc-pdf-match .footer-block{position:absolute;left:16mm;right:16mm;bottom:16mm;border-top:1px solid #e5e7eb;padding-top:8mm;font-size:10px;line-height:1.35;background:#fff;}
.gtechps-doc-pdf-match .footer-section{margin-bottom:7mm;}
.gtechps-doc-pdf-match .prepared-signature{margin:6px 0 4px;}.gtechps-doc-pdf-match .prepared-signature img{display:block;max-width:180px;max-height:54px;width:auto;height:auto;object-fit:contain;}
.gtechps-doc-pdf-match .footer-note{color:#6b7280;margin-top:4px;}
.gtechps-doc-pdf-match .grid{width:100%;border-collapse:separate;border-spacing:6px 6px;}
.gtechps-doc-pdf-match .box{border:1px solid #ddd;background:#fafafa!important;padding:10px 11px;vertical-align:top;border-radius:0;}
.gtechps-doc-pdf-match .label{display:block;font-size:9px;text-transform:uppercase;color:#6b7280;margin-bottom:4px;}
.gtechps-doc-pdf-match .value{font-size:11px;font-weight:700;color:#111827;display:block;}
.gtechps-doc-pdf-match .note{margin-top:10px;border-top:2px solid var(--gtech-accent-pdf);padding-top:8px;font-weight:600;}
.gtechps-doc-pdf-match .paid-stamp{position:absolute;top:50%;left:50%;border:3px solid #d92d20;color:#d92d20;font-size:28px;font-weight:700;padding:10px 18px;transform:translate(-50%, -50%) rotate(-15deg);opacity:.85;letter-spacing:.12em;line-height:1;text-align:center;border-radius:6px;background:transparent;z-index:5;pointer-events:none;}
.gtechps-doc-pdf-match .paid-stamp small{display:block;font-size:10px;font-weight:700;margin-top:4px;letter-spacing:.04em;}
@media (max-width: 1600px){.gtechps-split-grid{grid-template-columns:1fr;}.gtechps-preview-sticky{position:static;}}

.gtechps-doc-pdf-match .bill-card-wide{ width:100% !important; display:block; }

/* v2.8.0 production polish */
.gtechps-topbar{
  gap:14px;
  padding:20px 22px;
  min-width:min(100%, 460px);
}
.gtechps-topbar .gtechps-label{
  width:100%;
  margin-bottom:2px;
}
.gtechps-input,
.gtechps-select,
.gtechps-item-line-total{
  min-height:52px;
  padding:14px 16px;
  font-size:15px;
  line-height:1.35;
}
.gtechps-select{
  padding-right:42px;
}
.gtechps-toolbar-right{
  gap:12px;
}
#gtechps-company,
#gtechps-invoice-status,
#gtechps-invoice-customer,
#gtechps-invoice-status-edit{
  min-height:56px;
}
.gtechps-row{
  gap:16px;
  margin-bottom:16px;
}
.gtechps-row--single{
  grid-template-columns:minmax(0, 340px);
}
.gtechps-card,
.gtechps-card-lite{
  overflow:hidden;
}
.gtechps-item-inline{
  grid-template-columns:repeat(4, minmax(0, 1fr)) 120px;
  gap:14px;
  padding:16px;
  border-radius:20px;
}
.gtechps-item-desc-col{
  grid-column:1 / -1;
}
.gtechps-item-desc-col .gtechps-textarea{
  min-height:96px;
  resize:vertical;
}
.gtechps-item-qty-col,
.gtechps-item-price-col,
.gtechps-item-total-col,
.gtechps-item-remove-col{
  align-self:end;
}
.gtechps-item-line-total{
  display:flex;
  align-items:center;
  font-size:14px;
}
.gtechps-item-remove-col .gtechps-btn{
  width:100%;
  min-height:52px;
}
.gtechps-totals{
  margin-top:16px;
}
.gtechps-pill{
  padding:10px 14px;
  font-size:15px;
}
@media (max-width: 980px){
  .gtechps-row--single{
    grid-template-columns:1fr;
  }
  .gtechps-item-inline{
    grid-template-columns:1fr;
  }
  .gtechps-item-desc-col{
    grid-column:auto;
  }
}
