:root{--bg:#f5f2ee;--ink:#342e2b;--muted:#80736d;--rose:#b0837d;--rose-soft:#dbcfcf;--beige:#f0ece8;--mint:#c8e5de;--greige:#c0a999;--stroke:#e5ddd8;--shadow:0 12px 32px #43332b08}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-.6px}h2{font-size:20px}h3{font-size:15px}.hidden{display:none!important}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:800;color:#ad7d73}.btn{border:1px solid #dfcfca;color:#725d55;background:white;border-radius:9px;padding:10px 15px;font-weight:700;min-height:39px}.btn.primary{background:#ab817c;color:#fff;border-color:#ab817c}.btn.secondary:hover{background:#f8f0ec}.btn.primary:hover{background:#9e716c}.btn.small{font-size:12px;padding:6px 11px;min-height:32px}.btn.large{width:100%;font-size:14px}.login-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 20% 0%,#dcebe4 0%,transparent 45%),linear-gradient(135deg,#f8f5f3,#efebe7)}.login-card{background:#fff;border:1px solid var(--stroke);box-shadow:0 24px 68px #3b242518;border-radius:20px;width:min(440px,100%);padding:35px}.login-identity{display:flex;align-items:center;gap:11px;margin-bottom:37px}.login-identity img{object-fit:contain}.login-identity strong,.login-identity b{font:700 27px Georgia,serif;color:#936b64}.login-identity small{display:block;letter-spacing:2px;color:#9d8b83;font-size:9px}.login-card h1{margin:10px 0 7px}.login-card p{font-size:13px;color:var(--muted);margin-bottom:29px}.stack{display:grid;gap:16px}.stack label,.fields label,.add-service label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#514640}input,select{border:1px solid #ded5d0;background:#fff;border-radius:8px;min-height:40px;padding:9px 11px;color:var(--ink);width:100%}input:focus,select:focus{outline:2px solid #c8e5de;outline-offset:0}.form-error{background:#fff1ee;border:1px solid #e2b0a7;padding:10px 12px;border-radius:8px;color:#8f3633;font-size:12px}.login-footer{margin-top:26px;border-top:1px solid var(--stroke);padding-top:15px;font-size:11px;color:#998b83;text-align:center}.app-shell{min-height:100vh;display:grid;grid-template-columns:254px minmax(0,1fr)}.sidebar{display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--stroke)}.brand{display:flex;align-items:center;gap:8px;padding:30px 18px 24px}.brand img{object-fit:contain}.brand strong{display:block;font:700 27px Georgia,serif;color:#986c65;line-height:1.05}.brand small{display:block;font-size:9px;letter-spacing:1.7px;color:#a5968f}.nav-heading{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#a6968c;margin:14px 23px 8px}.nav-heading.muted{margin-top:25px}.nav-btn,.nav-soon{border:0;background:none;width:calc(100% - 20px);margin:2px 10px;padding:11px 15px;text-align:left;display:flex;align-items:center;gap:11px;border-radius:10px;color:#675a53;font-weight:650;font-size:13px}.nav-btn.active{background:#f1e9e6;color:#8f5f59}.nav-btn:hover:not(.active){background:#f8f6f4}.nav-symbol{font-size:20px;width:25px;text-align:center}.nav-soon{font-size:12px;display:block;opacity:.56}.nav-soon small{display:block;margin-left:27px;font-weight:400}.sidebar-footer{margin-top:auto;border-top:1px solid var(--stroke);padding:22px 20px;color:#5b785f;font-size:12px;font-weight:700}.sidebar-footer small{color:#aaa19a;font-size:10px;font-weight:400}.status-dot{background:#64a879;width:8px;height:8px;display:inline-block;border-radius:50%;margin-right:5px}.main-wrap{min-width:0}.app-topbar{height:68px;background:#ffffffed;border-bottom:1px solid var(--stroke);display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:20px}.crumb{font-size:11px;color:#a18d85;font-weight:700;letter-spacing:1px}.divider-dot{padding:0 9px;color:#c9bbb4}.top-actions{display:flex;align-items:center;gap:16px;color:#84726b;font-size:12px}.version-pill{background:#ebf5ee;color:#53836c;border-radius:99px;padding:6px 11px;font-size:9px;font-weight:800;letter-spacing:1px}.content{padding:34px clamp(18px,3vw,46px);max-width:1600px;margin:auto}.view-header{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:25px}.view-header .eyebrow{display:block;margin-bottom:4px}.view-header p{font-size:13px;color:var(--muted);margin-top:4px}.statbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}.statbar>div{background:#fff;border:1px solid var(--stroke);border-radius:12px;padding:18px 20px;box-shadow:var(--shadow)}.statbar small{display:block;font-size:11px;color:#96857c}.statbar strong{display:block;font-size:27px;margin-top:4px}.panel{border:1px solid var(--stroke);border-radius:15px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.panel-header{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--stroke)}.panel-header p{font-size:11px;color:#97877f}.search-field{position:relative;display:block;min-width:290px}.search-field span{position:absolute;top:7px;left:12px;color:#ac9990;font-size:22px}.search-field input{padding-left:37px}.table-outer{overflow-x:auto}.data-table{border-collapse:collapse;width:100%;min-width:740px;text-align:left}.data-table th{color:#98867d;background:#fbf9f8;font-size:10px;text-transform:uppercase;letter-spacing:1px;padding:13px 20px}.data-table td{padding:15px 20px;border-bottom:1px solid #f1ebe7;font-size:12px;vertical-align:middle}.data-table tbody tr:hover{background:#fefbfa}.data-table b{font-size:13px}.data-table small{color:#95867e}.pill{display:inline-flex;border:1px solid #cfe5d6;color:#527b5b;background:#eef7f0;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:700}.pill.rose{color:#966d64;border-color:#e7d3cd;background:#faf0ee}.pill.gray{color:#8d837c;background:#f7f5f3;border-color:#eee7e3}.tag{display:inline-flex;margin:2px;padding:3px 7px;border-radius:7px;font-size:10px;background:#eef4f1;color:#587a6c;white-space:nowrap}.table-footer{padding:13px 22px;color:#95877f;font-size:11px}.page-footnote{margin-top:18px;color:#9e8e86;font-size:11px}.settings-panel{padding-bottom:20px}.service-list{display:grid}.service-row{display:flex;justify-content:space-between;align-items:center;padding:16px 22px;gap:15px;border-bottom:1px solid #f2ece8}.service-row b{font-size:13px}.service-row small{display:block;color:#978880;font-size:11px}.service-controls{display:flex;align-items:center;gap:12px}.add-service{display:flex;align-items:end;gap:12px;padding:20px 22px;max-width:700px}.add-service label{flex:1}.audit-list{padding:5px 20px}.audit-row{display:grid;grid-template-columns:120px 130px 1fr;gap:15px;padding:13px 0;border-bottom:1px solid var(--stroke);font-size:12px}.audit-row small{color:#97857e}.editor-backdrop{position:fixed;inset:0;background:#2e2727a8;backdrop-filter:blur(3px);z-index:10;display:flex;justify-content:center;align-items:center;padding:10px}.customer-editor{background:#fff;border-radius:15px;width:85vw;height:85dvh;max-width:1650px;max-height:96dvh;display:flex;flex-direction:column;box-shadow:0 22px 100px #23151260;overflow:hidden}.editor-heading{padding:18px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--stroke);flex-shrink:0}.editor-heading h2{font-size:23px;margin-top:3px}.editor-heading p{font-size:12px;color:#91817a}.close-btn{background:#fff;border:1px solid var(--stroke);color:#78655b;font-size:26px;width:40px;height:40px;border-radius:10px}.editor-form{padding:0;overflow-y:auto;min-height:0;flex:1}.editor-section{margin:21px 28px;background:#fff;border:1px solid var(--stroke);padding:20px 23px;border-radius:13px}.editor-section h3{font-size:15px;margin-bottom:10px}.editor-section p{font-size:11px;color:#96857b;margin:-4px 0 14px}.fields{display:grid;gap:15px 18px}.fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.fields .span2{grid-column:1/-1}.fields label{min-width:0}.fields select{background:#fff}.service-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.service-check{display:flex;align-items:center;gap:9px;border:1px solid #e8ddd6;border-radius:10px;padding:10px 12px;cursor:pointer;font-size:12px;font-weight:700}.service-check:has(input:checked){background:#edf6f0;border-color:#a5cfba}.service-check input{height:17px;width:17px;min-height:auto;accent-color:#63a385}.service-check small{color:#a9968a;font-size:10px}.financing-checks{display:flex;flex-wrap:wrap;gap:12px;padding:17px 0}.financing-checks label{display:inline-flex;flex-direction:row;align-items:center;gap:5px}.financing-checks input{width:16px;height:16px;min-height:auto}.benefit-section{margin-bottom:25px}.benefit-toggle{display:flex;align-items:center;gap:9px;font-size:12px;margin:0 0 15px;cursor:pointer}.benefit-toggle input{position:absolute;width:1px;height:1px;opacity:0}.toggle-track{display:block;width:24px;height:14px;background:#c9c2be;border-radius:99px;position:relative;transition:.2s}.toggle-track::after{content:"";position:absolute;left:2px;top:2px;width:10px;height:10px;background:white;border-radius:50%;transition:.2s}.benefit-toggle input:checked +.toggle-track{background:#5fba75}.benefit-toggle input:checked +.toggle-track::after{left:12px}.benefit-toggle:focus-within .toggle-track{outline:2px solid #82bda2;outline-offset:2px}.help{color:#4ca876;cursor:help}.editor-footer{position:sticky;bottom:0;background:#fff;display:flex;justify-content:space-between;gap:12px;padding:15px 28px;border-top:1px solid var(--stroke)}#editorError{margin:0 28px 15px}.toast{position:fixed;right:24px;bottom:24px;z-index:40;background:#365648;color:#fff;border-radius:10px;box-shadow:0 16px 35px #1c222321;padding:13px 18px;max-width:min(450px,90vw)}@media(max-width:1100px){.customer-editor{width:94vw;height:92dvh}.service-checks{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{grid-template-columns:210px minmax(0,1fr)}.sidebar .brand strong{font-size:22px}}@media(max-width:750px){.app-shell{grid-template-columns:1fr}.sidebar{min-height:0;height:auto;position:static}.brand{padding:12px 15px}.sidebar nav{display:flex;flex-wrap:wrap;padding:3px 6px}.sidebar .nav-btn{width:auto}.sidebar .nav-heading,.nav-soon,.sidebar-footer{display:none}.app-topbar{height:auto;flex-wrap:wrap;padding:12px 16px}.top-actions{gap:8px}.content{padding:20px 12px}.view-header{align-items:start}.view-header h1{font-size:23px}.statbar{gap:7px}.statbar>div{padding:12px}.statbar strong{font-size:20px}.panel-header{align-items:stretch;flex-direction:column}.search-field{min-width:unset}.editor-backdrop{padding:0}.customer-editor{height:100dvh;width:100%;max-height:none;border-radius:0}.editor-heading{padding:12px 16px}.editor-section{margin:12px;padding:14px}.fields.two,.service-checks{grid-template-columns:1fr}.fields .span2{grid-column:auto}.editor-footer{padding:12px}.add-service{flex-direction:column;align-items:stretch}.top-actions #currentUser{display:none}}

/* 0.4.0.3 – Kundennamen direkt öffnen, per Tastatur erreichbar */
.customer-name-link{display:inline-block;text-align:left;width:auto;min-height:auto;padding:2px 0;margin:-2px 0;border:0;background:none;color:#61423f;font:inherit;font-weight:750;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;cursor:pointer}
.customer-name-link:hover{color:#965b55;text-decoration-color:currentColor}
.customer-name-link:focus-visible{outline:2px solid #659780;outline-offset:3px;border-radius:3px;text-decoration-color:currentColor}
#aidPercentFields{margin-bottom:15px}

/* v0.4.0.5 – employee roster module */
.team-form-area{padding:20px 24px;}.team-form-area h3{font-size:15px;margin:0 0 12px;}.team-create-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;align-items:end;}.team-create-form label{display:flex;flex-direction:column;gap:7px;}.team-create-form button{justify-self:start;grid-column:1/-1;}.team-panel .page-footnote{margin-top:12px;}
@media(max-width:790px){.team-create-form{grid-template-columns:1fr;}.team-create-form button{width:100%;}}

/* 0.4.0.9 – Mitarbeiterakten */
.staff-detail-panel{margin:20px 23px 8px;border:1px solid #e3d8d2;border-radius:12px;background:#fcfbfa;overflow:hidden;scroll-margin-top:20px}.staff-profile-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;background:#fff;border-bottom:1px solid #eae0db}.staff-profile-header h2{font-size:20px;margin-top:5px}.staff-profile-header p,.staff-hint{color:#877870;font-size:12px}.staff-profile-tabs{display:flex;gap:5px;overflow-x:auto;padding:9px 17px 0;background:#fff;border-bottom:1px solid #e9dfda}.staff-profile-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:#77665f;padding:12px 14px;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}.staff-profile-tabs button.active{border-bottom-color:#ab8179;color:#825b55}.staff-pane{padding:21px 22px 24px}.staff-pane h3{font-size:16px;margin:0 0 5px}.staff-hint{margin:0 0 16px}.staff-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:15px 0}.staff-field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#5e4e47}.staff-field input,.staff-field select,.staff-field textarea{width:100%;border:1px solid #ddd2cc;border-radius:9px;padding:10px;background:white;min-height:42px;font-size:13px}.staff-field.full-width{margin-top:14px}.staff-field textarea{min-height:85px;resize:vertical}.staff-actionrow{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:20px}.staff-actionrow span,.staff-error{font-size:12px;color:#a34e4e}.staff-assignment-list{display:grid;gap:8px}.staff-assignment-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e7ddd7;border-radius:9px;background:#fff;padding:12px 14px;font-size:12px}.staff-assignment-list span{color:#887970}.staff-empty{padding:14px;background:#fff;border:1px dashed #e0d5cd;border-radius:8px;color:#9c8b83;font-size:12px}@media(max-width:940px){.staff-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.staff-fields{grid-template-columns:1fr}.staff-profile-header{align-items:start}.staff-profile-tabs button{padding:10px}.staff-assignment-list>div{flex-direction:column;align-items:start}}

/* 0.4.1.0 – Mitarbeiterakte und mehrgliedrige Bezirke */
#teamView:has(#staffDetailPanel:not(.hidden))>.view-header,#teamView:has(#staffDetailPanel:not(.hidden))>.team-panel>.panel-header,#teamView:has(#staffDetailPanel:not(.hidden))>.team-panel>.table-outer,#teamView:has(#staffDetailPanel:not(.hidden)) .team-form-area{display:none!important}
#teamView:has(#staffDetailPanel:not(.hidden)) .team-panel{overflow:visible;border:0;background:transparent;box-shadow:none}
#teamView:has(#staffDetailPanel:not(.hidden)) #staffDetailPanel{margin:0;min-height:650px}
.staff-profile-header{gap:20px;background:#fff}.staff-header-person{display:flex;align-items:center;gap:14px}.staff-header-person h2{font-size:23px}.staff-header-person small{font-size:10px;letter-spacing:1px;color:#a08780}.staff-header-person span{font-size:12px;color:#6d9b79}.staff-avatar{display:grid;place-items:center;width:53px;height:53px;border-radius:50%;background:#eaf3ed;font-size:25px;color:#649277;flex-shrink:0}
.staff-profile-tabs{display:flex;overflow-x:auto;gap:3px;padding:0 16px;background:#fbf8f6;border-bottom:1px solid #e8e1de;scrollbar-width:thin;flex-wrap:wrap}.staff-profile-tabs button{font-size:11px;font-weight:700;padding:11px 13px;border:1px solid transparent;border-bottom:0;border-radius:9px 9px 0 0;background:transparent;color:#877a73;white-space:nowrap;margin-top:8px}.staff-profile-tabs button.active{background:#fff;color:#7c514a;font-weight:750;border-color:#ddd2ca}
.staff-screen{padding:16px;background:#fff;display:grid;gap:15px;min-width:0}.staff-screen h4{font-size:12px;margin:16px 0 8px}.staff-screen .staff-field{font-size:11px}.staff-double{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}.staff-stack{display:grid;gap:14px;align-content:start}.staff-card{border:1px solid #e5e5e5;background:#fff;border-radius:11px;overflow:hidden;min-width:0}.staff-card-head{padding:14px 17px;border-bottom:1px solid #e9eaec;background:#fdfdfd}.staff-card-head h3{font-size:14px}.staff-card-head p,.staff-overview-top p{color:#94a0a3;font-size:11px;margin-top:3px}.staff-card-content{padding:15px 17px;min-width:0}.staff-overview-top{display:flex;justify-content:space-between;gap:10px;padding:9px 5px 2px;align-items:center}.staff-overview-top h3{font-size:15px}.staff-details{display:grid;grid-template-columns:minmax(120px,.6fr) 1fr;gap:9px 15px;font-size:12px}.staff-details dt{color:#93a0a1}.staff-details dd{margin:0;font-weight:650;color:#53615e}.staff-stats-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:8px 0 15px}.staff-stats-four>div{background:#fafafa;border:1px solid #e6e8e8;border-radius:8px;padding:13px;min-width:0}.staff-stats-four small{font-size:10px;color:#96a3a1;display:block;margin-bottom:7px}.staff-stats-four b{font-size:12px}.staff-screen .staff-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.staff-screen .staff-fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-screen .staff-fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}.staff-multidistrict{margin:17px 0;border:1px solid #e6e8e8;background:#fafcfa;padding:14px;border-radius:9px}.staff-multidistrict p{font-size:11px;color:#8d9894}.staff-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 18px;margin:11px 0;font-size:12px}.staff-check-grid label,.staff-check-list label{display:flex;align-items:center;gap:8px;font-size:12px}.staff-check-grid input,.staff-check-list input{min-width:16px;min-height:16px;height:16px;width:16px;accent-color:#6b9d80}.staff-check-list{display:grid;gap:12px;margin-bottom:19px}.staff-access-pill{padding:9px 12px;background:#eaf5ef;border:1px solid #bdd8c7;border-radius:10px;color:#577b64;font-weight:700;font-size:12px}.staff-notice{background:#eef6f1;border:1px solid #d5e9dc;color:#527863;font-size:11px;padding:12px 14px;border-radius:8px;line-height:1.6;margin:15px 0 0}.staff-subtabs{display:flex;flex-wrap:wrap;gap:4px;background:#fbfaf9;border-bottom:1px solid #e5ddd7;padding:9px 16px}.staff-subtabs button{border:1px solid transparent;background:none;color:#85746d;padding:9px 13px;border-radius:8px;font-size:12px}.staff-subtabs button.active{background:#fff;border-color:#dfd7d2;color:#8f6359;font-weight:750}.staff-calendar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #e5e8e8;border-radius:9px;overflow:hidden;min-height:240px;margin-top:15px}.staff-calendar>div{border-right:1px solid #e5e8e8;padding:8px}.staff-calendar b{display:block;background:#f7f9f8;padding:7px}.staff-calendar p{color:#9aa5a2;font-size:11px;margin:35px 8px}.staff-drop{display:flex;flex-direction:column;gap:6px;border:1px dashed #becfca;background:#f9fbfa;border-radius:9px;padding:25px 12px;font-size:11px;color:#778984;text-align:center;margin:15px 0}.staff-file-row,.staff-entry{display:flex;justify-content:space-between;gap:14px;padding:12px;border-bottom:1px solid #e9eeee;font-size:12px}.staff-file-row>div:first-child,.staff-entry{display:flex;flex-direction:column}.staff-file-row small,.staff-entry small{font-size:11px;color:#8b9892}.staff-entry{display:block;background:#fbfcfb;border:1px solid #eef0ee;border-radius:9px;margin:10px 0}.staff-entry b{display:block}.staff-entry small{display:block}.staff-entry p{margin:8px 0}.staff-entry-list{margin-top:14px}.staff-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between}.staff-toolbar select{width:110px}.staff-table-wrap{overflow-x:auto;margin:16px 0}.staff-data{border-collapse:collapse;width:100%;min-width:540px;font-size:12px}.staff-data th{text-align:left;background:#f4f6f5;font-size:10px;color:#879392;padding:12px;border-bottom:1px solid #cdd9d4}.staff-data td{padding:10px 13px;border-bottom:1px solid #edf0ee}.staff-add-head,.staff-add-row{display:grid;grid-template-columns:1fr 115px 1fr 1fr;gap:12px;align-items:center;padding:12px;border-bottom:1px solid #e8ece9}.staff-add-head{font-size:10px;color:#869a92;background:#f7f9f8}.staff-add-row b{font-size:12px}.staff-add-row>div{display:flex;gap:5px}.staff-add-row input[type=time]{min-width:0;padding:6px 5px}.staff-leave-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px}.staff-leave-summary>div{padding:15px;border:1px solid #e3e9e5;border-radius:9px}.staff-leave-summary>div:first-child{background:#eff7f2}.staff-leave-summary strong{display:block;font-size:22px;color:#4c8b61}.staff-leave-summary small{display:block;font-size:10px;color:#8c9a91}.staff-leave-summary p{font-size:11px;color:#879890}.staff-compact-form,.staff-inline-form{min-width:0}.staff-scope-card{padding:18px;background:#fff;border:1px solid #e5ddd8;border-radius:9px;margin:12px}.staff-scope-card p{font-size:12px;color:#7b7069;margin-top:7px}
@media(max-width:1100px){.staff-screen .staff-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-double{grid-template-columns:1fr}.staff-stats-four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.staff-screen .staff-fields,.staff-screen .staff-fields.two,.staff-screen .staff-fields.three{grid-template-columns:1fr}.staff-check-grid{grid-template-columns:1fr}.staff-stats-four{grid-template-columns:1fr}.staff-add-head,.staff-add-row{grid-template-columns:1fr 1fr}.staff-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-profile-header{align-items:flex-start;flex-direction:column}}

/* EiD Office 0.4.1.4: same workspace width in every main menu. */
@media(min-width:751px){
 .content{max-width:none;width:100%;margin:0;padding:12px clamp(10px,1.3vw,24px) 22px;}
 #teamView{max-width:none;width:100%;}
 #teamView .team-panel{width:100%;max-width:none;margin:0;}
 #teamView:has(#staffDetailPanel:not(.hidden)) #staffDetailPanel{width:100%;max-width:none;min-height:calc(100dvh - 107px);}
}
.eid-svg{width:17px;height:17px;display:inline-block;vertical-align:-3px;flex-shrink:0;}
.nav-symbol .eid-svg{width:21px;height:21px;vertical-align:middle;}
.nav-soon [data-eid-icon]{display:inline-flex;vertical-align:middle;margin-right:8px;}
.staff-profile-tabs button{display:inline-flex;align-items:center;gap:7px;}
.staff-profile-tabs .eid-svg{width:17px;height:17px;}
.staff-card-head h3{display:flex;align-items:center;gap:8px;}
.staff-card-head h3 .eid-svg{color:#8b7770;}
.staff-avatar .eid-svg{width:27px;height:27px;}
.staff-access-pill .eid-svg{margin-right:5px;}
.staff-account-tab{display:inline-flex;gap:8px;align-items:center;padding:11px 14px;border-bottom:3px solid #ab8179;color:#825b55;font-size:12px;font-weight:750;}
.cd-tabs .eid-svg{width:15px;height:15px;vertical-align:-3px;}
.search-field span[data-eid-icon] .eid-svg{width:19px;height:19px;vertical-align:middle;}

/* EiD Office 0.4.1.3: Mitarbeiter-Neuanlage per Button im Kopfbereich. */
#teamView .view-header{align-items:flex-start;}
#teamView #toggleTeamCreate{align-self:flex-start;white-space:nowrap;}
#teamCreatePanel.hidden{display:none!important;}
.team-form-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.team-form-head h3{margin:0;}

/* 0.4.1.5 – Screenshot-geleitete Personalliste mit funktionsfähigen Filtern */
#teamView .team-panel{overflow:visible}
.team-directory-controls{padding:18px 21px 0;background:white;border-radius:14px 14px 0 0}
.team-directory-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-bottom:18px}
.team-directory-head .eyebrow{font-size:10px;letter-spacing:1px;color:#a28b82}
.team-directory-head h2{font-size:19px;line-height:1.3;margin-top:4px}
.team-directory-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.team-directory-actions .btn{font-size:11px;font-weight:700;min-height:33px;display:inline-flex;align-items:center;gap:5px}
.team-directory-actions .btn .eid-svg{width:14px;height:14px}
.team-directory-actions .team-add{background:#7aa08a;border-color:#7aa08a;color:white}
.team-directory-actions .team-add:hover{background:#628d75}
.team-caret{font-size:13px;line-height:1;padding-left:3px}
.team-action-wrap{position:relative}
.team-action-menu{position:absolute;right:0;top:calc(100% + 5px);min-width:235px;padding:6px;background:#fff;border:1px solid #e1d8d1;box-shadow:0 14px 35px #46362b1c;border-radius:9px;z-index:15}
.team-action-menu button{width:100%;border:0;background:white;text-align:left;padding:10px 12px;color:#55473f;border-radius:7px;font-size:12px}
.team-action-menu button:hover,.team-action-menu button:focus{background:#f5f0ec}
.team-directory-searchrow{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:10px 0 11px}
.team-searchbox{display:flex;align-items:center;gap:10px;min-width:260px;width:min(760px,65%);height:39px;border:1px solid #ded9d5;border-radius:9px;padding:0 11px;background:white}
.team-searchbox .eid-svg{color:#675b53;width:19px;height:19px}
.team-searchbox input{border:0;outline:0;background:transparent;box-shadow:none;min-height:35px;width:100%;padding:6px 0;font-size:12px}
.team-searchbox:focus-within{outline:2px solid #d2e5db;outline-offset:1px}
.team-status-filters{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.team-status-filters button{border:1px solid #9dcbb1;background:white;color:#648e71;border-radius:99px;padding:6px 11px;min-height:30px;font-size:11px;font-weight:650}
.team-status-filters button.is-active{background:#67ad7d;border-color:#67ad7d;color:white}
.team-quickfilters{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:0 0 17px}
.team-filter-pill,.team-cost-chips button{border:1px solid #e0d9d3;background:#fff;color:#84786e;border-radius:99px;padding:6px 10px;font-size:11px;min-height:29px;display:inline-flex;align-items:center;gap:6px}
.team-filter-pill .eid-svg{width:13px;height:13px}
.team-filter-pill.is-active,.team-cost-chips button.is-active{color:#6c5a52;border-color:#c8b2a5;background:#f1e9e5;font-weight:750}
.team-advanced-filters{display:grid;grid-template-columns:repeat(2,minmax(140px,230px)) auto;gap:12px;align-items:end;padding:12px;background:#f9f6f3;border:1px solid #ece2dd;border-radius:10px;margin-bottom:15px}
.team-advanced-filters label{font-size:11px;color:#665b54;font-weight:650;display:grid;gap:5px}
.team-advanced-filters select{font-size:12px;min-height:35px;padding:7px 10px}
.team-advanced-filters p{grid-column:1/-1;font-size:11px;color:#897870}
.team-cost-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:15px 0;border-top:1px solid #eee6e0;border-bottom:1px solid #eee6e0}
.team-muted-label{color:#928078;font-size:11px;min-width:72px;font-weight:600}
.team-cost-chips{display:flex;gap:6px;flex-wrap:wrap}
.team-filter-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 0 14px;color:#a08d83;font-size:10.5px}
.team-filter-selects{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.team-filter-selects label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.team-filter-selects select{min-height:30px;padding:4px 9px;border-radius:7px;font-size:11px;max-width:165px;color:#6a5e57}
.team-filter-selects .team-sort-label select{min-width:124px}
.team-page-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 19px;color:#928077;font-size:11px}
.team-directory-results .data-table th,.team-directory-results .data-table td{font-size:11px}
.team-directory-results .data-table td .team-row-meta{display:block;font-size:10px;color:#9d8b82;margin-top:4px}
.team-directory-results .data-table td .team-employee-link{font-weight:750;color:#6b5047}
.team-directory-results .data-table .team-muted-value{color:#a89b92}
#teamView:has(#staffDetailPanel:not(.hidden)) #teamDirectoryControls,
#teamView:has(#staffDetailPanel:not(.hidden)) #teamDirectoryResults{display:none!important}
.team-letter-backdrop{position:fixed;inset:0;z-index:32;background:#28201f99;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px}
.team-letter-dialog{width:min(700px,100%);max-height:94dvh;overflow:auto;background:#fff;border-radius:14px;box-shadow:0 20px 80px #21191250}
.team-letter-head{padding:20px 24px;border-bottom:1px solid #e8ddd7;display:flex;justify-content:space-between;align-items:start;gap:14px}
.team-letter-head h2{margin-top:5px;font-size:21px}
.team-letter-head p{margin-top:5px;font-size:12px;color:#8e7a71}
#teamLetterForm{padding:21px 24px;display:grid;gap:17px}
#teamLetterForm label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#6d5850}
#teamLetterForm textarea{resize:vertical;min-height:160px;width:100%;font:inherit;padding:12px;border:1px solid #ded5d0;border-radius:8px}
#teamLetterForm>p{font-size:11px;color:#83756d}
.team-letter-actions{display:flex;justify-content:flex-end;gap:9px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1100px){.team-directory-searchrow{align-items:stretch;flex-wrap:wrap}.team-searchbox{width:100%}.team-status-filters{justify-content:flex-start}.team-directory-head{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:750px){.team-directory-controls{padding:14px 12px 0}.team-directory-actions{width:100%}.team-filter-footer{align-items:start;flex-direction:column}.team-filter-selects{justify-content:flex-start}.team-advanced-filters{grid-template-columns:1fr 1fr}.team-advanced-filters .btn{grid-column:1/-1}.team-searchbox{min-width:0}}

/* EiD Office 0.4.1.6 – verified, read-only employee time account. */
.service-delete{color:#9e514e;border-color:#e5c7c2}.service-delete:hover{background:#fff3f1!important}
.staff-time-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:0 0 18px;border-bottom:1px solid #e7e1dc}
.staff-time-toolbar>div:first-child{display:grid;gap:4px}.staff-time-toolbar b{display:flex;gap:8px;align-items:center;font-size:14px}.staff-time-toolbar span{font-size:11px;color:#958980}.staff-time-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.staff-time-controls label{display:flex;align-items:center;gap:7px;font-size:12px}.staff-time-controls select{min-height:34px;width:auto;padding:5px 8px}
.staff-time-selected{background:#edf6f1!important;border-color:#bddcca!important;color:#396e55!important}
.staff-time-confirmed{color:#327657;font-weight:750;background:#e8f5ed;border:1px solid #c2dfcc;padding:4px 8px;border-radius:7px;white-space:nowrap;display:inline-flex}
.staff-time-total-valid{color:#327657}.staff-time-empty{color:#a49d97}
.staff-time-warning{background:#fff4d7;border:1px solid #f2dda4;border-radius:8px;padding:11px 14px;color:#76612d;font-size:12px;margin:16px 0}
.staff-time-overview{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.staff-time-overview>div{padding:15px;background:#f8faf8;border:1px solid #e2eae4;border-radius:10px}.staff-time-overview small{display:block;font-size:10px;color:#829186}.staff-time-overview strong{display:block;font-size:21px;margin-top:5px}
.staff-time-month-link{background:none;border:0;padding:4px;color:#795952;text-decoration:underline;text-decoration-color:#dbcfcf;text-underline-offset:3px;font-weight:650}.staff-time-month-link:hover{color:#327657}.staff-time-table td{padding:12px 14px}
.staff-time-month-head{display:flex;align-items:center;gap:15px;justify-content:space-between;margin:17px 0}.staff-time-days{display:grid;gap:10px}
.staff-time-day{border:1px solid #e1e6df;border-radius:10px;overflow:hidden}.staff-time-day-head{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f8faf8;padding:12px}.staff-time-day-link{background:transparent;border:0;display:flex;align-items:center;gap:10px;color:#564b43;text-align:left}.staff-time-day-link:hover strong{text-decoration:underline}.staff-time-day-body{padding:12px}
.staff-time-grid-head,.staff-time-booking{display:grid;grid-template-columns:2fr 1fr 1fr .7fr;align-items:center;gap:14px;padding:11px 10px;border-bottom:1px solid #e8ede9;font-size:12px}.staff-time-grid-head{background:#f6f9f7;color:#7c8e82;font-size:10px}.staff-time-booking small{display:block;color:#8b9990;margin-top:4px}.staff-time-disclaimer{font-size:11px;color:#8b928a;padding:12px 9px}
@media(max-width:760px){.staff-time-toolbar{align-items:flex-start}.staff-time-grid-head{display:none}.staff-time-booking{grid-template-columns:1fr 1fr}.staff-time-day-head{flex-wrap:wrap}.staff-time-overview{grid-template-columns:1fr}}

/* 0.4.1.6: Import & Export, inspired by the original HTML data hub */
.dh-notice{padding:14px 17px;border-radius:10px;background:#fff8e7;border:1px solid #e8d9b5;color:#76634d;font-size:12px;margin-bottom:18px}
.dh-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.dh-card{background:#fff;border:1px solid var(--stroke);border-radius:12px;padding:19px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow)}
.dh-card b{font-size:13px}.dh-card strong{font-size:24px;color:#63907b}.dh-card>div{display:flex;gap:9px}.dh-card p{font-size:11px;color:var(--muted)}
.dh-import-body{padding:20px 22px}.dh-import-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.dh-import-fields label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#62534d}
.dh-status{margin:18px 0 10px;color:#5a8066;font-size:12px}.dh-status.warning{color:#b16a48}
.dh-preview{border:1px solid #dfd9d3;border-radius:9px;overflow:hidden;margin:12px 0;background:#fff}
.dh-preview-heading{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:13px 15px;background:#f9f8f6;font-size:12px}
.dh-preview-scroll{max-height:350px;overflow:auto}.dh-preview table{border-collapse:collapse;width:100%;font-size:12px}
.dh-preview th{text-align:left;background:#f8f4f1;color:#89766f;font-size:10px}.dh-preview td,.dh-preview th{padding:9px 12px;border-top:1px solid #f1eae6}
.dh-preview td small{display:block;font-size:11px;color:#ad5e55;margin-top:3px}
.dh-action{border:1px solid #e5dcd5;border-radius:6px;padding:2px 6px;white-space:nowrap}.dh-action.create{background:#e8f3ec;color:#39815a}.dh-action.update{background:#eef3fb;color:#4a74aa}.dh-action.skip{background:#f4f3f2;color:#796e65}.dh-action.error{background:#fff0ed;color:#a4473d}
.dh-confirm{font-size:12px;display:flex;align-items:center;gap:8px;margin-top:14px}.dh-confirm input{width:18px;height:18px;min-height:18px;accent-color:#698f78}
.dh-actions{display:flex;gap:12px;margin:15px 0}.dh-subnote{font-size:11px;color:var(--muted);line-height:1.65}
@media(max-width:760px){.dh-cards{grid-template-columns:1fr}.dh-import-fields{grid-template-columns:1fr}.dh-actions{flex-direction:column}}

/* EiD Office 0.4.1.9 – Kundenliste nach dem HTML-Referenzlayout 0.3.8.3 */
#customersView .eid-customer-list-panel .panel-header{padding:19px 21px;}
#customersView .eid-customer-list-panel .panel-header h2{font-size:18px;}
#customersView .eid-live-tag{padding:7px 11px;background:#edf6f1;border:1px solid #d2e7d9;border-radius:99px;color:#50866c;font-size:10px;font-weight:750;white-space:nowrap;}
#customersView .eid-customer-list-tools{padding:16px 20px 8px;}
#customersView .eid-customer-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:1140px;align-items:end;}
#customersView .eid-customer-filter{display:grid;gap:7px;min-width:0;font-size:12px;color:#554944;font-weight:700;}
#customersView .eid-customer-filter input,#customersView .eid-customer-filter select{width:100%;min-width:0;min-height:40px;padding:8px 11px;border-radius:8px;background:#fff;border:1px solid #e5d8d1;color:#584942;}
#customersView .eid-customer-funding-help{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:14px 0 4px;color:#91857b;font-size:11px;}
#customersView .eid-customer-list-table{width:100%;min-width:920px;table-layout:fixed;}
#customersView .eid-customer-col-name{width:16%}#customersView .eid-customer-col-city{width:12%}#customersView .eid-customer-col-district{width:16%}#customersView .eid-customer-col-service{width:17%}#customersView .eid-customer-col-funding{width:21%}#customersView .eid-customer-col-status{width:9%}#customersView .eid-customer-col-actions{width:9%}
#customersView .eid-customer-list-table th{padding:12px 14px;white-space:normal;line-height:1.4;vertical-align:middle;}
#customersView .eid-customer-list-table td{padding:17px 14px;vertical-align:middle;overflow-wrap:anywhere;}
#customersView .eid-customer-list-table td:nth-child(5){white-space:normal;}
#customersView .eid-customer-list-table td small{font-size:10px;color:#988e88;}
#customersView .eid-customer-list-table th:last-child,#customersView .eid-customer-list-table td:last-child{text-align:left;white-space:nowrap;}
#customersView .eid-customer-service-tag{display:inline-block;padding:4px 8px;margin:2px 4px 2px 0;background:#edf6ef;border-radius:99px;border:1px solid #d8eade;color:#4f815f;font-size:10px;white-space:normal;}
#customersView .eid-funding-tags{display:flex;gap:5px;align-items:center;flex-wrap:wrap;}
#customersView .eid-funding-tag{display:inline-flex;align-items:center;padding:4px 8px;border-radius:99px;font-size:10px;line-height:1.3;font-weight:750;white-space:nowrap;}
#customersView .eid-funding-tag.pg{color:#4e7e33;background:#ecf6cc;border:1px solid #d9e7ae;}
#customersView .eid-funding-tag.aev{color:#4b73ab;background:#edf3fd;border:1px solid #d8e6fc;}
#customersView .eid-funding-tag.sgb12{color:#8a6752;background:#f5eee5;border:1px solid #e6dbce;}
#customersView .eid-funding-tag.private{color:#996166;background:#faeded;border:1px solid #edd9d9;}
#customersView .eid-funding-empty{color:#a8a099;}
#customersView .eid-customer-edit{white-space:nowrap;padding:7px 10px;font-size:11px;}
#customersView .eid-customer-list-panel>.table-footer{border-top:1px solid #f1e8e4;}
@media(max-width:1100px){#customersView .eid-customer-filters{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){#customersView .eid-customer-filters{grid-template-columns:1fr;}#customersView .eid-customer-list-table{min-width:900px;}}

/* 0.4.2.7 – Menüstruktur exakt nach HTML-Referenz 0.3.8.3 */
@media (min-width:751px){
 .app-shell{grid-template-columns:260px minmax(0,1fr)}
 .sidebar{overflow:hidden}
 .sidebar .brand{padding:16px 15px 14px;flex:0 0 auto}
 .eid-nav-stack{flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#e4d5cf transparent;padding-bottom:15px}
 .eid-nav-stack::-webkit-scrollbar{width:5px}
 .eid-nav-stack::-webkit-scrollbar-thumb{background:#e4d5cf;border-radius:5px}
 .sidebar-footer{margin-top:0;flex-shrink:0;padding:14px 20px}
}
.sidebar .eid-menu{display:block;padding:0 9px}
.sidebar .eid-nav-direct,.sidebar .eid-nav-group-toggle,.sidebar .eid-nav-child{font-size:12.5px;line-height:1.3;min-height:39px;border:0;background:transparent;color:#655852;text-align:left;display:flex;gap:10px;align-items:center;border-radius:9px;padding:10px 12px;width:100%;margin:1px 0;font-weight:650}
.sidebar .eid-nav-direct .nav-label,.sidebar .eid-nav-group-toggle .nav-label{flex:1;min-width:0}
.sidebar .eid-nav-group-toggle{cursor:pointer}
.sidebar .eid-nav-group-toggle:hover,.sidebar .eid-nav-direct:hover:not(.active),.sidebar .eid-nav-child:hover:not(.active){background:#f8f6f4}
.sidebar .eid-nav-direct.active,.sidebar .eid-nav-child.active{background:#f3ebe8;color:#8f5f59}
.sidebar .eid-nav-group.is-current>.eid-nav-group-toggle{color:#90675e}
.sidebar .eid-nav-chevron{font-size:16px;color:#af9b92;transition:transform .18s}
.sidebar .eid-nav-group.is-expanded .eid-nav-chevron{transform:rotate(180deg)}
.sidebar .eid-nav-children{display:grid;gap:1px;margin:1px 0 6px 20px;border-left:1px solid #eadfda;padding-left:9px}
.sidebar .eid-nav-children[hidden]{display:none!important}
.sidebar .eid-nav-child{min-height:35px;padding:8px 9px;margin:0;font-size:12px;font-weight:570;overflow-wrap:anywhere}
.sidebar .eid-admin-heading{margin-top:19px}
.sidebar [data-eid-icon] .eid-svg{width:18px;height:18px}
.eid-ready-pill{padding:8px 12px;border-radius:999px;background:#e9f4ef;border:1px solid #d5e8dd;color:#4a7865;font-size:11px;font-weight:750;white-space:nowrap}
.eid-ready-pill.pending{background:#f8f2ee;border-color:#eadbd3;color:#97786b}
.eid-overview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}
.eid-overview-stat{background:#fff;border:1px solid var(--stroke);padding:18px 20px;border-radius:13px;box-shadow:var(--shadow)}
.eid-overview-stat small{display:block;color:#91827a;font-size:11px}
.eid-overview-stat strong{font-size:29px;display:block;margin-top:5px;color:#4e7569}
.eid-overview-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:20px}
.eid-shortcut{text-align:left;padding:18px;border:1px solid #e6ddd8;border-radius:12px;background:#fcfaf9;display:grid;grid-template-columns:27px 1fr;align-items:center;gap:2px 11px;min-height:85px}
.eid-shortcut:hover{background:#f4efec;border-color:#d8c5bc}
.eid-shortcut>span{grid-row:1/span 2;color:#a17b73}
.eid-shortcut svg{width:22px;height:22px}
.eid-shortcut b{font-size:13px;color:#55453f}
.eid-shortcut small{font-size:11px;color:#8f8078}
.eid-placeholder-items{display:grid;gap:0}
.eid-placeholder-item{display:flex;align-items:center;gap:13px;padding:17px 23px;border-bottom:1px solid #f1ebe8;min-height:55px}
.eid-placeholder-item>span{font-size:11px;font-weight:750;color:#b08b83;width:27px}
.eid-placeholder-item b{font-size:13px;color:#514941;flex:1}
.eid-placeholder-item small{font-size:11px;color:#95867f}
.eid-placeholder-footer{padding:18px 23px 20px;background:#fbf8f6}
.eid-placeholder-footer>p{font-size:12px;color:#8e8078;line-height:1.6;max-width:750px}
.eid-placeholder-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.eid-settings-future{margin-top:20px}
@media(max-width:750px){
 .sidebar{padding-bottom:8px}
 .sidebar .eid-nav-stack{overflow:visible;width:100%}
 .sidebar .eid-menu{display:block;padding:0 12px}
 .sidebar .eid-nav-group-toggle,.sidebar .eid-nav-direct,.sidebar .eid-nav-child{width:100%;margin:1px 0}
 .sidebar .eid-nav-children{display:grid;flex-direction:column}
 .sidebar .nav-heading{display:block;margin:12px 23px 6px}
 .eid-overview-metrics{grid-template-columns:1fr}
 .eid-overview-shortcuts{grid-template-columns:1fr}
 .eid-placeholder-item{flex-wrap:wrap}
}

/* EiD Office 0.4.2.8 – administrativer Monatsabschluss (ohne Festsetzung). */
.mc-panel{padding:22px;margin:16px 0}.mc-panel h2{font-size:19px;color:#443b36;margin:0 0 5px}.mc-panel p{font-size:12px;color:#7e736d;margin:0}.mc-toolbar,.mc-review-title{display:flex;justify-content:space-between;align-items:center;gap:20px}.mc-toolbar-actions{display:flex;align-items:flex-end;gap:9px}.mc-toolbar-actions label{display:flex;flex-direction:column;font-size:11px;color:#6d5a52;gap:5px;font-weight:700}.mc-toolbar-actions input{height:38px;border:1px solid #ddcbc1;background:white;border-radius:8px;padding:6px 10px}.mc-status{margin:16px 0;border:1px solid #d8dfd8;border-radius:10px;background:#f4f8f5;padding:11px 13px;font-size:12px;color:#4e685a}.mc-status.warn{background:#fff6eb;color:#99693b;border-color:#f0dcc2}.mc-status.error{background:#fff1f0;color:#98554d;border-color:#e7c3bd}.mc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:0 0 18px}.mc-stat{border:1px solid #e5dcd4;border-radius:12px;background:#fff;padding:14px 15px}.mc-stat b{display:block;font-size:23px;color:#584840}.mc-stat span{display:block;color:#887b74;font-size:11px}.mc-section-title{margin:19px 0 8px;font-size:15px;color:#5d4940}.mc-table-scroll{width:100%;overflow:auto;border:1px solid #e6ded6;border-radius:10px}.mc-table{border-collapse:collapse;width:100%;font-size:12px}.mc-table th{background:#e7f3ef;color:#35584d;text-align:left;font-size:11px;padding:11px 12px}.mc-table td{border-top:1px solid #ebe5e0;padding:10px 12px;vertical-align:top}.mc-table ul{margin:0;padding:0 0 0 16px}.mc-table li+li{margin-top:4px}.mc-table .warn{color:#9a6754}.mc-table .block{color:#a34d48}.mc-table .muted{color:#9b8a80}.mc-review-title small{font-size:11px;color:#857a73;text-align:right}.mc-checks{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;padding:16px 0}.mc-checks label{display:flex;align-items:center;gap:9px;font-size:13px;color:#5c5049}.mc-checks input{accent-color:#7eae9d;width:16px;height:16px}.mc-note-label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#5c5049;font-weight:700}.mc-note-label textarea{width:100%;resize:vertical;padding:12px;border:1px solid #decfc7;border-radius:10px;color:#443932;font:13px/1.5 'Segoe UI',Arial,sans-serif}.mc-review-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:13px}.mc-review-actions span{font-size:11px;color:#8e817a}.mc-review-actions button{white-space:nowrap}
@media(max-width:890px){.mc-stats{grid-template-columns:1fr 1fr}.mc-toolbar,.mc-review-title{align-items:flex-start;flex-direction:column}.mc-checks{grid-template-columns:1fr}.mc-review-actions{flex-direction:column;align-items:flex-start}}

/* EiD Office 0.4.2.10: Monatsprüfung, offene Punkte, Prüfstand */
.mc-stats{grid-template-columns:repeat(6,minmax(0,1fr))}
.mc-stat b{font-variant-numeric:tabular-nums}
.mc-stat.warn{border-color:#ebd7c5;background:#fffbf6}
.mc-stat.danger{border-color:#e4c4bf;background:#fffafa}
.mc-overview-footer{font-size:12px;color:#746a63;margin:-5px 0 15px;padding:11px 14px;background:#f7f5f2;border:1px solid #e5dfd9;border-radius:9px}
.mc-filterbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;color:#77685f;font-size:12px}
.mc-filterbar label{display:flex;align-items:center;gap:8px;cursor:pointer}
.mc-filterbar input{width:16px!important;height:16px!important;min-height:16px!important;accent-color:#9b736e;margin:0;box-sizing:border-box}
.mc-review-progress{background:#f5f8f6;border:1px solid #d9e5dd;border-radius:9px;padding:10px 12px;font-size:12px;color:#456052;margin:14px 0 2px}
.mc-review-progress.stale{background:#fff6ee;border-color:#e9d4c1;color:#915d43}
.mc-review-progress.todo{background:#fff8f6;border-color:#eadad6;color:#855e55}
.mc-table .mc-no-issues{color:#62856e;font-weight:600}
.mc-table .mc-row-action{white-space:nowrap;min-width:96px}
.mc-table .mc-action-btn{padding:7px 11px;font-size:11px}
.mc-draft-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:700;background:#fff2eb;color:#946550}
.mc-draft-status.ready{background:#eaf4ee;color:#46785f}
@media(max-width:1250px){.mc-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.mc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mc-filterbar{align-items:flex-start;flex-direction:column}}

/* EiD Office 0.4.2.12 – Vorbereitung Sammelfestsetzung, ohne Festsetzung */
.mc-batch-panel{border-color:#dfd3cc}
.mc-batch-tag{font-weight:700;font-size:11px;padding:7px 11px;border:1px solid #d9c9bd;border-radius:999px;background:#f5f1ec;color:#8e7064;white-space:nowrap}
.mc-batch-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.mc-batch-stats>div{border:1px solid #e8dfd9;border-radius:11px;padding:13px 15px;background:#fdfcfb}
.mc-batch-stats strong{display:block;font-size:22px;line-height:1.3;color:#4b524d;font-variant-numeric:tabular-nums}
.mc-batch-stats span{display:block;color:#8c7c75;font-size:11px}
.mc-batch-alert,.mc-batch-info{border:1px solid #e7d7cd;background:#fdf8f4;border-radius:9px;padding:12px 14px;font-size:12px;line-height:1.5;color:#836151;margin:12px 0}
.mc-batch-info{background:#f3faf7;color:#527563;border-color:#d7e7db}
.mc-batch-alert ul{margin:5px 0 0;padding-left:20px}
.mc-batch-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0 10px}
.mc-batch-toolbar #mcBatchSum{margin-left:auto;font-size:13px;font-weight:700;color:#5b4a43}
.mc-batch-toolbar .btn{font-size:12px}
.mc-batch-panel .mc-table th:first-child,.mc-batch-panel .mc-table td:first-child{width:70px;text-align:center}
.mc-batch-panel .mc-table input[type=checkbox]{width:17px!important;height:17px!important;min-height:17px!important;accent-color:#9e7d73;cursor:pointer}
.mc-batch-panel .mc-table input[type=checkbox]:disabled{cursor:not-allowed;opacity:.5}
.mc-batch-money{white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}
.mc-batch-blocked{background:#fff9f8}
.mc-batch-state{display:inline-block;font-size:11px;font-weight:700;border-radius:999px;padding:5px 9px;white-space:nowrap}
.mc-batch-state.bad{color:#9b544d;background:#fff0ed}
.mc-batch-state.caution{color:#9b7251;background:#fff5ea}
.mc-batch-state.okay{color:#507a66;background:#edf7ef}
.mc-batch-issues{font-size:11px;color:#76655e;padding-left:17px;margin:3px 0}
.mc-batch-issues li+li{margin-top:4px}
.mc-batch-previous{font-size:10px;color:#a3544c;margin-top:5px}
.mc-batch-note{margin-top:16px}
.mc-batch-empty{padding:24px;text-align:center;color:#897b74;font-size:13px}
@media(max-width:900px){.mc-batch-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.mc-batch-toolbar #mcBatchSum{margin-left:0;width:100%}.mc-batch-stats{grid-template-columns:1fr 1fr}}

/* EiD 0.4.2.18 – accessible boot screen; never silently show a blank app. */
.eid-startup-screen{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:var(--bg,#f5f2ee)}
.eid-startup-screen.hidden{display:none!important}
.eid-startup-card{width:min(460px,100%);padding:35px 30px;background:white;border:1px solid var(--stroke,#e5ddd8);border-radius:18px;box-shadow:0 14px 50px #45322b12;text-align:center}
.eid-startup-card img{object-fit:contain;display:block;margin:0 auto 15px}
.eid-startup-card h1{font-size:20px;margin-bottom:12px}
.eid-startup-card p{font-size:13px;color:#74655d;line-height:1.6}
.eid-startup-actions{margin-top:20px;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.eid-startup-actions[hidden]{display:none!important}

/* 0.4.2.32 – Personalakte: responsive contract and teamplan comparison */
.staff-screen .staff-inline-form textarea{box-sizing:border-box;min-height:74px;resize:vertical}
.staff-screen .staff-stats-four b{overflow-wrap:anywhere}
.staff-screen .staff-card .staff-card-content>.staff-card{margin-top:16px}
@media(max-width:680px){.staff-screen .staff-stats-four,.staff-screen .staff-fields.two{grid-template-columns:1fr}}

/* 0.4.2.32 – employee creation defaults, without affecting existing records */
.team-create-defaults{grid-column:1/-1;background:#f7f5f2;border:1px solid #e5d9d3;border-radius:10px;padding:14px}.team-create-contract{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.team-create-contract label{min-width:0}.team-create-contract input,.team-create-contract select{max-width:100%}#teamDefaultsInfo{font-size:12px;color:#5e635b;line-height:1.5}#teamDefaultsInfo:empty{display:none}@media(max-width:850px){.team-create-contract{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:580px){.team-create-contract{grid-template-columns:1fr}}

/* 0.4.2.41: eine zentrale und verständliche Anzeige bei Verbindungsproblemen */
.eid-connection-banner {position:fixed;right:20px;bottom:20px;z-index:9995;max-width:min(460px,calc(100vw - 32px));padding:18px 19px;background:#fffdfb;color:#3d3431;border:1px solid #d6b5a9;border-left:5px solid #ad6e58;box-shadow:0 12px 38px #30241c28;border-radius:13px;display:flex;gap:13px;align-items:center;flex-wrap:wrap}
.eid-connection-banner[hidden]{display:none!important}
.eid-connection-banner strong{font-size:15px}
.eid-connection-banner p{font-size:13px;line-height:1.5;margin:7px 0}
.eid-connection-banner small{display:block;color:#78665e;line-height:1.4;font-size:11px}
.eid-connection-banner button{white-space:nowrap;flex-shrink:0}
@media(max-width:560px){.eid-connection-banner{left:12px;right:12px;bottom:12px;max-width:none;padding:14px}.eid-connection-banner button{width:100%}}

/* EiD Office 0.4.2.53 – Kundenakte zusätzlich über die gesamte Zeile öffnen. */
#customersView #customerRows tr.eid-customer-click-row{cursor:pointer;transition:background-color .15s ease}
#customersView #customerRows tr.eid-customer-click-row:hover{background:#f8f3ef}
#customersView #customerRows tr.eid-customer-click-row:focus-visible{outline:2px solid #C0A999;outline-offset:-2px;background:#F0ECE8}
#customersView #customerRows .eid-customer-edit{cursor:pointer}
