/* The customer portal's own parts, in the website's look (tritech.css, from the look kit):
   the header's CUSTOMER PORTAL, the shorter hero, the Projects / Work Orders switch, the All / Open /
   Completed / Cancelled buttons, the drop-down that picks the record shown, the card's other details,
   and the notes. Loaded after tritech.css. No inline styles anywhere: the security policy forbids them. */
[hidden] { display: none !important; }

/* The header: the logo, CUSTOMER PORTAL where the website's menu is -- the same lettering and size as the
   section titles ("WORK ORDERS") -- and the button (Sign Out, or Request a Proposal on the sign-in pages).
   No Menu button: there is no menu. Where there is no room for it (signed in, below 861 px; any phone),
   the label is left out: the black bar above the header already says Customer Portal. */
.nav--portal ul { gap: 0; }
.nav__label { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; line-height: 1; }
@media (max-width: 1080px) {
  .nav.nav--portal { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .nav--portal ul { flex-direction: row; padding: 0; }
  .nav--portal li { border-bottom: 0; }
}
@media (max-width: 860px) {
  .header-cta:not([data-signout]) { display: none; }   /* Request a Proposal: the website's contact page */
  body[data-page=projects] .nav--portal, body[data-page=work-orders] .nav--portal, body[data-page=new-work-order] .nav--portal { display: none; }
}
@media (max-width: 560px) {
  .header-cta[data-signout] { display: inline-flex; padding: 11px 14px; font-size: 11px; letter-spacing: .14em; }
  .nav.nav--portal { display: none; }
}

/* A thin hero: without the website's licence line, only as tall as what is in it, with as little room
   above and below as looks right (Jamie, 2026-11-06). */
.hero--sub { min-height: 0; }
.hero--sub .hero__inner { padding-top: clamp(12px, 1.3vw, 18px); padding-bottom: clamp(14px, 1.5vw, 20px); }
.hero--sub .hero__content::before { margin-bottom: 8px; }
.hero--sub .crumbs { margin-bottom: 6px; }
.hero--sub h1 { font-size: clamp(32px, 3.6vw, 50px); }
.hero--sub .hero__sub { margin: 10px 0 20px; }
.hero--sub .hero__signed { margin-top: 6px; }

/* The list pages' hero: "Your Work Orders" with "Signed in as" under it on the left; on the right, the
   sentence on one line and under it the Projects / Work Orders buttons, the website's small size
   (Jamie, 2026-11-06). Stacked where there is no room side by side. */
.hero__content--wide { max-width: none; }
.hero__titlebar { display: flex; align-items: center; justify-content: space-between; gap: 14px 40px; }
.hero__main { flex: 0 1 auto; min-width: 0; }
.hero--sub .hero__titlebar h1 { margin: 0; }
.hero__side { display: grid; gap: 10px; justify-items: end; flex: 0 1 auto; }
.hero--sub .hero__side .hero__sub { margin: 0; text-align: right; }
.portal-switch { margin-top: 0; justify-content: flex-end; gap: 10px 14px; }
.portal-switch .btn { padding: 12px 22px; font-size: 12px; }
.portal-switch .btn[aria-current=page] { pointer-events: none; }
@media (min-width: 1001px) { .hero--sub .hero__side .hero__sub { white-space: nowrap; } }
@media (max-width: 860px) {
  .hero__titlebar { flex-direction: column; align-items: stretch; }
  .hero__side { justify-items: start; }
  .hero--sub .hero__side .hero__sub { text-align: left; }
  .portal-switch { justify-content: flex-start; }
}

/* The list pages' title and boxes right below the hero: the website leaves 92 px (72 on a phone) above a
   section, which here was only empty space (Jamie, 2026-11-06). */
body[data-page=projects] .section--white, body[data-page=work-orders] .section--white, body[data-page=new-work-order] .section--white { padding-top: clamp(22px, 2.6vw, 34px); }
body[data-page=projects] .section__intro, body[data-page=work-orders] .section__intro { margin-top: 10px; }
body[data-page=projects] .plist, body[data-page=work-orders] .plist { margin-top: 20px; }

/* All / Open / Completed / Cancelled and the drop-down, under the section title, in a card like the
   website's form card: white, a red top edge, square corners, the website's lettering. No cream. */
.plist { max-width: 900px; margin: 34px auto 0; display: grid; gap: 24px; background: var(--white); border: 1px solid var(--rule);
  border-top: 4px solid var(--red); padding: 28px 30px 30px; box-shadow: 0 34px 60px -38px rgba(27, 27, 27, .35); }
.status-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
/* The website's buttons -- outlined, filled in when chosen -- in the website's status colours: All black,
   Open gold, Completed green, Cancelled red (the kit's status labels). */
.stab { font-family: var(--font-display); font-weight: 600; font-size: 12px; line-height: 1; letter-spacing: .16em; text-transform: uppercase;
  background: var(--white); border: 1px solid; border-radius: 0; padding: 14px 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.stab__n { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.stab__n:empty { display: none; }
.stab:focus-visible, .picker__field input:focus-visible, .picker__toggle:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.stab[data-show=all], .stab-all { border-color: var(--ink); color: var(--ink); }
.stab[data-show=open], .stab-open { border-color: var(--ember); color: #7A4B07; }
.stab[data-show=completed], .stab-completed { border-color: #2F6B3A; color: #2F6B3A; }
.stab[data-show=cancelled], .stab-cancelled { border-color: var(--red); color: var(--red); }
.stab[data-show=all]:hover, .stab[data-show=all].active { background: var(--ink); color: #fff; }
.stab[data-show=open]:hover, .stab[data-show=open].active { background: var(--ember); color: var(--ink); }
.stab[data-show=completed]:hover, .stab[data-show=completed].active { background: #2F6B3A; color: #fff; }
.stab[data-show=cancelled]:hover, .stab[data-show=cancelled].active { background: var(--red); color: #fff; }
@media (max-width: 560px) {
  .plist { padding: 22px 18px 24px; }
  .status-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .stab { justify-content: center; padding: 14px 10px; }
}

/* The drop-down: a white field with a red button that opens the list. It scrolls, and typing in it searches. */
.picker { position: relative; }
.picker__label { display: block; margin: 0 0 7px; font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.picker__field { position: relative; }
.picker__field input { font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 1px solid var(--ink-3); padding: 14px 64px 14px 14px; border-radius: 0; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease; }
.picker__field input::placeholder { color: var(--ink-3); opacity: 1; }
.picker__field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(138, 31, 16, .14); }
.picker__toggle { position: absolute; top: 0; right: 0; bottom: 0; width: 52px; border: 1px solid var(--red); background: var(--red);
  color: #fff; font-size: 18px; line-height: 1; cursor: pointer; transition: background-color .18s ease; }
.picker__toggle:hover { background: var(--red-deep); border-color: var(--red-deep); }
.picker__list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; background: var(--white);
  border: 1px solid var(--rule); border-top: 3px solid var(--red); box-shadow: 0 24px 48px -24px rgba(27, 27, 27, .45); max-height: none; overflow-y: auto; }   /* portal.js sets it: five records in view */
/* One line each where there is room: the name on the left, the status and date on the right. */
.picker__opt { padding: 9px 12px; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 18px; border-left: 3px solid transparent; }
.picker__opt:hover, .picker__opt.is-active { background: rgba(138, 31, 16, .06); }
.picker__opt.is-chosen { border-left-color: var(--red); }
.picker__prompt .picker__main { font-family: var(--font-body); font-weight: 400; font-style: italic; font-size: 16.5px; letter-spacing: 0; color: var(--ink-3); }
.picker__main { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .05em; color: var(--ink); overflow-wrap: anywhere; }
.picker__sub { font-size: 15px; color: var(--ink-3); }
.picker__none { padding: 12px; color: var(--ink-3); font-style: italic; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.picker__other { font-family: var(--font-display); font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--white); border: 1px solid; padding: 8px 12px; cursor: pointer; }

/* One card at a time, the one picked */
.projects--one { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; margin-top: 30px; }
.projects__loading { margin: 0; text-align: center; font-style: italic; color: var(--ink-3); }
.project__head { min-width: 0; }
.project__name, .note__meta { overflow-wrap: anywhere; }   /* a long unbroken word must not push the page sideways */
.project__number { margin: 6px 0 0; font-size: 16px; color: var(--ink-3); }
.project__desc { white-space: pre-wrap; overflow-wrap: anywhere; }
.project__address { overflow-wrap: anywhere; }
@media (min-width: 861px) { .project__dates--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.project__facts { margin-top: 14px; padding-top: 14px; }
.project__facts dd { overflow-wrap: anywhere; }
.plist-empty { margin-top: 30px; max-width: 900px; margin-left: auto; margin-right: auto; }   /* as wide as the card above it */
/* "Choose a … from the list above", and "There are no … yet": white, with the website's hairline, not cream. */
.projects-empty { background: var(--white); border: 1px solid var(--rule); color: var(--ink-2); font-style: italic; }

/* Notes on a project or work order */
.notes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.notes__title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.notes__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.note { background: var(--white); border: 1px solid var(--rule-soft); border-left: 3px solid var(--ember); padding: 10px 14px; }
.note__meta { margin: 0; font-size: 15px; color: var(--ink-3); }
.note__text { margin: 3px 0 0; font-size: 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-add > summary { cursor: pointer; width: max-content; padding: 4px 0; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); }
.note-add > summary:hover { color: var(--red-deep); }
.note-form { margin-top: 12px; }
.note-form .field textarea { min-height: 96px; background: var(--white); border-color: var(--ink-3); }
.note-form .pform__foot { margin-top: 16px; }
.pform__ok { margin: 14px 0 0; padding: 12px 14px; background: #E8F3EA; border: 1px solid rgba(47, 107, 58, .35); color: #2F6B3A; font-size: 16px; }

/* New Work Order (Jamie, 2026-11-06): the CRM's Service Request form in the website's form card, as wide as the
   list pages' card. White boxes, no cream; the short ones two to a row (one on a phone). */
.nwo { max-width: 900px; margin: 30px auto 0; }
.nwo-msg, #nwo-msg { max-width: 900px; margin-left: auto; margin-right: auto; }
body[data-page=new-work-order] .projects__loading { margin-top: 30px; }
.nwo__lead { margin: 0 0 20px; font-size: 16px; color: var(--ink-3); }
.nwo__lead em { color: var(--red); font-style: normal; }
.nwo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nwo__full { grid-column: 1 / -1; }
.nwo .field input, .nwo .field select, .nwo .field textarea { background: var(--white); border-color: var(--ink-3); min-width: 0; }
.nwo .field input, .nwo .field select { height: 54px; }   /* drop-downs and date boxes as tall as the text boxes beside them */
.nwo .field [aria-invalid=true] { border-color: var(--red); background: #FBEDEA; }
.nwo-opt { font-family: var(--font-body); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.nwo-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.nwo-thumbs:empty { display: none; }
.nwo-thumb { position: relative; width: 92px; height: 92px; border: 1px solid var(--rule); background: var(--white); display: grid; place-items: center; overflow: hidden; }
.nwo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nwo-thumb__name { padding: 6px; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; text-align: center; }
.nwo-thumb--busy { font-size: 14px; font-style: italic; color: var(--ink-3); }
.nwo-thumb__rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.nwo-thumb__rm:hover { background: var(--red-deep); }
/* Add Photos, then Send Work Order and its note on the same row (Jamie, 2026-11-06); they wrap on a phone. */
.nwo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.nwo-actions .pform__hint { flex: 1 1 260px; margin: 0; }
.nwo-add { position: relative; cursor: pointer; }
.nwo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.nwo-add:focus-within { outline: 2px solid var(--ember); outline-offset: 2px; }
/* Service Address: Google's suggestions under the box, in the drop-down's style, with Google's name at the foot. */
.nwo-addr { position: relative; }
.nwo-addr__list .picker__main { font-family: var(--font-body); font-weight: 600; font-size: 16.5px; letter-spacing: 0; }
.nwo-addr__by { padding: 6px 12px 2px; text-align: right; font-family: Roboto, Arial, sans-serif; font-size: 12px; color: #5f6368; cursor: default; }
.nwo-ph-note { margin: 0; font-size: 15px; color: var(--ink-3); }
.nwo-ph-note:empty { display: none; }
.nwo-done__title { margin: 0 0 12px; font-size: 22px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.nwo-done__text { margin: 0 0 10px; font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.nwo-done:focus { outline: none; }
@media (max-width: 700px) { .nwo__grid { grid-template-columns: minmax(0, 1fr); } }

/* The bottom band: thinner than the website's, its heading and words on the left and Call / Email Us on
   the right; no phone, email, office and licence details (Jamie, 2026-11-06). Stacked on a phone. */
.contact { padding: clamp(34px, 3.6vw, 50px) 0; }
.contact__inner { display: block; }
.contact__lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: center; }
.contact__lead h2 { grid-column: 1; margin: 0; }
.contact__lead p { grid-column: 1; margin: 12px 0 0; }
.contact__cta { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
@media (max-width: 860px) {
  .contact__lead { grid-template-columns: 1fr; }
  .contact__cta { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 22px; }
}

/* Email Us: the kit's form card over the page, with white fields */
.msgdlg { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.msgdlg::backdrop { background: rgba(18, 16, 14, .62); }
.msgdlg__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.msgdlg__lead { margin: 10px 0 18px; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.msgdlg__lead a { color: var(--red); }
.msgdlg__from { margin: -6px 0 16px; font-size: 16px; color: var(--ink-3); overflow-wrap: anywhere; }
.msgdlg .field input, .msgdlg .field textarea { background: var(--white); border-color: var(--ink-3); }
.msgdlg .field textarea { min-height: 130px; }
.msgdlg__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
