/* THRS V14.66 — Leave Management, Midnight Navy / Cumin Gold.
   Dark theme palette ONLY. The approved V14.22 geometry, leaf calendar
   artwork, all chart values, rows, pagination, controls and JS stay unchanged.
   Directly loaded after the existing production styles. */
html[data-theme="dark"] body .thrs-page-leaves {
 --lv22-paper:#142d40!important;--lv22-soft:#1b3b4f!important;
 --lv22-ghost:#224256!important;--lv22-border:#426579!important;
 --lv22-ink:#eef4f8!important;--lv22-muted:#bed0dc!important;
 --lv22-gold:#d3a654!important;
 --lv22-shadow:0 7px 17px rgba(0,7,18,.25),inset 0 1px 0 rgba(255,255,255,.04)!important;
 --lv19-surface:#1b3b4f!important;--lv19-paper:#142d40!important;
 --lv19-ink:#eef4f8!important;--lv19-muted:#bfd0dc!important;
 --lv19-stroke:#48687c!important;--lv19-gold:#d3a654!important;
 color:#eef4f8!important;color-scheme:dark!important;
}
/* Keep original header gradients and SVG gold calendar in both modes. */
html[data-theme="dark"] body .thrs-page-leaves>.page-header.lv22-hero .lv22-hero-actions .thrs-btn:not(:last-child) {
 background:linear-gradient(140deg,#1a3b4f,#102b3f)!important;
 border-color:#557488!important;
 color:#edf4f8!important;
 box-shadow:0 4px 11px rgba(0,8,17,.24)!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.page-header.lv22-hero .lv22-hero-actions .thrs-btn:not(:last-child):hover {
 background:linear-gradient(140deg,#25465a,#163448)!important;
 border-color:#a98a51!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.page-header.lv22-hero .lv22-hero-actions .thrs-btn:last-child {
 background:linear-gradient(140deg,#dfbc79,#cba050)!important;
 border-color:#c69c54!important;
 color:#102b3d!important;
 box-shadow:0 5px 11px rgba(0,8,18,.23)!important;
}
/* Seven original leave balance cards: neutral navy, soft cumin details.
   Preserve donut percentages and colored status ring strokes. */
html[data-theme="dark"] body .thrs-page-leaves>.lv22-balances>.thrs-card {
 background:linear-gradient(143deg,#1a394d,#142e42)!important;
 border-color:#4c6a7e!important;
 box-shadow:0 8px 18px rgba(0,7,17,.22)!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-balances>.thrs-card::before {
 background:linear-gradient(90deg,transparent,#a98242 18%,#d5ad66 50%,#a98242 82%,transparent)!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-balances .lv22-balance-icon {
 color:#d5ac5c!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-balances>.thrs-card svg[viewBox="0 0 36 36"] path:first-child {
 stroke:#38546a!important;
}
/* Same tab size and active state. Only muted surfaces and text. */
html[data-theme="dark"] body .thrs-page-leaves>.lv22-tabs {
 background:linear-gradient(140deg,#1a394e,#112f44)!important;
 border-color:#4d6c80!important;
 box-shadow:0 5px 12px rgba(0,9,21,.18)!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-tabs button {
 background:linear-gradient(140deg,#1a394d,#153146)!important;
 border-color:#4d6c7f!important;
 color:#d6e5ee!important;
 box-shadow:none!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-tabs button[style*="font-weight: 700"],
html[data-theme="dark"] body .thrs-page-leaves>.lv22-tabs button[style*="font-weight:700"]{
 background:linear-gradient(125deg,#24465b,#112e43)!important;
 border-color:#ae8b52!important;
 color:#f0d397!important;
}
/* Filter command strip + actual native form elements: never porcelain. */
html[data-theme="dark"] body .thrs-page-leaves>.lv22-filters {
 background:linear-gradient(145deg,#1b3b50,#143146)!important;
 border-color:#4e7084!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-filters :is(input.form-input,select.form-select){
 background:#1b3b50!important;background-color:#1b3b50!important;
 background-image:none!important;
 color:#eef5f9!important;-webkit-text-fill-color:#eef5f9!important;
 border-color:#55778b!important;
 color-scheme:dark!important;
 box-shadow:none!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-filters input.form-input::placeholder {
 color:#b5cbd8!important;-webkit-text-fill-color:#b5cbd8!important;opacity:1!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-filters select.form-select option{
 color:#eef5f9!important;background:#18384c!important;
}
/* Approved list and 10 rows on each original pagination page. */
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests {
 background:#132d41!important;border-color:#4f6d82!important;
 box-shadow:0 11px 23px rgba(0,8,18,.24)!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests>.thrs-card-header {
 background:linear-gradient(135deg,#1c3b50,#142e42)!important;
 border-bottom-color:#4d6c7f!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests>div:last-child,
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .modern-table-wrap{
 background:#132d41!important;border-color:#45657a!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .modern-table tbody tr:not(.zebra) td {
 background:#142f43!important;
 border-bottom-color:#3e5d70!important;
 color:#ebf3f8!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .modern-table tbody tr.zebra td {
 background:#1d3c50!important;
 border-bottom-color:#4b687c!important;
 color:#ebf3f8!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .modern-table tbody tr:hover td {
 background:#29495e!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .lv22-avatar {
 background:linear-gradient(140deg,#5c4b30,#3b3d36)!important;
 border-color:#a38b59!important;
 color:#f1d49a!important;
 box-shadow:0 3px 7px rgba(0,10,20,.2)!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .lv22-type-chip {
 background:#26465a!important;border-color:#55758a!important;
 color:#e2eef5!important;
 box-shadow:none!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .modern-table td .badge-success,
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .modern-table td .badge-info{
 background:#194538!important;background-image:none!important;
 border:1px solid #488671!important;color:#b5ead2!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .modern-table td .badge-warning {
 background:#453a2b!important;background-image:none!important;
 border:1px solid #977849!important;color:#efd398!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .modern-table td .badge-danger {
 background:#492e36!important;background-image:none!important;
 border:1px solid #956169!important;color:#f0b7c1!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .modern-table td .thrs-btn {
 background:linear-gradient(140deg,#1e4054,#173349)!important;
 border-color:#56778b!important;
 color:#eef5f9!important;
 box-shadow:none!important;
}
/* The actual inline attachment button in the existing React cell. */
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .modern-table td button[style*="border-radius: 999px"] {
 background:#403a2d!important;background-color:#403a2d!important;
 border-color:#90784e!important;color:#f2d397!important;
}
/* Pagination: identical buttons, count, layout and dimensions. */
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .thrs-leaves-pagination:not([hidden]){
 background:linear-gradient(115deg,#112f43,#0c2438)!important;
 border-color:#9a804e!important;
 box-shadow:0 9px 18px rgba(0,8,19,.21)!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .thrs-leaves-page-size-group {
 background:#19394d!important;border-color:#527186!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .thrs-leaves-page-button:not(.is-selected):not(.is-current) {
 background:#193b50!important;border-color:#506e83!important;color:#e8f2f8!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.lv22-requests .thrs-leaves-page-button:is(.is-current,.is-size.is-selected){
 background:linear-gradient(135deg,#deb971,#cca052)!important;
 color:#142d40!important;border-color:#c39b56!important;
 box-shadow:0 3px 8px rgba(0,8,18,.18)!important;
}
/* Leave Types and calendar alternate tabs. Do not alter their data/controls. */
html[data-theme="dark"] body .thrs-page-leaves>.thrs-card:not(.lv22-requests) {
 background:#16354a!important;border-color:#476a7e!important;color:#edf5fa!important;
}
html[data-theme="dark"] body .thrs-page-leaves>.thrs-card:not(.lv22-requests) :is(input,select,textarea){
 background-color:#1c4054!important;border-color:#53768a!important;
 color:#eef5f9!important;color-scheme:dark!important;
}
/* All declarations above are color/background/border/shadow only.
   The approved layout, seven cards and exact table pagination are unmodified. */
