/* Specific, final rules for the real receipt and feedback markup. */
#root .ac551-collection-page{padding-top:10px!important;gap:10px!important}
#root .ac551-collection-page>.page-title{margin:0 0 10px!important;padding:0!important;min-height:0!important;display:flex;align-items:center;justify-content:space-between;gap:10px}
#root .ac551-collection-page .page-title h1{font-size:19px!important;margin:0!important;line-height:1.5!important}
#root .ac551-collection-page .fl546-timer{width:auto!important;border:0!important;padding:0!important;margin:0!important;gap:6px!important;background:none!important;font-size:11px}
#root .ac551-collection-page .fl546-timer small{display:none}
#root .ac550-collection .page-card{padding:12px 14px!important;margin:0 0 10px!important;border-radius:12px!important;min-height:0!important}
#root .ac550-collection h2,#root .ac550-collection h3{font-size:15px!important;line-height:1.5!important;margin:0 0 8px!important}
#root .ac550-collection button,#root .ac550-collection a.btn{min-height:34px!important;height:auto!important;width:auto!important;min-width:0!important;padding:6px 12px!important;font-size:12px!important;line-height:1.5!important;border-radius:8px!important;flex:0 0 auto}
#root .ac550-collection input,#root .ac550-collection select{height:36px!important;min-height:36px!important;padding:5px 9px!important;font-size:13px!important;border-radius:7px!important}
#root .ac550-collection .sw-actions{padding:0!important;margin:0!important;gap:6px!important;justify-content:flex-start!important}
#root .ac551-section-title{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:8px}
#root .ac551-section-title h2{margin:0!important}
#root .ac550-collection .ac551-guarantee{display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(300px,1.5fr);gap:6px 14px!important;border:1.5px solid #df6570!important;border-radius:9px!important;padding:10px!important;margin:0 0 6px!important;background:#fff!important}
#root .ac551-guarantee header{display:flex;justify-content:space-between;gap:10px!important;align-items:center;margin:0!important}
#root .ac551-guarantee header b{color:#af233b;font-size:14px}
#root .ac551-guarantee header span{font-size:11px;color:#53687c}
#root .ac551-guarantee-info{grid-column:1;grid-row:2;font-size:12px;color:#53687c}
#root .ac551-guarantee-controls{grid-column:2;grid-row:1/3;display:flex;align-items:end;gap:8px;flex-wrap:wrap}
#root .ac551-guarantee-controls label{flex:1;min-width:120px;display:grid!important;gap:3px!important;font-size:11px!important;margin:0!important}
#root .ac551-guarantee [data-error]:empty{display:none!important}
#root .ac550-payments article{display:grid!important;grid-template-columns:minmax(120px,1fr) auto 105px!important;align-items:center;gap:12px!important;padding:7px 0!important;min-height:0!important}
#root .ac550-payments .sw-status{width:auto!important;padding:5px 8px!important;justify-self:end}
#root .ac550-collection .sw-check-receipt{gap:8px!important;padding:10px!important;margin:0 0 8px!important;align-items:center!important;grid-template-columns:auto auto auto minmax(130px,1fr) auto auto auto!important}
#root .ac550-collection .dc545-owner-fields,#root .ac550-collection .dc-owner-fields{gap:8px!important}
#root .ac550-collection [hidden],#root .crm547 [hidden],#root .ac550-page [hidden]{display:none!important}
#root .ac550-page .page-card{padding:18px!important}
#root .ac551-heading span{font-size:18px;font-weight:600;color:#153e4c}
#root .ac551-heading p{font-size:12px;color:#5c7282;margin:6px 0 18px}
#root .ac551-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr);gap:20px;align-items:start}
#root .ac551-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#root .ac551-form label,#root .ac551-match label{display:grid;gap:5px;font-size:12px;color:#526677}
#root .ac551-form input,#root .ac551-form select,#root .ac551-match input{height:39px!important;min-height:39px!important;padding:6px 9px!important;width:100%;min-width:0}
#root .ac551-wide{grid-column:1/-1}
#root [data-variant-fields]{display:contents}
#root .ac551-match{background:#f2f8f8;border:1px solid #d1e4e4;border-radius:14px;padding:20px;min-width:0}
#root .ac551-match>strong{display:block;font-family:monospace;font-size:29px;letter-spacing:1px;color:#136c70;margin:12px 0;overflow-wrap:anywhere}
#root .ac551-match p{font-size:12px;line-height:1.9;overflow-wrap:anywhere}
#root .ac551-match details{border-top:1px solid #cfe0e4;padding-top:12px;margin-top:12px}
#root .ac551-match summary{font-size:12px;cursor:pointer;margin-bottom:12px}
#root .ac551-candidate{display:grid!important;gap:4px!important;padding:10px!important;width:100%!important;height:auto!important;white-space:normal!important;text-align:right;border:1px solid #d0dfe4;margin:6px 0;background:#fff;font-size:12px!important}
#root .ac551-candidate code{font-size:14px;direction:ltr;text-align:left;color:#12656b}
#root .ac551-candidate b{font-weight:500;font-size:11px}
#root .ac551-preview{display:block;grid-column:1/-1;padding:10px 12px;border:1px solid #bcdddd;border-radius:8px;background:#edf8f7;font-size:12px}
#root .ex548[data-document]{max-width:none;width:100%;padding-bottom:80px}
#root .ex548[data-document] .page-card{padding:16px!important;margin:0 0 12px!important;border-radius:14px!important}
#root .ac551-customer{background:linear-gradient(110deg,#fff,#f0f8f8)!important;border-color:#d3e4e7!important}
#root .ac551-customer-title{display:flex;align-items:center;gap:10px}
#root .ac551-avatar{display:grid;place-items:center;width:40px;height:40px;background:#d9efeb;color:#126b67;border-radius:12px;font-size:21px}
#root .ac551-customer h2{margin:0!important;font-size:19px!important}
#root .ac551-customer p{font-size:12px;margin:8px 0!important;color:#4d6677}
#root .ac551-customer-more{font-size:12px;border-top:1px solid #dce9ec;padding-top:8px}
#root .ac551-customer-more summary{cursor:pointer;color:#21656d}
#root .ex548-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px!important;margin:12px 0 0!important}
#root .ex548-facts div{padding:8px!important;background:#fff;border-radius:8px}
#root .ex548-facts dt{font-size:11px;color:#6c7f8b}
#root .ex548-facts dd{font-size:12px;overflow-wrap:anywhere;margin:4px 0 0}
#root .ex548-detail-toolbar{margin-bottom:10px!important;gap:7px}
#root .ex548-detail-toolbar button,#root .ex548-detail-toolbar a,#root [data-customer-kardex]{min-height:36px!important;height:auto!important;padding:6px 12px!important;font-size:12px!important;margin-bottom:8px}
#root .crm547-invoice-document{border:1px solid #dae5eb;border-radius:14px;background:#fff;margin-top:10px;overflow:hidden}
#root .crm547-invoice-document>header{padding:14px 16px!important;background:#f6f9fc;align-items:center}
#root .crm547-invoice-document h3{font-size:18px!important;margin:3px 0!important}
#root .crm547-invoice-table td,#root .crm547-invoice-table th{padding:10px!important;font-size:12px!important}
#root .crm547-invoice-table small{max-width:420px;font-size:11px;line-height:1.8;color:#65798a}
#root .crm547-invoice-table button{min-height:34px!important;padding:6px 9px!important;font-size:11px!important}
#root .crm547-invoice-totals{gap:8px!important;padding:12px!important;margin:0!important;background:#f8fbfc}
#root .crm547-invoice-totals>span{padding:8px!important;font-size:11px}
#root .crm547-invoice-totals b{font-size:14px!important;font-weight:500!important}
#root .crm547-overall{margin:0!important;padding:16px!important;border-top:1px solid #dde8ed}
#root .crm547-overall h4{margin:0;font-size:15px}
#root .crm547-feedback-form{max-width:none!important;padding:12px 0 0!important;margin:0!important}
#root .crm547-form-grid{gap:10px 14px!important}
#root .crm547-feedback-form input:not([type=radio]):not([type=checkbox]),#root .crm547-feedback-form select{height:38px!important;min-height:38px!important;padding:6px 9px!important;font-size:13px}
#root .crm547-feedback-form textarea{min-height:64px!important;font-size:13px!important;padding:8px!important}
#root .ac551-sentiment{padding:0;border:0;display:flex;gap:8px;flex-wrap:wrap;margin:0}
#root .ac551-sentiment legend{font-size:12px;margin-bottom:8px;color:#516978}
#root .ac551-sentiment label{display:flex!important;position:relative;flex:1;min-width:120px;padding:0!important;cursor:pointer}
#root .ac551-sentiment input{position:absolute;opacity:0;width:1px;height:1px}
#root .ac551-sentiment span{display:block;width:100%;border:1px solid #d8e2e8;border-radius:9px;padding:10px;text-align:center;background:#fff;font-size:13px}
#root .ac551-sentiment input:focus-visible+span{outline:3px solid #86b4dc;outline-offset:2px}
#root .ac551-sentiment input:checked+span{background:#e2f4ed;border-color:#178561;color:#08603f}
#root [data-sentiment=dissatisfied] input:checked+span{background:#fff0ef;color:#b53d45;border-color:#ce6871}
#root [data-sentiment=resolved] input:checked+span{background:#eaf1ff;color:#31529f;border-color:#7e98d0}
#root .crm547-feedback-form footer{margin-top:10px;padding:0}
#root .crm547-feedback-form footer button{min-height:38px!important;padding:7px 18px!important;font-size:13px}
@media(max-width:760px){
 #root .ac551-layout{grid-template-columns:1fr;gap:15px}
 #root .ac551-collection-page>.page-title{flex-wrap:wrap}
 #root .ac550-collection .page-card{padding:10px!important}
 #root .ac550-collection .ac551-guarantee{grid-template-columns:1fr!important;gap:8px!important}
 #root .ac551-guarantee-controls{grid-column:1;grid-row:3}
 #root .ac550-collection button,#root .ac550-collection a.btn{min-height:40px!important}
 #root .ac550-collection .sw-check-receipt{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #root .ac550-payments article{grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important}
 #root .ac550-payments article>button,#root .ac550-payments article>.sw-status{grid-column:2;grid-row:1/3}
 #root .ac550-payments article>b{grid-column:1;font-size:12px}
 #root .ex548-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #root .crm547-invoice-totals{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #root .ac551-sentiment{gap:6px}#root .ac551-sentiment label{min-width:85px}
 #root .ac551-sentiment span{padding:10px 4px;font-size:11px}
 #root .crm547-opinion-row>td{padding:10px!important}
 #root .crm547-overall{padding:12px!important}
 #root .crm547-feedback-form .crm547-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #root .crm547-feedback-form .crm547-form-grid>label:has(textarea){grid-column:1/-1}
}
#root .ac550-collection input[type=checkbox]{min-height:16px!important;height:16px!important;min-width:16px!important;width:16px!important;padding:0!important}
#root .ac550-collection .sw-check-receipt>div:has(.dc545-owner),#root .ac550-collection .sw-check-receipt>.dc545-owner{grid-column:1/-1}
@media(max-width:760px){
 #root .crm547-invoice-table{display:block;min-width:0!important;width:100%!important}
 #root .crm547-invoice-table thead{display:none}
 #root .crm547-invoice-table tbody{display:block}
 #root .crm547-invoice-table tbody>tr:not(.crm547-opinion-row){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:12px;border-bottom:1px solid #dce7eb}
 #root .crm547-invoice-table td{display:block;border:0!important;padding:2px!important;width:auto!important}
 #root .crm547-invoice-table tr:not(.crm547-opinion-row)>td:first-child{display:none}
 #root .crm547-invoice-table tr:not(.crm547-opinion-row)>td:nth-child(2){grid-column:1/-1}
 #root .crm547-invoice-table tr:not(.crm547-opinion-row)>td:nth-child(3){font-size:11px!important;color:#526a7a;overflow-wrap:anywhere}
 #root .crm547-invoice-table tr:not(.crm547-opinion-row)>td:nth-child(4)::after{content:' ریال';font-size:10px}
 #root .crm547-invoice-table tr:not(.crm547-opinion-row)>td:last-child{grid-column:1/-1;display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:5px}
 #root .crm547-invoice-table .crm547-opinion-row:not([hidden]){display:block;padding:10px;background:#f1f7f9}
}
html.ux480 #root .sw-page.ac551-collection-page .ac550-collection .sw-check-receipt{grid-template-columns:60px 108px minmax(115px,1fr) minmax(150px,1.5fr) auto auto auto!important;align-items:center!important;gap:6px 10px!important}
html.ux480 #root .sw-page.ac551-collection-page .sw-check-receipt>label:not(.ac550-owner-use){grid-column:auto!important;margin:0!important}
html.ux480 #root .sw-page.ac551-collection-page .sw-check-receipt>.ac550-owner-use{grid-column:1/-1!important;margin:0!important}
html.ux480 #root .sw-page.ac551-collection-page .sw-check-receipt button,html.ux480 #root .sw-page.ac551-collection-page .sw-check-receipt>a{width:auto!important;justify-self:start!important}
html.ux480 #root .sw-page.ac551-collection-page .ac550-owner-default{padding:7px 10px!important;margin:0 0 9px!important}
html.ux480 #root .sw-page.ac551-collection-page .ac551-owner-summary{font-size:12px}
html.ux480 #root .sw-page.ac551-collection-page .ac551-owner-summary summary{cursor:pointer;color:#526e7b}
@media(max-width:760px){
 html.ux480 #root .sw-page.ac551-collection-page .ac550-collection .sw-check-receipt{grid-template-columns:1fr 1fr!important}
 html.ux480 #root .sw-page.ac551-collection-page .sw-check-receipt>strong{grid-column:1/-1!important}
 html.ux480 #root .sw-page.ac551-collection-page .sw-check-receipt>label:not(.ac550-owner-use){grid-column:1/-1!important}
 html.ux480 #root .sw-page .ex548 .crm547-invoice-table tr:not(.crm547-opinion-row){grid-template-columns:minmax(0,1fr) auto!important;padding:10px!important;margin:0!important;border:0!important;border-bottom:1px solid #dce7eb!important;border-radius:0!important}
 html.ux480 #root .sw-page .ex548 .crm547-invoice-table tr:not(.crm547-opinion-row)>td{grid-row:auto!important;grid-column:auto!important}
 html.ux480 #root .sw-page .ex548 .crm547-invoice-table tr:not(.crm547-opinion-row)>td:nth-child(1){display:none!important}
 html.ux480 #root .sw-page .ex548 .crm547-invoice-table tr:not(.crm547-opinion-row)>td:nth-child(2),html.ux480 #root .sw-page .ex548 .crm547-invoice-table tr:not(.crm547-opinion-row)>td:nth-child(5){grid-column:1/-1!important}
 html.ux480 #root .sw-page .ex548 .crm547-invoice-table tr:not(.crm547-opinion-row)>td:nth-child(3){grid-column:1!important;grid-row:2!important;min-height:0!important}
 html.ux480 #root .sw-page .ex548 .crm547-invoice-table tr:not(.crm547-opinion-row)>td:nth-child(4){grid-column:2!important;grid-row:2!important}
}
#root .ac550-collection button,#root .ac550-collection a.btn,#root .ac551-candidate,#root .crm547-feedback-form button{font-weight:500!important}
#root .ac550-collection [data-print-reasons]{border-top:1px solid #e2e8ef;padding:7px 0 0;margin-top:8px;font-size:12px}
#root .ac550-collection [data-print-reasons] ul{margin:0;padding-inline-start:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 18px}
@media(max-width:760px){#root .ac550-collection [data-print-reasons] ul{grid-template-columns:1fr}}

/* Ready Sepidar combinations: compact, visible and usable on a phone. */
#root .ac552-count{display:inline-block;font-size:12px;font-weight:500;background:#e7f5ef;color:#126d51;border-radius:20px;padding:4px 10px;margin-inline-start:12px}
#root .ac552-ready{margin-top:18px;border-top:1px solid #dce5ed;padding-top:12px}
#root .ac552-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
#root .ac552-toolbar h3{font-size:14px;margin:0;flex:1}#root .ac552-toolbar input,#root .ac552-toolbar select{min-height:34px;height:34px;font-size:12px;max-width:250px}
#root .ac552-catalog-grid{max-height:440px;overflow:auto;border:1px solid #dce5ed;border-radius:12px}
#root .ac552-catalog-row{display:grid;grid-template-columns:180px 1fr;gap:12px;padding:10px 12px;border-bottom:1px solid #e8eef3;background:#fff}
#root .ac552-catalog-row:nth-child(even){background:#f8fafc}#root .ac552-catalog-row code{font-size:13px;color:#0b6870;font-weight:600}#root .ac552-catalog-row small{display:block;margin-top:4px;font-size:11px;color:#687b89}
#root .ac552-catalog-row p{font-size:12px;font-weight:500;margin:0 0 4px;overflow-wrap:anywhere}#root .ac552-catalog-row span{font-size:11px;line-height:1.8;color:#596f7d;overflow-wrap:anywhere}#root .ac552-catalog-row em{display:block;color:#9b6910;font-size:11px;font-style:normal}
#root .ac552-pager{display:flex;justify-content:center;gap:14px;align-items:center;margin-top:8px;font-size:12px}#root .ac552-pager button{padding:4px 12px;min-height:32px;height:32px}
@media(max-width:600px){#root .ac552-catalog-row{grid-template-columns:1fr;gap:5px}#root .ac552-catalog-row>div:first-child{display:flex;justify-content:space-between;gap:6px}#root .ac552-toolbar h3{flex-basis:100%}#root .ac552-toolbar label{min-width:0;flex:1}#root .ac552-toolbar input{width:100%;min-width:0}#root .ac552-count{margin:6px 0}#root .ac552-toolbar select{max-width:145px}}

#root .ac551-match [data-code]{font-family:ui-monospace,monospace;font-size:24px;letter-spacing:1px;font-weight:600}

/* Contract options occupy their own full-width row, never a narrow grid cell. */
#root .dc545-line-fields>.sw-grid{align-items:start!important;gap:12px 14px!important}
#root .dc545-line-fields>.sw-grid>.sc-wide{grid-column:1/-1!important;min-width:0;width:100%}
#root .dc545-line-fields .dc545-multiselect{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:8px!important;padding:10px!important;margin:6px 0 0!important;min-width:0;border:1px solid #d7e2e9!important;border-radius:12px;background:#fff}
#root .dc545-line-fields .dc545-multiselect>label{flex:0 0 auto!important;min-width:0!important;width:auto!important;margin:0!important;min-height:40px;padding:7px 12px!important;white-space:nowrap;cursor:pointer}
#root .dc545-line-fields>header{margin-bottom:12px!important}
#root .dc545-line-fields h4{margin:0!important}
#root .dc545-line-fields{padding:14px!important}
@media(max-width:600px){#root .dc545-line-fields{padding:10px!important}#root .dc545-line-fields .dc545-multiselect{gap:6px!important}#root .dc545-line-fields .dc545-multiselect>label{min-height:44px;padding:7px 10px!important}}
