/* FÜRSORGEWERK MITARBEITERVERWALTUNG 1.5.12 – LAYOUT AUSWAHL OBEN */
.ma-shell{display:flex;flex-direction:column;gap:18px}.ma-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;background:#fff;border:1px solid #dce8e7;border-radius:22px;padding:20px;box-shadow:0 10px 26px rgba(20,55,63,.08)}.ma-head h3{margin:8px 0 8px;font-size:26px}.ma-head p{margin:0;color:#587077;max-width:780px}.ma-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.ma-alert{border:1px solid #e7d39a;background:#fff8df;border-radius:18px;padding:14px 16px;color:#6a5115}.ma-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px}.ma-stats div{background:#fff;border:1px solid #dce8e7;border-radius:18px;padding:14px;box-shadow:0 8px 20px rgba(20,55,63,.06)}.ma-stats strong{display:block;font-size:24px;color:var(--teal,#005858)}.ma-stats span{font-size:12px;color:#657b82}.ma-layout{display:grid;grid-template-columns:minmax(320px,420px) 1fr;gap:18px;align-items:start}.ma-list-card,.ma-detail-card{border-radius:22px}.ma-filterbar{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}.ma-filterbar input,.ma-filterbar select,.ma-form input,.ma-form select,.ma-form textarea{width:100%;border:1px solid #d4e1e1;border-radius:12px;padding:11px 12px;background:#fff;font:inherit;box-sizing:border-box}.ma-check{display:flex!important;align-items:center;gap:8px;font-weight:600;color:#345058}.ma-check input{width:auto!important}.ma-check-box{background:#f5fbfb;border:1px solid #dce8e7;border-radius:14px;padding:12px;align-self:end}.ma-list{display:flex;flex-direction:column;gap:10px}.ma-row{width:100%;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;text-align:left;background:#fff;border:1px solid #dce8e7;border-radius:18px;padding:14px;cursor:pointer;transition:.16s ease}.ma-row:hover,.ma-row.active{background:#dff4f3;border-color:var(--teal,#005858);transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,108,112,.13)}.ma-row-main strong{display:block;color:#183940}.ma-row-main small{display:block;color:#61787f;margin-top:4px}.ma-row-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:120px}.ma-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.ma-badge-ok{background:#ddf6e7;color:#146233}.ma-badge-warn{background:#fff1c8;color:#7a5510}.ma-badge-danger{background:#ffe0de;color:#8a1c16}.ma-form{display:flex;flex-direction:column;gap:16px}.ma-detail-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid #dce8e7;padding-bottom:16px}.ma-detail-head h3{margin:8px 0 4px;font-size:25px}.ma-detail-head p{margin:0;color:#60777e}.ma-detail-actions{display:flex;align-items:flex-end;flex-direction:column;gap:8px}.ma-section-title{font-weight:900;color:#1c444b;margin-top:4px;padding-top:4px}.ma-grid{grid-template-columns:repeat(3,minmax(160px,1fr));gap:14px}.ma-form label{font-weight:700;color:#314d55}.ma-form label input,.ma-form label select,.ma-form label textarea{margin-top:6px}.ma-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px}.ma-doc-card{border:1px solid #dce8e7;background:#fbffff;border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:10px}.ma-doc-card.required{border-left:5px solid var(--teal,#005858)}.ma-doc-card.expiring{background:#fffaf0;border-color:#ead28c}.ma-doc-card.expired{background:#fff3f2;border-color:#ef9f98}.ma-doc-hint{display:block;margin-top:5px;font-weight:800}.ma-doc-hint.warn{color:#7a5510}.ma-doc-hint.danger{color:#8a1c16}.ma-doc-title{display:flex;justify-content:space-between;gap:10px}.ma-doc-title span{background:#e9f5f4;color:#11676a;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800}.ma-note-box{background:#f2f8f8;border:1px solid #d4e7e6;border-radius:16px;padding:14px;color:#405b63}.ma-compliance{background:#fff8df;border:1px solid #e4ca83;border-radius:16px;padding:14px;color:#5f4915}.ma-compliance ul{margin:8px 0 0;padding-left:20px}.ma-compliance li{margin:4px 0}.ma-compliance li.danger{color:#8a1c16;font-weight:800}.ma-compliance li.warn{color:#7a5510;font-weight:800}.ma-compliance-ok{background:#eefaf3;border-color:#bfe5ce;color:#155c34}.ma-bottom-actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid #dce8e7;padding-top:16px}.ma-form input:disabled,.ma-form select:disabled,.ma-form textarea:disabled{background:#f2f5f5;color:#60777e;cursor:not-allowed}@media(max-width:1100px){.ma-layout{grid-template-columns:1fr}.ma-stats{grid-template-columns:repeat(2,minmax(120px,1fr))}.ma-grid,.ma-doc-grid{grid-template-columns:1fr}}@media(max-width:700px){.ma-head,.ma-detail-head{flex-direction:column}.ma-stats{grid-template-columns:1fr}.ma-row{flex-direction:column}.ma-row-side{align-items:flex-start}}

/* 1.5.5 Bedienfreundliche Arbeitszeiten */
.ma-top-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f4fbfb;border:1px solid #cfe3e2;border-radius:18px;padding:14px;margin:2px 0 4px}
.ma-big-action{font-size:16px!important;padding:14px 18px!important;border-radius:16px!important;font-weight:900!important;min-height:50px}
.ma-save-hint{font-size:13px;color:#557178;font-weight:800}
.ma-planning-box{background:#fbffff;border:1px solid #dce8e7;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:14px}
.ma-planning-head{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;align-items:end}
.ma-plan-summary{background:#eaf7f6;border:1px solid #cfe8e6;border-radius:14px;padding:12px}
.ma-plan-summary strong{display:block;font-size:22px;color:var(--teal,#005858)}
.ma-plan-summary span{font-size:12px;color:#5f777e;font-weight:800}
.ma-simple-table{display:flex;flex-direction:column;border:1px solid #d7e8e7;border-radius:16px;overflow:hidden;background:#fff}
.ma-simple-row{display:grid;grid-template-columns:1.2fr .7fr 1fr 1fr;gap:10px;align-items:center;padding:10px 12px;border-top:1px solid #e4eeee}
.ma-simple-row:first-child{border-top:0}
.ma-simple-row-head{background:#eaf7f6;font-weight:900;color:#204951}
.ma-simple-row input[type=time]{margin-top:0}
.ma-absence-title{font-weight:900;color:#1c444b;margin-top:4px}
.ma-absence-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px}
.ma-absence-card{background:#fff;border:1px solid #dce8e7;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px}
.ma-bottom-actions .primary-btn,.ma-bottom-actions .secondary-btn,.ma-actions .primary-btn,.ma-actions .secondary-btn{min-height:48px;padding:13px 18px;border-radius:16px;font-weight:900}
@media(max-width:1100px){.ma-planning-head,.ma-absence-grid{grid-template-columns:1fr}.ma-simple-row{grid-template-columns:1fr 90px 1fr 1fr}}
@media(max-width:700px){.ma-simple-row{grid-template-columns:1fr}.ma-simple-row-head{display:none}}


/* 1.5.6 Abschnitt-Speichern / Bedienfix */
.ma-subsection-title{font-weight:900;color:#173e45;background:#edf8f7;border:1px solid #d2e7e6;border-radius:14px;padding:10px 12px;margin-top:4px}
.ma-helper-line{background:#fff;border:1px dashed #c9dddd;border-radius:14px;padding:10px 12px;color:#506b72;font-weight:700;font-size:13px}
.ma-section-save{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f7fbfb;border:1px solid #d6e9e8;border-radius:16px;padding:12px;margin-top:2px}
.ma-section-save-btn{font-size:15px!important;padding:13px 18px!important;border-radius:16px!important;font-weight:900!important;min-height:50px;min-width:220px}
.ma-section-save span{font-size:13px;color:#5c747b;font-weight:800}
@media(max-width:700px){.ma-section-save-btn{width:100%}.ma-section-save span{width:100%}}


/* 1.5.7 Vertragsart- und Austrittsfenster */
.ma-modal{position:fixed;inset:0;background:rgba(15,38,44,.45);display:none;align-items:center;justify-content:center;z-index:9999;padding:22px;box-sizing:border-box}
.ma-modal.open{display:flex}
.ma-modal-card{width:min(760px,96vw);max-height:90vh;overflow:auto;background:#fff;border:1px solid #cfe3e2;border-radius:24px;box-shadow:0 24px 70px rgba(15,38,44,.28);padding:20px;display:flex;flex-direction:column;gap:16px}
.ma-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #dce8e7;padding-bottom:14px}
.ma-modal-head h3{margin:6px 0 0;font-size:24px;color:#173e45}
.ma-employment-options{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px}
.ma-employment-option{border:1px solid #dce8e7;background:#fbffff;border-radius:18px;padding:14px;display:flex!important;flex-direction:column;gap:7px;cursor:pointer}
.ma-employment-option input{width:auto!important;margin:0!important}
.ma-employment-option strong{font-size:16px;color:#183f46}
.ma-employment-option span{font-size:12px;color:#5e747b;font-weight:800}
.ma-modal-actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid #dce8e7;padding-top:14px}
@media(max-width:700px){.ma-employment-options{grid-template-columns:1fr}.ma-modal-card{padding:16px}.ma-modal-actions .ma-big-action{width:100%}}


/* 1.5.11 Verfügbarkeit klar getrennt / Layout korrigiert */
.ma-plan-summary-clear{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch}
.ma-plan-summary-clear div{background:#fff;border:1px solid #d6e9e8;border-radius:12px;padding:10px}
.ma-planning-warning{background:#fff8df;border-color:#ead28c;color:#685014}
@media(max-width:700px){.ma-plan-summary-clear{grid-template-columns:1fr}}


/* 1.5.11 Aufklappbare Abschnitte / Layout-Fix */
.ma-accordion{background:#fff;border:1px solid #dce8e7;border-radius:20px;overflow:hidden;box-shadow:0 8px 20px rgba(20,55,63,.04)}
.ma-accordion + .ma-accordion{margin-top:2px}
.ma-accordion>summary{list-style:none;cursor:pointer;padding:16px 18px;font-weight:900;color:#173e45;background:#eef8f7;display:flex;align-items:center;justify-content:space-between;gap:12px}
.ma-accordion>summary::-webkit-details-marker{display:none}
.ma-accordion>summary:after{content:'öffnen';font-size:12px;color:#0b6f73;background:#fff;border:1px solid #cfe3e2;border-radius:999px;padding:5px 10px;font-weight:900}
.ma-accordion[open]>summary:after{content:'schließen'}
.ma-accordion-body{padding:16px;display:flex;flex-direction:column;gap:14px}
.ma-planning-head{grid-template-columns:repeat(2,minmax(220px,1fr))!important;align-items:stretch!important}
.ma-plan-summary{grid-column:1/-1!important;min-width:0!important}
.ma-plan-summary-clear{grid-template-columns:repeat(2,minmax(180px,1fr))!important;width:100%;box-sizing:border-box}
.ma-plan-summary-clear div{min-width:0;overflow:hidden}
.ma-plan-summary-clear strong{font-size:20px;line-height:1.15;word-break:normal;overflow-wrap:anywhere}
.ma-planning-box{gap:12px!important}
@media(max-width:900px){.ma-planning-head{grid-template-columns:1fr!important}.ma-plan-summary-clear{grid-template-columns:1fr!important}.ma-accordion-body{padding:14px}.ma-accordion>summary{padding:15px}}

/* 1.5.11 echte aufklappbare Abschnittspunkte */
.ma-accordion{
  margin:0 0 12px 0!important;
  border:1px solid #cfe3e2!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:#ffffff!important;
  box-shadow:0 8px 18px rgba(20,55,63,.05)!important;
}
.ma-accordion>summary{
  min-height:54px!important;
  padding:16px 18px!important;
  cursor:pointer!important;
  background:#eef8f7!important;
  color:#173e45!important;
  font-weight:900!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  border-bottom:0!important;
}
.ma-accordion>summary span{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  font-size:16px!important;
}
.ma-accordion>summary span:before{
  content:'+';
  width:28px;
  height:28px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  border:1px solid #bdd8d6;
  color:#0b6f73;
  font-weight:900;
  font-size:19px;
  line-height:1;
}
.ma-accordion[open]>summary span:before{content:'–';}
.ma-accordion>summary small{
  font-size:12px!important;
  color:#0b6f73!important;
  background:#ffffff!important;
  border:1px solid #cfe3e2!important;
  border-radius:999px!important;
  padding:6px 10px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.ma-accordion[open]>summary small{color:#8a4b00!important;background:#fff7e8!important;border-color:#f1d29b!important;}
.ma-accordion>summary:after{content:''!important;display:none!important;}
.ma-accordion[open]>summary{border-bottom:1px solid #dce8e7!important;background:#e4f4f2!important;}
.ma-accordion-body{padding:16px!important;background:#ffffff!important;}
@media(max-width:900px){
  .ma-accordion>summary{align-items:flex-start!important;flex-direction:column!important;}
  .ma-accordion>summary small{white-space:normal!important;}
}


/* 1.5.12 Bedienlayout: Mitarbeiterauswahl oben, Akte darunter */
.ma-layout{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:16px!important;
  align-items:stretch!important;
}
.ma-list-card{
  order:1!important;
  position:relative!important;
}
.ma-detail-card{
  order:2!important;
}
.ma-filterbar{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) minmax(180px,240px) auto!important;
  gap:12px!important;
  align-items:center!important;
}
.ma-list{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;
  gap:10px!important;
  max-height:none!important;
  overflow:visible!important;
}
.ma-row{
  min-height:92px!important;
  align-items:stretch!important;
  border-radius:16px!important;
}
.ma-row-main strong{font-size:15px!important;line-height:1.2!important}
.ma-row-side{min-width:0!important;align-items:flex-start!important;gap:6px!important}
.ma-row-side .ma-badge{white-space:normal!important;text-align:left!important;line-height:1.2!important}
.ma-detail-card{
  width:100%!important;
  box-sizing:border-box!important;
}
.ma-detail-head{
  background:#fbffff!important;
  border:1px solid #dce8e7!important;
  border-radius:18px!important;
  padding:16px!important;
}
.ma-top-actions{
  position:sticky!important;
  top:10px!important;
  z-index:20!important;
  box-shadow:0 10px 22px rgba(20,55,63,.08)!important;
}
@media(max-width:900px){
  .ma-filterbar{grid-template-columns:1fr!important;}
  .ma-list{grid-template-columns:1fr!important;}
  .ma-top-actions{position:static!important;}
}

/* FW 1.15.1 Clean: Mitarbeiterliste ruhig und arbeitsfähig */
.ma-stats{grid-template-columns:repeat(4,minmax(120px,1fr))!important;gap:10px!important}.ma-stats div:nth-child(n+5){display:none!important}.ma-list{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.ma-row{min-height:58px!important;display:grid!important;grid-template-columns:minmax(220px,1.2fr) minmax(180px,.8fr)!important;align-items:center!important;padding:12px 14px!important;border-radius:14px!important;background:#fff!important;transform:none!important;box-shadow:none!important}.ma-row:hover,.ma-row.active{background:#eef6f6!important;border-color:#9ec7ca!important;box-shadow:0 6px 14px rgba(36,93,98,.08)!important;transform:none!important}.ma-row-side{flex-direction:row!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important}.ma-top-actions{position:static!important;box-shadow:none!important}@media(max-width:900px){.ma-stats{grid-template-columns:repeat(2,minmax(120px,1fr))!important}.ma-row{grid-template-columns:1fr!important}.ma-row-side{justify-content:flex-start!important;flex-wrap:wrap!important}}
