/* Transport Module Custom DataTables Styling */

/* Card & Table Wrapper */
.card.transport-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s ease;
}

.card.transport-card .table-responsive {
    overflow-x: hidden !important;
}

.card.transport-card .dataTables_wrapper {
    width: 100% !important;
    overflow-x: hidden !important;
}

.card.transport-card .dataTables_wrapper .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.card-header.transport-header {
    background: #003049;
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-bottom: none;
}

.card-header.transport-header h4,
.card-header.transport-header h5,
.card-header.transport-header h4 span,
.card-header.transport-header h5 span,
.card-header.transport-header .card-title,
.card-header.transport-header .card-title span {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    margin: 0;
}

/* Modern DataTables Header */
.table.custom-transport-table {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100% !important;
}

.table.custom-transport-table thead th {
    background: #003049 !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border: none !important;
    vertical-align: middle;
}

.table.custom-transport-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f6;
    font-size: 0.9rem;
    color: #2b2d42;
    transition: background-color 0.2s ease;
}

.table.custom-transport-table tbody tr:hover td {
    background-color: rgba(29, 53, 87, 0.04) !important;
}

.table.custom-transport-table tbody tr:nth-of-type(even) td {
    background-color: #f8fafc;
}

/* Route Badges */
.table.custom-transport-table .route-badge {
    display: inline-block;
    background: #eef4f8;
    color: #003049;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #cbe0ee;
    margin: 2px 4px 2px 0;
    white-space: nowrap;
}

/* Export Buttons Styling */
.dt-buttons .btn {
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 0.825rem !important;
    padding: 6px 14px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out !important;
    border: none !important;
}

.dt-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.dt-buttons .buttons-copy {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    color: #ffffff !important;
}

.dt-buttons .buttons-excel {
    background: linear-gradient(135deg, #198754, #146c43) !important;
    color: #ffffff !important;
}

.dt-buttons .buttons-csv {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0) !important;
    color: #ffffff !important;
}

.dt-buttons .buttons-pdf {
    background: linear-gradient(135deg, #dc3545, #b02a37) !important;
    color: #ffffff !important;
}

.dt-buttons .buttons-print {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important;
    color: #ffffff !important;
}

/* DataTables Search & Control Layout */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #1d3557;
    box-shadow: 0 0 0 0.2rem rgba(29, 53, 87, 0.15);
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.875rem;
}

/* Processing Overlay */
.dataTables_wrapper .dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid #e0e6ed !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    padding: 12px 24px !important;
    z-index: 1050;
    font-weight: 500;
    color: #003049;
}

/* Pagination Styling */
div.dataTables_wrapper div.dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    padding: 5px 12px !important;
    margin: 0 2px !important;
    border: 1px solid #ced4da !important;
    background: #ffffff !important;
    color: #003049 !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button.current,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current:hover,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current:focus,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:focus,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:active,
.dataTables_wrapper .dataTables_paginate span .paginate_button.current,
.dataTables_wrapper .dataTables_paginate span .paginate_button.current:hover {
    background: #003049 !important;
    background-color: #003049 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #003049 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(0, 48, 73, 0.25) !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eef2f6 !important;
    color: #003049 !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button.disabled,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.disabled:hover,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.disabled:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    cursor: not-allowed !important;
    color: #6c757d !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    opacity: 0.7;
    box-shadow: none !important;
}

/* Action Buttons Badges */
.table .btn-group-sm > .btn {
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.8rem;
}
