/* BRAHIMI Firmenzentrale V6.0.9
   Finaler 608-Nachzug: kompakte Speicher-Einstellungen und einheitliche Personalakte. */

/* Daten & Speicher: nur die wirklich relevanten Verbindungen als kompakte Akkordeons. */
.bfz-v609-storage-settings{max-width:none!important;width:100%;box-sizing:border-box;padding-top:8px!important}
.bfz-v609-storage-groups{display:grid;gap:10px}
.bfz-v609-storage-group{overflow:hidden;border:1px solid #d9e5ee;border-radius:17px;background:#fff;box-shadow:0 6px 20px rgba(29,60,82,.04)}
.bfz-v609-storage-group>summary{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:14px;padding:15px 17px;cursor:pointer;list-style:none}
.bfz-v609-storage-group>summary::-webkit-details-marker{display:none}
.bfz-v609-storage-group>summary span{min-width:0}
.bfz-v609-storage-group>summary b,.bfz-v609-storage-group>summary small{display:block}
.bfz-v609-storage-group>summary b{color:#173d58;font-size:1rem}
.bfz-v609-storage-group>summary small{margin-top:3px;color:#748797;font-size:.78rem;font-weight:600}
.bfz-v609-storage-group>summary i{display:grid;width:30px;height:30px;place-items:center;border:1px solid #d5e1e9;border-radius:50%;color:#35627f;font-style:normal;transition:transform .16s ease}
.bfz-v609-storage-group[open]>summary i{transform:rotate(180deg)}
.bfz-v609-storage-group-content{padding:0 16px 16px;border-top:1px solid #e8eef3}
.bfz-v609-storage-group-content>.v310-google-card{margin:16px 0 0;box-shadow:none}
.bfz-v609-storage-group-content>.bfz-v220-connections{margin:16px 0 0}
.bfz-v609-provider-card{margin-top:16px;box-shadow:none!important}

/*
 * Personalakte: V6.0.9 nutzt eine eigene Seitenklasse. Dadurch erfassen die
 * Regeln sowohl historische Panel-Klassen als auch die Master-Sektionen,
 * ohne andere Workforce-Seiten zu verändern.
 */
.bfz-v609-personnel-record-page .management-panel.employee-related-panel,
.bfz-v609-personnel-record-page .bfz-v609-personnel-section,
.bfz-v609-personnel-record-page .bfz-v0312z1-fleet-panel{margin:0 0 10px!important;border:1px solid #dbe5ec!important;border-radius:16px!important;background:#fff!important;box-shadow:0 5px 18px rgba(24,55,76,.038)!important;overflow:hidden}

.bfz-v609-personnel-record-page .bfz-v609-personnel-section>summary,
.bfz-v609-personnel-record-page .v604-inline-section>summary,
.bfz-v609-personnel-record-page .bfz-v390-record-panel>summary,
.bfz-v609-personnel-record-page .management-panel.employee-related-panel>.employee-related-heading,
.bfz-v609-personnel-record-page .bfz-v0312z1-fleet-summary{min-height:64px!important;box-sizing:border-box!important;padding:11px 15px!important;gap:12px!important;background:#fff!important;border:0!important}

.bfz-v609-personnel-record-page .employee-related-heading h2,
.bfz-v609-personnel-record-page .employee-related-heading strong,
.bfz-v609-personnel-record-page .bfz-v0314-fleet-title,
.bfz-v609-personnel-record-page .bfz-v609-personnel-section>summary h2{font-size:1.02rem!important;line-height:1.25!important;letter-spacing:-.012em!important}
.bfz-v609-personnel-record-page .employee-related-heading p{margin-top:2px!important;font-size:.78rem!important;line-height:1.35!important}

.bfz-v609-personnel-record-page .bfz-v400-personnel-section-icon,
.bfz-v609-personnel-record-page .employee-related-heading>.v604-ssr-icon,
.bfz-v609-personnel-record-page .bfz-v0312z1-fleet-summary>.v604-ssr-icon{width:42px!important;height:42px!important;min-width:42px!important;border-radius:12px!important}
.bfz-v609-personnel-record-page .bfz-v400-personnel-section-icon img,
.bfz-v609-personnel-record-page .employee-related-heading>.v604-ssr-icon img,
.bfz-v609-personnel-record-page .bfz-v0312z1-fleet-summary>.v604-ssr-icon img{width:42px!important;height:42px!important;min-width:42px!important}

/* Hauptfelder: ruhiges Zweispaltenraster; Beschäftigung bleibt bewusst chronologisch einspaltig. */
.bfz-v609-personnel-record-page #employee-master-form .payroll-fields-grid,
.bfz-v609-personnel-record-page .bfz-v390-record-content .payroll-fields-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 18px!important;padding:16px!important;border-top:1px solid #edf1f4}
.bfz-v609-personnel-record-page #employee-master-form #beschaeftigung>.payroll-fields-grid{grid-template-columns:minmax(0,860px)!important;justify-content:start!important;gap:12px!important}

.bfz-v609-personnel-record-page .payroll-field,
.bfz-v609-personnel-record-page .v6052-field-grid>label{display:grid!important;align-content:start!important;gap:6px!important;min-width:0!important;margin:0!important}
.bfz-v609-personnel-record-page .payroll-field>label,
.bfz-v609-personnel-record-page .payroll-field>.bfz-v0312k-field-label,
.bfz-v609-personnel-record-page .v6052-field-grid>label>span{display:block!important;margin:0!important;color:#304f65!important;font-size:.78rem!important;line-height:1.25!important;font-weight:800!important}

.bfz-v609-personnel-record-page .payroll-field>input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.bfz-v609-personnel-record-page .payroll-field>select,
.bfz-v609-personnel-record-page .payroll-field>textarea,
.bfz-v609-personnel-record-page .v6052-field-grid>label>input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.bfz-v609-personnel-record-page .v6052-field-grid>label>select,
.bfz-v609-personnel-record-page .v6052-field-grid>label>textarea{width:100%!important;max-width:none!important;box-sizing:border-box!important;border:1px solid #cad8e2!important;border-radius:10px!important;background:#fff!important;color:#173b55!important;font:inherit!important;font-size:.9rem!important;box-shadow:none!important}
.bfz-v609-personnel-record-page .payroll-field>input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.bfz-v609-personnel-record-page .payroll-field>select,
.bfz-v609-personnel-record-page .v6052-field-grid>label>input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.bfz-v609-personnel-record-page .v6052-field-grid>label>select{height:42px!important;min-height:42px!important;padding:8px 11px!important}
.bfz-v609-personnel-record-page .payroll-field>textarea,
.bfz-v609-personnel-record-page .v6052-field-grid>label>textarea{min-height:92px!important;padding:10px 11px!important;resize:vertical!important}
.bfz-v609-personnel-record-page .payroll-field>input:focus,
.bfz-v609-personnel-record-page .payroll-field>select:focus,
.bfz-v609-personnel-record-page .payroll-field>textarea:focus,
.bfz-v609-personnel-record-page .v6052-field-grid>label>input:focus,
.bfz-v609-personnel-record-page .v6052-field-grid>label>select:focus,
.bfz-v609-personnel-record-page .v6052-field-grid>label>textarea:focus{outline:0!important;border-color:var(--user-blue)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--user-blue) 12%,transparent)!important}

.bfz-v609-personnel-record-page .payroll-field>small,
.bfz-v609-personnel-record-page .v6052-field-grid>label>small,
.bfz-v609-personnel-record-page .bfz-v609-company-context-note{display:block!important;margin:0!important;color:#718392!important;font-size:.73rem!important;line-height:1.4!important;font-weight:500!important}
.bfz-v609-personnel-record-page .bfz-v609-company-context-note{padding:7px 9px;border-radius:8px;background:#f4f8fb;color:#526d80!important}
.bfz-v609-personnel-record-page .payroll-field .errorlist{margin:0!important;padding-left:18px!important;color:#a53b45!important;font-size:.78rem!important}

/* Inline-Einträge (Sprachen, Schulungen, Qualifikationen, Vorschüsse, Vorgänge). */
.bfz-v609-personnel-record-page .v604-inline-content,
.bfz-v609-personnel-record-page .bfz-v390-record-content,
.bfz-v609-personnel-record-page .bfz-v0312z1-fleet-panel-body{padding:14px 16px!important;border-top:1px solid #edf1f4!important}
.bfz-v609-personnel-record-page .v6052-inline-rows{display:grid!important;gap:10px!important}
.bfz-v609-personnel-record-page .v6052-inline-form{margin:0!important;padding:13px!important;border:1px solid #e3eaf0!important;border-radius:12px!important;background:#fbfcfd!important}
.bfz-v609-personnel-record-page .v6052-field-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 16px!important}
.bfz-v609-personnel-record-page .v6052-form-footer{margin-top:11px!important}

/* Checkboxen/Radios sollen nicht wie unterschiedlich hohe Textfelder wirken. */
.bfz-v609-personnel-record-page .payroll-field>input[type="checkbox"],
.bfz-v609-personnel-record-page .payroll-field>input[type="radio"],
.bfz-v609-personnel-record-page .v6052-field-grid input[type="checkbox"],
.bfz-v609-personnel-record-page .v6052-field-grid input[type="radio"]{width:19px!important;height:19px!important;margin:3px 0!important;accent-color:var(--user-blue)}
.bfz-v609-personnel-record-page .bfz-v0312k-workweek-field{max-width:860px!important}
.bfz-v609-personnel-record-page .bfz-v0312k-workweek-options{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}
.bfz-v609-personnel-record-page .bfz-v0312k-workweek-option{min-height:62px!important;padding:10px 12px!important;border-radius:11px!important}

/* Tabellen-/Archivbereiche bündig; bestehende Fachlogik und Tabellenstruktur bleiben unverändert. */
.bfz-v609-personnel-record-page .management-panel.employee-related-panel>.table-scroll{border-top:1px solid #edf1f4!important;padding:0!important}
.bfz-v609-personnel-record-page .management-panel.employee-related-panel .user-table{margin:0!important}

@media(max-width:900px){
  .bfz-v609-personnel-record-page #employee-master-form .payroll-fields-grid,
  .bfz-v609-personnel-record-page .bfz-v390-record-content .payroll-fields-grid,
  .bfz-v609-personnel-record-page .v6052-field-grid{grid-template-columns:1fr!important}
}
@media(max-width:620px){
  .bfz-v609-storage-group>summary{padding:13px 14px}
  .bfz-v609-storage-group-content{padding:0 12px 12px}
  .bfz-v609-personnel-record-page #employee-master-form .payroll-fields-grid,
  .bfz-v609-personnel-record-page .bfz-v390-record-content .payroll-fields-grid{padding:13px!important;gap:11px!important}
  .bfz-v609-personnel-record-page .v604-inline-content,
  .bfz-v609-personnel-record-page .bfz-v390-record-content,
  .bfz-v609-personnel-record-page .bfz-v0312z1-fleet-panel-body{padding:12px!important}
  .bfz-v609-personnel-record-page .bfz-v0312k-workweek-options{grid-template-columns:1fr!important}
}

/* -------------------------------------------------------------------------
   V6.0.9 · vollständige 608-Einstellungsrunde
   ------------------------------------------------------------------------- */

/* App-Informationen: dieselben drei Informationen, aber ohne hohen Leerraum. */
.bfz-v609-app-information-section{margin-bottom:18px!important}
.bfz-v609-app-information{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(180px,.7fr)!important;align-items:stretch!important;overflow:hidden!important}
.bfz-v609-app-information>.bfz-v280-info-pair{display:grid!important;grid-template-columns:1fr!important;align-content:center!important;gap:4px!important;min-height:62px!important;padding:10px 14px!important;border-top:0!important;border-right:1px solid #e7edf2!important}
.bfz-v609-app-information>.bfz-v280-info-pair span{font-size:.74rem!important}
.bfz-v609-app-information>.bfz-v280-info-pair b,.bfz-v609-app-information>.bfz-v280-info-pair code{font-size:.88rem!important;word-break:break-word!important}
.bfz-v609-app-information>.bfz-v280-ios-row{min-height:62px!important;padding:10px 14px!important;border-top:0!important}
.bfz-v609-app-information>.bfz-v280-ios-row small{margin-top:2px!important}

/* Personalkosten: exakt fünf kompakte, unabhängige Akkordeons in derselben Seite. */
.bfz-v609-personnel-costs-section{margin-bottom:20px!important}
.bfz-v609-cost-settings{display:grid;gap:9px}
.bfz-v609-settings-accordion{overflow:hidden;border:1px solid #dbe5ec;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(22,52,75,.035)}
.bfz-v609-settings-accordion>summary{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:12px;min-height:58px;padding:11px 15px;list-style:none;cursor:pointer}
.bfz-v609-settings-accordion>summary::-webkit-details-marker{display:none}
.bfz-v609-settings-accordion>summary b,.bfz-v609-settings-accordion>summary small{display:block}
.bfz-v609-settings-accordion>summary b{color:#173d58;font-size:.96rem}
.bfz-v609-settings-accordion>summary small{margin-top:2px;color:#748696;font-size:.76rem;line-height:1.35;font-weight:600}
.bfz-v609-settings-accordion>summary i{display:grid;width:28px;height:28px;place-items:center;border:1px solid #d6e1e8;border-radius:50%;font-style:normal;color:#45677d;transition:transform .16s ease}
.bfz-v609-settings-accordion[open]>summary i{transform:rotate(90deg)}
.bfz-v609-settings-accordion-body{padding:14px 15px 15px;border-top:1px solid #e9eef2;background:#fcfdfe}
.bfz-v609-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin-top:12px}
.bfz-v609-form-grid>label{display:grid;gap:5px;align-content:start;min-width:0;color:#304f65;font-size:.78rem;font-weight:800}
.bfz-v609-form-grid input:not([type=checkbox]):not([type=radio]),.bfz-v609-form-grid select,.bfz-v609-form-grid textarea{box-sizing:border-box;width:100%;min-height:40px;border:1px solid #cad8e2;border-radius:10px;background:#fff;padding:8px 10px;font:inherit;color:#173b55}
.bfz-v609-form-grid textarea{min-height:86px;resize:vertical}
.bfz-v609-form-grid label>small{color:#718392;font-size:.72rem;font-weight:500;line-height:1.35}
.bfz-v609-form-grid label>em{color:#a53b45;font-style:normal;font-size:.74rem;font-weight:700}
.bfz-v609-form-grid>h3,.bfz-v609-form-actions,.bfz-v609-inline-facts{grid-column:1/-1}
.bfz-v609-form-grid>h3{margin:4px 0 0;color:#24465f;font-size:.98rem}
.bfz-v609-form-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:2px}
.bfz-v609-form-actions button,.bfz-v609-form-actions a{border:0;border-radius:10px;padding:9px 13px;background:var(--user-blue);color:#fff;text-decoration:none;font:inherit;font-size:.82rem;font-weight:800;cursor:pointer}
.bfz-v609-form-actions a{background:#edf3f7;color:#365a72}
.bfz-v609-compact-table{display:grid;gap:7px}
.bfz-v609-table-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:9px 11px;border:1px solid #e3eaf0;border-radius:11px;background:#fff}
.bfz-v609-table-row b,.bfz-v609-table-row small{display:block}.bfz-v609-table-row b{color:#294b63;font-size:.85rem}.bfz-v609-table-row small{margin-top:2px;color:#758796;font-size:.72rem}.bfz-v609-table-row a{font-size:.78rem;font-weight:800;color:var(--user-blue);text-decoration:none}
.bfz-v609-inline-facts{display:flex;gap:8px;flex-wrap:wrap}.bfz-v609-inline-facts span{padding:7px 9px;border-radius:9px;background:#eef5f9;color:#506c7f;font-size:.76rem}

/* Einsatzplanung konfigurieren: volle Inhaltsbreite, deutlich niedrigere Karte. */
.bfz-v609-disposition-settings{margin-bottom:18px!important}
.bfz-v609-disposition-settings .bfz-v280-ios-list{width:100%!important;max-width:none!important}
.bfz-v609-disposition-settings .bfz-v280-ios-row{display:grid!important;grid-template-columns:minmax(0,1fr) 26px!important;min-height:58px!important;padding:10px 15px!important;align-items:center!important}
.bfz-v609-disposition-settings .bfz-v280-ios-row span{display:grid!important;grid-template-columns:minmax(180px,.45fr) minmax(0,1fr)!important;align-items:center!important;gap:18px!important}
.bfz-v609-disposition-settings .bfz-v280-ios-row small{margin:0!important;line-height:1.35!important}

/* Schnittstellen: Kopf und Karten rücken nach oben; kein künstlicher Leerraum. */
.bfz-v609-interfaces{padding-top:0!important;margin-top:0!important}
.bfz-v609-interfaces .bfz-v608-settings-title,.bfz-v609-interfaces .bfz-v280-settings-page-title{padding-top:0!important;margin-top:0!important;padding-bottom:12px!important}
.bfz-v609-interfaces>header{margin-top:0!important;padding-top:0!important}

/* Chatbot-Einstellungen: Optionen direkt unter dem einleitenden Text. */
.bfz-v608-chatbot-settings-page{gap:10px!important;align-content:start!important}
.bfz-v608-chatbot-settings-page .bfz-v608-settings-title{margin:0!important;padding:0 2px 2px!important}
.bfz-v608-chatbot-settings-page .bfz-v608-settings-form{margin:0!important;padding:0!important}
.bfz-v608-chatbot-settings-page .bfz-v608-settings-card{margin:0!important}
.bfz-v608-chatbot-settings-page .bfz-v608-setting-group{padding:16px 18px!important;gap:18px!important}
.bfz-v608-chatbot-settings-page .bfz-v608-settings-note{margin:12px 18px 0!important}
.bfz-v608-chatbot-settings-page .bfz-v608-settings-actions{padding:14px 18px 16px!important}

/* Arbeitsstatus-Popup wird per V609-JS fixed positioniert und darf nie von der Tabelle geclippt werden. */
.managed-presence-menu[open]>.managed-presence-popover{max-height:min(420px,calc(100vh - 20px));overflow:auto}

@media(max-width:900px){
  .bfz-v609-app-information{grid-template-columns:1fr!important}
  .bfz-v609-app-information>.bfz-v280-info-pair{border-right:0!important;border-bottom:1px solid #e7edf2!important}
  .bfz-v609-form-grid{grid-template-columns:1fr}
  .bfz-v609-disposition-settings .bfz-v280-ios-row span{grid-template-columns:1fr!important;gap:3px!important}
}
