/* All Timesheets list — filter bar layout (scoped to timesheets resource only) */

.fi-resource-timesheets .fi-ta-filters > .flex.items-center.justify-between {
    display: none !important;
}

.fi-resource-timesheets .beedev-timesheet-filters-reset {
    justify-content: flex-start;
}

/* Detailed Timesheet — 80% inputs (start/end/staff) + 20% buttons */
.beedev-timesheet-detailed-list .fi-ta-filters-form .grid:has(.beedev-timesheet-filters-reset),
.beedev-timesheet-detailed-list .fi-ta-filters-above-content-ctn .grid:has(.beedev-timesheet-filters-reset),
.beedev-timesheet-detailed-list .fi-ta-filters .grid:has(.beedev-timesheet-filters-reset) {
    display: grid !important;
    grid-template-columns: minmax(0, 53.333%) minmax(0, 26.667%) minmax(0, 10%) minmax(0, 10%) !important;
    align-items: end !important;
    gap: .75rem !important;
    width: 100% !important;
}

/* Start date + End date side by side inside first column */
.beedev-timesheet-detailed-list .fi-ta-filters-above-content-ctn .grid:has(.beedev-timesheet-filters-reset) > .col:first-child .fi-fo-component-ctn {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .75rem !important;
    width: 100% !important;
}

.beedev-timesheet-detailed-list .fi-ta-filters-above-content-ctn .grid:has(.beedev-timesheet-filters-reset) > .col .fi-fo-field-wrp {
    min-width: 0 !important;
    width: 100% !important;
}

.beedev-timesheet-detailed-list .beedev-timesheet-filters-apply,
.beedev-timesheet-detailed-list .beedev-timesheet-filters-apply .fi-btn,
.beedev-timesheet-detailed-list .beedev-timesheet-apply-filters {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

.beedev-timesheet-detailed-list .beedev-timesheet-apply-filters {
    white-space: nowrap;
}

.beedev-timesheet-detailed-list .fi-ta-filters > div:has(> .fi-btn) {
    display: none !important;
}

/* All Staff Timesheets: Staff + Edit/Delete must fit (no clipped action icons) */
.beedev-timesheet-detailed-list .beedev-timesheet-list-staff-cell {
    width: 14% !important;
}

.beedev-timesheet-detailed-list .timesheet-job-name-table-cell,
.beedev-timesheet-detailed-list .beedev-timesheet-list-job-cell {
    width: 30% !important;
}

.beedev-timesheet-detailed-list .beedev-timesheet-list-start-time-cell,
.beedev-timesheet-detailed-list .beedev-timesheet-list-end-time-cell {
    width: 14% !important;
}

.beedev-timesheet-detailed-list .beedev-timesheet-list-total-time-cell {
    width: 12% !important;
}

.beedev-timesheet-detailed-list .fi-ta-table .fi-ta-actions-header-cell,
.beedev-timesheet-detailed-list .fi-ta-table .fi-ta-actions-cell {
    width: 5.75rem !important;
    min-width: 5.75rem !important;
    max-width: 5.75rem !important;
    padding-left: .35rem !important;
    padding-right: .5rem !important;
    overflow: visible !important;
}

.beedev-timesheet-detailed-list .fi-ta-actions {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: .15rem !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

.beedev-timesheet-detailed-list .fi-ta-actions .fi-icon-btn,
.beedev-timesheet-detailed-list .fi-ta-actions .fi-ac-icon-btn-action {
    flex-shrink: 0 !important;
}

@media (max-width: 1200px) {
    .beedev-timesheet-detailed-list .beedev-timesheet-list-staff-cell {
        width: 15% !important;
    }

    .beedev-timesheet-detailed-list .timesheet-job-name-table-cell,
    .beedev-timesheet-detailed-list .beedev-timesheet-list-job-cell {
        width: 26% !important;
    }

    .beedev-timesheet-detailed-list .beedev-timesheet-list-start-time-cell,
    .beedev-timesheet-detailed-list .beedev-timesheet-list-end-time-cell {
        width: 12% !important;
    }

    .beedev-timesheet-detailed-list .beedev-timesheet-list-total-time-cell {
        width: 11% !important;
    }

    .beedev-timesheet-detailed-list .fi-ta-table .fi-ta-actions-header-cell,
    .beedev-timesheet-detailed-list .fi-ta-table .fi-ta-actions-cell {
        width: 5.25rem !important;
        min-width: 5.25rem !important;
        max-width: 5.25rem !important;
    }
}

@media (max-width: 900px) {
    .beedev-timesheet-detailed-list .beedev-timesheet-list-staff-cell {
        width: 14% !important;
    }

    .beedev-timesheet-detailed-list .timesheet-job-name-table-cell,
    .beedev-timesheet-detailed-list .beedev-timesheet-list-job-cell {
        width: 24% !important;
    }

    .beedev-timesheet-detailed-list .fi-ta-table .fi-ta-actions-header-cell,
    .beedev-timesheet-detailed-list .fi-ta-table .fi-ta-actions-cell {
        width: 4.75rem !important;
        min-width: 4.75rem !important;
        max-width: 4.75rem !important;
    }
}

.beedev-timesheet-summary-list .beedev-timesheet-summary-filters .fi-fo-component-ctn,
.beedev-timesheet-summary-list .beedev-timesheet-summary-filters form > .grid {
    display: grid !important;
    grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1.2fr) auto auto !important;
    align-items: end !important;
    gap: .75rem !important;
    width: 100% !important;
}

.beedev-timesheet-summary-list .beedev-timesheet-summary-filters .fi-fo-field-wrp {
    min-width: 0 !important;
}

.beedev-timesheet-summary-list .beedev-timesheet-summary-apply-btn,
.beedev-timesheet-summary-list .beedev-timesheet-summary-reset-link {
    white-space: nowrap !important;
}

.beedev-timesheet-summary-list .beedev-timesheet-summary-day-header {
    border-left: 4px solid rgb(234 179 8);
}

.beedev-timesheet-summary-list .beedev-timesheet-summary-day-total {
    display: inline-block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.beedev-timesheet-summary-list .beedev-timesheet-summary-day-header .fi-icon-btn {
    flex-shrink: 0;
}

.beedev-timesheet-summary-list .fi-ta-table th:nth-child(1),
.beedev-timesheet-summary-list .fi-ta-table td:nth-child(1) {
    width: 22%;
}

.beedev-timesheet-summary-list .fi-ta-table th:nth-child(2),
.beedev-timesheet-summary-list .fi-ta-table td:nth-child(2) {
    width: 28%;
}

.beedev-timesheet-summary-list .fi-ta-table th:nth-child(3),
.beedev-timesheet-summary-list .fi-ta-table td:nth-child(3),
.beedev-timesheet-summary-list .fi-ta-table th:nth-child(4),
.beedev-timesheet-summary-list .fi-ta-table td:nth-child(4),
.beedev-timesheet-summary-list .fi-ta-table th:nth-child(5),
.beedev-timesheet-summary-list .fi-ta-table td:nth-child(5) {
    width: 12.5%;
}
