/* Scoped to the product dialogs: no PMS or independent-app layout changes. */
.pms-price-list-shell { width:min(1120px,calc(100vw - 24px)); height:min(900px,calc(100dvh - 32px)); max-height:none; }
.pms-price-picker-shell { height:min(760px,calc(100dvh - 32px)); max-height:none; }
.pms-price-list-shell .icon-button,.pms-price-picker-shell .icon-button { min-height:44px; min-width:44px; }
.pms-price-list-shell .pms-price-list-dialog,.pms-price-picker-shell .pms-price-picker-dialog { display:flex; flex-direction:column; gap:10px; padding:20px; height:100%; max-height:none; overflow:hidden; }
.pms-price-list-shell .dialog-heading h2,.pms-price-picker-shell .dialog-heading h2 { margin:2px 0; font-size:22px; }
.pms-price-list-shell .dialog-heading .eyebrow { margin:0; }
.pms-price-list-shell #pms-price-list-message:empty { display:none; }
.pms-price-list-shell .pms-price-list-layout { grid-template-columns:minmax(0,1fr); min-height:0; flex:1; align-items:stretch; }
.pms-price-list-shell[data-product-editing] .pms-price-list-layout { grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); align-items:stretch; }
.pms-price-list-shell #pms-price-list-items { order:-1; }
.pms-price-list-shell #pms-price-list-form[hidden] { display:none; }
.pms-price-list-shell .security-note { margin:4px 0 10px; line-height:1.5; }
.pms-price-list-shell #pms-price-list-form { position:sticky; top:0; min-width:0; max-height:100%; overflow:auto; }
.pms-price-list-shell #pms-price-list-form .pms-form-row { grid-template-columns:minmax(0,1fr) minmax(90px,.7fr); }
.pms-price-list-shell #pms-price-list-form input,.pms-price-list-shell #pms-price-list-form select { min-width:0; width:100%; }
.pms-price-list-shell #pms-price-list-form input[type=checkbox] { width:18px; }
.pms-price-list-shell #pms-price-list-form .dialog-actions { flex-wrap:wrap; }
.pms-price-list-shell #pms-standard-review { padding:10px; background:#fff6e9; border-radius:8px; font-size:12px; line-height:1.65; }
.pms-price-list-shell #pms-standard-review[hidden] { display:none; }
.pms-price-list-shell #pms-standard-review label { display:flex; align-items:start; gap:8px; }
.os-products { display:flex!important; flex-direction:column; gap:0; max-height:none!important; min-height:0; flex:1; overflow:hidden; }
.os-product-rows { min-height:0; overflow:auto; overscroll-behavior:contain; flex:1; }
.os-products > :not(.os-product-rows) { flex-shrink:0; }
.os-product-tabs { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:9px; }
.os-product-tabs button,.os-product-pages button { min-height:44px; padding:8px 12px; border:1px solid #dce5e0; border-radius:8px; background:#fff; color:#25463e; font:inherit; font-size:13px; cursor:pointer; }
.os-product-tabs button[aria-pressed=true] { background:#153d34; color:white; border-color:#153d34; }
.os-product-tabs span { margin-left:4px; font-size:11px; opacity:.75; }
.os-product-tabs button[data-product-new] { margin-left:auto; }
.os-product-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(110px,.5fr); gap:8px; }
.os-product-filters input,.os-product-filters select { width:100%; min-width:0; min-height:44px; box-sizing:border-box; }
.os-product-hint { font-size:12px; line-height:1.6; color:#63756d; margin:9px 0; }
.os-product-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:12px; min-height:52px; padding:4px 0; border-bottom:1px solid #e9eeeb; }
.os-product-info { min-width:0; }
.os-product-info strong { display:block; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.os-product-info small,.os-product-price small { display:block; font-size:11px; margin-top:4px; color:#718077; }
.os-product-price { text-align:right; font-size:13px; }
.os-product-unset { padding:4px 7px; color:#8a642b; background:#fff4e3; border-radius:5px; font-size:11px; white-space:nowrap; }
.os-product-row button { min-height:44px; padding:8px 10px; font-size:12px; white-space:nowrap; }
.os-product-pages { display:flex; align-items:center; justify-content:end; gap:6px; margin-top:10px; }
.os-product-pages span { margin-right:auto; font-size:12px; color:#6a7b73; }
.os-product-pages button:disabled { opacity:.4; cursor:default; }
.os-product-sources { margin-top:6px; padding-top:0; border-top:1px solid #e8ece9; font-size:12px; line-height:1.7; max-height:150px; overflow:auto; }
.os-product-sources summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:#426258; }
.os-product-sources p { margin:5px 0; }
.os-product-sources a { color:#286b5b; overflow-wrap:anywhere; }
@media(max-width:760px) {
 .pms-price-list-shell[data-product-editing] .pms-price-list-dialog { overflow:auto; }
 .pms-price-list-shell[data-product-editing] .pms-price-list-layout { display:block; flex:none; }
 .pms-price-list-shell[data-product-editing] #pms-price-list-form { position:static; order:-2; }
 .pms-price-list-shell[data-product-editing] .os-products { height:60vh; margin-top:15px; }
 .pms-price-list-shell .pms-dialog,.pms-price-picker-shell .pms-dialog { padding:14px; }
 .os-product-row { gap:7px; }
 .os-product-row button { padding:7px; }
 .os-product-info strong { font-size:13px; }
 .os-product-info small { font-size:10px; }
}

.os-products-import{display:flex;align-items:center;gap:10px;margin:0 0 8px}.os-products-import button{min-height:36px;font-size:12px}.os-products-import small{font-size:11px;color:#61776a}.os-product-pages select{width:auto;min-height:36px;padding:4px 7px;font-size:12px}.os-product-row button:disabled{opacity:.65;cursor:default}.os-product-tabs{flex-wrap:wrap}.os-product-info small{overflow-wrap:anywhere}
@media(max-width:650px){.os-products-import{flex-wrap:wrap;gap:3px}.os-products-import button{min-height:44px}.os-product-pages{flex-wrap:wrap}.os-product-pages select{min-height:44px}.os-product-tabs button{font-size:12px;padding:6px 8px}}

/* Short windows need one scrolling document so fixed controls cannot collapse the rows. */
@media(max-height:700px) {
 .pms-price-list-shell .pms-price-list-dialog,.pms-price-picker-shell .pms-price-picker-dialog { overflow:auto; }
 .pms-price-list-shell .pms-price-list-layout,.pms-price-list-shell[data-product-editing] .pms-price-list-layout { display:block; flex:none; }
 .pms-price-list-shell #pms-price-list-form { position:static; max-height:none; overflow:visible; margin-bottom:16px; }
 .pms-price-list-shell .os-products,.pms-price-list-shell[data-product-editing] .os-products,.pms-price-picker-shell .os-products { display:block!important; flex:none; height:auto; overflow:visible; }
 .pms-price-list-shell .os-product-rows,.pms-price-picker-shell .os-product-rows { overflow:visible; }
}
