:root{--cyan:#05a9d7;--cyan2:#e8f8fc;--red:#e5232a;--nav:#132331;--nav2:#0f1d29;--text:#18212b;--muted:#71808f;--line:#e5e9ed;--bg:#f5f7f8;--white:#fff;--green:#2e9d67;--orange:#e99532;--blue:#4079d5;--radius:10px}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg);font-size:14px}.app{display:flex;min-height:100vh}.sidebar{width:238px;background:var(--nav);color:#dce5eb;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:10}.brand{height:82px;padding:14px 16px;background:#fff;border-right:1px solid var(--line);display:flex;align-items:center;gap:10px;color:var(--text)}.brand img{width:66px;height:52px;object-fit:contain}.brand strong{display:block;font-size:14px}.brand small{display:block;color:#75818c;margin-top:3px;font-size:11px}.sidebar nav{padding:12px 10px;overflow:auto;flex:1}.nav-item{width:100%;border:0;background:transparent;color:#b9c6cf;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:7px;text-align:left;font-size:13px;margin:2px 0;cursor:pointer}.nav-item span{flex:1}.nav-item b{background:#314555;border-radius:12px;padding:2px 7px;font-size:10px}.nav-item:hover,.nav-item.active{background:#1e3546;color:#fff}.nav-item.active{box-shadow:inset 3px 0 var(--cyan)}.nav-label{font-size:9px;letter-spacing:1.2px;color:#698091;padding:17px 12px 5px}.side-foot{padding:14px 16px;border-top:1px solid #263b4a;display:flex;gap:10px;align-items:center}.side-foot strong,.side-foot small{display:block;font-size:10px}.side-foot small{color:#7f94a3;margin-top:2px}.sync-dot{width:8px;height:8px;border-radius:50%;background:#45c786}.main{margin-left:238px;width:calc(100% - 238px)}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 26px;position:sticky;top:0;z-index:8}.search{width:390px;border:1px solid #dfe4e8;background:#f8fafb;border-radius:7px;height:36px;display:flex;align-items:center;padding:0 11px;color:#8a96a1}.search input{border:0;outline:0;background:transparent;width:100%;padding-left:8px}.top-actions{display:flex;align-items:center;gap:8px}.icon-btn{border:1px solid #e2e6ea;background:#fff;width:34px;height:34px;border-radius:50%;position:relative}.icon-btn i{position:absolute;width:6px;height:6px;background:var(--red);border-radius:50%;right:2px;top:2px}.user{display:flex;align-items:center;gap:8px;margin-left:8px}.user strong,.user small{display:block;font-size:11px}.user small{color:#85919c;margin-top:2px}.avatar{width:34px;height:34px;border-radius:50%;background:#d8eef4;color:#24758a;display:grid;place-items:center;font-weight:700;font-size:11px}.content{padding:26px 28px 50px;max-width:1580px;margin:auto}.view{display:none}.view.active{display:block}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.page-head h1{margin:0;font-size:23px}.page-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.primary{background:var(--cyan);border:0;color:white;border-radius:6px;padding:10px 16px;font-weight:700;cursor:pointer}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.kpis article,.stat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;display:flex;align-items:center;gap:13px;box-shadow:0 1px 2px rgba(20,30,40,.03)}.kpi-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:800}.kpi-icon.cyan{background:#dff6fb;color:#1592af}.kpi-icon.blue{background:#e6effd;color:#3e73c8}.kpi-icon.orange{background:#fff0dd;color:#d98525}.kpi-icon.green{background:#e5f5ed;color:#2d9362}.kpis span,.stat-card span{font-size:11px;color:#6e7b86;display:block}.kpis strong,.stat-card strong{font-size:22px;display:block;margin-top:2px}.kpis small,.stat-card small{font-size:10px;color:#9aa4ad;display:block;margin-top:3px}.grid-main{display:grid;grid-template-columns:1.7fr .8fr;gap:16px;margin-bottom:16px}.grid-bottom{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px rgba(20,30,40,.03);overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #edf0f2}.panel-head h2,.panel>h2{font-size:14px;margin:0}.panel-head p{margin:4px 0 0;color:#8a96a0;font-size:10px}.text-btn{border:0;background:transparent;color:#168bad;font-size:11px;cursor:pointer}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:650px}th{background:#fafbfc;text-align:left;color:#7c8994;font-size:10px;font-weight:600;padding:9px 14px;border-bottom:1px solid #edf0f2}td{padding:11px 14px;border-bottom:1px solid #f0f2f4;font-size:11px}td b,td small{display:block}td small{color:#8c98a2;margin-top:3px;font-size:9px}.faces{display:flex}.faces i{font-style:normal;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#d7eef4;color:#2b7d90;font-size:8px;font-weight:700;border:2px solid #fff;margin-left:-4px}.status{display:inline-block;border-radius:14px;padding:4px 9px;font-size:9px;font-style:normal;white-space:nowrap}.status.active{background:#e8f7f1;color:#2c8e65}.status.route{background:#eaf1fc;color:#3f72bc}.status.plan{background:#fff1de;color:#c97b1e}.status.done{background:#e8f7f1;color:#2c8e65}.status.danger{background:#fdebed;color:#c84049}.people-status{display:grid;grid-template-columns:repeat(4,1fr);padding:14px 16px;border-bottom:1px solid #edf0f2}.people-status div{text-align:center;border-right:1px solid #edf0f2}.people-status div:last-child{border:0}.people-status b,.people-status small{display:block}.people-status b{font-size:17px;margin:3px}.people-status small{font-size:8px;color:#8c98a2}.dot{width:6px;height:6px;border-radius:50%;display:inline-block}.dot.green{background:#41ad79}.dot.cyan{background:#27a8c9}.dot.yellow{background:#e7a239}.dot.red{background:#db515a}.mini-list{padding:8px 16px}.mini-list>div{display:flex;align-items:center;gap:9px;padding:8px 0}.avatar.sm{width:27px;height:27px;font-style:normal;font-size:8px}.mini-list span{flex:1}.mini-list b,.mini-list small{display:block;font-size:9px}.mini-list small{color:#8c98a2;margin-top:2px}.mini-list em{font-size:8px;color:#318a63;background:#e7f5ee;border-radius:12px;padding:4px 7px;font-style:normal}.mini-list em.free{color:#168aa8;background:#e4f7fb}.alerts{padding:8px 16px}.alerts>div{display:flex;align-items:center;gap:11px;padding:9px 0;border-bottom:1px solid #f0f2f3}.alerts>div:last-child{border:0}.alert-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center}.alert-icon.orange{background:#fff0dc;color:#d98a29}.alert-icon.red{background:#fde9ea;color:#d64c53}.alert-icon.cyan{background:#e2f7fb;color:#2395b0}.alerts p{margin:0;flex:1}.alerts b,.alerts small{display:block;font-size:9px}.alerts small{color:#8d98a2;margin-top:3px}.alerts button,.outline{background:#fff;border:1px solid #dfe4e8;border-radius:5px;padding:6px 9px;font-size:9px;cursor:pointer}.quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:16px}.quick button{background:#fff;border:1px solid #e2e7ea;border-radius:7px;padding:14px 8px;text-align:left;font-size:10px;cursor:pointer}.quick span{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:5px;background:#e4f7fb;color:#158ba8;margin-right:7px}.filterbar{display:flex;gap:8px;margin-bottom:14px}.filterbar input,.filterbar select,.filterbar button,.settings-grid input{height:36px;border:1px solid #dfe4e8;border-radius:6px;background:#fff;padding:0 11px}.filterbar input{flex:1}.filterbar button{cursor:pointer}.cards-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}.stat-card{display:block}.project-grid,.vehicle-grid,.role-grid,.employee-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.project-grid article,.vehicle-grid article,.role-grid article,.employee-grid article{background:#fff;border:1px solid var(--line);border-radius:9px;padding:17px}.project-grid h3,.vehicle-grid h3,.role-grid h3,.employee-grid h3{margin:10px 0 5px;font-size:14px}.project-grid p,.vehicle-grid p,.role-grid p,.employee-grid p{color:#7c8994;font-size:10px;min-height:28px}.project-grid article>div{display:flex;gap:8px;align-items:baseline;margin-top:16px}.project-grid article>div b{font-size:16px}.project-grid article>div small{font-size:9px;color:#8a96a0;margin-right:10px}.tag{font-size:8px;background:#e8f7f1;color:#2c8e65;padding:4px 7px;border-radius:12px}.tag.gray{background:#eef1f3;color:#65727c}.orangeTag{background:#fff0dc;color:#c97b1e}.vehicle-top{display:flex;justify-content:space-between;align-items:center;color:#7d8993;font-size:10px}.vehicle-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.vehicle-meta span{font-size:8px;background:#f3f5f6;border-radius:4px;padding:5px 7px}.compact article{padding:12px 16px}.employee-grid article{display:flex;align-items:center;gap:12px}.employee-grid .avatar{flex:none}.employee-grid p{min-height:0;margin:3px 0}.employee-grid .emp-info{flex:1}.scheduler{overflow:auto}.toolbar{display:flex;align-items:center;gap:7px;padding:12px;border-bottom:1px solid var(--line)}.toolbar button{border:1px solid #dfe4e8;background:#fff;border-radius:5px;padding:6px 9px}.toolbar b{font-size:11px}.toolbar span{flex:1}.schedule-grid{display:grid;grid-template-columns:160px repeat(5,minmax(160px,1fr));min-width:980px}.sg-head{background:#fafbfc;padding:10px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);font-size:10px;font-weight:700}.person-cell,.day{min-height:78px;border-right:1px solid #edf0f2;border-bottom:1px solid #edf0f2;padding:9px}.person-cell b,.person-cell small{display:block;font-size:10px}.person-cell small{color:#8b97a0;margin-top:3px}.job{border-left:3px solid;padding:7px;border-radius:4px;font-size:9px;font-weight:600}.job small{display:block;font-size:8px;margin-top:3px;color:#66747f}.cyanjob{background:#e6f8fb;border-color:#17a4c7}.bluejob{background:#eaf1fc;border-color:#4779c6}.grayjob{background:#f0f2f4;border-color:#7c8994}.available{font-size:9px;color:#2e9366;border:1px dashed #91c8ad;border-radius:4px;padding:8px;text-align:center}.leave{background:#fff1dc;color:#b87522;border-left:3px solid #e5a045;border-radius:4px;padding:8px;font-size:9px}.empty-panel{background:#fff;border:1px solid var(--line);border-radius:9px;padding:50px;text-align:center;color:#8b97a0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-grid .panel{padding:18px}.settings-grid label{display:block;font-size:10px;margin-top:14px;color:#687680}.settings-grid input{display:block;width:100%;margin-top:5px}.modal{position:fixed;inset:0;background:rgba(12,24,34,.45);z-index:50;display:none;align-items:center;justify-content:center;padding:20px}.modal.open{display:flex}.modal-card{background:#fff;width:min(720px,100%);border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.2);max-height:90vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:16px;margin:0}.modal-head button{border:0;background:transparent;font-size:24px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px}.form-grid label{font-size:10px;color:#687680}.form-grid input,.form-grid select,.form-grid textarea{display:block;width:100%;border:1px solid #dfe4e8;border-radius:6px;padding:9px;margin-top:5px;font:inherit}.form-grid textarea{min-height:80px}.form-grid .wide{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 18px 18px}.modal-actions button{padding:9px 14px;border-radius:6px;border:1px solid #dfe4e8;background:#fff}.modal-actions .primary{border-color:var(--cyan);background:var(--cyan)}
@media(max-width:1050px){.sidebar{width:72px}.brand{padding:10px}.brand div,.nav-item span,.nav-item b,.nav-label,.side-foot div{display:none}.brand img{width:50px}.nav-item{justify-content:center;font-size:17px}.main{margin-left:72px;width:calc(100% - 72px)}.grid-main,.grid-bottom{grid-template-columns:1fr}.project-grid,.vehicle-grid,.role-grid,.employee-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.topbar{padding:0 12px}.search{width:48px}.search input{display:none}.user div:not(.avatar),.user span{display:none}.content{padding:18px 12px}.page-head{align-items:flex-start;gap:12px}.kpis,.cards-3{grid-template-columns:1fr 1fr}.project-grid,.vehicle-grid,.role-grid,.employee-grid,.settings-grid{grid-template-columns:1fr}.filterbar{flex-wrap:wrap}.filterbar input{min-width:100%}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}}

/* v0.2.0 – größere, klassische Betriebssoftware-Oberfläche */
body{font-size:16px}.sidebar{width:220px}.main{margin-left:220px;width:calc(100% - 220px)}.brand{height:88px;padding:14px 15px}.brand img{width:72px;height:58px}.brand strong{font-size:16px}.brand small{font-size:12px}.sidebar nav{padding:13px 9px}.nav-item{font-size:14px;padding:11px 12px;min-height:42px}.nav-label{font-size:10px;padding-top:19px}.side-foot strong,.side-foot small{font-size:11px}.topbar{height:70px;padding:0 24px}.search{width:min(460px,42vw);height:42px}.search input{font-size:14px}.icon-btn{width:38px;height:38px}.user strong{font-size:13px}.user small{font-size:11px}.avatar{width:38px;height:38px;font-size:12px}.content{padding:28px 30px 56px;max-width:1680px}.page-head{margin-bottom:22px}.page-head h1{font-size:27px}.page-head p{font-size:14px;margin-top:6px}.primary{font-size:14px;padding:11px 17px;min-height:42px}.kpis{gap:16px;margin-bottom:18px}.kpis article,.stat-card{padding:18px}.kpi-icon{width:44px;height:44px}.kpis span,.stat-card span{font-size:13px}.kpis strong,.stat-card strong{font-size:25px}.kpis small,.stat-card small{font-size:11px}.panel-head{padding:17px 18px}.panel-head h2,.panel>h2{font-size:16px}.panel-head p{font-size:12px}.text-btn{font-size:12px}th{font-size:11px;padding:11px 14px}td{font-size:13px;padding:13px 14px}td small{font-size:11px}.status{font-size:11px;padding:5px 9px}.people-status{padding:16px}.people-status b{font-size:19px}.people-status small{font-size:10px}.mini-list b{font-size:12px}.mini-list small{font-size:10px}.mini-list em{font-size:10px}.alerts{padding:9px 16px}.alerts>div{padding:11px 0}.alerts b{font-size:12px}.alerts small{font-size:10px}.alerts button,.outline{font-size:11px;padding:7px 10px}.quick{gap:10px}.quick button{font-size:13px;padding:14px 10px;min-height:52px}.filterbar input,.filterbar select,.filterbar button,.settings-grid input{height:42px;font-size:13px}.project-grid h3,.vehicle-grid h3,.role-grid h3,.employee-grid h3{font-size:16px}.project-grid p,.vehicle-grid p,.role-grid p,.employee-grid p{font-size:12px}.tag,.vehicle-meta span{font-size:10px}.toolbar button{font-size:12px;padding:8px 11px}.toolbar b{font-size:13px}.sg-head{font-size:12px}.person-cell b{font-size:12px}.person-cell small{font-size:10px}.job,.available,.leave{font-size:11px}.job small{font-size:9px}.settings-grid label{font-size:12px}.modal-head h2{font-size:19px}.form-grid label{font-size:12px}.form-grid input,.form-grid select,.form-grid textarea{font-size:14px}.update-panel{grid-column:1/-1}.update-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.update-title h2{margin:0;font-size:16px}.update-title p{margin:5px 0 0;color:var(--muted);font-size:12px}.version-badge{background:#e4f7fb;color:#168aa8;border-radius:16px;padding:6px 10px;font-size:12px;font-weight:700}.update-info,.system-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #edf0f2;font-size:13px}.update-drop{display:block!important;border:1px dashed #aab8c2;border-radius:8px;padding:18px!important;margin-top:16px!important;background:#fafcfd;cursor:pointer}.update-drop strong,.update-drop small{display:block}.update-drop strong{font-size:14px;color:var(--text)}.update-drop small{font-size:11px;color:var(--muted);margin-top:4px}.update-drop input{margin-top:12px!important;border:0!important;padding:0!important;height:auto!important}.file-name{font-size:11px;color:var(--muted);margin:9px 0}.update-btn{margin-top:5px}.update-btn:disabled{opacity:.45;cursor:not-allowed}.update-note{font-size:11px;color:var(--muted);margin:12px 0 0}.ok{color:var(--green)}
@media(max-width:1180px){.sidebar{width:82px}.brand{padding:10px 7px;justify-content:center}.brand div,.nav-item span,.nav-item b,.nav-label,.side-foot div{display:none}.brand img{width:60px}.nav-item{justify-content:center;font-size:19px}.main{margin-left:82px;width:calc(100% - 82px)}.grid-main,.grid-bottom{grid-template-columns:1fr}.project-grid,.vehicle-grid,.role-grid,.employee-grid{grid-template-columns:1fr 1fr}.content{padding:24px 22px}.kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.topbar{padding:0 14px}.search{width:min(360px,50vw)}.content{padding:20px 15px}.page-head{align-items:flex-start;gap:14px;flex-wrap:wrap}.page-head h1{font-size:24px}.cards-3{grid-template-columns:1fr 1fr}.project-grid,.vehicle-grid,.role-grid,.employee-grid,.settings-grid{grid-template-columns:1fr}.update-panel{grid-column:auto}.table-wrap{-webkit-overflow-scrolling:touch}.schedule-grid{min-width:900px}}
@media(max-width:600px){.sidebar{width:0;display:none}.main{margin-left:0;width:100%}.topbar{height:64px}.search{width:44px}.search input{display:none}.user div:not(.avatar),.user span{display:none}.kpis,.cards-3{grid-template-columns:1fr}.content{padding:16px 12px}.page-head h1{font-size:22px}.grid-main,.grid-bottom{gap:12px}.quick{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}}
/* v0.3.0 Auth & responsive polish */
.logout-link{font-size:14px;font-weight:700;color:#64748b;text-decoration:none;margin-left:10px}.logout-link:hover{color:#ef3340}
.auth-page{margin:0;min-height:100vh;background:#f3f6f8;display:grid;place-items:center;font-family:Inter,Arial,sans-serif;color:#16202c;padding:24px}.auth-card{width:min(480px,100%);background:#fff;border:1px solid #dfe6eb;border-radius:14px;padding:34px;box-shadow:0 12px 34px rgba(15,35,50,.08)}.auth-brand{display:flex;align-items:center;gap:16px;margin-bottom:32px}.auth-brand img{width:105px;height:62px;object-fit:contain}.auth-brand b{font-size:21px;display:block}.auth-brand span{font-size:15px;color:#6b7b89}.auth-card h1{font-size:30px;margin:0 0 7px}.auth-card>p{font-size:17px;color:#687887;margin:0 0 24px}.auth-form{display:grid;gap:17px}.auth-form label{font-size:15px;font-weight:700;color:#334155;display:grid;gap:7px}.auth-form input{font:inherit;font-size:17px;padding:13px 14px;border:1px solid #cfd8df;border-radius:8px;min-height:50px}.auth-form .primary{min-height:52px;font-size:17px;margin-top:5px}.auth-error,.auth-success{padding:13px 15px;border-radius:8px;margin:0 0 18px;font-size:15px}.auth-error{background:#fff0f1;color:#a51d29;border:1px solid #ffc9ce}.auth-success{background:#edf9f2;color:#17643a;border:1px solid #bfe7ce}.auth-version{display:block;text-align:center;color:#94a3b8;margin-top:22px;font-size:13px}.auth-form hr{width:100%;border:0;border-top:1px solid #e5e9ed;margin:5px 0}
@media(max-width:900px){.topbar{padding-left:18px;padding-right:18px}.content{padding:22px 18px}.page-head h1{font-size:28px}.panel h2{font-size:20px}.table-wrap table{min-width:780px}.user small{font-size:13px}.logout-link{display:none}}
@media(max-width:640px){.auth-card{padding:25px 20px}.auth-card h1{font-size:27px}.auth-brand img{width:90px}.page-head h1{font-size:26px}.page-head p{font-size:15px}.primary{min-height:48px;font-size:16px}}

/* v0.5.0 – Entwurfsnahes Layout und echte Tages-Plantafel */
:root{--sidebar-wide:238px}
body{font-size:16px}.sidebar{width:var(--sidebar-wide)}.main{margin-left:var(--sidebar-wide);width:calc(100% - var(--sidebar-wide))}.content{max-width:1760px;padding:30px 34px 60px}.brand{height:94px}.brand img{width:82px;height:64px}.brand strong{font-size:17px}.brand small{font-size:13px}.nav-item{font-size:15px;min-height:45px;padding:12px 14px}.topbar{height:72px}.search{height:44px;width:min(500px,45vw)}.search input{font-size:15px}.page-head h1{font-size:30px}.page-head p{font-size:15px}.primary{font-size:15px;min-height:44px;padding:11px 18px}.kpis article{min-height:90px}.kpis span{font-size:13px}.kpis strong{font-size:27px}.kpis small{font-size:12px}.panel-head h2,.panel>h2{font-size:18px}.panel-head p{font-size:13px}th{font-size:12px;padding:12px 15px}td{font-size:14px;padding:14px 15px}td small{font-size:11px}.status{font-size:12px}.quick button{font-size:14px}.alerts b{font-size:13px}.alerts small{font-size:11px}
.scheduler-v2{overflow:hidden}.plant-toolbar{display:flex;align-items:center;gap:9px;padding:15px 16px;border-bottom:1px solid var(--line);background:#fff}.plant-toolbar button,.plant-toolbar select{min-height:40px;border:1px solid #dce3e8;background:#fff;border-radius:7px;padding:0 13px;font:inherit;font-size:14px}.plant-toolbar button{cursor:pointer}.plant-date{font-weight:700;font-size:15px;margin-left:6px}.toolbar-spacer{flex:1}.timeline-scroll{overflow:auto;background:#fff;-webkit-overflow-scrolling:touch}.day-schedule{min-width:1120px}.timeline-header,.timeline-row{display:grid;grid-template-columns:220px 1fr}.timeline-header{position:sticky;top:0;z-index:4;background:#fff;border-bottom:1px solid #dfe5e9}.employee-header{padding:13px 16px;font-size:13px;font-weight:700;border-right:1px solid #e4e9ed}.hours{position:relative;height:48px;background:repeating-linear-gradient(to right,transparent 0,transparent calc(10% - 1px),#e8ecef calc(10% - 1px),#e8ecef 10%)}.hours span{position:absolute;top:15px;transform:translateX(-50%);font-size:12px;color:#647482}.timeline-row{min-height:76px;border-bottom:1px solid #edf0f2}.timeline-row:last-child{border-bottom:0}.employee-cell{padding:13px 16px;border-right:1px solid #e4e9ed;display:flex;align-items:center;gap:11px;background:#fff}.employee-cell .avatar{flex:0 0 38px}.employee-cell b,.employee-cell small{display:block}.employee-cell b{font-size:14px}.employee-cell small{font-size:11px;color:#788794;margin-top:3px}.time-lane{position:relative;min-height:76px;background:repeating-linear-gradient(to right,#fff 0,#fff calc(10% - 1px),#edf0f2 calc(10% - 1px),#edf0f2 10%)}.time-lane.drag-over{background-color:#eefafd;box-shadow:inset 0 0 0 2px var(--cyan)}.time-job{position:absolute;top:10px;height:56px;border:1px solid #a8cbe0;border-left:4px solid #2c8ac1;border-radius:6px;background:#e9f4fb;padding:7px 9px;overflow:hidden;cursor:grab;box-shadow:0 1px 2px rgba(20,40,55,.06);min-width:62px}.time-job:active{cursor:grabbing}.time-job.in_arbeit{background:#e6f6ed;border-color:#9ed2b6;border-left-color:#2d9b67}.time-job.abgeschlossen{background:#f0f2f4;border-color:#cdd4d9;border-left-color:#7c8994}.time-job.high{box-shadow:inset 0 0 0 1px #e5a23c}.time-job b,.time-job small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time-job b{font-size:12px}.time-job small{font-size:10px;color:#526473;margin-top:3px}.absence-bar{position:absolute;inset:10px 8px;height:56px;border-radius:6px;background:#fff1dd;border:1px solid #e8c387;border-left:4px solid #df9a32;padding:17px 12px;font-size:12px;font-weight:700;color:#9b651a}.absence-bar.krank{background:#fdebed;border-color:#efb5bb;border-left-color:#d54e58;color:#a7353d}.schedule-empty{padding:20px;color:#748390;font-size:13px}.schedule-loading{padding:30px;text-align:center;color:#748390}.plant-legend{display:flex;align-items:center;gap:18px;padding:13px 16px;border-top:1px solid var(--line);font-size:12px;color:#647482;flex-wrap:wrap}.plant-legend span{display:flex;align-items:center;gap:6px}.plant-legend small{margin-left:auto;font-size:11px}.legend{width:11px;height:11px;border-radius:3px;display:inline-block}.legend.planned{background:#d8edf9;border:1px solid #8ebbd4}.legend.active{background:#dff2e7;border:1px solid #8bc6a5}.legend.leave{background:#fff0d8;border:1px solid #e2b870}
@media(max-width:1280px){:root{--sidebar-wide:86px}.brand div,.nav-item span,.nav-item b,.nav-label,.side-foot div{display:none}.brand{justify-content:center;padding:8px}.brand img{width:64px}.nav-item{justify-content:center;font-size:20px}.content{padding:24px 22px}.grid-main,.grid-bottom{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.content{padding:22px 18px}.page-head h1{font-size:28px}.timeline-header,.timeline-row{grid-template-columns:180px 1fr}.day-schedule{min-width:1040px}.plant-toolbar{flex-wrap:wrap}.toolbar-spacer{display:none}.plant-date{min-width:230px}.plant-toolbar select{margin-left:auto}.plant-legend small{width:100%;margin-left:0}.kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){:root{--sidebar-wide:0px}.sidebar{display:none}.main{margin-left:0;width:100%}.content{padding:16px 12px}.kpis{grid-template-columns:1fr}.page-head h1{font-size:26px}.plant-toolbar select{width:100%;margin-left:0}.search{width:46px}.search input{display:none}.topbar{padding:0 12px}.timeline-header,.timeline-row{grid-template-columns:160px 1fr}.day-schedule{min-width:1000px}}
/* v0.6.0 CRUD */
.actions{display:flex;gap:8px;justify-content:flex-end;white-space:nowrap}.action-btn{border:1px solid #d8e1e8;background:#fff;border-radius:7px;padding:7px 11px;font-size:14px;font-weight:650;cursor:pointer}.action-btn:hover{background:#f4f8fa}.action-btn.danger{color:#b4232d;border-color:#f0c8cc}.action-btn.danger:hover{background:#fff2f3}.empty-state{padding:24px;color:#6b7b88;font-size:16px}.form-grid label small{display:block;margin-top:5px;color:#6d7d89}.modal-card{max-width:820px}.modal-card input,.modal-card select,.modal-card textarea{font-size:16px;min-height:44px}.modal-card textarea{min-height:100px}.modal-actions button{font-size:16px;min-height:44px}
@media(max-width:900px){.actions{justify-content:flex-start}.action-btn{padding:9px 12px}.modal-card{width:94vw}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}}

/* v0.7.0 – interne Statusmeldungen und Bestätigungen */
.toast-stack{position:fixed;top:88px;right:24px;z-index:10050;display:grid;gap:12px;width:min(430px,calc(100vw - 32px));pointer-events:none}.toast{pointer-events:auto;display:grid;grid-template-columns:42px 1fr 34px;align-items:center;gap:12px;background:#fff;border:1px solid #dce4e9;border-radius:10px;padding:13px 12px 13px 14px;box-shadow:0 12px 30px rgba(22,42,57,.16);transform:translateY(-10px);opacity:0;transition:.18s ease}.toast.show{transform:translateY(0);opacity:1}.toast.leaving{transform:translateX(20px);opacity:0}.toast-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:19px;font-weight:800;background:#e8f8fb;color:#008cae}.toast.success .toast-icon{background:#e6f6ed;color:#218454}.toast.error .toast-icon{background:#fdebed;color:#b52f3b}.toast.warning .toast-icon{background:#fff1dd;color:#b56e09}.toast-copy{min-width:0}.toast-copy b,.toast-copy span{display:block}.toast-copy b{font-size:15px;color:#17212b;margin-bottom:3px}.toast-copy span{font-size:14px;line-height:1.35;color:#61717e}.toast-close{border:0;background:transparent;font-size:24px;line-height:1;color:#83919b;cursor:pointer;padding:3px}.confirm-overlay{position:fixed;inset:0;z-index:10060;background:rgba(16,31,43,.42);display:none;align-items:center;justify-content:center;padding:20px}.confirm-overlay.open{display:flex}.confirm-card{width:min(500px,100%);background:#fff;border-radius:12px;box-shadow:0 22px 55px rgba(15,30,42,.25);padding:24px;display:grid;grid-template-columns:52px 1fr;gap:16px}.confirm-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e9f7fa;color:#009bbb;font-size:22px;font-weight:800}.confirm-copy h3{font-size:21px;margin:1px 0 7px;color:#17212b}.confirm-copy p{font-size:15px;line-height:1.5;color:#647582;margin:0}.confirm-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.confirm-actions button{min-height:44px;padding:10px 17px;border-radius:7px;font:inherit;font-size:15px;font-weight:700;cursor:pointer}.confirm-actions .secondary{border:1px solid #d5dee4;background:#fff;color:#31424f}.danger-btn{background:#c93642!important;border-color:#c93642!important;color:#fff!important}
@media(max-width:650px){.toast-stack{top:76px;right:16px;left:16px;width:auto}.toast{grid-template-columns:38px 1fr 30px}.confirm-card{padding:20px;grid-template-columns:46px 1fr}.confirm-copy h3{font-size:19px}.confirm-actions{display:grid;grid-template-columns:1fr 1fr}.confirm-actions button{width:100%}}
/* v0.8.0 Mitarbeiter und Abwesenheiten */
.head-actions{display:flex;gap:10px;align-items:center}.secondary-btn{min-height:44px;padding:10px 16px;border:1px solid #d9e0e5;border-radius:7px;background:#fff;color:var(--text);font:inherit;font-size:14px;font-weight:600;cursor:pointer}.absence-panel{margin-bottom:18px}.absence-list{padding:0 18px 8px}.absence-item{display:grid;grid-template-columns:130px minmax(220px,1fr) auto;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #edf0f2}.absence-item:last-child{border-bottom:0}.absence-type{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;border-radius:6px;background:#fff1dd;color:#9b651a;font-size:12px;font-weight:700}.absence-type.krank{background:#fdebed;color:#a7353d}.absence-type.schule{background:#eaf1fc;color:#426fae}.absence-type.fortbildung{background:#e8f6ee;color:#287c55}.absence-type.sonstiges{background:#eef1f3;color:#5f6e79}.absence-person b,.absence-person small{display:block}.absence-person b{font-size:14px}.absence-person small{font-size:12px;color:var(--muted);margin-top:3px}.employee-card .emp-info small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.danger-text{color:#b53b45!important}.kpis.compact article small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
@media(max-width:760px){.page-head{align-items:flex-start}.head-actions{width:100%;flex-wrap:wrap}.head-actions button{flex:1}.absence-item{grid-template-columns:1fr;gap:8px}.absence-item .actions{justify-content:flex-start}}
/* v0.9.0 Fahrzeugverwaltung */
.vehicle-number{display:block;margin:-5px 0 10px;color:var(--muted,#6b7280);font-size:13px;font-weight:700}.status.muted{background:#eef1f4;color:#5f6975}.vehicle-grid article h3{margin-bottom:6px}
/* v0.10.0 Auftragsworkflow */
.order-filters input{min-width:300px}.order-link{border:0;background:transparent;padding:0;color:#17212b;font:inherit;font-weight:800;cursor:pointer;text-decoration:none}.order-link:hover{color:var(--cyan)}.status.warning{background:#fff4dd;color:#94610b}.order-form-section{padding:2px 0 20px;margin-bottom:18px;border-bottom:1px solid #e8edf0}.order-form-section:last-of-type{border-bottom:0}.order-form-section h3{margin:0 0 14px;font-size:18px;color:#1d2b35}.block-label{display:block;font-size:14px;font-weight:650;color:#394b58}.block-label textarea{display:block;width:100%;margin-top:7px}.order-detail{font-size:15px}.order-detail-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:18px;border-bottom:1px solid #e8edf0}.order-detail-head>div{display:flex;gap:8px;align-items:center}.order-detail-head>b{font-size:17px}.priority-pill{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:6px;background:#eef2f4;color:#5e6c77;font-size:12px;font-weight:750}.priority-pill.hoch{background:#fff1dd;color:#9b651a}.priority-pill.dringend{background:#fdebed;color:#a7353d}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.detail-grid section{padding:15px;border:1px solid #e2e8ec;border-radius:8px;background:#fbfcfd}.detail-grid small,.detail-grid strong,.detail-grid span{display:block}.detail-grid small,.detail-text small{font-size:12px;color:#72818c;margin-bottom:5px;font-weight:700}.detail-grid strong{font-size:15px;color:#1b2933}.detail-grid span{font-size:13px;color:#657581;margin-top:4px}.detail-text{padding:16px 0;border-top:1px solid #edf0f2}.detail-text p{margin:5px 0 0;white-space:pre-wrap;line-height:1.55}.detail-text.internal{background:#f7f9fa;padding:15px;border:1px solid #e4e9ed;border-radius:8px}.detail-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.detail-actions .primary{min-height:44px}.time-job.erledigt{background:#f0f2f4;border-color:#cdd4d9;border-left-color:#7c8994}
@media(max-width:760px){.order-filters input{min-width:100%;width:100%}.detail-grid{grid-template-columns:1fr}.order-detail-head{align-items:flex-start;flex-direction:column}.detail-actions{display:grid;grid-template-columns:1fr}.detail-actions button{width:100%}}

/* v0.10.1 – Auftragsmaske und Mitarbeiter Drag & Drop */
.modal-card{width:min(940px,96vw);border-radius:14px;overflow:auto}.modal-head{padding:20px 24px;position:sticky;top:0;background:#fff;z-index:4}.modal-head h2{font-size:22px}.modal-content{padding:0}.order-form{padding:0}.order-form-section{padding:24px 24px 26px;margin:0;border-bottom:1px solid #e7ecef}.order-form-section h3{font-size:20px;margin:0 0 18px}.order-form-section .form-grid{padding:0;gap:16px}.order-form-section .form-grid label,.field-label{font-size:14px;font-weight:650;color:#5f7180}.order-form-section .form-grid input,.order-form-section .form-grid select{margin-top:7px;min-height:48px;border-radius:8px;padding:10px 12px}.block-label{font-size:14px}.block-label textarea{min-height:120px;border:1px solid #d8e0e6;border-radius:8px;padding:12px;line-height:1.5;resize:vertical}.modal-actions{padding:18px 24px 22px;background:#fafbfc;border-top:1px solid #e7ecef;position:sticky;bottom:0;z-index:3}.modal-actions button{min-width:120px}.employee-picker-field{display:block}.field-label{display:block;margin-bottom:7px}.employee-picker{display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);align-items:stretch;gap:10px}.employee-picker-column{border:1px solid #dbe3e8;border-radius:10px;background:#f8fafb;overflow:hidden;min-width:0}.employee-picker-column.selected{background:#f2fbfd;border-color:#b9e6f1}.employee-picker-head{padding:11px 13px;border-bottom:1px solid #e2e8ec;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff}.employee-picker-head b{font-size:14px;color:#263640}.employee-picker-head small{font-size:11px;color:#7a8994}.employee-drop{min-height:104px;padding:9px;display:flex;flex-direction:column;gap:7px;transition:.15s}.employee-drop.drag-over{background:#e4f7fb;box-shadow:inset 0 0 0 2px var(--cyan)}.employee-pick-card{display:flex;align-items:center;gap:10px;padding:10px 11px;background:#fff;border:1px solid #dfe6eb;border-radius:8px;cursor:grab;user-select:none;box-shadow:0 1px 1px rgba(20,30,40,.03)}.employee-pick-card:active{cursor:grabbing}.employee-pick-card.dragging{opacity:.45}.employee-pick-card i{width:34px;height:34px;border-radius:50%;background:#dff4f8;color:#217e94;display:grid;place-items:center;font-size:11px;font-weight:800;font-style:normal;flex:none}.employee-pick-card span{flex:1;min-width:0}.employee-pick-card b,.employee-pick-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.employee-pick-card b{font-size:14px;color:#1f2c35}.employee-pick-card small{font-size:11px;color:#7a8994;margin-top:2px}.employee-pick-card em{font-size:10px;color:#a13a42;background:#fdebed;border-radius:12px;padding:4px 7px;font-style:normal}.employee-pick-handle{font-size:18px;color:#91a0aa;letter-spacing:-3px}.employee-picker-arrow{display:grid;place-items:center;font-size:22px;color:#8c9aa4}.employee-picker-empty{min-height:82px;border:1px dashed #cbd6dd;border-radius:7px;display:grid;place-items:center;text-align:center;padding:12px;color:#87949e;font-size:12px}.employee-picker-help{display:block;margin-top:7px!important;font-size:11px!important;color:#778791!important}.order-form-section:nth-of-type(3),.order-form-section:nth-of-type(4){background:#fcfdfd}
@media(max-width:760px){.modal{padding:8px}.modal-card{width:100%;max-height:96vh}.modal-head{padding:16px 18px}.order-form-section{padding:20px 18px}.employee-picker{grid-template-columns:1fr}.employee-picker-arrow{height:20px;transform:rotate(90deg)}.modal-actions{padding:14px 18px}.modal-actions button{flex:1;min-width:0}}

/* v0.10.2 – verbindlicher Layout- und Responsive-Pass für Aufträge */
.order-detail{font-size:15px;padding:0 24px 22px}.order-detail-head{margin:0 -24px;padding:16px 24px 18px;align-items:center;background:#fbfcfd}.order-detail-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.order-detail-number{text-align:right}.order-detail-number small,.order-detail-number b{display:block}.order-detail-number small{font-size:11px;color:#7a8994;margin-bottom:3px}.order-detail-number b{font-size:16px}.detail-grid-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 12px}.detail-card{display:flex;align-items:flex-start;gap:12px;min-height:88px;padding:15px!important}.detail-card>div:last-child{min-width:0}.detail-icon{width:36px;height:36px;border-radius:9px;background:#e7f7fb;color:#1689a6;display:grid;place-items:center;font-size:13px;font-weight:800;flex:none}.detail-card strong{font-size:15px;line-height:1.35}.detail-card span{font-size:12px}.detail-assignment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 12px}.detail-assignment>section{min-width:0}.detail-section-label{font-size:12px;font-weight:700;color:#72818c;margin:0 0 6px}.assignment-card{display:flex;align-items:center;gap:11px;min-height:68px;padding:12px 14px;border:1px solid #dfe7eb;border-radius:9px;background:#fff}.assignment-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#dff4f8;color:#217e94;font-weight:800;flex:none}.assignment-card.vehicle .assignment-avatar{border-radius:9px;background:#eef2f5;color:#586a77}.assignment-card>div:last-child{min-width:0}.assignment-card strong,.assignment-card span{display:block;overflow:hidden;text-overflow:ellipsis}.assignment-card strong{font-size:14px;white-space:normal;line-height:1.3}.assignment-card span{font-size:11px;color:#7a8994;margin-top:3px}.detail-copy-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:12px;margin-top:18px}.detail-text{border:1px solid #e1e7eb;border-radius:9px;padding:15px!important;background:#fff}.detail-text.work{border-top:1px solid #e1e7eb}.detail-text.internal{background:#f7f9fa}.detail-text small{font-size:12px}.detail-text p{font-size:14px;margin-top:8px;min-height:42px}.detail-actions{margin:18px -24px -22px;padding:16px 24px 0;border-top:1px solid #e8edf0;display:flex;justify-content:flex-end;gap:10px}.detail-actions button{min-height:44px;padding:10px 16px;font-size:14px;border-radius:7px}.secondary-btn{background:#fff;border:1px solid #d8e1e8;color:#263640;font-weight:700;cursor:pointer}
.order-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-form .form-grid .wide{grid-column:1/-1}.order-form-section{scroll-margin-top:76px}.order-form-section h3{display:flex;align-items:center;gap:10px}.order-form-section h3:after{content:"";height:1px;background:#e7ecef;flex:1}.order-form-section .form-grid label,.field-label,.block-label{line-height:1.35}.order-form-section input,.order-form-section select,.block-label textarea{width:100%}.employee-picker-column{min-height:160px}.employee-drop{min-height:116px}.employee-pick-card{min-height:56px}.modal-card{max-height:min(900px,94vh)}
@media(max-width:1100px){.modal-card{width:min(900px,96vw)}.order-detail{padding-left:20px;padding-right:20px}.order-detail-head{margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px}.detail-actions{margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px}.detail-copy-grid{grid-template-columns:1fr}.employee-picker{grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr)}}
@media(max-width:760px){.modal{padding:0;align-items:stretch}.modal-card{width:100%;max-width:none;max-height:100vh;height:100vh;border-radius:0}.modal-head{padding:15px 16px}.modal-head h2{font-size:19px;line-height:1.25;padding-right:8px}.order-form-section{padding:18px 16px}.order-form-section h3{font-size:18px}.order-form .form-grid{grid-template-columns:1fr;gap:13px}.order-form .form-grid .wide{grid-column:auto}.order-form-section .form-grid input,.order-form-section .form-grid select{min-height:50px;font-size:16px}.block-label textarea{font-size:16px}.employee-picker{grid-template-columns:1fr}.employee-picker-arrow{height:22px;transform:rotate(90deg)}.employee-picker-column{min-height:132px}.employee-pick-card{min-height:58px;padding:10px}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:12px 16px}.modal-actions button{width:100%;min-width:0}.order-detail{padding:0 16px 16px}.order-detail-head{margin:0 -16px;padding:14px 16px;align-items:flex-start;gap:10px}.order-detail-number{text-align:left}.detail-grid-main,.detail-assignment,.detail-copy-grid{grid-template-columns:1fr}.detail-grid-main{margin-top:14px}.detail-card{min-height:76px}.detail-assignment{gap:10px}.detail-copy-grid{margin-top:14px}.detail-actions{position:sticky;bottom:0;background:#fff;margin:16px -16px -16px;padding:12px 16px;display:grid;grid-template-columns:1fr}.detail-actions button{width:100%}}
@media(max-width:480px){.employee-picker-head{padding:10px}.employee-pick-card b{font-size:13px}.employee-pick-card small{font-size:11px}.detail-icon{width:34px;height:34px}.detail-card{padding:12px!important}.assignment-card{padding:11px 12px}.modal-actions{grid-template-columns:1fr}.order-detail-status{gap:6px}}

/* v0.11.0 Plantafel: sachlich, gut lesbar, responsive */
.plant-viewbar{display:grid;grid-template-columns:auto auto 1fr minmax(190px,240px);align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid var(--line);background:#fff}.plant-view-switch{display:flex;border:1px solid #d6dde2;border-radius:7px;overflow:hidden;background:#f5f7f8}.plant-view-switch button{min-width:78px;height:40px;border:0;border-right:1px solid #d6dde2;background:transparent;padding:0 16px;font:inherit;font-size:14px;font-weight:700;color:#53636f;cursor:pointer}.plant-view-switch button:last-child{border-right:0}.plant-view-switch button.active{background:#243746;color:#fff}.plant-period-nav{display:flex;align-items:center;gap:6px}.plant-period-nav button{height:40px;min-width:40px;border:1px solid #d6dde2;border-radius:7px;background:#fff;padding:0 12px;font:inherit;font-weight:700;cursor:pointer}.plant-period-nav button:hover,.plant-view-switch button:hover:not(.active){background:#eef2f4}.plant-date{font-size:17px;color:#253744;white-space:nowrap}.plant-viewbar select{height:40px;border:1px solid #d6dde2;border-radius:7px;background:#fff;padding:0 12px;font:inherit;font-size:14px;color:#344955}.plant-summary{display:flex;gap:22px;align-items:center;min-height:44px;padding:8px 18px;border-bottom:1px solid #e7ebee;background:#fafbfc;color:#687986;font-size:13px}.plant-summary b{font-size:15px;color:#263945;margin-right:4px}.legend.done{background:#e9ecee;border:1px solid #bdc6cc}.time-job.erledigt,.week-job.erledigt{background:#f0f2f3!important;border-color:#c8d0d5!important;border-left-color:#7d8992!important;color:#53616b}.time-job.storniert,.week-job.storniert{opacity:.62;text-decoration:line-through}.week-board{display:grid;grid-template-columns:210px repeat(7,minmax(145px,1fr));min-width:1225px;background:#fff}.week-head{min-height:58px;padding:11px 10px;border-right:1px solid #dfe5e9;border-bottom:1px solid #d7dfe4;background:#f7f9fa;text-align:center}.week-head b,.week-head span{display:block}.week-head b{font-size:13px;color:#334754}.week-head span{font-size:12px;color:#71818c;margin-top:3px}.week-person-head{text-align:left;display:flex;align-items:center;font-weight:700;color:#344955;padding-left:16px}.week-head.today{background:#eef8fa;box-shadow:inset 0 -3px #1597b5}.week-person{min-height:118px;padding:14px;border-right:1px solid #dfe5e9;border-bottom:1px solid #e5eaed;display:flex;gap:10px;align-items:flex-start;background:#fbfcfc}.week-person .avatar{flex:0 0 36px}.week-person b,.week-person small{display:block}.week-person b{font-size:13px;color:#2f424f}.week-person small{font-size:11px;color:#7b8993;margin-top:3px}.week-cell{min-height:118px;padding:7px;border-right:1px solid #e3e8eb;border-bottom:1px solid #e5eaed;background:#fff;position:relative}.week-cell.today{background:#fbfeff}.week-cell.drag-over{background:#edf9fc;box-shadow:inset 0 0 0 2px #1a9cba}.week-free{display:block;margin:10px 4px;color:#a0abb3;font-size:11px}.week-job{border:1px solid #b7d2e1;border-left:4px solid #2c8ac1;border-radius:5px;background:#edf6fb;padding:7px 8px;margin-bottom:6px;cursor:grab;text-align:left;overflow:hidden}.week-job.in_arbeit{background:#e9f6ee;border-color:#a9d5bc;border-left-color:#2d9b67}.week-job b,.week-job span,.week-job small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.week-job b{font-size:11px;color:#2d4655}.week-job span{font-size:12px;font-weight:700;color:#30424e;margin-top:2px}.week-job small{font-size:10px;color:#71808b;margin-top:2px}.week-absence{border-left:4px solid #dc9a38;background:#fff1dd;color:#95631b;border-radius:5px;padding:9px;font-size:12px;font-weight:700}.week-absence.krank{border-left-color:#d54e58;background:#fdebed;color:#a7353d}.month-board{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));min-width:910px;background:#fff}.month-weekday{height:42px;display:flex;align-items:center;justify-content:center;border-right:1px solid #dfe5e9;border-bottom:1px solid #d7dfe4;background:#f7f9fa;font-size:12px;font-weight:700;color:#50616d}.month-day{min-height:132px;border:0;border-right:1px solid #e2e7ea;border-bottom:1px solid #e2e7ea;background:#fff;padding:9px;text-align:left;font:inherit;cursor:pointer;overflow:hidden}.month-day:hover{background:#f8fbfc}.month-day.outside{background:#fafbfb;color:#a8b1b7}.month-day.today{box-shadow:inset 0 0 0 2px #1699b7}.month-day.selected .month-number{background:#253947;color:#fff}.month-number{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:12px;font-weight:700;color:#344955}.month-jobs{margin-top:5px}.month-job{border-left:3px solid #2c8ac1;background:#edf6fb;border-radius:3px;padding:5px 6px;margin-bottom:4px;font-size:10px;color:#3d515e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month-job.in_arbeit{border-left-color:#2d9b67;background:#e9f6ee}.month-job.erledigt{border-left-color:#7d8992;background:#f0f2f3}.month-job span{margin-left:4px}.month-more{font-size:10px;font-weight:700;color:#657680;padding:3px 5px}
@media(max-width:1100px){.plant-viewbar{grid-template-columns:auto 1fr auto}.plant-date{grid-column:1/3;grid-row:2}.plant-viewbar select{grid-column:3;grid-row:2}.week-board{grid-template-columns:180px repeat(7,minmax(140px,1fr))}.plant-summary{overflow:auto;white-space:nowrap}}
@media(max-width:760px){.plant-viewbar{display:flex;flex-wrap:wrap;gap:9px;padding:12px}.plant-view-switch{width:100%}.plant-view-switch button{flex:1;min-width:0}.plant-period-nav{order:2}.plant-date{order:3;flex:1;font-size:15px;white-space:normal}.plant-viewbar select{order:4;width:100%}.plant-summary{padding:7px 12px;gap:16px}.timeline-scroll{border-top:0}.week-board{grid-template-columns:150px repeat(7,minmax(132px,1fr))}.week-person{padding:10px}.month-board{grid-template-columns:repeat(7,minmax(118px,1fr));min-width:826px}.month-day{min-height:116px}.plant-legend{padding:11px 12px;gap:12px}.plant-legend small{width:100%}}

/* v0.11.1 Dashboard Schnellstatus */
#dashboard .kpis{grid-template-columns:repeat(7,minmax(135px,1fr));gap:10px}
.dashboard-kpi{appearance:none;width:100%;min-height:92px;border:1px solid #dfe5e9;border-radius:9px;background:#fff;padding:13px 12px;display:flex;align-items:center;gap:10px;text-align:left;color:var(--text);font:inherit;cursor:pointer;box-shadow:0 1px 2px rgba(20,30,40,.03);transition:border-color .12s,background .12s}
.dashboard-kpi:hover,.dashboard-kpi:focus-visible{border-color:#9fc7d2;background:#fbfdfe;outline:none}.dashboard-kpi-icon{width:36px;height:36px;border-radius:7px;display:grid;place-items:center;flex:none;background:#eaf5f8;color:#277c91;font-size:17px;font-weight:800}.dashboard-kpi-copy{min-width:0;flex:1}.dashboard-kpi-copy small{font-size:12px;color:#687986;font-weight:650;line-height:1.15}.dashboard-kpi-copy strong{font-size:25px;line-height:1.05;margin:4px 0 2px}.dashboard-kpi-copy em{display:block;font-style:normal;font-size:11px;color:#8a98a3}.dashboard-kpi-open{font-size:22px;color:#a5b0b8;flex:none}.dashboard-kpi.active .dashboard-kpi-icon{background:#e6f5ec;color:#258257}.dashboard-kpi.vacation .dashboard-kpi-icon{background:#fff2d9;color:#b97816}.dashboard-kpi.sick .dashboard-kpi-icon{background:#fde9eb;color:#b93640}.dashboard-kpi.orders .dashboard-kpi-icon{background:#e9f1fc;color:#376eb9}.dashboard-kpi.open .dashboard-kpi-icon{background:#fff0dd;color:#c5791d}.dashboard-kpi.vehicles .dashboard-kpi-icon{background:#edf1f4;color:#5b6d7b}
.dashboard-detail{padding:0 22px 20px}.dashboard-detail-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #e8ecef}.dashboard-detail-intro p{margin:0;color:#697986;font-size:14px}.dashboard-detail-intro strong{font-size:24px}.dashboard-detail-list{padding:4px 0;max-height:58vh;overflow:auto}.dashboard-detail-row,.dashboard-order-row{width:100%;display:flex;align-items:center;gap:12px;padding:12px 4px;border:0;border-bottom:1px solid #edf0f2;background:#fff;text-align:left;color:var(--text);font:inherit}.dashboard-detail-row>div,.dashboard-order-row>span{flex:1;min-width:0}.dashboard-detail-row b,.dashboard-detail-row small,.dashboard-order-row b,.dashboard-order-row small{display:block}.dashboard-detail-row b,.dashboard-order-row b{font-size:14px}.dashboard-detail-row small,.dashboard-order-row small{font-size:12px;color:#788792;margin-top:3px}.dashboard-order-row{cursor:pointer}.dashboard-order-row:hover{background:#f8fafb}.dashboard-order-row i{font-style:normal;font-size:20px;color:#8c99a3}.dashboard-detail-badge{font-size:11px;font-weight:700;padding:5px 8px;border-radius:12px;background:#eef2f4;color:#60717e;white-space:nowrap}.dashboard-detail-badge.ok{background:#e8f6ee;color:#287c55}.dashboard-detail-badge.warning{background:#fff1dc;color:#a86b17}.dashboard-detail-badge.danger{background:#fdebed;color:#a7353d}.dashboard-detail-badge.active{background:#e6f5ec;color:#258257}.dashboard-vehicle-icon{width:34px;height:34px;border-radius:7px;background:#edf1f4;display:grid;place-items:center;color:#5c6f7c}.dashboard-detail-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:16px}.dashboard-detail-actions button{min-height:42px;padding:9px 14px;border:1px solid #dbe2e7;border-radius:7px;background:#fff;font:inherit;font-weight:650;cursor:pointer}.dashboard-detail-actions .primary{background:var(--cyan);border-color:var(--cyan);color:#fff}.dashboard-detail-empty{padding:28px 8px;text-align:center;color:#778792}
@media(max-width:1450px){#dashboard .kpis{grid-template-columns:repeat(4,1fr)}}
@media(max-width:1050px){#dashboard .kpis{grid-template-columns:repeat(2,1fr)}.dashboard-kpi{min-height:88px}}
@media(max-width:650px){#dashboard .kpis{grid-template-columns:1fr 1fr;gap:8px}.dashboard-kpi{min-height:84px;padding:10px}.dashboard-kpi-icon{width:32px;height:32px}.dashboard-kpi-copy strong{font-size:22px}.dashboard-kpi-copy small{font-size:11px}.dashboard-kpi-open{display:none}.dashboard-detail{padding:0 16px 16px}.dashboard-detail-actions{display:grid;grid-template-columns:1fr}.dashboard-detail-actions button{width:100%}}
@media(max-width:390px){#dashboard .kpis{grid-template-columns:1fr}}
/* v0.11.2 Dashboard-Schnellstatus */
#dashboardKpis.dashboard-metrics,.view#dashboard #dashboardKpis{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.dashboard-metric{min-width:0;min-height:94px;border:1px solid #dfe5e9;border-radius:9px;background:#fff;padding:13px 11px;display:grid;grid-template-columns:38px minmax(0,1fr) 14px;align-items:center;gap:9px;text-align:left;cursor:pointer;color:var(--text);box-shadow:0 1px 2px rgba(20,30,40,.03);font:inherit}
.dashboard-metric:hover,.dashboard-metric:focus-visible{border-color:#b8c7d1;box-shadow:0 2px 6px rgba(20,30,40,.07);outline:none}.dashboard-metric-icon{width:38px;height:38px;border-radius:7px;display:grid;place-items:center;font-size:14px;font-weight:800;background:#edf4f8;color:#35667d}.dashboard-metric-copy{min-width:0}.dashboard-metric-copy small{font-size:11px;color:#657583;white-space:normal}.dashboard-metric-copy strong{font-size:24px;line-height:1.05;margin:3px 0 2px}.dashboard-metric-copy em{font-size:10px;color:#87949e;font-style:normal;white-space:normal}.dashboard-metric-arrow{font-size:20px;color:#a2adb5}.dashboard-metric.green .dashboard-metric-icon{background:#e7f5ed;color:#28885b}.dashboard-metric.yellow .dashboard-metric-icon{background:#fff4dc;color:#a96f14}.dashboard-metric.red .dashboard-metric-icon{background:#fdebec;color:#b83842}.dashboard-metric.orange .dashboard-metric-icon{background:#fff0df;color:#bd6f1d}.dashboard-metric.blue .dashboard-metric-icon{background:#e9f1fb;color:#326ab7}
.dashboard-detail{padding:0}.dashboard-detail-intro{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;align-items:center}.dashboard-detail-intro p{margin:0;font-size:13px;color:#536574}.dashboard-detail-intro span{font-size:11px;color:#7d8a94}.dashboard-detail-list{padding:8px 20px;max-height:56vh;overflow:auto}.dashboard-detail-row{width:100%;border:0;border-bottom:1px solid #edf0f2;background:#fff;padding:12px 2px;display:flex;align-items:center;gap:12px;text-align:left;color:var(--text);font:inherit}.dashboard-detail-row:last-child{border-bottom:0}.dashboard-order-detail{cursor:pointer}.dashboard-order-detail:hover{background:#fafcfd}.dashboard-detail-avatar{width:36px;height:36px;border-radius:50%;background:#e5f4f8;color:#267a91;display:grid;place-items:center;font-size:10px;font-weight:800;flex:none}.dashboard-detail-avatar.vehicle,.dashboard-detail-avatar.order{border-radius:7px;background:#edf3fa;color:#3d6fae}.dashboard-detail-main{flex:1;min-width:0}.dashboard-detail-main b,.dashboard-detail-main small{display:block}.dashboard-detail-main b{font-size:13px}.dashboard-detail-main small{font-size:11px;color:#778692;margin-top:3px}.dashboard-detail-state{font-size:10px;border-radius:12px;padding:5px 8px;white-space:nowrap;background:#eef2f4;color:#64717b}.dashboard-detail-state.ok,.dashboard-detail-state.active,.dashboard-detail-state.done{background:#e7f5ed;color:#287f58}.dashboard-detail-state.warning,.dashboard-detail-state.plan{background:#fff1dc;color:#aa6c16}.dashboard-detail-state.danger{background:#fdebed;color:#b93c46}.dashboard-detail-state.muted{background:#eef1f3;color:#66737c}.dashboard-absence-date{text-align:right}.dashboard-absence-date small{display:block;font-size:9px;color:#7d8992;margin-top:4px}.dashboard-detail-empty{padding:28px 8px;text-align:center;color:#7d8992;font-size:12px}.dashboard-detail-actions{padding:14px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}
@media(max-width:1380px){.view#dashboard #dashboardKpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.view#dashboard #dashboardKpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-metric{min-height:84px}.dashboard-detail-intro{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:560px){.view#dashboard #dashboardKpis{grid-template-columns:1fr 1fr;gap:8px}.dashboard-metric{grid-template-columns:34px minmax(0,1fr) 10px;padding:11px 9px}.dashboard-metric-icon{width:34px;height:34px}.dashboard-metric-copy strong{font-size:21px}.dashboard-detail-list{padding:6px 14px}.dashboard-detail-row{align-items:flex-start}.dashboard-detail-state{margin-left:auto}.dashboard-absence-date{margin-left:auto}.dashboard-detail-actions{padding:12px 14px;flex-wrap:wrap}.dashboard-detail-actions button{flex:1;min-width:130px}}
\n/* v0.11.3 Dashboard Kennzahlen, klassische Icon-Darstellung */
.view#dashboard #dashboardKpis{gap:12px;margin-top:18px;margin-bottom:18px}
.dashboard-metric{position:relative;min-height:104px;padding:15px 14px;border:1px solid #d9e0e5;border-radius:8px;background:#fff;grid-template-columns:44px minmax(0,1fr) 12px;gap:11px;box-shadow:0 1px 2px rgba(24,39,52,.035);transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease}
.dashboard-metric:before{content:"";position:absolute;left:-1px;top:16px;bottom:16px;width:3px;border-radius:0 2px 2px 0;background:#5d86aa}
.dashboard-metric:hover,.dashboard-metric:focus-visible{border-color:#aebbc5;box-shadow:0 3px 9px rgba(24,39,52,.08);transform:translateY(-1px)}
.dashboard-metric-icon{width:44px;height:44px;border-radius:8px;background:#eef3f7;color:#416d91}
.dashboard-metric-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dashboard-metric-copy small{font-size:12px;font-weight:650;color:#5f7180;line-height:1.2}
.dashboard-metric-copy strong{font-size:27px;font-weight:750;line-height:1;margin:5px 0 4px;color:#17232d}
.dashboard-metric-copy em{font-size:11px;line-height:1.2;color:#84919b}
.dashboard-metric-arrow{font-family:Arial,sans-serif;font-size:20px;color:#8998a3}
.dashboard-metric.green:before{background:#2e8a60}.dashboard-metric.green .dashboard-metric-icon{background:#eaf5ef;color:#2d805a}
.dashboard-metric.yellow:before{background:#c68a24}.dashboard-metric.yellow .dashboard-metric-icon{background:#fff5df;color:#aa731d}
.dashboard-metric.red:before{background:#c34a52}.dashboard-metric.red .dashboard-metric-icon{background:#fcedee;color:#ad3d45}
.dashboard-metric.orange:before{background:#c57a27}.dashboard-metric.orange .dashboard-metric-icon{background:#fff1e1;color:#ad681f}
.dashboard-metric.blue:before{background:#4a7eae}.dashboard-metric.blue .dashboard-metric-icon{background:#edf3f9;color:#416f99}
@media(max-width:1380px){.dashboard-metric{min-height:98px}}
@media(max-width:900px){.view#dashboard #dashboardKpis{gap:10px}.dashboard-metric{min-height:92px;padding:13px 12px;grid-template-columns:40px minmax(0,1fr) 10px}.dashboard-metric-icon{width:40px;height:40px}.dashboard-metric-icon svg{width:21px;height:21px}}
@media(max-width:560px){.dashboard-metric{min-height:88px;grid-template-columns:38px minmax(0,1fr);padding:12px 10px}.dashboard-metric:before{top:12px;bottom:12px}.dashboard-metric-icon{width:38px;height:38px}.dashboard-metric-copy strong{font-size:23px}.dashboard-metric-arrow{display:none}}

/* v0.11.4 – Dashboard Icons exakt zentriert */
.dashboard-metric-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:0;
}
.dashboard-metric-icon svg{
  display:block;
  flex:none;
  margin:0;
  transform:none;
}

/* v0.11.5 Dashboard: kompakter, sachlicher, besser erfassbar */
.view#dashboard .page-head{margin-bottom:14px;align-items:flex-start}
.view#dashboard .page-head h1{font-size:28px;line-height:1.1}
.view#dashboard .page-head p{margin-top:4px;font-size:13px}
.view#dashboard #dashboardKpis{gap:9px;margin-top:12px;margin-bottom:16px}
.dashboard-metric{min-height:82px;padding:10px 10px 10px 11px;grid-template-columns:36px minmax(0,1fr) 10px;gap:8px;border-radius:7px;box-shadow:0 1px 2px rgba(24,39,52,.025);transition:border-color .12s ease,box-shadow .12s ease;background:#fff}
.dashboard-metric:before{top:11px;bottom:11px;width:3px}
.dashboard-metric:hover,.dashboard-metric:focus-visible{transform:none;border-color:#aebbc5;box-shadow:0 2px 5px rgba(24,39,52,.055)}
.dashboard-metric-icon{width:36px;height:36px;border-radius:7px;display:flex;align-items:center;justify-content:center;line-height:0}
.dashboard-metric-icon svg{display:block;width:20px;height:20px;flex:0 0 20px}
.dashboard-metric-copy{align-self:center;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:7px;align-items:end}
.dashboard-metric-copy small{grid-column:1/-1;font-size:11px;font-weight:650;line-height:1.15;margin:0 0 3px;color:#5d6f7e}
.dashboard-metric-copy strong{grid-column:1;font-size:23px;font-weight:750;line-height:1;margin:0;color:#17232d}
.dashboard-metric-copy em{grid-column:2;align-self:end;font-size:9.5px;line-height:1.1;margin:0 0 1px;color:#87949e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-metric-arrow{font-size:17px;line-height:1;color:#91a0aa;align-self:center}
.view#dashboard .grid-main,.view#dashboard .grid-bottom{gap:14px}
.view#dashboard .panel{border-radius:8px}
.view#dashboard .panel-head{padding:14px 16px}
.view#dashboard .panel-head h2{font-size:16px}
.view#dashboard .panel-head p{font-size:11px;margin-top:3px}
@media(max-width:1500px){.view#dashboard #dashboardKpis{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-metric{min-height:78px}}
@media(max-width:1050px){.view#dashboard #dashboardKpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-metric{min-height:76px}}
@media(max-width:650px){.view#dashboard .page-head{margin-bottom:10px}.view#dashboard .page-head h1{font-size:25px}.view#dashboard #dashboardKpis{grid-template-columns:1fr 1fr;gap:8px}.dashboard-metric{min-height:74px;padding:9px;grid-template-columns:34px minmax(0,1fr)}.dashboard-metric-icon{width:34px;height:34px}.dashboard-metric-icon svg{width:19px;height:19px}.dashboard-metric-copy strong{font-size:21px}.dashboard-metric-copy em{font-size:9px}.dashboard-metric-arrow{display:none}}
@media(max-width:410px){.view#dashboard #dashboardKpis{grid-template-columns:1fr}.dashboard-metric{min-height:70px}}

/* v0.11.6 Dashboard KPI Feinschliff: kompakte klassische Infokarten */
.view#dashboard #dashboardKpis{
  display:grid;
  grid-template-columns:repeat(7,minmax(150px,210px));
  justify-content:start;
  gap:10px;
  margin:14px 0 18px;
}
.dashboard-metric{
  min-height:92px;
  padding:13px 12px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 10px;
  align-items:center;
  gap:10px;
  border:1px solid #dce3e8;
  border-radius:9px;
  background:#fff;
  box-shadow:0 1px 2px rgba(22,35,45,.035);
}
.dashboard-metric:before{display:none}
.dashboard-metric:hover,.dashboard-metric:focus-visible{
  transform:none;
  border-color:#b8c5ce;
  box-shadow:0 2px 6px rgba(22,35,45,.07);
}
.dashboard-metric-icon{
  width:42px;
  height:42px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.dashboard-metric-icon svg{width:22px;height:22px;display:block}
.dashboard-metric-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:0;
}
.dashboard-metric-copy small{
  display:block;
  width:100%;
  margin:0 0 4px;
  font-size:11.5px;
  line-height:1.15;
  font-weight:650;
  color:#5d6e7b;
  white-space:normal;
}
.dashboard-metric-copy strong{
  display:block;
  margin:0;
  font-size:25px;
  line-height:1;
  font-weight:750;
  color:#17232d;
}
.dashboard-metric-copy em{
  display:block;
  margin:4px 0 0;
  font-size:10px;
  line-height:1.1;
  font-style:normal;
  color:#84919a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
.dashboard-metric-arrow{font-size:18px;line-height:1;color:#9aa7b0;align-self:center}
@media(max-width:1780px){
  .view#dashboard #dashboardKpis{grid-template-columns:repeat(4,minmax(170px,1fr))}
}
@media(max-width:1120px){
  .view#dashboard #dashboardKpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
}
@media(max-width:650px){
  .view#dashboard #dashboardKpis{grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
  .dashboard-metric{min-height:86px;padding:11px 10px;grid-template-columns:38px minmax(0,1fr)}
  .dashboard-metric-icon{width:38px;height:38px}.dashboard-metric-icon svg{width:20px;height:20px}
  .dashboard-metric-copy small{font-size:10.5px}.dashboard-metric-copy strong{font-size:23px}.dashboard-metric-copy em{font-size:9.5px}
  .dashboard-metric-arrow{display:none}
}
@media(max-width:420px){
  .view#dashboard #dashboardKpis{grid-template-columns:1fr}
  .dashboard-metric{min-height:78px}
}

/* v0.11.7 Dashboard KPI icon sizing/alignment */
.dashboard-metric-icon{
  width:50px;
  height:50px;
  min-width:50px;
  min-height:50px;
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:0;
  overflow:hidden;
}
.dashboard-metric-icon svg{
  width:28px;
  height:28px;
  min-width:28px;
  min-height:28px;
  display:block;
  margin:0;
  flex:0 0 28px;
  transform:none;
}
.dashboard-metric{
  grid-template-columns:50px minmax(0,1fr) 10px;
  column-gap:12px;
}
@media(max-width:900px){
  .dashboard-metric-icon{width:46px;height:46px;min-width:46px;min-height:46px}
  .dashboard-metric-icon svg{width:25px;height:25px;min-width:25px;min-height:25px;flex-basis:25px}
  .dashboard-metric{grid-template-columns:46px minmax(0,1fr) 10px}
}
@media(max-width:650px){
  .dashboard-metric-icon{width:42px;height:42px;min-width:42px;min-height:42px}
  .dashboard-metric-icon svg{width:23px;height:23px;min-width:23px;min-height:23px;flex-basis:23px}
  .dashboard-metric{grid-template-columns:42px minmax(0,1fr)}
}

/* v0.11.9 KPI icons: hard-centered icon box */
.dashboard-metric-icon{
  position:relative !important;
  width:54px !important;
  height:54px !important;
  min-width:54px !important;
  min-height:54px !important;
  padding:0 !important;
  display:block !important;
  overflow:hidden !important;
  border-radius:10px !important;
}
.dashboard-metric-icon svg{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  width:30px !important;
  height:30px !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  display:block !important;
  transform:translate(-50%,-50%) !important;
  transform-origin:center center !important;
}
.dashboard-metric{
  grid-template-columns:54px minmax(0,1fr) 10px !important;
  column-gap:12px !important;
}
@media(max-width:900px){
  .dashboard-metric-icon{width:48px !important;height:48px !important;min-width:48px !important;min-height:48px !important}
  .dashboard-metric-icon svg{width:27px !important;height:27px !important}
  .dashboard-metric{grid-template-columns:48px minmax(0,1fr) 10px !important}
}
@media(max-width:650px){
  .dashboard-metric-icon{width:44px !important;height:44px !important;min-width:44px !important;min-height:44px !important}
  .dashboard-metric-icon svg{width:25px !important;height:25px !important}
  .dashboard-metric{grid-template-columns:44px minmax(0,1fr) !important}
}

/* v0.11.10 Auftrag Detail Feinschliff */
.detail-svg-icon{display:flex!important;align-items:center!important;justify-content:center!important;line-height:0!important}
.detail-svg-icon svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.assignment-avatar.detail-svg-icon svg{width:22px;height:22px}
.order-detail{padding-bottom:34px}
.detail-copy-grid{margin-bottom:8px}
.detail-actions{margin-top:24px;padding-top:20px;padding-bottom:6px}
@media(max-width:760px){.order-detail{padding-bottom:20px}.detail-actions{padding-bottom:14px;margin-top:20px}}
/* v0.12.0 Projekte */
#projectsGrid{display:grid;grid-template-columns:repeat(3,minmax(280px,1fr));gap:16px}
.project-card{background:#fff;border:1px solid #dbe3e8;border-radius:10px;padding:18px;min-width:0;box-shadow:none}
.project-card-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.project-no{display:block;color:#718293;font-weight:700;margin-bottom:5px}.project-card h3{font-size:18px;margin:0 0 4px;color:#182532}.project-customer{margin:0;color:#596d7d;font-weight:600}.project-status{display:inline-flex;align-items:center;border-radius:16px;padding:5px 9px;font-size:12px;font-weight:700;white-space:nowrap}.project-status.aktiv{background:#e5f5ec;color:#238553}.project-status.pausiert{background:#fff2d8;color:#9a6500}.project-status.abgeschlossen{background:#edf1f4;color:#60717e}.project-address{margin:17px 0;padding:12px 0;border-top:1px solid #edf1f3;border-bottom:1px solid #edf1f3;color:#405464;min-height:44px}.project-meta{display:flex;gap:22px;color:#657887;font-size:13px}.project-meta b{color:#1b2b38;font-size:15px}.project-card-actions{display:flex;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid #edf1f3}.project-card-actions .danger{margin-left:auto}.project-empty{grid-column:1/-1}.project-detail{padding-bottom:18px}.project-detail-head{display:flex;align-items:center;justify-content:space-between;padding:0 0 18px}.project-detail-head>strong{font-size:16px}.project-description{margin-top:16px}.project-orders-block{margin-top:18px;border:1px solid #dbe3e8;border-radius:10px;padding:16px}.project-orders-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.project-orders-head small{display:block;color:#6d7f8e;font-weight:700}.project-orders-head strong{font-size:22px}.project-order-list{display:flex;flex-direction:column;border-top:1px solid #edf1f3}.project-order-list button{appearance:none;border:0;border-bottom:1px solid #edf1f3;background:#fff;padding:11px 4px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer}.project-order-list button:hover{background:#f8fafb}.project-order-list button>span:first-child{display:flex;gap:12px;align-items:center}.project-order-list button b{min-width:112px}.muted{color:#748694}.project-form .form-section{padding:4px 0 20px;margin-bottom:18px;border-bottom:1px solid #e5eaed}.project-form .form-section h3{margin:0 0 14px;font-size:17px}
@media(max-width:1200px){#projectsGrid{grid-template-columns:repeat(2,minmax(260px,1fr))}}
@media(max-width:720px){#projectsGrid{grid-template-columns:1fr;gap:12px}.project-card{padding:15px}.project-card-top{gap:10px}.project-card-actions{flex-wrap:wrap}.project-card-actions .action-btn{flex:1}.project-card-actions .danger{margin-left:0}.project-order-list button>span:first-child{display:block}.project-order-list button b{display:block;margin-bottom:3px}.project-detail-head{align-items:flex-start}.project-orders-block{padding:13px}}

/* v0.12.1 - Projektmaske: kompakt, sauber ausgerichtet, responsive */
.project-form{padding:0 24px 2px}
.project-form .form-section{padding:20px 0 22px;margin:0;border-bottom:1px solid #e7ecef}
.project-form .form-section:last-of-type{border-bottom:0;padding-bottom:20px}
.project-form .form-section h3{margin:0 0 16px;font-size:15px;line-height:1.3;color:#24313c}
.project-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 16px;padding:0}
.project-form .form-grid .wide{grid-column:1/-1}
.project-form label{display:block;margin:0;font-size:12px;font-weight:600;line-height:1.3;color:#637483}
.project-form input,.project-form select,.project-form textarea{width:100%;margin-top:6px;border:1px solid #d8e0e5;border-radius:7px;background:#fff;color:#18212b;font:inherit;outline:none;transition:border-color .12s ease,box-shadow .12s ease}
.project-form input,.project-form select{height:44px;padding:0 12px}
.project-form textarea{min-height:92px;max-height:180px;padding:11px 12px;resize:vertical;line-height:1.45}
.project-form input:focus,.project-form select:focus,.project-form textarea:focus{border-color:#65bdd5;box-shadow:0 0 0 3px rgba(5,169,215,.09)}
.project-form input:disabled{background:#f4f6f7;color:#687783;cursor:not-allowed}
.project-form .block-label{font-size:12px;font-weight:600;color:#637483}
.project-form .modal-actions{margin:0 -24px;padding:16px 24px 18px}
.modal-card:has(.project-form){width:min(860px,94vw);max-height:min(820px,94vh)}
.modal-card:has(.project-form) .modal-head{padding:18px 24px}
.modal-card:has(.project-form) .modal-head h2{font-size:21px}

@media(max-width:900px){
 .modal-card:has(.project-form){width:min(760px,96vw)}
 .project-form{padding:0 20px 2px}
 .project-form .modal-actions{margin:0 -20px;padding:15px 20px 18px}
}
@media(max-width:680px){
 .modal:has(.project-form){padding:0;align-items:stretch}
 .modal-card:has(.project-form){width:100%;max-width:none;height:100vh;max-height:100vh;border-radius:0}
 .modal-card:has(.project-form) .modal-head{padding:15px 16px}
 .project-form{padding:0 16px 2px}
 .project-form .form-section{padding:17px 0 19px}
 .project-form .form-section h3{margin-bottom:13px;font-size:15px}
 .project-form .form-grid{grid-template-columns:1fr;gap:13px}
 .project-form .form-grid .wide{grid-column:auto}
 .project-form input,.project-form select{height:48px;font-size:16px}
 .project-form textarea{min-height:100px;font-size:16px}
 .project-form .modal-actions{margin:0 -16px;padding:12px 16px;grid-template-columns:1fr}
}
/* v0.12.2 Projektakte */
.project-detail-head>div{display:flex;align-items:center;gap:12px}.project-edit-top{margin-left:auto}.project-tabs{display:flex;gap:2px;border-bottom:1px solid #dfe6eb;overflow-x:auto;scrollbar-width:thin;margin:0 -2px 18px;padding:0 2px}.project-tabs button{border:0;background:transparent;padding:12px 14px;color:#607381;font-size:13px;font-weight:700;white-space:nowrap;border-bottom:3px solid transparent;cursor:pointer}.project-tabs button:hover{color:#263844}.project-tabs button.active{color:#172733;border-bottom-color:var(--cyan)}.project-tabs button span{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:5px;border-radius:10px;background:#eef3f5;font-size:11px}.project-tab-panel{padding:2px 0 4px}.project-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.project-summary-grid button{border:1px solid #dce4e9;background:#fff;border-radius:10px;padding:16px;text-align:left;cursor:pointer}.project-summary-grid b,.project-summary-grid span{display:block}.project-summary-grid b{font-size:25px;color:#182833}.project-summary-grid span{margin-top:3px;color:#6a7c89;font-size:12px;font-weight:700}.project-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px}.project-section-head h3{margin:0;font-size:18px;color:#1c2d38}.project-section-head p{margin:4px 0 0;color:#71828e;font-size:12px}.project-order-list-full{border:1px solid #e1e7eb;border-radius:9px;overflow:hidden}.project-empty-state{padding:28px 18px;text-align:center;color:#788995;background:#fafcfc;border:1px dashed #d5dfe4;border-radius:9px;line-height:1.6}.project-upload{display:grid;grid-template-columns:180px minmax(0,1fr) auto;gap:12px;align-items:end;padding:14px;border:1px solid #dce4e9;border-radius:10px;background:#f9fbfc;margin-bottom:16px}.project-upload label{font-size:12px;font-weight:700;color:#617582}.project-upload select{display:block;width:100%;height:46px;margin-top:6px;border:1px solid #d4dde3;border-radius:8px;background:#fff;padding:0 10px}.project-dropzone{min-height:64px;border:1px dashed #b8c7d0;border-radius:8px;background:#fff;display:flex!important;flex-direction:column;justify-content:center;padding:9px 14px;cursor:pointer;transition:.15s}.project-dropzone.drag{border-color:var(--cyan);background:#eefbfe}.project-dropzone input{position:absolute;opacity:0;pointer-events:none}.project-dropzone b{font-size:13px;color:#263945}.project-dropzone span{font-size:11px;color:#81909a;margin-top:2px;font-weight:500}.project-upload>.primary{height:46px}.project-files{display:flex;flex-direction:column;gap:8px}.project-file{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid #e0e7eb;border-radius:9px;padding:10px 12px;background:#fff}.project-file-icon{width:44px;height:44px;border-radius:7px;background:#edf4f6;color:#42616f;display:grid;place-items:center;font-size:10px;font-weight:800}.project-file-info{min-width:0}.project-file-info b,.project-file-info span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-file-info b{font-size:13px;color:#20313c}.project-file-info span{font-size:11px;color:#7a8a95;margin-top:4px}.project-file-actions{display:flex;gap:6px;align-items:center}.project-file-actions a{text-decoration:none}.file-preview-modal{position:fixed;inset:0;background:rgba(14,25,33,.68);z-index:9999;display:grid;place-items:center;padding:22px}.file-preview-card{width:min(1080px,96vw);height:min(820px,92vh);background:#fff;border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.3);display:grid;grid-template-rows:auto 1fr auto;overflow:hidden}.file-preview-card header{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid #e1e7ea}.file-preview-card header small,.file-preview-card header b{display:block}.file-preview-card header small{font-size:10px;color:#7a8994;text-transform:uppercase;font-weight:800}.file-preview-card header b{font-size:14px;margin-top:2px}.file-preview-card header button{width:38px;height:38px;border:0;background:#f0f3f5;border-radius:7px;font-size:24px;cursor:pointer}.file-preview-body{min-height:0;background:#e9eef1;display:grid;place-items:center}.file-preview-body iframe{width:100%;height:100%;border:0;background:#fff}.file-preview-body img{max-width:100%;max-height:100%;object-fit:contain}.file-preview-card footer{padding:11px 16px;border-top:1px solid #e1e7ea;display:flex;justify-content:flex-end}.file-preview-card footer a{text-decoration:none}
@media(max-width:760px){.project-detail-head{gap:10px}.project-detail-head>div{display:block}.project-detail-head>div strong{display:block;margin-top:7px}.project-edit-top{font-size:12px}.project-tabs{margin-left:-4px;margin-right:-4px}.project-tabs button{padding:11px 10px}.project-summary-grid{grid-template-columns:1fr 1fr}.project-section-head{align-items:center}.project-upload{grid-template-columns:1fr}.project-upload>.primary{width:100%}.project-file{grid-template-columns:44px minmax(0,1fr)}.project-file-icon{width:40px;height:40px}.project-file-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr)}.project-file-actions .action-btn{text-align:center}.file-preview-modal{padding:8px}.file-preview-card{width:100%;height:94vh;border-radius:9px}}
@media(max-width:430px){.project-summary-grid{grid-template-columns:1fr}.project-file-actions{grid-template-columns:1fr 1fr}.project-file-actions .danger{grid-column:1/-1}.project-section-head{display:block}.project-section-head .primary{width:100%;margin-top:10px}}

/* v0.12.3 Projektakte: Bearbeiten innerhalb der Akte */
.project-edit-panel{max-width:100%}.project-inline-edit{padding:0}.project-inline-edit .form-section:first-child{padding-top:4px}.project-inline-edit .form-section{padding-left:0;padding-right:0}.project-inline-edit .project-inline-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 0 2px;position:sticky;bottom:0;background:#fff;border-top:1px solid #e7ecef}.project-inline-edit .project-inline-actions button{min-height:44px}.project-detail:has(.project-inline-edit) .project-edit-top{display:none}
@media(max-width:680px){.project-inline-edit{padding:0}.project-inline-edit .project-inline-actions{display:grid;grid-template-columns:1fr;padding-bottom:6px}.project-inline-edit .project-inline-actions button{width:100%}.project-edit-panel .project-section-head p{line-height:1.45}}

/* v0.12.4 Projektakte: einheitliches Layout und Typografie */
.modal-card:has(.project-detail){width:min(1020px,94vw);max-height:min(900px,94vh);border-radius:14px}
.modal-card:has(.project-detail) .modal-head{padding:20px 28px;border-bottom:1px solid #e4eaee}
.modal-card:has(.project-detail) .modal-head h2{font-size:22px;line-height:1.25;font-weight:750;letter-spacing:-.01em}
.project-detail{font-size:14px;color:#1d2a34}
.project-detail-head{min-height:70px;padding:14px 28px;display:flex;align-items:center;border-bottom:0}
.project-detail-head>div{display:flex;align-items:center;gap:12px}
.project-detail-head>div strong{font-size:16px;line-height:1.2}
.project-detail .project-status{min-height:28px;padding:5px 10px;font-size:12px;display:inline-flex;align-items:center}
.project-edit-top{height:44px;min-height:44px;padding:0 17px;font-size:14px}
.project-tabs{margin:0;padding:0 16px;border-bottom:1px solid #dfe6eb;gap:0;overflow-x:auto}
.project-tabs button{height:56px;padding:0 14px;font-size:14px;line-height:1;font-weight:700;border-bottom-width:3px}
.project-tab-panel{padding:28px}
.project-section-head{margin:0 0 22px}
.project-section-head h3{font-size:20px;line-height:1.25;font-weight:750}
.project-section-head p{font-size:13px;line-height:1.45;margin-top:5px}
.project-edit-panel{padding-top:24px}
.project-inline-edit{font-size:14px}
.project-inline-edit .form-section{padding:0 0 26px;margin:0 0 26px;border-bottom:1px solid #e4eaee}
.project-inline-edit .form-section:last-of-type{margin-bottom:0}
.project-inline-edit .form-section h3{font-size:16px;line-height:1.3;font-weight:750;margin:0 0 18px;color:#23323d}
.project-inline-edit .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.project-inline-edit label,.project-inline-edit .block-label{font-size:13px;line-height:1.3;font-weight:650;color:#607383}
.project-inline-edit input,.project-inline-edit select,.project-inline-edit textarea{font-family:inherit;font-size:14px;font-weight:500;color:#18242e;border:1px solid #d4dee4;border-radius:8px;background:#fff;margin-top:7px}
.project-inline-edit input,.project-inline-edit select{height:48px;min-height:48px;padding:0 14px}
.project-inline-edit textarea{width:100%;min-height:112px;padding:13px 14px;line-height:1.5;resize:vertical}
.project-inline-edit input:disabled{height:48px;background:#f3f6f7;color:#6c7d89;opacity:1}
.project-inline-edit input:focus,.project-inline-edit select:focus,.project-inline-edit textarea:focus{border-color:#6abdd3;box-shadow:0 0 0 3px rgba(5,169,215,.09);outline:0}
.project-inline-edit .project-inline-actions{margin:0 -28px -28px;padding:16px 28px;background:#fafbfc;position:sticky;bottom:-28px;z-index:2;border-top:1px solid #e4eaee;display:flex;justify-content:flex-end;gap:10px}
.project-inline-edit .project-inline-actions button{height:46px;min-height:46px;padding:0 18px;font-size:14px;font-weight:700}
.project-detail .detail-card{min-height:112px;padding:17px 18px}
.project-detail .detail-grid small,.project-detail .detail-text small{font-size:12px}
.project-detail .detail-grid strong{font-size:15px}
.project-description{padding:18px;margin-top:14px;border:1px solid #e2e8ec;border-radius:9px;background:#fff}
.project-summary-grid button{min-height:94px;padding:17px 18px}
.project-upload{grid-template-columns:190px minmax(0,1fr) 120px;gap:14px;padding:16px}
.project-upload select,.project-upload>.primary{height:48px;min-height:48px}
.project-dropzone{min-height:68px}
.project-file{min-height:68px}
@media(max-width:760px){
 .modal-card:has(.project-detail){width:96vw;max-height:96vh}
 .modal-card:has(.project-detail) .modal-head{padding:17px 18px}
 .modal-card:has(.project-detail) .modal-head h2{font-size:20px}
 .project-detail-head{padding:12px 18px;min-height:64px;align-items:center}
 .project-detail-head>div{display:flex;align-items:center}
 .project-detail-head>div strong{margin-top:0;font-size:15px}
 .project-tabs{padding:0 8px}
 .project-tabs button{height:52px;padding:0 10px;font-size:13px}
 .project-tab-panel{padding:20px 18px}
 .project-edit-panel{padding-top:20px}
 .project-inline-edit .form-grid{grid-template-columns:1fr;gap:15px}
 .project-inline-edit .form-grid .wide{grid-column:auto}
 .project-inline-edit input,.project-inline-edit select{height:48px;min-height:48px;font-size:16px}
 .project-inline-edit textarea{font-size:16px;min-height:108px}
 .project-inline-edit .project-inline-actions{margin:0 -18px -20px;padding:13px 18px;bottom:-20px}
 .project-upload{grid-template-columns:1fr}
}
@media(max-width:520px){
 .modal:has(.project-detail){padding:0;align-items:stretch}
 .modal-card:has(.project-detail){width:100%;max-width:none;height:100vh;max-height:100vh;border-radius:0}
 .project-detail-head{flex-wrap:wrap}
 .project-edit-top{width:100%;margin:0}
 .project-tabs{padding:0 6px}
 .project-tab-panel{padding:18px 14px}
 .project-inline-edit .project-inline-actions{margin:0 -14px -18px;padding:12px 14px;grid-template-columns:1fr}
 .project-inline-edit .project-inline-actions button{width:100%}
}

/* v0.12.5 Projektakte: einheitliche Formulare und kompakter Dokumentenupload */
.project-detail,.project-detail button,.project-detail input,.project-detail select,.project-detail textarea{font-family:inherit}
.project-form .form-section{padding-top:22px;padding-bottom:22px}
.project-form .form-section h3{font-size:16px;line-height:1.3;margin:0 0 16px;font-weight:750;color:#20313c}
.project-form .form-grid{gap:16px 20px}
.project-form label,.project-upload>label{font-size:12px;line-height:1.25;font-weight:700;color:#617582}
.project-form input,.project-form select,.project-upload input[type=text],.project-upload select{box-sizing:border-box;width:100%;height:48px;min-height:48px;margin-top:7px;padding:0 14px;border:1px solid #d4dde3;border-radius:8px;background:#fff;color:#172733;font-size:14px;font-weight:600}
.project-form textarea{box-sizing:border-box;width:100%;min-height:112px;margin-top:7px;padding:13px 14px;border:1px solid #d4dde3;border-radius:8px;background:#fff;color:#172733;font-size:14px;font-weight:500;line-height:1.45;resize:vertical}
.project-form input:disabled{background:#f3f6f7;color:#71828e}
.project-upload{grid-template-columns:180px minmax(220px,1fr) minmax(280px,1.35fr) 120px;align-items:end;gap:14px;padding:16px}
.project-upload>label{min-width:0;margin:0}
.project-upload input[type=text],.project-upload select{display:block}
.project-dropzone{box-sizing:border-box;height:64px;min-height:64px;margin:0;padding:9px 14px;overflow:hidden}
.project-dropzone b{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-dropzone b.has-files{color:#087e9d}
.project-dropzone span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-upload>.primary{height:48px;min-height:48px;margin:0}
.project-file-info small.project-file-original{display:block;margin-top:3px;color:#87959e;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1050px){.project-upload{grid-template-columns:1fr 1fr}.project-dropzone{height:64px}.project-upload>.primary{width:100%}}
@media(max-width:680px){.project-form .form-section{padding-top:18px;padding-bottom:18px}.project-form .form-grid{grid-template-columns:1fr;gap:13px}.project-form .form-grid .wide{grid-column:auto}.project-upload{grid-template-columns:1fr;padding:14px}.project-dropzone{height:auto;min-height:68px}.project-dropzone b,.project-dropzone span{white-space:normal}.project-upload>.primary{width:100%}}

/* v0.12.6 Projektakte: feste Dialoggroesse und stabile Reiter */
.modal-card:has(.project-detail){
  width:min(1020px,94vw);
  height:min(780px,92vh);
  max-height:min(780px,92vh);
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
}
.modal-card:has(.project-detail) #modalContent{min-height:0;overflow:hidden}
.project-detail{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}
#projectTabContent{min-height:0;overflow:auto;background:#fff}
.project-tab-panel{box-sizing:border-box;min-height:100%;}
.project-upload{grid-template-columns:170px 260px minmax(260px,1fr) 112px;gap:12px;align-items:end}
.project-upload>.primary{width:112px;min-width:112px;padding:0 12px;white-space:nowrap}
@media(max-width:1050px){
 .modal-card:has(.project-detail){width:min(940px,96vw)}
 .project-upload{grid-template-columns:1fr 1fr}
 .project-upload>.primary{width:100%;min-width:0}
}
@media(max-width:680px){
 .modal-card:has(.project-detail){width:100%;height:100vh;max-height:100vh}
 .project-upload{grid-template-columns:1fr}
 .project-upload>.primary{width:100%}
}

/* v0.12.7 Projektakte: Uploadbereich bleibt garantiert innerhalb des Dialogs */
.project-upload{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  grid-template-columns:minmax(145px,170px) minmax(190px,260px) minmax(220px,1fr) minmax(108px,112px);
  gap:12px;
  overflow:hidden;
}
.project-upload>*{box-sizing:border-box;min-width:0;max-width:100%}
.project-upload>.primary{width:100%;min-width:0;max-width:112px;justify-self:end;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1050px){
 .project-upload{grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:visible}
 .project-upload>.primary{width:100%;max-width:none;justify-self:stretch}
}
@media(max-width:680px){
 .project-upload{grid-template-columns:minmax(0,1fr)}
}

/* v0.12.9 Mitarbeiter: Qualifikationsgruppen, Fotos, Status */
#employeeGrid.employee-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.employee-group-title{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin:8px 0 0;font-size:14px;font-weight:800;color:#344955}
.employee-group-title:after{content:"";height:1px;background:#dfe5e9;flex:1}
.employee-card{min-width:0}
.avatar.employee-photo{overflow:hidden;padding:0;background:#eef3f5}
.avatar.employee-photo img{width:100%;height:100%;object-fit:cover;display:block}
.status.available{background:#e5f6ec!important;color:#247d52!important;border-color:#c8ead7!important}
.employee-photo-editor{display:grid;grid-template-columns:104px 1fr;gap:18px;align-items:center;padding:20px 24px;border-bottom:1px solid #e7ecef;background:#fbfcfc}
.employee-photo-preview{width:104px;height:104px;border-radius:12px;background:#e9f2f5;color:#58717e;display:grid;place-items:center;overflow:hidden;font-size:13px;font-weight:800}
.employee-photo-preview img{width:100%;height:100%;object-fit:cover;display:block}
.employee-photo-editor b{display:block;font-size:15px;margin-bottom:4px}.employee-photo-editor p{margin:0 0 10px;color:#70808c;font-size:12px;line-height:1.45}
.photo-upload-btn{display:inline-flex!important;width:auto!important;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border:1px solid #d6dfe5;border-radius:7px;background:#fff;color:#263640!important;font-size:13px!important;font-weight:700!important;cursor:pointer}.photo-upload-btn input{display:none}.remove-photo{display:inline-flex!important;width:auto!important;align-items:center;gap:7px;margin-left:12px;color:#a7353d!important;font-size:12px!important}.remove-photo input{width:auto!important;margin:0!important}
.employee-form>.form-grid{padding:22px 24px}.employee-form .form-grid input,.employee-form .form-grid select{min-height:48px}
@media(max-width:1100px){#employeeGrid.employee-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#employeeGrid.employee-grid{grid-template-columns:1fr}.employee-photo-editor{grid-template-columns:82px 1fr;padding:18px 16px}.employee-photo-preview{width:82px;height:82px}.employee-form>.form-grid{padding:18px 16px}.remove-photo{display:flex!important;margin:9px 0 0!important}}

/* v0.12.10 Mitarbeiterfotos */
.employee-card .avatar{width:52px;height:52px;min-width:52px;border-radius:50%;display:grid;place-items:center}
.employee-card .avatar.employee-photo{overflow:hidden;padding:0;background:#e9f2f5;border:1px solid #dce7eb}
.employee-card .avatar.employee-photo img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
@media(max-width:760px){.employee-card .avatar{width:48px;height:48px;min-width:48px}}

/* v0.13.0 Fahrzeugakte */
.vehicle-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}.vehicle-kpis article{background:#fff;border:1px solid #dfe6ea;border-radius:10px;padding:17px 18px;min-height:102px}.vehicle-kpis span,.vehicle-kpis b,.vehicle-kpis small{display:block}.vehicle-kpis span{font-size:13px;color:#657886}.vehicle-kpis b{font-size:27px;line-height:1.1;margin-top:6px;color:#182833}.vehicle-kpis small{font-size:11px;color:#7a8a95;margin-top:4px}.vehicle-kpis article.warn{border-color:#efd8ad;background:#fffdf8}.vehicle-grid>#vehiclesGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.vehicle-card-new{border:1px solid #dfe6ea!important;border-radius:10px!important;background:#fff;padding:18px!important;min-width:0}.vehicle-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid #edf1f3}.vehicle-card-head small{display:block;color:#6c7d89;font-size:12px;font-weight:650}.vehicle-card-head h3{font-size:21px;margin:5px 0 0!important;letter-spacing:.01em}.vehicle-internal{display:block;color:#82909a;font-size:11px;margin-top:4px}.vehicle-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.vehicle-facts>div{background:#f8fafb;border:1px solid #e5eaed;border-radius:8px;padding:11px 12px;min-width:0}.vehicle-facts span,.vehicle-facts b{display:block}.vehicle-facts span{font-size:11px;color:#788994;margin-bottom:4px}.vehicle-facts b{font-size:13px;color:#263742;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vehicle-maintenance{display:flex;gap:7px;flex-wrap:wrap;min-height:28px;margin-bottom:15px}.maint-pill{display:inline-flex;align-items:center;min-height:27px;padding:4px 9px;border-radius:14px;font-size:11px;font-weight:750}.maint-pill.green{background:#e7f6ed;color:#267b51}.maint-pill.yellow{background:#fff7d9;color:#856b08}.maint-pill.orange{background:#fff0dc;color:#a5630b}.maint-pill.red{background:#fdebed;color:#a7353d}.maint-pill.gray{background:#eef2f4;color:#65737d}.vehicle-card-new .actions{padding-top:13px;border-top:1px solid #edf1f3}.modal-card:has(.vehicle-form){width:min(920px,94vw);max-height:min(860px,94vh)}.vehicle-form{font-size:14px}.vehicle-form-section{padding:22px 24px;border-bottom:1px solid #e6ecef}.vehicle-form-section h3{font-size:18px;margin:0 0 17px;color:#22323d;display:flex;align-items:center;gap:12px}.vehicle-form-section h3:after{content:"";height:1px;background:#e5eaed;flex:1}.vehicle-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 16px}.vehicle-form label{font-size:13px;font-weight:650;color:#607381}.vehicle-form input,.vehicle-form select{display:block;width:100%;height:48px;margin-top:7px;border:1px solid #d5dee4;border-radius:8px;background:#fff;padding:0 12px;font:inherit;font-size:15px;color:#172630;box-sizing:border-box}.vehicle-service-hint{margin:14px 0 0;padding:11px 13px;border-radius:8px;background:#f5f9fa;color:#687b88;font-size:12px;line-height:1.45}.vehicle-form .modal-actions{margin:0;padding:16px 24px 18px}.status.done{background:#e6f6ed!important;color:#237b50!important}
@media(max-width:980px){.vehicle-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.vehicle-grid>#vehiclesGrid{grid-template-columns:1fr}}
@media(max-width:700px){.vehicle-kpis{grid-template-columns:1fr 1fr;gap:9px}.vehicle-kpis article{min-height:88px;padding:13px}.vehicle-kpis b{font-size:23px}.modal-card:has(.vehicle-form){width:100%;max-width:none;height:100vh;max-height:100vh;border-radius:0}.vehicle-form-section{padding:18px 16px}.vehicle-form .form-grid{grid-template-columns:1fr;gap:13px}.vehicle-form input,.vehicle-form select{height:50px;font-size:16px}.vehicle-form .modal-actions{padding:12px 16px}.vehicle-facts{grid-template-columns:1fr}.vehicle-card-head{gap:10px}.vehicle-card-new{padding:15px!important}}


/* v0.13.1 Dashboard Fahrzeugwartung */
.dashboard-vehicle-panel{margin-top:18px}.dashboard-vehicle-maintenance{display:flex;flex-direction:column}.dashboard-maint-row{width:100%;display:grid;grid-template-columns:12px minmax(220px,1fr) minmax(280px,1.25fr) 18px;gap:13px;align-items:center;padding:13px 16px;border:0;border-top:1px solid #edf1f3;background:#fff;text-align:left;cursor:pointer;font:inherit;color:inherit}.dashboard-maint-row:first-child{border-top:0}.dashboard-maint-row:hover{background:#f9fbfc}.dashboard-maint-dot{width:10px;height:10px;border-radius:50%}.dashboard-maint-dot.red{background:#c84750}.dashboard-maint-dot.orange{background:#d98a25}.dashboard-maint-dot.yellow{background:#d3b32c}.dashboard-maint-vehicle{min-width:0}.dashboard-maint-vehicle b,.dashboard-maint-vehicle small{display:block}.dashboard-maint-vehicle b{font-size:13px;color:#23343f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-maint-vehicle small{font-size:11px;color:#758692;margin-top:4px}.dashboard-maint-pills{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}.dashboard-maint-pills .maint-pill{font-style:normal;white-space:nowrap}.dashboard-maint-arrow{font-size:23px;color:#9aa8b1}.dashboard-maint-ok{display:flex;align-items:center;gap:13px;padding:18px 20px}.dashboard-maint-ok>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e7f6ed;color:#267b51;font-weight:800}.dashboard-maint-ok b,.dashboard-maint-ok small{display:block}.dashboard-maint-ok b{font-size:13px;color:#263742}.dashboard-maint-ok small{font-size:11px;color:#788994;margin-top:3px}.dashboard-detail-maint{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.dashboard-detail-maint .maint-pill{font-style:normal}.dashboard-vehicle-detail-row{align-items:flex-start}
@media(max-width:900px){.dashboard-maint-row{grid-template-columns:12px minmax(0,1fr) 18px}.dashboard-maint-pills{grid-column:2/3;justify-content:flex-start}.dashboard-maint-arrow{grid-column:3;grid-row:1/3;align-self:center}}
@media(max-width:600px){.dashboard-vehicle-panel{margin-top:12px}.dashboard-maint-row{padding:12px 13px;gap:10px}.dashboard-maint-vehicle b{white-space:normal}.dashboard-maint-pills{gap:4px}.dashboard-maint-pills .maint-pill{white-space:normal}.dashboard-maint-ok{padding:15px}}

/* v0.14.0 Aufmaß */
.measure-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}.measure-kpis article{background:#fff;border:1px solid var(--line,#dfe4ea);border-radius:12px;padding:16px 18px;min-height:94px;display:flex;flex-direction:column;justify-content:center}.measure-kpis span{font-size:13px;font-weight:700;color:#647184}.measure-kpis b{font-size:27px;line-height:1.15;margin-top:3px}.measure-kpis small{font-size:12px;color:#7c8796}.measure-list{display:grid;gap:12px}.measure-card{background:#fff;border:1px solid var(--line,#dfe4ea);border-radius:12px;padding:18px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:22px;align-items:center}.measure-card small{color:#697789;font-weight:700}.measure-card h3{margin:4px 0;font-size:17px}.measure-card p{margin:0;color:#687586}.measure-card-meta{display:flex;gap:12px;align-items:center;font-size:13px;color:#5e6b7b}.measure-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;background:#edf1f5;color:#485568}.measure-status.pruefung{background:#fff1d6;color:#8b5c00}.measure-status.freigegeben{background:#e2f5e8;color:#19703a}.measure-status.abgerechnet{background:#e5edf8;color:#315d8e}.measure-card-actions,.measurement-head-actions{display:flex;gap:8px;flex-wrap:wrap}.measurement-form label{font-size:13px;font-weight:700;color:#344255}.measurement-form input,.measurement-form select,.measurement-form textarea{width:100%;margin-top:6px;min-height:48px;font:inherit}.measurement-form textarea{padding-top:12px;resize:vertical}.measurement-detail{min-height:520px}.measurement-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:16px;border-bottom:1px solid #e2e6eb}.measurement-head h3{font-size:19px;margin:8px 0 4px}.measurement-head p{margin:0;color:#667386}.measure-note{margin:14px 0;padding:12px 14px;border-radius:9px;background:#f6f8fa;color:#445164}.measure-table-head,.measure-item{display:grid;grid-template-columns:minmax(260px,1.8fr) minmax(180px,1fr) 120px auto;gap:14px;align-items:center}.measure-table-head{padding:14px 12px 8px;font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:800;color:#7b8795}.measure-area{border:1px solid #e1e6eb;border-radius:10px;overflow:hidden;margin-bottom:12px}.measure-area-head{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;background:#f4f6f8}.measure-area-head b{font-size:14px}.text-danger{border:0;background:transparent;color:#a33;font-weight:700;cursor:pointer}.measure-item{padding:13px 14px;border-top:1px solid #e6e9ed;font-size:13px}.measure-item:first-of-type{border-top:0}.measure-item small{display:block;color:#788493;font-size:11px;font-weight:700}.measure-item b{display:block;font-size:14px;margin:2px 0}.measure-item p,.measure-item em{display:block;margin:3px 0 0;color:#667386;font-style:normal}.measure-area-empty{padding:18px;color:#7a8593;font-size:13px}.measure-items{padding-bottom:8px}
@media(max-width:980px){.measure-kpis{grid-template-columns:repeat(2,1fr)}.measure-card{grid-template-columns:1fr}.measure-card-meta{flex-wrap:wrap}.measure-table-head{display:none}.measure-item{grid-template-columns:1fr 1fr}.measure-item>div:first-child{grid-column:1/-1}.measure-item .actions{grid-column:1/-1}}
@media(max-width:620px){.measure-kpis{grid-template-columns:1fr 1fr;gap:9px}.measure-kpis article{padding:12px;min-height:82px}.measure-kpis b{font-size:23px}.measure-card{padding:14px;gap:13px}.measurement-head{display:block}.measurement-head-actions{margin-top:14px}.measurement-head-actions button{flex:1;min-height:48px}.measure-item{grid-template-columns:1fr;padding:12px}.measure-item>div:first-child,.measure-item .actions{grid-column:auto}.measure-item .actions{display:flex}.measure-item .actions button{flex:1}.measurement-detail{min-height:0}}

/* v0.14.1 Aufmass Layout und freie Einheiten */
.modal-card:has(.measurement-detail),.modal-card:has(.measure-item-form){width:min(1040px,94vw);max-height:min(860px,94vh)}
.modal-card:has(.measure-area-form){width:min(720px,94vw);max-height:min(420px,94vh)}
.modal-card:has(.measurement-detail) #modalContent,.modal-card:has(.measure-item-form) #modalContent,.modal-card:has(.measure-area-form) #modalContent{overflow:auto;min-height:0}
.measurement-detail{min-height:560px}.measurement-head{padding:20px 24px;align-items:center}.measurement-head-info{min-width:0}.measurement-head .measure-status{margin-bottom:7px}.measurement-head h3{margin:0 0 5px;font-size:20px}.measurement-head-actions{flex:none}.measurement-head-actions button{min-height:48px;padding:0 18px;font-size:14px}
.measure-table-head{grid-template-columns:minmax(280px,1.8fr) minmax(180px,1fr) 120px 205px;padding:16px 18px 9px}.measure-items{padding:0 0 16px}.measure-area{margin:0 0 14px;border-radius:10px}.measure-area-head{min-height:48px;padding:11px 16px}.measure-item{grid-template-columns:minmax(280px,1.8fr) minmax(180px,1fr) 120px 205px;padding:14px 16px}.measure-item .actions{display:flex;justify-content:flex-end;gap:8px}.measure-item .actions button{min-height:40px;padding:0 13px}
.measure-item-form{padding:22px 24px 20px}.measure-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.measurement-form label{display:block;font-size:13px;font-weight:700;color:#344255}.measurement-form input,.measurement-form select,.measurement-form textarea{display:block;width:100%;margin-top:7px;min-height:50px;border:1px solid #d5dee4;border-radius:8px;background:#fff;padding:0 12px;font:inherit;font-size:15px;color:#182833}.measurement-form textarea{padding:12px;resize:vertical;min-height:72px}.measure-unit-select{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.measure-unit-select select{margin-top:7px}.measure-unit-select button{height:50px;margin-top:7px;padding:0 14px}.unit-toggle.active{border-color:var(--cyan);color:#087f9e;background:#edfafd}.unit-manager{grid-column:1/-1;margin-top:18px;padding:16px;border:1px solid #dce5ea;border-radius:10px;background:#f8fafb}.unit-manager[hidden]{display:none}.unit-manager-head b,.unit-manager-head small{display:block}.unit-manager-head b{font-size:15px}.unit-manager-head small{margin-top:3px;color:#71808f;font-size:12px}.unit-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-top:13px}.unit-add-row input{height:46px;margin:0}.unit-add-row button{min-height:46px}.unit-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.unit-list>span{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:5px 7px 5px 11px;border:1px solid #d9e1e6;border-radius:18px;background:#fff;font-weight:700}.unit-delete{width:24px;height:24px;border:0;border-radius:50%;background:#fdebed;color:#a7353d;font-size:18px;line-height:1;cursor:pointer}.unit-hint{margin:12px 0 0;color:#778692;font-size:11px}.measure-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid #e7ecef}.measure-form-actions button{min-height:46px;padding:0 18px}
.measure-area-form{padding:22px 24px}.measure-area-form>label{max-width:none}.measure-area-form .measure-form-actions{margin-top:20px}
@media(max-width:760px){.modal-card:has(.measurement-detail),.modal-card:has(.measure-item-form),.modal-card:has(.measure-area-form){width:100%;max-width:none;height:100vh;max-height:100vh;border-radius:0}.measurement-head{display:block;padding:16px}.measurement-head-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:14px}.measurement-head-actions button{width:100%;padding:0 10px}.measure-table-head{display:none}.measure-items{padding:12px 12px 18px}.measure-item{grid-template-columns:1fr;gap:10px;padding:14px}.measure-item .actions{justify-content:stretch}.measure-item .actions button{flex:1}.measure-item-form,.measure-area-form{padding:18px 16px}.measure-form-grid{grid-template-columns:1fr;gap:13px}.measurement-form input,.measurement-form select,.measurement-form textarea{font-size:16px;min-height:50px}.measure-unit-select{grid-template-columns:minmax(0,1fr) auto}.unit-add-row{grid-template-columns:1fr}.measure-form-actions{display:grid;grid-template-columns:1fr 1fr}.measure-form-actions button{width:100%}}
@media(max-width:460px){.measurement-head-actions,.measure-form-actions{grid-template-columns:1fr}.measure-unit-select{grid-template-columns:1fr}.measure-unit-select button{margin-top:0}.unit-manager{padding:13px}}


/* v0.14.2 Aufmass Detailansicht sauber eingepasst */
.modal-card:has(.measurement-detail){width:min(1100px,calc(100vw - 48px));}
.measurement-detail{width:100%;min-width:0;overflow:hidden;}
.measurement-head{box-sizing:border-box;width:100%;}
.measurement-head-info{flex:1;min-width:0;}
.measurement-head-info h3,.measurement-head-info p{overflow-wrap:anywhere;}
.measure-items{box-sizing:border-box;width:100%;padding:0 18px 18px;}
.measure-table-head{box-sizing:border-box;width:100%;grid-template-columns:minmax(220px,1.65fr) minmax(130px,.9fr) 100px 190px;gap:12px;padding:16px 34px 9px 34px;}
.measure-area{box-sizing:border-box;width:100%;min-width:0;overflow:hidden;}
.measure-item{box-sizing:border-box;width:100%;min-width:0;grid-template-columns:minmax(220px,1.65fr) minmax(130px,.9fr) 100px 190px;gap:12px;padding:14px 16px;}
.measure-item>div{min-width:0;overflow-wrap:anywhere;}
.measure-item .actions{min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.measure-item .actions button{width:100%;min-width:0;min-height:40px;padding:0 10px;white-space:nowrap;font-size:13px;}
@media(max-width:980px){.modal-card:has(.measurement-detail){width:min(920px,calc(100vw - 32px))}.measure-items{padding:12px 16px 18px}.measure-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.measure-item>div:first-child{grid-column:1/-1}.measure-item .actions{grid-column:1/-1;display:flex;justify-content:flex-end}.measure-item .actions button{width:auto;min-width:120px}.measure-table-head{display:none}}
@media(max-width:760px){.modal-card:has(.measurement-detail){width:100%;max-width:none}.measure-items{padding:12px 12px 18px}.measure-item{grid-template-columns:1fr}.measure-item>div:first-child,.measure-item .actions{grid-column:auto}.measure-item .actions{display:grid;grid-template-columns:1fr 1fr}.measure-item .actions button{width:100%;min-width:0}.measure-area-head{gap:12px}.measure-area-head b{min-width:0;overflow-wrap:anywhere}.measure-area-head .text-danger{flex:none}}
@media(max-width:420px){.measure-item .actions{grid-template-columns:1fr}.measurement-head-actions{grid-template-columns:1fr}}


/* v0.14.3 Dashboard Mitarbeiterstatus und globale Suche */
.employee-today-state{font-style:normal;font-size:11px;font-weight:700;border-radius:999px;padding:5px 9px;white-space:nowrap}
.employee-state-available{background:#e7f5ed;color:#287f58}
.employee-state-active{background:#e7f2fb;color:#326e9e}
.employee-state-vacation{background:#fff1dc;color:#a96b15}
.employee-state-sick,.employee-state-unavailable{background:#fdebed;color:#b93c46}
.global-search{position:relative}
.global-search .search-icon{flex:none}
.global-search-results{position:absolute;top:calc(100% + 8px);left:0;width:min(620px,calc(100vw - 32px));max-height:430px;overflow:auto;background:#fff;border:1px solid #dce3e7;border-radius:8px;box-shadow:0 14px 36px rgba(25,39,49,.16);z-index:120;padding:6px}
.global-search-results button{width:100%;display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;align-items:center;border:0;border-bottom:1px solid #edf0f2;background:#fff;padding:10px 12px;text-align:left;font:inherit;cursor:pointer;border-radius:5px}
.global-search-results button:last-child{border-bottom:0}.global-search-results button:hover{background:#f5f8f9}
.global-search-results button span:last-child{min-width:0}.global-search-results b,.global-search-results small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-search-results b{font-size:13px;color:#263844}.global-search-results small{font-size:11px;color:#788791;margin-top:2px}
.global-search-type{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#66808d}
.global-search-empty{padding:16px;font-size:12px;color:#788791}
@media(max-width:720px){.global-search-results{position:fixed;left:12px;right:12px;top:66px;width:auto}.global-search-results button{grid-template-columns:58px minmax(0,1fr)}}

/* v0.15.0 Leistungskatalog und Aufmaß-Schnellsuche */
.catalog-toolbar{display:grid;grid-template-columns:minmax(320px,1fr) 240px 190px;gap:10px;margin:0 0 12px}.catalog-toolbar input,.catalog-toolbar select{width:100%;height:48px;border:1px solid #d5dee4;border-radius:7px;background:#fff;padding:0 13px;font:inherit;font-size:14px}.catalog-meta{margin:0 0 10px;color:#71808c;font-size:12px}.catalog-meta b{color:#243642}.catalog-list{display:grid;gap:8px}.catalog-row{display:grid;grid-template-columns:92px minmax(0,1fr) 70px 190px;gap:14px;align-items:center;padding:13px 14px;background:#fff;border:1px solid #e1e7ea;border-radius:8px}.catalog-row.inactive{opacity:.58}.catalog-no{font-size:12px;font-weight:800;color:#70808b}.catalog-main{min-width:0}.catalog-main small,.catalog-main b,.catalog-main p{display:block}.catalog-main small{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#70808b}.catalog-main b{font-size:14px;margin-top:3px;color:#263844}.catalog-main p{font-size:12px;margin:4px 0 0;color:#71808c}.catalog-unit{font-weight:800;text-align:center}.catalog-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.catalog-form{padding:22px 24px}.catalog-span2{grid-column:1/-1}
.catalog-picker{padding:18px 22px 20px;min-height:560px}.catalog-picker-top{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:10px}.catalog-picker-top input,.catalog-picker-top select{height:50px;border:1px solid #ccd8de;border-radius:8px;padding:0 13px;font:inherit;font-size:15px}.catalog-picker-hint{padding:9px 2px 12px;color:#73818d;font-size:12px}.catalog-picker-results{border:1px solid #e0e6e9;border-radius:9px;overflow:auto;max-height:430px;background:#fff}.catalog-pick-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 65px 36px;gap:12px;align-items:center;border:0;border-bottom:1px solid #edf0f2;background:#fff;padding:11px 13px;text-align:left;cursor:pointer;font:inherit}.catalog-pick-row:last-child{border-bottom:0}.catalog-pick-row:hover{background:#f5f9fa}.catalog-pick-row span{min-width:0}.catalog-pick-row small,.catalog-pick-row b{display:block}.catalog-pick-row small{font-size:10px;color:#71808c}.catalog-pick-row b{font-size:13px;margin-top:2px;color:#263844;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-pick-row strong{text-align:right;font-size:12px}.catalog-pick-row i{display:grid;place-items:center;width:30px;height:30px;border-radius:6px;background:#edf8fb;color:#087f9e;font-style:normal;font-size:20px;font-weight:700}.catalog-picker-footer{display:flex;justify-content:space-between;gap:10px;padding-top:14px}.quick-catalog-form{padding:22px 24px}.quick-catalog-service{padding:14px 16px;border:1px solid #dce5e9;border-radius:8px;background:#f7f9fa;margin-bottom:16px}.quick-catalog-service small{display:block;color:#71808c;font-size:11px;font-weight:700}.quick-catalog-service h3{margin:4px 0 0;font-size:18px}.quick-qty-row{display:grid;grid-template-columns:1fr 180px;gap:14px}.measurement-head-actions{flex-wrap:wrap}
@media(max-width:900px){.catalog-toolbar{grid-template-columns:1fr 1fr}.catalog-search-wrap{grid-column:1/-1}.catalog-row{grid-template-columns:80px minmax(0,1fr) 60px}.catalog-actions{grid-column:1/-1;justify-self:end;width:190px}}
@media(max-width:680px){.catalog-toolbar{grid-template-columns:1fr}.catalog-search-wrap{grid-column:auto}.catalog-row{grid-template-columns:1fr 54px;padding:12px}.catalog-no{grid-column:1/-1}.catalog-actions{grid-column:1/-1;width:100%}.catalog-picker{padding:14px;min-height:0}.catalog-picker-top{grid-template-columns:1fr}.catalog-picker-top input,.catalog-picker-top select{font-size:16px}.catalog-pick-row{grid-template-columns:minmax(0,1fr) 48px 34px;padding:12px 10px}.catalog-picker-footer{display:grid;grid-template-columns:1fr 1fr}.quick-qty-row{grid-template-columns:1fr}.measurement-head-actions{display:grid;grid-template-columns:1fr 1fr}.measurement-head-actions #addCatalogItemBtn{grid-column:1/-1}}
/* v0.16.0 Mehrere Leistungskataloge */
.catalog-manager{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.catalog-groups,.catalog-work{background:#fff;border:1px solid #e3e8ed;border-radius:12px}.catalog-groups{padding:14px;position:sticky;top:84px}.catalog-groups-head{display:flex;justify-content:space-between;align-items:center;padding:4px 4px 12px}.catalog-groups-head small{color:#71808c}.catalog-group-card{width:100%;border:1px solid #e0e6eb;background:#fff;border-radius:9px;padding:12px;margin:0 0 8px;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;gap:10px}.catalog-group-card span{min-width:0;display:grid;gap:3px}.catalog-group-card b{font-size:14px;color:#17212b}.catalog-group-card small{font-size:12px;color:#6e7c88;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-group-card i{font-size:11px;font-style:normal;padding:4px 7px;border-radius:20px;background:#e9f7ef;color:#23834d}.catalog-group-card.active{border-color:#00a9d6;box-shadow:0 0 0 2px rgba(0,169,214,.10)}.catalog-group-card.inactive{opacity:.65}.catalog-group-card.inactive i{background:#f0f2f4;color:#66717b}.catalog-work{padding:16px;min-width:0}.catalog-current{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:2px 2px 16px;border-bottom:1px solid #edf0f2;margin-bottom:14px}.catalog-current small{color:#77848e}.catalog-current h3{margin:2px 0 3px;font-size:20px}.catalog-current p{margin:0;color:#66737d;font-size:13px}.catalog-current-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.catalog-import-choice{display:grid;gap:12px;padding:4px}.catalog-import-choice h3{margin:0}.catalog-import-choice p{margin:0 0 4px;color:#65737e}.measurement-catalog-label{display:block;margin-top:7px;color:#687680}.catalog-picker-title{display:flex;gap:7px;align-items:baseline;margin-bottom:10px}.catalog-picker-title small{color:#74818b}.catalog-picker-title b{font-size:15px}
@media(max-width:1000px){.catalog-manager{grid-template-columns:1fr}.catalog-groups{position:static}.catalog-groups #catalogGroups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.catalog-group-card{margin:0}}
@media(max-width:650px){.catalog-groups #catalogGroups{grid-template-columns:1fr}.catalog-current{align-items:flex-start;flex-direction:column}.catalog-current-actions{width:100%;justify-content:flex-start}.catalog-work,.catalog-groups{padding:12px}}


/* v0.16.1 Katalogdialog Layout */
.modal-card:has(.catalog-group-form){width:min(820px,94vw);max-height:min(760px,94vh);overflow:hidden}
.modal-card:has(.catalog-group-form) #modalContent{overflow:auto;min-height:0}
.catalog-group-form{padding:22px 24px 20px}
.catalog-group-form .measure-form-grid{gap:17px 18px}
.catalog-group-form .catalog-span2{grid-column:1/-1}
.catalog-group-form label{min-width:0}
.catalog-group-form input,.catalog-group-form select{height:50px;min-height:50px}
.catalog-group-form textarea{min-height:112px;line-height:1.45}
.catalog-group-form .measure-form-actions{margin:22px -24px -20px;padding:16px 24px 18px;background:#fafbfc;border-top:1px solid #e7ecef}
.catalog-group-form .measure-form-actions button{height:48px;min-height:48px;border-radius:8px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.catalog-group-form .measure-form-actions .secondary{border:1px solid #d5dee4;background:#fff;color:#31424f}
.catalog-group-form .measure-form-actions .primary{border:1px solid var(--cyan);background:var(--cyan);color:#fff}
@media(max-width:760px){
 .modal-card:has(.catalog-group-form){width:100%;max-width:none;height:100vh;max-height:100vh;border-radius:0}
 .catalog-group-form{padding:18px 16px}
 .catalog-group-form .measure-form-grid{grid-template-columns:1fr;gap:13px}
 .catalog-group-form .catalog-span2{grid-column:auto}
 .catalog-group-form input,.catalog-group-form select,.catalog-group-form textarea{font-size:16px}
 .catalog-group-form .measure-form-actions{margin:20px -16px -18px;padding:14px 16px 16px;grid-template-columns:1fr 1fr}
}
@media(max-width:460px){.catalog-group-form .measure-form-actions{grid-template-columns:1fr}}
\n\n/* v0.16.2 Sidebar Branding und Dashboard-Status */
.brand{height:112px!important;padding:12px 14px 11px!important;background:var(--nav)!important;border-right:0!important;border-bottom:1px solid #263b4a!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:5px!important;text-align:center!important;color:#fff!important}
.brand img{width:116px!important;height:58px!important;max-width:100%!important;object-fit:contain!important;display:block!important}
.brand div{min-width:0!important;line-height:1.12!important}
.brand strong{display:block!important;color:#fff!important;font-size:15px!important;font-weight:800!important}
.brand small{display:block!important;color:#b9c8d2!important;font-size:11px!important;margin-top:3px!important}
.employee-today-state.employee-state-vacation{background:#fff1dc!important;color:#a96b15!important;border:1px solid #f4d49d!important}
.employee-today-state.employee-state-sick,.employee-today-state.employee-state-unavailable{background:#fdebed!important;color:#b93c46!important;border:1px solid #f3c4c8!important}
.employee-today-state.employee-state-available{background:#e7f5ed!important;color:#287f58!important;border:1px solid #cce8d8!important}
.employee-today-state.employee-state-active{background:#e7f2fb!important;color:#326e9e!important;border:1px solid #cbdff1!important}
@media(max-width:1280px){.brand{height:94px!important;padding:8px!important}.brand img{width:68px!important;height:62px!important}.brand div{display:none!important}}
@media(max-width:650px){.brand{display:none!important}}

/* v0.17.0 Benutzerverwaltung */
.user-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.user-kpis article{background:#fff;border:1px solid var(--line,#dfe6eb);border-radius:10px;padding:16px 18px;display:grid;gap:2px}.user-kpis small{font-weight:700;color:#718092}.user-kpis strong{font-size:26px;color:#17212d}.user-kpis span{font-size:13px;color:#82909d}.user-panel{overflow:hidden}.user-name-cell{display:flex;align-items:center;gap:11px}.user-name-cell div{display:grid;gap:2px}.user-name-cell small{color:#7a8998}.user-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e4f5fa;color:#1685a7;font-weight:800;font-size:12px;flex:0 0 auto}.role-badge,.user-state{display:inline-flex;align-items:center;min-height:27px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.role-admin{background:#e8f2fb;color:#2b6695}.role-meister{background:#e7f6ee;color:#287650}.role-buero{background:#f3f0fb;color:#6c56a3}.user-state.active{background:#e7f6ee;color:#287650}.user-state.inactive{background:#f2f4f6;color:#6d7883}.portal-user-form{padding:22px 26px 24px}.portal-user-form .form-section{padding:0 0 22px}.portal-user-form .form-section+.form-section{border-top:1px solid #e4e9ed;padding-top:20px}.portal-user-form .form-section h3{margin:0 0 5px;font-size:18px}.portal-user-form .form-section>p{margin:0 0 15px;color:#718092;font-size:13px}.portal-user-form .form-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px}.portal-user-form label{display:grid;gap:7px;font-weight:700;color:#344355}.portal-user-form input,.portal-user-form select{width:100%;height:48px;border:1px solid #d5dee5;border-radius:8px;padding:0 13px;background:#fff;font:inherit;box-sizing:border-box}.password-field{position:relative}.password-field input{padding-right:48px}.password-eye{position:absolute;right:4px;top:4px;width:40px;height:40px;border:0;background:transparent;border-radius:7px;cursor:pointer;color:#647485}.password-eye:hover,.password-eye.shown{background:#eef4f7;color:#0aa9d6}.portal-user-form .measure-form-actions{padding-top:18px;border-top:1px solid #e4e9ed;display:flex;justify-content:flex-end;gap:10px}.user-table td:last-child{width:190px}.user-table .row-actions{display:flex;justify-content:flex-end;gap:8px}@media(max-width:900px){.user-kpis{grid-template-columns:1fr}.portal-user-form .form-grid.two{grid-template-columns:1fr}.user-table th:nth-child(3),.user-table td:nth-child(3),.user-table th:nth-child(4),.user-table td:nth-child(4){display:none}}@media(max-width:600px){.portal-user-form{padding:18px}.user-table th:nth-child(2),.user-table td:nth-child(2){display:none}.user-table td:last-child{width:auto}.user-table .row-actions{flex-direction:column}.portal-user-form .measure-form-actions{flex-direction:column-reverse}.portal-user-form .measure-form-actions button{width:100%}}
