.po-panel{min-width:0;color:#173f35}
.po-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:20px}
.po-header h2{font-size:38px;margin:4px 0 7px}.po-header p{margin:0;color:#6a7d74}.po-eyebrow{color:#a87327;font-weight:700}
.po-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.po-controls label{display:grid;gap:5px;color:#667970;font-size:13px}.po-controls input,.po-controls select{min-height:42px;border:1px solid #d5ccbd;border-radius:9px;background:#fff;padding:8px 10px;color:#173f35}
.po-notice,.po-card{border:1px solid #d6e1d4;border-radius:14px;background:#fff;padding:18px;margin:14px 0}.po-notice{background:#eef4ea}.po-error{color:#9b2f2f}.po-muted{color:#74847c}
.po-status{display:flex;justify-content:space-between;align-items:center;gap:12px}.po-badge{display:inline-block;border-radius:999px;padding:5px 10px;background:#e9eee8;color:#65736c;font-size:13px}.po-badge.ready{background:#dfeee2;color:#24603f}.po-badge.warn{background:#fff0d5;color:#805812}
.po-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #d6e1d4;border-radius:12px;overflow:hidden;margin:14px 0}.po-steps button{border:0;border-right:1px solid #d6e1d4;border-radius:0;background:#fff;padding:12px 7px;color:#60736a;min-width:0}.po-steps button:last-child{border:0}.po-steps button.active{background:#245b46;color:#fff}.po-steps b{display:block;font-size:17px}.po-steps span{display:block;margin-top:4px}
.po-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.po-metric{border:1px solid #e0e6de;border-radius:10px;padding:12px;background:#f9faf8}.po-metric small{display:block;color:#728078}.po-metric strong{display:block;font-size:20px;margin-top:5px}
.po-table{width:100%;border-collapse:collapse}.po-table th,.po-table td{padding:10px;border-bottom:1px solid #e0e6de;text-align:left}.po-table th{background:#f4f6f2}.po-scroll{overflow:auto;min-width:0}
.po-form label{display:grid;gap:6px;margin:12px 0;color:#425c51;font-weight:650}.po-form textarea,.po-form input{width:100%;box-sizing:border-box;border:1px solid #ccd8ce;border-radius:8px;padding:9px;background:#fff;color:#173f35}.po-form textarea{min-height:92px;resize:vertical}.po-list-row{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.5fr;gap:8px;margin:8px 0}.po-list-row.improvement{grid-template-columns:1.4fr 1.5fr 1fr}.po-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:14px}.po-actions button{padding:9px 14px}.po-actions .primary{background:#145943;color:#fff;border-color:#145943}.po-source-warning{padding:11px;border-radius:8px;background:#fff3dc;color:#7c5616}.po-vote{border-left:4px solid #b77c25}.po-vote-buttons{display:flex;gap:8px;margin-top:10px}
@media(max-width:760px){.po-header{display:block}.po-controls{margin-top:16px}.po-header h2{font-size:31px}.po-steps{grid-template-columns:1fr}.po-steps button{border-right:0;border-bottom:1px solid #d6e1d4;text-align:left}.po-grid{grid-template-columns:1fr}.po-list-row,.po-list-row.improvement{grid-template-columns:1fr}.po-table{min-width:620px}}
/* Same-page operating workspace, shared across quarter / half / year. */
#workspace .po-workspace .po-header{gap:12px;margin-bottom:8px;align-items:center;flex-wrap:wrap}
#workspace .po-workspace .po-header h2{font-size:28px;margin:0}
#workspace .po-workspace .po-controls{gap:6px}
#workspace .po-workspace .po-card{padding:var(--wb-card-padding,8px);margin:var(--wb-card-gap,8px) 0;border-radius:10px}
#workspace .po-workspace .po-card h3{margin:0 0 6px;font-size:18px}
#workspace .po-workspace .po-section-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#workspace .po-workspace .po-section-head h3{margin-right:auto}
#workspace .po-workspace .po-section-head [role=status]{font-size:13px;color:#853e22}
#workspace .po-workspace .po-anchors{display:flex;gap:6px;flex-wrap:wrap}
#workspace .po-workspace .po-anchors a{padding:8px 12px;border:1px solid #c2cfc4;border-radius:6px;color:#254d3c;min-height:40px;text-decoration:none}
#workspace .po-workspace .po-table{font-variant-numeric:tabular-nums}
#workspace .po-workspace .po-table td,#workspace .po-workspace .po-table th{padding:8px;text-align:left}
#workspace .po-workspace .po-form input{min-width:0;width:100%;field-sizing:fixed}
#workspace .po-workspace .po-form textarea{min-height:80px;background:#fcfdf8}
#workspace .po-workspace .po-form label{margin:6px 0;color:#315346}
#workspace .po-workspace :is(.po-muted,.po-header p){color:#4f6257}
#workspace .po-workspace [data-po-message]:empty{display:none}
#workspace .po-workspace .po-demand{display:inline-flex;align-items:center;gap:6px;margin:6px 14px 6px 0}
#workspace .po-workspace .po-demand input{width:20px;height:20px}
#workspace .po-workspace .po-comparison{min-width:650px}
@media(max-width:760px){
 #workspace .po-workspace .po-controls{margin-top:6px}
 #workspace .po-workspace :is(button,input,select,.po-anchors a,summary){min-height:44px}
 #workspace .po-workspace .po-comparison,#workspace .po-workspace .po-edit-table{display:block;min-width:0}
 #workspace .po-workspace :is(.po-comparison,.po-edit-table) thead{display:none}
 #workspace .po-workspace :is(.po-comparison,.po-edit-table) tbody{display:block}
 #workspace .po-workspace :is(.po-comparison,.po-edit-table) tr{display:block;padding:8px 0;border-bottom:1px solid #bccbbf}
 #workspace .po-workspace :is(.po-comparison,.po-edit-table) th{display:block;padding:6px 8px;background:#f1f5ed}
 #workspace .po-workspace :is(.po-comparison,.po-edit-table) td{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;padding:6px 8px;border:0;align-items:center}
 #workspace .po-workspace :is(.po-comparison,.po-edit-table) td:before{content:attr(data-label);color:#4f6257}
 #workspace .po-workspace .po-section-head button{margin-left:auto}
}
#workspace #periodic-operating-panel .po-form label:has(textarea){display:grid!important;width:100%!important;max-width:none!important;min-width:0!important}
#workspace #periodic-operating-panel .po-form textarea{display:block;width:100%!important;min-width:0!important;max-width:100%!important;min-height:88px!important;field-sizing:fixed!important;font-size:15px!important}

/* Compact entry mode shared by weekly / quarterly / half-year / annual forms. */
#workspace #periodic-operating-panel :is(.po-card,.po-metric){padding:8px;margin-block:8px}
#workspace #periodic-operating-panel :is(.po-grid,.po-list,.po-form){gap:8px}
#workspace #periodic-operating-panel .po-form label{gap:3px;margin:6px 0}
#workspace #periodic-operating-panel .po-list-row{
  grid-template-columns:repeat(4,max-content);
  justify-content:start;
  gap:6px;
  margin:6px 0;
}
#workspace #periodic-operating-panel .po-list-row.improvement{grid-template-columns:repeat(3,max-content)}
#workspace #periodic-operating-panel .po-form :is(input,select){
  width:fit-content!important;
  min-width:min(10ch,100%)!important;
  max-width:100%!important;
  field-sizing:content!important;
}
#workspace #periodic-operating-panel .po-form textarea{
  width:fit-content!important;
  min-width:min(24ch,100%)!important;
  max-width:min(72ch,100%)!important;
  height:auto!important;
  min-height:38px!important;
  max-height:16rem!important;
  field-sizing:content!important;
  overflow-y:auto;
}
#workspace #periodic-operating-panel :is(.po-table,.po-comparison,.po-edit-table) :is(th,td){height:auto;padding:6px 8px}
#workspace #periodic-operating-panel :is(.po-table,.po-comparison,.po-edit-table) th{white-space:nowrap}
@media(max-width:760px){
  #workspace #periodic-operating-panel .po-list-row,
  #workspace #periodic-operating-panel .po-list-row.improvement{grid-template-columns:1fr}
  #workspace #periodic-operating-panel :is(button,input:not([type="checkbox"]):not([type="radio"]),select,textarea,.po-anchors a){min-height:44px!important}
}
#workspace #periodic-operating-panel .po-table input{width:100%!important;min-width:0!important;max-width:100%!important;min-height:40px;field-sizing:fixed!important}
#workspace #periodic-operating-panel .po-section-head button{background:#f3f7ef;border:1px solid #9cac9e;border-radius:6px;padding:8px 12px}
@media(max-width:760px){#workspace #periodic-operating-panel .po-table input{min-height:44px}}
