/* Select2 - müşteri araç formu */
.customer-vehicle-select2-container .select2-selection--single {
    height: calc(1.5em + .75rem + 2px) !important;
    min-height: 38px;
    border: 1px solid #ced4da !important;
    border-radius: .25rem !important;
    padding: .375rem .75rem;
    background-color: #fff;
    box-shadow: none;
}

.customer-vehicle-select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding-left: 0 !important;
    padding-right: 24px !important;
    color: #495057 !important;
    font-weight: 400;
}

.customer-vehicle-select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 8px !important;
}

.customer-vehicle-select2-dropdown.select2-dropdown {
    z-index: 9999 !important;
    border: 1px solid #ced4da !important;
    border-radius: .25rem !important;
    padding: 6px !important;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.customer-vehicle-select2-dropdown .select2-search--dropdown {
    padding: 4px 6px;
}

.customer-vehicle-select2-dropdown .select2-search__field {
    border: 1px solid #ced4da !important;
    border-radius: .25rem !important;
    padding: .375rem .75rem !important;
    height: auto !important;
    color: #495057 !important;
    background-color: #fff;
    font-weight: 400;
}

.customer-vehicle-select2-dropdown .select2-results__option {
    color: #495057 !important;
    padding: 8px 12px !important;
    border-radius: .25rem;
    margin: 2px 0;
}

.customer-vehicle-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #e6fce7 !important;
    color: #2d7a46 !important;
}

.customer-vehicle-select2-dropdown .select2-results__option[aria-selected="true"] {
    background-color: #f0f9f1 !important;
    color: #4FAA53 !important;
}

.customer-vehicle-select2-dropdown .select2-results__option[aria-disabled="true"] {
    display: none !important;
}

.dark-theme .customer-vehicle-select2-container .select2-selection--single {
    background-color: #1F2128;
    border-color: #404652 !important;
}

.dark-theme .customer-vehicle-select2-container .select2-selection--single .select2-selection__rendered {
    color: #d7dae3 !important;
}

.dark-theme .customer-vehicle-select2-dropdown.select2-dropdown {
    background-color: #1F2128 !important;
    border-color: #404652 !important;
}

.dark-theme .customer-vehicle-select2-dropdown .select2-search__field {
    background-color: #272B33 !important;
    border-color: #404652 !important;
    color: #d7dae3 !important;
}

.dark-theme .customer-vehicle-select2-dropdown .select2-results__option {
    color: #d7dae3 !important;
}

.dark-theme .customer-vehicle-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #2f3642 !important;
    color: #5fd0a5 !important;
}

.dark-theme .customer-vehicle-select2-dropdown .select2-results__option[aria-selected="true"] {
    background-color: #272B33 !important;
    color: #5fd0a5 !important;
}

/* Randevu / iş emri durum seçimi */
select.form-control.appointment-status-select,
select.form-control.work-order-status-select {
    font-weight: 600;
    border-width: 1px;
    border-style: solid;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%23343a40' d='M6 8L1 3h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 10px 10px;
    padding-right: 1.75rem;
}

select.form-control.appointment-status-select.badge-warning,
select.form-control.work-order-status-select.badge-warning {
    color: #856404 !important;
    background-color: #fff3cd !important;
    border-color: #ffeeba !important;
}

select.form-control.appointment-status-select.badge-primary,
select.form-control.work-order-status-select.badge-primary {
    color: #004085 !important;
    background-color: #cce5ff !important;
    border-color: #b8daff !important;
}

select.form-control.appointment-status-select.badge-info,
select.form-control.work-order-status-select.badge-info {
    color: #0c5460 !important;
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
}

select.form-control.appointment-status-select.badge-success,
select.form-control.work-order-status-select.badge-success {
    color: #155724 !important;
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}

select.form-control.appointment-status-select.badge-danger,
select.form-control.work-order-status-select.badge-danger {
    color: #721c24 !important;
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
}

select.form-control.appointment-status-select.badge-secondary,
select.form-control.work-order-status-select.badge-secondary {
    color: #383d41 !important;
    background-color: #e2e3e5 !important;
    border-color: #d6d8db !important;
}

select.form-control.appointment-status-select.badge-light,
select.form-control.work-order-status-select.badge-light {
    color: #383d41 !important;
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

select.form-control.appointment-status-select:disabled,
select.form-control.work-order-status-select:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* İş emri detay */
.work-order-invoice {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    padding: 2rem;
}

.work-order-invoice__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #4FAA53;
    margin-bottom: 1.5rem;
}

.work-order-invoice__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: .25rem;
}

.work-order-invoice__meta {
    text-align: right;
    color: #6c757d;
    font-size: .925rem;
}

.work-order-invoice__section-title {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #4FAA53;
    margin-bottom: .75rem;
}

.work-order-invoice__info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.work-order-invoice__box {
    background: #f8f9fa;
    border: 1px solid #eef0f2;
    border-radius: .375rem;
    padding: 1rem 1.125rem;
}

.work-order-invoice__box p {
    margin-bottom: .35rem;
    color: #495057;
}

.work-order-invoice__box p:last-child {
    margin-bottom: 0;
}

.work-order-invoice__status {
    display: inline-block;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
}

.work-order-invoice__table th {
    background: #f1f3f5;
    border-top: none;
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #495057;
}

.work-order-invoice__table td,
.work-order-invoice__table th {
    vertical-align: middle;
}

.work-order-invoice__total-row td {
    font-size: 1.05rem;
    font-weight: 700;
    border-top: 2px solid #dee2e6;
}

.work-order-invoice__notes {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #dee2e6;
}

.work-order-invoice__note-box {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: .375rem;
    padding: 1rem;
    min-height: 88px;
    color: #495057;
    white-space: pre-wrap;
}

@media (max-width: 767.98px) {
    .work-order-invoice {
        padding: 1.25rem;
    }

    .work-order-invoice__header,
    .work-order-invoice__info-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .work-order-invoice__meta {
        text-align: left;
    }
}

@media print {
    .work-order-invoice-actions {
        display: none !important;
    }

    .page-sidebar,
    .page-header,
    .page-footer {
        display: none !important;
    }

    .page-content {
        padding: 0 !important;
    }

    .work-order-invoice {
        border: none;
        box-shadow: none;
        max-width: 100%;
    }
}
