/* Cancel booking dialog */
.booking-cancel-dialog {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
}

.booking-cancel-dialog__overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.booking-cancel-dialog__panel {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    padding: 20px 22px;
}

.booking-cancel-dialog__title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: #1e293b;
}

.booking-cancel-dialog__meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    margin: 0 0 14px;
    font-size: 0.9rem;
}

.booking-cancel-dialog__meta-label {
    color: #64748b;
    font-weight: 500;
}

.booking-cancel-dialog__meta-value {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}

.booking-cancel-dialog__prompt {
    margin: 0 0 10px;
    color: #334155;
    font-size: 0.92rem;
}

.booking-cancel-dialog__choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.booking-cancel-choice {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.booking-cancel-choice:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.booking-cancel-choice--active {
    background: #fef2f2;
    border-color: #dc2626;
    color: #991b1b;
}

.booking-cancel-dialog__reason-wrap {
    margin-bottom: 12px;
}

.booking-cancel-dialog__reason-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.booking-cancel-dialog__reason-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 72px;
}

.booking-cancel-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.booking-cancel-dialog__btn {
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.booking-cancel-dialog__btn--ghost {
    background: #e2e8f0;
    color: #334155;
}

.booking-cancel-dialog__btn--ghost:hover {
    background: #cbd5e1;
}

.booking-cancel-dialog__btn--danger {
    background: #dc2626;
    color: #fff;
}

.booking-cancel-dialog__btn--danger:hover:not(:disabled) {
    background: #b91c1c;
}

.booking-cancel-dialog__btn--danger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Cancelled booking tile on calendar */
.admin-scheduled-name.cancelled {
    background: #fee2e2 !important;
    border: 2px solid #dc2626 !important;
    color: #991b1b !important;
    opacity: 0.92;
}

.admin-scheduled-name.cancelled .booking-main-label,
.admin-scheduled-name.cancelled .scheduler-booking-subline {
    text-decoration: line-through;
}

.admin-scheduled-name.cancelled::before {
    content: 'CANCELLED';
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #dc2626;
    margin-bottom: 2px;
}

.context-menu-item.redo-action {
    color: #15803d;
}

.context-menu-item.redo-action:hover {
    background: #f0fdf4;
}

.context-menu-item.cancel-action {
    color: #dc2626;
}

.context-menu-item.cancel-action:hover {
    background: #fef2f2;
}

/* Client2 / shared action buttons */
.cleaning-cancel-btn,
.btn-cancel-cleaning {
    background: #fff;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
}

.cleaning-cancel-btn:hover,
.btn-cancel-cleaning:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    transform: translateY(-1px);
}

/* Dashboard cancellations list */
.cancellations-help-text {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}

.cancellations-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.cancellations-summary-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}

.cancellations-summary-item .label {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 4px;
}

.cancellations-summary-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.cancellations-summary-item.revenue-lost .value {
    color: #dc2626;
}

.cancellations-list {
    max-height: 280px;
    overflow-y: auto;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
}

.cancellation-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    align-items: center;
}

.cancellation-row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cancellation-redo-btn {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #15803d;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.cancellation-redo-btn:hover:not(:disabled) {
    background: #dcfce7;
    border-color: #4ade80;
}

.cancellation-redo-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.cancellation-row:last-child {
    border-bottom: none;
}

.cancellation-row .client-name {
    font-weight: 600;
    color: #0f172a;
}

.cancellation-row .meta {
    color: #64748b;
    font-size: 0.78rem;
}

.cancellation-row .amount {
    font-weight: 700;
    color: #dc2626;
    text-align: right;
}

.cancellation-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cancellation-badge.client {
    background: #dbeafe;
    color: #1d4ed8;
}

.cancellation-badge.admin {
    background: #fee2e2;
    color: #b91c1c;
}
