/* BRAHIMI Firmenzentrale V3.7.0 · Einstellungen, CSV-Import und konsistente App-Bedienung */

/* The settings rail follows the complete app list. The page owns scrolling. */
.bfz-v370-settings-shell{align-items:stretch}
.bfz-v370-settings-shell>.bfz-v280-settings-sidebar,.bfz-v280-settings-shell>.bfz-v280-settings-sidebar{align-self:start;max-height:none!important;overflow:visible!important}
.bfz-v370-settings-shell>.bfz-v280-settings-content{min-width:0}
.bfz-v370-settings-fallback-content{display:grid;gap:18px}
.bfz-v370-settings-fallback-content>.hero:first-child{margin-top:0}
.bfz-v370-status-content{padding:0!important;background:transparent!important;border-radius:0!important}
.bfz-v370-status-content .bfz-v360-overview{grid-template-columns:repeat(3,minmax(0,1fr))}
.bfz-v370-status-content .bfz-v360-metric{min-height:158px}

/* Profile */
.bfz-v370-profile-card{display:flex;align-items:center;gap:24px;margin-bottom:30px;padding:28px;border:1px solid color-mix(in srgb,var(--user-blue,#1f5b8f) 18%,#dfe8ee);border-radius:28px;background:linear-gradient(135deg,color-mix(in srgb,var(--user-blue,#1f5b8f) 8%,#fff),color-mix(in srgb,var(--user-blue-secondary,#2ea889) 7%,#fff));box-shadow:0 12px 32px rgba(20,54,76,.06)}
.bfz-v370-profile-photo{display:grid;place-items:center;flex:0 0 132px;width:132px;height:132px;overflow:hidden;border:5px solid #fff;border-radius:50%;background:linear-gradient(135deg,var(--user-blue,#1f5b8f),var(--user-blue-secondary,#2ea889));box-shadow:0 12px 30px rgba(20,54,76,.18);color:#fff;font-size:2.4rem;font-weight:900}
.bfz-v370-profile-photo img{width:100%;height:100%;object-fit:cover}
.bfz-v370-profile-card>div:last-child>span{color:var(--user-blue,#1f5b8f);font-size:.75rem;font-weight:900;letter-spacing:.12em}
.bfz-v370-profile-card h2{margin:.28rem 0 .35rem;color:#17233a;font-size:clamp(1.8rem,4vw,2.7rem)}
.bfz-v370-profile-card p,.bfz-v370-profile-card small{display:block;margin:.2rem 0;color:#63798b}
.bfz-v370-profile-actions,.bfz-v370-result-actions{display:flex;gap:10px;flex-wrap:wrap}
.bfz-v370-profile-actions a,.bfz-v370-profile-empty a,.bfz-v370-result-actions a{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border-radius:13px;background:var(--user-blue,#1f5b8f);color:#fff!important;text-decoration:none!important;font-weight:850}
.bfz-v370-profile-actions a.secondary,.bfz-v370-result-actions a+ a{background:#fff;color:var(--user-blue,#1f5b8f)!important;border:1px solid color-mix(in srgb,var(--user-blue,#1f5b8f) 45%,#dbe5ea)}
.bfz-v370-profile-empty{padding:30px;border:1px solid #dbe6eb;border-radius:24px;background:#fff}

/* CSV setup, mapping and review */
.bfz-v370-import{min-width:0}
.bfz-v370-import-form{display:grid;gap:4px}
.bfz-v370-import-basics .bfz-v280-form-row select{min-width:220px}
.bfz-v370-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.bfz-v370-section-head h2,.bfz-v370-section-head p{margin:0}.bfz-v370-section-head p{margin-top:5px;color:#687e8f}
.bfz-v370-section-head button,.bfz-v370-import-actions button,.bfz-v370-commit button,.bfz-v370-commit-dialog button{appearance:none;padding:11px 16px;border:0;border-radius:13px;background:var(--user-blue,#1f5b8f);color:#fff;font:inherit;font-weight:850;cursor:pointer}
.bfz-v370-section-head button.secondary,.bfz-v370-import-actions button.secondary,.bfz-v370-commit-dialog button.secondary{border:1px solid #cfdae1;background:#fff;color:#254d69}
.bfz-v370-sheet{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:10px;margin-top:14px}
.bfz-v370-column-map{appearance:none;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:82px;padding:11px;border:1px solid #dce6eb;border-radius:17px;background:#fff;color:#1d3043;text-align:left;cursor:pointer}
.bfz-v370-column-map>strong{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#eef4f7;color:#547084;font-size:1.05rem}.bfz-v370-column-map span b,.bfz-v370-column-map span small{display:block}.bfz-v370-column-map span small{margin-top:3px;color:#728797;font-size:.73rem}.bfz-v370-column-map>i{color:#8ca0ad;font-size:1.4rem;font-style:normal}.bfz-v370-column-map.is-mapped{border-color:color-mix(in srgb,var(--user-blue,#1f5b8f) 60%,#dce6eb);background:color-mix(in srgb,var(--user-blue,#1f5b8f) 5%,#fff)}.bfz-v370-column-map.is-mapped>strong{background:var(--user-blue,#1f5b8f);color:var(--bfz-v370-system-contrast,#fff)}.bfz-v370-column-map:disabled{cursor:not-allowed;opacity:.5}.bfz-v370-import-note{color:#667d8e;font-size:.86rem}
.bfz-v370-import-actions{display:flex;align-items:end;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:32px}.bfz-v370-import-actions label{display:grid;gap:5px;margin-right:auto;color:#5e7485;font-size:.8rem;font-weight:800}.bfz-v370-import-actions input{min-width:250px;padding:11px;border:1px solid #d4e0e6;border-radius:12px;font:inherit}
.bfz-v370-template{width:100%;border:0;text-align:left;cursor:pointer}
.bfz-v370-preview{margin-top:14px;border:1px solid #dae5ea;border-radius:18px;background:#fff;overflow:hidden}.bfz-v370-preview>header{display:flex;justify-content:space-between;gap:14px;padding:13px 15px;border-bottom:1px solid #e4ecef}.bfz-v370-table-scroll{max-width:100%;overflow:auto}.bfz-v370-preview table,.bfz-v370-review-table{width:max-content;min-width:100%;border-collapse:collapse}.bfz-v370-preview th,.bfz-v370-preview td{min-width:130px;padding:9px 11px;border-right:1px solid #e8eef1;border-bottom:1px solid #e8eef1;text-align:left;white-space:nowrap}.bfz-v370-preview th{min-width:50px;background:#f3f7f9;color:#49697c}
.bfz-v370-field-dialog,.bfz-v370-commit-dialog{width:min(860px,calc(100vw - 28px));max-height:calc(100vh - 28px);padding:0;border:0;border-radius:26px;background:#fff;box-shadow:0 32px 100px rgba(11,35,50,.35)}.bfz-v370-field-dialog::backdrop,.bfz-v370-commit-dialog::backdrop{background:rgba(11,32,46,.54);backdrop-filter:blur(4px)}.bfz-v370-field-dialog>div,.bfz-v370-commit-dialog>form{display:grid;gap:15px;padding:24px}.bfz-v370-field-dialog header,.bfz-v370-commit-dialog header{display:flex;align-items:start;justify-content:space-between;gap:16px}.bfz-v370-field-dialog h2,.bfz-v370-field-dialog small,.bfz-v370-commit-dialog h2,.bfz-v370-commit-dialog small{display:block;margin:0}.bfz-v370-field-dialog header button,.bfz-v370-commit-dialog header>button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#edf3f6;color:#24394a;font-size:1.6rem;cursor:pointer}.bfz-v370-field-search{display:flex;align-items:center;gap:8px;padding:0 13px;border:1px solid #d7e2e7;border-radius:13px}.bfz-v370-field-search input{width:100%;padding:12px 0;border:0;outline:0;font:inherit}.bfz-v370-unmap{justify-self:start;border:0;background:transparent;color:#805347;font-weight:800;cursor:pointer}.bfz-v370-field-list{display:grid;gap:15px;max-height:58vh;overflow:auto}.bfz-v370-field-list section{display:grid;gap:7px}.bfz-v370-field-list h3{position:sticky;top:0;z-index:1;margin:0;padding:7px 0;background:#fff;color:#5c7385;font-size:.79rem;text-transform:uppercase;letter-spacing:.08em}.bfz-v370-field-list section>button{appearance:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;padding:13px;border:1px solid #dfe8ec;border-radius:15px;background:#fff;color:#1b2d3e;text-align:left;cursor:pointer}.bfz-v370-field-list section>button:hover,.bfz-v370-field-list section>button.is-current{border-color:var(--user-blue,#1f5b8f);background:color-mix(in srgb,var(--user-blue,#1f5b8f) 5%,#fff)}.bfz-v370-field-list button span>*{display:block}.bfz-v370-field-list button span small{margin-top:3px;color:#667c8c}.bfz-v370-field-list button span em{margin-top:5px;color:#7d8f9c;font-size:.75rem;font-style:normal}.bfz-v370-field-list button>i{display:grid;align-content:start;justify-items:end;gap:3px;font-style:normal;white-space:nowrap}.bfz-v370-field-list button>i strong{color:var(--user-blue,#1f5b8f);font-size:.75rem}.bfz-v370-field-list button>i small{color:#718695}.bfz-v370-field-list button:disabled{cursor:not-allowed;opacity:.48}
.bfz-v370-review-summary,.bfz-v370-result{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.bfz-v370-review-summary article,.bfz-v370-result article{display:grid;gap:5px;padding:17px;border:1px solid #dae5ea;border-radius:18px;background:#fff}.bfz-v370-review-summary small,.bfz-v370-result small{color:#6a8091}.bfz-v370-review-summary strong,.bfz-v370-result strong{color:#173f5f;font-size:1.45rem}.bfz-v370-result{grid-template-columns:repeat(3,minmax(0,1fr))}
.bfz-v370-review-filter{display:flex;gap:8px;margin-bottom:12px}.bfz-v370-review-filter a{padding:9px 13px;border:1px solid #d5e1e6;border-radius:12px;background:#fff;color:#315875!important;text-decoration:none!important;font-weight:800}.bfz-v370-review-filter a[aria-current=page]{border-color:var(--user-blue,#1f5b8f);background:var(--user-blue,#1f5b8f);color:var(--bfz-v370-system-contrast,#fff)!important}
.bfz-v370-review-table-card{border:1px solid #d7e3e8;border-radius:20px;background:#fff;overflow:hidden}.bfz-v370-review-table th,.bfz-v370-review-table td{min-width:185px;padding:9px;border-right:1px solid #e4ecef;border-bottom:1px solid #e4ecef;vertical-align:top;text-align:left}.bfz-v370-review-table th:first-child{position:sticky;left:0;z-index:2;min-width:64px;background:#f1f6f8}.bfz-v370-review-table thead th{background:#f1f6f8}.bfz-v370-review-table thead th>*{display:block}.bfz-v370-review-table thead th small,.bfz-v370-review-table thead th span{color:#6d8292;font-size:.7rem}.bfz-v370-review-table thead th b{margin:3px 0}.bfz-v370-review-table input,.bfz-v370-review-table select{box-sizing:border-box;width:100%;min-height:42px;padding:9px;border:1px solid #d7e2e7;border-radius:10px;background:#fff;font:inherit}.bfz-v370-review-table tr.has-issues>th:first-child{box-shadow:inset 4px 0 #e19b35}.bfz-v370-row-status{min-width:220px!important}.bfz-v370-row-status button{border:0;background:transparent;color:#267041;font-weight:850;cursor:pointer}.bfz-v370-row-status ul{display:none;margin:8px 0 0;padding-left:18px;color:#8b5511;font-size:.78rem;white-space:normal}.bfz-v370-row-status.is-open ul,.has-issues .bfz-v370-row-status ul{display:block}.bfz-v370-row-status.is-saving{opacity:.55}.has-issues .bfz-v370-row-status button{color:#9b6217}.bfz-v370-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:16px}.bfz-v370-pagination a{font-weight:800}.bfz-v370-commit{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:20px;border:1px solid #d8e4e9;border-radius:20px;background:#fff}.bfz-v370-commit h2,.bfz-v370-commit p{margin:0}.bfz-v370-commit p{margin-top:5px;color:#657b8b}.bfz-v370-commit-dialog form>p{font-size:1.03rem;line-height:1.5}.bfz-v370-commit-dialog form>div:last-child{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}

/* Sales tabs: configured system colour plus computed readable text. */
body :is(.sales-nav,.bfz-v281-legacy-sales-nav,.bfz-v290-sales-nav,.bfz-v290-force-sales-nav) a{border-color:color-mix(in srgb,var(--user-blue,#1f5b8f) 72%,#fff)!important;background:#fff!important;color:var(--user-blue-dark,#17436a)!important;-webkit-text-fill-color:currentColor!important;transition:background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease!important}
body :is(.sales-nav,.bfz-v281-legacy-sales-nav,.bfz-v290-sales-nav,.bfz-v290-force-sales-nav) a:is(.active,.is-active,[aria-current=page],.bfz-v294-sales-active,.bfz-v300-sales-active,.bfz-v301-sales-active){border-color:var(--user-blue,#1f5b8f)!important;background:var(--user-blue,#1f5b8f)!important;color:var(--bfz-v370-system-contrast,#fff)!important;-webkit-text-fill-color:currentColor!important}
body :is(.sales-nav,.bfz-v281-legacy-sales-nav,.bfz-v290-sales-nav,.bfz-v290-force-sales-nav) a:hover{background:color-mix(in srgb,var(--user-blue,#1f5b8f) 10%,#fff)!important;box-shadow:0 6px 18px color-mix(in srgb,var(--user-blue,#1f5b8f) 15%,transparent)!important}
body :is(.sales-nav,.bfz-v281-legacy-sales-nav,.bfz-v290-sales-nav,.bfz-v290-force-sales-nav) a:is(.active,.is-active,[aria-current=page]):hover{background:var(--user-blue-dark,#17436a)!important;color:#fff!important}
body :is(.sales-nav,.bfz-v281-legacy-sales-nav,.bfz-v290-sales-nav,.bfz-v290-force-sales-nav) a:focus-visible{outline:3px solid color-mix(in srgb,var(--user-blue-secondary,#2ea889) 48%,transparent)!important;outline-offset:3px!important}
.bfz-v370-kanban-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px}.bfz-v370-kanban-toolbar .sales-primary{white-space:nowrap}

/* iPhone-like home reorder: a blank grid slot plus exactly one lifted tile. */
.module-reorder-mode [data-module-card].module-card-dragging{visibility:hidden!important;opacity:0!important;animation:none!important}
.bfz-v370-home-drag-image{position:fixed!important;left:-2000px;top:-2000px;z-index:2147483000!important;margin:0!important;pointer-events:none!important;visibility:visible!important;opacity:.97!important;animation:none!important;transform:scale(1.06)!important;filter:drop-shadow(0 22px 28px rgba(16,39,58,.25))!important}
.bfz-v370-home-drag-image.is-touch{transform:translate(-50%,-50%) scale(1.06)!important}

@media(max-width:1150px){.bfz-v370-status-content .bfz-v360-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.bfz-v370-sheet{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.bfz-v370-profile-card{align-items:flex-start}.bfz-v370-review-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.bfz-v370-settings-shell>.bfz-v280-settings-sidebar{display:block!important;position:relative;top:auto;margin-bottom:18px}.bfz-v370-settings-shell{display:block!important}.bfz-v370-settings-shell>.bfz-v280-settings-sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.bfz-v370-settings-shell>.bfz-v280-settings-sidebar .bfz-v280-settings-group-label{grid-column:1/-1}.bfz-v370-status-content{padding:0!important}}
@media(max-width:640px){.bfz-v370-profile-card{display:grid;text-align:center;justify-items:center}.bfz-v370-profile-photo{width:108px;height:108px;flex-basis:108px}.bfz-v370-sheet,.bfz-v370-review-summary,.bfz-v370-result,.bfz-v370-status-content .bfz-v360-overview{grid-template-columns:1fr}.bfz-v370-section-head,.bfz-v370-commit{align-items:stretch;flex-direction:column}.bfz-v370-settings-shell>.bfz-v280-settings-sidebar nav{grid-template-columns:1fr}.bfz-v370-field-list section>button{grid-template-columns:1fr}.bfz-v370-field-list button>i{justify-items:start}.bfz-v370-kanban-toolbar{grid-template-columns:1fr}.bfz-v370-import-actions{align-items:stretch;flex-direction:column}.bfz-v370-import-actions label{margin-right:0}.bfz-v370-import-actions input{min-width:0}}
