/* THRS V14.71 — Performance Reviews colors ONLY (Dark Mode).
   Approved V14.31 hero chart/waves, geometry, tabs, cycle cards, status
   values, dialogs, workflows and Light Mode are unchanged. */
html[data-theme="dark"] body .thrs-shell .thrs-page-performance{
 --pm31-paper:#142d40!important;
 --pm31-soft:#203d51!important;
 --pm31-ink:#edf4f8!important;
 --pm31-muted:#bfd1dd!important;
 --pm31-edge:#4e6b80!important;
 --pm31-gold:#d3a654!important;
 --pm31-elev:0 8px 19px rgba(0,9,23,.25),inset 0 1px 0 rgba(255,255,255,.035)!important;
 color-scheme:dark!important;
}
/* Keep hero waves/gold chart exactly as approved. Repaint white action only. */
html[data-theme="dark"] body .thrs-shell .thrs-page-performance>.page-header .thrs-btn-secondary{
 background:linear-gradient(145deg,#1a3a4e,#102c40)!important;
 color:#e9f3f9!important;
 border-color:#59778b!important;
 box-shadow:0 5px 14px rgba(0,8,19,.20)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance>.page-header .thrs-btn-secondary:hover{
 background:linear-gradient(145deg,#26475c,#173649)!important;
 border-color:#b4965b!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance>.page-header .thrs-btn-primary{
 background:linear-gradient(125deg,#e3bd75,#cba050 75%,#bd934b)!important;
 color:#132e40!important;
 border-color:#c19b57!important;
 box-shadow:0 5px 14px rgba(0,8,18,.19)!important;
}
/* Segmented tabs with restrained active cumin underline. */
html[data-theme="dark"] body .thrs-shell .thrs-page-performance>div[style*="border-bottom"][style*="display: flex"]{
 background:linear-gradient(120deg,#18364a,#203d51)!important;
 border-color:#4c6d80!important;
 box-shadow:0 6px 15px rgba(0,8,20,.16)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance>div[style*="border-bottom"][style*="display: flex"]>button{
 color:#c2d3df!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance>div[style*="border-bottom"][style*="display: flex"]>button[style*="font-weight: 700"]{
 background:#264355!important;
 color:#f0d39c!important;
 box-shadow:0 3px 10px rgba(0,8,19,.18)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance>div[style*="border-bottom"][style*="display: flex"]>button[style*="font-weight: 700"]::after{
 background:linear-gradient(90deg,#a9854b,#d3a654)!important;
}
/* Same cards and cycle details; dark slate, no neon green status chips. */
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card{
 background:linear-gradient(145deg,#142d40,#203d51)!important;
 border-color:#496b80!important;
 box-shadow:0 8px 19px rgba(0,8,20,.21)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card .badge-success{
 background:#194538!important;
 border-color:#4e876f!important;
 color:#b7e8d2!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card .badge-default{
 background:#2b4051!important;
 border-color:#5f7889!important;
 color:#d2e0e9!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card p[style*="font-size: 12px"],
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card p[style*="font-size:12px"]{
 color:#c6d5e0!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card>div>div[style*="margin-top"]>div:last-child::after{
 color:#d3a654!important;
}
/* Performance review detail/analytics: repaint hard-coded pale KPI wells. */
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card div[style*="rgb(249, 250, 251)"],
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card div[style*="background: #f9fafb"]{
 background:#1a394d!important;
 color:#eaf2f8!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card div[style*="rgb(229, 231, 235)"],
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card div[style*="background: #e5e7eb"]{
 background:#3c5568!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card div[style*="rgb(26, 58, 92)"],
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card div[style*="color: #1a3a5c"]{
 color:#e8c37d!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance .thrs-card .badge-info{
 background:#234355!important;
 border-color:#55778b!important;
 color:#c4dded!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance>div:has(>input.form-input) input.form-input{
 background:#1c3c50!important;
 color:#edf4f9!important;
 -webkit-text-fill-color:#edf4f9!important;
 border-color:#58788b!important;
 box-shadow:none!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance>div:has(>input.form-input) input.form-input::placeholder{
 color:#bbcedc!important;
 -webkit-text-fill-color:#bbcedc!important;
 opacity:1!important;
}
/* No selectors affect Light Mode; no size/grid/gap/position declaration. */

/* The approved V14.31 review grid has a more specific chip rule. */
html[data-theme="dark"] body .thrs-shell .thrs-page-performance>div[style*="display: grid"]:has(>.thrs-card)>.thrs-card .badge-success{
 background:#194538!important;border-color:#4e876f!important;color:#b7e8d2!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-performance>div[style*="display: grid"]:has(>.thrs-card)>.thrs-card .badge-default{
 background:#2b4051!important;border-color:#5f7889!important;color:#d2e0e9!important;
}
