/* Shared ERP sizing rules. Do not apply full-width form styles to native toggles. */
#root main input:is([type=checkbox],[type=radio]){appearance:auto;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;margin:0 6px 0 0!important;flex:0 0 18px!important;align-self:center;accent-color:#242421;vertical-align:middle}
#root main label:has(>input:is([type=checkbox],[type=radio])){display:flex;align-items:center;gap:8px;min-width:0}
#root main .form>*,#root main .bar>*,#root main .metrics>*,#root main .record>*{min-width:0}
#root main :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;max-width:100%;min-width:0}
#root main :is(.hos-operation-page,.hos-purchase-workspace,.hos-order-workspace,.hos-supplier-workspace){overflow-wrap:normal;min-width:0}
#root main .hos-operation-page :is(.scroll,.table-scroll){max-width:100%;overflow-x:auto}
.hos-operation-page :is(h2,h3){line-height:1.35}.hos-operation-page h3{margin:24px 0 12px}.hos-operation-page :is(p,small){line-height:1.5}
.hos-operation-page button,.hos-operation-page a[download]{max-width:100%;white-space:normal}.hos-operation-page form{min-width:0}
.hos-quote-fields,.hos-quote-price-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.hos-quote-fields label,.hos-quote-price-fields label{display:grid;gap:5px;font-size:13px;color:#625d55}.hos-quote-fields label>*{width:100%}
.hos-quote-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}.hos-quote-toolbar>input{flex:1 1 260px;width:auto!important}.hos-quote-toolbar button{flex:0 0 auto}.hos-quote-toolbar output{font-size:13px;color:#625d55;flex-basis:100%}
.hos-quote-register{border:1px solid #e8e3dc;border-radius:10px;overflow:hidden;margin:12px 0}.hos-quote-head,.hos-quote-row{display:grid;grid-template-columns:28px 64px minmax(160px,1fr) minmax(125px,185px) 88px;gap:12px;align-items:center;padding:12px 14px}.hos-quote-head{font-size:12px;font-weight:600;color:#635d54;background:#f4f1ec}.hos-quote-row{border-bottom:1px solid #ece8e2;min-height:74px}.hos-quote-row:last-child{border-bottom:0}.hos-quote-row>img,.hos-quote-image-placeholder{width:56px;height:56px;object-fit:contain;justify-self:center}.hos-quote-row .hos-quote-name{min-width:0;overflow-wrap:anywhere;line-height:1.45}.hos-quote-name strong,.hos-quote-name small{display:block}.hos-quote-name small{color:#645e55;font-size:13px}.hos-quote-row .hos-quote-price{font-variant-numeric:tabular-nums;font-size:13px;line-height:1.4}.hos-quote-row input[type=number]{width:100%!important;text-align:right}.hos-quote-page-buttons{display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap;margin:10px 0}.hos-quote-note{font-size:13px;color:#625d55}
.hos-purchase-workspace section{min-width:0}.hos-purchase-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px;margin:14px 0}.hos-purchase-fact{background:#f9f7f3;border:1px solid #e8e3dc;border-radius:8px;padding:12px;min-width:0;overflow-wrap:anywhere}.hos-purchase-fact small,.hos-purchase-table-wrap small{display:block;color:#645e55;font-size:12px;line-height:1.5}.hos-purchase-fact strong{display:block;margin-top:5px;font-size:15px;line-height:1.4}.hos-purchase-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(120px,1fr)) auto;gap:10px;align-items:end}.hos-purchase-filters label{display:grid;gap:6px}.hos-purchase-pager,.hos-purchase-detail-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.hos-purchase-pager{justify-content:flex-end}.hos-purchase-detail-nav span{color:#645e55;overflow-wrap:anywhere}.hos-purchase-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #e8e3dc;border-radius:8px}.hos-purchase-table-wrap table{width:100%;min-width:760px;table-layout:auto;border-collapse:collapse}.hos-purchase-table-wrap th,.hos-purchase-table-wrap td{padding:12px 10px;vertical-align:middle;text-align:left;word-break:normal;overflow-wrap:normal}.hos-purchase-table-wrap th{background:#f4f1ec;white-space:nowrap;color:#625d55;font-size:12px}.hos-purchase-table-wrap td:first-child,.hos-purchase-table-wrap td:nth-child(2){min-width:150px;max-width:240px;overflow-wrap:anywhere}.hos-purchase-table-wrap td:nth-child(n+3){white-space:nowrap}.hos-purchase-table-wrap td[colspan]{white-space:normal;min-width:0;max-width:none}.hos-purchase-table-wrap button{font-size:12px;white-space:nowrap}.hos-purchase-line-facts{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));margin:4px 0}
@media(max-width:950px){.hos-quote-fields,.hos-quote-price-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.hos-purchase-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.hos-quote-head,.hos-quote-row{grid-template-columns:24px 48px minmax(110px,1fr) minmax(80px,140px) 70px;gap:8px;padding:10px}.hos-quote-row>img,.hos-quote-image-placeholder{width:44px;height:44px}}
@media(max-width:600px){.hos-quote-fields,.hos-quote-price-fields,.hos-purchase-filters{grid-template-columns:minmax(0,1fr)}.hos-quote-head{display:none}.hos-quote-row{grid-template-columns:24px 48px minmax(0,1fr) 70px;gap:7px;padding:10px 8px}.hos-quote-row>.hos-quote-name{grid-column:3/-1}.hos-quote-row>.hos-quote-price{grid-column:2/4}.hos-quote-row>input[type=number]{grid-column:4}.hos-quote-page-buttons{justify-content:space-between}.hos-purchase-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.hos-purchase-table-wrap{overscroll-behavior-x:contain}.hos-purchase-fact{padding:8px}.hos-purchase-fact strong{font-size:14px}}
