/* v0.9 independent retail workflow refinements – compact, accessible and responsive */
.rent-enabled-field{display:flex!important;align-items:center;gap:9px;flex-wrap:wrap;
 background:#effaf3;border:1px solid #c9e5d6;border-radius:8px;padding:10px;margin:8px 0!important}
#editDialog.product-mode .rent-enabled-field input[type=checkbox]{
 margin:0;width:18px;height:18px;flex:0 0 18px;accent-color:#00ab67}
#editDialog.product-mode .rent-enabled-field small{flex-basis:100%;margin:0 0 0 27px;
 color:#60846c;font-size:10px;font-weight:500}
.retail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:13px}
.retail-summary .rent-kpi{min-height:71px}
.retail-summary .rent-kpi>strong{font-size:18px}
.retail-controls{display:flex;align-items:center;gap:10px;padding:3px 15px 13px;flex-wrap:wrap}
.retail-controls input,.retail-controls select{border:1px solid #dbe8e0;border-radius:7px;padding:10px 11px;
 background:#fff;color:#345945;font:inherit;min-height:39px}
.retail-controls input{flex:1 1 250px;min-width:180px}
.retail-controls select{flex:0 1 auto;min-width:160px;max-width:240px}
.retail-view-switch{display:flex;border:1px solid #dbebe1;border-radius:7px;overflow:hidden}
.retail-view-switch button{padding:8px 12px;background:white;color:#6f8d7d;font-size:18px;border-radius:0}
.retail-view-switch button.selected{background:#00a86a;color:white}
.retail-filterchips{display:flex;gap:7px;padding:0 15px 13px;overflow-x:auto;align-items:center;scrollbar-width:thin}
.retail-chip{border:1px solid #dfebe4;background:#f5f9f6;color:#678273;
 padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:12px;font-weight:700}
.retail-chip.selected{background:#dcf5e8;border-color:#9bd6b6;color:#008b56}
.retail-footer-hint{padding:12px 15px;color:#729180;font-size:11px;line-height:1.6}
.retail-product-grid{padding:4px 15px 17px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.retail-product-tile{min-width:0;display:flex;gap:11px;border:1px solid #e3eae7;border-radius:10px;padding:12px;
 align-items:flex-start;background:#fbfdfb}
.retail-card-media{height:94px;width:94px;border-radius:9px;background:#e9f5ee;color:#91baa1;
 display:grid;place-items:center;overflow:hidden;flex:0 0 94px;font-size:28px}
.retail-card-media img{width:100%;height:100%;object-fit:cover}
.retail-card-content{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.retail-card-content>small{font-size:10px;color:#93a99b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.retail-card-content>strong{font-size:13px;color:#264538;line-height:1.4;overflow-wrap:anywhere}
.retail-card-prices{display:flex;flex-direction:column;gap:4px}
.retail-card-prices b{color:#008b5b;font-size:15px}
.retail-card-prices span{font-size:11px;color:#789183}
.retail-card-footer{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:auto}
.retail-card-footer .ghost{padding:5px 10px;font-size:11px}
.retail-name-link{color:#176a48;background:none;font-weight:800;padding:5px 0;text-align:left;text-decoration:none}
.retail-name-link:hover{text-decoration:underline}
.retail-customer-dialog{max-width:min(830px,calc(100vw - 24px));width:750px}
.retail-customer-head{display:flex;align-items:center;gap:15px;padding:17px 0 12px}
.retail-customer-head h3{margin:0;font-size:19px;color:#275040}
.retail-customer-head p{margin:6px 0;font-weight:700;color:#4a7960}
.retail-customer-head small{color:#879a8f;font-size:12px}
.retail-customer-dialog .customer-portrait.big{width:78px;height:78px;font-size:32px}
.retail-note{background:#f4f8f4;border-radius:8px;padding:12px;color:#657c6e}
.retail-detail-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:13px 0}
.retail-detail-kpis .rent-kpi{min-height:73px}
.retail-detail-kpis .rent-kpi>strong{font-size:16px;overflow-wrap:anywhere}
.retail-history-title{font-size:14px;margin:18px 0 10px;color:#365845}
.retail-customer-dialog .tablewrap{border:1px solid #eaf0eb;border-radius:8px}
.retail-customer-dialog th,.retail-customer-dialog td{padding:11px;font-size:11px}
.retail-customer-dialog .modal-bottom{position:sticky;bottom:-28px;background:#fff;padding:12px 0 0}
@media(max-width:1250px){.retail-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.retail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .retail-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .retail-controls select{flex:1 1 170px}}
@media(max-width:700px){.retail-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:5px 10px 12px}
 .retail-product-tile{display:block;padding:9px}
 .retail-card-media{width:100%;height:145px;margin-bottom:9px}
 .retail-card-content>strong{font-size:12px}
 .retail-card-prices b{font-size:13px}
 .retail-controls{padding:5px 10px 12px;gap:8px}
 .retail-controls input{width:100%;min-width:0;flex-basis:100%}
 .retail-controls select{max-width:none;min-width:0;flex:1 1 120px;font-size:12px}
 .retail-filterchips{padding:0 10px 10px}
 .retail-summary{gap:7px;margin-bottom:9px}
 .retail-summary .rent-kpi{min-height:65px}
 .retail-summary .rent-kpi>strong{font-size:14px}
 .retail-detail-kpis .rent-kpi>strong{font-size:12px}
 .retail-customer-dialog{padding:15px}
 .retail-customer-dialog .modal-bottom{flex-wrap:wrap}
}
@media(max-width:380px){.retail-card-media{height:115px}.retail-card-prices span{font-size:10px}}
