.final-stop-vehicle {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.vehicles-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.vehicles-list th,
.vehicles td {
    padding: 12px;
    border: 1px solid #ddd;
}

.vehicles-list th {
    background: #f5f5f5;
}

.vehicles-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1.15em !important;
}

.form-row input[type="text"],
.form-row textarea {
    width: 100%;
    padding: 8px;
}

.image-upload-container,
.gallery-upload-container {
    margin-top: 10px;
}

#featured-image-preview img,
#gallery-preview img {
    max-width: 150px;
    height: auto;
    margin: 5px;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.button {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    text-decoration: none;
}

.button.delete {
    color: #dc3232;
}





.vehicle-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2em;
}

.vehicle-images, .vehicle-details {
    flex: 1 1 50%;
    padding: 1em;
}

.featured-image {
    width: 100%;
    height: auto;
}

.vehicle-gallery {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1em;
}

.vehicle-gallery img {
    width: calc(16.666% - 10px);
    margin: 5px;
}

.vehicle-tabs {
    clear: both;
}

.tab-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 1px solid #ccc;
}

.tab-nav li {
    margin-right: 10px;
}

.tab-nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
}

.tab-nav li.active a {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom: none;
}

.tab-content {
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

#resource-table_wrapper, 
#resource-list_wrapper {
    background-color: white;
}

#resource-table, 
#resource-list {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background-color: white;
}

#resource-table thead th, 
#resource-list thead th {
    background-color: #011132;
    color: white;
    text-align: center;
    padding: 12px;
}

#resource-table th:nth-child(1) {
    width: 30%;
}

#resource-table th:nth-child(2) {
    width: 50%;
}

#resource-table th:nth-child(3),
#resource-table th:nth-child(4) {
    width: 10%;
}

#resource-list th:nth-child(2),
#resource-list th:nth-child(4) {
    width: 25%;
}

#resource-list th:nth-child(5),
#resource-list th:nth-child(6) {
    width: 10%;
}

#resource-list th:nth-child(5),
#resource-list th:nth-child(6) {
    width: 10%;
    text-align: center;
}

#resource-list th:nth-child(1),
#resource-list th:nth-child(3),
#resource-list th:nth-child(7) {
    width: 10%;
}

#resource-table td, 
#resource-list td {
    padding: 12px;
    border: none; /* Removes all borders */
    border-bottom: 1px solid #ffffff; /* Adds only bottom border */
    word-wrap: break-word;
    vertical-align: top;
    color: #011132;
}

/* Center align the action column */
#resource-table td:last-child {
    text-align: center;
}

/* Center align #resource-list table columns */
#resource-list td:nth-child(1),
#resource-list td:nth-child(3),
#resource-list td:nth-child(5),
#resource-list td:nth-child(6),
#resource-list td:nth-child(7) {
    text-align: center;
}

#resource-table tr:nth-child(odd), 
#resource-list tr:nth-child(odd),
#resource-table tr:nth-child(odd)>td, 
#resource-list tr:nth-child(odd)>td {
    background-color: #ffffff;
}

#resource-table tr:nth-child(even), 
#resource-list tr:nth-child(even),
#resource-table tr:nth-child(even)>td, 
#resource-list tr:nth-child(even)>td {
    background-color: #f0f2f7;
}

#resource-table .action-link {
    color: #011132;
    text-decoration: none;
    font-weight: bold;
}

#resource-table .action-link:hover {
    color: #c21616;
}


/* Style the table footer */
#resource-table_wrapper .bottom, 
#resource-list_wrapper .bottom {
    background-color: #011132;
    padding: 20px;
    color: white;
    margin-bottom: 30px;
}

/* Ensure pagination and info text in footer is visible */
#resource-table_wrapper .dataTables_info,
#resource-table_wrapper .dataTables_paginate,
#resource-table_wrapper .dataTables_length,
#resource-list_wrapper .dataTables_info,
#resource-list_wrapper .dataTables_paginate,
#resource-list_wrapper .dataTables_length {
    color: white;
}

/* Style pagination buttons in footer */
#resource-table_wrapper .paginate_button, #resource-list_wrapper .paginate_button {
    color: white !important;
}

#resource-table_wrapper .paginate_button.current, #resource-list_wrapper .paginate_button.current {
    color: #011132 !important;
}
#resource-table_wrapper .dt-length,
#resource-list_wrapper .dt-length {
    width: 25%;
    margin-bottom: 10px;
}

#resource-table_wrapper .dt-info,
#resource-list_wrapper .dt-info {
    margin-bottom: 10px;
}

#resource-table_wrapper .dt-paging-button:hover,
#resource-list_wrapper .dt-paging-button:hover {
    background-color: #c21616;
    color: white;
}

#resource-table_wrapper .dt-paging-button,
#resource-list_wrapper .dt-paging-button {
    border-color: white;
    color: white;
}

.dva_resource_cats ul {
    list-style-type: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #resource-table, 
    #resource-list {
        display: block;
        overflow-x: auto;
    }
}