/* Co-Vision V1.1.3 – gemeinsame Nutzerleiste für Startseite und Bautomat.
   Baupilot benutzt unverändert seine vorhandenen, funktionalen Header-Steuerelemente. */
@media screen {
.cv-user-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0;color:#eee7d8;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:12px;line-height:1.2;white-space:nowrap}
.cv-user-actions [hidden]{display:none!important}
.cv-user-name{max-width:145px;overflow:hidden;text-overflow:ellipsis;color:#eee7d8;font-weight:650;font-size:13px}
.cv-header-link,.cv-bell,.cv-mobile-actions summary{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;border:1px solid #55534d;border-radius:9px;color:#eee7d8!important;background:transparent!important;text-decoration:none!important;font-family:inherit;font-size:12px!important;font-weight:600!important;line-height:1.2!important;padding:10px 11px!important;min-height:40px;cursor:pointer;box-shadow:none!important}
.cv-header-link:hover,.cv-bell:hover,.cv-mobile-actions summary:hover{border-color:#b79b59;background:#39362d!important;color:#fff!important}
.cv-user-actions button:focus-visible,.cv-user-actions a:focus-visible,.cv-user-actions summary:focus-visible{outline:2px solid #b79b59!important;outline-offset:3px!important}
.cv-bell{width:42px;min-width:42px;height:42px;padding:6px!important;position:relative}
.cv-bell-count{position:absolute;top:-5px;right:-6px;display:grid;place-items:center;border-radius:12px;background:#b79b59;color:#201f1d;font-weight:750;font-size:10px;min-width:19px;height:19px;padding:0 3px}
.cv-mobile-actions{position:relative;display:none}
.cv-mobile-actions summary{list-style:none;font-size:14px!important;min-width:39px;padding:6px 9px!important}
.cv-mobile-actions summary::-webkit-details-marker{display:none}
.cv-menu-panel{position:absolute;z-index:7000;right:0;top:calc(100% + 8px);width:168px;display:grid;gap:3px;background:#292824;padding:7px;border-radius:10px;border:1px solid #554b37;box-shadow:0 12px 28px #0004}
.cv-menu-panel>a,.cv-menu-panel>button{display:block!important;text-align:left!important;border:0!important;border-radius:7px!important;padding:12px 10px!important;margin:0!important;font-size:13px!important;color:#eee7d8!important;background:transparent!important;width:100%!important;cursor:pointer!important;text-decoration:none!important;font-family:inherit!important;font-weight:600!important}
.cv-menu-panel>a:hover,.cv-menu-panel>button:hover{background:#3f3b30!important;color:#fff!important}
/* Baupilot-like header anchored on right, preserving centered Gantt title. */
body>.cv11-gantt-topbar .cv-user-actions{gap:7px}
body>.cv11-gantt-topbar>.cv11-gantt-actions{display:flex!important;justify-content:flex-end;align-items:center;min-width:0!important;white-space:normal!important}
@media(max-width:1150px){
 .cv-user-name{max-width:100px}
 .cv-user-actions{gap:6px}
 .cv-desktop-action{display:none!important}
 .cv-mobile-actions:not([hidden]){display:block!important}
}
@media(max-width:720px){
 .cv-user-name{max-width:72px;font-size:11px}
 .cv-bell{width:38px!important;height:38px!important;min-width:38px}
 .cv-user-actions{gap:5px}
 .workspace>.cv11-topbar{flex-wrap:wrap;justify-content:space-between;gap:6px!important}
 .workspace>.cv11-topbar .cv11-topbar-actions{margin-left:auto;max-width:100%;gap:5px!important}
 body>.cv11-gantt-topbar{padding:12px 14px!important;column-gap:5px!important}
 body>.cv11-gantt-topbar>.cv11-gantt-title{min-width:95px}
 body>.cv11-gantt-topbar>.cv11-gantt-actions{justify-self:end;min-width:0}
}
@media(max-width:450px){
 .cv-user-name{display:none!important}
 .cv-header-link.cv-login-action{font-size:11px!important;padding:9px!important}
 body>.cv11-gantt-topbar h1{font-size:15px!important}
 body>.cv11-gantt-topbar .cv11-gantt-eyebrow{font-size:10px!important}
 .cv-bell{width:36px!important;min-width:36px!important;height:36px!important}
 .cv-mobile-actions summary{min-width:35px!important;min-height:36px!important}
 body>.cv11-gantt-topbar>.covision-go-back{min-width:32px!important;padding:6px 7px!important}
}
}
@media print {.cv-user-actions{display:none!important}}
/* V2.7: plattformweite Dialoge direkt im aktuellen Modul */
.cv-shared-dialog{box-sizing:border-box;border:1px solid #d9d2c4;border-radius:16px;padding:0;background:#fff;color:#292724;width:min(95vw,580px);max-height:min(90vh,800px);box-shadow:0 24px 90px #0005;font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.cv-shared-dialog::backdrop{background:#171714a8}
.cv-shared-dialog [hidden]{display:none!important}
.cv-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:12px;background:#242320;color:#fff;padding:19px 23px}
.cv-dialog-head small{color:#b79b59;letter-spacing:.15em;font-weight:750;font-size:10px}
.cv-dialog-head h2{font-size:21px;margin:5px 0 0;font-weight:650}
.cv-close{border:1px solid #6b6557;border-radius:8px;padding:3px 10px;background:transparent;color:#fff;font-size:23px;cursor:pointer}
.cv-shared-dialog section{padding:22px 24px;max-height:65vh;overflow:auto}
.cv-shared-dialog form{display:grid;gap:14px}
.cv-shared-dialog form label{display:grid;gap:5px;font-size:12px;font-weight:650;color:#645c50}
.cv-shared-dialog form input{box-sizing:border-box;width:100%;border:1px solid #dedbd4;border-radius:9px;padding:12px;background:#fff;color:#292724;font-size:14px;min-height:44px}
.cv-shared-dialog form button,.cv-notify-tools button{border:1px solid #c9bd9f;border-radius:9px;background:#b79b59;color:#fff;padding:10px 13px;cursor:pointer;font:600 13px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.cv-shared-dialog button:disabled{opacity:.5}
.cv-shared-dialog hr{border:0;border-top:1px solid #e9e3d9;margin:24px 0}
.cv-shared-dialog #cv-dialog-message{padding:0 24px 12px;margin:0;min-height:24px;font-size:12px}
.cv-notify-tools{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 14px}
.cv-notify-tools button{background:#fff;border-color:#dedbd4;color:#484338}
.cv-notify-tools button.active{background:#b79b59;color:#fff;border-color:#b79b59}
.cv-notify-tools [data-cv-readall]{margin-left:auto}
.cv-notification-list{display:grid;gap:8px}
.cv-notification-list button{padding:12px 14px;border:1px solid #e8e4dc;border-radius:10px;background:#fff;text-align:left;display:grid;gap:5px;color:#332f29;cursor:pointer;font:inherit}
.cv-notification-list button.unread{border-left:3px solid #b79b59;background:#f9f7f2}
.cv-notification-list button span{font-size:12px;white-space:normal}
.cv-notification-list button small{color:#8a8479;font-size:10px}
.cv-notification-empty{padding:24px;text-align:center;color:#797467}
@media(max-width:600px){.cv-shared-dialog section{padding:17px}.cv-dialog-head{padding:17px}.cv-notify-tools [data-cv-readall]{margin-left:0}}
