body.mef-back-office-page { margin:0; }
/* Operational layout, scoped to the private MEF application. */
.mef-bo-shell { --mef-sidebar-w:224px; --ops-border:#dce2e9; --ops-muted:#536277; font-size:14px; }
.mef-bo-shell [hidden] { display:none!important; }
.mef-bo-main { padding:28px 32px 48px; }
.mef-bo-main h1 { font-size:28px; letter-spacing:-.6px; line-height:1.2; }
.mef-bo-main h2 { font-size:18px; line-height:1.35; }
.mef-bo-main p,.mef-bo-help,.mef-bo-muted { color:var(--ops-muted); line-height:1.55; }
.mef-bo-panel { border:1px solid var(--ops-border); border-radius:10px; box-shadow:none; padding:22px; }
.mef-bo-main .mef-bo-pagehead { margin-bottom:22px; gap:16px; }
.mef-bo-main .mef-bo-btn { min-height:40px; border-radius:6px; font-size:13px; font-weight:600; padding:10px 15px; box-shadow:none; }
.mef-bo-main .mef-bo-btn.secondary { background:#fff; color:#19324d; border-color:#c9d2de; }
.mef-bo-main input,.mef-bo-main select,.mef-bo-main textarea { border-radius:6px; font-size:14px; }
.mef-bo-main small { font-size:12px; line-height:1.5; }
.mef-bo-sidebar { width:var(--mef-sidebar-w); }
.mef-bo-sidebar-inner { padding:22px 12px; }
.mef-ops-home,.mef-ops-nav-group summary { display:flex; align-items:center; gap:10px; padding:13px 12px; border-radius:7px; color:#1b2c43; font-weight:650; font-size:14px; cursor:pointer; }
.mef-ops-nav-group { margin:6px 0; border:0; }
.mef-ops-nav-group summary { list-style:none; }
.mef-ops-nav-group summary::-webkit-details-marker { display:none; }
.mef-ops-nav-group summary::after { content:'›'; margin-left:auto; font-size:20px; line-height:1; }
.mef-ops-nav-group[open] summary::after { transform:rotate(90deg); }
.mef-ops-nav-group[open] summary { color:#092341; background:#edf1f6; }
.mef-ops-nav-links { border-left:1px solid #dce2e9; margin:8px 0 14px 14px; padding-left:5px; }
.mef-bo-sidebar .mef-ops-nav-links a { padding:10px 11px; font-size:12px; line-height:1.4; border:0; border-radius:5px; }
.mef-bo-sidebar .mef-ops-nav-links .dashicons { font-size:16px; color:#6b7b8d; }
.mef-bo-sidebar a[aria-current="page"] { background:#eaf0f6; color:#102c4d; border-left:3px solid #b89037; }
.mef-bo-top-create { display:none!important; } /* Creation belongs to each workspace. */
.mef-bo-topbar .mef-bo-install-app { font-size:11px; padding:7px 9px; background:transparent; }
.mef-bo-topbar { box-shadow:none; }
.mef-bo-next-ref { font-size:12px; padding:10px 14px; box-shadow:none; }
.mef-bo-dashboard-grid { align-items:start; }
.mef-bo-workflow-kpis { gap:10px; }
.mef-bo-workflow-kpi { border-radius:8px; box-shadow:none; }
.mef-bo-attention-list a { padding:13px 0; border-bottom:1px solid #edf0f4; }
.mef-bo-attention-list a:last-child { border-bottom:0; }
.mef-bo-kpis { display:flex!important; flex-wrap:wrap; gap:0; border:1px solid var(--ops-border); background:#fff; border-radius:8px; margin-bottom:18px; }
.mef-bo-kpis .mef-bo-kpi { flex:1 1 130px; display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; min-height:0; margin:0; border:0; border-right:1px solid #e8ecf1; background:transparent; border-radius:0; box-shadow:none; }
.mef-bo-kpis .mef-bo-kpi strong { font-size:20px; }
.mef-bo-kpis .mef-bo-kpi span { font-size:12px; }
.mef-ops-tabs,.mef-ops-queues { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid #cfd8e4; margin:18px 0; padding:0; }
.mef-ops-tabs button,.mef-ops-queues a { background:transparent; border:0; border-bottom:3px solid transparent; border-radius:0; padding:12px 14px; color:#536277; font-size:13px;font-weight:600;line-height:1.3; cursor:pointer; text-decoration:none; }
.mef-ops-tabs button[aria-selected="true"],.mef-ops-queues a[aria-current="page"] { border-bottom-color:#aa8230; color:#092341; background:#f2f5f9; }
.mef-ops-show-all { background:transparent; border:0; color:#52657b; text-decoration:underline; font-size:12px; padding:0 0 14px; cursor:pointer; }
.mef-ops-tabbed .mef-bo-record-grid { display:block; }
.mef-ops-tabbed .mef-bo-record-grid > section { margin-bottom:18px; }
.mef-ops-tabbed [role="tabpanel"] { scroll-margin-top:145px; }
.mef-ops-create { margin:12px 0 18px; padding:0; }
.mef-ops-create > summary { padding:14px 20px; cursor:pointer; font-weight:650; color:#19324d; font-size:14px; }
.mef-ops-create[open] { padding:0 20px 20px; }
.mef-ops-create[open] > summary { margin:0 -20px 18px; border-bottom:1px solid #e3e8ef; }
.mef-ops-create[open] > .mef-bo-panel-head h2 { display:none; }
.mef-bo-table { font-size:13px; }
.mef-bo-table th { font-size:11px; padding:13px 10px; letter-spacing:.03em; }
.mef-bo-table td { padding:13px 10px; line-height:1.5; vertical-align:top; }
.mef-bo-table tr:hover td { background:#f8fafc; }
.mef-ops-directory-list { padding:0; }
.mef-ops-contacts { table-layout:fixed; width:100%; min-width:760px!important; }
.mef-ops-contacts .mef-ops-select { width:48px; }
.mef-ops-contacts td { overflow-wrap:anywhere; }
.mef-ops-contacts th:last-child { width:96px; }
.mef-ops-contacts td:last-child { position:sticky; right:0; background:white; box-shadow:-1px 0 #e5eaf0; }
.mef-ops-row-actions > a { display:block; margin-bottom:5px; }
.mef-ops-row-actions summary { cursor:pointer; font-size:12px; color:#536277; }
.mef-ops-row-actions details div { display:grid; gap:10px; margin-top:10px; }
.mef-ops-row-actions details a { color:#19324d; text-decoration:underline; font-size:12px; }
.mef-ops-row-actions details[open] { min-width:100%; }
.mef-ops-row-actions details small { font-size:10px; }
.mef-bo-main .mef-directory-audit { font-size:11px; font-weight:550; }
.mef-ops-contact-editor .mef-bo-actions { position:sticky; bottom:0; background:#fff; border-top:1px solid #dce2e9; margin-top:20px; padding:14px 0; z-index:4; }
.mef-people-actionbar { border-radius:8px; padding:12px 16px; box-shadow:0 2px 6px #1028440a; }
.mef-people-actionbar button { min-height:38px; }
.mef-people-actionbar [data-mef-edit-status] { font-size:12px; }
.mef-ops-send-state { padding:12px 14px; background:#f0f4f8; border-radius:6px; color:#173453!important; }
.mef-bo-shell :is(button,a,input,select,textarea,summary):focus-visible { outline:3px solid #3878b8; outline-offset:3px; }
.mef-bo-shell .mef-ops-tabs button { font-family:inherit; }
@media (max-width:1100px) {
 .mef-bo-main { padding:24px; }
 .mef-bo-shell { --mef-sidebar-w:210px; }
 .mef-bo-dashboard-grid { grid-template-columns:1fr; }
 .mef-ops-tabs button { padding:11px 10px; }
}
@media (max-width:760px) {
 .mef-bo-main { padding:18px 14px 32px; }
 .mef-bo-main h1 { font-size:24px; }
 .mef-bo-panel { padding:16px; }
 .mef-ops-directory-list,.mef-ops-create { padding:0; }
 .mef-ops-create[open] { padding:0 16px 16px; }
 .mef-ops-create[open]>summary { margin:0 -16px 14px; }
 .mef-bo-next-ref { display:none; }
 .mef-bo-kpis .mef-bo-kpi { padding:12px; flex-basis:100px; }

 .mef-ops-tabs { gap:0; }
 .mef-ops-tabs button { flex:1 1 auto; font-size:12px; padding:12px 8px; }
 .mef-bo-topbar .mef-bo-install-app { display:none; }
 .mef-people-actionbar { position:static; flex-wrap:wrap; }
}
@media print {
 .mef-ops-tabs,.mef-ops-show-all { display:none!important; }
 .mef-ops-tabbed [role="tabpanel"][hidden] { display:block!important; }
}

.mef-ops-tabbed form[data-mef-people-editor] > .mef-bo-actions { display:none; }
@media (max-width:820px) { .mef-bo-sidebar { width:min(84vw,290px); } }

/* Sent correspondence: completed work is archived, optional tracking stays visible. */
.mef-sent-record { max-width:1040px; margin:0 auto; }
.mef-sent-record .mef-bo-panel { margin-bottom:18px; }
.mef-sent-summary h3 { margin:0 0 16px; font-size:17px; line-height:1.45; }
.mef-sent-record .mef-bo-dl dd { overflow-wrap:anywhere; }
.mef-sent-record .mef-bo-actions { flex-wrap:wrap; }
.mef-sent-details { border-top:1px solid var(--ops-border); margin-top:20px; padding-top:14px; }
.mef-sent-archive > summary,.mef-sent-details > summary { cursor:pointer; font-weight:650; color:#19324d; }
.mef-sent-archive[open] > summary,.mef-sent-details[open] > summary { margin-bottom:18px; }
.mef-sent-record h2 small { font-size:12px; font-weight:400; color:var(--ops-muted); margin-left:6px; }
.mef-sent-record .mef-bo-doc { justify-content:space-between; gap:12px; }
@media(max-width:760px) { .mef-sent-record .mef-bo-dl { display:block; } .mef-sent-record .mef-bo-pagehead { align-items:flex-start; } }

/* 0.3.11: one preparation form and one review/send workspace. */
.mef-simple-flow{display:flex;gap:12px;flex-wrap:wrap;padding:12px 0 18px;margin:0 0 18px;border-bottom:1px solid var(--ops-border);color:var(--ops-muted);font-size:13px}
.mef-simple-flow>*{padding:9px 14px;border-radius:6px}
.mef-simple-flow [aria-current]{background:#eaf0f6;color:#102c4d;border-left:3px solid #b89037}
.mef-compose{max-width:1040px;margin:0 auto}
.mef-compose .mef-bo-wizard-step{display:block;margin-bottom:18px}
.mef-compose .mef-bo-wizard-actions{position:sticky;bottom:0;z-index:6;background:#fff;border:1px solid var(--ops-border);padding:14px 18px;border-radius:8px;box-shadow:0 -4px 16px #1028440b}
.mef-compose .mef-bo-more-options{margin:16px 0;padding:14px 18px;border:1px solid var(--ops-border);border-radius:8px;background:#fff}
.mef-compose .mef-bo-more-options summary,.mef-simple-more>summary{cursor:pointer;font-weight:650;color:#19324d}
.mef-compose .mef-bo-more-options[open]>summary{margin-bottom:16px}
.mef-compose .mef-bo-signatory-control{border:0!important;padding:0!important;margin:0!important}
.mef-compose-tracking{margin-bottom:18px}
.mef-simple-record{max-width:1200px}
.mef-simple-record>.mef-bo-panel{margin-bottom:18px}
.mef-simple-record>.mef-bo-record-grid:empty{display:none}
.mef-simple-record .mef-bo-issue-number{display:none}
.mef-simple-record .mef-bo-issue-step{grid-template-columns:minmax(0,1fr) auto}
.mef-simple-more>section{margin:18px 0 0;padding:18px;border-color:#e7ecf2}
.mef-email-preview[readonly]{background:#f7f9fb;border-color:#e2e7ee;cursor:default}
.mef-simple-record :is(section,details),#mef-cover-email-editor{scroll-margin-top:100px}
@media(max-width:820px){.mef-simple-flow{gap:2px;font-size:12px}.mef-simple-flow>*{padding:8px}.mef-compose .mef-bo-wizard-actions{flex-wrap:wrap;gap:8px}.mef-simple-record .mef-bo-issue-step{grid-template-columns:1fr}.mef-simple-more>section{padding:12px}.mef-compose .mef-bo-grid.three{grid-template-columns:1fr}}

/* Outreach filters and mobile editing controls. */
.mef-bo-filters { flex-wrap:wrap; }
.mef-bo-filters label { display:grid;gap:5px;min-width:160px;max-width:100%; }
.mef-ops-quickviews { line-height:2; }
@media(max-width:820px) {
 .mef-bo-main input,.mef-bo-main select,.mef-bo-main textarea { font-size:16px;max-width:100%;box-sizing:border-box; }
 .mef-bo-main .mef-bo-btn,.mef-ops-tabs button,.mef-ops-queues a { min-height:44px; }
 .mef-bo-filters label { width:100%; }
}
