/* Desktop business surfaces. Keep the existing Element Plus palette and shell. */
:root { --desk-gap:16px; --desk-muted:#8a9099; --desk-ink:#303133; }
button, input, select, textarea { font:inherit; }
button, a, input { -webkit-tap-highlight-color:transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline:2px solid var(--el-color-primary); outline-offset:3px; }
button:disabled { cursor:not-allowed; opacity:.55; }
a { color:var(--el-color-primary); text-decoration:none; }
a:hover { color:var(--el-color-primary-dark-2); }
svg { vertical-align:middle; }
.admin-sidebar { box-shadow:none; }
.admin-logo { gap:9px; padding:0 16px; }
.admin-logo .logo-mk { width:28px; height:28px; font-size:17px; }
.admin-logo .logo-title { display:flex; flex-direction:column; gap:3px; font-size:14px; line-height:1.1; overflow:visible; }
.logo-title small { font-size:10px; font-weight:400; color:#9eafbf; letter-spacing:.4px; }
.admin-menu .menu-item, .submenu-title { font-size:13px; }
.admin-sidebar .submenu-list { background:rgba(0,0,0,.14); }
.admin-header { border-bottom:1px solid #f2f3f5; }
.hd-avatar { background:#edf3fb; color:#5b7c9f; border-radius:4px; }
.hd-environment { font-size:12px; color:var(--desk-muted); padding:0 12px; border-right:1px solid var(--el-border-color-lighter); margin-right:6px; white-space:nowrap; }
.admin-content { gap:0; padding:20px 20px 0; scroll-padding-top:20px; }
.admin-footer { padding:22px 0 18px; font-size:11px; }
.page-head { min-height:58px; margin-bottom:20px; align-items:center; gap:16px; }
.page-head .ph-title { font-size:20px; line-height:28px; font-weight:600; letter-spacing:.2px; }
.ph-desc { font-size:12px; line-height:20px; margin-top:5px; color:var(--desk-muted); }
.ph-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.el-card { border:1px solid var(--el-border-color-lighter); box-shadow:none; margin-bottom:16px; }
.el-card__header { padding:16px 20px; min-height:54px; gap:12px; }
.el-card__title { font-size:14px; font-weight:600; gap:8px; flex-wrap:wrap; }
.el-card__title > svg { display:none; }
.el-card__title .title-sub { font-size:12px; font-weight:400; margin-left:4px; color:var(--desk-muted); }
.el-card__body { padding:20px; }
.el-button { font-size:13px; font-weight:400; gap:6px; }
.el-button--small { height:28px; font-size:12px; }
.el-button svg { width:14px; height:14px; }
.el-button.is-link { padding:4px 0; }
.el-input__inner { font-size:13px; }
.el-tag { border-color:transparent; }
.el-tag--small { font-size:12px; height:22px; padding:0 7px; }
.muted { color:var(--desk-muted); font-size:12px; }
.num { font-variant-numeric:tabular-nums; }
.mono { font-family:var(--font); font-variant-numeric:tabular-nums; font-size:12px; letter-spacing:.1px; white-space:nowrap; }
.link-button { border:0; background:none; color:var(--el-color-primary); cursor:pointer; padding:3px 0; font-size:13px; white-space:nowrap; }
.link-button:hover { color:var(--el-color-primary-dark-2); }
.icon-button { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--el-border-color); border-radius:4px; background:#fff; color:#606266; cursor:pointer; }
.icon-button svg { width:15px; height:15px; }
.icon-button:hover { color:var(--el-color-primary); border-color:var(--el-color-primary-light-5); }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.metric { display:block; text-align:left; background:#fff; border:1px solid var(--el-border-color-lighter); border-radius:4px; padding:18px 20px; color:var(--desk-ink); }
button.metric { cursor:pointer; }
button.metric:hover { border-color:var(--el-color-primary-light-5); }
.metric-top { display:flex; align-items:center; justify-content:space-between; color:#606266; font-size:13px; }
.metric-top svg { width:18px; height:18px; color:#9ba7b4; }
.metric-value { font-size:28px; line-height:38px; font-weight:600; font-variant-numeric:tabular-nums; margin:7px 0; }
.metric-value small { color:#909399; font-size:12px; font-weight:400; margin-left:5px; }
.metric-bottom { color:#909399; font-size:12px; display:flex; align-items:center; gap:6px; line-height:18px; }
.status-mark { width:6px; height:6px; border-radius:50%; display:inline-block; background:#b4bac3; flex:none; }
.status-mark.success { background:var(--el-color-success); }
.status-mark.warning { background:var(--el-color-warning); }
.status-mark.danger { background:var(--el-color-danger); }
.status-mark.primary { background:var(--el-color-primary); }
.filter-bar { display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:16px 24px; align-items:center; }
.filter-item { display:flex; flex-direction:row; align-items:center; gap:12px; min-width:0; }
.filter-item > label { width:56px; flex:none; font-size:13px; }
.filter-item .el-input, .filter-item .fiw { width:100%; min-width:0; }
.filter-date { grid-column:span 2; }
.filter-actions { grid-column:4; grid-row:1 / span 2; align-self:end; }
.date-range { display:flex; align-items:center; gap:8px; width:100%; border:1px solid var(--el-border-color); border-radius:4px; height:32px; padding:0 10px; background:#fff; transition:border-color .2s; }
.date-range:focus-within { border-color:var(--el-color-primary); box-shadow:0 0 0 1px var(--el-color-primary) inset; }
.date-range .el-input { border:none; box-shadow:none; flex:1; min-width:0; }
.date-range .el-input__wrapper { border:none!important; box-shadow:none!important; padding:0; background:transparent!important; height:100%; }
.date-range .el-input__inner { border:none!important; height:100%; font-size:12.5px; padding:0; }
.date-range span { color:var(--el-text-color-secondary); font-size:12px; flex:none; }
.filter-card[hidden] { display:none; }
.table-panel .el-card__body { padding:0 20px 16px; }
.admin-shell.collapsed .admin-logo .logo-short { display:none; }
.admin-shell.collapsed .admin-logo .logo-mk { display:flex; }
.record-tabs { display:flex; gap:26px; overflow-x:auto; border-bottom:1px solid var(--el-border-color-lighter); padding:0 20px; }
.record-tab { display:flex; align-items:center; gap:7px; padding:16px 0 13px; border:0; border-bottom:2px solid transparent; white-space:nowrap; background:transparent; color:#606266; font-size:13px; cursor:pointer; }
.record-tab b { font-size:11px; font-weight:400; background:#f0f2f5; padding:1px 5px; border-radius:3px; color:#909399; }
.record-tab.active { color:var(--el-color-primary); border-bottom-color:var(--el-color-primary); font-weight:500; }
.record-tab.active b { background:var(--el-color-primary-light-9); color:var(--el-color-primary); }
.table-toolbar { display:flex; justify-content:space-between; align-items:center; padding:16px 0; gap:12px; min-height:62px; }
.table-toolbar h3 { font-size:14px; font-weight:600; display:inline; }
.toolbar-group { display:flex; align-items:center; gap:10px; }
.table-scroll { overflow:auto; width:100%; }
.record-table { min-width:1020px; table-layout:fixed; width:100%; }
.el-table th { height:42px; background:#f7f8fa; font-size:12px; font-weight:500; color:#606266; white-space:nowrap; }
.el-table td { height:66px; font-size:13px; padding:12px; border-bottom:1px solid #f0f2f5; line-height:20px; vertical-align:middle; word-break:normal; }
.el-table th { padding:10px 12px; }
.el-table.bordered th, .el-table.bordered td { border-right:0; border-left:0; }
.el-table tbody tr:hover td { background:#f7faff; }
.el-table tbody tr.selected td { background:#f2f8ff; }
.el-table.is-compact td { height:48px; padding-top:6px; padding-bottom:6px; }
.row-check { accent-color:var(--el-color-primary); width:14px; height:14px; cursor:pointer; vertical-align:middle; }
.product-cell { display:flex; align-items:center; gap:12px; min-width:0; }
.product-thumb { display:flex; align-items:center; justify-content:center; background:#f8f9fb; border:1px solid #eef0f3; border-radius:4px; width:42px; height:46px; flex:none; overflow:hidden; }
.product-thumb svg { width:34px; height:42px; }
.product-text { min-width:0; }
.product-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; color:#303133; display:block; }
.product-name:hover { color:var(--el-color-primary); }
.product-sub { font-size:12px; color:#909399; white-space:nowrap; margin-top:3px; overflow:hidden; text-overflow:ellipsis; }
.task-id { font-size:12px; color:#606266; white-space:nowrap; }
.system-pills { display:flex; align-items:center; gap:5px; }
.system-pill { height:23px; width:23px; border-radius:4px; font-size:11px; display:inline-flex; align-items:center; justify-content:center; background:#f1f3f6; color:#a3a9b2; position:relative; }
.system-pill.approved { color:#529b2e; background:#f0f9eb; }
.system-pill.rejected { color:#d96363; background:#fef0f0; }
.system-pill.auditing { color:#409eff; background:#ecf5ff; }
.system-pill.skipped { color:#b09b73; background:#f8f5ef; }
.system-pill:hover::after { content:attr(data-tip); position:absolute; bottom:30px; left:50%; transform:translateX(-50%); white-space:nowrap; background:#303133; color:#fff; padding:5px 8px; border-radius:4px; z-index:20; font-weight:400; }
.system-pill:focus-visible::after { content:attr(data-tip); position:absolute; bottom:30px; left:50%; transform:translateX(-50%); white-space:nowrap; background:#303133; color:#fff; padding:5px 8px; border-radius:4px; z-index:20; }
.system-progress { font-size:11px; color:#909399; margin-top:5px; display:flex; align-items:center; gap:7px; }
.tiny-track { height:3px; background:#eef1f5; width:60px; border-radius:2px; overflow:hidden; }
.tiny-track i { display:block; height:100%; background:#a0cfff; }
.action-cell { display:flex; align-items:center; gap:12px; white-space:nowrap; }
.table-legend { display:flex; align-items:center; gap:14px; flex-wrap:wrap; color:#909399; font-size:11px; padding-top:12px; }
.table-legend span { display:inline-flex; align-items:center; gap:5px; }
.el-pagination { padding-top:18px; gap:8px; font-size:12px; }
.el-pagination .pg-btn { border:0; background:#f4f5f7; }
.el-pagination .pg-btn.active { background:var(--el-color-primary); }
.el-empty { padding:52px 20px; }
.el-empty .empty-text { line-height:22px; }
.selection-note { font-size:12px; color:var(--el-color-primary); background:#ecf5ff; padding:5px 10px; border-radius:4px; }
.dialog-backdrop { backdrop-filter:none; }
.el-dialog { border-radius:4px; width:calc(100% - 64px); max-width:1040px; }
.el-dialog__header { padding:20px 24px; }
.el-dialog__body { padding:20px 24px; }
.el-dialog__footer { padding:16px 24px; }
.el-dialog__title { font-size:16px; font-weight:500; }
.image-viewer { max-width:640px; }
.preview-surface { background:#f6f7f9; display:flex; align-items:center; justify-content:center; min-height:340px; padding:24px; }
.preview-surface > svg, .preview-surface > img { width:100%; max-height:480px; object-fit:contain; }
.sample-photo { filter:saturate(.2); }
.preview-caption { padding-top:14px; font-size:13px; color:#909399; line-height:22px; }
.section-tabs { display:flex; gap:30px; padding:0 20px; border-bottom:1px solid var(--el-border-color-lighter); overflow:auto; }
.section-tabs button { background:none; border:0; border-bottom:2px solid transparent; padding:17px 0 14px; cursor:pointer; color:#606266; font-size:14px; white-space:nowrap; }
.section-tabs button.active { color:var(--el-color-primary); border-bottom-color:var(--el-color-primary); font-weight:500; }
.detail-pane[hidden] { display:none; }
.detail-summary { display:flex; align-items:center; gap:20px; }
.detail-summary .product-thumb { width:76px; height:84px; }
.detail-summary .product-thumb svg { width:56px; height:76px; }
.detail-summary-main { flex:1; min-width:0; }
.detail-summary-main h2 { font-size:18px; font-weight:500; margin-bottom:10px; }
.detail-summary-meta { display:flex; gap:22px; flex-wrap:wrap; color:#909399; font-size:12px; line-height:22px; }
.detail-summary-meta b { color:#606266; font-weight:400; margin-left:6px; }
.detail-progress { min-width:180px; padding-left:24px; border-left:1px solid #ebeef5; }
.detail-progress strong { font-size:25px; font-weight:500; color:#303133; }
.detail-progress .el-progress { margin-top:12px; }
.detail-overview { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:24px; }
.detail-aside { border-left:1px solid #ebeef5; padding-left:24px; }
.detail-aside h4, .section-heading { font-size:14px; font-weight:500; margin-bottom:18px; }
.info-pairs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:36px; }
.info-pair { display:grid; grid-template-columns:112px minmax(0,1fr); gap:12px; padding:13px 0; font-size:13px; border-bottom:1px solid #f2f3f5; line-height:20px; }
.info-pair dt { color:#909399; }
.info-pair dd { margin:0; overflow-wrap:anywhere; }
.detail-sys-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.dsys-card { display:flex; flex-direction:column; border-color:#e9edf2; }
.dsys-card .dc-head { padding:14px 16px; background:#fff; }
.dsys-card .dc-head b { font-size:14px; font-weight:500; }
.dsys-card .dc-head .dc-sub { display:block; margin:4px 0 0; font-size:11px; }
.dsys-card .dc-body { padding:18px 16px; flex:1; }
.tl-content { font-size:12px; }
.tl-time { font-family:var(--font); font-size:11px; }
.tl-remark { line-height:20px; padding:7px 9px; }
.el-timeline-item { padding-bottom:22px; }
.material-gallery { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; }
.material-tile { border:1px solid #ebeef5; border-radius:4px; overflow:hidden; text-align:left; padding:0; background:#fff; color:#606266; cursor:pointer; }
.material-image { background:#fafbfc; aspect-ratio:1; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.material-image > svg, .material-image > img { width:100%; height:100%; object-fit:contain; }
.material-image .el-tag { position:absolute; top:8px; right:8px; }
.material-label { padding:10px 12px; font-size:12px; line-height:20px; }
.material-label small { display:block; color:#909399; font-size:11px; }
.matrix-table th, .matrix-table td { padding:12px; font-size:12px; }
.matrix-table .m-alias { font-size:11px; margin-top:4px; }
.notice-inline { display:flex; align-items:flex-start; gap:9px; background:#f5f8fc; padding:12px 16px; border-radius:4px; color:#707b89; line-height:22px; font-size:12px; margin-bottom:20px; }
.notice-inline > svg { width:16px; height:16px; flex:none; margin-top:3px; color:#409eff; }
@media (min-width:1700px) { .admin-content { padding-left:28px; padding-right:28px; } .detail-sys-grid { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media (max-width:1200px) { .filter-bar { grid-template-columns:1fr 1fr; } .filter-actions { grid-column:2; grid-row:auto; } .filter-date { grid-column:auto; } .detail-sys-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .material-gallery { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:900px) { .admin-content { padding:16px 12px 0; } .metric-grid { gap:12px; grid-template-columns:repeat(2,minmax(0,1fr)); } .page-head { align-items:flex-start; flex-direction:column; } .detail-overview { grid-template-columns:1fr; } .detail-aside { border:0; padding:0; } .hd-environment { display:none; } .admin-shell.collapsed .admin-logo .logo-title { display:flex; } .admin-shell.collapsed .admin-logo { justify-content:flex-start; padding-left:16px; } .admin-shell.collapsed .menu-item, .admin-shell.collapsed .submenu-title { justify-content:flex-start; padding-left:20px; } .admin-shell.collapsed .menu-item span, .admin-shell.collapsed .submenu-title span, .admin-shell.collapsed .submenu-arrow { display:block; } .admin-shell.collapsed .open .submenu-list { display:block; } .admin-shell.collapsed .submenu-list .menu-item { padding-left:44px; } }
@media (max-width:600px) { .filter-bar, .info-pairs { grid-template-columns:1fr; } .filter-actions { grid-column:1; } .metric { padding:14px; } .metric-value { font-size:24px; } .el-card__body { padding:16px; } .detail-summary { flex-wrap:wrap; gap:12px; } .detail-progress { border:0; padding:0; width:100%; } .detail-sys-grid { grid-template-columns:1fr; } .material-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } .record-tabs { gap:20px; } .table-toolbar { flex-wrap:wrap; } .el-dialog { width:calc(100% - 24px); } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
