.admin-exchange-takeover { margin-left: 4px; }
.admin-exchange-takeover-action { margin-top: 6px; }
.admin-exchange-takeover-action--form { clear: both; padding-top: 6px; text-align: right; }
.admin-exchange-takeover--completed,
.admin-exchange-takeover--completed:hover,
.admin-exchange-takeover--completed:focus {
    cursor: pointer;
    opacity: 1;
}
.admin-exchange-takeover-banner .label { display: inline-block; padding: 4px 8px; }
.admin-exchange-takeover-banner .btn { margin-top: -3px; }
.admin-exchange-takeover-overlay {
    align-items: center;
    background: rgba(0, 0, 0, .35);
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
}

.admin-exchange-takeover-dialog {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
    overflow: hidden;
    position: relative;
    width: 420px;
}

.admin-exchange-takeover-header {
    background: #337ab7;
    color: #fff;
    padding: 12px 16px;
    position: relative;
}

.admin-exchange-takeover-header h4 {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

.admin-exchange-takeover-header .close {
    color: #fff;
    font-size: 16px;
    opacity: 1;
    position: absolute;
    right: 12px;
    top: 10px;
}

.admin-exchange-takeover-body { padding: 20px 24px 8px; }

.admin-exchange-takeover-body label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    margin: 0 0 8px;
}

.admin-exchange-takeover-body input {
    height: 34px;
    margin: 0 0 8px;
    width: 100%;
}

.admin-exchange-takeover-dialog > .text-danger {
    font-size: 11px;
    margin: 0 24px 8px;
}

.admin-exchange-takeover-footer {
    border-top: 1px solid #e5e5e5;
    padding: 12px 24px;
    text-align: center;
}

.admin-exchange-takeover-footer .btn { min-width: 90px; }

@media (max-width: 480px) {
    .admin-exchange-takeover-dialog { width: calc(100% - 30px); }
}

.admin-exchange-policy { margin: 10px 0; }

/* The generic accordion stylesheet loads after module styles. Scope these
 * overrides to retain its blue header and +/- icon while matching the
 * full-width policy accordion used elsewhere in this modal. */
.admin-exchange-policy .accordion1 {
    width: 100%;
    border: 1px solid #CCCCCC;
    border-bottom-color: transparent;
    border-radius: 0;
}

/* Expansion is controlled by Angular's ng-show, not loadAccordion(), so the
 * generic max-height: 0 must not clip visible policy content. */
.admin-exchange-policy .panel-accordion {
    width: 100%;
    max-height: none;
    overflow: visible;
    margin-top: 0;
    text-align: unset;
    font-weight: normal;
    list-style: none;
    padding: 8px 0;
    border: 1px solid #CCCCCC;
    border-top-color: transparent;
}

.admin-exchange-policy-row {
    align-items: center;
    display: flex;
    gap: 12px;
    padding: 4px 16px 4px 33px;
    position: relative;
}

.admin-exchange-policy-row:before {
    color: #333;
    content: "•";
    left: 16px;
    position: absolute;
}

.admin-exchange-policy-label {
    color: #333;
    flex: 0 0 242px;
}

.admin-exchange-policy-value {
    font-weight: normal;
    text-align: left;
}

.admin-exchange-completed-count {
    color: red;
    font-weight: bold;
}

.admin-exchange-policy-blocker { padding: 8px 16px; }

/* Keep the exchange state visible alongside the regular payment status. The
 * booking status is intentionally not replaced: a paid ticket can still have
 * an active exchange request waiting for payment or finalization. */
.exchange-status-badge {
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    margin-top: 4px;
    padding: 3px 6px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
    white-space: nowrap;
}

.exchange-status-badge.exchange-status-badge--payment { background-color: #f0ad4e; }
.exchange-status-badge.exchange-status-badge--processing { background-color: #e97858; }
.exchange-status-badge.exchange-status-badge--taken-over { background-color: #337ab7; }

.exchange-status-badge-row {
    margin-top: 4px;
}

.booking-primary-status {
    display: block;
}
