/* Scoped M04 components; phase-II teal baseline. */
.pkg{color:#27313a;font:14px/1.5 Inter,"PingFang SC","Microsoft YaHei",sans-serif;min-width:0}.pkg *{box-sizing:border-box}.pkg h1{font-size:22px;margin:0}.pkg h2{font-size:17px;margin:0}.pkg h3{font-size:14px;margin:16px 0 8px}.pkg p{margin:6px 0;color:#5e6975}.pkg-head,.pkg-tools,.pkg-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.pkg-head{margin-bottom:20px}.pkg-actions{justify-content:flex-start}.pkg button,.pkg input,.pkg select,.pkg textarea{font:inherit;min-height:38px;border:1px solid #c7d0da;border-radius:5px;background:#fff;color:#27313a;padding:8px 12px;max-width:100%}.pkg button{cursor:pointer;white-space:nowrap}.pkg button:hover{border-color:#07868d;color:#046b71}.pkg button.primary{background:#07868d;color:#fff;border-color:#07868d}.pkg button.danger{color:#bf414b}.pkg button:disabled{opacity:.55;cursor:not-allowed}.pkg :focus-visible{outline:3px solid #65b8bc;outline-offset:2px}.pkg-card{background:#fff;border:1px solid #e5e9ef;border-radius:10px;padding:20px;margin:16px 0}.pkg-filters{background:#f6f8fa;padding:16px;border-radius:6px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:end}.pkg label{display:flex;flex-direction:column;gap:6px;min-width:0}.pkg label>span{color:#5e6975}.pkg-filters label{flex:1;min-width:130px}.pkg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pkg-wide{grid-column:1/-1}.pkg-table{overflow:auto;max-height:60vh;margin-top:16px}.pkg table{border-collapse:collapse;width:100%;min-width:900px}.pkg th,.pkg td{padding:12px;text-align:left;border-bottom:1px solid #e5e9ef;vertical-align:top}.pkg th{background:#f6f8fa;position:sticky;top:0;font-weight:500;color:#5e6975}.pkg td button{min-height:32px;padding:4px 8px;color:#046b71}.pkg tbody tr:hover{background:#f4fbfb}.pkg-tag{display:inline-block;background:#eef2f5;color:#5e6975;border-radius:4px;padding:3px 8px;white-space:nowrap}.pkg-tag.pending{color:#397bd1;background:#edf4ff}.pkg-tag.effective{color:#277645;background:#eef9f1}.pkg-tag.rejected{color:#bf414b;background:#fff0f0}.pkg dl{display:grid;grid-template-columns:140px 1fr;gap:8px;margin:8px 0}.pkg dt{color:#5e6975}.pkg dd{margin:0;overflow-wrap:anywhere}.pkg-error{background:#fff0f0;color:#a32d36;padding:12px;border:1px solid #efb5b9;border-radius:5px;margin-bottom:16px}.pkg-error:empty{display:none}.pkg [aria-invalid=true]{border-color:#bf414b}.pkg em{color:#bf414b;font-style:normal;font-size:12px}.pkg-note{padding:12px;background:#e9f7f7;border-radius:5px;color:#046b71}.pkg-log{border-left:2px solid #c9e7e8;padding:4px 16px;margin:12px 0;overflow-wrap:anywhere}.pkg-log small{color:#5e6975}.pkg-dialog{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #e5e9ef;border-radius:10px;color:#27313a}.pkg-dialog::backdrop{background:#17232e66}.pkg-dialog-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 36px)}.pkg-dialog header,.pkg-dialog footer{padding:16px 24px;display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #e5e9ef;flex-shrink:0}.pkg-dialog footer{border-top:1px solid #e5e9ef;border-bottom:0;justify-content:flex-end;flex-wrap:wrap}.pkg-dialog-body{padding:20px 24px;overflow:auto;min-height:0}.pkg-dialog form{margin:0}.pkg-components{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:8px;margin:8px 0}.pkg-components input,.pkg-components select{min-width:0;width:100%}.pkg-toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#27313a;color:#fff;padding:12px 20px;border-radius:6px;z-index:5000;max-width:90vw}.pkg-discard{padding:12px;background:#fff7e8;margin-bottom:16px}.pkg-pager{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:16px;flex-wrap:wrap}.pkg input[type=checkbox]{min-height:20px}.pkg-options{max-height:180px;overflow:auto;border:1px solid #c7d0da;padding:10px;border-radius:5px}.pkg-options label{display:flex;flex-direction:row;align-items:center;margin:4px}.pkg textarea{min-height:80px;resize:vertical}.pkg-empty{padding:32px;text-align:center;color:#5e6975}.pkg-preview{max-width:1200px;margin:24px auto;padding:16px}.pkg-filelist{list-style:none;padding:0}.pkg-filelist li{padding:10px 0;border-bottom:1px solid #e5e9ef}.pkg small{overflow-wrap:anywhere}
@media(max-width:767px){.pkg-grid{grid-template-columns:1fr}.pkg-components{grid-template-columns:1fr 1fr}.pkg-components>:first-child{grid-column:1/-1}.pkg-card{padding:14px}.pkg-dialog header,.pkg-dialog footer,.pkg-dialog-body{padding:14px}.pkg button,.pkg input,.pkg select{min-height:44px}.pkg dl{grid-template-columns:1fr}.pkg dd{margin-bottom:8px}.pkg h1{font-size:20px}.pkg-filters{padding:12px}.pkg-head{align-items:flex-start}.pkg table{min-width:850px}}
/* 地铁式审批流程：站点顺序与角色固定，状态由当前轮次计算。 */
.pkg-flow{margin:0 0 20px;padding:20px 24px;background:#fff;border:1px solid #e5e9ef;border-radius:10px}.pkg-flow-head{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}.pkg-flow-head>strong{font-size:16px}.pkg-flow-head p{margin:0;color:#5e6975}.pkg-metro{display:flex;margin:24px 0 12px;padding:0;list-style:none}.pkg-station{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;color:#6c7785}.pkg-station:before{content:"";position:absolute;top:14px;left:-50%;right:50%;height:4px;background:#dce3e9}.pkg-station:first-child:before{display:none}.pkg-station.done:before,.pkg-station.current:before{background:#07868d}.pkg-station-dot{position:relative;z-index:1;box-sizing:border-box;display:grid;place-items:center;width:32px;height:32px;margin:0 0 8px;border:3px solid #c9d3de;border-radius:50%;background:#fff;font-size:12px;font-weight:600;font-style:normal;color:#6c7785}.pkg-station strong{color:#46515e;font-size:14px}.pkg-station>span{font-size:13px}.pkg-station>small{font-size:12px}.pkg-station.done .pkg-station-dot{border-color:#07868d;background:#07868d;color:white}.pkg-station.current .pkg-station-dot{border-color:#07868d;color:#046b71;box-shadow:0 0 0 5px #e9f7f7}.pkg-station.current strong,.pkg-station.current>small{color:#046b71;font-weight:600}.pkg-station.current>small{background:#e9f7f7;border-radius:4px;padding:1px 6px}.pkg-station.stopped{opacity:.75}.pkg-flow-legend{display:flex;gap:18px;justify-content:flex-end;color:#6c7785;font-size:12px}.pkg-flow-legend span:before{content:"";display:inline-block;width:8px;height:8px;border:2px solid #c9d3de;border-radius:50%;margin-right:5px;vertical-align:-1px}.pkg-flow-legend .done:before{background:#07868d;border-color:#07868d}.pkg-flow-legend .current:before{border-color:#07868d}
@media(max-width:767px){.pkg-flow{padding:16px}.pkg-flow-head{gap:8px}.pkg-metro{flex-direction:column;gap:0;margin-top:20px}.pkg-station{display:grid;grid-template-columns:32px 1fr auto;grid-template-rows:auto auto;column-gap:14px;text-align:left;align-items:center;justify-items:start;min-height:82px;flex:none}.pkg-station:before{left:14px;right:auto;top:-41px;width:4px;height:82px}.pkg-station-dot{grid-row:1/3;align-self:center;margin:0}.pkg-station strong{align-self:end}.pkg-station>span{grid-column:2;align-self:start}.pkg-station>small{grid-column:3;grid-row:1/3;align-self:center}.pkg-flow-legend{justify-content:flex-start;flex-wrap:wrap;gap:12px}}

.pkg-filters label{min-width:0}.pkg-filter-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pkg-filters input,.pkg-filters select{width:100%;min-width:0}.pkg-filters label>span{line-height:20px}.pkg-filter-actions button{flex:0 0 auto}@media(max-width:767px){.pkg-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.pkg-filters{grid-template-columns:1fr}}
.pkg-filters em:empty{display:none}
