/* Hot Water Pros team portal (release 1.4): Home tab, time off and training bonuses.
   Same surfaces, type and orange accents as the plumber workspace (next.css). */

/* Five tabs for the team: Home, Customers, Tools, Training, Products. */
.pro-workspace-nav.pro-workspace-nav--team { grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; }
@media(max-width:400px) { .pro-workspace-nav.pro-workspace-nav--team { padding:8px 6px; } .pro-workspace-nav.pro-workspace-nav--team a { padding:10px 2px; font-size:12.5px; } }

.portal-hello { margin-bottom:20px; }
.portal-hello h1 { font-size:34px; }
.portal-banner { display:flex; align-items:flex-start; gap:8px; margin:0 0 16px; font-size:14px; line-height:1.5; }
.portal-banner svg { width:18px; height:18px; flex-shrink:0; margin-top:1px; stroke:currentColor; fill:none; stroke-width:1.8; }

/* Cards on Home */
.portal-card { margin:0 0 16px; padding:20px 18px; border:1px solid #dfe2d8; border-radius:18px; background:#fff; min-width:0; }
.portal-card-head { display:flex; align-items:center; gap:12px; margin:0 0 6px; }
.portal-card-head h2 { margin:0; font-size:21px; font-weight:650; letter-spacing:-.03em; line-height:1.25; }
.portal-icon { display:grid; place-items:center; width:40px; height:40px; flex-shrink:0; border-radius:12px; background:#f6eee5; color:#a23c00; }
.portal-icon svg { width:21px; height:21px; stroke:currentColor; fill:none; stroke-width:1.7; }
.portal-card > p { margin:0 0 12px; color:#62655e; font-size:14px; line-height:1.6; }
.portal-card .training-progress { margin:14px 0 6px; }
.portal-meta { margin:0 0 14px !important; font-size:13px !important; }
.portal-next { display:flex; flex-direction:column; gap:2px; margin:0 0 14px !important; padding:12px 14px; border-radius:12px; background:#f7f5f0; }
.portal-next small { color:#a23c00; font-size:11px; font-weight:700; letter-spacing:.1em; }
.portal-next strong { color:#21251c; font-size:15px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
.portal-next-done { flex-direction:row; align-items:center; gap:8px; background:#eaf2e3; color:#3e5d2c !important; }
.portal-next-done svg { width:18px; height:18px; flex-shrink:0; stroke:currentColor; fill:none; stroke-width:1.8; }
.portal-wide { width:100%; min-height:50px; font-size:15px; text-decoration:none; }
.portal-wide svg { stroke:currentColor; fill:none; }
.portal-more { display:flex; width:100%; margin-top:4px; }
.portal-bonus,.training-bonus,.training-bonus-summary { display:flex; align-items:flex-start; gap:8px; margin:14px 0 0 !important; padding:11px 13px; border-radius:12px; background:#fff4e8; color:#6b3a10 !important; font-size:14px !important; line-height:1.5 !important; }
.portal-bonus svg,.training-bonus svg,.training-bonus-summary svg { width:18px; height:18px; flex-shrink:0; margin-top:1px; color:#d65f0e; stroke:currentColor; fill:#ffd2ad; stroke-width:1.6; }
.portal-empty-line { display:flex; align-items:center; gap:8px; margin:6px 0 14px; color:#62655e; font-size:14px; }
.portal-empty-line svg { width:18px; height:18px; color:#3e5d2c; stroke:currentColor; fill:none; stroke-width:1.8; }

/* Owner: what needs an answer */
.portal-alert-card { display:flex; align-items:center; gap:13px; min-height:64px; margin:0 0 12px; padding:14px; border:1px solid #e4e4dc; border-radius:16px; background:#fff; color:#1a1b19; text-decoration:none; }
.portal-alert-card[data-urgent="true"] { border-color:#f3b386; background:#fff7f0; box-shadow:inset 4px 0 #fc6f13; }
.portal-alert-card > svg { width:15px; height:15px; margin-left:auto; flex-shrink:0; color:#74786c; stroke:currentColor; fill:none; stroke-width:1.8; }

/* Request rows */
.portal-requests { display:grid; gap:0; margin:6px 0 14px; }
.portal-request { display:flex; align-items:center; gap:12px; min-height:62px; padding:10px 2px; border-top:1px solid #ecece6; color:#21251c; text-decoration:none; }
.portal-requests .portal-request:first-child { border-top:0; }
.portal-date-badge { display:flex; flex-direction:column; align-items:center; justify-content:center; width:46px; height:50px; flex-shrink:0; border:1px solid #e3ddd3; border-radius:11px; background:#fbf8f3; line-height:1.05; }
.portal-date-badge b { color:#a23c00; font-size:10px; font-weight:700; letter-spacing:.08em; }
.portal-date-badge strong { font-size:19px; font-weight:650; color:#1a1b19; }
.portal-request-copy { display:flex; flex-direction:column; min-width:0; flex:1; }
.portal-request-copy strong { font-size:15px; font-weight:600; line-height:1.35; overflow-wrap:anywhere; }
.portal-request-copy small { margin-top:2px; color:#62655e; font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.portal-status { flex-shrink:0; padding:5px 9px; border-radius:999px; background:#eeeae3; color:#5b574f; font-size:12px; font-weight:650; white-space:nowrap; }
.portal-status[data-status="pending"] { background:#fff1e3; color:#8a4510; }
.portal-status[data-status="approved"] { background:#e3f0da; color:#335224; }
.portal-status[data-status="declined"] { background:#f8e3dc; color:#8d3b17; }
.portal-status[data-status="cancelled"] { background:#efefec; color:#6d6d66; }
.portal-group { margin:26px 0 8px; font-size:17px; font-weight:650; letter-spacing:-.02em; }
.portal-group:first-of-type { margin-top:18px; }
.portal-older { margin:24px 0 0; }
.portal-older summary { min-height:44px; display:flex; align-items:center; color:#913500; font-size:15px; font-weight:600; cursor:pointer; }

/* Request form */
.portal-form { gap:20px; }
.portal-form fieldset { margin:0; padding:0; border:0; min-width:0; }
.portal-form legend { float:none; width:auto; margin:0 0 8px; padding:0; border:0; color:#454d3d; font-size:14px; font-weight:600; }
.portal-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.portal-choices-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.portal-choice { position:relative; display:block; margin:0 !important; min-width:0; }
.portal-choice input { position:absolute; opacity:0; width:1px; height:1px; margin:0; }
.portal-choice span { display:flex; align-items:center; gap:9px; min-height:54px; height:100%; box-sizing:border-box; padding:11px 12px; border:1.5px solid #d7d9d0; border-radius:12px; background:#fff; color:#21251c; font-size:15px; font-weight:600; line-height:1.3; cursor:pointer; }
.portal-choices-3 .portal-choice span { justify-content:center; padding:10px 6px; font-size:13.5px; text-align:center; }
.portal-choice span svg { width:20px; height:20px; flex-shrink:0; color:#a23c00; stroke:currentColor; fill:none; stroke-width:1.7; }
.portal-choice input:checked + span { border-color:#fc6f13; background:#fff4ea; box-shadow:0 0 0 1px #fc6f13; }
.portal-choice input:focus-visible + span { outline:3px solid #a64203; outline-offset:2px; }
.portal-choice input:disabled + span { opacity:.6; cursor:not-allowed; }
.portal-segment { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border:1px solid #d8dad2; border-radius:13px; background:#eeefe9; }
.portal-segment .portal-choice span { justify-content:center; min-height:46px; border:0; border-radius:10px; background:transparent; color:#4d5546; }
.portal-segment .portal-choice input:checked + span { background:#252724; color:#fff; box-shadow:none; }
.portal-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.portal-pair > label { min-width:0; color:#454d3d; font-size:14px; font-weight:600; }
.portal-form input[type="time"] { min-width:0; width:100%; max-width:100%; box-sizing:border-box; -webkit-appearance:none; appearance:none; }
.portal-form input[type="time"]::-webkit-date-and-time-value { text-align:left; }
.portal-summary { margin:-6px 0 0; padding:12px 14px; border-radius:12px; background:#252724; color:#fff; font-size:15px; font-weight:600; line-height:1.45; }
.portal-notice { display:flex; align-items:flex-start; gap:8px; margin:-6px 0 0; color:#62655e; font-size:13px; line-height:1.55; }
.portal-notice svg { width:17px; height:17px; flex-shrink:0; margin-top:1px; stroke:currentColor; fill:none; stroke-width:1.7; }
.portal-notice[data-short="true"] { padding:11px 13px; border-radius:12px; background:#fff1e3; color:#7a3d0c; }
.portal-send { min-height:54px; }

/* Owner's list */
.portal-team-request { margin:0 0 12px; padding:6px 14px 14px; border:1px solid #e4e4dc; border-radius:16px; background:#fff; }
.portal-team-link { display:flex; align-items:center; gap:12px; min-height:56px; color:#21251c; text-decoration:none; }
.portal-team-meta { margin:0 0 6px; color:#62655e; font-size:13px; }
.portal-short { display:inline-block; padding:2px 7px; border-radius:6px; background:#fff1e3; color:#8a4510; font-size:12px; font-weight:650; }
.portal-quote { margin:0 0 10px; padding:10px 12px; border-left:3px solid #e3ddd3; background:#fbf8f3; color:#3d3a35; font-size:14px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.portal-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; margin:14px 0 10px; }
.portal-actions.compact { margin:10px 0 0; }
.portal-actions .nx-button { width:100%; min-height:48px; }
.portal-actions svg { stroke:currentColor; fill:none; }
.portal-decline { display:grid; gap:4px; margin:12px 0 0; }
.portal-decline label { color:#454d3d; font-size:14px; font-weight:600; }
.portal-decline textarea { display:block; width:100%; box-sizing:border-box; margin:7px 0 0; padding:12px 14px; border:1px solid #d7d9d0; border-radius:10px; background:#fff; color:#21251c; font-size:16px; resize:vertical; }
.portal-decline .optional { color:#626957; font-size:12px; font-weight:400; }

/* Request page */
.portal-status-line { display:flex; align-items:center; gap:8px; margin:-12px 0 16px; padding:12px 14px; border-radius:12px; background:#eeeae3; color:#4d4a44; font-size:15px; font-weight:650; }
.portal-status-line svg { width:19px; height:19px; flex-shrink:0; stroke:currentColor; fill:none; stroke-width:1.8; }
.portal-status-line[data-status="pending"] { background:#fff1e3; color:#8a4510; }
.portal-status-line[data-status="approved"] { background:#e3f0da; color:#335224; }
.portal-status-line[data-status="declined"] { background:#f8e3dc; color:#8d3b17; }
.portal-facts { margin:12px 0; padding:4px 18px; }
.portal-facts dl { margin:0; }
.portal-facts dl > div { padding:13px 0; border-top:1px solid #ecece6; }
.portal-facts dl > div:first-child { border-top:0; }
.portal-facts dt { color:#62655e; font-size:12px; font-weight:600; letter-spacing:.02em; }
.portal-facts dd { margin:3px 0 0; color:#21251c; font-size:16px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.portal-push p.portal-push-note { padding:11px 13px; border-radius:12px; background:#f7f5f0; color:#4d4a44; }

/* Training: bonus on the section card */
.training-section .training-bonus { margin:4px 0 12px !important; }
.training-bonus[data-earned="true"] { background:#eaf2e3; color:#335224 !important; }
.training-bonus[data-earned="true"] svg { color:#3e7a28; fill:#cfe6c0; }
.training-bonus-summary { margin:0 0 6px !important; }

/* Training: congratulations after finishing a section */
.training-congrats { position:relative; margin:0 0 20px; padding:26px 20px 24px; border-radius:20px; background:#000; color:#fff; text-align:center; overflow:hidden; border-bottom:5px solid #fc6f13; }
.training-congrats img { display:block; width:150px; max-width:60%; height:auto; margin:0 auto 14px; }
.training-congrats .training-congrats-eyebrow { margin:0 0 4px; color:#ff9c59; font-size:12px; font-weight:700; letter-spacing:.16em; }
.training-congrats h2 { margin:0 0 10px; color:#fff; font-size:32px; font-weight:700; letter-spacing:-.035em; }
.training-congrats p { position:relative; margin:0; color:#e4e4e4; font-size:16px; line-height:1.5; }
.training-congrats strong { color:#fff; }
.training-congrats-amount { margin:6px 0 8px !important; color:#ffb27a !important; font-size:40px !important; font-weight:800; letter-spacing:-.03em; line-height:1.1 !important; }
.training-congrats-fine { color:#bdbdbd !important; font-size:14px !important; }
.training-confetti { position:absolute; inset:0; pointer-events:none; }
.training-confetti i { position:absolute; top:-12px; width:8px; height:14px; border-radius:2px; background:#fc6f13; opacity:0; animation:hwp-confetti 2.6s ease-in 0.2s 1 forwards; }
.training-confetti i:nth-child(3n) { background:#ffd2ad; width:6px; height:10px; }
.training-confetti i:nth-child(3n+1) { background:#fff; width:5px; height:9px; }
.training-confetti i:nth-child(1) { left:6%; animation-delay:.1s; } .training-confetti i:nth-child(2) { left:13%; animation-delay:.5s; }
.training-confetti i:nth-child(3) { left:20%; animation-delay:.2s; } .training-confetti i:nth-child(4) { left:28%; animation-delay:.7s; }
.training-confetti i:nth-child(5) { left:35%; animation-delay:.35s; } .training-confetti i:nth-child(6) { left:43%; animation-delay:.05s; }
.training-confetti i:nth-child(7) { left:50%; animation-delay:.6s; } .training-confetti i:nth-child(8) { left:57%; animation-delay:.25s; }
.training-confetti i:nth-child(9) { left:64%; animation-delay:.45s; } .training-confetti i:nth-child(10) { left:71%; animation-delay:.15s; }
.training-confetti i:nth-child(11) { left:78%; animation-delay:.55s; } .training-confetti i:nth-child(12) { left:85%; animation-delay:.3s; }
.training-confetti i:nth-child(13) { left:91%; animation-delay:.65s; } .training-confetti i:nth-child(14) { left:96%; animation-delay:.4s; }
@keyframes hwp-confetti { 0% { opacity:1; transform:translateY(0) rotate(0); } 100% { opacity:0; transform:translateY(340px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .training-confetti { display:none; } }

/* Training: bonuses in Team progress (owner) */
.training-bonuses h2 { margin-top:0; }
.training-bonuses > p { margin:0 0 10px; color:#62655e; font-size:14px; line-height:1.6; }
.training-bonus-total { display:flex; align-items:center; gap:8px; margin:12px 0 4px !important; color:#21251c !important; font-size:15px !important; }
.training-bonus-total strong { font-size:22px; color:#a23c00; }
.training-bonus-total svg { width:18px; height:18px; color:#3e5d2c; stroke:currentColor; fill:none; stroke-width:1.8; }
.training-bonus-list { list-style:none; margin:4px 0 0; padding:0; }
.training-bonus-row { display:flex; align-items:center; gap:10px; min-height:60px; padding:8px 0; border-top:1px solid #ecece6; }
.training-bonus-copy { display:flex; flex-direction:column; min-width:0; flex:1; }
.training-bonus-copy strong { font-size:15px; font-weight:600; overflow-wrap:anywhere; }
.training-bonus-copy small { color:#62655e; font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.training-bonus-amount { flex-shrink:0; font-size:16px; font-weight:700; color:#21251c; font-variant-numeric:tabular-nums; }
.training-bonus-row .nx-button { flex-shrink:0; min-height:44px; padding:10px 14px; font-size:14px; }
.training-bonus-row .nx-text { padding:10px 4px 10px 8px; }
.training-member-bonus svg { color:#d65f0e !important; }
.training-bonus-own { flex-shrink:0; padding:5px 9px; border-radius:999px; background:#eeeae3; color:#5b574f; font-size:12px; font-weight:650; }

/* Release 1.5: messages from the office (office-messages.js) */
.office-messages { display:grid; gap:10px; margin:10px 0 0; padding:0; list-style:none; }
.office-message { padding:12px 14px; border-radius:12px; background:#f7f5f0; min-width:0; }
.office-message--new { background:#fff4e8; box-shadow:inset 3px 0 0 #fc6f13; }
.office-message-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.office-message-head strong { color:#21251c; font-size:15px; font-weight:650; line-height:1.35; overflow-wrap:anywhere; }
.office-message-head time { flex-shrink:0; color:#62655e; font-size:12px; }
.office-message p { margin:4px 0 0; color:#3d4137; font-size:14px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.office-message .office-message-meta { color:#62655e; font-size:12.5px; }
.office-choice span { flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; }
.office-choice small { color:#62655e; font-size:12px; font-weight:400; }
.office-choice input:checked + span small { color:#7a3d0c; }
.office-form label > select { margin-top:7px; }
.office-count { display:block; margin-top:5px; color:#62655e; font-size:12px; font-weight:400; text-align:right; }
.office-form .nx-button svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.8; }

/* Homeowner Home: notifications, offers and messages */
.office-home-cards { display:grid; gap:12px; margin:0 0 20px; }
.office-home-card { padding:16px 16px 17px; border:1px solid var(--border,#dedede); border-radius:17px; background:#fff; box-shadow:0 6px 18px rgba(17,17,17,.05); min-width:0; }
.office-home-head { display:flex; align-items:center; gap:11px; margin:0 0 6px; }
.office-home-head h2 { margin:0; color:#111; font-size:1.02rem; font-weight:800; line-height:1.25; }
.office-home-icon { display:grid; place-items:center; width:38px; height:38px; flex-shrink:0; border-radius:11px; background:var(--pale-orange,#fff4ec); color:#a23c00; }
.office-home-icon svg { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; }
.office-home-card > p { margin:0 0 10px; color:var(--gray,#666); font-size:.88rem; line-height:1.5; }
.office-home-card .office-fine { margin:0; font-size:.84rem; }
.office-home-card .office-alert { margin:8px 0; padding:9px 11px; border-radius:10px; background:#fdeee6; color:#8d3b17; font-size:.84rem; }
.office-button { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; border:0; border-radius:12px; background:var(--orange,#fc6f13); color:#111; font:inherit; font-size:.95rem; font-weight:800; cursor:pointer; }
.office-button:disabled { opacity:.6; cursor:default; }
.office-button:focus-visible { outline:3px solid #a64203; outline-offset:2px; }
.office-switch { display:flex; align-items:flex-start; gap:12px; margin:4px 0 0; padding:12px 0 0; border-top:1px solid #eee; cursor:pointer; }
.office-switch input { flex:0 0 22px; width:22px; height:22px; margin:1px 0 0; accent-color:#a64203; }
.office-switch span { display:grid; gap:3px; min-width:0; }
.office-switch strong { color:#111; font-size:.95rem; }
.office-switch small { color:var(--gray,#666); font-size:.8rem; font-weight:400; line-height:1.45; }
.office-home-card .office-messages { margin-top:6px; }
.office-home-card .office-message { background:#f6f6f4; }
.office-home-card .office-message--new { background:var(--pale-orange,#fff4ec); }
.office-home-card .office-message-head strong { color:#111; }
.office-text-button { display:block; margin:12px auto 0; padding:8px 10px; border:0; background:none; color:#7a3d0c; font:inherit; font-size:.86rem; font-weight:700; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.office-text-button:disabled { opacity:.6; cursor:default; }
.office-service-check { font-size:14px; color:#3d4137; }
