/* Shared frame for planning, account, administration and approvals. */
.sidebar .brand{color:inherit;text-decoration:none}
.sidebar #main-nav,.sidebar .sidebar-bottom{display:grid;gap:5px}
.sidebar .nav-link,.sidebar #main-nav button{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:11px 13px;border:0;border-radius:11px;background:none;color:#e4d8ed;text-decoration:none;text-align:left;font:inherit;font-weight:650;line-height:1.35;cursor:pointer}
.sidebar .nav-link:hover,.sidebar #main-nav button:hover{background:#ffffff12}
.sidebar .nav-link.active{background:#ffffff22;box-shadow:inset 4px 0 0 var(--yellow);color:#fff}
.sidebar .nav-icon{flex:0 0 18px;text-align:center}
.sidebar .sidebar-bottom{margin-top:auto;padding-top:36px}
.sidebar-bottom form{margin:0}
.sidebar .sidebar-bottom>a{display:flex}
.case-chip .eyebrow,.stage-label{display:block;font-size:.68rem;letter-spacing:.06em;font-weight:650;color:#cfbbde}
.case-chip select{width:100%;min-width:0;font-size:1.13rem;font-weight:750;margin-bottom:14px}
.case-chip .stage-label{margin-bottom:6px;letter-spacing:0;text-transform:none}
.stage-chip{max-width:100%;box-sizing:border-box;white-space:normal;text-wrap:balance;line-height:1.35}
.current-center{margin-top:22px;padding:14px 13px;border-top:1px solid #ffffff2b;display:grid;gap:5px}
.current-center strong{font-size:.88rem}.current-center>span:not(.stage-label){font-size:.72rem;line-height:1.4;color:#e4d8ed}
.center-switch{margin-top:7px;font-size:.78rem;font-weight:650;color:white;text-underline-offset:4px}
.page-actions{gap:14px;flex-wrap:wrap}
.stat-card{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px 20px;min-height:160px}
.stat-card .stat-label{min-height:2.7em;display:flex;align-items:center;justify-content:center;line-height:1.35}
.stat-card .stat-value{font-size:clamp(2.1rem,3.2vw,3.2rem);line-height:1.18;margin:10px 0;max-width:100%;white-space:nowrap}
.stat-card.pink .stat-value{font-size:clamp(1.6rem,2.7vw,2.8rem)}
.stat-card .stat-detail{font-size:.75rem;line-height:1.4;margin:0}
.progress-row{grid-template-columns:130px minmax(100px,1fr) 235px;gap:18px;min-height:62px}
.progress-row .bar span{background:var(--green);min-width:0}
.progress-count{text-align:left;font-size:.78rem;line-height:1.5}
.progress-count strong{font-weight:650}.progress-count small{display:block;color:var(--muted)}
.timeline-deadline{display:block;margin-top:9px;font-size:.73rem;line-height:1.5;color:var(--ink)}
.timeline-deadline time{display:block;white-space:nowrap}
.topbar-title{min-width:0}.topbar-title .eyebrow{line-height:1.4;text-wrap:balance}
.countdown{flex-shrink:0}.countdown strong{font-size:.8rem;white-space:nowrap}
.signed-in{max-width:220px}.signed-in strong{line-height:1.35;text-wrap:balance}
.portal-content>.card,.portal-content>.status-grid,.portal-content>.account-nav,.portal-content>.notice{margin-bottom:24px}
.portal-content .account-nav{display:flex;flex-wrap:wrap;gap:12px}
.portal-content .account-form{max-width:none}
.portal-content .field-grid{align-items:start}
.portal-content .card h3{margin-top:24px}
.portal-content .card>.actions{margin-bottom:20px}
.portal-content .status-grid .card{text-align:center}
.portal-content .status-grid .stat-value{font-size:clamp(2rem,3vw,3rem);white-space:nowrap}
.assigned-center-table form{margin:0}.assigned-center-table td:last-child{width:1%;white-space:nowrap}
.assigned-center-table .current-label{display:block;font-size:.7rem;font-weight:650;color:var(--violet)}
@media(max-width:1100px){.progress-row{grid-template-columns:110px minmax(80px,1fr) 190px;gap:12px}.stat-card{padding:20px 12px}.stat-card .stat-value{font-size:2.1rem}.stat-card.pink .stat-value{font-size:1.65rem}.topbar-actions{gap:12px}.countdown-icon{display:none}}
@media(max-width:700px){.progress-row{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}.progress-row>.bar{grid-row:2;grid-column:1/-1}.progress-count{text-align:right}.stat-card .stat-value{font-size:2.4rem}.stat-card.pink .stat-value{font-size:2rem}.countdown strong{font-size:.68rem}.signed-in{display:none}.topbar-title{flex:1}.topbar-actions{flex:0}.timeline-deadline time{white-space:normal}.page-actions>.button{flex:1}.portal-content .status-grid{grid-template-columns:1fr}}
@media print{.portal-server .portal-content{padding:0}.portal-server .sidebar,.portal-server .topbar{display:none}}
@media(max-width:700px){
  .portal-page .topbar{display:grid;grid-template-columns:32px minmax(0,1fr);gap:7px 12px;align-items:center}
  .portal-page .topbar-title strong{white-space:normal;line-height:1.3;text-wrap:balance}
  .portal-page .topbar-actions{grid-column:2;justify-content:flex-start;max-width:100%}
  .portal-page .countdown{padding:5px 9px;max-width:100%}
  .portal-page .countdown small{display:inline;margin-right:6px;font-size:.62rem}
  .assigned-center-table,.assigned-center-table tbody,.assigned-center-table tr,.assigned-center-table td{display:block;min-width:0;width:100%}
  .assigned-center-table thead{display:none}
  .assigned-center-table tr{padding:14px 12px;border-bottom:1px solid var(--line)}
  .assigned-center-table tr:last-child{border-bottom:0}
  .assigned-center-table td{padding:4px 0;border:0}
  .assigned-center-table td:last-child{width:100%;margin-top:9px}
  .assigned-center-table .button{width:100%}
}
/* Uniform controls, stable labels and readable long amounts on all portal pages. */
.field input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.field select:not([multiple]),input.search{box-sizing:border-box;height:46px;min-height:46px;max-width:100%;padding:10px 12px;font:inherit;font-size:.88rem;line-height:24px;margin:0}
.field select:not([multiple]){appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23551285' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.field-grid{align-items:start;row-gap:22px}.field-grid>.field{display:flex;flex-direction:column;gap:7px}.field-grid>.field>span:first-child{display:flex;align-items:flex-end;min-height:2.6em;line-height:1.3;margin:0}.field-grid>.field>input[type=hidden]{display:none}
.field input[type=checkbox],.field input[type=radio]{height:auto;min-height:0;width:auto}.field select[multiple]{min-height:180px}.table-wrap+form,.table-wrap+.field-grid{margin-top:22px}.card>form+.field-grid{margin-top:18px}fieldset{min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px 16px}.analysis-selection{margin:18px 0 0}.filter-card .help{margin-bottom:0}
.stat-card{min-height:145px;padding:21px 17px}.stat-card .stat-value{display:block;width:100%;min-width:0;font-size:clamp(1.7rem,2.65vw,2.6rem);white-space:nowrap;letter-spacing:-.035em}.stat-card.pink .stat-value{font-size:clamp(1.7rem,2.65vw,2.6rem)}.stat-card .stat-label{min-height:2.6em;max-width:100%;font-size:.73rem}.stat-value{max-width:100%;font-variant-numeric:tabular-nums}.stat-detail{max-width:100%}
.procedure-card{padding:16px 22px}.timeline-deadline{margin:0 0 15px;font-size:.75rem;line-height:1.4}.timeline-deadline time{display:inline;white-space:nowrap}.timeline{padding:8px 0 0}.timeline-item{padding-top:10px}.timeline-item>span{display:block;margin-top:3px}
.change-actions{gap:4px;flex-wrap:nowrap;margin-top:8px}.change-actions .button{font-size:.7rem;min-height:28px;padding:4px 7px;border-radius:6px}.change-history td{vertical-align:top}.test-role-form{display:grid;gap:7px;margin:16px 0}.test-role-form select{box-sizing:border-box;min-height:40px;width:100%;min-width:0;padding:8px;border-radius:8px;font:inherit;font-size:.75rem;background:#fff;color:var(--violet)}
@media(max-width:1200px){.financial-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .portal-page .topbar{grid-template-columns:32px minmax(0,1fr) auto;gap:8px;padding:10px 14px;min-height:65px}.portal-page .topbar-title strong{font-size:.94rem;line-height:1.2;margin:0}.portal-page .topbar-title .eyebrow{display:none}.portal-page .topbar-actions{grid-column:3;grid-row:1;width:auto;max-width:120px}.portal-page .countdown{display:grid;padding:6px 8px;border-radius:8px;text-align:center}.portal-page .countdown small{display:block;font-size:.59rem;margin:0 0 1px}.portal-page .countdown strong{font-size:.73rem}.portal-page .menu-toggle{width:32px;height:36px;color:var(--violet)}
 .portal-page main{padding:18px 14px}.portal-page .cols-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-card{min-height:108px;padding:13px 10px}.stat-card .stat-label{font-size:.65rem;min-height:2.6em}.stat-card .stat-value,.stat-card.pink .stat-value{font-size:1.85rem;margin:6px 0}.stat-card .stat-detail{font-size:.6rem}.page-actions{gap:10px;margin-bottom:18px}.page-actions>.button{padding:9px 10px;font-size:.74rem;line-height:1.35;min-height:46px;text-wrap:balance}.page-lead h1{font-size:1.6rem}.section-head{margin-top:24px}.section-head h2{font-size:1.2rem}.card{padding:16px}.procedure-card{padding:14px}.timeline{gap:14px;padding-top:6px}.timeline-item strong{font-size:.73rem}.timeline-item span{font-size:.68rem;margin-left:0}.timeline-deadline{font-size:.7rem;margin-bottom:14px}.field-grid>.field>span:first-child{min-height:0}.field-grid{row-gap:16px}.timeline-deadline time{white-space:normal}
 .portal-page .sidebar{width:min(310px,88vw)}.brand strong{font-size:1rem}.brand-mark{width:40px;height:40px;flex-shrink:0}.current-center{margin-top:14px}.sidebar .sidebar-bottom{padding-top:24px}.progress-row{min-height:0;margin:15px 0}.change-actions{flex-wrap:wrap}.portal-content .card h3{margin-top:20px}
}
@media(max-width:700px){.procedure-card .timeline{display:grid;gap:13px}.procedure-card .timeline-item{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;border-top:0;border-left:3px solid #e6ddec;padding:3px 0 3px 12px}.procedure-card .timeline-item.current{border-left-color:var(--violet)}.procedure-card .timeline-item.done{border-left-color:var(--green)}.procedure-card .timeline-item:before{top:8px;left:-6px;width:9px;height:9px}.procedure-card .timeline-item strong{font-size:.72rem}.procedure-card .timeline-item>span{font-size:.64rem;margin:0;text-align:right;white-space:nowrap}}
/* Individual staffing, one forecast chart per row. */
.personnel-charts{grid-template-columns:minmax(0,1fr)!important;gap:20px}.personnel-charts h3{min-height:0}.personnel-charts .change-chart{grid-template-columns:repeat(var(--chart-columns),minmax(0,1fr));overflow:visible;gap:10px}.personnel-charts .change-column strong{white-space:normal;overflow-wrap:anywhere;font-size:clamp(.65rem,.95vw,.85rem)}.personnel-charts .change-column{grid-template-rows:42px 130px 25px}.position-card{padding:18px 22px;margin-bottom:14px}.position-card h3{margin:4px 0 0;font-size:1.05rem}.position-card .section-head{margin-bottom:14px}.position-card .actions{gap:8px;flex-wrap:wrap}.position-card .button{padding:7px 11px;min-height:34px}.position-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 22px;margin:0 0 12px}.position-facts dt{color:var(--muted);font-size:.74rem;margin-bottom:4px}.position-facts dd{margin:0;font-size:.86rem;overflow-wrap:anywhere}.position-card details>summary{cursor:pointer;color:var(--purple);font-weight:600;font-size:.84rem}.position-card details p{font-size:.83rem;line-height:1.5}.position-editor .field{margin-bottom:16px}.position-editor .section-head{margin-bottom:22px}
@media(max-width:800px){.personnel-charts .change-chart{grid-template-columns:repeat(var(--chart-columns),minmax(95px,1fr));overflow:auto}.personnel-charts .change-column strong{white-space:nowrap;font-size:.7rem}.position-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.position-card{padding:16px}.position-card .section-head{align-items:flex-start;flex-direction:column;gap:12px}}

.personnel-filter .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.personnel-filter .actions{margin-top:16px}.stat-card.red{border-top-color:var(--red)}
@media(max-width:700px){.personnel-filter .field-grid{grid-template-columns:1fr}}
.stat-card.red:before{background:var(--red)}
