/* Dashboard styles are scoped to avoid affecting the existing document portal. */
#credential-monitoring {
    --m-blue: #0755a0; --m-teal: #089b8b; --m-text: #172c45; --m-muted: #748196;
    color: var(--m-text); font-family: Inter, "Segoe UI", Arial, sans-serif; margin: 34px 0 38px;
    font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
#credential-monitoring *, #credential-monitoring *::before, #credential-monitoring *::after { box-sizing: border-box; }
#credential-monitoring h2, #credential-monitoring h3, #credential-monitoring p { margin: 0; }
#credential-monitoring button, #credential-monitoring select { font: inherit; }
#credential-monitoring button { cursor: pointer; }
#credential-monitoring button:focus-visible, #credential-monitoring select:focus-visible { outline: 3px solid #50b8ce; outline-offset: 3px; }
#credential-monitoring [hidden] { display: none !important; }
.m-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.m-icon { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.m-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.m-eyebrow { display: flex; align-items: center; gap: 7px; color: #087c77; font-size: 10px; font-weight: 750; letter-spacing: 1.8px; margin-bottom: 8px; }
.m-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #08a892; }
#credential-monitoring h2 { font-size: 25px; letter-spacing: -.8px; font-weight: 750; line-height: 1.3; }
.m-heading p { color: var(--m-muted); margin-top: 7px !important; font-size: 12px; }
.m-demo-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }
.m-demo-meta > span:last-child { font-size: 10px; color: var(--m-muted); }
.m-demo-badge { display: inline-flex; align-items: center; gap: 6px; color: #7d611d; background: #fff8e6; border: 1px solid #f0e1b9; border-radius: 6px; padding: 5px 9px; font-size: 10px; font-weight: 600; }
.m-demo-badge .m-icon { width: 13px; height: 13px; }
.m-stats { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 15px; margin-bottom: 23px; }
.m-stat { position: relative; padding: 20px; border: 1px solid #e3e9f0; background: white; border-radius: 12px; box-shadow: 0 3px 8px #18365403; overflow: hidden; }
.m-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #65748a; font-size: 11px; font-weight: 550; }
.m-stat-icon { display: grid; place-items: center; border-radius: 9px; width: 35px; height: 35px; flex-shrink: 0; }
.m-blue { background: #eef5ff; color: #2e76be; }
.m-amber { background: #fff5e5; color: #d39526; }
.m-teal { background: #eaf8f4; color: #0a9b86; }
.m-stat-value { font-size: 33px; line-height: 1.2; letter-spacing: -1.2px; font-weight: 750; margin: 12px 0; font-variant-numeric: tabular-nums; }
.m-stat-value > span { font-size: 12px; font-weight: 400; letter-spacing: 0; color: #8290a2; margin-left: 3px; }
.m-stat-bottom { display: flex; align-items: center; gap: 6px; color: #7a8698; font-size: 10px; }
.m-stat-primary { background: linear-gradient(115deg, #0757a4, #0873b7); color: white; border-color: transparent; }
.m-stat-primary::after { content: ''; position: absolute; width: 170px; height: 170px; border: 25px solid #ffffff05; border-radius: 50%; top: 36px; right: -60px; pointer-events: none; }
.m-stat-primary .m-stat-top { font-size: 9px; line-height: 1.6; letter-spacing: .65px; color: #e1efff; }
.m-stat-primary .m-stat-icon { background: #ffffff16; color: #fff; }
.m-stat-primary .m-stat-value { font-size: 39px; margin: 6px 0 9px; }
.m-stat-primary .m-stat-value > span, .m-stat-primary .m-stat-bottom { color: #d5e9fa; }
.m-light-pill { background: #ffffff20; padding: 2px 6px; border-radius: 4px; color: #fff; font-weight: 600; }
.m-primary-line { height: 3px; background: #ffffff24; margin-top: 13px; border-radius: 3px; overflow: hidden; }
.m-primary-line > span { display: block; height: 100%; background: #62dcc8; }
.m-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--m-teal); flex-shrink: 0; }
.m-dot-amber { background: #e5a538; }
.m-dot-muted { background: #e4eaf0; }
.m-workspace { background: #fff; border: 1px solid #e0e7ee; border-radius: 13px; box-shadow: 0 4px 14px #173a6204; overflow: hidden; }
.m-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fcfdfe; border-bottom: 1px solid #eaf0f5; padding: 16px 23px; }
.m-toolbar-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #52637a; }
.m-toolbar-title .m-icon { width: 17px; height: 17px; color: #8a98a9; }
.m-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.m-select-wrap select { appearance: none; border: 1px solid #dfe6ed; border-radius: 6px; padding: 8px 30px 8px 12px; color: #4a5d73; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23748196' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3'/%3E%3C/svg%3E") no-repeat right 10px center; font-size: 10px !important; max-width: 100%; cursor: pointer; }
.m-reset { color: var(--m-blue); border: 0; background: none; font-size: 10px !important; padding: 6px; }
.m-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; }
.m-comparison { padding: 24px 23px 18px; }
.m-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#credential-monitoring h3 { font-size: 14px; font-weight: 700; letter-spacing: -.2px; }
.m-panel-heading p { font-size: 10px; color: var(--m-muted); margin-top: 4px !important; }
.m-view-toggle { display: inline-flex; padding: 3px; border: 1px solid #e7ecf2; border-radius: 7px; background: #f6f8fa; flex-shrink: 0; }
.m-view-toggle button { background: transparent; border: 0; color: #8190a2; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 4px; font-size: 10px !important; }
.m-view-toggle .m-icon { width: 13px; height: 13px; }
.m-view-toggle [aria-pressed="true"] { color: var(--m-blue); background: white; box-shadow: 0 1px 4px #172c451a; }
.m-legend { display: flex; align-items: center; gap: 17px; margin: 21px 0 17px; color: #788699; font-size: 9px; }
.m-legend > span { display: flex; align-items: center; gap: 5px; }
.m-legend .m-dot { width: 6px; height: 6px; }
.m-legend-note { margin-left: auto; font-size: 8px; color: #8d99a9; }
.m-legend-note .m-icon { width: 12px; height: 12px; }
.m-chart-head, .m-chart-row { display: grid; grid-template-columns: 130px minmax(50px, 1fr) 108px 60px; gap: 12px; align-items: center; }
.m-chart-head { font-size: 8px; font-weight: 600; letter-spacing: .6px; color: #8794a6; padding: 0 9px 10px; border-bottom: 1px solid #f0f3f7; }
.m-chart-head > :nth-child(n+3) { text-align: right; }
.m-chart-row { width: 100%; background: none; border: 0; border-bottom: 1px solid #f2f5f8; padding: 10px 9px; text-align: left; border-radius: 4px; color: var(--m-text); transition: background .15s; }
.m-chart-row:hover { background: #f0f8fa; }
.m-region-name { font-size: 10px; font-weight: 600; letter-spacing: .15px; }
.m-bar { display: block; background: #edf1f5; height: 9px; border-radius: 3px; overflow: hidden; }
.m-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #14b2a3, #099788); border-radius: 3px; }
.m-row-count { text-align: right; font-size: 10px; font-variant-numeric: tabular-nums; }
.m-row-count strong { color: #233b53; font-weight: 700; }
.m-row-count > span { color: #9aa5b3; }
.m-rate { justify-self: end; color: #6e7f92; font-size: 9px; background: #f1f4f7; padding: 3px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; min-width: 45px; text-align: center; }
.m-rate-good { color: #0c8e7b; background: #eaf8f3; }
.m-chart-total { margin-top: 14px; padding: 12px; border-radius: 6px; background: #f3f7fb; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-chart-total > span { display: flex; gap: 7px; align-items: center; font-size: 9px; color: #4e6683; font-weight: 600; }
.m-chart-total .m-icon { width: 14px; height: 14px; }
.m-chart-total > strong { font-size: 13px; color: var(--m-blue); }
.m-chart-total small { font-size: 9px; font-weight: 400; color: #8492a3; }
.m-summary { background: linear-gradient(160deg, #f9fbfd, #f5f9fc); border-left: 1px solid #eaf0f5; padding: 28px 25px 20px; text-align: center; }
.m-summary-eyebrow { color: #8b99aa; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 8px; }
.m-summary-subtitle { color: #8b97a7; font-size: 9px; margin-top: 5px !important; }
.m-donut { height: 174px; width: 174px; border-radius: 50%; margin: 27px auto 19px; background: conic-gradient(from 0deg, #0aa494 0%, #0c9b90 var(--progress), #e6edf3 var(--progress), #e6edf3 100%); padding: 14px; transform: rotate(0deg); }
.m-donut > div { height: 100%; border-radius: 50%; background: #f8fbfd; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 0 0 5px #ffffff88; }
.m-donut strong { font-size: 35px; letter-spacing: -1.5px; line-height: 1.2; color: #223d57; }
.m-donut strong > span { font-size: 19px; letter-spacing: -.5px; }
.m-donut div > span { font-size: 10px; color: #8795a5; margin-top: 5px; }
.m-summary-count { font-size: 10px; color: #8b98a8; margin-bottom: 21px; }
.m-summary-count > strong { font-size: 15px; font-weight: 700; color: #2e4762; }
.m-summary-lines { border-top: 1px solid #e5ecf2; border-bottom: 1px solid #e5ecf2; padding: 15px 0; display: grid; gap: 13px; text-align: left; }
.m-summary-lines > div { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.m-summary-lines span { display: flex; align-items: center; gap: 8px; color: #79889b; }
.m-summary-lines strong { color: #314961; font-weight: 650; }
.m-insight { margin-top: 20px; padding: 12px 10px; border: 1px solid #daeee9; background: #eff9f6; border-radius: 7px; display: flex; align-items: center; gap: 9px; text-align: left; }
.m-insight-icon { color: #159c88; }
.m-insight-icon .m-icon { width: 22px; height: 22px; }
.m-insight div { flex: 1; }
.m-insight div > span { display: block; color: #6f958b; font-size: 9px; margin-bottom: 3px; }
.m-insight strong { display: flex; justify-content: space-between; gap: 5px; color: #267b6a; font-size: 10px; font-weight: 650; }
.m-insight b { font-weight: 500; font-size: 9px; }
.m-summary-footnote { color: #98a4b3; font-size: 9px; line-height: 1.7; margin-top: 14px !important; }
.m-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 23px; border-top: 1px solid #eaf0f5; color: #8b98a9; font-size: 9px; }
.m-panel-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
.m-panel-footer .m-icon { width: 13px; height: 13px; }
.m-footer-tag { letter-spacing: .8px; font-size: 8px; white-space: nowrap; color: #a0aaba; }
.m-demo-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; padding: 0 2px; color: #929dae; font-size: 10px; line-height: 1.7; }
.m-demo-note .m-icon { width: 15px; height: 15px; margin-top: 1px; }
.m-demo-note strong { color: #76879c; font-weight: 600; }
.m-table-scroll { overflow-x: auto; }
.m-table { border-collapse: collapse; width: 100%; min-width: 430px; font-size: 10px; font-variant-numeric: tabular-nums; }
.m-table th, .m-table td { padding: 10px 9px; border-bottom: 1px solid #edf1f5; text-align: right; white-space: nowrap; }
.m-table th:first-child { text-align: left; }
.m-table thead { color: #8b98a9; background: #f7f9fb; font-size: 9px; }
.m-table button { color: #304860; background: none; border: 0; padding: 2px 0; font-weight: 600 !important; text-align: left; }
.m-table button:hover { color: #078b7c; text-decoration: underline; }
.m-table .m-table-submitted { color: #078b7c; font-weight: 700; }
.m-table tfoot { background: #f1f6fb; color: #0755a0; font-weight: 700; }
.m-dialog { position: fixed; inset: 0; width: min(520px, calc(100% - 32px)); padding: 30px; border: 1px solid #e0e8f0; border-radius: 16px; color: var(--m-text); background: #fff; box-shadow: 0 24px 100px #0e243b40; margin: auto; max-height: 90vh; overflow-y: auto; }
.m-dialog::backdrop { background: #102d4b70; backdrop-filter: blur(3px); }
.m-dialog-close { position: absolute; right: 17px; top: 17px; background: #f2f5f8; border: 0; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; color: #748196; }
.m-detail-eyebrow { margin-top: 25px; }
#credential-monitoring .m-dialog h3 { font-size: 25px; margin-bottom: 7px; }
.m-dialog p { font-size: 11px; color: #8290a1; }
.m-detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 25px 0; }
.m-detail-stats > div { padding: 14px 10px; background: #f4f8fb; border-radius: 8px; }
.m-detail-stats span { display: block; color: #7e8b9c; font-size: 10px; }
.m-detail-stats strong { display: block; margin-top: 8px; font-size: 25px; }
.m-detail-stats > div:nth-child(2) strong { color: #069b88; }
.m-detail-progress > span { display: flex; justify-content: space-between; font-size: 11px; color: #78869a; margin-bottom: 9px; }
.m-detail-progress strong { color: #088a7d; }
.m-detail-note { margin-top: 22px; display: flex; gap: 9px; padding: 14px; border: 1px solid #e2ebf3; background: #f8fbfd; border-radius: 8px; line-height: 1.8; }
.m-detail-note .m-icon { width: 16px; height: 16px; color: #6f8ba8; margin-top: 3px; }
.m-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1450px) {
    .m-chart-row { padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 1100px) {
    .m-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-content-grid { grid-template-columns: minmax(0, 1fr) 240px; }
    .m-summary { padding: 25px 17px; }
    .m-chart-head, .m-chart-row { grid-template-columns: 112px minmax(40px, 1fr) 80px 48px; gap: 8px; }
    .m-legend-note { display: none !important; }
    .m-chart-head { font-size: 7px; }
    .m-region-name { font-size: 9px; }
    .m-comparison { padding: 22px 16px 18px; }
    .m-panel-heading { align-items: flex-start; }
    .m-view-toggle button > span { display: none; }
    .m-view-toggle button::after { content: attr(data-view); font-size: 0; }
}
@media (max-width: 800px) {
    .m-content-grid { grid-template-columns: minmax(0, 1fr); }
    .m-summary { border-left: 0; border-top: 1px solid #eaf0f5; }
    #m-summary-content { max-width: 350px; margin: auto; }
    .m-toolbar { align-items: flex-start; flex-direction: column; padding: 15px 17px; }
    .m-controls { width: 100%; }
    .m-select-wrap { flex: 1; min-width: 0; }
    .m-select-wrap select { width: 100%; }
    .m-chart-head, .m-chart-row { grid-template-columns: 130px minmax(40px, 1fr) 90px 55px; }
    .m-region-name { font-size: 10px; }
    .m-panel-footer { padding: 13px 17px; }
    .m-footer-tag { display: none; }
}
@media (max-width: 520px) {
    #credential-monitoring { margin-top: 28px; }
    .m-heading { flex-direction: column; align-items: flex-start; gap: 13px; }
    #credential-monitoring h2 { font-size: 23px; }
    .m-heading p { font-size: 11px; line-height: 1.7; }
    .m-demo-meta { flex-direction: row; align-items: center; gap: 10px; }
    .m-demo-meta > span:last-child { font-size: 9px; }
    .m-stats { gap: 10px; }
    .m-stat { padding: 15px 12px; }
    .m-stat-top { font-size: 10px; gap: 5px; }
    .m-stat-icon { width: 28px; height: 28px; border-radius: 6px; }
    .m-stat-icon .m-icon { width: 17px; height: 17px; }
    .m-stat-primary .m-stat-top { font-size: 7px; letter-spacing: .35px; }
    .m-stat-value, .m-stat-primary .m-stat-value { font-size: 29px; margin: 12px 0; }
    .m-stat-value > span { font-size: 10px; }
    .m-stat-bottom { font-size: 8px; gap: 4px; line-height: 1.7; }
    .m-primary-line { margin-top: 10px; }
    .m-stat-bottom .m-dot { width: 5px; height: 5px; }
    .m-chart-head, .m-chart-row { grid-template-columns: 105px minmax(25px, 1fr) 67px 43px; gap: 5px; padding-left: 0; padding-right: 0; }
    .m-region-name { font-size: 8px; }
    .m-chart-head { font-size: 6px; letter-spacing: .15px; }
    .m-row-count { font-size: 9px; }
    .m-rate { font-size: 8px; min-width: 40px; padding: 3px; }
    .m-bar { height: 7px; }
    .m-comparison { padding: 20px 13px 15px; }
    #credential-monitoring .m-panel-heading h3 { font-size: 13px; }
    .m-panel-heading p { font-size: 9px; max-width: 210px; }
    .m-chart-total { padding: 11px 7px; gap: 6px; }
    .m-chart-total > span { font-size: 8px; gap: 5px; }
    .m-chart-total strong { font-size: 11px; }
    .m-chart-total small { font-size: 8px; }
    .m-dialog { padding: 25px 20px; }
    .m-detail-stats { gap: 7px; }
    .m-detail-stats span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { #credential-monitoring * { transition: none !important; } }
