/* ITQAN v70.0.40 — visible unified professional workflow */
:root{--v7040-gold:#b9922e;--v7040-navy:#17283d;--v7040-line:#aeb9c6;--v7040-soft:#f5f7fa;--v7040-goldsoft:#fff8e8}
#documentModal.v7040-document .v472-invoice-window{width:min(1500px,99vw)!important;background:#eef2f6!important}
#documentModal.v7040-document .v472-window-caption{background:var(--v7040-navy)!important;color:#fff!important;border-bottom:3px solid var(--v7040-gold)!important}
#documentModal.v7040-document .v472-record-toolbar{background:#dce4ec!important;border-color:#aeb9c6!important}
#documentModal.v7040-document .v472-invoice-head-form{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;background:#fff!important;border:1px solid var(--v7040-line)!important;padding:10px!important}
.v7040-counterparty-card,.v7040-voucher-fast{display:grid;grid-template-columns:180px minmax(320px,1fr) minmax(230px,.7fr);gap:10px;align-items:end;padding:10px;border:1px solid #c6a44d;border-radius:10px;background:var(--v7040-goldsoft)}
.v7040-field{display:grid;gap:4px}.v7040-field label,.v7040-quick-pay label{font-size:11px;font-weight:800;color:#30445b}.v7040-field input,.v7040-field select,.v7040-quick-pay input,.v7040-quick-pay select{height:36px!important;border:1px solid #9aa9b8!important;border-radius:7px!important;background:#fff!important}
.v7040-selected{min-height:36px;display:flex;align-items:center;padding:7px 10px;border:1px dashed #c2a252;border-radius:7px;background:#fff;color:#52606d;font-size:12px}.v7040-selected strong{color:#173c52;margin-inline-start:4px}
.v7040-search-wrap{position:relative}.v7040-ref-results{display:none;position:absolute;z-index:10050;top:calc(100% + 4px);right:0;left:0;max-height:310px;overflow:auto;border:1px solid #9badbd;border-radius:8px;background:#fff;box-shadow:0 12px 30px rgba(21,39,57,.18)}.v7040-ref-results.open{display:block}.v7040-ref-result{width:100%;display:grid!important;text-align:right!important;padding:8px 10px!important;border:0!important;border-bottom:1px solid #e4e9ee!important;background:#fff!important}.v7040-ref-result:hover{background:#fff8e8!important}.v7040-ref-result strong{font-size:12px}.v7040-ref-result small,.v7040-result-note{font-size:10px;color:#647587}.v7040-result-note{padding:10px}.v7040-result-note.error{color:#a51f1f}
#documentModal.v7040-document .v472-head-main{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
#documentModal.v7040-document #docPartyCode,#documentModal.v7040-document #docParty,#documentModal.v7040-document #docPartyPhone,#documentModal.v7040-document #docPartyAddress{display:none!important}
#documentModal.v7040-document #docPartyCode+*,#documentModal.v7040-document #docParty+*,#documentModal.v7040-document #docPartyPhone+*,#documentModal.v7040-document #docPartyAddress+*{display:none!important}
#documentModal.v7040-document .v472-head-main>div:has(#docPartyCode),#documentModal.v7040-document .v472-head-main>div:has(#docParty),#documentModal.v7040-document .v472-head-main>div:has(#docPartyPhone),#documentModal.v7040-document .v472-head-main>div:has(#docPartyAddress){display:none!important}
#documentModal.v7040-document .v472-invoice-grid{border:1px solid #7e8d9d!important;background:#fff!important;min-height:300px!important}
#documentModal.v7040-document .v472-invoice-head,#documentModal.v7040-document .v472-invoice-line{grid-template-columns:42px 105px minmax(260px,1.8fr) minmax(125px,.8fr) 100px 90px 105px 90px 90px 115px 34px!important}
#documentModal.v7040-document .v472-invoice-head{background:var(--v7040-navy)!important;color:#fff!important}.v7040-document .v472-invoice-head>span{color:#fff!important;border-color:#516273!important;font-weight:800!important}
#documentModal.v7040-document .v472-invoice-line>*{border-color:#b8c2cc!important;background:#fff!important}.v7040-document .v472-invoice-line:nth-child(even)>*{background:#f8fafc!important}
#documentModal.v7040-document .v7040-line-total{width:100%!important;text-align:center!important;font-weight:900!important;background:#fffaf0!important;border:1px solid #c6a44d!important}.v7040-line-total.has-variance{background:#fff1ce!important;outline:2px solid rgba(185,146,46,.28)!important}
#documentModal.v7040-document .v472-invoice-bottom{border:1px solid var(--v7040-line)!important;background:#fff!important}.v7040-document .v472-total-box .grand{background:var(--v7040-goldsoft)!important;border:1px solid #c7a344!important}.v7040-document .v472-total-box .grand output{font-size:22px!important;color:#17283d!important}

#cashModal.v7040-cash .v491-modal{width:min(1280px,98vw)!important;background:#f0f3f7!important}#cashModal.v7040-cash .modal-head{background:var(--v7040-navy)!important;color:#fff!important;border-bottom:3px solid var(--v7040-gold)!important}#cashModal.v7040-cash .v491-tabs{background:#fff;border:1px solid var(--v7040-line);padding:6px;border-radius:8px}#cashModal.v7040-cash .v491-tabs button{border:0!important;border-radius:7px!important;padding:9px 15px!important;font-weight:800!important}#cashModal.v7040-cash .v491-tabs button.active{background:var(--v7040-navy)!important;color:#fff!important}
#cashModal.v7040-cash .v7040-voucher-fast{grid-template-columns:170px minmax(310px,1fr) minmax(220px,.65fr);margin-bottom:10px}.v7040-quick-pay{grid-column:1/-1;display:grid;grid-template-columns:1.1fr 1fr 1.4fr auto;gap:8px;align-items:end;padding-top:8px;border-top:1px solid #dfc981}.v7040-quick-pay>div{display:grid;gap:4px}.v7040-quick-pay #v7040VoucherAmount{font-size:22px!important;font-weight:900!important;color:#132a42!important;text-align:center!important;background:#fffdf6!important;border:2px solid #c29a38!important}
#cashModal.v7040-cash .v491-head-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;background:#fff!important;border:1px solid var(--v7040-line)!important;padding:10px!important;border-radius:9px!important}.v7040-hide-field{display:none!important}#cashModal.v7040-cash .v491-party-strip{border:1px solid #cbd5df!important;background:#f8fafc!important;border-radius:8px!important}#cashModal.v7040-cash .v491-pay-row{border:1px solid #b7c2cd!important;border-radius:8px!important;background:#fff!important}#cashModal.v7040-cash .v491-allocation-table th,#cashModal.v7040-cash .v491-allocation-table td{border:1px solid #b9c3cd!important}

#v483PartyStatement.v7040-statement-host .v7033-ledger table,#v483PartyStatement.v7040-statement-host .v7040-ledger table{border-collapse:collapse!important}#v483PartyStatement.v7040-statement-host th,#v483PartyStatement.v7040-statement-host td{border:1px solid #aeb9c6!important}#v483PartyStatement.v7040-statement-host thead th{background:var(--v7040-navy)!important;color:#fff!important}

#fuelInvoiceModal.v7040-fuel .fuel-modal{width:min(1500px,99vw)!important}#fuelInvoiceModal.v7040-fuel .modal-head{background:var(--v7040-navy)!important;color:#fff!important;border-bottom:3px solid var(--v7040-gold)!important}#fuelInvoiceModal.v7040-fuel .fuel-meter-table th,#fuelInvoiceModal.v7040-fuel .fuel-meter-table td,#fuelInvoiceModal.v7040-fuel .fuel-lines-table th,#fuelInvoiceModal.v7040-fuel .fuel-lines-table td{border:1px solid #aeb9c6!important}#fuelInvoiceModal.v7040-fuel .fuel-grand-summary>div{border:1px solid #b7c2cd!important;background:#fff!important}#fuelInvoiceModal.v7040-fuel #fuelSalesVariance{font-weight:900!important;color:#17283d!important}

.v7040-journal-line{border:1px solid #b8c2cc!important;background:#fff!important;border-radius:7px!important;margin-bottom:5px!important}
@media(max-width:900px){.v7040-counterparty-card,.v7040-voucher-fast{grid-template-columns:1fr!important}.v7040-quick-pay{grid-template-columns:1fr 1fr!important}.v7040-selected{grid-column:1/-1}.v7040-document .v472-invoice-head,.v7040-document .v472-invoice-line{min-width:1180px!important}#cashModal.v7040-cash .v491-head-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:600px){.v7040-quick-pay,#cashModal.v7040-cash .v491-head-grid{grid-template-columns:1fr!important}}

/* v70.0.40 activation fixes: current v49.2 voucher + current v44.10.78 journal */
#cashModal.v7040-cash .v7040-voucher-fast-title{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding-bottom:7px;border-bottom:1px solid #dfc981}
#cashModal.v7040-cash .v7040-voucher-fast-title strong{font-size:15px;color:var(--v7040-navy)}
#cashModal.v7040-cash .v7040-voucher-fast-title span{font-size:11px;color:#667789}
#cashModal.v7040-cash .v499-payment-fieldset.v7040-advanced-payments{display:none!important}
#cashModal.v7040-cash .v499-payment-fieldset.v7040-advanced-payments.v7040-show-advanced-payments{display:block!important}
#cashModal.v7040-cash .v499-account-fields .v499-account-grid,#cashModal.v7040-cash .v499-doc-grid,#cashModal.v7040-cash .v499-finance-grid{gap:8px!important}
#cashModal.v7040-cash .v499-voucher-sheet fieldset{border-color:#b8c4cf!important;background:#fff!important}
#cashModal.v7040-cash .v499-main-total{border:1px solid #c7a344!important;background:var(--v7040-goldsoft)!important}

#journalLines .v7040-journal-line>td{border:1px solid #b7c2cd!important;background:#fff!important}
#journalLines .v7040-journal-line:nth-child(even)>td{background:#f8fafc!important}
#journalLines .v7040-journal-party-cell{display:grid!important;grid-template-columns:1fr!important;min-width:280px!important;position:relative}
#journalLines .v7040-journal-party-cell>[data-j="party_name"],#journalLines .v7040-journal-party-cell>button{display:none!important}
.v7040-journal-refbox{display:grid;grid-template-columns:120px minmax(150px,1fr);gap:5px;align-items:center;position:relative}
.v7040-journal-refbox .v7040-journal-source,.v7040-journal-refbox .v7040-journal-search{height:31px!important;min-width:0!important;border:1px solid #98a8b7!important;border-radius:5px!important;background:#fff!important;font-size:11px!important}
.v7040-journal-refbox .v7040-journal-picked{grid-column:1/-1;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#536679;font-size:10px}
.v7040-journal-refbox .v7040-journal-picked strong{color:var(--v7040-navy)}
.v7040-journal-refbox .v7040-ref-results{top:34px;min-width:360px;right:120px;left:0}
@media(max-width:900px){#journalLines .v7040-journal-party-cell{min-width:230px!important}.v7040-journal-refbox{grid-template-columns:1fr}.v7040-journal-refbox .v7040-journal-picked{grid-column:1}.v7040-journal-refbox .v7040-ref-results{right:0;min-width:260px}}
