﻿
.header-actions {
    display: flex;
    gap: 10px;
}

.button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-red {
    background: #e74c3c;
    color: white;
}

    .btn-red:hover {
        background: #c0392b;
    }

.btn-black {
    background: #34495e;
    color: white;
}

    .btn-black:hover {
        background: #2c3e50;
    }

/* Order Type Radio Buttons */
.order-type-container {
    display: flex;
    flex-wrap: wrap;
    /*gap: 2px;*/
    margin-bottom: 20px;
    /*padding: 15px;*/
    background: #f8f9fa;
    border-radius: 8px;
}

.order-type-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .order-type-item input[type="radio"] {
        margin: 0;
        cursor: pointer;
    }

    .order-type-item label {
        cursor: pointer;
        font-weight: 500;
    }

/* Equipment List Styling */
.equipment-list-container {
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    text-align:left;
}

.equipment-list-header {
    background: #f8f9fa;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

    .equipment-list-header:hover {
        background: #e9ecef;
    }

    .equipment-list-header i {
        transition: transform 0.3s;
    }

    .equipment-list-header.collapsed i {
        transform: rotate(-90deg);
    }

.equipment-items {
    padding: 15px;
    background: white;
}

.equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
}

    .equipment-item:last-child {
        border-bottom: none;
    }

.equipment-info {
    flex: 1;
}

.equipment-category {
    font-weight: 600;
    color: #3498db;
    font-size: 13px;
}

.equipment-model {
    font-size: 14px;
    margin-top: 2px;
}

.equipment-quantity {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.btn-delete-equipment {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

    .btn-delete-equipment:hover {
        color: #c0392b;
    }

.empty-equipment {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

/* Add Equipment Section */
.add-equipment-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #3498db;
}

.add-equipment-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.equipment-form {
    display: grid;
    grid-template-columns: 1fr 1fr 100px auto;
    gap: 10px;
    align-items: end;
}

    .equipment-form .form-group {
        margin-bottom: 0;
    }

    .equipment-form label {
        font-size: 13px;
        margin-bottom: 3px;
        display: block;
    }

.popup {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
}

.popup-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header-content {
    font-size: 18px;
    font-weight: 600;
}

.close-popup-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

    .close-popup-button:hover {
        color: #e74c3c;
    }

.popup-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.popup-background {
    background-color: rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

    .form-control:focus {
        border-color: #3498db;
        outline: none;
        box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
    }

.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .equipment-form {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.RadComboBoxDropDown {
    z-index: 999999 !important;
}

.rcbSlide {
    z-index: 999999 !important;
}

.select2-container .select2-selection--single {
    height: 38px !important;
    font-size: 13px !important;
    line-height: 36px !important;
}

/* Add to your existing <style> section */
.select2-container--open {
    z-index: 999999 !important;
}

.select2-dropdown {
    z-index: 999999 !important;
}

/* Ensure the modal doesn't block the dropdown */
.popup-background {
    z-index: 99998 !important;
}

.popup {
    z-index: 99999 !important;
}

select.form-control,
.chosen-select,
.radcombobox,
select {
    font-size: 14px !important;
}
    /* Increase font size for dropdown options */
    select.form-control option,
    .chosen-select option,
    select option {
        font-size: 14px !important;
        padding: 8px !important;
    }


/* Rentals page: search/filter controls inline in the table section header */
.section-header-rental {
    padding: 13px;
    background: white;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.rentals-filter-controls {
    display: flex;
    align-items: left;
    gap: 10px;
    flex: 1;
    justify-content: left;
    min-width: 300px;
}

.search-box-rental {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 200px;
}

.search-box-rental i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.search-box-rental input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    box-sizing: border-box;
}

.search-box-rental input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

@media (max-width: 768px) {
    .section-header-rental {
        flex-direction: column;
        align-items: stretch;
    }

    .rentals-filter-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .search-box-rental {
        max-width: 100%;
    }
}
.btn-clear-rental {
    padding: 10px 20px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

    .btn-clear-rental:hover {
        background: #7f8c8d;
    }