/* --- SCOPED CSS FOR CANCELLED BOOKING DETAILS PAGE --- */
/* --- Header Section --- */
.cbd-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.cbd-title-group h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cbd-badge-cancelled {
    background-color: #FEE2E2;
    color: #991B1B;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    vertical-align: middle;
}

.cbd-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.cbd-text-red {
    color: #CE0000 !important;
    font-weight: 600;
}

.cbd-text-green {
    color: #199505 !important;
    font-weight: 600;
}

.cbd-text-blue {
    color: #3372CF !important;
    font-weight: 600;
}

/* Button */
.cbd-btn-outline {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .cbd-btn-outline:hover {
        background-color: #f8fafc;
        border-color: #94a3b8;
        color: #1e293b;
    }

    .cbd-btn-outline svg {
        width: 16px;
        height: 16px;
        color: #64748b;
    }

/* --- Main Grid Layout --- */
.cbd-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* --- Card Styles (UPDATED) --- */
.cbd-card {
    background-color: #FFFFFF; /* Changed to White */
    border-radius: 12px;
    border: 1px solid #DCE5E0; /* Added Border */
    margin-bottom: 16px;
    overflow: hidden; /* Ensures header rounds with the card */
}

.cbd-card-header {
    background-color: #EAF2E9;
    padding: 12px 16px;
    border-bottom: 1px solid #DCE5E0;
}

    .cbd-card-header h3 {
        font-size: 18px;
        font-weight: 700;
        color: #37473F;
        margin: 0;
    }

.cbd-card-body {
    padding: 16px;
}

/* Key-Value Rows */
.cbd-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 13px;
}

    .cbd-row:last-child {
        margin-bottom: 0;
    }

.cbd-label {
    color: #64748B;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 16px;
}

.cbd-value {
    color: #1E293B;
    font-weight: 600;
    text-align: right;
}

/* --- Specific Card Layouts --- */

/* Room Details */
.cbd-room-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cbd-room-img {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #E2E8F0;
    flex-shrink: 0;
}

.cbd-room-stats {
    flex: 1;
}

    .cbd-room-stats .cbd-row {
        margin-bottom: 12px;
    }

/* Check-in / Check-out */
.cbd-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cbd-check-col h4 {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
    margin: 0 0 12px 0;
}

.cbd-icon-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 8px;
}

    .cbd-icon-text svg {
        width: 16px;
        height: 16px;
        color: #64748B;
    }

/* Dividers */
.cbd-divider {
    height: 1px;
    background-color: #E2E8E2;
    margin: 12px 0;
}

/* Badges inside tables */
.cbd-badge-processing {
    background-color: #E0E7FF;
    color: #4338CA;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .cbd-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cbd-header {
        flex-direction: column;
        gap: 16px;
    }

    .cbd-room-info {
        flex-direction: column;
        align-items: stretch;
    }

    .cbd-room-img {
        width: 100%;
        height: 160px;
    }
}

