/* Admin V2.37: 客戶價格（價格表）與 商品分類 → 品牌。沿用後台白／灰底與 #2d6a9f 主按鈕。 */
#pricingPage{max-width:1240px}
.pl-note{margin:0 0 12px;color:#4c5a66;font-size:.86rem;line-height:1.6}
.pl-top{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}
.pl-field{display:flex;flex-direction:column;gap:4px;font-size:.78rem;color:#4c5a66;font-weight:700}
.pl-field select,.pl-field input{min-width:200px}
.pl-new{display:flex;gap:8px;flex-wrap:wrap}.pl-new input{min-width:240px}
.pl-warn{margin:0 0 12px;padding:10px 12px;border-radius:8px;background:#fff6e5;color:#7a5200;font-size:.84rem;line-height:1.5}
.pl-settings{margin:0 0 12px;border:1px solid #e4e9ef;border-radius:8px;background:#f7f9fb}
.pl-settings summary{cursor:pointer;padding:10px 12px;font-weight:800;color:#26384f;font-size:.86rem}
.pl-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;padding:0 12px 10px}
.pl-settings-grid label{display:flex;flex-direction:column;gap:4px;font-size:.78rem;color:#4c5a66;font-weight:700}
.pl-row-actions{display:flex;gap:8px;flex-wrap:wrap;padding:0 12px 12px}
.pl-danger{color:#b3261e;border-color:#b3261e}
.pl-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}
.pl-toolbar input[type=search],.pl-toolbar input:not([type]){flex:1;min-width:200px}
.pl-check{display:flex;align-items:center;gap:6px;font-size:.84rem;color:#4c5a66}
.pl-dirty{position:sticky;top:96px;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0;padding:10px 12px;border-radius:8px;background:#eef5fb;color:#26384f;font-size:.86rem;border:1px solid #cfe0ee}
.pl-pager{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0;font-size:.84rem;color:#4c5a66}
.pl-pager-btns{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pl-table table{min-width:1260px}.pl-pick-table table{min-width:720px}
.pl-sub{font-size:.78rem;color:#667782;margin-top:3px;line-height:1.35}
.pl-tag{display:inline-block;margin-top:3px;padding:1px 7px;border-radius:99px;background:#eef1f4;color:#5b6b78;font-size:.72rem;font-weight:700}
.pl-noimg{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:6px;background:#f2f4f6;color:#8b98a3;font-size:.7rem}
.pl-price{width:92px;text-align:right;font-weight:800;margin:0}
.pl-need{border-color:#d9534f;background:#fff6f6}
tr.pl-changed td{background:#f5f9fd}
tr.pl-missing td{background:#fff6f6;color:#9a2a22}
.pl-dialog{width:min(1100px,96vw);max-height:92vh;border:0;border-radius:10px;padding:16px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.pl-dialog::backdrop{background:rgba(20,30,40,.45)}
.pl-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.pl-dialog-head h3{font-size:1rem;color:#26384f;margin:0}
.pl-hint{font-size:.8rem;color:#667782;margin:4px 0}
.pl-dialog-foot{position:sticky;bottom:-16px;background:white;display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;justify-content:space-between;padding:10px 0 0;border-top:1px solid #edf0f2}
.pl-dialog-foot .pl-field select,.pl-dialog-foot .pl-field input{min-width:120px}
.pl-foot-btns{display:flex;gap:8px;margin-left:auto}
/* 品牌 */
.bb-panel{margin:0 0 12px;border:1px solid #e4e9ef;border-radius:8px;background:#f7f9fb}
.bb-panel summary{cursor:pointer;padding:10px 12px;font-weight:800;color:#26384f;font-size:.86rem}
.bb-add{display:flex;gap:8px;flex-wrap:wrap;padding:0 12px}.bb-add input{min-width:220px}
.bb-table{min-width:640px!important}
.bb-logo{height:34px;max-width:110px;object-fit:contain;display:block;margin:0 auto}
.bb-nologo{color:#8b98a3;font-size:.76rem}
.bb-name{width:180px}.bb-sort{width:80px;text-align:right}
.bb-ops{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}.bb-ops label{cursor:pointer}
.bb-hint{font-size:.78rem;color:#667782;padding:0 12px 10px;margin:0}
.bb-bulk{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0;padding:8px 10px;border-radius:8px;background:#eef5fb;font-size:.84rem;color:#26384f}
@media(max-width:720px){.pl-field select,.pl-field input,.pl-new input{min-width:0;width:100%}.pl-top,.pl-new{flex-direction:column;align-items:stretch}.pl-dirty{top:0}.pl-foot-btns{width:100%}.pl-foot-btns .btn{flex:1}}
/* .admin-card input/select default to full width; inside these toolbars they size to content */
#pricingPage .pl-toolbar input,#pricingPage .pl-toolbar select,#pricingPage .pl-top input,#pricingPage .pl-top select,#pricingPage .pl-dialog input,#pricingPage .pl-dialog select,#pricingPage .pl-settings input,#pricingPage .pl-settings select,#categoriesPage .bb-panel input,#categoriesPage .bb-bulk select,#categoriesPage #brandFilterAdmin{width:auto;margin-bottom:0}
#pricingPage .pl-toolbar #plSearch,#pricingPage .pl-dialog #pkSearch{flex:1;min-width:220px}
#pricingPage .pl-settings-grid input,#pricingPage .pl-settings-grid select{width:100%}
#pricingPage input[type=checkbox],#categoriesPage input[type=checkbox]{width:auto;margin:0}
#pricingPage .pl-price{width:92px;padding:6px 8px}#pricingPage .pl-min{width:72px}
#categoriesPage .bb-name{width:180px}#categoriesPage .bb-sort{width:80px}
#categoriesPage td select[data-bbset]{min-width:130px;margin-bottom:0}
@media(max-width:720px){#pricingPage .pl-top input,#pricingPage .pl-top select{width:100%}}
.pl-dialog{margin:auto}
.pl-field[hidden],.bb-bulk[hidden]{display:none}
#categoriesPage .bb-panel .bb-name{width:180px}#categoriesPage .bb-panel .bb-sort{width:80px}
/* Admin V2.43: 批次改價列 */
#pricingPage .pl-bulk{font-size:.84rem;color:#4c5a66;padding:8px 10px;border:1px solid #e4e9ef;border-radius:8px;background:#f7f9fb}
#pricingPage .pl-new #plCopyFrom{width:auto;min-width:170px;margin-bottom:0}
#pricingPage .pl-bulk #plPct{flex:0 0 80px;width:80px;min-width:0;text-align:right}
.pl-quote-opts{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;font-size:.84rem;color:#4c5a66;padding:4px 10px;border:1px solid #dfe5eb;border-radius:8px;background:#f7f9fb}
