.product-model-page-active #title{display:flex;align-items:baseline;gap:20px;white-space:nowrap}.product-model-page-active #title::after{content:'统一管理型号、规格、供应商、成本与销售价格';color:#75807c;font-size:13px;font-weight:400}.product-model-page-active #greeting{display:none}.product-model-page-active #qrBtn,.product-model-page-active #backupBtn{display:none!important}.product-header-actions{display:flex;align-items:center;gap:10px}.product-header-actions button{height:40px}.product-header-actions button small{margin-left:5px;color:inherit;font-size:10px}.product-header-actions button:disabled{cursor:not-allowed;opacity:.62}.product-model-management{--pmm-line:#e2e8e5;display:block;min-width:0;padding:10px 0 28px}.pmm-list{display:flex;min-width:0;flex-direction:column;gap:16px}.pmm-stats{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:14px}.pmm-stat{display:flex;align-items:center;gap:13px;min-width:0;height:84px;padding:14px 16px;border:1px solid var(--pmm-line);border-radius:9px;background:#fff;box-shadow:0 5px 16px rgba(24,52,43,.055)}.pmm-stat>i{display:grid;flex:0 0 43px;place-items:center;width:43px;height:43px;border-radius:50%;background:var(--store-theme);color:#fff}.pmm-stat.warning>i{background:#ee8b13}.pmm-stat.accent>i{background:color-mix(in srgb,var(--store-theme) 68%,#248cff)}.pmm-stat svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7}.pmm-stat span{min-width:0}.pmm-stat small,.pmm-stat strong{display:block}.pmm-stat small{overflow:hidden;color:#56605c;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.pmm-stat strong{margin-top:4px;color:#171c1a;font-size:23px;line-height:1}.pmm-filter{padding:14px;border:1px solid var(--pmm-line);border-radius:9px;background:#fff;box-shadow:0 5px 16px rgba(24,52,43,.045)}.pmm-search{position:relative;display:block}.pmm-search svg{position:absolute;left:13px;top:12px;width:18px;height:18px;fill:none;stroke:#7e8884;stroke-width:1.8}.pmm-search input{width:100%;height:42px!important;padding:0 12px 0 40px!important;border:1px solid var(--pmm-line)!important;border-radius:7px!important;background:#fff!important}.pmm-filter-row{display:grid;grid-template-columns:repeat(4,minmax(115px,1fr)) auto auto;gap:10px;margin-top:11px}.pmm-filter select{width:100%;height:40px!important;padding:0 30px 0 11px!important;border:1px solid var(--pmm-line)!important;border-radius:7px!important;background-color:#fff!important}.pmm-filter button{height:40px;padding:0 17px}.pmm-tabs{display:flex;gap:10px;overflow-x:auto;padding:0 1px}.pmm-tabs button{display:flex;align-items:center;gap:9px;min-width:95px;height:42px;padding:0 15px;border:1px solid var(--pmm-line);border-radius:7px;background:#fff;color:#464f4c;cursor:pointer;white-space:nowrap}.pmm-tabs button b{font-size:12px;font-weight:600}.pmm-tabs button.active{border-color:var(--store-theme);background:var(--store-theme-faint);color:var(--store-theme);font-weight:700}.pmm-table-card{min-width:0;border:1px solid var(--pmm-line);border-radius:9px;background:#fff;box-shadow:0 6px 20px rgba(25,52,44,.055);overflow:hidden}.pmm-table-card>header{display:flex;align-items:center;justify-content:space-between;min-height:68px;padding:13px 16px;border-bottom:1px solid var(--pmm-line)}.pmm-table-card h3{margin:0;color:#171c1a;font-size:18px}.pmm-table-card header p{margin:4px 0 0;color:#818a87;font-size:11px}.pmm-table-card header button{height:38px}.pmm-table-scroll{overflow-x:auto;overflow-y:visible}.pmm-table-scroll table{min-width:1320px;table-layout:fixed}.pmm-table-scroll th{height:44px;padding:0 10px;background:#f7f9f8;color:#3d4542;font-size:11px;white-space:nowrap}.pmm-table-scroll th:nth-child(1){width:130px}.pmm-table-scroll th:nth-child(2){width:145px}.pmm-table-scroll th:nth-child(3){width:105px}.pmm-table-scroll th:nth-child(4){width:90px}.pmm-table-scroll th:nth-child(5){width:125px}.pmm-table-scroll th:nth-child(6),.pmm-table-scroll th:nth-child(7){width:92px}.pmm-table-scroll th:nth-child(8){width:95px}.pmm-table-scroll th:nth-child(9){width:65px}.pmm-table-scroll th:nth-child(10){width:125px}.pmm-table-scroll th:nth-child(11){width:95px}.pmm-table-scroll th:nth-child(12){width:100px}.pmm-table-scroll td{height:62px;padding:7px 10px;border-bottom:1px solid var(--pmm-line);color:#3f4744;font-size:12px;vertical-align:middle}.pmm-table-scroll tbody tr:last-child td{border-bottom:0}.pmm-table-scroll tbody tr:hover{background:color-mix(in srgb,var(--store-theme) 4%,#fff)}.pmm-table-scroll .pmm-page-hidden{display:none}.pmm-model{display:flex;align-items:flex-start;flex-direction:column;gap:5px}.pmm-model>b{color:#202624;font-size:13px}.pmm-table-scroll td:nth-child(2)>b,.pmm-table-scroll td:nth-child(2)>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pmm-table-scroll td:nth-child(2)>small{margin-top:4px;color:#7c8582}.pmm-badge{display:inline-flex;align-items:center;width:max-content;padding:4px 7px;border-radius:5px;font-size:10px;line-height:1}.pmm-badge.stock,.pmm-badge.complete{border:1px solid color-mix(in srgb,var(--store-theme) 25%,#dce6e1);background:var(--store-theme-faint);color:var(--store-theme)}.pmm-badge.stock.ordered,.pmm-badge.warning{border:1px solid #ffd5a5;background:#fff7ec;color:#d77100}.pmm-badge.duplicate{border:1px solid #bed7ff;background:#f0f6ff;color:#2776d5}.pmm-status{display:flex;flex-wrap:wrap;gap:4px}.pmm-margin{display:flex;flex-direction:column;gap:5px}.pmm-margin>b{font-size:11px}.pmm-margin>i{display:block;width:64px;height:4px;border-radius:5px;background:#e5e9e7;overflow:hidden}.pmm-margin>i span{display:block;height:100%;border-radius:inherit;background:var(--store-theme)}.pmm-actions{display:flex;align-items:center;gap:7px}.pmm-actions button{padding:4px 0;border:0;background:transparent;color:var(--store-theme);font-size:11px;cursor:pointer}.pmm-actions button.danger{color:var(--red)}.pmm-pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:60px;padding:10px 15px;border-top:1px solid var(--pmm-line);color:#68716e;font-size:12px}.pmm-pager>span:last-child{text-align:right}.pmm-pager>span b{display:inline-grid;place-items:center;min-width:34px;height:31px;margin:0 4px;border:1px solid var(--pmm-line);border-radius:6px;background:#fff;color:#333}.pmm-pager>div{display:flex;gap:6px}.pmm-pager button{display:grid;place-items:center;min-width:31px;height:31px;padding:0 7px;border:1px solid var(--pmm-line);border-radius:6px;background:#fff;color:#67716d;cursor:pointer}.pmm-pager button.active{border-color:var(--store-theme);background:var(--store-theme);color:#fff}.pmm-pager button:disabled{opacity:.35;cursor:default}.product-model-page-active #view.ticket-system-page::before,.product-model-page-active #view.ticket-system-page::after{display:none!important;content:none!important}
@media(min-width:1800px){.pmm-stat{height:88px}.pmm-table-scroll td{height:64px}}
@media(max-width:1600px){.pmm-stats{gap:9px}.pmm-stat{gap:9px;padding:12px}.pmm-stat>i{flex-basis:37px;width:37px;height:37px}.pmm-stat svg{width:21px;height:21px}.pmm-stat strong{font-size:20px}.pmm-filter-row{grid-template-columns:repeat(4,minmax(100px,1fr)) auto auto}}
@media(max-width:1366px){.pmm-stats{grid-template-columns:repeat(5,minmax(105px,1fr))}.pmm-stat{height:74px}.pmm-stat>i{display:none}.pmm-filter-row{grid-template-columns:repeat(2,1fr) auto auto}}
@media(max-width:1050px){.pmm-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.product-model-page-active #title::after{display:none}.product-header-actions{display:none}.product-model-management{padding-top:0}.pmm-stats{grid-template-columns:repeat(2,1fr)}.pmm-filter-row{grid-template-columns:1fr 1fr}.pmm-filter-row button{width:100%}}
.product-header-add{height:40px}
@media(max-width:760px){.product-header-add{display:none}}
.product-model-page-active #exportBtn{display:none!important}
.product-model-management{align-items:stretch}
.pmm-tabs button{position:relative!important;padding:0 15px!important;background:#fff!important;color:#46514d!important;text-align:center!important;transform:none!important}
.pmm-tabs button::before,.pmm-tabs button::after{display:none!important;content:none!important}
.pmm-tabs button:hover{border-color:color-mix(in srgb,var(--store-theme) 38%,var(--pmm-line))!important;background:color-mix(in srgb,var(--store-theme) 3%,#fff)!important;color:var(--store-theme)!important;transform:none!important}
.pmm-tabs button.active{border-color:var(--store-theme)!important;background:var(--store-theme-faint)!important;color:var(--store-theme)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--store-theme) 8%,transparent)!important}




.pmm-actions{gap:6px;white-space:nowrap}
.pmm-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:42px;height:29px!important;padding:0 9px!important;border:1px solid color-mix(in srgb,var(--store-theme) 24%,#dce5e1)!important;border-radius:6px!important;background:color-mix(in srgb,var(--store-theme) 6%,#fff)!important;color:var(--store-theme)!important;font-size:11px!important;font-weight:650!important;line-height:1!important;box-shadow:none!important;transform:none!important}
.pmm-actions button:hover{border-color:color-mix(in srgb,var(--store-theme) 48%,#dce5e1)!important;background:color-mix(in srgb,var(--store-theme) 11%,#fff)!important;color:var(--store-theme-dark)!important;transform:translateY(-1px)!important}
.pmm-actions button.danger{border-color:#f0cbc7!important;background:#fff3f1!important;color:var(--red)!important}
.pmm-actions button.danger:hover{border-color:#dfaaa4!important;background:#ffe9e6!important;color:#a9362e!important}

/* 与 PC 管理后台字号层级一致；20 条列表通过行高和间距控制密度。 */
@media (min-width: 761px) {
  .pmm-table-card header p { font-size: var(--pc-font-secondary); }
  .pmm-tabs button b { font-size: var(--pc-font-secondary); }
  .pmm-table-scroll td { height: var(--pc-table-multiline-row-height); padding: 5px 10px; }
  .pmm-table-scroll .pmm-model > b,
  .pmm-table-scroll .pmm-margin > b { font-size: var(--pc-font-table); }
  .pmm-table-scroll .pmm-model { gap: 3px; }
  .pmm-table-scroll .pmm-badge { font-size: var(--pc-font-badge); }
  .pmm-actions button { font-size: 13px !important; min-height: 32px; }
  .pmm-pager { font-size: var(--pc-font-page-description); gap: 10px; }
  .pmm-pager > div { min-width: 0; max-width: 100%; overflow-x: auto; }
  .pmm-pager button { flex: 0 0 auto; font-size: var(--pc-font-button); }
}

/* 产品表单使用与费用支出一致的系统中央弹窗。 */
body.pmm-modal-open { overflow: hidden; }
.pmm-modal-dialog { display: flex; flex-direction: column; width: min(720px, calc(100vw - 32px)) !important; max-width: 720px !important; max-height: calc(100dvh - 32px) !important; padding: 0 !important; overflow: hidden !important; border-radius: 16px !important; }
.pmm-modal-dialog #modalBody, .pmm-editor, .pmm-editor form { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.pmm-editor > header { flex: 0 0 auto; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.pmm-editor h2 { margin: 0; color: var(--store-theme); font-size: var(--pc-font-drawer-title, 18px); }
.pmm-editor header p { margin: 5px 0 0; color: var(--muted); font-size: var(--pc-font-secondary, 12px); }
.pmm-editor-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
.pmm-editor label { display: block; min-width: 0; }
.pmm-editor label > span { display: block; margin-bottom: 8px; color: var(--ink); font-size: var(--pc-font-control, 14px); font-weight: 650; }
.pmm-editor em { color: var(--red); font-style: normal; }
.pmm-editor input, .pmm-editor select { width: 100%; height: 42px !important; padding: 10px 12px !important; border: 1px solid var(--line) !important; border-radius: 8px !important; background: #fff !important; color: var(--ink); font-size: var(--pc-font-control, 14px) !important; outline: 0; }
.pmm-editor input:focus, .pmm-editor select:focus { border-color: var(--store-theme) !important; box-shadow: 0 0 0 3px var(--store-theme-soft) !important; }
.pmm-editor-grid { display: contents; }
.pmm-editor-note { grid-column: 1 / -1; display: flex; align-items: start; gap: 8px; padding: 11px 12px; border-radius: 8px; background: var(--store-theme-faint); color: var(--muted); font-size: var(--pc-font-secondary, 12px); line-height: 1.5; }
.pmm-editor-note b { display: grid; flex: 0 0 18px; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--store-theme); color: #fff; font-family: serif; }
.pmm-editor form > footer { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); background: #fff; }
.pmm-editor form > footer button { min-width: 106px; height: 42px; border-radius: 9px; font-size: var(--pc-font-button, 14px); }
.pmm-editor form > footer button:disabled { cursor: wait; opacity: .6; }
.pmm-modal-dialog > .close { top: 14px; right: 20px; display: grid; place-items: center; cursor: pointer; }
.pmm-modal-dialog > .close:hover { background: var(--store-theme-faint); color: var(--store-theme); }
@media (max-width: 600px) { .pmm-editor-body { grid-template-columns: 1fr; gap: 15px; padding: 18px; } .pmm-editor > header { padding: 16px 18px; } .pmm-editor form > footer { padding: 14px 18px; } }
