/* Mein Arbeitstag and project status use the existing CRM palette and logo. */
.workday-page,.project-status{--wd-blue:#1764ab;--wd-ink:#14253e;--wd-border:#cfdfed;color:var(--wd-ink);min-width:0}
.workday-page{max-width:1600px;margin:auto}.wd-toolbar,.wd-segments,.wd-project-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wd-toolbar{margin:0 0 20px}.wd-toolbar>.subtle{font-size:13px}.wd-segments{gap:0}.wd-segments button{border-radius:0;min-height:40px}.wd-segments button:first-child{border-radius:7px 0 0 7px}.wd-segments button:last-child{border-radius:0 7px 7px 0}.wd-segments button[aria-pressed=true]{background:var(--wd-blue);color:white;border-color:var(--wd-blue)}
.wd-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.wd-kpi{display:flex;align-items:center;gap:18px;padding:20px;text-decoration:none;color:inherit;min-width:0;text-align:left;border-left:4px solid #2986ce}.wd-kpi.green{border-left-color:#4c9b42}.wd-kpi.amber{border-left-color:#e6a22d}.wd-kpi.red{border-left-color:#c34343}.wd-kpi svg,.wd-row-icon svg,.wd-inbox>svg{width:30px;height:30px;flex:0 0 30px;color:var(--wd-blue)}.wd-kpi strong{font-size:28px;display:block;line-height:1.2}.wd-kpi span{display:block;font-size:14px;margin-top:5px}.wd-kpi:hover{border-color:var(--wd-blue);box-shadow:0 2px 8px #17446b16}
.wd-columns{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;margin-bottom:20px}.wd-card{padding:20px;margin-bottom:20px;min-width:0}.wd-columns>.wd-card{margin-bottom:0}.wd-card h2,.wd-project-heading h2{font-size:20px;margin:0 0 16px}.wd-card .section-title h2{margin:0}.wd-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #e0eaf3;min-width:0}.wd-row:last-child{border-bottom:0}.wd-copy{flex:1;min-width:0}.wd-copy strong{font-size:15px}.wd-copy p{margin:4px 0;font-size:14px}.wd-copy small,.wd-card td small{display:block;margin-top:5px;color:#526b85;font-size:13px}.wd-copy a{color:var(--wd-ink);text-decoration:none}.wd-copy a:hover{text-decoration:underline}.wd-row-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.wd-row-icon{padding:10px;background:#edf5fc;border-radius:8px}.wd-scroll{max-height:430px;overflow:auto;scroll-margin-top:90px}.wd-row .button,.wd-row button{white-space:nowrap}.wd-count{font-size:13px;border-radius:16px;padding:3px 8px;background:#e4eff9}.wd-badge{display:inline-flex;align-items:center;max-width:100%;padding:5px 9px;border-radius:6px;background:#e0edfb;color:#17548a;font-size:12px;font-weight:600;line-height:1.3;white-space:normal}.wd-badge.ok{background:#e3f3e0;color:#28622e}.wd-badge.warn{background:#fff0d1;color:#86551a}.wd-badge.bad{background:#fde6e6;color:#a82e2e}.wd-badge.muted{background:#edf0f4;color:#536176}.wd-empty{color:#5b7189;font-size:14px;padding:14px 0}.wd-inbox{display:flex;align-items:center;gap:18px;padding:18px 20px;margin-bottom:20px;min-width:0}.wd-inbox>span{flex:1;font-size:14px;color:#526b85}.wd-inbox .primary{margin-left:auto}.project-status{margin-bottom:24px}.wd-project-heading{margin:16px 0}.wd-project-heading h2{margin:0}.wd-project-heading>span:last-child{margin-left:auto;font-size:14px}.ps-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:20px}.ps-step{padding:16px 12px;border-left:3px solid #b6c0ce;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}.ps-step.ok{border-left-color:#469544}.ps-step.warn{border-left-color:#e6a22d}.ps-step.blue{border-left-color:var(--wd-blue)}.ps-step strong{font-size:15px}.ps-step .text-button{font-size:12px}.ps-notice{background:#fff5e1;border:1px solid #efcf8a;padding:14px 18px;border-radius:8px;margin-bottom:20px;font-weight:600}.ps-notice small{display:block;font-weight:400;margin-top:5px}.project-status .wd-card .owl-action-menu>div{min-width:190px}.workday-page .table-scroll{max-width:100%}.workday-page td{vertical-align:middle}
@media(max-width:1100px){.wd-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.wd-columns{grid-template-columns:1fr}.ps-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.wd-row-actions{max-width:180px}}
@media(max-width:600px){.wd-card{padding:15px}.wd-kpis{gap:10px}.wd-kpi{padding:14px 10px;gap:10px}.wd-kpi strong{font-size:24px}.wd-kpi svg{width:24px;height:24px;flex-basis:24px}.wd-kpi span{font-size:12px}.wd-row{flex-wrap:wrap;gap:9px}.wd-row-icon{display:none}.wd-row-actions{max-width:none;width:100%;justify-content:flex-start}.wd-copy{min-width:150px}.wd-inbox{flex-wrap:wrap;gap:12px}.wd-inbox>span{flex-basis:100%}.wd-inbox .button,.wd-inbox button{width:100%;margin:0}.ps-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.ps-step{padding:13px 10px}.wd-project-heading>span:last-child{margin-left:0;flex-basis:100%}.wd-toolbar button,.wd-row button,.wd-row .button,.project-status button,.project-status .button,.project-status summary{min-height:44px}.workday-page .page-heading{align-items:flex-start;gap:12px}.workday-page .page-heading h1{font-size:28px}.wd-card .section-title{flex-wrap:wrap}.wd-scroll{max-height:550px}}
#application .wd-segments button[aria-pressed=true]{background:#1764ab;color:#fff;border-color:#1764ab}
#application .wd-kpi{display:flex;align-items:center;justify-content:flex-start;text-align:left;height:auto;min-height:88px}
#application .wd-kpi strong{font-size:28px;line-height:1.2}
#application .wd-card{padding:20px}.owl-customer-overview .project-status{order:-1}
@media(max-width:600px){#application .wd-kpi{padding:14px 10px;min-height:88px}#application .wd-kpi strong{font-size:24px}#application .wd-card{padding:15px}}

/* Keep action menus inside scrollable day lists, including the final row. */
.workday-page .wd-action-menu>summary:hover{background:#edf5fd;border-color:#1764ab}
.workday-page .wd-action-menu>summary:active{transform:translateY(1px);background:#dbeafa}
.workday-page .wd-action-menu>summary:focus-visible{outline:3px solid #80b5e6;outline-offset:2px}
.workday-page .wd-action-menu[open]>summary{background:#e5f0fb;border-color:#1764ab}
.workday-page .wd-action-menu>div{position:static;margin-top:7px;min-width:0;width:250px;max-width:100%;box-sizing:border-box}
.workday-page .wd-action-menu>div>:is(a,button){display:flex;align-items:center;min-height:42px;padding:9px 12px;text-align:left;text-decoration:none;background:#fff;border:0;border-radius:5px;color:#183b5c;white-space:normal;width:100%;box-sizing:border-box}
.workday-page .wd-action-menu>div>:is(a,button):hover{background:#edf5fd}
.workday-page .wd-row:has(.wd-action-menu[open]){align-items:flex-start;flex-wrap:wrap}
.workday-page .wd-row:has(.wd-action-menu[open])>.wd-row-actions{flex-basis:100%}
@media(max-width:600px){.workday-page .wd-row-actions{flex-wrap:wrap}.workday-page .wd-row:has(>.wd-action-menu[open])>.wd-action-menu{flex-basis:100%}.workday-page .wd-action-menu[open]>summary{width:max-content;margin-left:auto}.workday-page .wd-action-menu>div{margin-left:auto}}

.workday-page .wd-row-actions{align-items:flex-start}
