/* Shared natural design. Screen only: preserve printable delivery slips. */
@media screen {
html:root{color-scheme:light;--green:#17583c;--muted:#535b52;--border:#d9d7c9}
body#crm-root#crm-root#crm-root,body#crm-root#crm-root#crm-root main.workspace{background:#062c23!important;color:#f8f5ec!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important}
body#crm-root#crm-root#crm-root main.workspace{background-image:radial-gradient(ellipse at top right,#174b352e,transparent 65%)!important}
body#crm-root#crm-root#crm-root main.workspace *{color:inherit!important;background-color:transparent!important;background-image:none!important;border-color:#d9d7c9!important;box-shadow:none!important}
body#crm-root#crm-root#crm-root main.workspace :is(section,article,details,.st-panel,.st-kpi,.table-wrap,.assisted-order,.auth,.partner-card,.workspace-filters,.retail-next,.order-budget,.request-line,.distributor-price-row,.price-grid-heading){background:#faf7ef!important;color:#191f1b!important;border:1px solid #e6e1d4!important;border-radius:18px!important;box-shadow:0 4px 16px #00191012!important}
body#crm-root#crm-root#crm-root main.workspace :is(section,article,details,.st-panel,.st-kpi,.table-wrap,.assisted-order,.partner-card) :is(p,small,.muted,.form-hint,.st-footnote){color:#4d554d!important}
body#crm-root#crm-root#crm-root main.workspace :is(h1,h2,h3,h4){font-family:inherit!important;letter-spacing:-.025em}
body#crm-root#crm-root#crm-root main.workspace :is(input,select,textarea){background:#fffdf8!important;color:#19271f!important;border:1px solid #999f8f!important;border-radius:10px!important;color-scheme:light!important;min-height:44px;accent-color:#20583a}
body#crm-root#crm-root#crm-root main.workspace :is(input,textarea)::placeholder{color:#6d7369!important;opacity:1}
body#crm-root#crm-root#crm-root main.workspace :is(input[type=checkbox],input[type=radio]){min-height:18px;width:18px;height:18px}
body#crm-root#crm-root#crm-root main.workspace :is(button,.retail-primary),body#crm-root#crm-root#crm-root main.workspace .st-intro-actions a:first-child{background:linear-gradient(115deg,#e9d18d,#d8b968)!important;color:#16251d!important;border:1px solid #c4a456!important;border-radius:12px!important;font-weight:700;min-height:44px;box-shadow:0 3px 8px #18352312!important}
body#crm-root#crm-root#crm-root main.workspace :is(button,.retail-primary):hover{background:#efdba1!important}
body#crm-root#crm-root#crm-root main.workspace :is(button.secondary,.retail-secondary,.quick-actions a),body#crm-root#crm-root#crm-root main.workspace .st-intro-actions a:nth-child(2){background:#e5ebdb!important;color:#16482f!important;border:1px solid #aebfa1!important}
body#crm-root#crm-root#crm-root main.workspace button:disabled{opacity:.5;cursor:not-allowed}
body#crm-root#crm-root#crm-root main.workspace :is(button,a,input,select,textarea):focus-visible{outline:3px solid #bd8f2c!important;outline-offset:3px}
body#crm-root#crm-root#crm-root main.workspace :is(section,article,details) a{color:#185638!important}
body#crm-root#crm-root#crm-root main.workspace :is(.notice,.partner-minimum,.st-context,.state-empty,.order-last){background:#e8efdf!important;color:#274531!important;border:1px solid #b9caa9!important;border-radius:12px!important}
body#crm-root#crm-root#crm-root main.workspace :is(.badge,.pill,.live-status span,.st-chips span,.st-submetric){background:#e2ebd8!important;color:#285037!important;border-color:#b6c7aa!important}
body#crm-root#crm-root#crm-root main.workspace :is(.error,.order-warning,.negative){background:#f8e5df!important;color:#8b3025!important;border-color:#d6aaa0!important}
body#crm-root#crm-root#crm-root main.workspace .success{background:#e1efd9!important;color:#205333!important}
body#crm-root#crm-root#crm-root main.workspace button.danger{background:#8f3a2c!important;color:#fff8ef!important;border-color:#8f3a2c!important}
body#crm-root#crm-root#crm-root main.workspace table th{background:#e7eadf!important;color:#264434!important}
body#crm-root#crm-root#crm-root main.workspace table td{background:#fffdf8!important;color:#26352a!important}
body#crm-root#crm-root#crm-root main.workspace table tr:nth-child(even) td{background:#f2f1e8!important}
body#crm-root#crm-root#crm-root main.workspace table tr:hover td{background:#e5eddc!important}
body#crm-root#crm-root#crm-root main.workspace :is(.product-suggestions,.picker-results){background:#fffdf8!important;color:#19271f!important;border:1px solid #a6b49c!important}
body#crm-root#crm-root#crm-root main.workspace :is(.product-suggestions button,.picker-result){background:#fffdf8!important;color:#19271f!important}
body#crm-root#crm-root#crm-root main.workspace .product-suggestions button:hover{background:#e5ebdb!important}
body#crm-root#crm-root#crm-root main.workspace :is(.requests-summary>div,.consignment-kpis>div,.network-kpis article,.order-article-group){background:#eef0e4!important;color:#1e3c29!important;border-color:#c2cdb4!important}
body#crm-root#crm-root#crm-root main.workspace .strategy .st-kpis .st-kpi{background:#faf7ef!important;color:#1d2b21!important;border-color:#d9d2bc!important}
body#crm-root#crm-root#crm-root main.workspace .strategy .st-kpis .st-kpi.hero{background:linear-gradient(135deg,#1e593c,#0d3e2c)!important;color:#fff8e6!important;border-color:#72966a!important}
body#crm-root#crm-root#crm-root main.workspace .strategy .st-kpi.hero :is(p,small,span,em,b){color:#e4ecd9!important}
body#crm-root#crm-root#crm-root main.workspace .strategy .st-kpi.hero .st-card-body{background:#faf7ef!important;color:#243b2a!important}
body#crm-root#crm-root#crm-root main.workspace .strategy .st-kpi.hero .st-card-body *{color:#243b2a!important}
body#crm-root#crm-root#crm-root main.workspace .strategy .st-kpi summary>strong{font-family:inherit!important;font-weight:750}
body#crm-root#crm-root#crm-root main.workspace .strategy .st-bar{background:#4a8055!important}
body#crm-root#crm-root#crm-root main.workspace .strategy .st-bar.previous{background:#b8a16a!important}
body#crm-root#crm-root#crm-root main.workspace .strategy .st-rank rect{fill:#5d8251!important}
body#crm-root#crm-root#crm-root main.workspace .workspace-tabs button{background:transparent!important;color:#eee9d9!important;border-color:transparent!important;box-shadow:none!important}
body#crm-root#crm-root#crm-root main.workspace .workspace-tabs button[aria-selected=true]{background:#e4c77e!important;color:#153622!important;border-color:#d6b76b!important}
body#crm-root#crm-root#crm-root aside{background:#08251d!important;border-color:#315042!important;color:#f5eedc!important}
body#crm-root#crm-root#crm-root aside nav a{color:#e0e6d6!important}
body#crm-root#crm-root#crm-root aside nav a.active{background:#27523a!important;color:#f6dfa1!important;box-shadow:inset 3px 0 #d8b867!important}
body#crm-root#crm-root#crm-root .mobile-dock{background:#0b3325!important;border-color:#5d7858!important}
body#crm-root#crm-root#crm-root .mobile-dock a{color:#f4f0df!important}
body#crm-root#crm-root#crm-root .mobile-dock a.active{background:#355d3c!important;color:#f5d892!important}
/* Reseller home follows the supplied model. */
body#crm-root#crm-root#crm-root.simple-retailer main.workspace{max-width:1240px!important;padding:20px 24px 32px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-topbar{display:flex;align-items:center;gap:24px;margin-bottom:24px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-topbar a{color:#f7f5eb!important;font-size:18px!important;text-decoration:none!important;white-space:nowrap}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .partner-brand{display:flex;align-items:center;gap:16px;margin-right:auto;letter-spacing:.02em}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .partner-brand>span{color:#e3c879!important;border-right:1px solid #9ca893!important;padding-right:16px;font-size:28px;font-weight:800}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .partner-brand strong{font-size:22px;color:#fff!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-welcome{background:linear-gradient(120deg,#104c36,#083d30)!important;border:0!important;padding:28px 32px!important;border-radius:22px;margin-bottom:20px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-welcome:after{display:none}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-welcome .partner-kicker{color:#e9cd7d!important;font-size:16px!important;font-weight:750;letter-spacing:.12em}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-welcome h2{font-size:clamp(28px,3.4vw,44px)!important;line-height:1.12;color:#fff!important;margin:12px 0!important;max-width:1000px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-welcome p{color:#edf3e8!important;font-size:19px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-sales{background:#faf7ef!important;color:#191d19!important;min-height:256px;padding:24px 30px!important;border-radius:20px!important;margin:20px 0!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-heading h3{font-size:32px!important;line-height:1.1;color:#171b17!important;margin:0 0 4px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-sales p{color:#50544b!important;font-size:16px!important;line-height:1.4}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace #network-period.sales-period{background:transparent!important;display:flex;gap:16px;padding:0!important;margin:0!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-period label{font-size:14px!important;font-weight:650;gap:8px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-period input{background:#fffdf7!important;color:#20271e!important;border-color:#a5a698!important;width:150px;font-size:15px!important;padding:8px!important;color-scheme:light!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-content{display:grid;grid-template-columns:40% 1fr;align-items:center;gap:28px;margin-top:22px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-total strong{display:block;color:#ac8421!important;font-size:64px!important;line-height:1;font-weight:800}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-total span{font-size:23px;font-weight:750}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-message{border-left:1px solid #dcd3bc!important;padding-left:28px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-message strong{font-size:23px!important;line-height:1.3}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tiles{gap:18px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile{background:#faf7ef!important;color:#171f19!important;border:1px solid #e4e1d3!important;grid-template-columns:56px 1fr;column-gap:18px;padding:23px 26px!important;min-height:122px!important;border-radius:20px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile strong{color:#171f19!important;font-size:23px!important;padding-right:20px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile>span:not(.simple-icon){color:#454e43!important;font-size:16px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile .simple-icon{background:#dce5ca!important;color:#143b26!important;border-radius:16px;width:56px;height:56px;display:grid;place-items:center}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-icon svg{width:32px;height:32px;display:block}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile>b{color:inherit!important;right:24px;top:50%;transform:translateY(-50%);font-size:28px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile:first-child{background:linear-gradient(120deg,#397549,#165237)!important;border-color:#659c68!important;color:#fff!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile:first-child strong,body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile:first-child>span:not(.simple-icon){color:#fff!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile:nth-child(2){background:linear-gradient(115deg,#edd594,#d6b66a)!important;border-color:#eadba8!important;color:#182219!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile:nth-child(2) .simple-icon{background:#fff0c8!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile:hover{box-shadow:0 7px 20px #00191030!important;transform:translateY(-2px);border-color:#c6a455!important}
@media(max-width:760px){
body#crm-root#crm-root#crm-root.simple-retailer main.workspace{padding:16px 14px 24px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-topbar{gap:14px;flex-wrap:wrap;margin-bottom:16px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .partner-brand{flex-basis:100%;gap:10px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .partner-brand strong{font-size:20px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-topbar a{font-size:16px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-welcome{padding:22px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-welcome h2{font-size:28px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-welcome p{font-size:16px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-sales{padding:18px!important;min-height:256px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-heading{display:block}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-heading h3{font-size:26px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace #network-period.sales-period{gap:8px;margin-top:12px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-period label{flex:1;gap:4px;font-size:12px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-period input{width:100%;min-width:0;padding:8px 3px!important;font-size:14px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-content{grid-template-columns:1fr;gap:12px;margin-top:16px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-total{display:flex;align-items:baseline;gap:10px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-total strong{font-size:46px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-total span{font-size:18px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-message{border-left:0!important;padding:0}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-message strong{font-size:17px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-message p{font-size:14px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tiles{grid-template-columns:1fr;gap:12px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile{padding:18px!important;grid-template-columns:48px 1fr;column-gap:14px;min-height:106px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile .simple-icon{width:48px;height:48px;border-radius:14px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile strong{font-size:20px!important}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile>span:not(.simple-icon){font-size:14px!important;padding-right:14px}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .simple-tile>b{right:16px;font-size:24px}
}
}

@media screen{
body#crm-root#crm-root#crm-root main.workspace :is(.st-chart,.retail-chart,.chart) text{fill:#40543e!important}
body#crm-root#crm-root#crm-root main.workspace :is(.st-chart,.retail-chart,.chart) line{stroke:#c7ccbd!important}
body#crm-root#crm-root#crm-root :is(main.auth,dialog){background:#faf7ef!important;color:#1b2b20!important;border:1px solid #c8cfba!important;border-radius:18px!important}
body#crm-root#crm-root#crm-root :is(main.auth,dialog) :is(h1,h2,p,label,small){color:#243c2c!important}
body#crm-root#crm-root#crm-root :is(main.auth,dialog) :is(input,select,textarea){background:#fffdf8!important;color:#1b2b20!important;border:1px solid #9ca990!important;color-scheme:light!important}
body#crm-root#crm-root#crm-root :is(main.auth,dialog) button{background:#e3c77d!important;color:#193322!important;border-radius:10px!important}
body#crm-root#crm-root#crm-root main.workspace .simple-topbar a:hover{color:#efd58b!important}
}

/* Mobile audit: long names, narrow screens, scrollable data tables. */
@media screen{
body#crm-root#crm-root#crm-root main.workspace :is(.simple-tile,.sales-heading,.sales-content,.partner-card,.section-title,.fields>label){min-width:0;overflow-wrap:anywhere}
body#crm-root#crm-root#crm-root main.workspace :is(.table-wrap,.st-table-wrap){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body#crm-root#crm-root#crm-root main.workspace :is(input,select,textarea){max-width:100%;box-sizing:border-box}
body#crm-root#crm-root#crm-root main.workspace .simple-tile:focus-visible{outline:3px solid #d5ad45!important;outline-offset:3px}
@media(max-width:760px){body#crm-root#crm-root#crm-root main.workspace :is(input:not([type=date]),select,textarea){font-size:16px!important}body#crm-root#crm-root#crm-root main.workspace .fields{min-width:0}}
@media(max-width:360px){body#crm-root#crm-root#crm-root.simple-retailer main.workspace #network-period.sales-period{flex-wrap:wrap}body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-period label{flex-basis:100%}body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-period input{font-size:16px!important}}
}

/* Pending order editor */
#crm-root .order-edit-line{display:grid;grid-template-columns:minmax(0,1fr) 100px auto;gap:12px;align-items:end;margin:12px 0}
#crm-root .order-edit-line label{min-width:0;margin:0}
#crm-root .order-edit-line select,#crm-root .order-edit-line input{width:100%;min-width:0;min-height:44px}
#crm-root .order-edit-line button{min-height:44px;margin:0}
@media(max-width:600px){#crm-root .order-edit-line{grid-template-columns:minmax(0,1fr) 100px}#crm-root .order-edit-line label:first-child{grid-column:1/-1}#crm-root .order-edit-line button{align-self:end}}

/* Imported reseller sales and legible inline date labels */
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-message .imported-sales-amount{display:block;font-size:clamp(24px,4vw,36px);color:#725414}
body#crm-root#crm-root#crm-root.simple-retailer main.workspace .sales-period label{white-space:nowrap;flex-shrink:0}
/* Direction: actionable overview, shared desktop and mobile presentation */
body#crm-root .direction-home{color:#193c31;display:grid;gap:18px}
body#crm-root .direction-home section,body#crm-root .partner-overview{background:#fffdf8;border:1px solid #d6dfd5;border-radius:16px;padding:20px;margin:0}
body#crm-root .direction-header{display:flex;align-items:center;justify-content:space-between;gap:20px;color:inherit}
body#crm-root .direction-header h2{font-size:28px;margin:5px 0}
body#crm-root .direction-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body#crm-root .direction-kpi{display:flex;flex-direction:column;gap:10px;background:#fffdf8;color:#193c31;border:1px solid #c6d3c5;border-top:4px solid #b78a31;border-radius:14px;padding:20px;text-decoration:none}
body#crm-root .direction-kpi strong{font-size:30px;color:#173e30}
body#crm-root .direction-kpi span{font-size:13px;color:#365f4b}
body#crm-root .direction-secondary{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body#crm-root .direction-secondary>div{display:flex;flex-direction:column;gap:8px;background:#e8efe5;color:#193c31;padding:18px;border-radius:12px}
body#crm-root .direction-secondary strong{font-size:26px}
body#crm-root .direction-scroll{overflow-x:auto}
body#crm-root .direction-scroll table{width:100%;border-collapse:collapse;min-width:620px;background:#fffdf8;color:#193c31}
body#crm-root .direction-scroll th{background:#edf1e8;color:#30483a;font-size:12px;text-align:left;padding:12px}
body#crm-root .direction-scroll td{padding:13px 12px;border-bottom:1px solid #e0e5da;color:#193c31}
body#crm-root .direction-scroll small{display:block;color:#516357}
body#crm-root .direction-link{display:inline-block;color:#174e38;font-weight:700;padding:10px 0;min-height:44px}
body#crm-root .direction-note,body#crm-root .stock-preview p{color:#526254;font-size:12px;line-height:1.5}
body#crm-root .direction-payment-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
body#crm-root .direction-payment-filters label:first-child{flex:1;min-width:180px}
body#crm-root .direction-payment-filters input{min-height:44px}
body#crm-root .direction-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body#crm-root .direction-metrics>div{display:flex;flex-direction:column;gap:6px}
body#crm-root .direction-metrics strong{font-size:21px;color:#193c31}
body#crm-root .stock-preview ul{padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:6px 20px}
body#crm-root .stock-preview li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e0e5da}
body#crm-root .stock-preview b{white-space:nowrap}
body#crm-root .partner-overview{margin:14px 0}
body#crm-root .direction-status{background:#edf1e8;color:#214d37;padding:5px 8px;border-radius:6px}
@media(max-width:760px){body#crm-root .direction-kpis,body#crm-root .direction-metrics{grid-template-columns:1fr 1fr}body#crm-root .direction-header{display:block}body#crm-root .direction-secondary{grid-template-columns:1fr}body#crm-root .direction-home section{padding:14px}body#crm-root .direction-kpi{padding:14px}body#crm-root .direction-kpi strong{font-size:25px}body#crm-root .stock-preview ul{grid-template-columns:1fr}body#crm-root .direction-payment-filters label{flex:1;min-width:130px}}

@media screen{
body#crm-root#crm-root#crm-root main.workspace .direction-kpi,body#crm-root#crm-root#crm-root main.workspace .partner-overview{background:#fffdf8!important;color:#193c31!important;border-top-color:#b78a31!important}
body#crm-root#crm-root#crm-root main.workspace .direction-secondary>div{background:#e8efe5!important;color:#193c31!important}
body#crm-root#crm-root#crm-root main.workspace .direction-scroll th{background:#edf1e8!important;color:#30483a!important}
body#crm-root#crm-root#crm-root main.workspace .direction-scroll .overdue{color:#9a301f!important}
body#crm-root#crm-root#crm-root main.workspace .direction-home section{margin:0!important}
}

/* Focused dashboard pages and compact historical forms */
body#crm-root .direction-home [hidden]{display:none!important}
body#crm-root .direction-home:not(.focused-detail) .direction-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
body#crm-root .direction-kpi{min-height:145px;justify-content:space-between}
body#crm-root .purchase-history{margin-top:14px;padding:14px}
body#crm-root .purchase-history details{padding:12px;margin:10px 0}
body#crm-root .purchase-history .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body#crm-root .purchase-history input,body#crm-root .purchase-history select{max-width:100%;width:100%}
body#crm-root .purchase-history input[type=checkbox]{width:18px}
@media(max-width:760px){body#crm-root .direction-home:not(.focused-detail) .direction-kpis{grid-template-columns:1fr 1fr}body#crm-root .purchase-history .fields{grid-template-columns:1fr}body#crm-root .direction-kpi{min-height:135px}body#crm-root .direction-kpi strong{font-size:24px}}
@media(max-width:380px){body#crm-root .direction-home:not(.focused-detail) .direction-kpis{grid-template-columns:1fr}}
@media screen{
body#crm-root#crm-root#crm-root main.workspace .workspace-filters{padding:12px 16px!important;margin-bottom:14px!important}
body#crm-root#crm-root#crm-root main.workspace .workspace-filters .st-filterbar{display:flex!important;align-items:end!important;flex-wrap:wrap;gap:12px;padding:8px 0 0!important}
body#crm-root#crm-root#crm-root main.workspace .workspace-filters #network-period{display:flex!important;flex-wrap:wrap;align-items:end;gap:10px;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;flex:1}
body#crm-root#crm-root#crm-root main.workspace .workspace-filters #network-period label{margin:0!important;min-width:140px;flex:1}
body#crm-root#crm-root#crm-root main.workspace .direction-header{margin:0!important;padding:0!important}
}

body#crm-root .retailer-order-history[hidden],body#crm-root main.workspace[data-retailer="1"] section[hidden]{display:none!important}
body#crm-root .order-history-toggle{margin:18px 0;min-height:44px}

body#crm-root .partner-contact dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px;margin:16px 0}
body#crm-root .partner-contact dt{font-size:12px;font-weight:600;margin-bottom:4px}
body#crm-root .partner-contact dd{margin:0;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
body#crm-root .partner-contact a{display:inline-block;min-height:32px;text-decoration:underline}
@media(max-width:760px){body#crm-root .partner-contact dl{grid-template-columns:1fr 1fr;gap:12px}}
@media(max-width:420px){body#crm-root .partner-contact dl{grid-template-columns:1fr}}

body#crm-root .order-created{display:block;font-size:14px;font-weight:500;margin-top:8px;line-height:1.5}

/* Operations dashboard: light surfaces, clear actions and compact controls. */
@media screen {
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard,body#crm-root#crm-root#crm-root#crm-root.ops-dashboard main.workspace{background:#f5f7f8!important;background-image:none!important;color:#18332d!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard aside{background:#fff!important;color:#18332d!important;border-right:1px solid #e2e9e6!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard aside *{color:#38564e!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard aside .brand{font-weight:800;color:#00856d!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard aside nav a.active{background:#e3f5ed!important;color:#006d56!important;border:0!important;border-radius:10px!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard main.workspace>header{margin-bottom:18px!important;padding-bottom:16px!important;border-color:#e0e8e3!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard main.workspace>header h1{font-size:27px!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .workspace-filters{background:#fff!important;border:1px solid #e0e8e3!important;border-radius:14px!important;padding:14px 18px!important;box-shadow:none!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .workspace-filters summary{font-size:13px!important;color:#50665d!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .workspace-filters input{min-width:130px!important;max-width:170px;background:#fff!important;border-color:#ccd9d1!important;font-size:14px!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .workspace-filters #network-period{flex:0 1 auto!important;gap:10px!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .workspace-filters #network-period label{flex:0 1 auto!important;font-size:12px!important;min-width:0!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .workspace-filters .network-toolbar{margin-left:auto;gap:12px!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .live-local{display:none!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-period-shortcuts{display:flex;gap:4px;background:#f0f4f2!important;border-radius:10px;padding:4px}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-period-shortcuts button{background:transparent!important;border:0!important;color:#345248!important;box-shadow:none!important;min-height:36px;font-size:12px;padding:6px 10px;border-radius:7px!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-period-shortcuts button:hover{background:#d9eee4!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard #network-period>button{background:#00856a!important;color:#fff!important;border:0!important;box-shadow:none!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-header{padding:10px 0 4px!important;gap:14px}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-header .eyebrow{display:none}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-header h2{font-size:23px!important;margin:0 0 6px!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-header p{font-size:13px;color:#5f7068!important;margin:0!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-header .direction-link{background:#ffcf46!important;color:#20352b!important;padding:11px 16px;border-radius:10px;white-space:nowrap;text-decoration:none;font-size:13px}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpis{display:flex!important;flex-direction:column;gap:24px!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-group-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-group-title h3{font-size:16px!important;margin:0!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-group-title p{font-size:12px;color:#64776d!important;margin:0!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpi{position:relative;background:#fff!important;border:1px solid #dfe8e2!important;border-radius:14px!important;padding:18px!important;min-height:164px;gap:9px!important;box-shadow:0 3px 10px #18332d04!important;transition:transform .16s ease,border-color .16s ease}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpi:hover{transform:translateY(-2px);border-color:#00856a!important;box-shadow:0 5px 16px #163a3012!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpi:focus-visible{outline:3px solid #00856a;outline-offset:3px}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpi small{font-weight:650;font-size:14px!important;padding-right:40px}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpi strong{font-size:32px!important;letter-spacing:-1px;color:#163b30!important;line-height:1.15}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpi span{font-size:12px!important;color:#60776b!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-icon{position:absolute;right:16px;top:14px;width:34px;height:34px;border-radius:10px;background:#e2f5ed!important;color:#00856a!important;display:grid;place-items:center}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-icon svg{width:20px;height:20px}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard [data-kind=validate] .ops-icon,body#crm-root#crm-root#crm-root#crm-root.ops-dashboard [data-kind=unpaid] .ops-icon{background:#fff2cc!important;color:#8f6500!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-home section{background:#fff!important;border-color:#dfe8e2!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-home [hidden]{display:none!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard footer{color:#697d71!important;margin-top:24px!important}
@media(max-width:760px){body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-cards{grid-template-columns:1fr 1fr;gap:10px}body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-cards>.direction-kpi:last-child{grid-column:1/-1}body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpi{min-height:140px;padding:14px!important}body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpi strong{font-size:27px!important}body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-header .direction-link{margin-top:12px}body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-period-shortcuts{flex-basis:100%;justify-content:space-between}body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .workspace-filters .network-toolbar{margin-left:0;width:100%}body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .workspace-filters input{width:100%;max-width:none}body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .workspace-filters #network-period label{flex:1!important}body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-group-title p{max-width:50%;text-align:right}}
@media(prefers-reduced-motion:reduce){body#crm-root .direction-kpi{transition:none!important;transform:none!important}}
}

.ack-consent{display:flex!important;align-items:center;gap:12px;padding:14px 0}.ack-consent input[type="checkbox"]{width:22px!important;height:22px!important;min-height:22px!important;flex-shrink:0}

/* Compact phone layout with full-size touch controls. */
@media(max-width:680px){
 body#crm-root#crm-root#crm-root#crm-root main.workspace{padding:10px 10px 84px!important;min-width:0!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace :is(section,article,.order-card,.partner-card,.order-budget,.simple-welcome,.simple-sales){padding:12px!important;margin:0 0 10px!important;border-radius:12px!important;min-height:0!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace :is(h1,h2,h3){line-height:1.25!important;overflow-wrap:anywhere}
 body#crm-root#crm-root#crm-root#crm-root main.workspace h1{font-size:24px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace h2{font-size:20px!important;margin:0 0 8px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace h3{font-size:18px!important;margin:0 0 8px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace p{margin:6px 0!important;line-height:1.45!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace details{padding:0 10px 8px!important;margin:8px 0!important;border-radius:10px!important;min-width:0}
 body#crm-root#crm-root#crm-root#crm-root main.workspace summary{min-height:44px;display:flex;align-items:center;gap:8px;padding:8px 0!important;font-size:15px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace :is(button,input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;min-height:44px!important;max-width:100%;box-sizing:border-box;border-radius:10px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace button{padding:10px 14px!important;white-space:normal!important;line-height:1.3!important;touch-action:manipulation}
 body#crm-root#crm-root#crm-root#crm-root main.workspace :is(.fields,.request-line){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace :is(label,fieldset){min-width:0!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace fieldset{padding:10px!important;margin:10px 0!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace :is(.order-payment,.distributor-payments){display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace :is(.order-payment,.distributor-payments) label,body#crm-root#crm-root#crm-root#crm-root main.workspace .ack-consent{display:flex!important;align-items:center;min-height:48px;padding:10px!important;gap:12px!important;border:1px solid #abbba5;border-radius:10px;background:#f1f5eb;box-sizing:border-box;cursor:pointer}
 body#crm-root#crm-root#crm-root#crm-root main.workspace :is(.order-payment,.distributor-payments) label:has(input:checked){background:#e1efdf;border:2px solid #39734b}
 body#crm-root#crm-root#crm-root#crm-root main.workspace :is(input[type=checkbox],input[type=radio]){width:22px!important;height:22px!important;min-height:22px!important;flex-shrink:0;accent-color:#236746}
 body#crm-root#crm-root#crm-root#crm-root main.workspace .simple-tiles{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace .simple-tile{min-height:76px!important;padding:12px!important;gap:12px!important;border-radius:12px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace .simple-tile strong{font-size:18px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace .simple-tile small{font-size:14px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace .simple-icon{width:40px!important;height:40px!important;flex:0 0 40px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace .sales-content{gap:12px!important;margin-top:12px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace .sales-total strong{font-size:36px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace .sales-total span{font-size:17px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace .sales-heading{gap:10px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace .sales-period{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:8px!important}
 body#crm-root#crm-root#crm-root#crm-root main.workspace .sales-period input{width:100%!important;min-width:0!important}
 body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpi{min-height:120px!important;padding:12px!important;gap:6px!important}
 body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpis{gap:14px!important}
 body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-cards{gap:8px!important}
 body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpi strong{font-size:27px!important}
 body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-icon{width:26px;height:26px;right:10px;top:10px}
 body#crm-root#crm-root#crm-root#crm-root .order-payment[hidden]{display:none!important}
}

@media(max-width:680px){[data-catalogue-table]:has(td[data-label]) thead{display:none}[data-catalogue-table]:has(td[data-label]),[data-catalogue-table]:has(td[data-label]) tbody,[data-catalogue-table]:has(td[data-label]) tr{display:block;width:100%}[data-catalogue-table]:has(td[data-label]) tr{margin-bottom:10px;border:1px solid #c8cebd;border-radius:10px;padding:8px}[data-catalogue-table] td[data-label]{display:flex;justify-content:space-between;gap:12px;white-space:normal!important;padding:7px!important}[data-catalogue-table] td[data-label]:before{content:attr(data-label);font-weight:650;flex:0 0 40%}}

.delivery-estimate{display:block;font-size:12px;line-height:1.4;margin-top:6px;white-space:normal}.badge:has(.delivery-estimate){display:block;text-align:right;max-width:240px}

.catalogue-check{display:flex!important;align-items:center;gap:10px;min-height:44px;cursor:pointer}.catalogue-check input{width:22px!important;min-height:22px!important}.catalogue-stepper{display:flex;align-items:center;gap:5px}.catalogue-stepper button{min-width:44px;min-height:44px;padding:6px!important}.catalogue-stepper input{width:76px!important;min-width:0!important;text-align:center}.catalogue-basket-bar{position:sticky;bottom:12px;background:#faf7ef;border:1px solid #b5c3ab;border-radius:12px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:3;box-shadow:0 -3px 12px #0001}.catalogue-basket-bar a{display:block;padding:12px 16px;border-radius:10px;text-decoration:none;font-weight:700}.catalogue-basket-bar a[aria-disabled=true]{opacity:.55}.catalogue-selected{outline:2px solid #638752;outline-offset:-2px}@media(max-width:680px){.catalogue-basket-bar{bottom:70px;flex-direction:column;align-items:stretch;padding:10px}.catalogue-basket-bar a{text-align:center;min-height:44px}.catalogue-stepper input{font-size:16px!important}.catalogue-basket-bar p{font-size:14px!important;margin:0!important}}

[data-catalogue-table] tr[hidden]{display:none!important}

/* Explicit paired colours: prevent inherited light text on the mobile light dock. */
@media screen {
body#crm-root#crm-root#crm-root#crm-root main.workspace .mobile-dock{background:#faf7ef!important;background-image:none!important;border-top:1px solid #a9b6ac!important;box-shadow:0 -3px 14px #08251d14!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace .mobile-dock a{color:#254a39!important;background:#faf7ef!important;opacity:1!important;font-size:13px!important;font-weight:650!important;min-height:54px}
body#crm-root#crm-root#crm-root#crm-root main.workspace .mobile-dock a.active{background:#20583a!important;color:#ffffff!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace .mobile-dock a :is(svg,span){color:inherit!important;opacity:1!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace .mobile-dock a:focus-visible{outline:3px solid #986800!important;outline-offset:-3px}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-kpi span,
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .ops-group-title p,
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard .direction-header p,
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard footer{color:#405b50!important;opacity:1!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace footer{font-size:12px!important;line-height:1.5}
body#crm-root#crm-root#crm-root#crm-root main.workspace[data-retailer="1"]>footer{display:none!important}
}

/* Mobile legibility, shared by direction and reseller views, 2026-11-10. */
@media screen {
body#crm-root#crm-root#crm-root#crm-root aside .mobile-menu-toggle{background:#20583a!important;color:#ffffff!important;border:1px solid #20583a!important;border-radius:10px!important;opacity:1!important;font-size:16px!important;font-weight:700!important;min-width:82px;min-height:46px;padding:10px 14px!important}
body#crm-root#crm-root#crm-root#crm-root aside .mobile-menu-toggle:hover,body#crm-root#crm-root#crm-root#crm-root aside .mobile-menu-toggle[aria-expanded=true]{background:#133e2a!important;color:#ffffff!important}
body#crm-root#crm-root#crm-root#crm-root aside .mobile-menu-toggle:focus-visible{outline:3px solid #b07916!important;outline-offset:3px}
body#crm-root#crm-root#crm-root#crm-root main.workspace table td::before{color:#304b3d!important;opacity:1!important;font-size:13px!important;font-weight:700!important;line-height:1.45!important;text-transform:none!important;letter-spacing:0!important;overflow-wrap:anywhere}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard aside nav a.active{background:#dceee3!important;color:#174e38!important}
body#crm-root#crm-root#crm-root#crm-root.ops-dashboard aside .aside-bottom button{background:#e5ebdb!important;color:#16482f!important}
}
@media screen and (max-width:760px){
body#crm-root#crm-root#crm-root#crm-root aside .brand{padding-right:100px!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll{max-width:100%;overflow-x:visible!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll table{min-width:0!important;width:100%!important;table-layout:fixed}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll :is(table,tbody,tr){display:block!important;width:100%!important;min-width:0!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll thead{display:none!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll tr{margin:0 0 12px!important;padding:8px!important;border:1px solid #c6d2c6!important;border-radius:12px!important;background:#fffdf8!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll td{display:grid!important;grid-template-columns:minmax(0,38%) minmax(0,1fr)!important;gap:4px 10px!important;min-width:0!important;width:100%!important;padding:10px 8px!important;font-size:15px!important;line-height:1.45!important;background:#fffdf8!important;color:#193c31!important;white-space:normal!important;overflow-wrap:anywhere}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll td::before{content:attr(data-label);grid-column:1;grid-row:1 / span 3}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll td>*{min-width:0;grid-column:2}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll td[colspan]{display:block!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll td[colspan]::before{display:none!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll td small{font-size:14px!important;color:#405b50!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace .direction-scroll td:last-child{border-bottom:0!important}
body#crm-root#crm-root#crm-root#crm-root main.workspace :is(.table-wrap,.direction-home,.direction-home section){min-width:0!important;max-width:100%!important}
}
@media screen{body#crm-root#crm-root#crm-root#crm-root .lot-allocation{width:100%;grid-column:1/-1}.lot-row{display:grid;grid-template-columns:90px minmax(120px,1fr) minmax(140px,1fr) auto;gap:10px;align-items:end;padding:10px 0;border-bottom:1px solid #bdc9b9}.lot-row input{width:100%}.lot-allocation [hidden]{display:none!important}.order-document-panel{margin:12px 0}.order-document-panel a{display:inline-block;min-height:44px;padding:10px 0}.lot-allocation [data-lot-total]{font-weight:700}.order-document-panel article{padding:12px;margin:8px 0}}
@media screen and (max-width:760px){.lot-row{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}.lot-row label:nth-child(3){grid-column:1/-1}.lot-row button{grid-column:1/-1}.lot-row input{font-size:16px}.order-document-panel{overflow-wrap:anywhere}}

/* Compact order history: native keyboard/touch accessible disclosure. */
@media screen {
 body#crm-root#crm-root#crm-root#crm-root main.workspace .order-card {padding:0!important;margin-bottom:10px!important;overflow:hidden;scroll-margin-top:100px}
 body#crm-root#crm-root#crm-root#crm-root .order-fold {margin:0!important;padding:0!important;border:0!important;border-radius:inherit;box-shadow:none!important;background:#fffdf7!important;color:#173e32!important}
 body#crm-root#crm-root#crm-root#crm-root .order-fold-summary {display:block!important;padding:14px 16px!important;min-height:48px;cursor:pointer;list-style:none;color:#173e32!important;background:#fffdf7!important}
 .order-fold-summary::-webkit-details-marker {display:none}
 .order-fold-summary:focus-visible {outline:3px solid #246b50;outline-offset:-3px}
 body#crm-root#crm-root#crm-root#crm-root .order-fold-summary .section-title {margin:0!important;gap:12px;align-items:flex-start}
 body#crm-root#crm-root#crm-root#crm-root .order-fold-summary h2 {font-size:17px!important;line-height:1.4;margin:0!important;overflow-wrap:anywhere}
 body#crm-root#crm-root#crm-root#crm-root .order-fold-summary .order-created {display:block;font-size:13px!important;color:#46594d!important;margin-top:3px}
 .order-brief {display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:9px;font-size:14px;color:#294c3a}
 .order-open-label,.order-close-label {margin-left:auto;font-weight:700;text-decoration:underline}
 .order-close-label,.order-fold[open]>.order-fold-summary .order-open-label {display:none}
 .order-fold[open]>.order-fold-summary .order-close-label {display:inline}
 body#crm-root#crm-root#crm-root#crm-root .order-fold-body {border-top:1px solid #d3ddcf;padding:16px}
 .order-fold-summary .badge {white-space:normal;max-width:240px}
 @media(max-width:620px){
  body#crm-root#crm-root#crm-root#crm-root .order-fold-summary {padding:12px!important}
  body#crm-root#crm-root#crm-root#crm-root .order-fold-summary .section-title {display:flex!important;flex-direction:column;gap:6px}
  body#crm-root#crm-root#crm-root#crm-root .order-fold-body {padding:12px}
  .order-brief {gap:6px 12px}.order-fold-summary .badge {max-width:100%}.order-fold-close {width:100%;min-height:44px}
 }
}

/* Stock et ventes restant à régler : situation actuelle */
body#crm-root#crm-root .current-stock-panel h3{margin-bottom:12px!important}
body#crm-root#crm-root .current-stock-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px;color:#173d30!important}
body#crm-root#crm-root .current-stock-grid h4{margin:0 0 10px;font-size:16px;color:#173d30!important}
body#crm-root#crm-root .current-stock-list{list-style:none;margin:0 0 8px;padding:0;max-height:220px;overflow:auto}
body#crm-root#crm-root .current-stock-list li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #d9dfd4;font-size:16px;color:#173d30!important}
body#crm-root#crm-root .current-stock-list strong{flex-shrink:0;color:#173d30!important}
body#crm-root#crm-root .current-sales-due{border-left:1px solid #d9dfd4;padding-left:20px}
body#crm-root#crm-root .due-total{display:block;font-size:30px;color:#173d30!important;margin:12px 0}
body#crm-root#crm-root .current-stock-grid a{display:inline-flex;align-items:center;min-height:44px;color:#175b40!important;font-weight:700}
@media(max-width:600px){body#crm-root#crm-root .current-stock-grid{grid-template-columns:1fr;gap:12px}body#crm-root#crm-root .current-sales-due{border-left:0;border-top:1px solid #d9dfd4;padding:12px 0 0}body#crm-root#crm-root .current-stock-list li{flex-wrap:wrap}body#crm-root#crm-root .due-total{margin:6px 0}}

body#crm-root#crm-root .order-step[hidden]{display:none!important}.order-step-nav{display:flex;gap:8px;margin:12px 0 20px}.order-step-nav button{flex:1;min-height:44px}.order-step-nav [aria-current=step]{background:#19573e!important;color:#fff!important}.wizard-controls{display:flex;justify-content:space-between;gap:12px;margin-top:16px}.invoice-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.invoice-conversion{border:1px solid #b4c5b5;padding:14px;border-radius:12px}.invoice-conversion input{font-size:16px}.invoice-conversion fieldset{margin:14px 0}.invoice-conversion label span{display:block;font-size:14px}@media(max-width:600px){.invoice-fields{grid-template-columns:1fr}.order-step-nav{gap:4px}.order-step-nav button{padding:8px!important;font-size:13px!important}.wizard-controls button{min-height:44px}}

.commerce-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.commerce-nav a{display:flex;align-items:center;min-height:44px;padding:8px 14px;background:#e3eddf;color:#174331!important;border:1px solid #b6c8b6;border-radius:10px;text-decoration:none;font-weight:700}.simple-order-entry{display:grid;gap:12px}.simple-order-entry .order-budget{margin:4px 0!important}.simple-order-entry>.order-price-editor{display:grid;gap:10px}.simple-order-entry .order-article-group{margin:8px 0}.simple-order-entry label{font-size:15px}.simple-order-entry input,.simple-order-entry select{font-size:16px;min-height:44px}@media(max-width:600px){.commerce-nav{display:grid;grid-template-columns:1fr 1fr;gap:6px}.commerce-nav a{padding:8px;font-size:14px}.simple-order-entry{gap:8px}}

.company-logo{display:block;max-width:190px;max-height:90px;object-fit:contain;margin:12px 0}[data-logo-editor]{padding:12px 0}[data-logo-editor] input[type=file]{width:100%;max-width:100%}

.phase-nav{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 18px}.phase-nav button{padding:9px 12px;min-height:42px;font-size:14px}.phase-nav [aria-current=step]{background:#17533d;color:#fff;border-color:#17533d}.order-phase{margin:12px 0;border:1px solid #b2bfb6;border-radius:12px;background:#fff;padding:14px;scroll-margin-top:95px}.order-phase>summary{font-size:17px;font-weight:700;color:#153f30;padding:8px 0}.order-phase[open]{border:2px solid #39715a}.order-phase>form{margin:16px 0}.phase-continue{margin-top:16px}.order-phase p{color:#314b40}@media(max-width:600px){.phase-nav{display:grid;grid-template-columns:1fr 1fr}.phase-nav button{font-size:13px;padding:8px}.order-phase{padding:10px}.order-phase>summary{font-size:16px}}

.order-route,.order-inbox>p:not(.eyebrow){display:none}

.order-current-phase{padding:14px 16px;margin:10px 0;background:#17533d;color:#fff;border-radius:10px;font-size:17px}.phase-current-badge{display:inline-block;margin-left:12px;padding:4px 9px;background:#17533d;color:#fff;border-radius:30px;font-size:13px}.order-phase.phase-current{border:2px solid #17533d}.order-price-editor input[type=number]{appearance:textfield;-moz-appearance:textfield}.order-price-editor input::-webkit-inner-spin-button{appearance:none}

#crm-root .phase-nav button.phase-is-current{background:#124b36!important;color:#fff!important;border:2px solid #124b36!important;font-weight:700;box-shadow:0 0 0 3px #c6ddcd}#crm-root .phase-nav .phase-nav-label{display:block;color:#fff!important;font-size:12px;font-weight:700;margin-top:4px;text-transform:uppercase;letter-spacing:.04em}#crm-root .phase-nav button.phase-viewing:not(.phase-is-current){outline:2px solid #738f7c;outline-offset:1px}
