/* McXpert Core 6.0.58 – desktop-first portal management layout.
 * Based on stable Core 6.0.54. No Glass layer.
 * Crucial: Existing smartphone navigation and control cards remain untouched.
 */
@media (min-width: 900px) {
/* 1) Give navigation equal widths, clear card edges and consistent row rhythm. */
.mcxp-app nav.mcxp-tabs-grid-6058{
 display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
 align-items:stretch;gap:7px;margin:0 0 14px;padding:0 0 14px;
 border:0;border-bottom:1px solid #dce3eb;overflow:visible;
}
.mcxp-app nav.mcxp-tabs-grid-6058>a{
 display:flex;align-items:center;justify-content:center;text-align:center;
 min-width:0;min-height:42px;max-width:100%;padding:7px 9px;
 font-size:12px;font-weight:750;line-height:1.24;hyphens:auto;
 white-space:normal;overflow-wrap:break-word;
 border:1px solid #dce4ec;border-bottom:2px solid #dce4ec;border-radius:9px;
 background:#fff;color:#36526c;box-shadow:0 1px 3px rgba(23,48,79,.025);
 text-decoration:none;
}
.mcxp-app nav.mcxp-tabs-grid-6058>a:hover{background:#f4f8fd;border-color:#b9cadc;text-decoration:none}
.mcxp-app nav.mcxp-tabs-grid-6058>a[aria-current="page"]{
 background:#fff6e7;border:1px solid #dda751;border-bottom:3px solid #df9216;
 color:#183858;box-shadow:0 2px 5px rgba(166,104,8,.075)
}
.mcxp-app nav.mcxp-tabs-grid-6058>a:focus-visible{outline:3px solid #2574ba;outline-offset:2px}

/* 2) Two equal preview cards, plus a thin full-width site filter below. */
.mcxp-app .mcxp-control-deck-6058{margin:0 0 13px;padding:0;border:0;background:transparent;box-shadow:none;min-width:0}
.mcxp-app .mcxp-control-deck-6058>.mcxp-central-settings-summary{display:none}
.mcxp-app .mcxp-control-deck-6058 .mcxp-control-grid-6058{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px;align-items:stretch;padding:0;border:0;min-width:0;
}
.mcxp-app .mcxp-control-deck-6058 .mcxp-control-grid-6058>.mcxp-card{
 min-width:0;margin:0!important;padding:13px 15px!important;
 border:1px solid #dce4ed;border-left:3px solid #dc9b2a;border-radius:10px;
 background:#fff;box-shadow:0 2px 8px rgba(17,45,70,.035)
}
.mcxp-app .mcxp-control-grid-6058>.mcxp-owner-perspective,
.mcxp-app .mcxp-control-grid-6058>.mcxp-site-preview-selector{
 display:flex;flex-direction:column;min-height:0;
}
.mcxp-app .mcxp-control-grid-6058>.mcxp-card h2{
 color:#17344f!important;font-size:15px!important;line-height:1.3!important;
 margin:0 0 4px!important;font-weight:800!important;
}
.mcxp-app .mcxp-control-grid-6058>.mcxp-card p{
 font-size:12px!important;line-height:1.32!important;margin:0 0 9px!important;color:#62748a;
}
.mcxp-app .mcxp-control-grid-6058>.mcxp-card form:not(.mcxp-site-filter){
 display:flex;align-items:flex-end;flex-wrap:nowrap;gap:8px;margin:auto 0 0;min-width:0;
}
/* Form labels are still available for screenreaders and keyboard navigation. */
.mcxp-app .mcxp-control-grid-6058 .mcxp-owner-preview-form>label,
.mcxp-app .mcxp-control-grid-6058 .mcxp-site-preview-form>label{
 position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;
 clip:rect(0,0,0,0)!important;white-space:nowrap!important;
 clip-path:inset(50%)!important;margin:0!important;padding:0!important;border:0!important;
}
.mcxp-app .mcxp-control-grid-6058 .mcxp-owner-preview-form .mcxp-select-wrap,
.mcxp-app .mcxp-control-grid-6058 .mcxp-site-preview-form .mcxp-select-wrap{
 flex:1 1 auto;min-width:0;max-width:none;
}
.mcxp-app .mcxp-control-grid-6058 .mcxp-card select{min-height:42px;height:42px;padding:7px 31px 7px 10px;font-size:12px;border-width:1px}
.mcxp-app .mcxp-control-grid-6058 .mcxp-select-wrap::after{width:8px;height:8px;right:15px;top:calc(50% - 5px);border-width:2px}
.mcxp-app .mcxp-control-grid-6058 .mcxp-card button[type="submit"]{
 min-width:0;min-height:42px;height:42px;flex:0 0 auto;margin:0!important;
 padding:7px 11px!important;font-size:12px!important;white-space:nowrap;border-radius:7px!important;
}
.mcxp-app .mcxp-control-grid-6058>.mcxp-site-filter{
 grid-column:1/-1;display:flex;flex-wrap:nowrap;align-items:center;gap:10px;
 min-height:62px;padding:10px 14px!important;
}
.mcxp-app .mcxp-control-grid-6058>.mcxp-site-filter .mcxp-site-filter-label{
 flex:0 0 auto;min-width:0;width:auto;max-width:240px;gap:0;
}
.mcxp-app .mcxp-control-grid-6058>.mcxp-site-filter .mcxp-site-filter-label label{
 margin:0!important;font-size:13px!important;line-height:1.2;
}
.mcxp-app .mcxp-control-grid-6058>.mcxp-site-filter .mcxp-site-filter-label span{
 font-size:11px;line-height:1.3;
}
.mcxp-app .mcxp-control-grid-6058>.mcxp-site-filter .mcxp-select-wrap{
 flex:1 1 auto;min-width:0;max-width:520px;
}
.mcxp-app .mcxp-control-grid-6058>.mcxp-site-filter .mcxp-filter-submit{
 flex:0 0 auto;min-height:42px;height:42px;margin:0!important;padding:7px 14px!important;
}
.mcxp-app .mcxp-manager-settings-6058 .mcxp-control-grid-6058{grid-template-columns:1fr}
.mcxp-app .mcxp-manager-settings-6058 .mcxp-control-grid-6058>.mcxp-site-preview-selector{grid-column:1/-1}


/* Clear compact cards for the two intake items, desktop only. */
.mcxp-app .mcxp-my-tasks-priority{padding:20px 23px;overflow:visible}
.mcxp-app .mcxp-my-tasks-priority>.mcxp-priority-task-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:9px 0;padding:13px 16px;border:1px solid #d8e4f1;border-radius:11px;background:#fff;box-shadow:0 3px 9px rgba(24,56,100,.035)}
.mcxp-app .mcxp-my-tasks-priority>.mcxp-priority-task-row>div{min-width:0;flex:1 1 auto}
.mcxp-app .mcxp-my-tasks-priority>.mcxp-priority-task-row .mcxp-button{flex:0 0 auto;margin:0!important}
/* Desktop fixed footer, with unobstructed content below. */
body.mcxp-portal-body .mcxp-app>.mcxp-footer{position:fixed!important;inset:auto 0 0 0!important;width:100%;z-index:58;margin:0!important;padding:9px 0;border-top:1px solid #dce5ed;background:rgba(255,255,255,.97);box-shadow:0 -5px 16px rgba(24,42,61,.065)}
body.mcxp-portal-body .mcxp-app>.mcxp-footer>.mcxp-container{align-items:center;column-gap:18px;row-gap:4px}
body.mcxp-portal-body .mcxp-app>.mcxp-main{padding-bottom:calc(var(--mcxp-fixed-footer-h,84px) + 26px)!important}
body.mcxp-portal-body .mcxp-app{padding-bottom:var(--mcxp-fixed-footer-h,84px)}
}

/* Only mobile intervention: the already documented case-header collision when
 * "Einfach / Profi" appears after a new case. Navigation/card layout is unchanged. */
@media (max-width: 820px) {
body.mcxp-has-top-mode .mcxp-app .mcxp-top-inner{display:flex!important;flex-wrap:wrap!important;justify-content:space-between;align-items:center;gap:0 8px!important;height:auto;padding-block:7px 9px}
body.mcxp-has-top-mode .mcxp-app .mcxp-top-inner>.mcxp-brand{order:0;flex:0 1 auto!important;min-width:0;max-width:calc(100% - 128px)}
body.mcxp-has-top-mode .mcxp-app .mcxp-top-inner>.mcxp-top-actions{order:1;margin-left:auto!important;flex:0 0 auto!important;gap:5px}
body.mcxp-has-top-mode .mcxp-app .mcxp-top-inner>.mcxp-top-mode:not([hidden]){order:2;flex:0 0 100%!important;display:flex!important;justify-content:center!important;align-items:center!important;width:100%;max-width:100%;min-width:0;margin:8px 0 0!important;padding:8px 0 0!important;border-top:1px solid #dce5ed}
body.mcxp-has-top-mode .mcxp-app .mcxp-top-mode .mcxp-ga-mode448-buttons{display:flex!important;flex:0 1 242px!important;width:min(242px,100%)!important;max-width:100%;height:42px;min-width:0;padding:3px;gap:3px}
body.mcxp-has-top-mode .mcxp-app .mcxp-top-mode .mcxp-ga-mode448-buttons button{flex:1 1 0!important;min-width:0!important;max-width:100%;min-height:34px;padding:0 10px!important;font-size:13px!important;white-space:nowrap}
body.mcxp-has-top-mode #mcxp-gutachten-aufnahme [data-ga-pane]{scroll-margin-top:150px!important}
}
@media(max-width:430px){
body.mcxp-has-top-mode .mcxp-app .mcxp-top-inner>.mcxp-brand img{width:clamp(68px,23vw,94px)!important;height:auto}
body.mcxp-has-top-mode .mcxp-app .mcxp-top-inner>.mcxp-brand>span{display:none!important}
body.mcxp-has-top-mode .mcxp-app .mcxp-top-actions{gap:4px!important}
body.mcxp-has-top-mode .mcxp-app .mcxp-top-actions .mcxp-header-icon,
body.mcxp-has-top-mode .mcxp-app .mcxp-top-actions .mcxp-team-bell.mcxp-header-icon,
body.mcxp-has-top-mode .mcxp-app .mcxp-top-actions .mcxp-refresh-button.mcxp-header-icon{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;flex:0 0 38px!important}
body.mcxp-has-top-mode .mcxp-app .mcxp-top-actions .mcxp-team-bar{flex:0 0 38px!important}
}
@media print {body.mcxp-portal-body .mcxp-app>.mcxp-footer{position:static!important}body.mcxp-portal-body .mcxp-app>.mcxp-main{padding-bottom:25px!important}body.mcxp-portal-body .mcxp-app{padding-bottom:0!important}}
