.ssum-dialog{width:min(1000px,96vw);max-width:96vw;height:min(900px,94vh);height:min(900px,94dvh);max-height:94vh;max-height:94dvh;margin:auto;padding:0 18px 18px;border:0;border-radius:15px;background:#f5f9f7;box-shadow:0 20px 65px #0c293866;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
.ssum-dialog::backdrop{background:#102b3ba6}
.ssum-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;position:sticky;top:0;background:#f5f9f7;z-index:3;padding:14px 0 10px;border-bottom:1px solid #d8e4df;margin-bottom:14px}
.ssum-dialog-heading h2{font-size:20px;line-height:1.35;margin:0}
.ssum-dialog-heading button{font:inherit;min-height:44px;padding:8px 13px;flex-shrink:0;border:1px solid #b6cbc1;border-radius:9px;background:#fff;color:#245446;font-weight:700;cursor:pointer}
.page-title-block:has(>.ssum-open){display:flex;gap:4px 10px;align-items:center;flex-wrap:wrap}
.page-title-block:has(>.ssum-open)>p{flex-basis:100%}
.ssum-open{font:inherit;font-size:12px;min-height:44px;padding:6px 10px;border:1px solid #9abcb1;border-radius:8px;background:#edf8f2;color:#126347;font-weight:700;white-space:nowrap;cursor:pointer}
.ssum-open[hidden]{display:none}
.ssum-root{color:#17313c;font-size:14px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.ssum-root *{box-sizing:border-box}
.ssum-root button,.ssum-root input{font:inherit}
.ssum-root button{min-height:44px;padding:8px 12px;border:1px solid #adc7c1;border-radius:9px;background:#fff;color:#174c42;font-weight:700;cursor:pointer;white-space:normal}
.ssum-root button:disabled{opacity:.55;cursor:wait}
.ssum-root button:focus-visible,.ssum-root input:focus-visible,.ssum-root summary:focus-visible{outline:3px solid #176bba;outline-offset:2px}
.ssum-toolbar{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:10px}
.ssum-toolbar label{display:grid;gap:4px;min-width:0;flex:1 1 170px;font-weight:700}
.ssum-toolbar input{display:block;width:100%;max-width:240px;min-width:0;min-height:44px;border:1px solid #bed0d8;border-radius:9px;padding:8px;background:#fff;color:#17313c;font-size:16px}
.ssum-date-actions{display:flex;gap:6px;flex:1 1 auto;justify-content:flex-end}
.ssum-date-actions [data-ssum-refresh]{background:#148569;color:#fff;border-color:#148569}
.ssum-period{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:14px 0 4px}
.ssum-period strong{font-size:18px}
.ssum-period span{font-size:12px;color:#906011}
.ssum-note{font-size:12px;color:#58717c;margin:5px 0}
.ssum-status{font-size:12px;color:#58717c;margin:8px 0}
.ssum-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}
.ssum-stat{display:grid;gap:3px;border:1px solid #dbe7e3;border-radius:10px;background:#edf7f3;padding:9px 7px;min-width:0}
.ssum-stat span{font-size:11px;line-height:1.35;color:#426256}
.ssum-stat strong{font-size:23px;color:#13684f;line-height:1.25}
.ssum-stat small{font-size:12px;margin-left:4px}
.ssum-stat[data-ssum-stat="check"]{background:#fff3ec;border-color:#f0d9cc}
.ssum-stat[data-ssum-stat="check"] strong{color:#a54223}
.ssum-display-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:14px 0}
.ssum-filter{display:flex;gap:5px}
.ssum-root .ssum-filter button{padding:7px 10px;font-size:12px}
.ssum-root .ssum-filter button[aria-pressed="true"]{background:#173b45;border-color:#173b45;color:#fff}
.ssum-zero{display:flex;align-items:center;gap:7px;font-size:12px;min-height:44px;cursor:pointer}
.ssum-zero input{width:21px;height:21px;flex-shrink:0;accent-color:#16896c}
.ssum-stores{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;align-items:start}
.ssum-store{min-width:0;border:1px solid #cdded8;border-radius:13px;background:#fff;overflow:hidden;padding:0 12px 10px}
.ssum-store-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 -12px;padding:12px;background:#e6f3ed}
.ssum-store-heading h3{font-size:16px;line-height:1.4;margin:0;min-width:0}
.ssum-badge{font-size:11px;white-space:nowrap;padding:3px 7px;border-radius:6px;background:#fff0e9;color:#9d3a21;border:1px solid #f0c8b5}
.ssum-store-warning{border-color:#dfb6a2}
.ssum-mail{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 8px;font-size:12px;margin:10px 0;color:#1b7355;font-weight:700}
.ssum-mail small{font-size:11px;font-weight:400}
.ssum-mail-missing,.ssum-mail-partial{color:#89540b}
.ssum-mail-reference{color:#596f7a}
.ssum-reference{font-size:12px;color:#596f7a;margin:5px 0 10px}
.ssum-product{border-top:1px solid #e0e8e6;padding:10px 0 4px;min-width:0}
.ssum-product-heading{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:5px}
.ssum-product-heading>strong:first-child{font-size:14px;min-width:0}
.ssum-quantity{font-size:17px;white-space:nowrap}
.ssum-tier{display:grid;grid-template-columns:minmax(0,1fr) minmax(64px,.8fr) minmax(105px,1.2fr);gap:6px;align-items:baseline;padding:4px 0;font-size:12px}
.ssum-tier>span:nth-child(2){text-align:right;font-weight:700}
.ssum-tier>span:last-child{text-align:right}
.ssum-calculation{margin:3px 0}
.ssum-root .ssum-calculation summary,.ssum-root .ssum-help summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:12px;color:#47616d}
.ssum-calculation p,.ssum-help p{font-size:12px;margin:6px 0;color:#526b77}
.ssum-warning{padding:10px;border-left:3px solid #bf4a2f;background:#fff1ed;color:#9f361f;font-size:12px;border-radius:0 6px 6px 0;margin:8px 0}
.ssum-warning p{margin:5px 0}
.ssum-danger{color:#a33325}
.ssum-empty{font-size:13px;color:#58717c;padding:10px 0;margin:0}
.ssum-help{margin-top:16px;border-top:1px solid #d4e2de}
.ssum-root .ssum-comparison{table-layout:fixed;width:100%;min-width:0;border-collapse:separate;border-spacing:0;margin:0;border:1px solid #cbddd5;border-radius:10px;overflow:hidden;background:white}
.ssum-comparison .ssum-product-column{width:24%}
.ssum-root .ssum-comparison th,.ssum-root .ssum-comparison td{min-width:0;padding:10px 4px;vertical-align:middle;border:0;border-bottom:1px solid #e2ebe7;border-right:1px solid #e2ebe7;text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.ssum-root .ssum-comparison th:last-child,.ssum-root .ssum-comparison td:last-child{border-right:0}
.ssum-root .ssum-comparison tbody tr:last-child>*{border-bottom:0}
.ssum-root .ssum-comparison thead th{background:#e2f1e9;color:#1e5140;font-size:12px}
.ssum-comparison thead th span{display:block}
.ssum-comparison thead th small{display:block;font-size:10px;font-weight:400;margin-top:5px}
.ssum-root .ssum-comparison tbody th{font-size:13px;text-align:left;background:#f7faf8;padding-left:8px}
.ssum-comparison td strong{font-size:17px;display:block;font-weight:750;letter-spacing:-.02em}
.ssum-comparison td small{display:block;font-size:10px;color:#58717c;margin-top:1px}
.ssum-root .ssum-comparison .ssum-cell-invalid{background:#fff0ea;color:#9e3a24}
.ssum-comparison .ssum-cell-invalid strong{font-size:12px}
.ssum-no-record{color:#83958d}
.ssum-detail-heading{font-size:15px;margin:18px 0 8px}
.ssum-product-details-list{display:grid;gap:8px}
.ssum-product-details{border:1px solid #d1e0d8;border-radius:10px;background:white;padding:0 12px}
.ssum-product-details>summary{min-height:44px;cursor:pointer;padding:12px 0;font-size:14px;font-weight:700}
.ssum-detail-store{margin-bottom:12px;border-top:1px solid #e0e8e4;padding-top:10px}
.ssum-detail-store h4{margin:0;font-size:13px}
.ssum-detail-store .ssum-product{border:0;padding-top:4px}
@media(max-width:480px){
 .ssum-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);padding:0 10px 12px;height:94vh;height:94dvh;border-radius:12px}
 .ssum-dialog-heading{padding:10px 0 8px;margin-bottom:10px}
 .ssum-dialog-heading h2{font-size:17px}
 .ssum-root{font-size:13px}
 .ssum-toolbar{gap:8px}
 .ssum-toolbar label{flex-basis:140px;font-size:12px}
 .ssum-date-actions{flex:0 0 auto;gap:4px}
 .ssum-root .ssum-date-actions button{padding:8px 9px;font-size:12px}
 .ssum-stats{gap:5px}
 .ssum-stat{padding:8px 5px}
 .ssum-stat span{font-size:10px}
 .ssum-stat strong{font-size:21px}
 .ssum-stores{grid-template-columns:minmax(0,1fr)}
 .ssum-tier{grid-template-columns:minmax(0,1fr) minmax(60px,.75fr) minmax(100px,1.2fr);gap:4px}
 .ssum-root .ssum-comparison th,.ssum-root .ssum-comparison td{padding:9px 2px}
 .ssum-root .ssum-comparison thead th{font-size:10px}
 .ssum-root .ssum-comparison tbody th{font-size:11px;padding-left:5px}
 .ssum-comparison td strong{font-size:13px}
 .ssum-comparison .ssum-cell-invalid strong{font-size:10px}
 .ssum-comparison thead th small{font-size:9px}
}
