/* Price catalog — label-library toolbar/tabs plus product-detail rhythm. */
#price-permissions-panel form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; padding:18px; border:1px solid #dfe6ef; border-radius:8px; font-size:13px; }
#price-permissions-panel form h3,#price-permissions-panel form [role=status] { grid-column:1/-1; margin:0; }
#price-permissions-panel form label { display:grid; gap:6px; min-width:0; }
#price-permissions-panel form select { width:100%; }
#price-permissions-panel form select:disabled { color:#718096; background:#f7f9fc; }
@media(max-width:650px){#price-permissions-panel form{grid-template-columns:1fr;}}
.price-tabs-bar { display:flex; align-items:center; gap:20px; border-bottom:1px solid #dfe6ef; margin:12px 0; }
.price-tabs-bar .price-catalog-tabs { flex:1; border-bottom:0; margin:0; }
.price-tab-actions { display:flex; gap:10px; padding:0 12px 8px 0; }
.price-tab-actions .btn { font-size:13px; min-height:36px; white-space:nowrap; }
.price-selectable-row { cursor:pointer; }
.price-selectable-row:hover,.price-selectable-row.selected { background:#eef4ff; }
.price-selectable-row:focus-visible { outline:2px solid #1765e8; outline-offset:-2px; }
#modal.price-modal .modal-card { width:min(620px,calc(100vw - 32px)) !important; max-width:620px !important; max-height:85vh; }
.price-catalog-toolbar .price-refresh { min-width:132px; }
.price-material-control,.price-fields,.price-form-actions,#price-error { grid-column:1/-1; min-width:0; }
.price-material-control>label { display:block; margin-bottom:8px; }
.price-material-trigger { position:relative; }
.price-material-trigger input { padding-right:46px; }
#price-material-add { position:absolute; top:50%; right:6px; transform:translateY(-50%); width:28px; min-width:28px; height:28px; min-height:28px; padding:0; border:0; background:transparent; color:#40506a; font-size:22px; line-height:28px; cursor:pointer; }
#price-material-add[hidden],#price-material-results[hidden] { display:none; }
#price-material-results { position:fixed; inset:0; margin:auto; width:min(1050px,calc(100vw - 40px)); max-height:85vh; padding:20px; border:1px solid #dfe6ef; border-radius:12px; color:#40506a; background:white; font-size:13px; box-sizing:border-box; }
#price-material-results::backdrop { background:rgba(20,30,50,.35); }
#price-material-results header,#price-material-results footer,.price-picker-toolbar { display:flex; gap:12px; align-items:center; margin-bottom:16px; }
#price-material-results header { justify-content:space-between; }
#price-material-results footer { margin:16px 0 0; flex-wrap:wrap; }
#price-material-results footer span { flex:1; }
.price-picker-toolbar.line-product-picker-search { display:grid; grid-template-columns:minmax(0,1fr) 100px; }
.price-picker-toolbar input { min-width:0; width:100%; }
.price-picker-filter { display:flex; gap:16px; align-items:center; margin-bottom:14px; }
.price-picker-filter select { width:170px; flex:0 0 170px; height:40px; font:inherit; }
.price-picker-filter span { font-size:12px; color:#65758d; }
#price-material-options { max-height:45vh; overflow:auto; }
#price-material-options table { min-width:980px; width:100%; font-size:13px; table-layout:fixed; }
#price-material-options th,#price-material-options td { padding:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#price-material-options :is(th,td):nth-child(1) { width:44px; }
#price-material-options :is(th,td):nth-child(2) { width:90px; }
#price-material-options :is(th,td):nth-child(3) { width:240px; text-align:center!important; white-space:normal; overflow-wrap:anywhere; }
#price-material-options :is(th,td):nth-child(7) { width:100px; }
#price-material-options :is(th,td):nth-child(8) { width:50px; }
#price-material-options tr.selected { background:#eef5ff; }
#price-material-options input.price-material-option { width:18px; min-width:18px; height:18px; margin:0; padding:0; accent-color:#2460ed; }
#price-material-options tr { cursor:pointer; }
.price-material-option { width:100%; padding:10px; border:0; border-bottom:1px solid #edf1f6; background:white; color:#40506a; text-align:left; font:inherit; cursor:pointer; }
.price-material-option:hover { background:#eef4ff; }
.price-material-summary { margin-top:8px; font-size:12px; color:#718096; line-height:1.6; }
.price-fields { display:grid; grid-template-columns:1fr 1fr; gap:14px 16px; padding:0; margin:0; border:0; }
.price-fields label { display:grid; gap:6px; min-width:0; }
.price-fields input[readonly] { background:#f7f9fc; color:#65758d; }
.price-fields .price-wide { grid-column:1/-1; }
.price-form-actions { display:flex; justify-content:flex-end; gap:10px; }
.price-net-caption { display:block; color:#718096; font-size:11px; margin-top:4px; white-space:nowrap; }
@media(max-width:600px) { .price-fields { grid-template-columns:1fr; } }
.price-modal .price-edit-form { margin:0; border:0; box-shadow:none; padding:20px; font-size:13px; }
.price-modal .price-edit-form h3 { font-size:14px; margin:0; }
.price-modal .price-edit-form input { min-width:0; width:100%; height:40px; font-size:13px; }
.price-picker,.price-import-preview { padding:20px; font-size:13px; }
.price-picker label { display:grid; gap:8px; }
.price-picker select { width:100%; margin:12px 0; height:220px; }
.price-import-table { max-height:320px; overflow:auto; margin:12px 0; }
.price-import-table table { width:100%; font-size:13px; }
@media(max-width:720px) { .price-tabs-bar { flex-wrap:wrap; gap:4px; } .price-tab-actions { padding-left:18px; } }
@media(max-width:600px) { .price-modal .price-edit-form { grid-template-columns:1fr; } .price-tab-actions { flex-wrap:wrap; } }
.price-catalog-workspace,.price-catalog-shell { min-width:0; }
.price-catalog-toolbar { display:grid; grid-template-columns:minmax(280px,1fr) minmax(170px,220px) minmax(160px,210px) auto; gap:12px; min-height:76px; align-items:center; padding:14px 16px; border:1px solid var(--oms-line,#dfe6ef); border-radius:12px; background:#fff; box-shadow:var(--oms-shadow,0 4px 16px rgba(42,62,94,.06)); }
.price-catalog-toolbar :is(input,select,.btn) { box-sizing:border-box; height:44px; min-height:44px; margin:0; }
.price-search-field { position:relative; display:flex; min-width:0; height:44px; margin:0; align-items:center; }
.price-search-field svg { position:absolute; z-index:1; left:13px; width:16px; height:16px; fill:none; stroke:#718096; stroke-width:2; }
.price-search-field input { width:100%; padding-left:40px; }
.price-refresh { min-width:88px; }
.price-catalog-tabs { display:flex; gap:24px; min-height:44px; margin:12px 0; padding:0 18px; border-bottom:1px solid #dfe6ef; background:#fff; }
.price-catalog-tabs button { position:relative; min-width:88px; padding:0; border:0; background:transparent; color:#65758d; font-size:13px; font-weight:600; cursor:pointer; }
.price-catalog-tabs button.active { color:#1765e8; }
.price-catalog-tabs button.active::after { position:absolute; right:0; bottom:-1px; left:0; height:2px; border-radius:2px 2px 0 0; background:#1765e8; content:""; }
.price-catalog-tabs button:focus-visible { outline:2px solid #1765e8; outline-offset:-2px; }
.price-catalog-body { display:grid; grid-template-columns:minmax(0,1fr); min-height:420px; height:calc(100dvh - 260px); overflow:hidden; border:1px solid var(--oms-line,#dfe6ef); border-radius:var(--oms-radius,12px); background:#fff; box-shadow:var(--oms-shadow,0 4px 16px rgba(42,62,94,.06)); }
.price-catalog-body.details-open { grid-template-columns:minmax(0,1fr) clamp(350px,29vw,390px); }
.price-catalog-list-panel { display:flex; min-width:0; min-height:0; flex-direction:column; overflow:hidden; }
.price-catalog-table { min-width:0; min-height:0; flex:1 1 auto; overflow:auto; }
.price-catalog-table th { white-space:nowrap; }
.price-catalog-table td { vertical-align:middle; }
.price-catalog-table td:nth-child(4),.price-catalog-table th:nth-child(4) { min-width:200px; text-align:center; }
.price-catalog-table th:last-child,.price-catalog-table td:last-child { width:56px; min-width:56px; text-align:center; }
.price-catalog-table :is(th,td):nth-child(2) { min-width:100px; }
.price-catalog-table :is(th,td):nth-child(3) { min-width:180px; }
.price-catalog-table :is(th,td):nth-child(4) { min-width:220px; }
.price-catalog-table :is(th,td):nth-child(5) { min-width:110px; }
.price-catalog-table :is(th,td):nth-child(6) { min-width:130px; }
.price-catalog-table :is(th,td):nth-child(8),.price-catalog-table :is(th,td):nth-child(9) { min-width:125px; }
.price-more { width:28px; min-width:28px; height:28px; min-height:28px; padding:0; border:0; background:transparent; color:#5f6f86; }
/* Allocate compact columns explicitly; description receives the remaining width. */
.price-catalog-table table.data-table { table-layout:fixed; }
.price-catalog-table table.data-table :is(th,td) { box-sizing:border-box; padding:12px; overflow:hidden; text-overflow:ellipsis; }
.price-catalog-table table.data-table :is(th,td):nth-child(1) { width:60px; min-width:60px; }
.price-catalog-table table.data-table :is(th,td):nth-child(2) { width:100px; min-width:100px; }
.price-catalog-table table.data-table :is(th,td):nth-child(3) { width:175px; min-width:175px; }
.price-catalog-table table.data-table :is(th,td):nth-child(4) { min-width:220px; text-align:center!important; overflow-wrap:anywhere; }
.price-catalog-table table.data-table :is(th,td):nth-child(5),.price-catalog-table table.data-table :is(th,td):nth-child(6) { width:115px; min-width:115px; }
.price-catalog-table table.data-table :is(th,td):nth-child(7) { width:60px; min-width:60px; text-align:center!important; }
.price-catalog-table table.data-table :is(th,td):nth-child(8),.price-catalog-table table.data-table :is(th,td):nth-child(9) { width:155px; min-width:155px; text-align:right!important; }
.price-catalog-table table.data-table :is(th,td):nth-child(10) { width:120px; min-width:120px; }
.price-catalog-table table.data-table :is(th,td):nth-child(11) { width:150px; }
.price-catalog-table table.data-table td:nth-child(4) { line-height:1.5; }
.price-catalog-table table.data-table :is(th,td):last-child { width:80px; min-width:80px; text-align:center!important; overflow:visible; }
.price-more svg { width:16px; height:16px; }
.price-more:hover { background:#eef4ff; color:#1765e8; }
.price-more:focus-visible { outline:2px solid #1765e8; outline-offset:2px; }
.price-row-menu { position:fixed; z-index:1000; width:160px; padding:6px; border:1px solid var(--oms-line,#dfe6ef); border-radius:8px; background:white; box-shadow:0 8px 24px rgba(15,23,42,.12); }
.price-row-menu button { display:block; width:100%; min-height:40px; padding:8px 12px; border:0; background:transparent; color:#40506a; text-align:left; font:inherit; font-size:13px; cursor:pointer; }
.price-row-menu button:hover,.price-row-menu button:focus-visible { background:#eef4ff; color:#1765e8; outline:0; }
.price-pagination { display:flex; min-height:58px; flex:0 0 auto; align-items:center; justify-content:space-between; gap:16px; padding:10px 16px; border-top:1px solid var(--oms-line,#dfe6ef); color:#748198; font-size:12px; }
.price-pagination>div { display:flex; gap:8px; }
.price-pagination b { color:#40506a; }
.price-empty { min-height:260px; display:grid; place-items:center; color:#7d8ba0; font-size:13px; }
.price-detail { display:flex; min-width:0; min-height:0; flex-direction:column; overflow:hidden; border-left:1px solid var(--oms-line,#dfe6ef); background:#fff; }
.price-detail[hidden] { display:none; }
.price-detail .product-details-head { min-height:70px; display:flex; flex:0 0 auto; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 16px; border-bottom:1px solid var(--oms-line,#dfe6ef); background:#fff; }
.price-detail .product-details-head strong,.price-detail .product-details-head span { display:block; }
.price-detail .product-details-head strong { color:var(--oms-ink,#1f2f49); font-size:14px; line-height:1.45; }
.price-detail .product-details-head span { max-width:280px; margin-top:4px; overflow:hidden; color:#7c889b; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.price-detail .product-details-head button { width:40px; min-width:40px; height:40px; min-height:40px; display:inline-flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:8px; background:transparent; color:#6f7d92; font-size:20px; line-height:1; cursor:pointer; }
.price-detail .product-details-head button:hover { background:var(--oms-blue-soft,#eef4ff); color:var(--oms-blue,#1765e8); }
.price-detail-scroll { min-height:0; flex:1 1 auto; overflow:auto; }
.price-detail .product-details-section { padding:16px; border-bottom:1px solid var(--oms-line,#dfe6ef); }
.price-detail .product-details-section h3 { margin:0 0 12px; color:var(--oms-ink,#1f2f49); font-size:13px; }
.price-detail :is(.product-details-section,.product-details-accordion) dl { display:grid; gap:9px; margin:0; }
.price-detail :is(.product-details-section,.product-details-accordion) dl>div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.35fr); gap:10px; align-items:start; }
.price-detail dt { color:#7b889c; font-size:12px; }
.price-detail dd { margin:0; color:#40506a; font-size:12px; font-weight:600; text-align:right; overflow-wrap:anywhere; }
.price-detail dd.price-value,.price-detail dd.price-change { color:#1765e8; }
.price-detail .product-details-accordion { border-bottom:1px solid var(--oms-line,#dfe6ef); background:#fff; }
.price-detail .product-details-accordion>summary { min-height:48px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; color:var(--oms-ink,#1f2f49); font-size:13px; font-weight:700; list-style:none; cursor:pointer; }
.price-detail .product-details-accordion>summary::-webkit-details-marker { display:none; }
.price-detail .product-details-accordion>summary svg { width:14px; height:14px; transition:transform .18s ease; }
.price-detail .product-details-accordion[open]>summary svg { transform:rotate(180deg); }
.price-detail-accordion-body { padding:0 16px 16px; }
.price-operation-card+.price-operation-card { margin-top:12px; padding-top:12px; border-top:1px solid #edf1f6; }
.price-detail-empty { margin:0; color:#7d8ba0; font-size:12px; line-height:1.6; }
.price-association-list { display:grid; gap:10px; }
.price-association-list p { display:grid; gap:3px; margin:0; }
.price-association-list b { color:#40506a; font-size:12px; }
.price-association-list span,.price-association-list small { color:#7b889c; font-size:12px; line-height:1.6; }
.price-edit-form { margin-top:12px; padding:20px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; border:1px solid var(--oms-line,#dfe6ef); border-radius:12px; background:#fff; box-shadow:var(--oms-shadow,0 4px 16px rgba(42,62,94,.06)); }
@media (max-width:1100px) {
  .price-catalog-toolbar { grid-template-columns:minmax(240px,1fr) minmax(150px,190px) minmax(150px,190px) auto; }
  .price-catalog-body,.price-catalog-body.details-open { grid-template-columns:minmax(0,1fr); }
  .price-detail { position:fixed; z-index:145; top:62px; right:0; bottom:0; width:min(380px,calc(100vw - 72px)); height:auto; border-left:1px solid var(--oms-line,#dfe6ef); box-shadow:-14px 0 32px rgba(42,62,94,.16); }
}
@media (max-width:720px) {
  .price-catalog-toolbar { grid-template-columns:1fr 1fr; }
  .price-search-field { grid-column:1/-1; }
  .price-catalog-body { height:auto; min-height:calc(100dvh - 245px); }
  .price-detail { left:56px; width:auto; max-width:none; }
  .price-pagination { align-items:flex-start; flex-direction:column; }
  .price-edit-form { grid-template-columns:1fr; }
}
