/* One control scale across business modules. Element Plus is bundled locally. */
:root{--green:#28604c;--ink:#25332e;--muted:#68756f;--border:#dde5df;--soft:#f3f6f4;--el-color-primary:#28604c;--el-color-primary-light-3:#598774;--el-color-primary-light-5:#8ca99c;--el-color-primary-light-7:#becfc5;--el-color-primary-light-8:#d7e2db;--el-color-primary-light-9:#eef4f0;--el-color-primary-dark-2:#204d3d;--el-border-radius-base:6px;--el-font-size-base:14px;--el-text-color-primary:#25332e;--el-border-color:#c6d1c9;--el-input-height:36px;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:#f3f5f4;font-variant-numeric:tabular-nums}
body{background:#f3f5f4}button,input,select,textarea{font:inherit}button:disabled{cursor:not-allowed;opacity:.6}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.sidebar{width:224px;padding:24px 16px;background:#fff;border-right:1px solid var(--border)}.brand{margin-bottom:24px}.shop-label{background:#f4f7f5;border:1px solid var(--border);padding:12px 10px}.nav-label{font-size:12px;letter-spacing:0;color:var(--muted)}.sidebar nav button{min-height:42px;padding:10px 12px;font-size:14px;border-radius:6px}.sidebar nav button.active{background:#eaf3ee;color:var(--green);font-weight:600}.sidebar nav button.active:before{display:none}.sidebar-note{padding:16px 8px;color:var(--muted);font-size:12px}
.main-shell{margin-left:224px;width:calc(100% - 224px);min-width:0}.topbar{height:60px;background:white;border-bottom:1px solid var(--border);padding:0 28px;gap:12px;font-size:13px}.top-actions{gap:12px;flex-shrink:0}.topbar .avatar{display:none}.environment,.account,.quiet{font-size:12px;color:var(--muted)}.main-shell main{padding:28px;max-width:none;min-height:calc(100dvh - 60px)}
.page-heading{align-items:flex-start;gap:16px;margin-bottom:20px}.page-heading h1{font-size:24px;line-height:1.35;letter-spacing:0;font-weight:600;color:var(--ink);margin:0}.page-heading p{margin:8px 0 0;font-size:14px;color:var(--muted);line-height:1.6}.page-heading .eyebrow,.dialog-header .eyebrow{display:none}#page-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}#content{min-width:0}h2{font-size:18px}h3{font-size:16px;font-weight:600}
.workspace-tabs,.context-tabs{gap:24px;padding:0;border-bottom:1px solid var(--border);flex-wrap:nowrap;overflow-x:auto;margin-bottom:20px}.workspace-tabs button,.context-tabs button{padding:12px 0;border-radius:0;border-bottom:2px solid transparent;font-size:14px;white-space:nowrap;color:var(--muted)}.workspace-tabs button.active,.context-tabs button.active{background:none;color:var(--green);border-bottom-color:var(--green);font-weight:600}.workspace-sections{gap:8px;margin-bottom:20px}.workspace-sections button{font-size:13px;padding:8px 12px}.workspace-sections button.active{background:#e8f0eb;color:var(--green)}
.panel{background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:none;overflow:hidden;margin-bottom:20px}.panel-header{padding:16px 20px;border-bottom:1px solid var(--border)}.panel-header h3{margin:0}.panel-header small,.muted,.subline{color:var(--muted);font-size:12px}.panel-body{padding:18px 20px}.panel-body p{overflow-wrap:anywhere;line-height:1.7}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:36px;padding:7px 14px;border:1px solid #c6d1c9;border-radius:6px;background:white;color:var(--ink);font-size:14px;line-height:20px;white-space:nowrap}.btn:hover{background:#f0f6f2;border-color:#83a390;color:var(--green)}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.primary:hover{background:#204d3d}.btn.small{min-height:30px;padding:4px 10px;font-size:12px}.text-action{padding:4px 6px;min-height:30px;font-size:13px;color:var(--green);white-space:nowrap}.text-action:hover{background:#edf4ef;border-radius:4px}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{box-sizing:border-box;min-height:36px;padding:7px 11px;border:1px solid #c6d1c9;border-radius:6px;background:#fff;color:var(--ink);font-size:14px;line-height:20px;max-width:100%;box-shadow:none}input::placeholder,textarea::placeholder{color:#89968e}input:disabled,select:disabled,textarea:disabled{background:#f4f6f5;color:#8b948e;cursor:not-allowed}input[readonly],textarea[readonly]{background:#f7f9f7}input[type=checkbox],input[type=radio]{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--green);vertical-align:middle}input[type=file]{max-width:100%;font-size:13px}input[type=file]::file-selector-button{border:1px solid #c6d1c9;border-radius:6px;padding:7px 12px;background:#fff;color:var(--ink);margin-right:10px}textarea{width:100%;min-height:96px;resize:vertical}
.element-field{display:block;width:100%;min-width:0}.element-field .el-input{--el-input-height:36px;width:100%;font-size:14px}.element-field .el-input__wrapper{padding:0 11px;border-radius:6px;background:#fff;box-shadow:0 0 0 1px var(--el-border-color) inset}.element-field .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--green) inset}.element-field .el-input input.el-input__inner{height:36px;min-height:0;width:100%;padding:0;margin:0;border:0;box-shadow:none;outline:none;background:transparent;line-height:36px;color:var(--ink);border-radius:0}.element-field .el-textarea textarea.el-textarea__inner{padding:9px 11px;border:0;line-height:1.6;min-height:96px;outline:none;box-shadow:0 0 0 1px var(--el-border-color) inset}.element-field .el-textarea textarea:focus{box-shadow:0 0 0 1px var(--green) inset}.element-field .is-disabled .el-input__wrapper{background:#f4f6f5}.element-field:has(input:user-invalid) .el-input__wrapper{box-shadow:0 0 0 1px #bc4a4a inset}.element-field:has(textarea:user-invalid) textarea{box-shadow:0 0 0 1px #bc4a4a inset}
.toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 16px;padding:18px 20px;background:#fff;border:1px solid var(--border);border-radius:8px;margin-bottom:20px}.panel>.toolbar{border:0;border-bottom:1px solid var(--border);border-radius:0;margin:0}.field{display:flex;flex-direction:column;gap:7px;min-width:150px;flex:0 1 180px}.field.wide{flex:1 1 260px;max-width:360px}.field label,.field>span,form>label{font-size:13px;color:#526159;line-height:20px}.field input,.field select{width:100%}.toolbar>.btn{margin:0}.toolbar>label{display:grid;gap:7px;flex:0 1 180px;margin:0}.toolbar>label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px;min-height:36px}
.table-wrap{width:100%;max-width:100%;overflow:auto;overscroll-behavior-x:contain}table{width:100%;font-size:13px;border-collapse:collapse;font-variant-numeric:tabular-nums}th{padding:12px 16px;background:#f7f9f8;color:#617066;font-size:12px;font-weight:500;line-height:20px;white-space:nowrap}td{padding:13px 16px;border-color:#edf0ee;line-height:1.6;overflow-wrap:anywhere;color:var(--ink)}tbody tr:hover{background:#f7faf8}td small{color:var(--muted);font-size:12px}td .btn{margin:2px 4px 2px 0}.numeric,td:has(>.money){text-align:right;font-variant-numeric:tabular-nums}.money{white-space:nowrap}.order-id{display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.table-wrap table:has(.order-id){min-width:940px}.badge{font-size:12px;padding:3px 8px;border-radius:4px;white-space:nowrap;background:#edf5ef;color:#35714d}.badge.amber,.badge.pending,.badge.processing{background:#fff5df;color:#986214}.badge.blue{background:#eaf2ff;color:#376cad}.badge.red,.badge.failed,.badge.rejected{background:#fceeee;color:#b64d4d}.badge.gray{background:#f0f2f1;color:#758078}
.workspace-pager,.table-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:14px 20px;color:var(--muted);font-size:13px;flex-wrap:wrap}.workspace-pager .text-action{border:1px solid var(--border);background:white;padding:5px 12px;border-radius:5px}.empty{padding:32px 20px;font-size:13px;color:var(--muted)}.empty b{font-size:14px;color:var(--ink)}.notice{padding:12px 16px;border:1px solid #d8e7dd;background:#f0f6f2;color:#52685b;font-size:13px;line-height:1.7}.notice.amber{background:#fff8e9;border-color:#eadbb8;color:#8a692a}
dialog::backdrop{background:#1b2c2459;backdrop-filter:none}.detail-dialog,.action-dialog,.downloads-dialog{padding:0;border:1px solid var(--border);border-radius:10px;background:white;color:var(--ink);box-shadow:0 18px 70px #10251a26;max-height:90dvh;overflow:hidden}.detail-dialog{width:min(1100px,94vw)}.action-dialog{width:min(640px,94vw)}.detail-dialog[open],.action-dialog[open],.downloads-dialog[open]{display:flex;flex-direction:column}.dialog-header{position:relative;top:auto;z-index:auto;flex-shrink:0;padding:18px 24px;border-bottom:1px solid var(--border);background:white}.dialog-header h2{margin:0;font-size:19px;overflow-wrap:anywhere}.dialog-header button{flex-shrink:0}.detail-dialog #detail-body,.downloads-dialog #downloads-body{overflow:auto;min-height:0;flex:1}.detail-content{padding:20px 24px;background:#f6f8f6}.detail-content .context-tabs{position:sticky;top:-20px;z-index:1;background:#f6f8f6;padding-top:6px}.action-dialog #action-form{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1}.action-dialog #action-body{overflow:auto;min-height:0;flex:1;padding:20px 24px}.action-dialog #action-body>label,.action-dialog .maintenance-field,.action-dialog .m3-variant label{display:grid;gap:7px;margin:0 0 16px}.action-dialog .field{max-width:none;min-width:0;margin-bottom:16px;flex:auto}.action-dialog label>input:not([type=checkbox]):not([type=radio]),.action-dialog label>select{width:100%}.action-dialog label:has(>input[type=checkbox]),.action-dialog label:has(>input[type=radio]){display:flex!important;align-items:center;gap:8px}.action-dialog label input[type=checkbox]{width:16px;margin:0}.action-dialog .dialog-footer{flex-shrink:0;padding:14px 24px;background:#fafcfb;border-top:1px solid var(--border)}.action-dialog .error{flex-shrink:0;margin:0;padding:0 24px 10px}.action-dialog .error:empty{display:none}.error,#login-error{color:#b74747;font-size:13px}.detail-status{background:white;border:1px solid var(--border)}.info-grid dt,.timeline time,.timeline small{color:var(--muted);font-size:12px}.info-grid dd{overflow-wrap:anywhere}.system-rules{padding:20px;gap:24px}.system-rules strong{font-size:28px}.system-rules p{font-size:13px;color:var(--muted)}.main-shell footer{font-size:12px;color:var(--muted);padding:24px 0}
.daily-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px}.daily-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.daily-section-heading h2{font-size:16px;margin:0}.daily-section-heading>span,.daily-note{color:var(--muted);font-size:12px}.daily-queue-list{background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden}.daily-queue-row{display:grid;grid-template-columns:minmax(0,1fr) auto 20px;align-items:center;gap:20px;width:100%;padding:22px 20px;border:0;border-bottom:1px solid var(--border);background:white;text-align:left;color:var(--ink)}.daily-queue-row:last-child{border-bottom:0}.daily-queue-row:hover{background:#f5f9f6}.queue-copy b,.daily-links b{display:block;font-size:14px;font-weight:500}.queue-copy small,.daily-links small{display:block;color:var(--muted);font-size:12px;margin-top:6px}.daily-queue-row strong{font-size:28px;font-weight:500}.daily-queue-row.has-work strong{color:var(--green)}.queue-arrow{color:#87968c;font-size:20px}.daily-links{background:white;border:1px solid var(--border);border-radius:8px;padding:0 18px}.daily-links button{display:flex;justify-content:space-between;align-items:center;text-align:left;width:100%;border:0;border-bottom:1px solid var(--border);padding:18px 0;background:white}.daily-links button:last-child{border-bottom:0}.daily-footnote{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px;padding-top:24px}.daily-note{margin-top:16px}.login-screen{background:white}.login-story{background:#edf4ef;color:var(--ink)}.login-main label{font-size:14px;color:#526159}.login-main .element-field{margin-top:8px}.login-main .el-input{--el-input-height:42px}.login-main .element-field input.el-input__inner{height:42px;line-height:42px}.login-main .btn{min-height:42px}.login-hint{font-size:12px;color:var(--muted)}
.menu-toggle,.filter-toggle{display:none}.navigation-dialog{inset:0 auto 0 0;margin:0;padding:0;width:min(360px,100vw);height:100dvh;max-height:100dvh;border:0;border-radius:0}.navigation-dialog nav{padding:12px}.navigation-dialog nav button{min-height:44px;font-size:14px}.navigation-dialog nav button.active{background:#eaf3ee;color:var(--green)}
@media(max-width:1100px){.sidebar{display:none}.main-shell{margin:0;width:100%}.menu-toggle{display:inline-flex}.topbar{padding:0 20px}.main-shell main{padding:24px 20px}.daily-layout{grid-template-columns:1fr}.daily-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}#breadcrumb{flex:1}}
@media(max-width:640px){.topbar{height:56px;padding:0 12px;gap:8px}.top-actions{gap:4px}.top-actions .account,.top-actions .environment,.topbar .separator{display:none}.main-shell main{padding:18px 12px}.page-heading{display:block}.page-heading h1{font-size:22px}#page-actions{justify-content:flex-start;margin-top:12px}.toolbar{padding:14px;gap:12px}.toolbar .field,.toolbar .field.wide,.toolbar>label{flex:1 1 100%;max-width:none;min-width:0}.filter-toggle{display:inline-flex}.filter-toolbar:not(.filters-open)>:not(.filter-toggle){display:none}.detail-dialog,.action-dialog{width:calc(100vw - 16px);max-width:none;max-height:94dvh}.dialog-header{padding:16px}.detail-content{padding:16px}.detail-content .context-tabs{top:-16px}.action-dialog #action-body{padding:16px}.action-dialog .dialog-footer{padding:12px 16px}.daily-links{grid-template-columns:1fr}.daily-queue-row{padding:18px 16px}.workspace-tabs,.context-tabs{gap:20px}.workspace-pager{padding:12px}.page-heading p{font-size:13px}.table-wrap table{min-width:600px}.system-rules{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Editing forms are grids; search toolbars stay compact. Multi-selects must not
   inherit the single-line control height or squeeze adjacent amount fields. */
.arch-form{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));align-items:end;gap:18px;max-width:1100px}.arch-form>label{min-width:0}.arch-form>label:has(select[multiple]){grid-column:1 / -1;max-width:none}.arch-form select[multiple]{height:auto;min-height:120px;width:100%;padding:6px}.arch-form>button{justify-self:start}.arch-form label input,.arch-form label select{width:100%}.arch-form>label:has(select[multiple]) input{max-width:360px}.arch-form>label:has(select[multiple]) .btn{justify-self:start}.arch-form input[type=datetime-local]{min-width:0}.maintenance-addresses fieldset,fieldset{border:1px solid var(--border);border-radius:8px;padding:16px;margin:0 0 16px}legend{padding:0 6px;color:var(--muted);font-size:13px}
.panel>p{margin:14px 20px}.toolbar#arch-search>label{flex-basis:360px;max-width:100%}.arch-form input[aria-label="查找指定客户"]{max-width:360px!important}.arch-form .notice{grid-column:1 / -1}
@media(max-width:1100px){.arch-form{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:640px){.arch-form{grid-template-columns:minmax(0,1fr)}.arch-form>label:has(select[multiple]){grid-column:auto}}

/* Show the task and its data first. Keep definitions available by keyboard. */
.page-heading p[hidden]{display:none}.daily-section-heading{margin-bottom:12px}
.daily-queue-row{padding:18px 20px}.daily-links button{padding:18px 0}
.report-filter-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#fff;border:1px solid var(--border);border-radius:8px;margin-bottom:20px;padding-right:20px}
.report-filter-row>.toolbar{flex:1;border:0;margin:0;padding:16px 20px;border-radius:8px}
.report-export{flex-shrink:0}.report-export button{min-height:36px}
.report-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px;margin:0;padding:24px 20px}
.report-metrics dt{font-size:13px;color:var(--muted);margin-bottom:10px}
.report-metrics dd{font-size:24px;font-weight:600;line-height:1.35;margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.report-metrics.secondary{grid-template-columns:repeat(3,minmax(0,1fr))}.report-metrics.secondary dd{font-size:18px;font-weight:500}
.context-help{padding:0 20px 16px;font-size:13px;color:var(--muted)}.context-help summary{cursor:pointer;width:fit-content;min-height:32px;line-height:32px;color:var(--green)}
.context-help summary:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:3px}
.context-help>div{border-top:1px solid var(--border);margin-top:8px;padding-top:8px;line-height:1.65}.context-help p{margin:8px 0}
@media(max-width:1400px){.report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){#breadcrumb{display:none}.top-actions{margin-left:auto}.top-actions .environment{display:inline-flex;white-space:nowrap}.report-filter-row{gap:0;padding-right:0}.report-filter-row>.toolbar{flex-basis:100%;padding:14px}.report-export{padding:0 14px 12px}.report-metrics,.report-metrics.secondary{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;padding:20px 16px}.report-metrics dd{font-size:21px}.context-help{padding:0 16px 14px}}
