/* JKV_FIX_R4_20260921 - Quotation / JCR / GST documents shown inside the app.
   The document's own print stylesheet (#jkvDocAlign) targets body/table globally and was
   shrinking the whole app to A4 width and clipping tables. Neutralise that inside the app only;
   the standalone Print / Save PDF window is not affected. */
html body:has(#jkvDocAlign){max-width:none!important;width:auto!important;margin:0!important;padding-left:0!important;padding-right:0!important;padding-top:0!important}
html:has(#jkvDocAlign){overflow-x:clip!important}
#dashboardContent .official-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;border-radius:16px!important}
#dashboardContent .official-toolbar>div:first-child{min-width:0!important;flex:1 1 220px!important}
#dashboardContent .official-document{box-sizing:border-box!important;width:100%!important;max-width:900px!important;margin-left:auto!important;margin-right:auto!important}
#dashboardContent .official-toolbar{max-width:900px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
#dashboardContent .official-a4-meta{display:table!important;table-layout:fixed!important;width:100%!important;overflow:visible!important}
#dashboardContent .official-a4-meta th,#dashboardContent .official-a4-meta td{min-width:0!important;overflow-wrap:anywhere!important;word-break:normal!important}
#dashboardContent .official-a4-meta th{width:18%!important}
#dashboardContent .official-jcr-commercial{display:flex!important;flex-wrap:wrap!important;gap:8px 24px!important}
#dashboardContent .official-jcr-commercial>div{display:flex!important;gap:8px!important;min-width:0!important}

@media (max-width:760px){
  #dashboardContent .official-toolbar{padding:12px!important}
  #dashboardContent .official-toolbar b{font-size:15px!important}
  #dashboardContent .official-toolbar small{font-size:12px!important}
  #dashboardContent .official-toolbar>div:last-child{flex:1 1 100%!important}
  #dashboardContent .official-toolbar .btn{width:100%!important;min-height:46px!important;border-radius:12px!important;font-size:14px!important}
  #dashboardContent .official-document{padding:14px 12px!important;border-radius:14px!important}
  #dashboardContent .official-a4-brand{gap:10px!important}
  #dashboardContent .official-a4-brand img{width:56px!important;height:56px!important;object-fit:contain!important}
  #dashboardContent .official-a4-brand h2{font-size:17px!important;line-height:1.15!important}
  #dashboardContent .official-a4-brand p{font-size:8.5px!important;line-height:1.4!important}
  #dashboardContent .official-a4-title{padding:12px!important}
  #dashboardContent .official-a4-title b{font-size:16px!important;line-height:1.2!important}
  /* meta table: one label/value pair per line on phones */
  #dashboardContent .official-a4-meta,#dashboardContent .official-a4-meta tbody{display:block!important;width:100%!important}
  #dashboardContent .official-a4-meta tr{display:grid!important;grid-template-columns:38% 62%!important;width:100%!important}
  #dashboardContent .official-a4-meta th,#dashboardContent .official-a4-meta td{display:block!important;width:auto!important;padding:8px 10px!important;font-size:12px!important;line-height:1.35!important;border-bottom:1px solid #e3ebf3!important;overflow-wrap:normal!important;word-break:normal!important}
  #dashboardContent .official-a4-meta td{overflow-wrap:anywhere!important}
  #dashboardContent .official-a4-box>div,#dashboardContent .official-a4-payment>div,#dashboardContent .official-acceptance-meta>div{display:grid!important;grid-template-columns:42% 58%!important;gap:8px!important;align-items:start!important}
  #dashboardContent .official-customer-total{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:6px 12px!important;padding:14px!important}
  #dashboardContent .official-customer-total span{flex:1 1 150px!important;font-size:13.5px!important}
  #dashboardContent .official-customer-total b{font-size:22px!important;white-space:nowrap!important}
  #dashboardContent .official-jcr-commercial{display:grid!important;grid-template-columns:1fr!important;padding:12px!important}
  #dashboardContent .official-jcr-commercial>div{display:grid!important;grid-template-columns:42% 58%!important}
  #dashboardContent .official-a4-evidence{grid-template-columns:1fr 1fr!important;gap:8px!important}
  #dashboardContent .official-a4-evidence>div span{min-height:120px!important}
  #dashboardContent .official-a4-acceptance{grid-template-columns:1fr!important}
}
