/* Personalfluss 2026.10 – calm, one-profile workflow.
   Overrides v2 styles without changing PEP/team contracts. */
.staff-v2-body{background:#f7f1e9;color:#342927}
.staff-shell{width:min(1190px,calc(100% - 56px));padding-top:30px}
.staff-breadcrumb{margin-bottom:20px}
.staff-head{padding:39px 42px;border-radius:14px;background:
  radial-gradient(circle at 100% 0%,rgba(126,47,58,.10),transparent 38%),
  linear-gradient(120deg,#fffaf5,#f5e9e0);
  border-color:#e7d4c7;box-shadow:0 18px 45px rgba(77,39,39,.06)}
.staff-head:after{border-color:#ddc7bd}
.staff-head h1{font-family:Georgia,'Times New Roman',serif;font-weight:500;
  color:#4c2428;letter-spacing:-.065em;line-height:1.05}
.staff-head h1 em{color:#801924}
.staff-head p{max-width:550px;line-height:1.6}
.staff-hero-meta{margin-top:16px;gap:9px 17px;color:#866e66}
.staff-head-actions .btn{min-height:48px}
.staff-storage-note{margin:17px 0 0;border:1px solid #e7d8c6;border-left:3px solid #a37669;
  background:#fff9ef;color:#725a50;padding:13px 16px}
.staff-summary{margin:18px 0 13px;gap:12px}
.staff-summary>div{border-radius:11px!important;padding:21px 23px!important;
  box-shadow:0 7px 22px rgba(63,28,31,.035);background:#fffdfa}
.staff-summary>div:last-child{background:linear-gradient(140deg,#7d202d,#64202d);
  border-color:#742b38!important;color:#fff}
.staff-summary>div:last-child small,.staff-summary>div:last-child span{color:#f5dce0}
.staff-summary>div:last-child strong{color:#fff;font-size:clamp(20px,2.2vw,29px);overflow-wrap:anywhere}
.staff-summary small{font-size:11px;text-transform:none;letter-spacing:0}
.staff-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:19px}
.staff-quick-actions a{border-color:#e7d9cf;border-radius:10px;padding:16px 19px;background:#fffdfa}
.staff-quick-actions a:hover{border-color:#b98287;background:#fff9f6}
.staff-quick-symbol{background:#f3e7e2;color:#7b1d2c}
.staff-quick-actions strong{font-size:13px}
.staff-list-wrap{border-color:#e6d6cc;border-radius:13px}
.staff-toolbar{padding:25px 27px 18px}
.staff-toolbar h2{color:#60242e}
.staff-filters{background:#fffaf5;padding:15px 27px}
.staff-filters label{max-width:100%;width:100%;font-weight:750;font-size:12px}
.staff-filters input{min-height:48px;font-size:14px}
.staff-card{grid-template-columns:46px minmax(0,1fr) 105px minmax(100px,130px) auto;
  border-color:#f0e4dc;padding:19px 26px;gap:15px}
.staff-card:nth-child(even){background:#fffaf7}
.staff-card:hover{background:#faf2ef}
.staff-card.selected{background:#f9edef;box-shadow:inset 4px 0 0 #811e30}
.staff-avatar{background:#f0e0df;color:#762535;border-radius:12px}
.staff-main strong{font-size:15px}
.staff-hours,.staff-wage-cell{min-width:0;display:grid;gap:4px}
.staff-hours small,.staff-wage-cell small{font-size:10px;color:#958078;line-height:1.3}
.staff-hours strong,.staff-wage-cell strong{font-size:12px;font-weight:800;color:#50373a;overflow-wrap:anywhere}
.staff-more{font-size:12px;white-space:nowrap;background:#f5e8e6;border:1px solid #e8cfd0;
  color:#782333;padding:12px 15px;border-radius:7px}
.staff-more:hover{background:#eddbda}
.staff-profile{margin-top:19px;border-color:#e7d7cd;border-radius:13px;padding:26px}
.staff-profile-top{padding-bottom:17px}
.staff-profile-top h2{color:#59242e;margin-top:4px}
.staff-profile-top-actions{display:flex;gap:9px;flex-wrap:wrap}
.staff-profile-top-actions .btn{font-size:12px;min-height:42px}
.staff-profile-grid{display:block;padding-top:19px}
.staff-profile-person{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px 20px;
  align-items:center;padding:19px 22px;border-color:#eadbd1;background:#fff8f3}
.staff-profile-avatar{grid-row:1/3;margin:0}
.staff-profile-identity{grid-column:2;align-self:center}
.staff-profile-identity strong{font-size:21px;color:#4b292f}
.staff-sample-note{grid-column:1/-1}
.staff-profile-facts{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  margin:8px 0 0;gap:10px}
.staff-profile-facts>div{border:1px solid #ecded5;background:#fffdfa;
  padding:12px 14px;border-radius:7px;display:grid;gap:5px}
.staff-profile-facts dt{font-size:10px}
.staff-profile-facts dd{font-size:13px}
.staff-compensation{margin-top:13px;padding:21px 23px;
  background:linear-gradient(130deg,#fffaf5,#f8eeea);
  border:1px solid #e8d9ce;border-radius:11px}
.staff-compensation-heading h3{color:#6b2732;font:500 26px/1.12 Georgia,serif;
  letter-spacing:-.045em;margin:7px 0 15px}
.staff-compensation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.staff-compensation-grid>div{padding:17px 19px;background:#fffdfa;border:1px solid #e9dbd4;border-radius:9px;min-width:0}
.staff-compensation-grid small{display:block;font-size:11px;color:#816b65;line-height:1.45}
.staff-compensation-grid strong{display:block;font:650 clamp(22px,2.5vw,31px)/1.2 Georgia,serif;
  color:#80202e;margin-top:8px;letter-spacing:-.035em;overflow-wrap:anywhere}
.staff-compensation-note{font-size:11px;line-height:1.65;color:#846b64;margin:13px 0 0}
.staff-planning-details,.staff-legacy-transfer{margin-top:13px;border:1px solid #e7d9d0;
  border-radius:9px;background:#fffdfa;overflow:hidden}
.staff-planning-details>summary,.staff-legacy-transfer>summary{list-style:none;cursor:pointer;padding:15px 20px;
  font-weight:750;color:#733545;font-size:12px;display:flex;align-items:center;justify-content:space-between}
.staff-planning-details>summary::after,.staff-legacy-transfer>summary::after{content:'+';font-size:20px;line-height:1}
.staff-planning-details[open]>summary::after,.staff-legacy-transfer[open]>summary::after{content:'−'}
.staff-planning-details .staff-profile-planning{border:0;border-top:1px solid #ece0db;border-radius:0;background:#fffefa}
.staff-legacy-transfer{background:#fff9f5}
.staff-legacy-transfer[hidden]{display:none!important}
.staff-legacy-transfer>p,.staff-legacy-transfer>form{margin:12px 19px;font-size:11px;line-height:1.65;color:#735e59}
.staff-legacy-transfer form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
.staff-legacy-transfer label{display:grid;gap:6px;flex:1 1 200px;font-size:11px;font-weight:700}
.staff-legacy-transfer input{width:100%;padding:11px;border:1px solid #e0cac6;border-radius:7px}
.staff-legacy-transfer .btn{min-height:43px}
.staff-profile-actions{margin-top:12px;padding-top:16px}
.employee-dialog{width:min(96vw,535px);border-radius:13px}
.employee-dialog .dialog-head h2{font-size:29px}
.employee-dialog input,.employee-dialog select{border-radius:7px;min-height:46px;font-size:14px}
.employee-dialog input[type=number]{font-variant-numeric:tabular-nums}
.staff-modal-hint{font-size:11px;line-height:1.5;color:#876e63;margin:-5px 0 0}
.employee-dialog .dialog-actions{margin-top:4px}
.staff-error[hidden],.staff-profile[hidden]{display:none!important}
@media(max-width:880px){
 .staff-card{grid-template-columns:44px minmax(0,1fr) 90px minmax(80px,105px) auto;gap:10px;padding:16px}
 .staff-summary>div{padding:16px!important}
}
@media(max-width:700px){
 .staff-shell{width:calc(100% - 30px)}
 .staff-head{padding:27px 24px}
 .staff-head h1{font-size:clamp(37px,7vw,52px)}
 .staff-head-actions{flex-wrap:wrap}
 .staff-summary{grid-template-columns:1fr 1fr}
 .staff-summary>div:last-child{grid-column:1/-1}
 .staff-quick-actions{grid-template-columns:1fr}
 .staff-card{grid-template-columns:45px minmax(0,1fr) auto;gap:11px;padding:16px}
 .staff-main{grid-column:2}
 .staff-hours{grid-column:2;grid-row:2;display:flex;gap:7px;align-items:baseline}
 .staff-wage-cell{grid-column:2;grid-row:3;display:flex;gap:7px;align-items:baseline}
 .staff-more{grid-column:3;grid-row:1/4;align-self:center}
 .staff-toolbar,.staff-filters{padding:17px}
 .staff-profile-top{align-items:flex-start;flex-direction:column}
 .staff-profile{padding:17px}
}
@media(max-width:440px){
 .staff-head-actions{flex-direction:column;align-items:stretch}
 .staff-head h1{font-size:37px}
 .staff-summary strong{font-size:23px}
 .staff-compensation{padding:15px}
 .staff-compensation-grid{grid-template-columns:1fr}
 .staff-profile-person{grid-template-columns:54px 1fr;padding:15px;gap:8px 12px}
 .staff-profile-avatar{width:50px;height:50px;font-size:15px}
 .staff-profile-facts{grid-template-columns:1fr}
 .staff-profile-top-actions{width:100%}
 .staff-profile-top-actions .btn{flex:1 1 auto;text-align:center}
 .staff-more{padding:9px;font-size:10px;white-space:normal;max-width:90px}
 .staff-wage-cell strong{font-size:11px}
 .employee-dialog form{padding:20px}
 .employee-dialog .dialog-two{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.staff-more,.staff-card{transition:none}}
@media print{.staff-profile-top-actions,.staff-legacy-transfer{display:none!important}}
