/* IRONEX: charcoal, warm gold and clear white forms. */
:root{--nav:#171717;--line:#e8dfcc;--muted:#70695e;--primary:#95681b;--accent:#c59a50;--brand:#95681b;--blue:#95681b}
body{background:#f7f5f0;color:#24221e}
body aside{background:linear-gradient(160deg,#101010,#25221c)!important;border-right:1px solid #ae8646}
body aside .brand,body aside .mikro-word{color:#e8c47e!important}
.tenant-nav-logo{display:block;width:100%;max-width:180px;height:auto;max-height:110px;object-fit:contain;margin:0 auto 5px}
body aside nav a{color:#eae6dc!important}
body aside nav a:hover,body aside nav a.active{background:#c59a50!important;color:#171717!important}
body aside .navgroup{color:#dbb676!important}
body .btn:not(.secondary):not(.success):not(.dangerbtn),body button:not(.link):not(.dangerbtn):not(.success){background:#a7792d;color:#fff}
body .btn.secondary{background:#eee5d5;color:#554024}
body .tabbar button.active{background:#29251e;color:#f1cb83}
body input:focus,body select:focus,body textarea:focus{outline:2px solid #bf9249;outline-offset:1px;border-color:#95681b}
body a{color:#805713}body aside a{color:#eae6dc}
body .metric{border-top:3px solid #bd914b}
body .badge{background:#f2e8d3;color:#73501c}
body .badge.confirmed,body .badge.draft{background:#f2e8d3;color:#73501c}
body .login-card{border-color:#bc914d;box-shadow:0 16px 50px #34281422}
body .login-logo{color:#95681b}
body .sales-print-v238 header.sp238-head{border-bottom:1.5px solid #b48b49!important;grid-template-columns:52mm minmax(0,1fr) 46mm!important;column-gap:5mm!important}
body .sales-print-v238 .mkd-print-logo{width:50mm!important;max-width:50mm!important;max-height:32mm!important;height:auto!important}
body .sales-print-v238 .sp238-companydata{font-size:8pt!important;line-height:1.35!important;overflow-wrap:anywhere}
body .sales-print-v238 .sp238-companyname{font-size:8.5pt!important}
body .sales-print-v238 .sp238-kind,body .sales-print-v238 .sp238-number{color:#73501c!important}
body .sales-print-v238 .sp238-card h3{color:#73501c!important;border-color:#d1b178!important}
body .sales-print-v238 .sp238-table th,body .sales-print-v238 .sp238-a4-head{background:#f2e8d3!important;color:#332719!important;border-color:#c6a268!important}
body .sales-print-v238 .sp238-companydata .ids{border-color:#d7c299!important}
@media print{
 body .sales-print-v238{background:#fff!important;color:#111!important}
 body .sales-print-v238 header.sp238-head{grid-template-columns:52mm minmax(0,1fr) 46mm!important;min-height:33mm!important}
 body .sales-print-v238 .sp238-title{grid-column:3!important;min-width:0!important}
 body .sales-print-v238 .sp238-brand{grid-column:1!important}
 body .sales-print-v238 .sp238-companydata{grid-column:2!important}
 body .sales-print-v238 .sp238-table th,body .sales-print-v238 .sp238-a4-head{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
@media screen and (max-width:760px){body .sales-print-v238 header.sp238-head{grid-template-columns:1fr!important}body .sales-print-v238 .sp238-brand,body .sales-print-v238 .sp238-companydata,body .sales-print-v238 .sp238-title{grid-column:1!important}.tenant-nav-logo{max-height:65px;width:auto}}
/* 5.14.9: replace retail yellow, including group summaries. */
:root{--mikro-yellow:#c59a50;--mikro-yellow2:#af8036}
body aside#appSidebar.app-sidebar{background:linear-gradient(180deg,#181818,#29251e)!important}
body #appSidebar .side-group[open]>summary,body #appSidebar .side-group>summary:hover,body #appSidebar .side-nav a.active{background:linear-gradient(100deg,#d3ae6b,#bc9149)!important;color:#211b12!important}
body #appSidebar .side-group[open]>summary .side-icon,body #appSidebar .side-group[open]>summary .chev{color:#58411e!important}
body #appSidebar .side-nav a:hover{background:#c59a50!important;color:#211b12!important}
body .quick-pos,body .exec-new{background:linear-gradient(100deg,#d3ae6b,#bc9149)!important;color:#211b12!important;border-color:#af8036!important}
body #appSidebar .sidebar-top{height:auto!important;min-height:110px!important;align-items:flex-start!important;padding-top:8px!important}
body #appSidebar .brand-home{height:auto!important;min-height:100px!important;overflow:visible!important}
body #appSidebar .brand-home strong{height:auto!important;line-height:normal!important}
body #appSidebar .tenant-nav-logo{display:block!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;background:white;border-radius:5px;margin:0 0 6px!important}
body .sales-print-v238 .sp238-note h3,body .sales-print-v238 .sp238-totals .grand,body .sales-print-v238 .sp238-totals .grand b{color:#805d27!important;border-color:#bc9149!important}
body .sales-print-v238 .sp238-totals .grand{background:#f7f0e3!important}

/* IRONEX A4 header contrast: screen, PDF and paper. */
body .sales-print-v238 .sp238-table thead th,
body .sales-print-v238 .sp238-table thead th .sp238-th-label,
body .sales-print-v238 .sp238-a4-head,
body .sales-print-v238 .sp238-a4-head > div,
body .sales-print-v238 .sp238-a4-head > div * {
 color:#000000!important;
 -webkit-text-fill-color:#000000!important;
 text-shadow:none!important;
}

/* 5.14.11: compact accountant-aligned documents. */
body .ironex-document .ironex-payment-terms{min-height:0!important;padding:3mm 4mm!important;break-inside:avoid}
body .ironex-document .sp238-card{min-height:0!important;padding:3mm!important}
body .ironex-document .sp238-dl{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)!important;gap:1.4mm 2mm!important}
body .ironex-document .sp238-dl b{overflow-wrap:anywhere}
body .ironex-document.offer-print .sp238-status{display:none!important}
body .ironex-document .sp238-note{min-height:0!important;padding:3mm!important}
body .ironex-document .ironex-no-note .sp238-note{display:none!important}
body .ironex-document .ironex-no-note{grid-template-columns:1fr!important}
body .ironex-document .ironex-no-note .sp238-totals{width:85mm!important;max-width:100%!important;justify-self:end!important}
body .ironex-document .ironex-amount-words{font-size:8pt;text-align:right;margin:2mm 0 3mm;break-inside:avoid}
body .ironex-document .ironex-rounding-note{font-size:7pt;line-height:1.3;margin:2mm 0;color:#333}
body .ironex-document .sp238-lower:empty{display:none!important}
body .ironex-document .sp238-foot{margin-top:8mm!important;break-inside:avoid}


/* 5.14.12: one-page short Ironex offers; keep natural pagination for long documents. */
body .ironex-document{min-height:0!important;height:auto!important;max-height:none!important}
body .ironex-document .sp238-foot{margin:5mm 8mm 0!important;padding:2mm 0 0!important;break-inside:avoid!important;page-break-inside:avoid!important}
body .ironex-document .sp238-sign span{margin-bottom:5mm!important}
body .ironex-document .sp238-generated{margin:3mm 0 0!important;padding:1.5mm 0 0!important;min-height:0!important;font-size:7pt!important;line-height:1.2!important;break-inside:avoid!important;page-break-inside:avoid!important}
body .ironex-document header.sp238-head{margin-bottom:3mm!important;padding-bottom:3mm!important}
body .ironex-document .sp238-summary{margin-top:3mm!important}
@media print{
 body .ironex-document{min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important}
 body .ironex-document .sp238-foot,body .ironex-document .sp238-generated{flex-shrink:0!important}
}


/* 5.14.13: white logo pixels blend into the login card only. */
body .login-stage .login-card{isolation:isolate!important}
body .login-stage .login-brand-logo{mix-blend-mode:multiply!important;background:transparent!important;border:0!important;box-shadow:none!important}


/* 5.14.14: white ERP workspace and login card. */
html body{background:#fff!important}
html body main{background:#fff!important}
html body .login-stage .login-card.login-modern.mkr-login-card{background:#fff!important;background-image:none!important}


/* IRONEX BASIC: the customer picker must not inherit inlineform's 150px width. */
body .sale-customer-edit .inlineform{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:10px!important;width:100%!important}
body .sale-customer-edit .inlineform .smart-combo{width:100%!important;min-width:0!important}
body .sale-customer-edit .inlineform .smart-combo-input{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;padding-right:38px!important}
body .sale-customer-edit .inlineform select[name="customer_id"]:not(.smart-combo-native){width:100%!important;min-width:0!important;margin:0!important}
body .sale-customer-edit .smart-combo-option{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.4!important}
body .sale-customer-edit .inlineform>button{white-space:nowrap!important;margin:0!important;align-self:start!important}
@media(max-width:760px){body .sale-customer-edit .inlineform{grid-template-columns:minmax(0,1fr)!important}body .sale-customer-edit .inlineform>button{justify-self:start!important}}

