.revenue-card{padding:16px;margin:12px 0;border:1px solid #d8e3dc;border-radius:10px;background:#f6faf7;line-height:1.65;overflow-wrap:anywhere}
.revenue-card.warn{background:#fff9ed;border-color:#e5bc74}
.revenue-card p{margin:8px 0;font-size:13px}.revenue-card small,.revenue-table small{display:block;color:#68746e;font-size:12px}
.revenue-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0;font-size:12px;color:#5d6963}.revenue-numbers strong{display:block;font-size:20px;color:#173e30}
.revenue-card details{margin:8px 0}.revenue-card summary{cursor:pointer;color:#245b45}
.revenue-table{overflow-x:auto}#revenueReason{box-sizing:border-box;width:100%;min-height:88px;padding:10px}button.revenue-detail{display:block;text-align:left;font-size:12px}
.revenue-pricing{grid-template-columns:repeat(2,minmax(0,1fr))}.revenue-pricing #priceEnabled{width:auto;display:inline-block;vertical-align:middle;margin:0 8px 0 0;height:16px;min-height:0}
.price-target-heading,.price-target-cell{white-space:nowrap}
.revenue-price-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:122px;min-height:36px;box-sizing:border-box;margin:0;padding:6px 12px 6px 8px;border:1px solid var(--green-3,#c5e3d4);border-radius:10px;background:var(--green-2,#e8f5ee);color:var(--green,#176b4d);font:inherit;font-size:13px;line-height:1.4;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
.revenue-price-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:7px;background:var(--white,#fff)}
.revenue-price-icon svg{display:block;width:15px;height:15px}
.revenue-price-chevron{margin-left:2px;font-size:19px;line-height:1;font-weight:400;opacity:.65}
.revenue-price-button:hover{background:#dcefe3;border-color:#a6d1bb;box-shadow:0 2px 6px rgba(23,107,77,.08)}
.revenue-price-button:focus-visible{outline:2px solid var(--green,#176b4d);outline-offset:3px}
.revenue-price-button:active{background:#d1e8da;box-shadow:none}
.revenue-price-button:disabled{opacity:.5;cursor:wait;box-shadow:none}
@media(prefers-reduced-motion:reduce){.revenue-price-button{transition:none}}
@media(max-width:600px){.revenue-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}.revenue-card{padding:12px}.revenue-numbers strong{font-size:18px}}
.price-main-dialog{max-width:780px}
.price-main-dialog .modal-head button[value="cancel"]{appearance:none;flex:0 0 36px;width:36px;height:36px;border:0;border-radius:8px;background:var(--line-soft,#f4f7f5);color:var(--ink-soft,#56645c);font-size:22px;line-height:1;cursor:pointer}
.price-main-dialog .modal-head button[value="cancel"]:hover{background:var(--green-2,#e8f5ee);color:var(--green,#176b4d)}
.price-main-dialog .modal-head button[value="cancel"]:focus-visible{outline:2px solid var(--green,#176b4d);outline-offset:2px}
:is(#priceMain,.company-price-rules){font-size:14px;line-height:1.5;overflow-wrap:anywhere}
:is(#priceMain,.company-price-rules) .price-section{padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid var(--line,#e1e8e3)}
:is(#priceMain,.company-price-rules) .price-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}
:is(#priceMain,.company-price-rules) h3{font-size:15px;margin:0;color:var(--ink,#173e30)}
:is(#priceMain,.company-price-rules) .price-scope-label{background:var(--green-2,#e8f5ee);color:var(--green,#176b4d);font-size:12px;padding:3px 8px;border-radius:6px}
:is(#priceMain,.company-price-rules) .price-hint{margin:6px 0 10px;color:var(--muted,#68746e);font-size:12px;line-height:1.6}
:is(#priceMain,.company-price-rules) .price-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
:is(#priceMain,.company-price-rules) .price-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
:is(#priceMain,.company-price-rules) .price-field{min-width:0}
:is(#priceMain,.company-price-rules) .price-field label{display:block;font-size:13px;color:var(--ink-soft,#56645c);margin-bottom:6px}
:is(#priceMain,.company-price-rules) .price-field input,:is(#priceMain,.company-price-rules) .price-field select,:is(#priceMain,.company-price-rules) textarea{box-sizing:border-box;min-height:40px;border-radius:8px}
:is(#priceMain,.company-price-rules) .price-wide{grid-column:1/-1}
:is(#priceMain,.company-price-rules) .price-money{display:flex;align-items:center;gap:8px;border:1px solid var(--line,#dce2de);border-radius:8px;padding:0 10px;background:var(--white,#fff);min-width:0}
:is(#priceMain,.company-price-rules) .price-money>span{flex:none;color:var(--muted,#68746e);font-size:13px}
:is(#priceMain,.company-price-rules) .price-money input{border:0;border-radius:0;background:transparent;padding:8px 0;flex:1 1 70px;min-width:0;width:0;font-variant-numeric:tabular-nums}
:is(#priceMain,.company-price-rules) .price-money select{border:0;border-radius:0;background:transparent;padding:8px 0;flex:0 1 150px;max-width:55%;width:auto;font-size:12px}
:is(#priceMain,.company-price-rules) .price-money:focus-within{outline:2px solid var(--green,#176b4d);outline-offset:1px}
:is(#priceMain,.company-price-rules) .price-money input:focus,:is(#priceMain,.company-price-rules) .price-money select:focus{box-shadow:none}
:is(#priceMain,.company-price-rules) .price-field .price-check{display:flex;align-items:center;gap:8px;color:var(--ink,#173e30);min-height:30px}
:is(#priceMain,.company-price-rules) #priceEnabled{width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:var(--green,#176b4d)}
:is(#priceMain,.company-price-rules) .price-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
:is(#priceMain,.company-price-rules) .price-primary,:is(#priceMain,.company-price-rules) .price-secondary{appearance:none;min-height:40px;padding:8px 14px;border-radius:8px;border:1px solid var(--green-3,#c5e3d4);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
:is(#priceMain,.company-price-rules) .price-primary{background:var(--green,#176b4d);color:var(--white,#fff)}
:is(#priceMain,.company-price-rules) .price-secondary{background:var(--white,#fff);color:var(--green,#176b4d)}
:is(#priceMain,.company-price-rules) button:focus-visible{outline:2px solid var(--green,#176b4d);outline-offset:3px}
:is(#priceMain,.company-price-rules) button:disabled{opacity:.55;cursor:wait}
:is(#priceMain,.company-price-rules) .price-save-status{font-size:12px;color:var(--green,#176b4d)}
:is(#priceMain,.company-price-rules) .price-error{margin:8px 0 0;color:var(--red,#b42318);font-size:13px}
:is(#priceMain,.company-price-rules) .price-error:empty{display:none}
:is(#priceMain,.company-price-rules) .price-trial-result{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:var(--green-2,#e8f5ee);border-radius:8px;padding:12px;margin-top:12px;font-size:13px;font-variant-numeric:tabular-nums}
:is(#priceMain,.company-price-rules) .price-trial-result.warn{background:var(--amber-2,#fff3dc)}
:is(#priceMain,.company-price-rules) .price-trial-result strong{font-weight:600;color:var(--green,#176b4d)}
:is(#priceMain,.company-price-rules) .price-trial-result.warn strong{color:var(--amber,#8b5708)}
:is(#priceMain,.company-price-rules) .price-history summary{cursor:pointer;color:var(--ink,#173e30);font-size:14px;padding:6px 0}
:is(#priceMain,.company-price-rules) .revenue-table{margin-top:10px}
:is(#priceMain,.company-price-rules) input:disabled,:is(#priceMain,.company-price-rules) select:disabled{color:var(--ink-soft,#56645c);background:var(--line-soft,#f4f7f5);opacity:1}
@media(max-width:600px){.price-main-dialog .modal-head{padding:16px}.price-main-dialog form #modalBody{padding:16px}:is(#priceMain,.company-price-rules) .price-field-grid{grid-template-columns:1fr}:is(#priceMain,.company-price-rules) .price-rule-grid{grid-template-columns:1fr 1fr}:is(#priceMain,.company-price-rules) .price-rule-grid .price-field:last-child{grid-column:1/-1}:is(#priceMain,.company-price-rules) .price-field input,:is(#priceMain,.company-price-rules) .price-field select,:is(#priceMain,.company-price-rules) textarea{font-size:16px;min-height:44px}:is(#priceMain,.company-price-rules) .price-money select{font-size:13px}:is(#priceMain,.company-price-rules) .price-primary,:is(#priceMain,.company-price-rules) .price-secondary{min-height:44px}}

.company-price-rules{margin:0 0 16px}
:is(#priceMain,.company-price-rules) .price-carton-summary{padding:16px 18px;margin-bottom:16px;background:var(--green-2,#e8f5ee);border:1px solid var(--green-3,#c5e3d4);border-radius:12px}
#priceCartonAmount{display:block;font-size:32px;line-height:1.25;color:var(--green,#176b4d);font-variant-numeric:tabular-nums}
#priceCartonFormula{margin-bottom:0}
#priceMain details>summary{cursor:pointer;font-size:14px;color:var(--ink,#173e30);padding:6px 0}
#priceMain .price-trial[open]>summary{margin-bottom:10px}
@media(max-width:600px){.company-price-rules{padding:16px}#priceCartonAmount{font-size:28px}}

/* Unified product editor and catalogue price states. */
.product-pricing-cell{min-width:150px}.product-price-summary{display:flex;flex-direction:column;align-items:flex-start;gap:5px;line-height:1.5;font-variant-numeric:tabular-nums}
.product-price-summary>strong{font-size:15px}.product-price-summary small{font-size:12px;color:var(--muted,#68746e);white-space:normal}.product-price-summary>strong small{font-weight:400;margin-left:4px}
.product-price-status{display:inline-block;border-radius:5px;padding:2px 7px;font-size:12px;background:var(--line-soft,#f4f7f5);color:var(--muted,#68746e)}
.product-price-status.ready{background:var(--green-2,#e8f5ee);color:var(--green,#176b4d)}.product-price-status.missing{background:var(--amber-2,#fff3dc);color:var(--amber,#8b5708)}.product-price-status.future{background:var(--blue-soft,#edf3ff);color:var(--blue,#295bac)}
#prodTableWrap{overflow-x:auto}.price-rules-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:18px 0}.price-rules-entry h3{margin:0}.price-rules-entry p{color:var(--muted,#68746e);font-size:13px;margin:6px 0 0}
#priceRuleSettings{max-width:850px;margin-top:18px}
.product-editor-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-editor-dialog .field{min-width:0}
.product-editor-dialog .pm-section{border:0;border-radius:0;background:none;padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid var(--line,#e1e8e3)}
.product-editor-dialog .pm-sec-title{font-size:15px;color:var(--ink,#173e30)}.product-editor-dialog .conv-row{display:flex;gap:8px;min-width:0;align-items:center}.product-editor-dialog .conv-row input{min-width:0}.product-editor-dialog .conv-name{flex:1 1 100px}.product-editor-dialog .conv-qty{flex:0 1 130px}.product-editor-dialog .conv-base{flex:0 1 auto;overflow-wrap:anywhere}
.product-editor-dialog .pm-section>.mf-hint{display:block;margin-top:8px}.product-editor-dialog .modal-head>div{min-width:0}.product-editor-dialog h2{overflow-wrap:anywhere}
#productEditor #priceEnabled{width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--green,#176b4d)}
#productEditor .price-check{display:flex;align-items:center;gap:8px;margin:12px 0 16px}
#productEditor .price-carton-summary{margin:16px 0}#productEditor .product-price-more{margin:20px 0 0;border-top:1px solid var(--line,#e1e8e3);padding-top:12px}#productEditor .product-price-more .price-field-grid{margin-top:12px}
#productEditor .product-aliases summary{color:var(--ink,#173e30);font-size:14px;cursor:pointer}#productEditor .product-aliases .field{margin-top:12px}
#productEditor .product-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:18px}
#productEditor .price-primary,#productEditor .price-secondary{appearance:none;min-height:40px;padding:8px 14px;border:1px solid var(--green-3,#c5e3d4);border-radius:8px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
#productEditor .price-primary{background:var(--green,#176b4d);color:var(--white,#fff)}#productEditor .price-secondary{background:var(--white,#fff);color:var(--green,#176b4d)}#productEditor button:disabled{opacity:.55;cursor:wait}
#productSaveError{color:var(--red,#b42318);font-size:13px;margin:12px 0;overflow-wrap:anywhere}#productSaveError:empty{display:none}
@media(max-width:600px){.product-editor-dialog .form-grid{grid-template-columns:minmax(0,1fr)}.product-editor-dialog .conv-row{gap:5px}.product-editor-dialog .conv-qty{flex-basis:70px}.product-editor-dialog .conv-name{flex-basis:75px}.product-editor-dialog .conv-del{flex:0 0 30px}.product-editor-dialog input,.product-editor-dialog select,.product-editor-dialog textarea{font-size:16px}#productEditor .product-editor-actions button{min-height:44px}}
