/* Fixed horizontal scrollbar — follows table width and viewport */
.wd-hscroll-fixed {
    position: fixed;
    bottom: 0;
    z-index: 40;
    overflow-x: auto;
    overflow-y: hidden;
    height: 1.25rem;
    background-color: rgb(255 255 255 / 0.96);
    border-top: 1px solid rgb(229 231 235);
    box-shadow: 0 -2px 8px rgb(0 0 0 / 0.06);
    scrollbar-width: auto;
}

.wd-hscroll-fixed::-webkit-scrollbar {
    height: 0.875rem;
}

.wd-hscroll-fixed::-webkit-scrollbar-thumb {
    background-color: rgb(156 163 175);
    border-radius: 9999px;
}

.wd-hscroll-fixed::-webkit-scrollbar-thumb:hover {
    background-color: rgb(107 114 128);
}

.dark .wd-hscroll-fixed::-webkit-scrollbar-thumb {
    background-color: rgb(107 114 128);
}

.dark .wd-hscroll-fixed::-webkit-scrollbar-thumb:hover {
    background-color: rgb(156 163 175);
}

.dark .wd-hscroll-fixed {
    background-color: rgb(17 24 39 / 0.96);
    border-top-color: rgb(55 65 81);
}

.wd-hscroll-fixed-inner {
    height: 1px;
    pointer-events: none;
}

.fi-page-withdraw-sets .wd-freeze-col {
    position: sticky;
    z-index: 2;
}

.fi-page-withdraw-sets thead .wd-freeze-col {
    z-index: 4;
    background-color: rgb(249 250 251);
}

.dark .fi-page-withdraw-sets thead .wd-freeze-col {
    background-color: rgb(17 24 39);
}

.fi-page-withdraw-sets .wd-freeze-col-1 {
    min-width: 10rem;
}

.fi-page-withdraw-sets .wd-freeze-col-2 {
    min-width: 7rem;
}

.fi-page-withdraw-sets .wd-freeze-col-3 {
    min-width: 6rem;
}

.fi-page-withdraw-sets .wd-freeze-col-4 {
    min-width: 7rem;
}

.fi-page-withdraw-sets .wd-freeze-col-5 {
    min-width: 8rem;
    box-shadow: 4px 0 8px -4px rgb(0 0 0 / 0.12);
}

.dark .fi-page-withdraw-sets .wd-freeze-col-5 {
    box-shadow: 4px 0 8px -4px rgb(0 0 0 / 0.35);
}

.fi-page-withdraw-sets .wd-cell-date .fi-input-wrp {
    pointer-events: auto;
}

.fi-page-withdraw-sets .wd-cell-date input[type='date'] {
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Row colors by withdraw status (Filament v4 applies classes on tr.fi-ta-row) */
.fi-page-withdraw-sets .fi-ta-row[class*='fi-ta-record-wd-'] > .fi-ta-cell {
    transition: background-color 0.15s ease;
}

.fi-page-withdraw-sets .fi-ta-row[class*='fi-ta-record-wd-'] > .fi-ta-cell:first-child {
    box-shadow: inset 3px 0 0 0 transparent;
}

/* Ready Withdraw — amber */
.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-ready > .fi-ta-cell {
    background-color: rgb(255 251 235) !important;
}

.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-ready:hover > .fi-ta-cell {
    background-color: rgb(254 243 199) !important;
}

.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-ready > .fi-ta-cell:first-child {
    box-shadow: inset 3px 0 0 0 rgb(245 158 11);
}

.dark .fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-ready > .fi-ta-cell {
    background-color: rgb(66 32 6 / 0.38) !important;
}

.dark .fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-ready:hover > .fi-ta-cell {
    background-color: rgb(92 45 8 / 0.5) !important;
}

/* Pending — orange */
.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-pending > .fi-ta-cell {
    background-color: rgb(255 247 237) !important;
}

.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-pending:hover > .fi-ta-cell {
    background-color: rgb(254 235 208) !important;
}

.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-pending > .fi-ta-cell:first-child {
    box-shadow: inset 3px 0 0 0 rgb(249 115 22);
}

.dark .fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-pending > .fi-ta-cell {
    background-color: rgb(124 45 18 / 0.38) !important;
}

.dark .fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-pending:hover > .fi-ta-cell {
    background-color: rgb(154 52 18 / 0.5) !important;
}

/* Completed — green */
.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-completed > .fi-ta-cell {
    background-color: rgb(236 253 245) !important;
}

.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-completed:hover > .fi-ta-cell {
    background-color: rgb(209 250 229) !important;
}

.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-completed > .fi-ta-cell:first-child {
    box-shadow: inset 3px 0 0 0 rgb(16 185 129);
}

.dark .fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-completed > .fi-ta-cell {
    background-color: rgb(6 78 59 / 0.35) !important;
}

.dark .fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-completed:hover > .fi-ta-cell {
    background-color: rgb(6 95 70 / 0.48) !important;
}

/* Reject — red */
.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-reject > .fi-ta-cell {
    background-color: rgb(254 242 242) !important;
}

.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-reject:hover > .fi-ta-cell {
    background-color: rgb(254 226 226) !important;
}

.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-reject > .fi-ta-cell:first-child {
    box-shadow: inset 3px 0 0 0 rgb(239 68 68);
}

.dark .fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-reject > .fi-ta-cell {
    background-color: rgb(69 10 10 / 0.38) !important;
}

.dark .fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-reject:hover > .fi-ta-cell {
    background-color: rgb(127 29 29 / 0.48) !important;
}

/* Cancel Profit — gray */
.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-cancel-profit > .fi-ta-cell {
    background-color: rgb(243 244 246) !important;
}

.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-cancel-profit:hover > .fi-ta-cell {
    background-color: rgb(229 231 235) !important;
}

.fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-cancel-profit > .fi-ta-cell:first-child {
    box-shadow: inset 3px 0 0 0 rgb(107 114 128);
}

.dark .fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-cancel-profit > .fi-ta-cell {
    background-color: rgb(55 65 81 / 0.45) !important;
}

.dark .fi-page-withdraw-sets .fi-ta-row.fi-ta-record-wd-cancel-profit:hover > .fi-ta-cell {
    background-color: rgb(75 85 99 / 0.55) !important;
}
