/* Shared entry-form control standard: compact on desktop, safe for touch on mobile. */
main .setup-card .field>input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]),main .setup-card .field>select,main .setup-card .field>textarea,main .setup-card .smart-select-input,main .order-card input:not([type=hidden]):not([type=checkbox]):not([type=radio]),main .order-card select{box-sizing:border-box!important;min-height:36px!important;height:36px!important;padding:.28rem .52rem!important;border-radius:8px!important;font-size:.78rem!important;line-height:1.15!important}
main .setup-card .field>textarea{resize:vertical}
main .setup-card .tendero-date-input{height:36px!important;min-height:36px!important}
main .setup-card .tendero-date-input>input[type=text]{height:36px!important;min-height:36px!important}
main .setup-card .tendero-calendar-button{height:36px!important;min-height:36px!important;flex-basis:38px}
.sale-lines{overflow:visible!important}.sale-line{overflow:visible!important}.bounded-autocomplete-host{position:relative;z-index:20}.bounded-autocomplete-host:focus-within{z-index:30}.bounded-autocomplete-options{position:absolute;z-index:1100;top:calc(100% + 4px);left:0;right:0;max-height:230px;overflow:auto;padding:.28rem;border:1px solid #b9d5d0;border-radius:10px;background:#fff;box-shadow:0 14px 35px rgba(8,35,54,.18)}.bounded-autocomplete-options button{display:block;width:100%;border:0;border-radius:7px;background:#fff;padding:.5rem .6rem;color:#173751;text-align:left;font:inherit;font-size:.78rem}.bounded-autocomplete-options button:hover,.bounded-autocomplete-options button:focus{outline:0;background:#e8f5f2}.bounded-autocomplete-empty{display:block;padding:.55rem .6rem;color:#718196;font-size:.75rem}
main .invoice-list-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.32rem;margin-top:.35rem}main .invoice-list-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:.3rem .48rem;border:1px solid #bfd9d4;border-radius:8px;background:#f6fbfa;color:#185b59;font-size:.7rem;font-weight:800;line-height:1;text-decoration:none;white-space:nowrap}main .invoice-list-actions .invoice-action-print{background:#eef7ff;border-color:#bfd7ee;color:#205f91}main .invoice-list-actions .invoice-action-return{background:#f0fbf7;border-color:#b9e0d5;color:#08725d}main .invoice-list-actions .invoice-action-correct{background:#fff8e7;border-color:#edd18b;color:#8a5b00}main .invoice-list-actions .inline-action{margin:0;display:inline-flex;align-items:center}.invoice-list-actions .invoice-cancel-action{width:auto!important;min-height:30px!important;padding:.28rem .45rem!important;font-size:.67rem!important}
@media(max-width:767.98px){main .setup-card .field>input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]),main .setup-card .field>select,main .setup-card .field>textarea,main .setup-card .smart-select-input,main .order-card input:not([type=hidden]):not([type=checkbox]):not([type=radio]),main .order-card select{min-height:42px!important;height:42px!important;font-size:16px!important}main .setup-card .tendero-date-input,main .setup-card .tendero-date-input>input[type=text],main .setup-card .tendero-calendar-button{min-height:42px!important;height:42px!important}.bounded-autocomplete-options button{padding:.62rem .68rem;font-size:16px}main .invoice-list-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-content:stretch;width:100%;gap:.35rem}main .invoice-list-actions a{min-height:38px;padding:.35rem .2rem;font-size:.65rem;white-space:normal;text-align:center}main .invoice-list-actions .inline-action{grid-column:3;justify-self:stretch}main .invoice-list-actions .invoice-cancel-action{width:100%!important;min-height:32px!important;font-size:.64rem!important}}
/* FOC and invoice visibility controls */
.fbr-inline-card>summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;cursor:pointer;list-style:none;padding:.2rem 0 .75rem;color:#0b3d39}.fbr-inline-card>summary::-webkit-details-marker{display:none}.fbr-inline-card>summary span{font-size:.72rem;font-weight:500;color:#64748b}.fbr-inline-card[open]>summary{border-bottom:1px solid #e3ecea;margin-bottom:.75rem}.fbr-master-links{display:flex;flex-wrap:wrap;gap:.55rem}
.line-foc,.line-visibility{min-width:0}.line-visibility.visibility-locked{background:#eef5f3;color:#35645d;cursor:not-allowed}.invoice-visibility small{display:block;margin-top:.2rem;color:#64748b;font-size:.7rem}
@media(min-width:900px){
 .sale-line.standard-invoice-line{grid-template-columns:minmax(360px,3fr) repeat(4,minmax(74px,.62fr)) minmax(76px,.55fr)!important}
 .sale-line.standard-invoice-line.has-foc,
 .sale-line.standard-invoice-line.has-item-discount,
 .sale-line.standard-invoice-line.has-line-visibility{grid-template-columns:minmax(330px,3fr) repeat(5,minmax(74px,.62fr)) minmax(76px,.55fr)!important}
 .sale-line.standard-invoice-line.has-foc.has-item-discount,
 .sale-line.standard-invoice-line.has-foc.has-line-visibility,
 .sale-line.standard-invoice-line.has-item-discount.has-line-visibility{grid-template-columns:minmax(300px,2.8fr) repeat(6,minmax(72px,.6fr)) minmax(76px,.55fr)!important}
 .sale-line.standard-invoice-line.has-foc.has-item-discount.has-line-visibility{grid-template-columns:minmax(270px,2.6fr) repeat(7,minmax(70px,.58fr)) minmax(76px,.55fr)!important}
}
@media(min-width:900px){
 .sale-form>.setup-card{padding:.72rem 1rem!important;margin-bottom:.5rem!important}
 .sale-form .setup-fields{row-gap:.42rem!important}
 .sale-form .sale-line{padding:.28rem 0!important;row-gap:.18rem!important}
 .sale-form .sale-line .field label{margin-bottom:.08rem!important;font-size:.66rem!important}
 .sale-form .sale-lines .setup-card-title{margin-bottom:.38rem!important;padding-bottom:.35rem!important}
 .sale-form .sales-team-select .setup-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Sales and Purchase: a shared desktop heading leaves more vertical room for invoice lines. */
@media(min-width:900px){
 body.invoice-entry-page .context-back-row{display:none}
 body.invoice-entry-page .app-container{padding-top:.3rem}
 body.invoice-entry-page .product-heading{max-width:1360px;margin:.25rem auto .45rem;align-items:center}
 body.invoice-entry-page .product-heading h1{font-size:1.55rem;line-height:1.08;margin:.12rem 0}
 body.invoice-entry-page .product-heading p{font-size:.72rem;margin:0;line-height:1.25}
 body.invoice-entry-page .product-heading .eyebrow{font-size:.62rem}
 body.invoice-entry-page .sale-form{max-width:1360px}
 body.invoice-entry-page .sale-form>.setup-card{padding:.5rem .78rem!important;margin-bottom:.36rem!important}
 body.invoice-entry-page .sale-form .sale-lines .setup-card-title{display:flex;align-items:center;gap:.5rem;margin-bottom:.2rem!important;padding-bottom:.2rem!important}
 body.invoice-entry-page .sale-lines .setup-card-title>span{width:26px;height:26px;min-width:26px}
 body.invoice-entry-page .sale-lines .setup-card-title>div{display:flex;align-items:center;flex-wrap:wrap;gap:.2rem .8rem;flex:1}
 body.invoice-entry-page .sale-lines .setup-card-title h2{font-size:.88rem;margin:0}
 body.invoice-entry-page .sale-lines .setup-card-title p{display:none}
 body.invoice-entry-page .sale-lines .quick-master{margin:0 0 0 auto;gap:.6rem}
 body.invoice-entry-page .sale-form .sale-line{align-items:center;column-gap:.38rem;padding:.13rem 0!important;min-height:39px}
 body.invoice-entry-page .sale-form .sale-line.auto-row-hidden.desktop-entry-slot{display:grid!important}
 body.invoice-entry-page .sale-lines .sale-line .field{min-width:0}
 body.invoice-entry-page.invoice-column-headings-ready .sale-lines .sale-line .field>label,
 body.invoice-entry-page.invoice-column-headings-ready .sale-lines .sale-line .line-total>small{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
 body.invoice-entry-page .sale-lines .sale-line .line-total{padding:0;text-align:right}
 body.invoice-entry-page .sale-lines .sale-line input:not([type=hidden]),
 body.invoice-entry-page .sale-lines .sale-line select{height:34px!important;min-height:34px!important}
 body.invoice-entry-page .sale-lines .sale-column-head{display:grid;align-items:end;column-gap:.38rem;padding:.16rem 0 .22rem;border-bottom:1px solid #bcded8;color:#38546a;font-size:.64rem;font-weight:850;line-height:1.15}
 body.invoice-entry-page .sale-lines .sale-column-head>span:last-child{text-align:right}
 body.invoice-entry-page .sale-lines .sale-column-head.standard-invoice-line{grid-template-columns:minmax(360px,3fr) repeat(4,minmax(74px,.62fr)) minmax(76px,.55fr)}
 body.invoice-entry-page .sale-lines .sale-column-head.has-foc,
 body.invoice-entry-page .sale-lines .sale-column-head.has-item-discount,
 body.invoice-entry-page .sale-lines .sale-column-head.has-line-visibility{grid-template-columns:minmax(330px,3fr) repeat(5,minmax(74px,.62fr)) minmax(76px,.55fr)}
 body.invoice-entry-page .sale-lines .sale-column-head.has-foc.has-item-discount,
 body.invoice-entry-page .sale-lines .sale-column-head.has-foc.has-line-visibility,
 body.invoice-entry-page .sale-lines .sale-column-head.has-item-discount.has-line-visibility{grid-template-columns:minmax(300px,2.8fr) repeat(6,minmax(72px,.6fr)) minmax(76px,.55fr)}
 body.invoice-entry-page .sale-lines .sale-column-head.has-foc.has-item-discount.has-line-visibility{grid-template-columns:minmax(270px,2.6fr) repeat(7,minmax(70px,.58fr)) minmax(76px,.55fr)}
}
@media(max-width:899.98px){body.invoice-entry-page .sale-column-head{display:none!important}}
