/* The staff maintenance workspace (/staff/contractors/).
 *
 * These pages share the contractor portal's screens, so they link the shared
 * app shell and /portal/assets/portal.css and keep only what is theirs here:
 * the in-page tab bar and job rows on a phone. Until 2026-09-27 they carried
 * a whole forked copy of the contractor stylesheet (contractor-admin/assets/
 * portal.css), header, buttons and cards included.
 */
@media(max-width:600px){
  #tabBar{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;scrollbar-width:none}
  #tabBar::-webkit-scrollbar{display:none}
  #tabBar button{flex:0 0 auto}
  .wo-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:14px}
  .wo-row>div:first-child{grid-column:1/-1}
  .wo-row>.meta{grid-column:1;grid-row:2}
  .wo-row>.pill{grid-column:2;grid-row:2;align-self:center}
}

/* Inside the Staff CRM (William, 2026-10-18) the CRM draws the header, nav and
   phone dock around this frame, so the page keeps none of the space for them. */
html.nzr-staff-embedded body.nzr-app{padding-bottom:0}

/* William, 2026-10-18: "We want everything styled that way." Inside the CRM
   the maintenance pages take the CRM's own section look, measured off its
   Leasing hub: one white card (16px radius, hairline, soft shadow) headed by
   a 24px Montserrat title and a 12px line, the section tabs on the pale
   green band below it as 6px tabs, and 8px buttons and filters at 44px.
   Values are the CRM's computed ones (staff-workspace.css), not the portal
   pills these pages wear on their own. */
html.nzr-staff-embedded,html.nzr-staff-embedded body.nzr-app{background:transparent!important;background-image:none!important}
html.nzr-staff-embedded body.nzr-app{font-family:Inter,-apple-system,system-ui,sans-serif;color:#111;padding:0!important}
html.nzr-staff-embedded .nzr-main{max-width:none;width:100%;margin:0;padding:0 0 12px!important}
html.nzr-staff-embedded .nzr-main>.wrap{display:flex;flex-direction:column;max-width:none;margin:0;padding:0 0 20px;background:#fff;border:1px solid #E5EBE3;border-radius:16px;box-shadow:0 1px 2px rgba(14,44,32,.05),0 14px 30px -24px rgba(14,44,32,.2);overflow:hidden}
html.nzr-staff-embedded .nzr-main>.wrap>*{margin-left:20px;margin-right:20px}
html.nzr-staff-embedded .nzr-main>.wrap>.page-head{order:-2;margin:0 0 18px;padding:14px 16px;align-items:flex-start;gap:12px;border-bottom:1px solid #E5EBE3}
html.nzr-staff-embedded .nzr-main>.wrap>#maintenanceSections{order:-1;margin:-18px 0 18px;padding:8px 12px;gap:5px;background:#F1F7EF;border-bottom:1px solid #E5EBE3;border-top:0;border-radius:0}
html.nzr-staff-embedded .page-head h1{font:700 24px/1.2 Montserrat,sans-serif;color:#111;margin:0 0 4px;letter-spacing:0}
html.nzr-staff-embedded .page-head p{font-size:12px;line-height:1.45;color:#5A655E;margin:0}
html.nzr-staff-embedded #maintenanceSections a{min-height:44px;display:inline-flex;align-items:center;padding:7px 12px;border:1px solid #E5EBE3;border-radius:6px;background:#fff;color:#5A655E;font:750 11.5px/1.2 Inter,sans-serif;letter-spacing:0;text-transform:none;box-shadow:none}
html.nzr-staff-embedded #maintenanceSections a[aria-current]{background:#123D2A;border-color:#123D2A;color:#fff}
html.nzr-staff-embedded .nzr-btn{min-height:44px;padding:7px 14px;border-radius:8px;font:600 12.5px/1.55 Inter,sans-serif;letter-spacing:0;text-transform:none;box-shadow:none;background:#123D2A;border:1px solid #123D2A;color:#fff}
html.nzr-staff-embedded .nzr-btn--ghost{background:#fff;border-color:#E5EBE3;color:#123D2A}
html.nzr-staff-embedded .nzr-btn--ghost.active,html.nzr-staff-embedded .nzr-btn--ghost[aria-pressed="true"]{background:#123D2A;border-color:#123D2A;color:#fff}
html.nzr-staff-embedded .nzr-btn--danger{background:#fff;border-color:#E9C9C3;color:#8C2F22}
html.nzr-staff-embedded .nzr-btn:disabled{opacity:.55}
html.nzr-staff-embedded .page-head .nzr-btn{flex:none}
html.nzr-staff-embedded #tabBar,html.nzr-staff-embedded #statusFilters{gap:6px!important}
html.nzr-staff-embedded h2,html.nzr-staff-embedded h3{font-family:Montserrat,Inter,sans-serif;color:#123D2A;letter-spacing:0}
html.nzr-staff-embedded .nzr-panel,html.nzr-staff-embedded .card,html.nzr-staff-embedded .stat,html.nzr-staff-embedded .wo-row,html.nzr-staff-embedded .ops-section,html.nzr-staff-embedded .crd,html.nzr-staff-embedded .chat-shell{border-radius:10px;border-color:#E5EBE3;box-shadow:none}
html.nzr-staff-embedded .nzr-panel[style*="sage-50"]{background:#F1F7EF!important}
html.nzr-staff-embedded .empty{border-radius:10px;border:1px dashed #E5EBE3;padding:20px 16px;font-size:12px}
html.nzr-staff-embedded .empty h3{font-size:14px;color:#111;margin-bottom:4px}
html.nzr-staff-embedded .stat{padding:12px 14px}
html.nzr-staff-embedded .stat .n{font-size:22px}
html.nzr-staff-embedded .stat .l{font-size:10.5px}
html.nzr-staff-embedded input:not([type=checkbox]):not([type=radio]),html.nzr-staff-embedded select,html.nzr-staff-embedded textarea{border-radius:8px;border-color:#E5EBE3;box-shadow:none;font-family:Inter,sans-serif}
html.nzr-staff-embedded .modal{border-radius:16px;box-shadow:0 1px 2px rgba(14,44,32,.05),0 24px 60px -30px rgba(14,44,32,.35)}
html.nzr-staff-embedded .modal h2{font-size:20px}
html.nzr-staff-embedded .toast{border-radius:8px;font-family:Inter,sans-serif}
@media(max-width:700px){
  html.nzr-staff-embedded .nzr-main>.wrap>*{margin-left:12px;margin-right:12px}
  html.nzr-staff-embedded .nzr-main>.wrap>.page-head{padding:12px;margin:0 0 12px}
  html.nzr-staff-embedded .nzr-main>.wrap>#maintenanceSections{margin:-12px 0 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  html.nzr-staff-embedded #maintenanceSections a{justify-content:center;padding:7px 11px;min-width:0}
  html.nzr-staff-embedded #tabBar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;padding-bottom:0}
  html.nzr-staff-embedded #tabBar button{min-width:0;padding:7px 8px;white-space:normal;line-height:1.25;justify-content:center;text-align:center}
}
