.master-controls{display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(170px,1fr));gap:14px;margin:24px 0}.master-controls label,.master-form-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#53685d}.master-controls input,.master-controls select,.master-form-grid input,.master-form-grid select,.master-form-grid textarea{width:100%;padding:12px;border:1px solid #d4ded7;border-radius:7px;background:#fff;color:#193e2c;font:400 14px Arial,sans-serif;min-width:0}.master-controls input:focus,.master-controls select:focus,.master-form-grid input:focus,.master-form-grid select:focus,.master-form-grid textarea:focus{outline:2px solid #378858;outline-offset:2px}.master-table-wrap{overflow:auto;background:white;border:1px solid #dce5df;border-radius:8px;margin-top:16px}.master-table{border-collapse:collapse;min-width:1150px;width:100%;font-size:13px;text-align:left}.master-table th{background:#0b3e2d;color:#fff;font-size:11px;padding:13px 14px;letter-spacing:.03em;white-space:nowrap}.master-table td{padding:15px 14px;border-bottom:1px solid #e8ede9;max-width:225px;line-height:1.5;vertical-align:middle}.master-table tr:last-child td{border-bottom:0}.master-table tbody tr:hover{background:#f5f9f3}.master-name{border:0;background:none;color:#174a31;font:700 13px Arial,sans-serif;text-align:left;padding:0}.master-name:hover{text-decoration:underline}.master-uci{color:#708175;font-size:11px;margin-top:4px;white-space:nowrap}.master-review-tag{display:inline-block;padding:2px 5px;background:#fff1cd;color:#896821;border:1px solid #e9d6a3;border-radius:4px;font-size:10px;margin-left:7px}.master-open{padding:7px 9px!important;font-size:11px!important}.master-status{display:inline-block;padding:4px 8px;border-radius:5px;font-weight:700;font-size:11px;white-space:nowrap;background:#e4f1df;color:#426b32}.master-status-needs-trainer{background:#ffead6;color:#873b0d}.master-status-not-active{background:#e9edf1;color:#566372}.master-status-medical-leave{background:#dcf0ed;color:#347e75}.master-status-vacation{background:#e2edf9;color:#376fa3}.master-status-canceled{background:#f9e3e0;color:#a3473c}.master-status-not-interested{background:#eee5f7;color:#80549d}.master-status-assessment{background:#fff2c5;color:#8a6c1e}.master-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:17px 0;font-size:12px;color:#6a7d70}.master-pagination>div{display:flex;align-items:center;gap:12px}.master-pagination button{padding:8px 10px}.master-sync{font-size:11px;color:#7a8b7d}.master-error{background:#fff2ee;border:1px solid #ecc7be;border-radius:6px;padding:12px 15px;color:#a54d3c;margin:15px 0;font-size:13px;line-height:1.6}.master-error[hidden]{display:none}.master-empty{text-align:center!important;padding:60px 25px!important;height:200px}.master-empty strong{font-size:16px;color:#466b51;display:block}.master-empty p{font-size:13px;color:#778b7a;margin:9px 0 0}.master-dialog{border:1px solid #d3dfd5;border-radius:12px;width:760px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 40px);padding:0;background:#fbfcf8;color:#193d2a;box-shadow:0 25px 90px #142e3540}.master-dialog::backdrop{background:#10332877;backdrop-filter:blur(3px)}.master-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 42px)}.master-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:23px 26px;border-bottom:1px solid #dde7dc;gap:20px}.master-dialog h2{font:400 29px Georgia,serif;margin:0}.master-dialog-heading .eyebrow{font-size:10px}.master-dialog-heading>button{padding:8px 11px;font-size:11px}.master-dialog-body{overflow-y:auto;padding:24px 26px}.master-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.master-form-grid .full{grid-column:1/-1}.master-form-grid textarea{resize:vertical;min-height:70px}.master-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 26px;border-top:1px solid #dde7dc;background:#f2f7ed}.master-dialog-footer>div{display:flex;gap:8px}.master-dialog-footer button{font-size:12px;padding:10px 13px}.master-review-note{padding:14px;background:#fff5da;border:1px solid #ead8aa;border-radius:6px;margin-bottom:23px;font-size:12px;line-height:1.6;color:#8c722d}.master-review-note p{margin:6px 0 0}.master-checkbox{display:flex;align-items:center;gap:8px;font-size:12px;margin:18px 0;color:#59774f}.master-checkbox input{width:16px;height:16px;accent-color:#007b42}.master-source{font-size:11px;color:#7e8d78;line-height:1.7;margin-top:20px}.manager-access-form{margin-top:32px;padding:26px;background:#fff;border:1px solid #d9e4da;border-radius:9px;max-width:800px}.manager-access-form h2{font:400 25px Georgia,serif;margin:0 0 24px}.manager-access-form>button{margin-top:16px;margin-right:8px}.nav-btn[hidden]{display:none!important}.master-summary .metric b{font-variant-numeric:tabular-nums}
@media(max-width:1050px){.master-controls{grid-template-columns:1fr 1fr}.nav-inner{overflow-x:auto}.nav-btn{white-space:nowrap;flex-shrink:0}.master-table{min-width:1050px}}
@media(max-width:600px){.master-controls{grid-template-columns:1fr 1fr;gap:11px}.master-controls label:first-child{grid-column:1/-1}.master-controls label:last-child{grid-column:1/-1}.master-controls input,.master-controls select,.master-form-grid input,.master-form-grid select,.master-form-grid textarea{font-size:16px}.master-pagination{font-size:10px;align-items:flex-start}.master-pagination>div{gap:7px}.master-pagination button{font-size:10px;padding:7px}.master-table th:first-child,.master-table td:first-child{position:sticky;left:0;z-index:1;min-width:160px;max-width:190px;background:#fff;box-shadow:1px 0 #e4e9e1}.master-table th:first-child{background:#0b3e2d}.master-dialog{max-height:calc(100dvh - 18px);max-width:calc(100vw - 14px)}.master-dialog form{max-height:calc(100dvh - 20px)}.master-dialog-heading,.master-dialog-body{padding:20px}.master-dialog-footer{padding:13px}.master-dialog-footer button{font-size:10px;padding:9px}.master-form-grid{grid-template-columns:1fr}.master-form-grid .full{grid-column:auto}.master-dialog h2{font-size:26px}.manager-access-form{padding:20px}.master-summary .metric span{font-size:10px}}

.summary.master-summary{grid-template-columns:repeat(6,minmax(0,1fr))}
.master-summary .metric-needs-trainer{background:#fff6ed}
.master-summary .metric-needs-trainer b{color:#873b0d}
.master-summary .metric-pending-approval{background:#f0f3ff}
.master-summary .metric-pending-approval b{color:#445a9b}
.master-status-pending-approval{background:#e6ebff;color:#445a9b}
.master-status-needs-assessment{background:#fff2c5;color:#8a6c1e}
.master-status-scheduled{background:#dcf0ed;color:#347e75}
.master-status-follow-up{background:#fce8f4;color:#93496e}
.master-status-on-hold{background:#f6eddf;color:#795f39}
.master-status-not-approved{background:#f9e3e0;color:#a3473c}
@media(max-width:1200px){.summary.master-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.master-summary .metric{border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.master-summary .metric:nth-child(3n){border-right:0}.master-summary .metric:nth-last-child(-n+3){border-bottom:0}}
@media(max-width:850px){.summary.master-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.master-summary .metric{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.master-summary .metric:nth-child(3n){border-right:1px solid var(--line)}.master-summary .metric:nth-child(2n){border-right:0}.master-summary .metric:nth-last-child(-n+3){border-bottom:1px solid var(--line)}.master-summary .metric:nth-last-child(-n+2){border-bottom:0}}
@media(max-width:520px){.summary.master-summary{grid-template-columns:1fr}.master-summary .metric,.master-summary .metric:nth-child(3n){border-right:0}.master-summary .metric:nth-last-child(-n+2){border-bottom:1px solid var(--line)}.master-summary .metric:last-child{border-bottom:0}}

.master-address{font-size:12px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere;min-width:155px;margin-top:6px}.master-address-missing{color:#925725;font-style:italic}.master-address-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0;color:#4e6758;font-size:13px}.master-address-summary small{flex-basis:100%;font-size:11px;color:#6e7e73}.master-address-source{padding:12px;background:#fff7e5;border:1px solid #e8d7b3;border-radius:7px;font-size:12px;line-height:1.6}.master-address-source p{white-space:pre-line;overflow-wrap:anywhere;margin:6px 0 0}

.master-opportunities{margin:18px 0 0;padding:18px;border:1px solid #d4e2d5;border-radius:10px;background:#f6faf3}.master-opportunities h2{margin:0 0 6px;font-size:16px;color:#19452f}.master-opportunities p,.master-opportunities small{font-size:12px;line-height:1.65;color:#5f7565}.master-opportunities p{margin:0 0 13px}.master-opportunity-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.master-opportunity-chips button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:44px;text-align:left;padding:11px 12px}.master-opportunity-chips button[aria-pressed="true"]{border-color:#347b4e;background:#e6f2e5;color:#17522d}.master-opportunity-chips strong{font-size:20px;font-variant-numeric:tabular-nums}@media(max-width:650px){.master-opportunity-chips{grid-template-columns:repeat(2,minmax(0,1fr))}.master-opportunities{padding:14px}}

/* Contain visually hidden table headings inside the horizontal scroller. */
.master-table-wrap{position:relative}

/* One consumer workspace with compact filters and complete contact details. */
.master-primary-filters{grid-template-columns:minmax(240px,2fr) repeat(2,minmax(180px,1fr));margin:20px 0 12px}
.master-filter-details{border:1px solid #dce5df;border-radius:8px;background:#fff;margin:0 0 12px}
.master-filter-details>summary{padding:13px 16px;min-height:44px;cursor:pointer;font-size:12px;font-weight:700;color:#315f45}
.master-filter-details .master-controls{margin:0;padding:4px 16px 16px;grid-template-columns:repeat(4,minmax(0,1fr))}
.master-filter-help{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 14px}
.master-filter-help p{margin:0;font-size:12px;line-height:1.6;color:#657a6c;max-width:900px}
.master-filter-help button{flex-shrink:0;min-height:44px}
.master-export-menu{position:relative;align-self:end}
.master-export-menu>summary{cursor:pointer;min-height:44px;padding:12px 17px;border:1px solid var(--green);border-radius:8px;background:#fff;font-size:13px;font-weight:700;color:var(--green);list-style:none}
.master-export-menu>summary::after{content:' ▾'}
.master-export-menu>div{position:absolute;right:0;top:calc(100% + 6px);z-index:5;display:grid;gap:6px;min-width:180px;padding:8px;border:1px solid #d4ded7;border-radius:8px;background:#fff;box-shadow:0 10px 25px #163c2b1c}
.master-export-menu button{white-space:nowrap;text-align:left;min-height:44px}
.master-export-menu>summary:focus-visible,.master-filter-details>summary:focus-visible{outline:2px solid #378858;outline-offset:2px}
.master-consumer-meta{font-size:11px;line-height:1.45;color:#617567;margin-top:5px}
.master-consumer-table{min-width:1180px}
.master-consumer-table td{vertical-align:top;overflow-wrap:anywhere;max-width:240px}
.master-consumer-table .master-name{font-size:13px;min-height:30px;line-height:1.4}
.master-consumer-table .master-uci{white-space:normal}
.master-frequency>strong{display:block;font-size:13px;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums;color:#215d3b}
.master-schedule-status{display:inline-block;font-size:10px;line-height:1.45;padding:4px 6px;margin-top:6px;border-radius:4px;background:#eaf3e6;color:#3c693b}
.master-schedule-status.is-review{background:#fff0cc;color:#78551e}
.master-schedule-status.is-missing{background:#eff1f0;color:#66786b}
.master-contact-text{white-space:pre-line;overflow-wrap:anywhere;line-height:1.55}
.master-call-links{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:7px}
.master-call-links a{display:inline-flex;align-items:center;min-height:36px;border:1px solid #d6e3d8;border-radius:6px;padding:7px 9px;color:#28603d;background:#f4f8f1;font-size:11px;text-decoration:none;white-space:nowrap}
.master-row-actions{display:grid;gap:7px;min-width:130px}
.master-row-actions button{min-height:44px;line-height:1.3}
.master-summary .metric{padding:16px 18px;min-height:0}
.master-summary .metric b{font-size:28px;margin:7px 0}
.master-summary .metric small{line-height:1.45}
@media(min-width:761px){
 .master-consumer-table{font-size:12px}
 .master-table.master-consumer-table td{padding:10px 12px;line-height:1.4}
 .master-consumer-table th{padding:10px 12px}
 .master-consumer-table .master-row-actions button,.master-consumer-table .master-call-links a{min-height:32px}
 .master-consumer-table .master-row-actions{gap:5px}
}
@media(max-width:1000px){
 .master-primary-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .master-primary-filters label:first-child{grid-column:1/-1}
 .master-filter-details .master-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .summary.master-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .master-summary .metric{padding:14px;min-width:0;border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}
 .master-summary .metric:nth-child(2n){border-right:0!important}
 .master-summary .metric:nth-last-child(-n+2){border-bottom:0!important}
 .master-summary .metric b{font-size:26px}
 .master-summary .metric small{font-size:11px;overflow-wrap:anywhere}
 .master-primary-filters label:last-child{grid-column:auto}
 .master-primary-filters input,.master-primary-filters select,.master-filter-details select{font-size:16px;min-height:44px}
 .master-filter-details .master-controls label{grid-column:auto}
 .master-filter-help{align-items:flex-start;flex-direction:column}
 .master-filter-help p{font-size:11px}
 .master-consumer-table{display:block;min-width:0;border-collapse:separate;background:transparent}
 .master-consumer-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .master-consumer-table tbody{display:grid;gap:14px;padding:12px;background:#f3f6ef}
 .master-consumer-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #d6e2d7;border-radius:9px;background:#fff;overflow:hidden}
 .master-consumer-table td,.master-consumer-table td:first-child{display:block;position:static;min-width:0;max-width:none;box-shadow:none;padding:13px 14px;border-bottom:1px solid #e8ede9;background:#fff}
 .master-consumer-table td::before{content:attr(data-label);display:block;color:#6a7d70;font-size:10px;font-weight:700;margin-bottom:6px}
 .master-consumer-table td:nth-child(1),.master-consumer-table td:nth-child(3),.master-consumer-table td:nth-child(4),.master-consumer-table td:nth-child(6),.master-consumer-table td:nth-child(7){grid-column:1/-1}
 .master-consumer-table td:nth-child(2){grid-column:1;grid-row:2}
 .master-consumer-table td:nth-child(5){grid-column:2;grid-row:2}
 .master-consumer-table td:last-child{border-bottom:0}
 .master-consumer-table td.master-empty{grid-column:1/-1}
 .master-consumer-table .master-name{font-size:14px;min-height:44px}
 .master-consumer-table .master-address{min-width:0;font-size:13px}
 .master-row-actions{grid-template-columns:1fr 1fr;min-width:0}
 .master-row-actions button,.master-call-links a{min-height:44px;font-size:12px!important}
 .master-pagination{flex-wrap:wrap;font-size:12px}
 .master-pagination button{min-height:44px;font-size:12px}
 .master-address-summary{font-size:12px}
}

@media(min-width:1201px){.summary.master-summary-with-weekend{grid-template-columns:repeat(7,minmax(0,1fr))}}
