/* assets/css/car-form.css */
.car-form-wrapper {
    max-width: 800px;
    margin: 2em auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.car-form .form-group {
    margin-bottom: 1.5em;
}

.car-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #333;
}

.tableRow input[type="text"],
.tableRow input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    font-size: 16px;
    background: #f8f9fa;
    pointer-events:none;
}

.tableRow select.selDuration {
    padding: 0 10px;
    height: 32px;
    display: inline-block;
    float: left;
}

.car-form .tableRow div.quantity input[type="number"]{
    pointer-events:unset;
    background: #fff;
    border: 1px solid #ddd;
    width: 95%;
}

.disabled-input {
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    cursor: pointer;
    color: #666;
}

.editablebtn {
    pointer-events:unset !important;
}

.enabled-input {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #000;
}

.car-form .car-selection {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

.car-form .car-option {
    display: block;
    padding: 8px;
    margin: 4px 0;
    cursor: pointer;
}

.car-form .car-option:hover {
    background: #f0f0f0;
    border-radius: 4px;
}

.car-form .submit-button {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.car-form .submit-button:hover {
    background: #005177;
}

.car-form .submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.car-form .form-message {
    margin-top: 1em;
}

.car-form .form-message .success {
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 4px;
}

.car-form .form-message .error {
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 4px;
}

.car-form .form-message .info {
    padding: 10px;
    background: #cce5ff;
    border: 1px solid #b8daff;
    color: #004085;
    border-radius: 4px;
}

.tableHead {
    display: block;
    background: #b4b7ba;
    padding: 5px;
}

.tableHead div {
    display: inline-block;
    font-weight: bold;
    border-right: 1px solid #a29c9c;
}

.tableHead div.actionCar {
    width: 5%;
}

.tableHead div.carName {
    width: 25%;
}

.tableHead div.dailyPrice {
    width: 18%;
    text-align: center;
}

.tableHead div.monthlyPrice {
    width: 18%;
    text-align: center;
}

.tableHead div.quantityNo {
    width: 14%;
    text-align: center;
    /*border-right: 0;*/
}

.tableHead div.carDate {
    width: 18%;
    border-right: 0;
    text-align: center;
}

.tableRow div {
    display: inline-block;
}

.tableRow {
    display: block;
    margin-bottom: 5px;
    border-bottom: 1px solid #b4b7ba30;
    padding-bottom: 5px;
}

.tableRow div.carAction {
    width: 5%;
    text-align: center;
}

.tableRow div.carName {
    width: 25%;
}

.tableRow div.dailyPrice input , .tableRow div.monthlyPrice input {
    padding: 0.3em;
    text-align:center;
}

.tableRow div.dailyPrice, .tableRow div.monthlyPrice {
    width: 18%;
}

.tableRow div.quantity {
    width: 14%;
}

.tableRow div.carDate input {
    padding: .3em;
    width: 50%;
    margin-left: 5px;
}

.tableRow div.carDate {
    width: 18%;
}

.tableRow label {
    cursor: pointer;
}

footer#colophon, header#masthead {
    display: none;
}


/* Search and Select Cars Container */
.search-and-select-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.search-and-select-container label {
    margin-bottom: 0; /* Remove default margin for better alignment */
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between label and input */
}

.search-container label {
    white-space: nowrap; /* Prevent label from wrapping */
}

#car-search {
    width: 200px; /* Adjust width as needed */
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .search-and-select-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        width: 100%;
        margin-top: 10px;
    }

    #car-search {
        width: 100%;
    }
}


/* Existing CSS remains the same until the media query */

/* Responsive Design for Mobile */
@media (max-width: 600px) {
    .tableHead {
        display: flex;
        flex-wrap: wrap;
        background: #b4b7ba;
        padding: 5px;
        margin-bottom: 10px;
    }

    .tableHead div {
        width: 100%;
        text-align: left;
        padding: 5px 0;
        border-right: none;
    }

    .tableHead div.actionCar,
    .tableHead div.carName {
        width: 100%;
    }

    .tableHead div.dailyPrice,
    .tableHead div.monthlyPrice {
        width: 50%;
        text-align: left;
    }

    .tableHead div.quantityNo,
    .tableHead div.carDate {
        width: 50%;
        text-align: left;
    }

    .tableRow {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .tableRow div {
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .tableRow div.carAction {
        width: 10%;
        text-align: left;
    }

    .tableRow div.carName {
        width: 90%;
        font-weight: bold;
    }

    .tableRow div.dailyPrice,
    .tableRow div.monthlyPrice {
        width: 50%;
        text-align: left;
    }

    .tableRow div.quantity,
    .tableRow div.carDate {
        width: 50%;
        text-align: left;
    }

    .tableRow div.carDate input {
        width: 60%; /* Adjust input width for better fit */
    }

    .tableRow div.quantity input[type="number"],
    .tableRow div.carDate input[type="number"] {
        width: 100%; /* Full width for number inputs */
    }

    .tableRow div.carDate select.selDuration {
        width: 100%; /* Full width for duration select */
    }

    .search-and-select-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        width: 100%;
        margin-top: 10px;
    }

    #car-search {
        width: 100%;
    }
}

/* Default Table Head Styles (Desktop) */
.tableHead {
    display: flex;
    flex-wrap: wrap;
    background: #b4b7ba; /* Full-width background for desktop */
    padding: 5px;
    margin-bottom: 10px;
}

.tableHead div {
    text-align: left;
    padding: 5px 0;
    border-right: none;
    background: transparent; /* No background for words on desktop */
}

/* Mobile Styles */
@media (max-width: 600px) {
    .tableHead {
        background: transparent; /* Remove full-width background on mobile */
    }

    .tableHead div {
        display: inline-block;
        padding: 5px 10px;
        background-color: #b4b7ba; /* Box background for words on mobile */
        border-radius: 4px; /* Rounded corners for the box */
        font-weight: bold;
        color: #333; /* Text color */
        margin: 1px !important;
        text-align: center;
    }

    .tableHead div {
        width: 100%;
    }
    .tableHead div.actionCar{
        background-color: transparent;
    } 
    .tableHead div.actionCar,
    .tableHead div.carName {
        width: 100%;
    }

    .tableHead div.dailyPrice,
    .tableHead div.monthlyPrice {
        width: 49%;
    }

    .tableHead div.quantityNo,
    .tableHead div.carDate {
        width: 49%;
    }
    #company_name,#quotation_date,#car-search{
        width: 100%;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        padding: 12px 16px;
        border: none !important;
        box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.05);
        margin-bottom: 15px !important;
    }

}