/* BRAHIMI Firmenzentrale V4.2.2 · Akten, Profilbilder und Auswahloberflächen */
:root{
  --bfz-v420-border:#d8e4ec;
  --bfz-v420-ink:#123653;
  --bfz-v420-muted:#6d8192;
  --bfz-v420-shadow:0 8px 26px rgba(20,54,78,.055);
}

/* Zentral verwaltete Icons der allgemeinen Einstellungen. */
.bfz-v280-settings-sidebar nav>a>.bfz-v321-settings-managed-icon{
  width:34px!important;height:34px!important;flex:0 0 34px!important;
  object-fit:contain!important;border-radius:10px!important;
}
.bfz-v280-settings-sidebar nav>a>.bfz-v422-settings-icon-fallback{
  display:grid!important;width:34px!important;height:34px!important;flex:0 0 34px!important;
  place-items:center!important;border-radius:10px!important;font-size:1rem!important;line-height:1!important;
}

/* Personalakte: eine zusammenhängende Liste; im geschlossenen Zustand nur Icon und Titel. */
.bfz-v0311-personnel-page .bfz-personnel-avatar.bfz-v420-personnel-avatar-trigger{
  position:relative!important;appearance:none!important;padding:0!important;border:0!important;
  font:inherit!important;cursor:pointer!important;
}
.bfz-v0311-personnel-page .bfz-personnel-avatar.bfz-v420-personnel-avatar-trigger:focus-visible{
  outline:3px solid color-mix(in srgb,var(--user-blue) 32%,transparent)!important;outline-offset:4px!important;
}
body.bfz-v420-theme .bfz-v400-personnel-record-list{
  display:grid!important;gap:0!important;margin:0!important;
  overflow:hidden;border:1px solid var(--bfz-v420-border);border-radius:20px;
  background:#fff;box-shadow:var(--bfz-v420-shadow);
}
body.bfz-v420-theme .bfz-v400-personnel-record-list>#employee-master-form{
  display:contents!important;margin:0!important;
}
body.bfz-v420-theme .bfz-v400-personnel-record-list .bfz-v400-personnel-section,
body.bfz-v420-theme #employee-master-form #fleet-employee-assignment.bfz-v400-personnel-section{
  min-height:0!important;margin:0!important;border:0!important;border-bottom:1px solid #e5edf2!important;
  border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important;
}
body.bfz-v420-theme .bfz-v400-personnel-record-list .bfz-v400-personnel-section>.employee-related-heading,
body.bfz-v420-theme .bfz-v400-personnel-record-list .bfz-v400-personnel-section>summary,
body.bfz-v420-theme #employee-master-form #fleet-employee-assignment.bfz-v400-personnel-section>.employee-related-heading{
  display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;align-items:center!important;
  gap:13px!important;min-height:76px!important;width:100%!important;margin:0!important;padding:13px 17px!important;
  border:0!important;background:#fff!important;color:var(--bfz-v420-ink)!important;box-sizing:border-box!important;
  cursor:pointer!important;list-style:none!important;
}
body.bfz-v420-theme .bfz-v400-personnel-section>summary::-webkit-details-marker{display:none!important}
body.bfz-v420-theme .bfz-v400-personnel-section>summary::marker{content:""}
body.bfz-v420-theme .bfz-v400-personnel-section .bfz-v400-personnel-chevron,
body.bfz-v420-theme .bfz-v400-personnel-section>.employee-related-heading>i,
body.bfz-v420-theme .bfz-v400-personnel-section>summary>i{display:none!important}
body.bfz-v420-theme .bfz-v400-personnel-section>.employee-related-heading>div,
body.bfz-v420-theme .bfz-v400-personnel-section>summary>div{grid-column:2!important;min-width:0}
body.bfz-v420-theme .bfz-v400-personnel-section>.employee-related-heading>div>:not(h1):not(h2):not(h3):not(strong),
body.bfz-v420-theme .bfz-v400-personnel-section>summary>div>:not(h1):not(h2):not(h3):not(strong){display:none!important}
body.bfz-v420-theme .bfz-v400-personnel-section>.employee-related-heading>a,
body.bfz-v420-theme .bfz-v400-personnel-section>.employee-related-heading>button,
body.bfz-v420-theme .bfz-v400-personnel-section>summary>a,
body.bfz-v420-theme .bfz-v400-personnel-section>summary>button{display:none!important}
body.bfz-v420-theme .bfz-v400-personnel-section>.employee-related-heading>span:not(.bfz-v400-personnel-section-icon):not(.bfz-section-icon):not(.bfz-v0314-fleet-icon):not(.bfz-v0314-fleet-title):not(.bfz-v420-section-copy),
body.bfz-v420-theme .bfz-v400-personnel-section>summary>span:not(.bfz-v400-personnel-section-icon):not(.bfz-section-icon):not(.bfz-v0314-fleet-icon):not(.bfz-v0314-fleet-title):not(.bfz-v420-section-copy){display:none!important}
body.bfz-v420-theme .bfz-v400-personnel-section-icon{grid-column:1!important;grid-row:1!important}
body.bfz-v420-theme .bfz-v400-personnel-record-list .bfz-v400-personnel-section-icon,
body.bfz-v420-theme #employee-master-form #fleet-employee-assignment .bfz-v400-personnel-section-icon{
  display:grid!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  place-items:center!important;align-self:center!important;margin:0!important;border-radius:12px!important;
  overflow:hidden!important;box-sizing:border-box!important;font-size:1.25rem!important;line-height:1!important;
  background:linear-gradient(145deg,var(--user-blue),var(--user-blue-secondary))!important;color:#fff!important;
}
body.bfz-v420-theme .bfz-v400-personnel-record-list .bfz-v400-personnel-section-icon>img,
body.bfz-v420-theme #employee-master-form #fleet-employee-assignment .bfz-v400-personnel-section-icon>img{
  display:block!important;width:100%!important;height:100%!important;margin:0!important;border-radius:inherit!important;
  object-fit:contain!important;object-position:center!important;
}
body.bfz-v420-theme .bfz-v400-personnel-record-list .bfz-v400-personnel-section>.employee-related-heading :is(h1,h2,h3,strong,.bfz-v0314-fleet-title),
body.bfz-v420-theme .bfz-v400-personnel-record-list .bfz-v400-personnel-section>summary :is(h1,h2,h3,strong,.bfz-v0314-fleet-title),
body.bfz-v420-theme #employee-master-form #fleet-employee-assignment>.employee-related-heading>.bfz-v0314-fleet-title{
  margin:0!important;color:var(--bfz-v420-ink)!important;font-size:1.08rem!important;
  font-weight:850!important;line-height:1.25!important;letter-spacing:0!important;
}
body.bfz-v420-theme .bfz-v420-expanded-intro{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  margin:0 0 13px;padding:0 0 13px;border-bottom:1px solid #e8eef2;color:var(--bfz-v420-muted);
}
body.bfz-v420-theme .bfz-v420-expanded-intro:empty{display:none}
body.bfz-v420-theme .bfz-v420-expanded-intro p,
body.bfz-v420-theme .bfz-v420-expanded-intro small{margin:0;color:var(--bfz-v420-muted)}
body.bfz-v420-theme .bfz-v420-expanded-intro :is(a,button){margin-left:auto}
body.bfz-v420-theme .bfz-v400-personnel-content,
body.bfz-v420-theme .bfz-v390-record-content,
body.bfz-v420-theme .bfz-v0312z1-fleet-panel-body{padding:17px 18px!important;border-top:1px solid #e5edf2!important}
body.bfz-v420-theme .bfz-v400-personnel-record-list>.bfz-v0312k-form-actions{
  margin:0!important;padding:16px 18px!important;background:#fff!important;
}

/* Firmen- und Kundenprofilbilder bleiben klar von dem Kopfbereichslogo getrennt. */
.bfz-v420-customer-hero{display:grid!important;grid-template-columns:112px minmax(0,1fr) auto!important;align-items:center!important;gap:20px!important}
.bfz-v420-customer-avatar{position:relative;display:grid;width:112px;height:112px;padding:0;place-items:center;overflow:hidden;border:1px solid #d7e3eb;border-radius:50%;background:#eef4f7;cursor:pointer}
.bfz-v420-customer-avatar img{width:100%;height:100%;object-fit:cover}
.bfz-v420-customer-avatar small,.cmd-avatar.bfz-v400-avatar-trigger small{position:absolute;right:5px;bottom:5px;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.94);color:var(--user-blue);font-size:.68rem;font-weight:850;box-shadow:0 4px 12px rgba(15,47,68,.15)}
.bfz-v420-customer-identity{min-width:0}.bfz-v420-customer-identity>span{color:var(--user-blue);font-size:.74rem;font-weight:900;letter-spacing:.1em}.bfz-v420-customer-identity h1{margin:4px 0!important}.bfz-v420-customer-identity p{margin:0!important;color:var(--bfz-v420-muted)!important}
.bfz-v420-header-logo-editor{display:grid;grid-template-columns:150px minmax(250px,1fr) auto auto;align-items:center;gap:12px;margin:14px 0;padding:15px;border:1px solid var(--bfz-v420-border);border-radius:17px;background:#f8fbfd}
.bfz-v420-header-logo-preview{display:grid;width:150px;height:82px;place-items:center;overflow:hidden;border:1px solid #d6e2e9;border-radius:13px;background:#fff;color:var(--user-blue);font-size:2rem;font-weight:900}.bfz-v420-header-logo-preview img{width:100%;height:100%;object-fit:contain}.bfz-v420-header-logo-editor label{display:grid;gap:7px}.bfz-v420-header-logo-editor label small{display:block;margin-top:3px;color:var(--bfz-v420-muted)}
.bfz-v420-header-logo-editor button{padding:10px 13px;border:1px solid #cbdbe5;border-radius:11px;background:#fff;color:var(--user-blue);font:inherit;font-weight:850;cursor:pointer;white-space:nowrap}.bfz-v420-header-logo-editor .bfz-v420-danger-button{grid-column:4;color:#9e3440;border-color:#e3c9ce;background:#fff7f7}
.docs-tree-row[data-docs-item]{user-select:none;-webkit-user-select:none}

/* Personalkosten: ausschließlich deutscher Monatswähler für Tag und Monat. */
.bfz-v420-month-button{display:grid;gap:2px;min-width:150px;padding:8px 14px;border:1px solid #cbdbe5;border-radius:11px;background:#fff;color:var(--bfz-v420-ink);font:inherit;text-align:left;cursor:pointer}
.bfz-v420-month-button>span{color:var(--bfz-v420-muted);font-size:.7rem;font-weight:800}.bfz-v420-month-button>strong{font-size:.94rem}
.bfz-v420-month-button:hover,.bfz-v420-month-button:focus-visible{border-color:var(--user-blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--user-blue) 12%,transparent);outline:0}
.bfz-v420-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.bfz-v420-month-grid button{padding:12px 9px;border:1px solid #d4e1e9;border-radius:12px;background:#fff;color:var(--bfz-v420-ink);font:inherit;font-weight:800;cursor:pointer}
.bfz-v420-month-grid button:hover,.bfz-v420-month-grid button[aria-current="true"]{border-color:var(--user-blue);background:color-mix(in srgb,var(--user-blue) 9%,#fff);color:var(--user-blue-dark)}
.bfz-v0312-summary{grid-template-columns:repeat(5,minmax(190px,1fr))!important;overflow-x:auto;padding-bottom:3px}
.bfz-v0312-kpi{min-width:0!important;overflow:visible!important}.bfz-v0312-kpi .label{overflow-wrap:anywhere}.bfz-v0312-kpi strong{white-space:nowrap}

/* Fuhrpark: kompakter Kopf und eng zusammenhängende Aktenbereiche ohne Pfeile. */
.fleet-form-page .bfz-v420-fleet-head{display:block!important;padding:20px!important}
.fleet-form-page .bfz-v420-vehicle-overview{display:grid;grid-template-columns:minmax(210px,260px) minmax(300px,1fr) minmax(190px,230px);align-items:stretch;gap:22px;margin-top:14px}
.fleet-form-page .bfz-v420-vehicle-overview .bfz-v220-vehicle-avatar{width:100%!important;max-width:260px!important;height:210px!important;margin:0!important;border-radius:20px!important}
.fleet-form-page .bfz-v420-vehicle-overview .bfz-v220-vehicle-avatar>img{
  width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;background:#fff!important;
}
.fleet-form-page .bfz-v420-vehicle-identity{display:grid;align-content:center;min-width:0}.fleet-form-page .bfz-v420-vehicle-identity h1{margin:4px 0 12px;font-size:clamp(1.8rem,3vw,2.6rem)}
.fleet-form-page .bfz-v420-vehicle-identity dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:0}.fleet-form-page .bfz-v420-vehicle-identity dl>div{display:grid;gap:2px}.fleet-form-page .bfz-v420-vehicle-identity dt{color:var(--bfz-v420-muted);font-size:.72rem;font-weight:800}.fleet-form-page .bfz-v420-vehicle-identity dd{margin:0;color:var(--bfz-v420-ink);font-weight:850}.fleet-form-page .bfz-v420-vehicle-identity dd small{font-weight:600;color:var(--bfz-v420-muted)}
.fleet-form-page .bfz-v420-vehicle-overview .fleet-head-actions{display:grid!important;grid-template-columns:1fr!important;align-content:center;gap:8px!important}.fleet-form-page .bfz-v420-vehicle-overview .fleet-head-actions>*{width:100%;min-height:42px;box-sizing:border-box;justify-content:center}
.fleet-form-page .fleet-status-row{margin-top:13px}
.fleet-form-page .fleet-master-form,.fleet-form-page .fleet-v130-grid,.fleet-form-page .fleet-secondary-grid{display:block!important;margin:0!important;padding:0!important}
.fleet-form-page .fleet-v130-grid>.fleet-card,.fleet-form-page .fleet-secondary-grid>.fleet-card,.fleet-form-page>.fleet-card{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.fleet-form-page .fleet-section{margin:0!important;border:1px solid var(--bfz-v420-border)!important;border-bottom:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important}
.fleet-form-page .fleet-section.bfz-v420-fleet-first{border-radius:18px 18px 0 0!important}
.fleet-form-page .fleet-section.bfz-v420-fleet-last{border-bottom:1px solid var(--bfz-v420-border)!important;border-radius:0 0 18px 18px!important}
.fleet-form-page .fleet-section>summary{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;align-items:center!important;gap:13px!important;min-height:74px!important;padding:12px 16px!important;list-style:none!important;cursor:pointer!important}
.fleet-form-page .fleet-section>summary::-webkit-details-marker{display:none!important}.fleet-form-page .fleet-section>summary::marker{content:""}
.fleet-form-page .fleet-section>summary>i{display:none!important}.fleet-form-page .fleet-section>summary>span:not(.bfz-v400-fleet-icon){grid-column:2!important}.fleet-form-page .bfz-v400-fleet-record-section>summary span small{display:none!important}
.fleet-form-page .bfz-v420-fleet-expanded-note{margin:0 0 12px;color:var(--bfz-v420-muted)}
.fleet-form-page .bfz-v420-final-fleet-actions{position:static!important;display:flex!important;justify-content:flex-end!important;gap:10px!important;margin:20px 0 0!important;padding:18px 0 0!important;border-top:1px solid var(--bfz-v420-border)!important;background:transparent!important;box-shadow:none!important}

/* Urlaubsplaner: die Mitarbeiterzahl bestimmt die Höhe, nur horizontal scrollen. */
body.bfz-v420-theme .lp-table-wrap,
body.bfz-v420-theme .bfz-v271-leave-auto-height{
  height:auto!important;max-height:none!important;overflow-y:visible!important;
}
body.bfz-v420-theme .lp-table-wrap{overflow-x:auto!important}

/* Vertrieb: gut lesbarer Primärbutton in der hinterlegten Systemfarbe. */
.bfz-v080-kanban-toolbar .sales-primary,
.bfz-v370-kanban-toolbar .sales-primary{
  background:var(--user-blue)!important;border-color:var(--user-blue)!important;color:#fff!important;
  text-shadow:none!important;
}
.bfz-v080-kanban-toolbar .sales-primary:hover,
.bfz-v370-kanban-toolbar .sales-primary:hover{
  background:color-mix(in srgb,var(--user-blue) 82%,#000)!important;border-color:color-mix(in srgb,var(--user-blue) 82%,#000)!important;color:#fff!important;
}

@media(max-width:980px){
  .fleet-form-page .bfz-v420-vehicle-overview{grid-template-columns:220px minmax(0,1fr)}
  .fleet-form-page .bfz-v420-vehicle-overview .fleet-head-actions{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .bfz-v420-header-logo-editor{grid-template-columns:130px minmax(0,1fr) auto auto}.bfz-v420-header-logo-editor button{grid-column:auto}.bfz-v420-header-logo-editor .bfz-v420-danger-button{grid-column:auto}
}
@media(max-width:700px){
  .bfz-v420-customer-hero{grid-template-columns:84px minmax(0,1fr)!important}.bfz-v420-customer-avatar{width:84px;height:84px}.bfz-v420-customer-hero .cm-actions{grid-column:1/-1}
  .fleet-form-page .bfz-v420-vehicle-overview{grid-template-columns:1fr}.fleet-form-page .bfz-v420-vehicle-overview .bfz-v220-vehicle-avatar{max-width:none!important}.fleet-form-page .bfz-v420-vehicle-overview .fleet-head-actions{grid-column:auto;grid-template-columns:1fr 1fr!important}.fleet-form-page .bfz-v420-vehicle-identity dl{grid-template-columns:1fr 1fr}
  .bfz-v420-header-logo-editor{grid-template-columns:1fr}.bfz-v420-header-logo-editor>*{grid-column:1!important}.bfz-v420-header-logo-preview{width:100%}
  .bfz-v420-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bfz-v0312-summary{grid-template-columns:repeat(5,minmax(215px,1fr))!important}
}
