.surveysPanel.surveysDashboard{--survey-tint:color-mix(in srgb,var(--surface-alt) 55%,var(--primary-soft));display:grid;gap:14px;min-width:0;width:100%;padding:0;border:0;background:transparent;box-shadow:none}
:root[data-theme=day] .surveysDashboard{--survey-tint:#f0f4ff}
.surveyDashboardHeader{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 0 0;min-width:0}
.surveyHeading{min-width:260px;flex:1}.surveyHeading>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.surveysDashboard .surveyHeading h2{font-size:22px;margin:0;letter-spacing:-.4px;line-height:1.3}.surveyMonthBadge{font-size:10px;background:var(--primary-soft);color:var(--primary);padding:4px 7px;border-radius:4px;text-transform:capitalize;white-space:nowrap}
.surveyHeading p{display:flex;gap:8px 14px;flex-wrap:wrap;margin:8px 0 0;font-size:10px;line-height:1.5;color:var(--muted-strong)}.surveySyncText{color:var(--primary)}
.surveyHeaderControls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;flex:0 1 620px;min-width:0}
.surveySearch{display:flex;align-items:center;gap:7px;min-width:200px;flex:1 1 230px;height:32px;padding:0 9px;border:1px solid var(--border-soft);border-radius:4px;background:var(--surface);color:var(--primary)}
.surveysDashboard .surveySearch input{min-width:0;width:0;flex:1;border:0!important;background:transparent!important;box-shadow:none!important;outline:0;min-height:0;height:30px;margin:0;padding:0;font-size:11px}.surveySearch:focus-within{outline:2px solid var(--primary-soft);border-color:var(--primary)}
.surveysDashboard .surveyHeaderControls select,.surveysDashboard .surveyQuickBar select{border:1px solid var(--border-soft);border-radius:4px;min-height:32px;width:auto;max-width:100%;font-size:10px;padding:6px 26px 6px 9px;background-color:var(--surface);color:var(--text)}
.surveysDashboard .surveyButton{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;border:1px solid var(--border-soft);border-radius:4px;padding:6px 9px;background:var(--surface);color:var(--text);font-size:10px;line-height:1.3;font-weight:500;white-space:nowrap;text-decoration:none;cursor:pointer}.surveysDashboard .surveyButton:hover{background:var(--primary-soft);color:var(--primary)}.surveysDashboard .surveyButton:disabled{opacity:.5;cursor:default}.surveyExport{width:32px}
.surveyKpiGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.surveyKpi{padding:12px 14px;background:var(--surface);border:1px solid var(--border-soft);border-radius:6px;min-width:0;--survey-card-accent:var(--primary)}.surveyKpi-blue{--survey-card-accent:#1484ba}.surveyKpi-amber{--survey-card-accent:var(--warning-text)}
.surveyKpi>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:5px;color:var(--muted-strong);font-size:9px;letter-spacing:.4px;text-transform:uppercase;line-height:1.5}.surveyKpi>div:first-child i{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:5px;background:var(--primary-soft);color:var(--survey-card-accent)}.surveyKpi-amber>div:first-child i{background:var(--warning-bg)}
.surveyKpi>strong{display:inline-block;margin:7px 7px 8px 0;font-size:26px;color:var(--survey-card-accent);font-weight:600;line-height:1;font-variant-numeric:tabular-nums}.surveyKpi>small{display:inline;color:var(--muted-strong);font-size:9px;line-height:1.4}.surveyKpiTrack{height:4px;border-radius:3px;background:var(--survey-tint);overflow:hidden}.surveyKpiTrack i{display:block;height:100%;background:var(--survey-card-accent);border-radius:3px}
.surveyQuickBar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:var(--survey-tint);padding:8px 10px;border-radius:5px;min-width:0}.surveyQuickLabel{display:flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap;color:var(--primary)}.surveyQuickFilters{display:flex;flex-wrap:wrap;gap:4px;flex:1}
.surveysDashboard .surveyQuickFilters button{border:0;min-height:25px;border-radius:20px;padding:4px 9px;background:var(--surface);color:var(--muted-strong);font-weight:500;font-size:10px;white-space:nowrap}.surveysDashboard .surveyQuickFilters button[aria-pressed=true]{background:var(--primary);color:var(--primary-contrast,#fff)}.surveysDashboard .surveyQuickBar select{min-height:27px;font-size:9px;max-width:240px;background-color:transparent}
.surveyTableCard{min-width:0;background:var(--surface);border:1px solid var(--border-soft);border-radius:6px;overflow:hidden}.surveyTableWrap{overflow-x:auto;max-width:100%;min-width:0;scrollbar-width:thin}.surveysDashboard .surveyBoardTable{table-layout:fixed;width:100%;min-width:1100px;border-collapse:collapse;margin:0}
.surveysDashboard .surveyBoardTable th{background:var(--survey-tint)!important;color:var(--muted-strong);font-size:9px;letter-spacing:.3px;text-transform:uppercase;font-weight:600;padding:11px 10px;height:40px;text-align:left;white-space:normal;line-height:1.5;word-break:normal;overflow-wrap:normal}
.surveysDashboard .surveyBoardTable td{min-width:0!important;max-width:none!important;padding:12px 10px!important;height:78px;vertical-align:top;border-bottom:1px solid var(--border-soft)!important;font-size:11px;line-height:1.5;white-space:normal;word-break:normal;overflow:hidden;text-overflow:ellipsis}.surveysDashboard .surveyBoardTable td:last-child{min-width:0!important}
.surveysDashboard .surveyBoardTable tbody tr:hover td{background:var(--surface-alt)}.surveysDashboard .surveyBoardTable tr.surveyIsCompleted td{background:color-mix(in srgb,var(--primary-soft) 55%,var(--surface))}
.surveyClientName{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;font-weight:500;color:var(--text)}.surveysDashboard .surveyInn{display:block;margin:3px 0 0;color:var(--muted);font-size:9px;white-space:nowrap;font-variant-numeric:tabular-nums}
.surveyDivisionBadge{display:inline-block;max-width:100%;padding:3px 5px;background:var(--survey-tint);color:var(--primary);border-radius:3px;font-size:9px;line-height:1.4}.surveyFdName{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:10px;line-height:1.5}.surveyNumberBadge{display:inline-block;background:var(--survey-tint);padding:2px 5px;border-radius:3px;font-size:11px;color:var(--primary);font-variant-numeric:tabular-nums}.surveyIsCompleted .surveyNumberBadge{background:var(--primary);color:var(--primary-contrast,#fff)}
.surveyMeetingDate{display:inline-block;max-width:100%;font-size:10px;font-weight:500;line-height:1.5;padding:4px 6px;border-radius:4px;background:var(--primary-soft);color:var(--primary);font-variant-numeric:tabular-nums}.surveyMeetingNote{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:10px;color:var(--muted-strong);line-height:1.5}
.surveysDashboard .surveyBoardTable .surveyFlagCell{text-align:center;padding-top:16px!important}.surveyStaticCheck{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:2px;background:var(--survey-tint);color:var(--primary-contrast,#fff)}.surveyStaticCheck svg{width:12px;height:12px}.surveyStaticCheck.isChecked{background:var(--primary)}.surveyScheduledDot{display:inline-block;width:14px;height:14px;border-radius:50%;background:var(--survey-tint)}.surveyScheduledDot.isChecked{background:var(--primary);border:4px solid var(--primary-soft)}
.surveysDashboard .surveyBoardTable input[type=checkbox]{display:inline-block;appearance:auto;accent-color:var(--primary);width:15px;height:15px;min-height:0;margin:0;padding:0;cursor:pointer;vertical-align:top}.surveysDashboard .surveyBoardTable input[type=checkbox]:disabled{cursor:default}
.surveysDashboard .surveyBoardComment{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:42px;height:42px;padding:6px 7px;border:1px solid transparent;border-radius:4px;background:var(--survey-tint);color:var(--text);font-size:10px;line-height:1.45;resize:vertical;font-weight:400}.surveysDashboard .surveyBoardComment:focus{outline:0;border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-soft)}.surveysDashboard .surveySaveStatus{display:block;margin-top:4px;font-size:9px;line-height:1.4;color:var(--primary);overflow-wrap:anywhere}.surveysDashboard .surveySaveStatus[role=alert]{color:var(--danger)}
.surveyAmComment>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere}.surveysDashboard .surveyRetry{border:0;background:transparent;color:var(--danger);padding:4px 0;font-size:10px;min-height:24px}
.surveysDashboard .surveyDetailButton{display:grid;place-items:center;border:0;background:transparent;color:var(--muted);padding:3px;min-height:25px;width:25px;border-radius:4px}.surveysDashboard .surveyDetailButton:hover{color:var(--primary);background:var(--primary-soft)}.surveysDashboard .surveyEmpty{height:130px;text-align:center;vertical-align:middle;color:var(--muted);font-size:12px}
.surveyTableFooter{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;background:var(--survey-tint);padding:10px 12px;font-size:10px;color:var(--muted-strong)}.surveyTableFooter>span:last-child{color:var(--primary)}
.surveyWarning{padding:12px 14px;font-size:12px;color:var(--danger);background:var(--danger-soft);border-radius:6px;margin:0;line-height:1.5}.surveySourceNote{margin:0;color:var(--muted);font-size:11px}
.surveyDetailOverlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(12,30,40,.35)}.surveyDetail{width:min(640px,100%);max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;background:var(--surface);color:var(--text);border:1px solid var(--border-soft);border-radius:12px;padding:22px;box-shadow:0 18px 60px rgba(0,0,0,.16)}.surveyDetail header{display:flex;align-items:flex-start;gap:15px;justify-content:space-between}.surveyDetail header small{font-size:11px;color:var(--muted)}.surveysDashboard .surveyDetail h3{font-size:19px;line-height:1.4;margin:5px 0 0}.surveysDashboard .surveyDetailClose{border:1px solid var(--border-soft);color:var(--muted-strong);background:var(--surface);border-radius:50%;width:32px;min-height:32px;padding:0;font-size:22px;flex:none}.surveyDetailFacts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.surveyDetailFacts>div{background:var(--surface-alt);border-radius:5px;padding:10px}.surveyDetailFacts dt{font-size:10px;color:var(--muted);margin-bottom:6px}.surveyDetailFacts dd{font-size:12px;margin:0;line-height:1.5;overflow-wrap:anywhere}.surveyDetail h4{font-size:12px;margin:18px 0 6px}.surveyFullText{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6;color:var(--muted-strong)}
@media(max-width:1100px){.surveyDashboardHeader{flex-wrap:wrap}.surveyHeaderControls{flex:1 1 100%;justify-content:flex-start}.surveyKpiGrid{gap:8px}.surveyKpi{padding:10px}.surveyKpi>small{display:block;margin:0 0 8px}.surveyKpi>strong{margin-bottom:5px}.surveyHeading p{gap:7px 12px}}
@media(max-width:650px){.surveyKpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.surveysDashboard .surveyHeading h2{font-size:20px}.surveyHeaderControls .surveySearch{flex-basis:100%}.surveyQuickBar{align-items:flex-start}.surveyQuickLabel{width:100%}.surveysDashboard .surveyQuickBar select{max-width:100%;width:100%}.surveyDetailOverlay{padding:12px}.surveyDetail{padding:16px;max-height:calc(100dvh - 24px)}.surveyDetailFacts{grid-template-columns:minmax(0,1fr)}}
/* Override the shared legacy table nowrap rules within this dashboard. */
.surveysDashboard .surveyBoardTable th{white-space:normal!important;overflow:hidden;text-overflow:ellipsis}
.surveysDashboard .surveyBoardTable th:nth-child(n+6):nth-child(-n+8),.surveysDashboard .surveyBoardTable th:last-child{padding-left:4px;padding-right:4px;font-size:8px;letter-spacing:0;text-align:center}
.surveysDashboard .surveyClientName,.surveysDashboard .surveyFdName,.surveysDashboard .surveyDivisionBadge,.surveysDashboard .surveyMeetingDate,.surveysDashboard .surveyMeetingNote{white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important}
