/* Manhole surveys inside cdm (23/11/2026). The screens come from employees.aim (mh/manhole.js, light
   design, white chips and dial); this gives them the employees tokens and shell pieces they expect,
   scoped to .mhapp, as a light sheet inside cdm's dark page. Nothing here touches the rest of cdm. */
.mhapp{--aim-brand:#FF8220;--aim-brand-deep:#C25E0E;--n-0:#FFFFFF;--n-25:#FBFAF8;--n-50:#F7F6F3;--n-100:#F0EEEA;--n-200:#E7E4DE;
  --n-300:#D9D5CD;--n-400:#B6B1A8;--n-500:#8C877E;--n-600:#6B665E;--n-700:#4A463F;--n-800:#2A2722;--n-900:#16140F;--r-md:14px;
  --sh-sm:0 1px 3px rgba(28,24,18,.06),0 1px 2px rgba(28,24,18,.04);--sh-lg:0 12px 32px rgba(28,24,18,.10),0 4px 8px rgba(28,24,18,.05);
  background:var(--n-50);color:var(--n-900);border-radius:18px;overflow:hidden;margin:0 0 90px;
  font-family:Ubuntu,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14.5px;line-height:1.45}
.mhapp *{box-sizing:border-box}
.mhapp a{color:inherit}
.mhapp .muted{color:var(--n-500)}
/* employees /me shell pieces the crew screens use */
.mhapp .m-head{background:linear-gradient(150deg,#16140F 0%,#3a2613 55%,var(--aim-brand-deep) 125%);color:#fff;padding:20px 18px 22px;position:relative}
.mhapp .m-head::after{content:"";position:absolute;inset:0;background:radial-gradient(80% 50% at 85% 0%,rgba(255,130,32,.22),transparent 60%);pointer-events:none}
.mhapp .m-head .row{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}
.mhapp .m-head h2{font-size:23px;margin:16px 0 3px;font-weight:800;letter-spacing:-.02em;position:relative;z-index:1;color:#fff}
.mhapp .m-head p{margin:0;color:#d6d0c6;font-size:13.5px;position:relative;z-index:1}
.mhapp .m-body{padding:16px}
.mhapp .m-card{background:var(--n-0);border:1px solid var(--n-200);border-radius:var(--r-md);padding:16px;margin-bottom:13px;box-shadow:var(--sh-sm)}
.mhapp .m-card h3{font-size:14px;margin:0 0 4px;font-weight:700;display:flex;align-items:center;gap:8px;color:var(--n-900)}
/* office shell: a title bar in place of the employees desktop top bar */
.mhapp .mh-otop{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:18px 18px 14px;background:var(--n-0);border-bottom:1px solid var(--n-200)}
.mhapp .mh-otop small{display:block;color:var(--n-500);font-size:12.5px;font-weight:600}
.mhapp .mh-otop h1{margin:2px 0 0;font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--n-900)}
.mhapp .mh-otop .acts{margin-left:auto;display:flex;gap:8px}
.mhapp .mh-obody{padding:16px}
.mhapp .btn{display:inline-flex;align-items:center;gap:6px;border-radius:12px;padding:10px 14px;font-weight:700;font-size:14px;text-decoration:none;border:1px solid var(--n-300);background:var(--n-0);color:var(--n-900)}
.mhapp .btn-primary{background:var(--aim-brand);border-color:var(--aim-brand);color:#fff}
.mhapp .mh-who{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 16px;font-size:12.5px;color:var(--n-600);border-top:1px solid var(--n-200);background:var(--n-0)}
.mhapp .mh-who button{font:inherit;font-weight:700;color:var(--aim-brand-deep);background:none;border:0;padding:6px 0;cursor:pointer}
/* Outdoor contrast (visual review 23/11/2026): the employees greys for hints and labels (#8C877E on the
   light sheet, about 3.3:1) are too pale in daylight. One step darker here, cdm only. */
.mhapp{--n-500:#6B665E;--n-400:#8C877E}
/* The office register and drawing need more than cdm's 780px column; on a phone the sheet goes edge to
   edge, as on employees /me, so the 3D toolbar and the fixed Save / Send bar fit the width. */
.page-manholes{max-width:1240px}
@media (max-width:600px){.page-manholes{padding-left:0;padding-right:0;padding-top:0}.page-manholes .mhapp{border-radius:0}}
/* The sheet fills the screen down to the nav, the who-bar sits at its foot (no dark gap under short pages). */
.mhapp{display:flex;flex-direction:column;min-height:calc(100dvh - 140px)}
.mhapp>.mh-who{margin-top:auto}
/* Register: the job drawing under the table at full width (it was a 360px side column, too small to read). */
.mhapp .mh-proj .body{grid-template-columns:minmax(0,1fr)}
.mhapp .mh-plansvg{min-height:420px;max-height:640px}
/* The survey editor is a full-screen task with its own back button and a fixed Save / Send bar (z 30);
   cdm's bottom nav (z 50) sat on top of that bar and swallowed Send. Hide the nav while the editor is open. */
body:has(.mhapp .mh-ed) .bottomnav{display:none}
@media print{.topbar,.bottomnav,.more-menu,.more-overlay{display:none!important}.mhapp{margin:0;border-radius:0;background:#fff}}
