/* Shared PDI dashboard presentation. Keep operational states in each module. */
:root{
 --pdi-blue:#2684ee;--pdi-blue-dark:#1766ba;--pdi-blue-soft:#e7f3ff;
 --pdi-sidebar-width:248px;--pdi-text:#252b32;--pdi-muted:#697583;
 --pdi-border:#e5e9ee;--pdi-panel-header:#f7f8fa;
 --green:#2684ee;--navy:#193e60;--blue:#2684ee;--ink:#252b32;
 --muted:#697583;--line:#e5e9ee;--paper:#fff;
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
 color:var(--pdi-text);background:#fff;
}
body{background:#fff;color:var(--pdi-text);font-family:inherit}
button,a.button,.primary,.secondary{border-radius:8px;min-height:42px;font-weight:600;box-shadow:none}
button:hover,a.button:hover{filter:none}
button:not(.secondary):not(.stat):not(.candidate-name):not(.sort-heading):not(.nav):not([data-view]):not(.text-button):not(.icon):not(.danger):hover{filter:brightness(.96)}
button.secondary,a.button.secondary,.secondary{background:#fff;color:#405269;border:1px solid var(--pdi-border)}
button.secondary:hover,a.button.secondary:hover,.secondary:hover{background:#f5f8fc;border-color:#cad8e7}
input,select,textarea{background:#fff;border-color:#dce2e9;border-radius:8px;color:var(--pdi-text)}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #a5cfff;outline-offset:2px}
input[type=checkbox]{accent-color:var(--pdi-blue)}
aside,.portal-sidebar{width:var(--pdi-sidebar-width);background:#fff;border-right:1px solid var(--pdi-border);padding:0 22px 22px;color:#536171;overflow-y:auto}
aside .brand,.portal-sidebar-brand{height:156px;min-height:156px;margin:0 0 14px;padding:28px 10px 20px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;border-bottom:1px solid var(--pdi-border)}
aside .brand img,.portal-sidebar-brand .portal-brand img{width:108px;height:56px;object-fit:contain}
aside .brand strong{font-size:15px;font-weight:650;white-space:normal;line-height:1.45;letter-spacing:0}
aside .tag{display:none}
aside .nav-label{font-size:10px;letter-spacing:1px;margin:14px 12px 8px}
aside nav{display:flex;flex-direction:column;gap:5px;overflow:visible}
aside nav button,aside nav a,.module-link,.portal-sidebar nav a{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:11px 12px;margin:0;border:1px solid transparent;border-left:3px solid transparent;border-radius:7px;background:transparent;color:#4e5a69;font-size:13px;font-weight:550;text-decoration:none;text-align:left;line-height:1.5;white-space:normal}
aside nav button svg,aside nav a svg{width:19px;height:19px;color:#8b97a5;flex-shrink:0}
aside nav button:hover,aside nav a:hover,.portal-sidebar nav a:hover{background:#f4f8fc;filter:none}
aside nav button.selected,aside nav a[aria-current=page],aside nav button.active,.portal-sidebar nav a[aria-current=page]{background:var(--pdi-blue-soft);border-left-color:var(--pdi-blue);color:#1875d6;font-weight:650}
aside nav button.selected svg{color:var(--pdi-blue)}
.sidefoot,.portal-sidebar-footer{margin-top:auto;padding:22px 10px 0;border-top:1px solid var(--pdi-border);font-size:12px;line-height:1.8;color:var(--pdi-muted)}
.main,.portal-main{margin-left:var(--pdi-sidebar-width);min-width:0}
.main>header,.portal-header{background:#fff;border-bottom:1px solid var(--pdi-border);min-height:80px;padding:18px 32px;gap:20px}
.header-actions{flex-wrap:wrap;gap:10px;justify-content:flex-end}
.greeting{font-size:22px;letter-spacing:-.5px;margin-top:5px;color:var(--pdi-text)}
.page-body,.portal-wrap{max-width:1800px;margin:auto;padding:30px 32px 40px}
h1{font-size:27px;font-weight:650;letter-spacing:-.7px;color:var(--pdi-text)}
h2{font-size:16px;letter-spacing:-.2px;color:#35404c}
h3{font-size:19px;color:#35404c}
.eyebrow{font-size:10px;letter-spacing:1px;color:#687583}
.sub,.muted{color:var(--pdi-muted)}
.intro{margin-bottom:26px}.intro h1{margin:8px 0}.intro .sub{margin:6px 0 0}
.stats,.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:22px 0 28px}
.stat,.metric{position:relative;background:#fbfdff;border:1px solid var(--pdi-border);border-radius:12px;padding:23px 22px;box-shadow:0 1px 2px #152b4210;min-width:0;min-height:138px;text-align:left}
.stat .eyebrow,.metric span{display:block;padding-right:34px;font-size:10px;font-weight:600;letter-spacing:.7px;color:#697583}
.stat strong,.metric b{display:block;font-size:32px;font-weight:650;line-height:1.2;letter-spacing:-.8px;color:#242a31;margin:17px 0 8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stat small{display:block;color:#73808c;font-size:12px;line-height:1.6}
button.stat-link,.portal-stat-button{min-height:138px}
button.stat-link:hover,.portal-stat-button:hover{background:#f5faff;border-color:#b8d8f8;box-shadow:0 2px 8px #2684ee0d;filter:none}
.panel,.card{border-color:var(--pdi-border);border-radius:12px;background:#fff;box-shadow:0 1px 2px #152b4209;padding:22px}
.panel>h2:first-child,.card>h2:first-child{margin:-22px -22px 20px;padding:18px 22px;background:var(--pdi-panel-header);border-bottom:1px solid var(--pdi-border);border-radius:12px 12px 0 0;font-size:15px;line-height:1.5}
.panel:not(.tablewrap)>.row:first-child{margin:-22px -22px 20px;padding:16px 22px;background:var(--pdi-panel-header);border-bottom:1px solid var(--pdi-border);border-radius:12px 12px 0 0}
.panel>.row:first-child h2{margin:0;font-size:15px}
.tablewrap{padding:0;overflow-x:auto;max-width:100%}
.tablewrap>.row:first-child{margin:0;padding:18px 22px;background:var(--pdi-panel-header);border-bottom:1px solid var(--pdi-border)}
.tablewrap>.row:first-child h2{margin:0}
th{background:#f8fafc;color:#61707f;font-size:10px;letter-spacing:.6px}
td,th{padding:16px 14px;border-bottom-color:#edf0f4}
tbody tr:hover{background:#f9fbfe}
.tablewrap>.empty{margin:0}
.sort-heading{color:#61707f;background:none}
.candidate-name,.phone-number,.phone-display{color:#1766ba}
.avatar{background:#eaf3ff;color:#2684ee;border-radius:10px}
.badge{border-radius:6px}.note{background:#f8fafc;border-color:#e9edf2;color:#526372}
.birthday-panel{border-top:1px solid var(--pdi-border)}
.chart-columns{gap:20px}.bar-fill{background:#2684ee}
.open-title-count{background:#f6faff;border-color:#dde9f6;color:#305a80}
.open-title-count[aria-pressed=true]{background:#e7f3ff;border-color:#2684ee}
.followup-header .secondary.followup-attention,.followup-header a.button.secondary.followup-attention,[data-overview-followups].followup-attention{background:#fff3cd;color:#805800;border:1px solid #e7b54b;box-shadow:0 0 0 2px #fff3cd66}
.followup-header .followup-attention .bubble-count{background:#bd3c2b;color:#fff}
.followup-header .followup-attention:hover{background:#ffe7a8}
.portal-intro{background:none;color:var(--pdi-text);padding:0;margin:0 0 28px;border-radius:0}
.portal-intro h1{font-size:27px;letter-spacing:-.7px;margin:6px 0 8px}
.portal-intro .eyebrow,.portal-intro p{color:var(--pdi-muted)}
.portal-intro p{max-width:none;font-size:14px;margin:0}
.portal-intro .actions{margin-top:16px}
.portal-header-inner{max-width:none}
.portal-sidebar-brand .portal-brand{display:flex;flex-direction:column;align-items:flex-start;gap:9px;font-size:16px;letter-spacing:-.2px}
.portal-sidebar-brand .portal-brand small{font-size:10px;color:#7a8794;letter-spacing:0}
.portal-nav-label{margin:18px 12px 6px;font-size:10px}
.portal-workspaces{gap:20px}
.portal-workspace{border-color:var(--pdi-border);border-radius:12px;padding:24px;box-shadow:0 1px 2px #152b4209}
.portal-workspace h2{font-size:19px;color:#303c49;margin:20px 0 8px}
.portal-workspace p{font-size:13px;color:#6b7886;line-height:1.7}
.portal-workspace-symbol{background:#eaf3ff;color:#2684ee;border-radius:9px;width:38px;height:38px}
.portal-workspace-bottom{border-color:var(--pdi-border)}
.portal-attention{background:#fffaf1;border-color:#f2d69a}
.portal-attention strong{color:#a66a00}
.portal-person{border-color:#edf0f4;padding:18px 0}
.portal-person .actions{margin:0}
.portal-panel{padding:22px}
.portal-sidebar-close{min-height:38px}
dialog{border-color:var(--pdi-border);border-radius:14px;box-shadow:0 20px 70px #152b4233}
dialog::backdrop{background:#142d4b66}
.login,.login-card{border-color:var(--pdi-border);border-radius:14px;box-shadow:0 6px 28px #152b4209}
.stat[data-dashboard-icon]::after,.metric[data-dashboard-icon]::after{content:'';position:absolute;right:20px;top:20px;width:30px;height:30px;border-radius:8px;background:#e8f2ff}
.stat[data-dashboard-icon]::before,.metric[data-dashboard-icon]::before{content:'';position:absolute;right:26px;top:26px;width:18px;height:18px;z-index:1;background:#2684ee;mask:var(--pdi-card-icon) center/contain no-repeat;-webkit-mask:var(--pdi-card-icon) center/contain no-repeat}
.stat[data-dashboard-icon=attention]::after,.metric[data-dashboard-icon=attention]::after{background:#fff0ef}
.stat[data-dashboard-icon=attention]::before,.metric[data-dashboard-icon=attention]::before{background:#e9534f}
aside nav [data-dashboard-nav-icon]::before{content:'';flex:0 0 18px;width:18px;height:18px;background:#8996a5;mask:var(--pdi-nav-icon) center/contain no-repeat;-webkit-mask:var(--pdi-nav-icon) center/contain no-repeat}
aside nav .selected[data-dashboard-nav-icon]::before,aside nav .active[data-dashboard-nav-icon]::before,aside nav [aria-current=page][data-dashboard-nav-icon]::before{background:#2684ee}
@media(min-width:761px){aside:not(.portal-sidebar){height:100dvh}}
@media(max-width:1200px){.stats,.metrics{gap:14px}.page-body,.portal-wrap{padding-left:24px;padding-right:24px}.main>header{padding-left:24px;padding-right:24px}.header-actions{max-width:65%}}
@media(max-width:1100px){.stats,.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.portal-main{margin-left:0}.portal-sidebar{width:270px;padding-top:14px}.portal-sidebar-brand{height:130px;min-height:130px}.portal-main .portal-account{width:auto}.portal-sidebar-close{right:0;top:0}}
@media(max-width:760px){
 aside:not(.portal-sidebar){position:static;width:100%;padding:10px 16px 12px;height:auto;overflow:visible;border-right:0;border-bottom:1px solid var(--pdi-border)}
 aside:not(.portal-sidebar) .brand{height:auto;min-height:65px;flex-direction:row;align-items:center;justify-content:flex-start;margin:0 0 10px;padding:0;gap:12px;border:0}
 aside:not(.portal-sidebar) .brand img{width:76px;height:48px}aside .brand strong{font-size:15px}
 aside:not(.portal-sidebar) nav{flex-direction:row;overflow-x:auto;gap:5px;flex-wrap:nowrap;padding:2px 0 5px}
 aside:not(.portal-sidebar) nav button,aside:not(.portal-sidebar) nav a{width:auto;flex-shrink:0;white-space:nowrap;padding:10px 12px;font-size:12px;min-height:44px}
 .main{margin-left:0}.main>header,.portal-header{padding:16px;min-height:0}.header-actions{max-width:none;width:100%;justify-content:flex-start;gap:8px}
 .page-body,.portal-wrap{padding:22px 16px 32px}.intro{margin-bottom:20px}h1,.portal-intro h1{font-size:25px}
 .stats,.metrics{gap:10px;margin:18px 0 22px}.stat,.metric{padding:18px 14px;min-height:132px}
 .stat .eyebrow,.metric span{font-size:10px;letter-spacing:.3px;padding-right:27px}.stat strong,.metric b,.finance-stats .stat strong{font-size:27px;margin-top:14px}
 .stat small{font-size:11px}.stat[data-dashboard-icon]::after,.metric[data-dashboard-icon]::after{right:12px;top:15px;width:25px;height:25px}.stat[data-dashboard-icon]::before,.metric[data-dashboard-icon]::before{right:17px;top:20px;width:15px;height:15px}
 button.stat-link,.portal-stat-button{min-height:132px}.panel,.card,.portal-panel{padding:18px}
 .panel>h2:first-child,.card>h2:first-child{margin:-18px -18px 18px;padding:16px 18px}
 .panel:not(.tablewrap)>.row:first-child{margin:-18px -18px 18px;padding:14px 18px}
 .tablewrap{padding:14px}.tablewrap>.row:first-child{margin:-14px -14px 12px;padding:14px}
 .tablewrap tr{background:#fff;border-color:var(--pdi-border)}
 .portal-main .portal-account{width:auto;margin-left:auto}.portal-workspace{padding:20px}
 input,select,textarea{font-size:16px;min-height:44px}
}
@media(max-width:420px){.portal-main .portal-account{width:100%;margin-left:0}.stat .eyebrow{max-width:150px}.header-actions>button{padding-left:10px;padding-right:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
@media print{.main,.portal-main{margin-left:0}.stat::before,.stat::after,.metric::before,.metric::after{display:none}.page-body{max-width:none;padding:0}}
