/* Shared application layout; Ant Design components are themed through tokens. */
:root{--ops-page-title:22px;--ops-section-title:18px;--ops-text:14px;--ops-note:12px;--ops-accent:#17618a;--ops-ink:#243246;--ops-width:1440px;--ops-gutter:32px}
html[data-ops-ui=antd] body{background:#eef3f7;color:#243246;font:14px/1.5 system-ui,-apple-system,"Microsoft YaHei",sans-serif}
[data-ops-source]{display:none!important}
[hidden]{display:none!important}
.ops-control-host{display:inline-block;width:100%;min-width:0;vertical-align:middle}
.ops-toggle-host,.ops-action-host{display:inline-block;vertical-align:middle}
.ops-action-host{margin:0 3px 0 0}.ops-toggle-host{line-height:1}
.ops-control-host + [data-ops-source]{margin:0}
.ops-state-filter{display:block;padding:0;border:0;background:transparent;margin:12px 0 16px;width:fit-content;max-width:100%;overflow-x:auto}
.ops-main-menu{grid-column:2;min-width:0}
.ops-submenu,.catalog-third-nav{display:flex;align-items:center;justify-content:center;text-align:center}
.ops-submenu[data-ops-mount],.catalog-third-nav[data-ops-mount]{display:block}
.ops-data-table{max-width:100%;min-width:0;overflow-x:auto;background:#fff;border:1px solid #cbd8e3;border-radius:6px}
.ops-table-contract table{width:100%;border-collapse:collapse;font-size:14px}
.ops-table-contract th{background:#e6eef4;color:#243246;font-weight:600;padding:10px;position:static}
.ops-table-contract td{padding:10px;border-bottom:1px solid #e2e8ee;vertical-align:middle}
.ops-table-contract tr:last-child>td{border-bottom:0}
.ops-table-contract tbody tr:hover>td{background:#f5f9fc}
.ops-table-contract .number,.ops-table-contract [data-number],.ops-table-contract .price{text-align:right;font-variant-numeric:tabular-nums}
.ops-dialog-contract dialog{display:block;position:static;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:inherit;box-shadow:none}
html[data-ops-ui=antd] main{width:100%;max-width:1440px;margin:24px auto;padding:0 32px}
html[data-ops-ui=antd] main h1,html[data-ops-ui=antd] #content h1,html[data-ops-ui=antd] .ops-page-title{font-size:22px;line-height:1.4;color:#243246;font-weight:650;margin:0 0 8px}
html[data-ops-ui=antd] main h2,html[data-ops-ui=antd] #content h2,html[data-ops-ui=antd] .ops-section-title{font-size:18px;line-height:1.4;color:#243246;font-weight:600}
html[data-ops-ui=antd] .card{padding:16px;background:#fff;border:1px solid #cbd8e3;border-radius:6px}
html[data-ops-ui=antd] .catalog-table,html[data-ops-ui=antd] .catalog-list-card{padding:0}
.ops-form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}
.ops-form-actions .hint{margin:0}
html[data-ops-ui=antd] .hint,html[data-ops-ui=antd] .helptext{font-size:12px;color:#586577}
.ops-pagination[data-ops-pagination]{display:block;padding:12px 0;margin:0}
.ops-table-contract input[type=hidden]{display:none}
.ops-user-center-admin .ops-control-host{max-width:680px}
.ops-admin-main,.ops-content-wrap,#content,.ops-shell{min-width:0;max-width:100%;box-sizing:border-box}
.ops-user-center-admin{padding-right:24px;padding-left:24px}
label .ops-toggle-host{margin-right:6px}
.package-upload:has(.ops-control-host){display:block;padding:0;border:0;background:transparent;margin:0}
.package-upload:has(.ops-control-host)>#package-image-label{display:none}
.package-basics{gap:16px}

.ops-nav-link{display:block;color:inherit;text-decoration:none}
.ops-nav-link:hover{color:inherit}
.ops-data-table,.ops-data-table .ant-table-content{overflow-y:hidden}
.catalog-table:has(>.ops-data-table),.catalog-scroll:has(>.ops-data-table){overflow:visible}
.workbench-list-filter>.ops-control-host{flex:0 0 180px;width:180px;max-width:180px}
.workbench-list-filter>.ops-control-host:has(.ant-select){flex-basis:144px;width:144px;max-width:144px}

.ops-submenu .ops-nav-link,.catalog-third-nav .ops-nav-link,.ops-section-nav .ops-nav-link,.ops-state-filter .ops-nav-link{padding:0;margin:0;border:0;background:transparent;color:inherit}
html[data-ops-ui=antd] .compact-template{max-width:none;width:100%}
html[data-ops-ui=antd] .compact-template .ops-table-contract :is(th,td){vertical-align:middle}
html[data-ops-ui=antd] .template-dense #group-cards th:nth-child(4){width:190px}
html[data-ops-ui=antd] .template-dense #group-cards td:nth-child(4){white-space:nowrap}
html[data-ops-ui=antd] .template-dense .field-order-actions{display:inline-flex;gap:4px;margin-left:8px}
html[data-ops-ui=antd] .template-dense .field-order-actions .ops-action-host{margin:0}
.franchise-workspace .ops-state-filter{width:100%;margin:8px 0 16px;overflow:visible}
.franchise-workspace .pricing-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.franchise-workspace .pricing-filters>label{width:220px;margin:0}
.franchise-workspace .pricing-filters>label:has(select){width:160px}

.ops-data-table[data-read-only],.ops-data-table[data-read-only] .ant-table-content{overflow:visible;max-height:none;height:auto}
.ops-data-table[data-read-only] .ops-table-contract>table{width:100%}
.ops-data-table[data-read-only] :is(th,td){overflow-wrap:anywhere;white-space:normal}
.ops-data-table[data-read-only] td :is(small,.hint){white-space:normal;overflow-wrap:anywhere}
.inquiry-workspace .ops-table-contract table .inquiry-col-abc{width:300px;min-width:300px}
.inquiry-workspace .ops-table-contract table .inquiry-col-supplier{width:130px;max-width:150px}
.inquiry-workspace .ops-table-contract table .inquiry-col-code{width:85px}
.inquiry-workspace .ops-table-contract table .inquiry-col-name{width:220px;max-width:220px}
.inquiry-workspace .ops-table-contract table :is(.inquiry-col-price,.inquiry-col-online_price){width:100px;white-space:nowrap}
.inquiry-workspace .ops-table-contract table .inquiry-col-check{width:190px;min-width:190px}
.inquiry-workspace .ops-table-contract table .inquiry-col-actions{width:85px}
.inquiry-workspace .ops-table-contract table .selection-column{width:52px;white-space:nowrap}
.inquiry-workspace .ops-table-contract :is(th,td){padding:6px 8px}
.inquiry-workspace .ops-table-contract td{vertical-align:middle}
.inquiry-workspace .inquiry-check-main{display:flex;align-items:center;gap:6px;white-space:nowrap}
.inquiry-workspace .inquiry-check-action{display:inline-flex;margin:0;gap:4px}
.inquiry-workspace .inquiry-check-action button{min-height:26px;padding:2px 6px}
.inquiry-workspace .inquiry-check-meta{margin-top:2px;white-space:normal}
.inquiry-unit-grid{display:grid;grid-template-columns:repeat(3,minmax(85px,1fr));gap:6px;font-size:13px}
.inquiry-unit-grid>div{min-width:0;overflow-wrap:anywhere}
.inquiry-unit-grid small{display:block;margin-top:4px;font-size:12px;color:#586577}
.ops-admin-main #changelist{margin-inline:0}
.ops-admin-main:has(>.ops-pagination)>.ops-content-wrap{flex:none}
.test-search>.ops-control-host{width:280px;flex:0 0 280px}
.test-search>.ops-control-host:has(.ant-select){width:220px;flex-basis:220px}
.package-list-filters{align-items:flex-end;background:transparent}
.package-list-filters>.ops-action-host,.package-list-filters>a{align-self:flex-end;margin:0 0 2px}
.semi-page .catalog-table .ops-table-contract :is(th,td):first-child{width:40px;min-width:40px}

/* Identical navigation geometry before and after component hydration. */
.ops-submenu{height:44px;min-height:44px}
.catalog-third-nav{height:36px;min-height:36px;box-sizing:border-box}
.ops-submenu,.catalog-third-nav{overflow-y:hidden}
.ops-submenu>a,.ops-submenu .ops-nav-link{height:44px;min-height:0;padding:0 16px;display:inline-flex;align-items:center;box-sizing:border-box}
.catalog-third-nav>a,.catalog-third-nav .ops-nav-link{height:35px;min-height:0;padding:0 16px;display:inline-flex;align-items:center;box-sizing:border-box}
.ops-submenu .ant-tabs-nav,.catalog-third-nav .ant-tabs-nav{margin:0!important}
.ops-submenu .ant-tabs-tab,.catalog-third-nav .ant-tabs-tab{padding:0!important;margin:0!important}
.ops-submenu .ant-tabs-content-holder,.catalog-third-nav .ant-tabs-content-holder{display:none}
.ops-submenu .ant-tabs-nav::before,.catalog-third-nav .ant-tabs-nav::before{border:0}
.ops-main-menu .ant-menu{line-height:52px}
@media(min-width:1100px){.ops-main-menu{grid-column:2;grid-row:1}}
/* Reserve the real width of both actions, including their component hosts. */
.bom-column-head,.bom-editor .bom-compact{grid-template-columns:minmax(180px,1.6fr) minmax(80px,.8fr) minmax(132px,1fr) minmax(100px,.9fr) minmax(80px,.8fr) minmax(90px,.8fr) 176px}
.bom-editor .bom-row-actions .ops-action-host{margin:0;flex:none}
.bom-editor .bom-row-actions .ant-btn{padding-inline:8px}
.bom-editor .ops-pagination label{white-space:nowrap}
.bom-editor .ops-pagination label .ops-control-host{width:auto;flex:none}
.category-heading h2{white-space:nowrap;font-size:16px!important}
.category-heading .ant-btn{padding-inline:8px}
.unit-settings .catalog-heading{margin:8px 0 10px;align-items:center}
.unit-settings .catalog-heading p{margin:2px 0}
.unit-settings>p.hint{margin:0 0 10px}
.unit-settings .unit-section{margin:0 0 12px}
.unit-settings .unit-section h2{margin:0 0 10px}
.unit-settings .unit-section :is(th,td){padding:7px 8px;vertical-align:middle}
.ops-basic-settings{max-width:620px}
.ops-basic-settings .ops-control-host{width:260px;max-width:100%}
.ops-basic-settings p{margin:0 0 12px}

/* Explanations expand on demand; admin record headings are data cells. */
.ops-help{margin:6px 0;color:#586577;font-size:12px;line-height:1.6}
.ops-help>summary{cursor:pointer;width:fit-content;color:#526779}
.ops-help .source-note-content{margin:6px 0;max-width:100%;white-space:normal}
.ops-admin-main #result_list tbody :is(th,td){background:#fff;font-weight:400;border-bottom:1px solid #e2e8ee}
.ops-admin-main #result_list tbody:last-child tr:last-child :is(th,td){border-bottom:0}
.ops-admin-main #result_list tbody tr:hover :is(th,td){background:#f5f9fc}

/* Keep thumbnail headers readable after the component table adds cell padding. */
.supply-list .ops-table-contract table .product-image-column{width:56px;min-width:56px;padding-inline:8px;white-space:nowrap}
/* One full-width visible action for each native search option. */
:is(.region-options,.supplier-search-results,#manufacturer-results)>.ops-action-host{display:block;width:100%;margin:0}
:is(.region-options,.supplier-search-results,#manufacturer-results)>.ops-action-host>button{width:100%;height:auto;min-height:32px;text-align:left;justify-content:flex-start;white-space:normal;border:0;border-radius:0;box-shadow:none}

.supply-list .ops-table-contract table .col-supplier{padding-right:18px}
.supply-list .ops-table-contract table th.col-purchase-price{white-space:nowrap}

/* List filters render identically before and after the shared UI script loads. */
.ops-state-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;max-width:100%}
.ops-state-buttons>a{display:inline-flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;min-height:34px;margin:0;padding:6px 14px;border:1px solid #cbd8e3;border-radius:5px;background:#fff;color:#17618a;font:inherit;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;white-space:nowrap;box-shadow:none;cursor:pointer}
.ops-state-buttons>a:hover{color:#124e70;border-color:#17618a;background:#f3f8fb}
.ops-state-buttons>a:is([aria-current="page"],.active,.primary){color:#fff;background:#17618a;border-color:#17618a;font-weight:600;box-shadow:0 2px 0 rgb(0 0 0 / 8%)}
.ops-state-buttons>a:focus-visible{outline:2px solid #17618a;outline-offset:2px}
