.editcolor {
    color: var(--web-button-color, #ffffff) !important;
    background: var(--web-button-bg, #2b3699) !important;
}
.tabcolor.active {
    color: var(--web-button-color, #ffffff) !important;
    background: var(--web-button-bg, #2b3699) !important;
}
.tabcolor.active {
    color: var(--web-button-color, #ffffff) !important;
    background: var(--web-button-bg, #2b3699) !important;
}
.validate-button,
.add-room-button,
.daterangepicker .drp-buttons .btn {
    color: var(--web-button-color, #ffffff) !important;
    background: var(--web-button-bg, #2b3699) !important;
}
@media (min-width: 767px) {
    .tour_container .detail {
        min-height: 129.2px !important;
    }
}
.rtl .custom-search-input-2 select {
    border: 0;
    border-right-width: 0px;
    border-right-style: none;
    border-right-color: currentcolor;
    padding-right: 40px !important;
    padding-left: 4px !important;
    border-right: 0;
}

/* Dashboard Button Styles */
.dashboard-btn.btn-xs {
    padding: 0.25rem;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 0.2rem;
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dashboard-btn.btn-xs i {
    font-size: 0.875rem;
}
.button-stack > * {
    margin-bottom: 0.75rem;
}
.button-stack > *:last-child {
    margin-bottom: 0;
}
/* Custom button styles */
.dashboard-btn.dashboard-btn-success {
    background-color: #4CAF50;
    border-color: #45a049;
    color: white;
}
.dashboard-btn.dashboard-btn-success:hover {
    background-color: #45a049;
    border-color: #3d8b40;
}
.dashboard-btn.dashboard-btn-warning {
    background-color: #ff9800;
    border-color: #f57c00;
    color: white;
}
.dashboard-btn.dashboard-btn-warning:hover {
    background-color: #f57c00;
    border-color: #ef6c00;
}
.dashboard-btn.dashboard-btn-info {
    background-color: #2196F3;
    border-color: #1e88e5;
    color: white;
}
.dashboard-btn.dashboard-btn-info:hover {
    background-color: #1e88e5;
    border-color: #1976d2;
}
.dashboard-btn.dashboard-btn-danger {
    background-color: #f44336;
    border-color: #e53935;
    color: white;
}
.dashboard-btn.dashboard-btn-danger:hover {
    background-color: #e53935;
    border-color: #d32f2f;
}
.dashboard-btn[disabled] {
    background-color: #9e9e9e !important;
    border-color: #757575 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Payment Status Badges */
.dashboard-badge-paid {
    background-color: #28a745 !important;
    color: #ffffff !important;
}
.dashboard-badge-partial {
    background-color: #ffc107 !important;
    color: #000000 !important;
}
.dashboard-badge-unpaid {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Status Badge Colors */
.dashboard-badge.dashboard-badge-confirmed {
    background-color: #28a745 !important;
    color: #ffffff !important;
    border-color: #28a745 !important;
}
.dashboard-badge.dashboard-badge-waiting {
    background-color: #ffc107 !important;
    color: #000000 !important;
    border-color: #ffc107 !important;
}
.dashboard-badge.dashboard-badge-cancelled {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    border-color: #dc3545 !important;
}
.dashboard-badge.dashboard-badge-draft {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
}

/* Dashboard Table Styles */
.dashboard-table {
    font-size: 0.8125rem;
}
.dashboard-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
}
.dashboard-table td {
    vertical-align: middle;
    text-align: center;
}
.dashboard-badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    display: inline-block;
}
.dashboard-table .text-muted {
    font-size: 0.75rem;
}
.dashboard-table .fw-bold {
    font-weight: 500 !important;
}
/* Make sure inline-block elements are centered */
.dashboard-table td > .d-inline-block {
    margin: 0 auto;
}
/* Ensure badges are centered */
.dashboard-table td > .dashboard-badge {
    margin: 0 auto;
}
/* Center button in action column */
.dashboard-table td > .btn {
    margin: 0 auto;
    display: block;
}

/* Dashboard Header Styles */
.dashboard-header {
    padding: 1.5rem 0;
}
.dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}
.dashboard-header .text-muted {
    font-size: 0.875rem;
}
/* Stats Cards Centering */
.stat-card {
    text-align: center;
}
.stat-card-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.stat-card-content p {
    font-size: 0.875rem;
    margin: 0;
    color: #6c757d;
}

/* Hotel Booking Card Styles */
.booking-card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.booking-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.booking-card .card-header {
    border-bottom: 2px solid #f8f9fa;
}

.booking-card .stars {
    margin-top: 0.25rem;
}

.booking-card .stars i {
    color: #ffc107;
    font-size: 0.875rem;
}

.booking-info-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
}

.booking-info-item:hover {
    background-color: #e9ecef;
}

/* Payment Status Badges */
.payment-badge {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.5rem;
}

.payment-badge-paid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-badge-unpaid {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-badge-partial {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.payment-details {
    padding: 0.75rem;
    border-radius: 0.25rem;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.payment-details strong {
    color: #533f03;
}

/* Room List Styles */
.room-list {
    border-left: 3px solid var(--web-button-bg, #2b3699);
    padding-left: 1rem;
    margin: 1rem 0;
}

.room-list-item {
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* Guest Info Box */
.guest-info-box {
    background-color: #e8f4f8;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.guest-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guest-info-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.guest-info-box li:last-child {
    border-bottom: none;
}

/* Status Badge Enhancements */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 0.25rem;
}

.status-badge-confirmed {
    background-color: #28a745;
    color: white;
}

.status-badge-pending {
    background-color: #ffc107;
    color: #000;
}

.status-badge-cancelled {
    background-color: #dc3545;
    color: white;
}

/* Price Display */
.price-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--web-button-bg, #2b3699);
}

.price-details {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Dashboard icon containers */
.dashboard-icon-container {
    width: 60px;
    height: 60px;
}

/* Large icons in empty states */
.dashboard-large-icon {
    font-size: 4rem;
}

/* Modal styles */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
}

.custom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-dialog {
    background: white;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.custom-modal-content {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(90vh - 50px);
}

.custom-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.custom-modal-close:hover {
    background: #e9ecef;
}

body.modal-open {
    overflow: hidden;
}

/* Demande Page Styles */
.dashboard-card-body {
    position: relative;
}

.searchBookings {
    position: relative;
}

.searchBookings .cardImage {
    display: none;
}

.searchBookings .list-booking {
    padding: 10px;
    padding-bottom: 20px;
    max-height: 300px;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
    border-radius: var(--pro-border-radius);
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99999;
}

/* Container for the dropdown to ensure proper positioning */
.searchBookings .position-relative {
    position: static !important;
}

.searchBookings .bookings {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--pro-transition);
    background: white;
}

.searchBookings .bookings:hover {
    background-color: rgba(9, 88, 151, 0.05);
}

.searchBookings .bookings:last-child {
    border-bottom: none;
}

.searchBookings .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(9, 88, 151, 0.25);
}

/* Ensure the scrollbar is visible and styled */
.searchBookings .list-booking::-webkit-scrollbar {
    width: 8px;
}

.searchBookings .list-booking::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.searchBookings .list-booking::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.searchBookings .list-booking::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Override any potential overflow hidden */
.dashboard-card,
.dashboard-card-body,
.container,
.row,
.col-12 {
    overflow: visible !important;
}

/* Promo Code Section Styles */
.promo-code-section {
    margin-top: 20px;
    padding: 20px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.promo-code-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.promo-code-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.promo-code-input button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    background-color: var(--web-button-bg, #2b3699);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.promo-code-input button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.promo-code-message {
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    display: none;
}

.promo-code-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.promo-code-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.applied-promocodes {
    margin: 15px 0;
}

.applied-promocode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 8px;
}

.applied-promocode:last-child {
    margin-bottom: 0;
}

.promocode-info {
    display: flex;
    flex-direction: column;
}

.promocode-code {
    font-weight: 500;
    color: var(--web-button-bg, #2b3699);
}

.promocode-discount {
    font-size: 12px;
    color: #6c757d;
}

.remove-promocode {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    transition: color 0.3s;
}

.remove-promocode:hover {
    color: #bd2130;
}

.promo-code-discount {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    display: none;
}

.promo-code-discount.show {
    display: block;
}
