/* Completion layer for the supply-demand government operations prototype. */
.side{width:248px;}
.menu{padding:10px 0 18px;overflow-y:auto;}
.menu-group{display:block;padding:16px 24px 6px;color:rgba(210,229,235,.48);font-size:10.5px;letter-spacing:2px;line-height:1;}
.menu a{min-height:44px;padding:11px 24px;}
.menu .cnt.blue{background:#4d9bb7;color:#fff;}
.topbar{min-height:66px;padding:10px 26px;}
.topbar-title{display:flex;flex-direction:column;gap:1px;}
.topbar-title b{font-size:17px;letter-spacing:1px;}
.topbar-title span{font-size:12px;color:#8a9aa4;}
.acct{gap:11px;}
.acct>span:last-child{display:flex;flex-direction:column;color:#4f6270;line-height:1.35;}
.acct small{color:#98a7b0;font-size:10.5px;}
.work-date{padding-right:14px;border-right:1px solid var(--line);color:#7b8d98!important;font-size:12px;}
.work{padding:20px 24px 40px;}

.workspace-view{width:100%;}
.overview-strip{display:grid;grid-template-columns:repeat(5,minmax(132px,1fr));background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;}
.metric{position:relative;min-height:112px;padding:18px 20px;border-right:1px solid #e7eef0;}
.metric:last-child{border-right:0;}
.metric span{display:block;color:#71818c;font-size:12.5px;}
.metric b{display:block;margin:4px 0 1px;color:#17374a;font-size:28px;line-height:1.25;font-weight:600;}
.metric small{color:#9aa8b0;font-size:10.5px;}
.metric::before{content:"";position:absolute;left:0;top:18px;width:3px;height:22px;background:#80b7c7;}
.metric.accent::before{background:var(--green);}
.metric.accent b{color:var(--green);}

.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr);gap:16px;margin-top:16px;}
.dashboard-grid.lower{grid-template-columns:minmax(300px,.75fr) minmax(0,1.65fr);}
.work-panel{min-width:0;background:#fff;border:1px solid var(--line);border-radius:6px;}
.panel-head,.section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;border-bottom:1px solid #e8eef0;}
.panel-head h3,.section-head h3{font-size:15px;letter-spacing:1px;font-weight:600;}
.panel-head p,.section-head p{margin-top:2px;color:#8b9aa3;font-size:11.5px;}
.text-btn{border:0;background:transparent;color:var(--lake);font:inherit;font-size:12px;white-space:nowrap;}
.text-btn:hover{text-decoration:underline;}
.mini-table-wrap{overflow:auto;}
.mini-table th,.mini-table td{padding:10px 14px;}
.mini-table td:first-child{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500;}
.mini-table .quick-op{white-space:nowrap;color:var(--lake);font-size:12px;cursor:pointer;}

.stage-list{padding:10px 18px 16px;}
.stage-row{display:grid;grid-template-columns:76px 1fr 30px;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed #e8eef0;}
.stage-row:last-child{border-bottom:0;}
.stage-row span{font-size:12px;color:#667984;}
.stage-row .track{height:7px;border-radius:4px;background:#edf2f4;overflow:hidden;}
.stage-row .fill{height:100%;background:#72aabb;border-radius:4px;}
.stage-row strong{text-align:right;font-size:13px;font-weight:600;color:#365161;}

.type-bars{padding:14px 18px 18px;}
.type-bar{display:grid;grid-template-columns:54px 1fr 28px;align-items:center;gap:10px;margin:10px 0;}
.type-bar span{color:#60737f;font-size:12px;}
.type-bar .track{height:8px;background:#edf2f3;border-radius:4px;overflow:hidden;}
.type-bar .fill{height:100%;background:var(--green-l);border-radius:4px;}
.type-bar strong{font-size:12px;text-align:right;color:#425c6b;}
.recent-log{padding:5px 18px 12px;}
.recent-item{display:grid;grid-template-columns:132px 78px 1fr;gap:12px;padding:10px 0;border-bottom:1px dashed #e5ecef;font-size:12.5px;}
.recent-item:last-child{border-bottom:0;}
.recent-item time{color:#8798a2;}
.recent-item b{font-weight:500;color:var(--lake-d);}
.recent-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4d606d;}

.filters{align-items:center;}
.filters.compact{border-bottom:1px solid var(--line);}
.filters select{max-width:176px;}
.batch{min-height:52px;flex-wrap:wrap;}
.table-wrap{width:100%;overflow-x:auto;}
.table-wrap>table{min-width:1120px;}
.match-table{min-width:1080px!important;}
.ops{white-space:nowrap;}
.ops a{display:inline-block;margin-right:9px;}
.ops a:last-child{margin-right:0;}
.ops a.ok{color:var(--green);}
.ops a.muted{color:#72838d;}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:10px 16px;color:#788993;font-size:12.5px;border-top:1px solid var(--line);}
.pagination>div{display:flex;align-items:center;gap:6px;}
.page-btn,.page-num{min-width:34px;height:32px;padding:0 10px;border:1px solid #cfdce2;border-radius:3px;background:#fff;color:#536a77;font:inherit;font-size:12px;}
.page-num{padding:0;}
.page-num.on{border-color:var(--lake);background:var(--lake);color:#fff;}
.page-btn:disabled{cursor:not-allowed;color:#b4bec4;background:#f5f7f8;border-color:#e1e7ea;}
.section-head{padding:16px 18px;background:#fff;}

.form-card{max-width:980px;padding:0;}
.form-title{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 24px;border-bottom:1px solid var(--line);}
.form-title h4{margin:0;font-size:16px;}
.form-title p{margin-top:4px;color:#8999a2;font-size:12px;}
.required-tip{font-size:11.5px;color:#8a9aa3;}
.required-tip i{font-style:normal;color:#c05a4e;}
.form-card .fgrid{padding:20px 24px 0;}
.form-card .form-foot{padding:0 24px 22px;}
.switch-line{display:flex!important;align-items:center;gap:8px;min-height:40px;padding:8px 10px;border:1px solid #d5e0e5;border-radius:4px;color:#60727e!important;background:#fafcfc;}
.switch-line input{width:16px!important;height:16px;accent-color:var(--green);}

.case-summary{margin-bottom:16px;padding:12px 14px;border-left:3px solid var(--lake);background:#f3f8fa;color:#48606e;font-size:12.5px;line-height:1.8;}
.follow-history{margin-top:18px;border-top:1px solid var(--line);padding-top:14px;}
.follow-history h4{margin-bottom:8px;font-size:13px;}
.follow-record{position:relative;padding:8px 10px 8px 18px;border-left:1px solid #cddce2;color:#526875;font-size:12.5px;}
.follow-record::before{content:"";position:absolute;left:-4px;top:14px;width:7px;height:7px;border-radius:50%;background:var(--lake);}
.follow-record time{display:block;margin-bottom:2px;color:#91a0a8;font-size:11px;}
.case-id{color:var(--lake-d);font-weight:600;white-space:nowrap;}
.case-party{display:block;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.stage{display:inline-block;padding:2px 9px;border-radius:10px;font-size:11.5px;white-space:nowrap;}
.stage.contact{color:#8a6a12;background:#faf3df;border:1px solid #ecdcb2;}
.stage.doing{color:#075b83;background:#e9f3f8;border:1px solid #cfe3ec;}
.stage.done{color:#118b6a;background:#e9f5f0;border:1px solid #cbe4d9;}
.stage.closed{color:#7a8894;background:#f0f2f4;border:1px solid #dde2e6;}
.log-result{max-width:360px;color:#526773;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

@media (max-width:1180px){
  .side{width:214px;}
  .work{padding:18px;}
  .overview-strip{grid-template-columns:repeat(3,1fr);}
  .metric:nth-child(3){border-right:0;}
  .metric:nth-child(n+4){border-top:1px solid #e7eef0;}
  .dashboard-grid,.dashboard-grid.lower{grid-template-columns:1fr;}
  .filters input{width:190px;}
}
@media (max-width:820px){
  .admin{display:block;}
  .side{position:static;width:100%;height:auto;}
  .logo,.side-foot,.menu-group{display:none;}
  .menu{display:flex;overflow-x:auto;padding:0;}
  .menu a{flex:none;min-height:48px;padding:12px 17px;border-left:0;border-bottom:3px solid transparent;}
  .menu a.on{border-bottom-color:var(--green-l);}
  .topbar{position:static;padding:10px 16px;}
  .work-date{display:none;}
  .work{padding:14px 12px 28px;}
  .overview-strip{grid-template-columns:repeat(2,1fr);}
  .metric:nth-child(2n){border-right:0;}
  .metric:nth-child(n+3){border-top:1px solid #e7eef0;}
  .fgrid{grid-template-columns:1fr;}
  .fgrid .full{grid-column:auto;}
  .filters>*{flex:1 1 160px;max-width:none!important;}
}
.auth-screen{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:24px;background:#eef4f3}
.auth-screen[hidden]{display:none}.auth-shell{display:grid;grid-template-columns:360px 420px;max-width:820px;width:100%;min-height:470px;background:#fff;border:1px solid #d8e4e1;box-shadow:0 22px 60px rgba(19,55,65,.16)}
.auth-brand{padding:54px 42px;color:#fff;background:#126f68;display:flex;flex-direction:column;justify-content:space-between}.auth-brand-mark{width:54px;height:54px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.55);font-size:26px;font-weight:700}.auth-brand h1{margin:24px 0 12px;font-size:28px;letter-spacing:0}.auth-brand p{margin:0;line-height:1.9;color:rgba(255,255,255,.8)}.auth-brand small{color:rgba(255,255,255,.66)}
.auth-form{padding:58px 48px}.auth-form h2{margin:0 0 8px;font-size:24px;color:#15313b}.auth-form>p{margin:0 0 34px;color:#75868b}.auth-field{margin-bottom:20px}.auth-field label{display:block;margin-bottom:8px;font-weight:600;color:#31484f}.auth-field input{width:100%;height:46px;border:1px solid #cfdcda;padding:0 13px;font-size:15px;outline:none}.auth-field input:focus{border-color:#148b7d;box-shadow:0 0 0 3px rgba(20,139,125,.1)}.auth-submit{width:100%;height:46px;border:0;background:#128979;color:#fff;font-size:16px;font-weight:600;cursor:pointer}.auth-submit:disabled{opacity:.6;cursor:wait}.auth-error{min-height:22px;margin:12px 0 0;color:#b34f47;font-size:13px}.acct{gap:10px}.acct-logout{border:0;background:transparent;color:#4f6b72;cursor:pointer;padding:6px}.acct-logout:hover{color:#0f7d70}
.loading-cover{position:fixed;inset:0;z-index:9000;display:grid;place-items:center;background:rgba(242,247,246,.72);color:#446067;font-size:14px}.loading-cover[hidden]{display:none}
@media(max-width:760px){.auth-shell{grid-template-columns:1fr;max-width:430px}.auth-brand{display:none}.auth-form{padding:42px 30px}}
.auth-pending .admin{visibility:hidden}
