
/* wwa-arriving-containers.css */
/* Adjustments for DataTables integration */

/* Hide DataTables default search label and input if you're using a custom one */
.dataTables_filter {
    display: none;
}

/* Adjust the search input to match DataTables styling or your preference */
#myInput {
    width: 30%;
    padding: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    /* Match DataTables' default search input style */
    display: block; /* Ensures it takes full width of its container if needed */
    margin-left: 0; /* Override any potential default margins */
    margin-right: 0;
}

/* Basic styling for your table (adjust as needed) */
.wwa-arriving-containers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.wwa-arriving-containers-table th,
.wwa-arriving-containers-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.wwa-arriving-containers-table thead th {
    background-color: #f2f2f2;
}

/* Styling for the monthly headers - now a <td> within the tbody */
.wwa-arriving-containers-table tr.month-header td { /* Changed th to td here */
    background-color: #e0e0e0;
    color: #333;
    font-size: 1.1em;
    text-align: center; /* Override default text-align left */
    font-weight: bold; /* Make the text bold for header appearance */
}

/* DataTables pagination controls */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5em 1em;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    margin-left: 2px;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e9e9e9;
}
/* NEW STYLES FOR ACTION LINKS */
.action-link {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    text-align: center;
    transition: background-color 0.2s;
}

.action-link.release {
    background-color: #28a745; /* Green */
    border: 1px solid #218838;
}

.action-link.release:hover {
    background-color: #218838;
}

.action-link.undo {
    background-color: #ffc107; /* Amber */
    border: 1px solid #d39e00;
    color: #212529;
}

.action-link.undo:hover {
    background-color: #e0a800;
}
/* NEW STYLES FOR TOP CONTROLS LAYOUT */
.wwa-top-controls {
    display: flex;
    align-items: top; /* Vertically aligns items to the center */
    margin-bottom: 20px;
    flex-wrap: wrap; 
    gap: 15px;
}

/* Make the search input flexible and override theme defaults */
.wwa-top-controls #arriving-container-search {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
    width: auto;
    height: 40px;
    padding: 8px 12px; /* Standardized padding */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding is included in width/height */
}

/* Make the bulk actions bar a flex container itself */
.wwa-top-controls .bulk-actions-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* --- FIX: Add specific styles to normalize form elements --- */
.wwa-top-controls .bulk-actions-bar select,
.wwa-top-controls .bulk-actions-bar button {
    padding: 8px 12px; /* Match the search input's padding */
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f6f7f7;
    height: 40px; /* Allow padding to determine height */
    min-width: 100px;
    box-sizing: border-box;
}

.wwa-top-controls .bulk-actions-bar button {
    cursor: pointer;
}

.wwa-top-controls .bulk-actions-bar button:hover {
    background-color: #e9e9e9;
}
/* NEW: DASHBOARD STYLES */
.wwa-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wwa-stat-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 5px solid;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.wwa-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.wwa-stat-card a.stat-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.wwa-stat-card .stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.wwa-stat-card .stat-label {
    font-size: 14px;
    color: #666;
}

/* Color coding for the cards */
.wwa-stat-card.late {
    border-color: #dc3545; /* Red */
}
.wwa-stat-card.late .stat-number {
    color: #dc3545;
}

.wwa-stat-card.this-week {
    border-color: #007bff; /* Blue */
}
.wwa-stat-card.this-week .stat-number {
    color: #007bff;
}

.wwa-stat-card.next-week {
    border-color: #28a745; /* Green */
}
.wwa-stat-card.next-week .stat-number {
    color: #28a745;
}

/* Style for the "Clear Filter" link */
.clear-filter-link {
    font-size: 14px;
    font-weight: normal;
    margin-left: 15px;
    text-decoration: none;
    color: #007bff;
}

.clear-filter-link:hover {
    text-decoration: underline;
}
.wwa-summary-preview table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}

.wwa-summary-preview th,
.wwa-summary-preview td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}