.chm-vendor-dashboard{direction:rtl;color:#203b48;max-width:1100px;margin:auto;font-size:14px}
.chm-product-card{border:1px solid #d4e8df;border-radius:16px;overflow:hidden;margin:24px 0;background:#fff;box-shadow:0 5px 18px #153a2710}
.chm-product-header{background:linear-gradient(110deg,#eaf7f0,#eef5ff);padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.chm-product-header h3{margin:0!important;font-size:18px!important;color:#176147}
.chm-product-badge,.chm-variant-state{border-radius:20px;padding:5px 10px;background:#fff;color:#237459;font-size:12px;flex-shrink:0}
.chm-product-body{padding:14px}
.chm-variant{border:1px solid #deebe6;border-radius:12px;margin:12px 0;overflow:hidden;background:#fff}
.chm-variant summary{cursor:pointer;padding:15px;background:#f2f8f5;color:#225c48;line-height:1.8;font-weight:600}
.chm-variant[open] summary{border-bottom:1px solid #deebe6;background:#e9f5ef}
.chm-variant-state{display:inline-block;margin-inline-start:12px;font-weight:400;background:#d9eee2}
.chm-offer-form{padding:16px;margin:0!important}
.chm-offer-form fieldset{border:0!important;min-width:0;padding:0!important;margin:0!important}
.chm-unit-field{max-width:440px;margin-bottom:16px}
.chm-offer-fields{clear:both;direction:rtl;min-width:0}
.chm-field-section{padding:16px;border-radius:12px;background:#f2f7ff;border:1px solid #e0eafa;margin:14px 0;min-width:0}
.chm-sale-section{background:#fff8eb;border-color:#f3e6c8}
.chm-delivery-section{background:#eef8f4;border-color:#d8ebe1}
.chm-field-section h5{margin:0 0 14px!important;font-size:15px!important;color:#294f66}
.chm-field-section h5 small{font-weight:400;margin-inline-start:6px}
.chm-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.chm-offer-fields label,.chm-unit-field label{display:flex!important;flex-direction:column;gap:7px;float:none!important;width:auto!important;margin:0!important;min-width:0;color:#294453;font-size:14px;line-height:1.7}
.chm-offer-fields input:not([type=checkbox]):not([type=hidden]),.chm-offer-fields select,.chm-unit-field select{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;height:46px!important;float:none!important;margin:0!important;padding:8px 11px!important;border:1px solid #d1dedb!important;border-radius:9px!important;background:#fff!important;color:#233e4a!important;font-size:16px!important;box-shadow:none!important}
.chm-offer-fields input:focus,.chm-unit-field select:focus{outline:2px solid #76bda5;outline-offset:1px}
.chm-offer-fields input.chm-money{text-align:right;direction:ltr;font-variant-numeric:tabular-nums}
.chm-offer-fields input[type=datetime-local]{direction:ltr;text-align:left}
.chm-offer-fields small,.chm-field-help{display:block;color:#617781;font-size:12px;line-height:1.9;margin:10px 0 0}
.chm-shipping-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.chm-shipping-options label{flex-direction:row!important;align-items:flex-start;background:white;border:1px solid #d8e5df;padding:10px;border-radius:9px;cursor:pointer}
.chm-shipping-options input[type=checkbox]{flex-shrink:0;width:18px!important;height:18px!important;margin:4px 0 0!important;accent-color:#258563}
.chm-form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.chm-form-actions button{border-radius:9px!important;padding:10px 14px!important;line-height:1.8!important;height:auto!important;border:1px solid #bfdacf!important;background:#f2f7f4!important;color:#305c48!important;white-space:normal!important;cursor:pointer}
.chm-form-actions button.chm-submit{background:#23835e!important;color:white!important;border-color:#23835e!important}
.chm-vendor-dashboard>table{display:block;overflow-x:auto;max-width:100%}
.chm-vendor-dashboard>table td,.chm-vendor-dashboard>table th{padding:10px;min-width:100px}
.chm-vendor-dashboard>form{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.chm-vendor-dashboard>form input{min-width:0;max-width:100%;border-radius:8px;padding:10px;border:1px solid #ccdcd4}
.chm-offer-group{margin:14px 0;border:1px solid #deebe6;border-radius:12px;overflow:hidden}
.chm-offer-group>.chm-variant{margin:0;border:0;border-radius:0}
.chm-request-banner{padding:12px 15px;line-height:1.8;background:#edf4ff;color:#35567a;border-bottom:1px solid #d9e5f5;font-size:13px}
.chm-request-pending{background:#fff0f0;color:#a44343;border-color:#f3cccc}
.chm-request-returned{background:#fff5e3;color:#91631f;border-color:#f0dfb8}
.chm-request-rejected{background:#fff0f0;color:#9b3f49;border-color:#f3cccc}
.chm-request-approved{background:#eaf8ef;color:#26704b;border-color:#cfe8d7}
.chm-request-superseded{background:#f2f4f6;color:#596673;border-color:#dfe4e8}
.chm-request-banner p{margin:5px 0 0!important;font-size:13px!important;line-height:1.9}
.chm-request-number,.chm-request-date{display:inline-block;margin-inline-start:12px;font-size:12px}
.chm-manager-message{border-top:1px solid #0000000d;padding-top:7px;overflow-wrap:anywhere}
.chm-field-tabs{display:flex;gap:6px;background:#f1f5f4;padding:5px;border-radius:11px;margin:12px 0;flex-wrap:wrap}
.chm-field-tabs button.chm-field-tab{flex:1;min-width:0;white-space:normal!important;border:1px solid transparent!important;border-radius:8px!important;padding:10px 12px!important;margin:0!important;background:transparent!important;color:#546b76!important;box-shadow:none!important;font-size:13px!important;line-height:1.8!important;height:auto!important;cursor:pointer}
.chm-field-tabs button.chm-field-tab[aria-selected=true]{background:#fff!important;color:#176347!important;border-color:#d5e6dc!important;box-shadow:0 2px 5px #203c2910!important;font-weight:600}
.chm-field-tabs button.chm-field-tab:focus-visible{outline:2px solid #258563;outline-offset:1px}
.chm-tabs-ready>.chm-field-section[hidden]{display:none!important}
.chm-tabs-ready>.chm-field-section{margin-top:0}
.chm-request-values{background:#fff9ed;border:1px solid #efdeb6;border-radius:10px;margin-bottom:14px;padding:10px;color:#665020}
.chm-request-values summary{padding:7px;background:transparent!important;border:0!important;font-size:13px;cursor:pointer}
.chm-request-comparison{overflow-x:auto;max-width:100%;margin-top:10px}
.chm-request-comparison table{width:100%;border-collapse:collapse;font-size:12px}
.chm-request-comparison th,.chm-request-comparison td{padding:8px;border:1px solid #e9e0cd;min-width:100px;text-align:right;overflow-wrap:anywhere}
.chm-request-comparison thead{background:#f3ead6}
.chm-request-comparison .chm-changed-value td:last-child{background:#fff0cc;font-weight:600;color:#815415}
.chm-draft-note,.chm-unsent-note{padding:10px;border-radius:8px;background:#fff4d8;color:#805a1c;font-size:13px;line-height:1.9}
.chm-unsent-note[hidden]{display:none!important}
.chm-unsent-change>input,.chm-unsent-change>select{outline:2px solid #e4b34f!important;outline-offset:1px}
.chm-unsent-change:after{content:'تغییر تازه — هنوز ارسال نشده';font-size:11px;color:#98681c}
.chm-audit-toggle{margin:12px 0;padding:9px 12px;background:#f4f6fa;border:1px solid #dfe5ee;border-radius:9px;color:#3c5973;font-size:13px}
.chm-audit-toggle>summary{cursor:pointer;padding:5px;background:transparent!important;border:0!important}
.chm-audit-content{margin-top:10px}
.chm-history-page{margin:5px;padding:7px 14px;border:1px solid #cbd9e3;background:white;border-radius:7px;cursor:pointer}
.chm-instant-note{padding:10px;border-radius:8px;background:#e8f6ee;color:#236347;font-size:13px;line-height:1.9}
details.chm-product-card>summary.chm-product-header{display:grid;grid-template-columns:58px minmax(0,1fr) auto 18px;cursor:pointer;list-style:none;gap:14px;align-items:center}
details.chm-product-card>summary.chm-product-header::-webkit-details-marker{display:none}
.chm-product-title{min-width:0}
.chm-product-title h3{overflow-wrap:anywhere;margin-bottom:7px!important}
.chm-product-title .chm-product-badge{display:inline-block;font-size:11px;padding:3px 9px}
.chm-header-pending{display:inline-block;margin-inline-start:7px;color:#a04444;background:#ffe8e8;border-radius:14px;padding:3px 9px;font-size:11px}
.chm-product-header button.chm-product-image,.chm-product-header .chm-image-placeholder{box-sizing:border-box;padding:0!important;width:58px!important;height:58px!important;min-width:0!important;display:block;border:1px solid #cfe4db!important;border-radius:10px!important;overflow:hidden;background:#fff!important;margin:0!important;line-height:1!important;box-shadow:none!important}
.chm-product-header button.chm-product-image{cursor:zoom-in}
.chm-product-image img{display:block!important;width:100%!important;height:100%!important;object-fit:contain;border-radius:0!important;margin:0!important}
.chm-view-product{white-space:nowrap;text-decoration:none!important;color:#226c50!important;background:white;border:1px solid #cde3d8;padding:8px 12px;border-radius:9px;font-size:12px}
.chm-product-chevron{color:#397a61;transition:transform .15s}
details.chm-product-card[open]>summary .chm-product-chevron{transform:rotate(180deg)}
.chm-image-modal[hidden]{display:none!important}
.chm-image-modal{position:fixed;inset:0;z-index:2147483000;background:#102820cf;display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;direction:rtl}
.chm-image-modal-box{position:relative;background:#fff;border-radius:14px;padding:54px 16px 12px;max-width:960px;width:fit-content;max-height:94vh;overflow:auto;box-sizing:border-box}
.chm-image-modal-box>img{display:block;max-width:100%;max-height:72vh;object-fit:contain;width:auto;height:auto;margin:auto}
.chm-image-modal-box>.chm-image-close{position:absolute;top:10px;right:12px;border:1px solid #cce1d6;background:#edf7f1;color:#285c45;border-radius:8px;padding:7px 14px;cursor:pointer;font-size:14px;line-height:1.6}
.chm-image-caption{text-align:center;color:#385547;margin:12px 0 0;font-size:14px}
@media(max-width:600px){details.chm-product-card>summary.chm-product-header{grid-template-columns:48px minmax(0,1fr) 16px;gap:10px;padding:12px}.chm-product-header button.chm-product-image,.chm-product-header .chm-image-placeholder{width:48px!important;height:48px!important}.chm-product-header .chm-view-product{grid-column:2;grid-row:2;justify-self:start;padding:6px 10px}.chm-product-chevron{grid-column:3;grid-row:1}.chm-header-pending{margin-inline-start:0;margin-top:5px}.chm-image-modal{padding:10px}.chm-image-modal-box{padding:52px 10px 12px}}
@media(max-width:600px){.chm-field-tabs{gap:3px;padding:4px}.chm-field-tabs button.chm-field-tab{padding:8px 5px!important;font-size:12px!important}.chm-request-banner{padding:10px}.chm-request-date{display:block;margin-inline-start:0}.chm-request-number{margin-inline-start:7px}}
@media(max-width:600px){.chm-product-header{padding:14px;align-items:flex-start;flex-direction:column}.chm-product-body{padding:8px}.chm-offer-form{padding:10px}.chm-field-section{padding:12px}.chm-field-grid,.chm-shipping-options{grid-template-columns:minmax(0,1fr)}.chm-variant-state{display:block;width:fit-content;margin:8px 0 0}.chm-form-actions{flex-direction:column}.chm-form-actions button{width:100%}.chm-unit-field{max-width:none}.chm-vendor-dashboard{font-size:13px}.chm-product-header h3{font-size:16px!important}}
.chm-vendor-dashboard{display:block!important;float:none!important;clear:both!important;width:100%!important;max-width:1100px!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important;text-align:right;overflow-wrap:anywhere}
.chm-vendor-dashboard *{box-sizing:border-box}
.chm-vendor-dashboard>.chm-product-card{display:block!important;float:none!important;clear:both!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:18px 0!important;padding:0!important;position:relative}
.chm-vendor-dashboard .chm-product-card>.chm-product-header{display:grid!important;grid-template-columns:58px minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;float:none!important;width:100%!important;margin:0!important;padding:16px 18px!important;cursor:pointer;border:0!important;border-radius:0;background:linear-gradient(110deg,#eaf7f0,#eef5ff)!important}
.chm-vendor-dashboard button.chm-product-toggle{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-width:0!important;max-width:100%!important;width:100%!important;float:none!important;position:static!important;height:auto!important;padding:0!important;margin:0!important;background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#176147!important;text-align:right!important;white-space:normal!important;line-height:1.8!important;font-family:inherit!important;font-size:14px!important;cursor:pointer}
.chm-vendor-dashboard .chm-product-title{display:block;min-width:0}
.chm-vendor-dashboard .chm-product-name{display:block;margin-bottom:5px;font-size:16px;font-weight:700}
.chm-vendor-dashboard .chm-product-chevron{flex-shrink:0}
.chm-vendor-dashboard .chm-product-card[data-expanded=true] .chm-product-chevron{transform:rotate(180deg)}
.chm-vendor-dashboard .chm-product-body{display:block;float:none;width:100%;min-width:0}
.chm-vendor-dashboard .chm-product-body[hidden]{display:none!important}
.chm-vendor-dashboard .chm-request-history,.chm-vendor-dashboard>.chm-audit-toggle{display:block!important;float:none!important;width:100%!important;min-width:0!important;max-width:100%!important;clear:both!important;overflow-x:auto}
.chm-vendor-dashboard .chm-request-history{margin:14px 0;padding:10px 14px;border:1px solid #dce7df;border-radius:10px;background:#f5f9f7}
.chm-vendor-dashboard .chm-request-history>summary{cursor:pointer;padding:6px;color:#355d49;font-weight:600}
.chm-vendor-dashboard .chm-request-history table{width:100%!important;table-layout:auto;min-width:620px;float:none!important}
.chm-vendor-dashboard .chm-request-history th,.chm-vendor-dashboard .chm-request-history td{padding:10px;overflow-wrap:anywhere}
@media(max-width:600px){.chm-vendor-dashboard .chm-product-card>.chm-product-header{grid-template-columns:48px minmax(0,1fr)!important;gap:10px!important;padding:12px!important}.chm-vendor-dashboard .chm-product-header>.chm-view-product{grid-column:2;grid-row:2;justify-self:start}.chm-vendor-dashboard .chm-product-name{font-size:14px}.chm-vendor-dashboard .chm-product-chevron{grid-column:auto;grid-row:auto}}
