/* /modules/requests/css/requests_dashboard.css */

/* ... (Table styles remain the same) ... */
.requests-table-container {
    height: 62vh;
    overflow-y: auto;
    border: 1px solid var(--apple-card-border);
    border-radius: 1rem;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
}

.requests-table th,
.requests-table td {
    font-size: 0.9rem;
    text-align: left;
    vertical-align: middle;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--apple-card-border);
    white-space: nowrap;
}

.requests-table th {
    position: sticky;
    top: 0;
    background-color: var(--apple-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    color: var(--apple-text-color);
    font-weight: 600;
}

.requests-table td {
    color: var(--apple-text-color);
}

.requests-table tbody tr:last-child td {
    border-bottom: 0;
}

.requests-table tbody tr:nth-of-type(odd) {
    background-color: var(--apple-hover-bg);
}

.requests-table tbody tr:hover {
    background-color: var(--sidebar-link-hover-bg);
}

.requests-table .col-request-id {
    font-weight: 700;
    color: var(--apple-text-color);
    width: 100px;
}

.requests-table .col-actions {
    width: 120px;
    text-align: right;
}


/* =================================================================
   == THE FIX: Specific Styles for Dashboard Filter Pills ==
   =================================================================
*/
.dashboard-pills .nav-link {
    font-weight: 500 !important;
    border-radius: 0.6rem !important;
    padding: 0.45rem 0.9rem !important;
    transition: all 0.25s ease, box-shadow 0.2s ease !important;
    color: var(--sidebar-text-color) !important;
    background-color: transparent !important;
    margin-right: 0.5rem;
    border: none !important;
}

.dashboard-pills .nav-link:hover {
    background-color: var(--sidebar-link-hover-bg) !important;
    transform: translateY(-2px);
}

.dashboard-pills .nav-link.active {
    background-color: var(--apple-accent-color) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 0 12px var(--button-glow) !important;
}

[data-bs-theme="dark"] .dashboard-pills .nav-link.active {
    color: #1c1c1e !important;
}

.dashboard-pills .nav-link.active:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-3px);
    box-shadow: 0 0 12px var(--button-glow) !important;
}

.sticky-right {
    position: sticky;
    right: 0;
    z-index: 5;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.bg-glass {
    background-color: var(--apple-card-bg) !important;
    backdrop-filter: blur(10px);
}


/* =================================================================
   == DETAILS TABLE SPECIFIC STYLES ==
   =================================================================
*/
#details-table-container .requests-table th,
#details-table-container .requests-table td {
    white-space: normal !important;
    /* Allow wrapping */
    padding: 0.25rem 0.25rem !important;
    /* Reduce padding */
    font-size: 0.9rem !important;
    /* Reduce font size */
    vertical-align: middle;
}

#details-table-container .requests-table td {
    line-height: 1.1;
}

/* Ensure sticky columns/headers still work */
#details-table-container .requests-table th {
    top: 0;
    z-index: 10;
}

/* Fix width for specific columns if they get too squeezed */
#details-table-container .requests-table th:nth-child(1),
/* ID */
#details-table-container .requests-table td:nth-child(1) {
    width: 40px !important;
    min-width: 40px !important;
}

#details-table-container .requests-table th:nth-child(2),
/* Revision */
#details-table-container .requests-table td:nth-child(2) {
    width: 30px !important;
    text-align: center;
}

/* Date columns - keep them somewhat readable */
#details-table-container .requests-table td:nth-child(14),
/* Date Order */
#details-table-container .requests-table td:nth-child(17) {
    /* Date Delivery */
    min-width: 70px;
}

#details-table-container .sticky-right {
    padding: 0.25rem !important;
    /* Match other cells */
}