body.mofa-login { background:#eaf1ef; }
.mofa-login .login-shell { max-width:440px; }
.mofa-login .login-card { border-top:5px solid #18504a; }
.mofa-login .logo-wrap { display:flex; justify-content:center; align-items:center; gap:25px; }
.mofa-login .logo-wrap img { width:100px; height:52px; box-shadow:none; padding:0; }
.mofa-login .btn-login { background:#18504a; box-shadow:none; }
.mofa-login .btn-login:hover { background:#103d39; }
:root { --mofa-ink:#184b46; --mofa-accent:#a4915b; --mofa-border:#cedbd5; --mofa-paper:#f3f6f4; }
@media screen {
body.mofa { --sea:#18504a; --deep:#163e39; --violet:#18504a; background:var(--mofa-paper)!important; }
body.mofa :is(.cm-dashboard-top,.top-bar,.mofa-app-nav) {background:#163e39!important; border-bottom:2px solid var(--mofa-accent)!important;}
body.mofa .mofa-project {display:block; border-color:var(--mofa-border);border-inline-start:4px solid var(--mofa-accent);}
body.mofa .mofa-contractor img {object-fit:contain;}
body.mofa :is(.cm-dashboard-chart-title,.cm-dashboard-section-title,.cm-dashboard-kpi-heading,.cm-dashboard-stat-value,.cm-dashboard-module-title) {color:var(--mofa-ink)!important;}
body.mofa :is(.cm-dashboard-stat,.cm-dashboard-chart-card) {border-block-start:2px solid var(--mofa-accent);}
body.mofa .cm-dashboard-chart-card::before {background:var(--mofa-accent)!important;}
}

@media screen and (max-width:700px) {
    body.mofa .app-main :is(.cm-dashboard-top,.top-bar,.hero):has(:is(.cm-dashboard-top-actions,.top-actions,.hero-actions)) {
        display:flex!important; flex-direction:column!important; align-items:stretch!important;
        gap:6px!important; height:auto!important; padding:8px 10px!important;
    }
    body.mofa .app-main :is(.cm-dashboard-top-actions,.top-actions,.hero-actions,.mofa-app-nav) {
        display:flex!important; flex-wrap:wrap!important; gap:4px!important; width:100%!important;
        max-width:100%!important; min-width:0!important; height:auto!important; justify-content:flex-start!important;
        box-sizing:border-box; position:static!important;
    }
    body.mofa .app-main :is(.cm-dashboard-top-actions,.top-actions,.hero-actions,.mofa-app-nav) :is(a,select,button) {
        min-width:0!important; max-width:100%!important; width:auto!important; height:40px!important;
        min-height:40px!important; padding:4px 8px!important; font-size:13px!important; line-height:1.25!important;
        box-sizing:border-box; flex:0 0 auto!important;
    }
    body.mofa .app-main .cm-dashboard-title {white-space:normal!important; overflow-wrap:anywhere;}
    body.mofa .app-main .chart-filters a {font-size:14px; padding:8px 10px;}
    body.mofa .app-main .work-summary {min-width:0;}
    body.mofa .app-main .work-summary .cm-dashboard-chart-title {flex-wrap:wrap;gap:6px;}
    body.mofa .app-main .work-summary :is(td,th) {padding:6px 3px;font-size:13px;}
    body.mofa .app-main .work-summary th:first-child {width:48%;}
}

#followup-filters .filter-actions:has([name="bulkPrint"]) {
    grid-column:1 / -1;
    display:flex;
    flex-wrap:wrap;
    align-items:stretch;
    gap:8px;
}
#followup-filters .filter-actions:has([name="bulkPrint"]) > :is(button,a) {
    width:auto;
    max-width:100%;
    min-width:0;
    min-height:44px;
    height:auto;
    padding:9px 16px;
    line-height:1.3;
    white-space:normal;
}
@media(max-width:600px) {
    #followup-filters .filter-actions:has([name="bulkPrint"]) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
}
