/* Boyer team portal (/team/). Phone first. */
/* The portal brings its own light panel, so it stays readable on any theme (boyerelevator.com has a near-black page). */
.boyer-portal { --bp-navy: #16337a; --bp-blue: #38b6ff; --bp-ink: #1d2433; --bp-muted: #5b6577; --bp-line: #d9dee8; --bp-soft: #eef6ff;
  width: calc(100% - 32px); max-width: 1080px; margin: 24px auto 48px; padding: 20px 24px 28px; background: #f5f7fb; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28); color: var(--bp-ink); font-size: 16px; line-height: 1.45; text-align: left; }
@media (max-width: 600px) { .boyer-portal { width: calc(100% - 24px); margin: 12px auto 24px; padding: 14px 12px 20px; border-radius: 12px; } }
.boyer-portal *, .boyer-portal *::before, .boyer-portal *::after { box-sizing: border-box; }
.boyer-portal h2 { color: var(--bp-navy); font-size: 24px; margin: 8px 0 12px; }
.boyer-portal h3 { color: var(--bp-navy); font-size: 18px; margin: 0 0 10px; }
.boyer-portal a { color: var(--bp-navy); }
.bp-muted, .boyer-portal small { color: var(--bp-muted); }
/* The theme's own page title ("Team") is hidden on this page; the portal has its own header. */
body.boyer-team-page .page-title, body.boyer-team-page .entry-title, body.boyer-team-page .entry-header, body.boyer-team-page .wp-block-post-title { display: none; }
.bp-logo { width: 170px; height: auto; display: block; }
.boyer-portal.bp-login { max-width: 460px; padding: 28px 24px; }
@media (max-width: 600px) { .boyer-portal.bp-login { margin: 12px; padding: 22px 16px; } }
.bp-login { text-align: left; }
.bp-login .bp-logo { margin: 0 auto 16px; width: 220px; }
.bp-login h2 { text-align: center; }
.bp-login .bp-muted { text-align: center; }
.bp-login form p { margin: 0 0 12px; }
.bp-login label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.bp-login input[type=text], .bp-login input[type=password] { width: 100%; font-size: 16px; padding: 12px; border: 1px solid var(--bp-line); border-radius: 10px; }
.bp-login .login-remember label { font-weight: 400; }
.bp-login input[type=submit] { width: 100%; font-size: 17px; font-weight: 700; padding: 13px; border: 0; border-radius: 10px; background: var(--bp-navy); color: #fff; cursor: pointer; }
.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 12px; border-bottom: 2px solid var(--bp-navy); }
.bp-head .bp-logo { width: 150px; }
.bp-who a { white-space: nowrap; }
@media (max-width: 600px) { .bp-head .bp-logo { width: 120px; } }
.bp-who { text-align: right; font-size: 14px; }
.bp-who span { display: block; color: var(--bp-muted); }
.bp-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.bp-nav a { flex: none; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--bp-soft); font-weight: 600; font-size: 15px; }
.bp-nav a.on { background: var(--bp-navy); color: #fff; }
.bp-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #c0392b; color: #fff; font-size: 12px; text-align: center; }
.bp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.bp-tile { display: block; text-decoration: none; border: 1px solid var(--bp-line); border-radius: 12px; padding: 16px; background: #fff; }
.bp-tile b { display: block; font-size: 18px; color: var(--bp-navy); }
.bp-tile span { color: var(--bp-muted); font-size: 14px; }
.bp-card { border: 1px solid var(--bp-line); border-radius: 12px; padding: 16px; background: #fff; margin: 12px 0; }
.bp-list { list-style: none; margin: 0; padding: 0; }
.bp-list li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bp-line); }
.bp-list li small { display: block; }
.bp-date { flex: none; width: 56px; font-weight: 700; color: var(--bp-navy); }
.bp-late { color: #c0392b; }
.bp-btn { display: inline-block; font: inherit; font-weight: 600; border: 1px solid var(--bp-navy); color: var(--bp-navy); background: #fff; border-radius: 10px; padding: 10px 16px; cursor: pointer; text-decoration: none; }
.bp-primary { background: var(--bp-navy); color: #fff !important; }
.bp-small { padding: 6px 10px; font-size: 14px; border-radius: 8px; }
.bp-notice { border-radius: 10px; padding: 10px 14px; margin: 10px 0; background: var(--bp-soft); }
.bp-notice.ok { background: #e7f6ec; color: #135c32; }
.bp-notice.err { background: #fdecea; color: #8a1c13; }
.bp-form label { display: block; font-weight: 600; font-size: 14px; margin: 8px 0; }
.bp-form input, .bp-form select { display: block; width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--bp-line); border-radius: 10px; margin-top: 4px; font-weight: 400; }
.bp-form .bp-btn { margin-top: 8px; }
.bp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .bp-grid2 { grid-template-columns: 1fr; } }
.bp-table { width: 100%; border-collapse: collapse; }
.bp-table th, .bp-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--bp-line); vertical-align: top; }
.bp-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bp-actions form { margin: 0; }
@media (max-width: 560px) {
  .bp-table thead { display: none; }
  .bp-table tr { display: block; border-bottom: 1px solid var(--bp-line); padding: 8px 0; }
  .bp-table td { display: block; border: 0; padding: 2px 0; }
  .bp-actions { justify-content: flex-start; }
}
/* Map */
.bp-filters { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--bp-line); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.bp-filters button { font: inherit; font-size: 15px; border: 0; background: #fff; padding: 8px 14px; cursor: pointer; color: var(--bp-ink); }
.bp-filters button.on { background: var(--bp-navy); color: #fff; }
.bp-legend { font-size: 13px; color: var(--bp-muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 8px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-right: 4px; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9d1de; }
.dot.overdue { background: #c0392b; } .dot.due { background: #d98b00; } .dot.ok { background: #1f8a4c; } .dot.unknown { background: #8a94a6; }
.ring { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #5b2a86; vertical-align: middle; margin-right: 4px; }
.bp-map { height: 60vh; min-height: 340px; border-radius: 12px; border: 1px solid var(--bp-line); z-index: 0; }
.bp-accounts { list-style: none; margin: 8px 0 0; padding: 0; }
.bm-go { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; font: inherit; background: #fff; border: 0; border-bottom: 1px solid var(--bp-line); padding: 10px 2px; cursor: pointer; color: var(--bp-ink); }
.bm-go .dot { margin-top: 5px; flex: none; }
.bm-go small { display: block; }
.bm-card p { margin: 6px 0; }
.bm-s { font-weight: 700; }
.bm-s.overdue { color: #c0392b; } .bm-s.due { color: #a15c00; } .bm-s.ok { color: #1f8a4c; } .bm-s.unknown { color: #5b6577; }
.bm-i.soon { color: #5b2a86; font-weight: 600; }
.bm-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* Calendar */
.tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 1px 6px; text-decoration: none; }
.tag.service { background: #e3f1fb; color: #0a4b78 !important; }
.tag.inspection { background: #fcf0d4; color: #7a4b00 !important; }
.tag.five_year { background: #f6e3ff; color: #5b2a86 !important; }
.tag.renewal { background: #e5f5ea; color: #135c32 !important; }
.bp-attn ul { list-style: none; margin: 0; padding: 0; }
.bp-attn li { padding: 6px 0; border-bottom: 1px solid var(--bp-line); }
.bp-cal-head { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; }
.bp-cal-head h3 { margin: 0; }
.bp-cal-head button { font: inherit; font-size: 18px; border: 1px solid var(--bp-line); background: #fff; border-radius: 8px; padding: 4px 14px; cursor: pointer; }
.bp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--bp-line); border-left: 1px solid var(--bp-line); }
.bc-dow { font-size: 12px; font-weight: 700; color: var(--bp-muted); padding: 4px 6px; border-right: 1px solid var(--bp-line); border-bottom: 1px solid var(--bp-line); background: #f6f8fb; }
.bc-day { min-height: 92px; padding: 4px; border-right: 1px solid var(--bp-line); border-bottom: 1px solid var(--bp-line); overflow: hidden; }
.bc-day .tag { display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-empty { background: #fafbfc; }
.bc-n { font-size: 12px; color: var(--bp-muted); }
.bc-today { background: var(--bp-soft); }
.bc-today .bc-n { color: var(--bp-navy); font-weight: 700; }
.bc-more { font-size: 11px; color: var(--bp-muted); }
.bp-agenda { list-style: none; margin: 12px 0; padding: 0; }
.bp-agenda li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bp-line); }
.bc-date { flex: none; width: 92px; font-weight: 700; color: var(--bp-navy); font-size: 14px; }
@media (min-width: 761px) { .bp-agenda { display: none; } }
@media (max-width: 760px) { .bp-cal { display: none; } }
/* Office quick creator price box */
.bq-price { background: var(--bp-soft, #eef6ff); border-radius: 10px; padding: 12px; margin-bottom: 6px; transition: opacity .2s; }
.bq-loading { opacity: .55; }
.bq-big { font-size: 28px; font-weight: 800; color: #16337a; }
.bq-big small { font-size: 14px; font-weight: 400; color: #5b6577; }
.bq-price p { margin: 4px 0; font-size: 15px; }
.bq-lines { margin: 6px 0; padding-left: 18px; font-size: 14px; }
.bq-warn { background: #fff4dc; color: #7a4b00; border-radius: 6px; padding: 4px 8px; }
.bp-signup-link { text-align: center; }
/* Contracts: list and review screen (office only) */
.bp-tabs { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bp-tabs a { flex: none; white-space: nowrap; text-decoration: none; font-size: 15px; padding: 8px 14px; background: #fff; color: var(--bp-ink); border-right: 1px solid var(--bp-line); }
.bp-tabs a:last-child { border-right: 0; }
.bp-tabs a.on { background: var(--bp-navy); color: #fff; }
.bp-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--bp-soft); color: var(--bp-navy); font-size: 12px; text-align: center; }
.bp-tabs a.on .bp-count { background: #fff; }
.bp-clist { list-style: none; margin: 8px 0; padding: 0; }
.bp-crow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 8px; background: #fff; border: 1px solid var(--bp-line); border-radius: 12px; text-decoration: none; color: var(--bp-ink) !important; }
.bp-crow:hover, .bp-crow:focus-visible { border-color: var(--bp-navy); }
.bp-crow-main { min-width: 0; }
.bp-crow-main b { color: var(--bp-navy); font-size: 17px; }
.bp-crow-main small { display: block; font-size: 14px; }
.bp-crow-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.bp-crow-side small { font-weight: 400; }
.bp-st { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; background: var(--bp-soft); color: var(--bp-navy); }
.bp-st-submitted { background: #fff4dc; color: #7a4b00; }
.bp-st-changes_requested { background: #fdecea; color: #8a1c13; }
.bp-st-approved { background: #e3f1fb; color: #0a4b78; }
.bp-st-signed { background: #e7f6ec; color: #135c32; }
.bp-st-declined { background: #eceef2; color: #5b6577; }
.bp-fine { font-size: 13px; }
.bp-back { margin: 4px 0 8px; }
.bp-back a { text-decoration: none; font-weight: 600; }
.bp-rev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bp-rev-head h2 { margin: 0; }
.bp-ref { color: var(--bp-muted); font-weight: 400; }
.bp-rev-head + .bp-muted { margin: 4px 0 8px; }
.bp-notice.warn { background: #fff4dc; color: #7a4b00; }
.bp-rev { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
.bp-rev > .bp-card { margin: 8px 0; }
/* Two columns only when the portal panel itself is wide enough (the theme decides the page width). */
.bp-main { container-type: inline-size; }
@container (min-width: 820px) {
  .bp-rev { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "details price" "details decision" "doc doc" "history history"; align-items: start; }
  .bp-rev-details { grid-area: details; }
  .bp-rev-price { grid-area: price; }
  .bp-rev-decision { grid-area: decision; }
  .bp-rev-doc { grid-area: doc; }
  .bp-rev-history { grid-area: history; }
}
/* On phones: read the details, price and contract first, then decide. */
@container (max-width: 819.98px) {
  .bp-rev-details { order: 1; } .bp-rev-price { order: 2; } .bp-rev-doc { order: 3; } .bp-rev-decision { order: 4; } .bp-rev-history { order: 5; }
}
.bp-rev h3 { margin-top: 4px; }
.bp-rev-details h3:not(:first-child) { margin-top: 16px; }
.bp-dl { margin: 0; }
.bp-dl > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px solid #eef0f4; }
.bp-dl dt { color: var(--bp-muted); font-size: 14px; }
.bp-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .bp-dl > div { grid-template-columns: 1fr; gap: 0; } }
.bp-els { margin: 0; padding-left: 20px; }
.bp-els li { padding: 4px 0; }
.bp-els small { display: block; }
.bp-rev-price p { margin: 6px 0; }
.bp-more { margin-top: 12px; border-top: 1px solid var(--bp-line); padding-top: 10px; }
.bp-more summary { cursor: pointer; font-weight: 600; color: var(--bp-navy); }
.bp-more .bp-form { margin-top: 8px; }
.bp-form textarea { display: block; width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--bp-line); border-radius: 10px; margin-top: 4px; font-weight: 400; }
.bp-wide { width: 100%; padding: 13px; font-size: 17px; }
.bp-danger { border-color: #b42318; color: #b42318; background: #fff; }
.bp-rev-decision hr { border: 0; border-top: 1px solid var(--bp-line); margin: 14px 0 10px; }
.bp-rev-decision form { margin: 0; }
.bp-rev-decision .bp-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-sig { max-height: 60px; background: #fff; border: 1px solid var(--bp-line); border-radius: 6px; padding: 4px; }
.bp-doc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bp-doc-head h3 { margin: 0; }
.bp-doc { display: block; width: 100%; height: 80vh; min-height: 520px; border: 1px solid var(--bp-line); border-radius: 10px; background: #e9edf3; }
.bp-rev-history summary { cursor: pointer; list-style: revert; }
.bp-rev-history summary h3 { display: inline; }
.bp-hist { list-style: none; margin: 10px 0 0; padding: 0; }
.bp-hist li { padding: 6px 0; border-bottom: 1px solid #eef0f4; font-size: 15px; }
.bp-hist small { display: block; }
.bt-back { margin: 0 0 6px; }
.bt-back a { font-weight: 600; text-decoration: none; }
.bp-rev-decision .bp-grid2 { grid-template-columns: 1fr; }
/* Website search check */
.bp-seo-line { display: block; text-decoration: none; border-left: 5px solid var(--bp-line); }
.bp-seo-line b { display: block; color: var(--bp-navy); }
.bp-seo-line span { color: var(--bp-muted); font-size: 14px; }
.bp-seo-good { border-left-color: #1f8a4c; }
.bp-seo-warn { border-left-color: #d98b00; }
.bp-seo-bad { border-left-color: #c0392b; }
.bp-seo-bad span { color: #8a1c13; font-weight: 600; }
.bp-seo-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.bp-seo-box ul { margin: 0; padding-left: 20px; }
.bp-seo-box li { margin: 6px 0; }
.bp-seo-box.bp-seo-bad { border-left: 5px solid #c0392b; }
.bp-seo-box.bp-seo-bad h3 { color: #8a1c13; }
.bp-seo-box.bp-seo-warn { border-left: 5px solid #d98b00; }
.bp-seo-box.bp-seo-info { border-left: 5px solid var(--bp-navy); }
.bp-seo-table td small { display: block; color: var(--bp-muted); }
.bp-yes { color: #135c32; font-weight: 700; }
.bp-no { color: #b42318; font-weight: 700; }
.bp-meh { color: #a15c00; font-weight: 700; }
