/* THRS V14.83 — Documents: dark-mode color harmonization only.
   Preserve V14.46 hero SVG, layout/table density, 15-row pagination,
   filtering, permissions, document privacy, action handlers and Light Mode. */
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446{
 --d46-paper:#162f43!important;
 --d46-soft:#203d51!important;
 --d46-ink:#edf4f9!important;
 --d46-muted:#c1d2df!important;
 --d46-border:#4c6d81!important;
 --d46-shadow:0 8px 21px rgba(0,8,20,.23),inset 0 1px 0 rgba(255,255,255,.035)!important;
 color-scheme:dark!important;
}
/* Keep folder illustration and original gold-wave hero untouched. */
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446>.thrs-docs-hero>.thrs-btn{
 background:linear-gradient(122deg,#e0b873,#cfa258)!important;
 color:#152b3d!important;
 border-color:#bb9351!important;
 box-shadow:0 5px 13px rgba(0,8,20,.18)!important;
}
/* Muted slate/evergreen/cumin/violet KPI wells. */
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-kpi{
 --d46-accent:#b3cce9!important;
 --d46-icon-bg:#2b435a!important;
 --d46-wash:rgba(82,121,159,.10)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-kpi.kpi-green{
 --d46-accent:#a7dcc1!important;
 --d46-icon-bg:#1f493d!important;
 --d46-wash:rgba(70,135,104,.1)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-kpi.kpi-gold{
 --d46-accent:#e4c182!important;
 --d46-icon-bg:#4b4030!important;
 --d46-wash:rgba(148,117,69,.1)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-kpi.kpi-purple{
 --d46-accent:#c5b8e4!important;
 --d46-icon-bg:#403b56!important;
 --d46-wash:rgba(126,101,155,.1)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-kpi-icon{
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 3px 9px rgba(0,8,20,.15)!important;
}
/* Dark-native select menus, maintaining all filter values/behavior. */
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-filter select,
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-pagination-controls select{
 color-scheme:dark!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-filter select option,
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-pagination-controls select option{
 background:#18384d!important;
 color:#edf4f9!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-view-switch button.is-active,
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-pagination-controls button.is-current{
 background:linear-gradient(120deg,#dfb873,#cda052)!important;
 color:#142d3d!important;
 border-color:#bd9753!important;
 box-shadow:0 4px 10px rgba(0,8,20,.17)!important;
}
/* Calm file-format icons: same PDF/DOC/Excel/Image semantics. */
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-file-icon{
 background:linear-gradient(135deg,#a55562,#813945)!important;
 color:#ffe7eb!important;
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.13)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 :is(.thrs-docs-file-doc,.thrs-docs-file-docx,.thrs-docs-file-rtf,.thrs-docs-file-txt){
 background:linear-gradient(135deg,#547eac,#355c89)!important;
 color:#e6f0fc!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 :is(.thrs-docs-file-xls,.thrs-docs-file-xlsx,.thrs-docs-file-csv){
 background:linear-gradient(135deg,#488970,#2d6654)!important;
 color:#e0f5eb!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 :is(.thrs-docs-file-jpg,.thrs-docs-file-png,.thrs-docs-file-webp,.thrs-docs-file-gif,.thrs-docs-file-svg,.thrs-docs-file-jpeg){
 background:linear-gradient(135deg,#8470ae,#67538f)!important;
 color:#f0e9fb!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-file-file{
 background:linear-gradient(135deg,#617b90,#405b70)!important;
 color:#eaf1f8!important;
}
/* Category chips are subdued but distinct; accessible text in dark backgrounds. */
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-category{
 color:#bed9ec!important;background:#29475d!important;
 box-shadow:inset 0 0 0 1px #55768c!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-category-policy{
 color:#b8d4ef!important;background:#2a4561!important;
 box-shadow:inset 0 0 0 1px #597995!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-category-procedure{
 color:#b6e6d1!important;background:#244b3e!important;
 box-shadow:inset 0 0 0 1px #528c76!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-category-employee_document{
 color:#dbcaf3!important;background:#413b58!important;
 box-shadow:inset 0 0 0 1px #786994!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-category-contract{
 color:#f0d39a!important;background:#4d402e!important;
 box-shadow:inset 0 0 0 1px #967b4c!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-category-certificate{
 color:#e9c8e2!important;background:#4c3a4c!important;
 box-shadow:inset 0 0 0 1px #916b8a!important;
}
/* Visibility is privacy metadata, not an editable theme status. */
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-visibility{
 background:#214c3d!important;color:#b4e9cb!important;
 box-shadow:inset 0 0 0 1px #5c9279!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-visibility.is-private{
 background:#4a333e!important;color:#f0c4ce!important;
 box-shadow:inset 0 0 0 1px #996976!important;
}
/* Destructive action stays red, but no white/pink pill in Dark Mode. */
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-actions button.thrs-docs-delete{
 background:#4b333f!important;
 border-color:#926274!important;
 color:#efbbc5!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-actions button.thrs-docs-delete:hover{
 background:#593744!important;
 border-color:#c38695!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-actions button:not(.thrs-docs-delete){
 background:#1b3b50!important;
 color:#e2eef6!important;
 border-color:#55768a!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-actions button:not(.thrs-docs-delete):hover{
 background:#284b61!important;
 border-color:#9d875e!important;
}
/* Table & grid: dark distinction rather than bright alternating strips. */
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-table thead{
 background:#1d3b50!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-table tr:nth-child(even) td{
 background:#203b4e!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-empty>svg{
 color:#dabc7f!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-empty>button,
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-error button{
 background:#24445a!important;color:#eaf3fa!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-documents-v1446 .thrs-docs-error{
 background:#47313b!important;border-color:#926675!important;color:#f0bfca!important;
}
/* Strictly color-only. No layout, size, data, action, or Light Mode rules. */
