tbody, table {
    border-color: #fff !important;
}

div#DataTables_Table_1_length {
    margin-top: 20px;
}

.button, .btn {
    background-color: #eee;
    color: #000;
    padding: 10px 20px;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
}

.button:hover, .btn:hover {
    background-color: #ddd;
}

.sda-collection-single,.sda-shift-single,.sda-shifts-list,.sda-driver-schedule, .sda-collections-list  {
    max-width: 1200px;
    margin: 10px auto;
}

.sda-section {
    margin-bottom: 10px;
}

.sda-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1em;
}

.sda-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5em;
    background: #f9f9f9;
    border-radius: 3px;
}

.copyable {
    position: relative;
    padding-right: 30px;
}

.copy-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 1;
}

.copy-btn.copied {
    opacity: 1;
    background-color: #4CAF50;
    color: white;
}

.sda-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.sda-form select,
.sda-form textarea {
    width: 100%;
    padding: 8px;
}

.sda-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1em;
    margin-top: 1em;
}

.sda-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

#sda-complete-collection {
    width: 100%;
    padding: 1em;
    font-size: 1.2em;
}

.sda-error-message {
    text-align: center;
    padding: 3em 2em;
    margin: 2em auto;
    max-width: 600px;
    background-color: #fff;
    border-left: 4px solid #dc3232;
}

.sda-error-message h1 {
    color: #dc3232;
    margin-bottom: 1em;
}

.sda-error-message .button {
    margin-top: 2em;
}

.sda-collections-list .sda-section {
    background: #fff;
    border:none;
    border-radius: none;
    box-shadow: none;
}

/* DataTables customization */
.dataTables_wrapper {
    width: 100%;
    box-sizing: border-box;
}

.dataTables_length select,
.dataTables_filter input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.dataTables_filter input {
    margin-left: 5px;
}

.dataTables_length select {
    margin: 0 5px;
}

table.dataTable thead th {
    padding: 10px;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

table.dataTable tbody td {
    padding: 8px 10px;
}

.dataTables_info,
.dataTables_paginate {
    margin-top: 1em;
}

.dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.dataTables_paginate .paginate_button.current {
    background: #0073aa;
    color: #fff !important;
    border-color: #0073aa;
}

.dataTables_paginate .paginate_button:hover {
    background: #f5f5f5;
}

.sda-shift-control {
    text-align: center;
    padding: 2em;
}

.shift-status {
    margin-top: 1em;
    font-style: italic;
}

.sda-shift-details {
    margin-top: 2em;
}

.sda-shift-single h1 {
    margin-bottom: 1em;
}

.sda-shift-single .sda-info-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Add these styles */
.sda-notes-display {
    margin-top: 1.5em;
}

.sda-note {
    padding: 1em;
    margin-bottom: 1em;
    background: #f9f9f9;
    border-left: 3px solid #0073aa;
    border-radius: 3px;
}

.sda-photo-wrapper {
    position: relative;
    display: inline-block;
}

.sda-remove-photo {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc3232;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: background-color 0.2s;
}

.sda-remove-photo:hover {
    background: #c92626;
}

.sda-notice {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.sda-notice-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Add these styles */
.collection-not-started .sda-section:not(.sda-start-collection) {
    opacity: 0.5;
    pointer-events: none;
}

.sda-start-collection {
    text-align: center;
    padding: 2em;
    margin-bottom: 2em;
}

.sda-start-collection .button {
    padding: 1em 2em;
    font-size: 1.2em;
}

.collection-not-started {
    position: relative;
}

.collection-not-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.sda-start-collection {
    position: relative;
    z-index: 2;
}

.sda-notice-info {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.driver-schedule-wrapper {
    padding: 10px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.driver-schedule-wrapper .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 20px;
}
    .sda-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    div[data-name="driver_uploaded_photos"] table thead {
        display: none!important;
    }
    
    div[data-name="driver_uploaded_photos"] .acf-repeater .acf-row-handle .acf-icon {
        margin-bottom: 13px;
        position:relative;
    }
    div[data-name="driver_uploaded_photos"] table tr.acf-row {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    div[data-name="driver_uploaded_photos"] table{
        table-layout: fixed;
        border: none;
        padding: 10px;
    }

.schedule-title {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5em;
    color: #2d3748;
}

/* Left column boxes */
.leave-allowance-box {
    padding: 10px;
    margin-bottom: 10px;
}

.weekly-schedule {
        padding: 10px;
}

.leave-info h3 {
    color: #2d3748;
    font-size: 1.5em;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 0.5rem;
}

.leave-info p {
    margin-bottom: 1rem;
    font-size: 1.1em;
    line-height: 1.6;
}

.days-count {
    font-size: 1.3em;
    color: #4299e1;
    font-weight: 600;
}

/* Right column - Weekly Schedule */
.weekly-schedule {
    background: white;
    padding: 10px;
}

.weekly-schedule h3 {
    color: #2d3748;
    font-size: 1.5em;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 0.5rem;
}

.schedule-grid {
    display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.schedule-day {
    background: #f7fafc;
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s ease;
}

.schedule-day:hover {
    transform: translateY(-2px);
}

.schedule-day h4 {
    margin: 0 0 0.8rem 0;
    color: #2d3748;
    font-size: 1.2em;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

/* Status colors with improved contrast */
.full-day {
    background: #c6f6d5;
    color: #22543d;
}

.half-day {
    background: #feebc8;
    color: #744210;
}

.not-working {
    background: #fed7d7;
    color: #822727;
}

/* Hover effects for status badges */
.status-badge:hover {
    transform: scale(1.05);
}

/* Astra theme specific adjustments */
/* .ast-container {
    max-width: none !important;
    padding: 0 !important;
} */

/* Responsive adjustments */

    .schedule-title {
        font-size: 2em;
    }

/* Holiday Requests Styles */
.leave-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.leave-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.leave-stat .label {
    font-size: 0.9em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.leave-stat .value {
    font-size: 1.5em;
    font-weight: 600;
    color: #2d3748;
}

.holiday-request-form {
    margin: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-field input[type="date"],
.form-field textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.holiday-previous-requests {
    margin: 2rem 0;
}

.holiday-request-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.holiday-request-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

/* Remove the last divider */
.holiday-request-item:last-of-type + .holiday-request-divider {
    display: none;
}

.request-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.request-period {
    font-weight: 500;
    color: #2d3748;
}

.request-status {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending .request-status {
    background: #fef3c7;
    color: #92400e;
}

.status-approved .request-status {
    background: #dcfce7;
    color: #166534;
}

.status-denied .request-status {
    background: #fee2e2;
    color: #991b1b;
}

.request-content {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.request-comments {
    color: #4b5563;
    margin: 0;
}

.admin-response {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.admin-response strong {
    color: #2d3748;
    display: block;
    margin-bottom: 0.5rem;
}

.admin-response p {
    color: #4b5563;
    margin: 0;
}

/* Updated layout styles */
.schedule-container {
    display: grid;
    grid-template-columns: 1fr;
        gap: 1rem;
    margin-top: 2rem;
}

.schedule-left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.schedule-right-column {
    min-width: 0; /* Prevents content overflow */
}

/* Adjust existing styles */
.sda-driver-schedule {
    max-width: 1400px; /* Increased to accommodate the new layout */
    margin: 2em auto;
    padding: 0 20px;
}

.schedule-title {
    text-align: center;
    margin-bottom: 1rem;
}

/* Ensure sections stack properly in columns */
.schedule-left-column .sda-section,
.schedule-right-column .sda-section {
    height: fit-content;
    margin-bottom: 0;
}

/* Add these styles for the accordion sections */
.sda-accordion-section {
    margin-top: 1.5rem;  /* Add space above accordion */
    margin-bottom: 2rem; /* Increase space below accordion */
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 100%; /* Ensure full width */
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.sda-accordion-header {
    background: #f5f5f5;
    padding: 1em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding in width calculation */
    transition: background-color 0.3s ease-in-out;
}

.sda-accordion-header h2 {
    margin: 0;
    font-size: 1.2em;
}

.sda-accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.sda-accordion-icon:before,
.sda-accordion-icon:after {
    content: '';
    position: absolute;
    background-color: #333;
    transition: transform 0.3s ease-in-out;
}

.sda-accordion-icon:before {
    width: 2px;
    height: 20px;
    left: 9px;
    top: 0;
}

.sda-accordion-icon:after {
    width: 20px;
    height: 2px;
    left: 0;
    top: 9px;
}

.sda-accordion-section.open .sda-accordion-icon:before {
    transform: rotate(90deg);
}

.sda-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    background: white;
    padding: 0;  /* Remove default padding */
}

.accordion-content-inner {
    padding: 1.5rem;  /* Move padding to inner container */
}

.sda-accordion-section.open .sda-accordion-content {
    max-height: 2000px;
    opacity: 1;
}

/* Ensure tables inside accordions take full width */
.sda-accordion-content table.display {
    width: 100% !important;
}

/* Dashboard specific styles */
.sda-dashboard {
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.sda-dashboard h1 {
    margin-bottom: 1em;
}

.sda-dashboard .sda-section {
    margin-bottom: 0;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Update accordion transition styles */
.sda-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
}

.sda-accordion-section.open .sda-accordion-content {
    max-height: 2000px; /* Large enough to contain content */
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out 0.2s;
}

/* Rotate icon with transition */
.sda-accordion-icon:before {
    width: 2px;
    height: 20px;
    left: 9px;
    top: 0;
    transition: transform 0.3s ease-in-out;
}

.sda-accordion-icon:after {
    width: 20px;
    height: 2px;
    left: 0;
    top: 9px;
    transition: transform 0.3s ease-in-out;
}

.sda-accordion-section.open .sda-accordion-icon:before {
    transform: rotate(90deg);
}

/* Add subtle background transition */
.sda-accordion-header {
    background: #f5f5f5;
    padding: 1em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease-in-out;
}

.sda-accordion-section.open .sda-accordion-header {
    background-color: #e9e9e9;
}

/* Add subtle border transition */
.sda-accordion-section {
    margin-bottom: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.sda-accordion-section.open {
    border-color: #bbb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Holiday Requests Section Spacing */
.holiday-requests h3 {
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #edf2f7;
    color: #2d3748;
    font-size: 1.5em;
}

/* Request Form Spacing */
h4 {
    margin: 2.5rem 0 1.5rem;  /* Increase space above "Request Annual Leave" */
    color: #2d3748;
    font-size: 1.3em;
}

/* Form Field Spacing */
.form-field {
    margin-bottom: 1.5rem;  /* Increase space between form fields */
}

.form-field label {
    margin-bottom: 0.8rem;  /* Increase space below labels */
    color: #4a5568;
    font-weight: 500;
}

/* Submit Button Spacing */
.holiday-request-form button[type="submit"] {
    margin-top: 1rem;  /* Add space above submit button */
    padding: 0.8rem 1.5rem;  /* Increase button padding */
}

/* Accordion Content Padding */
.sda-accordion-content {
    background: white;
}

/**
 * Driver Statistics Styles
 */

/* Driver Statistics Dashboard Styles */
/* .driver-statistics-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.driver-statistics-dashboard h1 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
} */

/* Filters Section */
.statistics-filters {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
	flex-direction: column;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
	width: 100%;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.filter-group input[type="date"], 
.filter-group select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 40px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

/* Summary Section */
.statistics-summary {
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.driver-name {
    font-size: 18px;
    margin: 15px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.driver-summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
	flex-direction: column;
}

.stat-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    flex: 1;
    min-width: 200px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-card-header h3 {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.stat-card-icon {
    color: #0073aa;
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: #0073aa;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-card-change {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.stat-card-change.positive {
    color: #28a745;
}

.stat-card-change.negative {
    color: #dc3545;
}

/* Charts Section */
.chart-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
	flex-direction: column;
}

.chart-container {
    flex: 1;
    min-width: 100%;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 15px;
}

.chart-container h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.chart-container canvas {
    height: 300px !important;
}

/* DataTables Section */
.statistics-table {
    margin-bottom: 30px;
}

.table-container {
    padding: 5px;
}

table.dataTable {
    border-collapse: collapse !important;
    width: 100% !important;
}

table.dataTable thead th {
    font-weight: 600;
    padding: 12px 10px;
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd !important;
}

table.dataTable tbody td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

table.dataTable tbody tr:hover {
    background-color: #f9f9f9;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 10px;
    color: #333;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    margin-left: 5px;
}

/* Export Options */
.export-container {
    margin-top: 30px;
    margin-bottom: 50px;
}

.export-options {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

.export-options h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.export-buttons {
    display: flex;
    gap: 15px;
	flex-direction: column;
}

.export-buttons button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #000;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.export-buttons button:hover {
    background-color: #000;
    border-color: #000;
}

.export-buttons button svg {
    width: 16px;
    height: 16px;
}

/* Loading and Error States */
.summary-loading,
.charts-loading,
.table-loading {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.summary-error,
.charts-error,
.table-error {
    text-align: center;
    padding: 20px;
    background-color: #fff8f8;
    border: 1px solid #ffd0d0;
    border-radius: 5px;
    color: #d8000c;
}

/* Access Denied message */
.access-denied-message {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    max-width: 600px;
    margin: 30px auto;
}

.access-denied-icon {
    margin-bottom: 20px;
    color: #d8000c;
}

.access-denied-icon svg {
    width: 64px;
    height: 64px;
    stroke: currentColor;
}

.access-denied-message h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.access-denied-message p {
    color: #666;
    margin-bottom: 10px;
}

/* Chart tooltip */
.chart-tooltip {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-radius: 4px;
    padding: 10px;
    color: white;
    font-size: 14px;
    pointer-events: none;
}

.chart-tooltip-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.sda-button-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sda-more-options-container {
    position: relative;
}

.sda-more-options-dropdown {
    display: none;
    position: absolute;
    left: 0;
    bottom: 47px;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
					
    animation: dropdown-fade 0.2s ease-in-out;
}

@keyframes dropdown-fade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sda-more-options-dropdown.open {
    display: block;
}

.sda-status-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border: none;
    background: none;
    color: #2d3748;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.sda-status-option:last-child {
    border-bottom: none;
}

.sda-status-option:hover {
    background-color: #f7fafc;
    color: #0073aa;
}

.sda-status-option:active {
    background-color: #ebf8ff;
}

/* Driver Details Form Styles */
#driver-details-form {
    max-width: 100%;
}

#driver-details-form .form-field {
    margin-bottom: 1.5rem;
}

#driver-details-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
}

#driver-details-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.photo-item:hover {
    transform: translateY(-2px);
}

.filepond--credits{
    display: none !important;
}

.photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.remove-existing-photo {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(220, 50, 50, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.2s;
}

.remove-existing-photo:hover {
    background: rgba(220, 50, 50, 1);
}

.existing-photos h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

/* Form Actions */
.form-actions {
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.form-actions .button {
    padding: 12px 24px;
    font-size: 16px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.form-actions .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-actions .button.loading {
    position: relative;
}

.form-actions .button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s ease infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* FilePond Styles */
.filepond--root {
    margin-bottom: 20px;
}

.filepond--drop-label {
    color: #666;
    font-size: 16px;
    cursor: pointer;
}

.filepond--label-action {
    color: #0073aa;
    text-decoration: underline;
}

.filepond--panel-root {
    background-color: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.filepond--panel-root:hover {
    border-color: #0073aa;
    background-color: #f5f9fc;
}

.filepond--item {
    margin: 0.5em;
}

.filepond--item-panel {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.filepond--file-action-button {
    background-color: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
}

.filepond--file-action-button:hover {
    background-color: rgba(0,0,0,0.7);
}

.filepond--file-action-button:focus {
    box-shadow: 0 0 0 2px rgba(0,115,170,0.5);
}

/* FilePond uploading states */
.filepond--file-wrapper .filepond--file {
    static: relative;
}

.filepond--file-info {
    padding: 0.5em;
}

.filepond--file-info-main {
    color: #333;
    font-weight: 500;
}

.filepond--file-info-sub {
    color: #666;
    font-size: 0.9em;
}

/* Standard file input when FilePond fails */
#photo-upload:not(.filepond--root) {
    display: block;
    width: 100%;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    background-color: #fafafa;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

#photo-upload:not(.filepond--root):hover {
    border-color: #0073aa;
    background-color: #f5f9fc;
}

/* Loading State */
.photo-uploading {
    opacity: 0.6;
    pointer-events: none;
}

.photo-uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #0073aa;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

form.active_status{
    background-color: #f0f0f0;
}

/* Responsive adjustments */
.collections-table thead{
        display: none;
    }
	
.driver-statistics-dashboard {
        padding: 10px;
    }
	

/* DataTables Responsive Styles */
    table.dataTable tbody td {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 0.5rem !important;
        border: none !important;
        position: relative !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }
    
    table.dataTable tbody tr {
        margin-bottom: 1rem;
        display: block;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 0.5rem;
        background: #fff;
    }
    
    /* table.dataTable tbody td:before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: #666;
    } */
    
    table.dataTable thead {
        display: none;
    }
    
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        float: none;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        margin-left: 0;
        width: 100%;
        margin-top: 0.5rem;
        box-sizing: border-box;
    }
    
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
        float: none;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .dataTables_wrapper .dataTables_info {
        text-align: center;
        float: none;
        margin-bottom: 1rem;
    }

    /* Ensure buttons in table cells are full width */
    table.dataTable tbody td .button {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

/* Shortcode AJAX Loading Spinner Styles */
.sda-shortcode-container {
    position: relative;
    min-height: 100px;
}

.sda-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 20px;
}

.sda-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: sda-spin 1s linear infinite;
    margin-bottom: 10px;
}

.sda-spinner-container p {
    color: #666;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

@keyframes sda-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide spinner when content is loaded */
.sda-shortcode-container.loaded .sda-spinner-container {
    display: none;
}

/* Fade in animation for loaded content */
.sda-shortcode-container.loaded {
    animation: sda-fade-in 0.3s ease-in-out;
}

@keyframes sda-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Collection contact info styling */
.collection-contact-info {
    margin-top: 8px;
    font-size: 12px;
}

.collection-contact-info .phone-link,
.collection-contact-info .postcode-link {
    margin: 2px 0;
}

.collection-contact-info .contact-link {
    color: #0073aa;
    text-decoration: none;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s, color 0.2s;
}

.collection-contact-info .contact-link:hover {
    background-color: #0073aa;
    color: white;
    text-decoration: none;
}

/* External driver specific styling */
.external-driver-status {
    text-align: center;
    padding: 20px;
}

.external-driver-status .shift-status {
    font-size: 16px;
    margin: 0;
    color: #333;
}

/* Basic details only styling for shift not started */
.basic-details-only {
    opacity: 0.9;
}

.basic-details-only .sda-section {
    margin-bottom: 20px;
}