.exchange-data-table-container {
    overflow-x: auto;
}

.exchange-resizable-datatable {
    table-layout: fixed;
    max-width: none;
}

.exchange-resizable-datatable thead th,
.exchange-resizable-datatable tbody td {
    box-sizing: border-box;
}

.exchange-resizable-datatable thead th {
    position: relative;
}

.exchange-column-resize-handle {
    position: absolute;
    top: 0;
    right: -0.4rem;
    width: 0.8rem;
    height: 100%;
    cursor: col-resize;
    z-index: 3;
    touch-action: none;
}

.exchange-column-resize-handle::after {
    content: "";
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: transparent;
    transition: background-color 0.15s ease-in-out;
}

.exchange-resizable-datatable thead th:hover > .exchange-column-resize-handle::after,
.exchange-column-resize-handle:hover::after,
.exchange-column-resizing .exchange-column-resize-handle::after {
    background: var(--bs-primary, #0d6efd);
}

body.exchange-column-resizing-active,
body.exchange-column-resizing-active * {
    cursor: col-resize !important;
    user-select: none !important;
}

.exchange-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 6.25rem;
    justify-content: center;
    padding: 0.4rem 0.7rem;
    border-radius: 0.475rem;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}

.exchange-status-badge::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.exchange-status-badge--success {
    color: var(--bs-success, #50cd89);
    background: var(--bs-success-light, #e8fff3);
    border-color: rgba(80, 205, 137, 0.22);
}

.exchange-status-badge--danger {
    color: var(--bs-danger, #f1416c);
    background: var(--bs-danger-light, #fff5f8);
    border-color: rgba(241, 65, 108, 0.22);
}

.exchange-status-badge--warning {
    color: var(--bs-warning, #ffc700);
    background: var(--bs-warning-light, #fff8dd);
    border-color: rgba(246, 192, 0, 0.28);
}

.exchange-status-badge--info {
    color: var(--bs-primary, #3e97ff);
    background: var(--bs-primary-light, #eef6ff);
    border-color: rgba(62, 151, 255, 0.2);
}

.exchange-status-badge--primary {
    color: var(--bs-info, #7239ea);
    background: var(--bs-info-light, #f8f5ff);
    border-color: rgba(114, 57, 234, 0.2);
}

.exchange-status-badge--muted {
    color: var(--bs-gray-600, #7e8299);
    background: var(--bs-gray-100, #f9f9f9);
    border-color: var(--bs-gray-200, #f1f1f4);
}

.exchange-status-value {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.exchange-status-value::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.exchange-status-value--success {
    color: var(--bs-success, #50cd89);
}

.exchange-status-value--danger {
    color: var(--bs-danger, #f1416c);
}

.exchange-status-value--warning {
    color: var(--bs-warning, #f6c000);
}

.exchange-status-value--info {
    color: var(--bs-primary, #3e97ff);
}

.exchange-status-value--primary {
    color: var(--bs-info, #7239ea);
}

.exchange-status-value--muted {
    color: var(--bs-gray-600, #7e8299);
}

.billing-transactions-insights .card {
    border: 1px solid var(--bs-gray-200, #f1f1f4);
    box-shadow: 0 0.5rem 1.5rem rgba(25, 28, 50, 0.04) !important;
}

.billing-range-card .form-control {
    min-width: 11rem;
}

.billing-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 128px;
}

.billing-summary-card .card-body {
    position: relative;
    padding: 1.45rem 1.5rem;
}

.billing-summary-accent {
    display: block;
    width: 2.4rem;
    height: 0.24rem;
    border-radius: 99px;
    margin-bottom: 1rem;
}

.billing-chart-card .card-header {
    min-height: auto;
    border-bottom: 0;
}

.billing-chart-card .card-body {
    min-height: 286px;
}

.billing-empty-insight {
    min-height: 220px;
    border: 1px dashed var(--bs-gray-300, #dbdfe9);
    border-radius: 0.625rem;
    background: var(--bs-gray-100, #f9f9f9);
}

.billing-donut {
    position: relative;
    display: grid;
    place-items: center;
    width: min(220px, 74vw);
    aspect-ratio: 1;
    border-radius: 50%;
    flex: 0 0 auto;
}

.billing-donut::after {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: var(--bs-card-bg, #fff);
    box-shadow: inset 0 0 0 1px var(--bs-gray-200, #f1f1f4);
}

.billing-donut-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.billing-legend-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    flex: 0 0 auto;
}

.billing-line-chart {
    width: 100%;
    height: auto;
    min-height: 220px;
}

.billing-chart-axis {
    stroke: var(--bs-gray-300, #dbdfe9);
    stroke-width: 1;
}

.billing-line-area {
    fill: rgba(62, 151, 255, 0.12);
    stroke: none;
}

.billing-line-path {
    fill: none;
    stroke: var(--bs-primary, #3e97ff);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.billing-line-point {
    fill: var(--bs-card-bg, #fff);
    stroke: var(--bs-primary, #3e97ff);
    stroke-width: 3;
}

.billing-chart-label {
    fill: var(--bs-gray-600, #7e8299);
    font-size: 12px;
    font-weight: 600;
}

.billing-bar-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding-top: 0.25rem;
}

.billing-bar-track {
    width: 100%;
    height: 0.65rem;
    border-radius: 99px;
    overflow: hidden;
    background: var(--bs-gray-200, #f1f1f4);
}

.billing-bar-fill {
    height: 100%;
    min-width: 0.45rem;
    border-radius: inherit;
}

@media (max-width: 575.98px) {
    .exchange-status-badge {
        min-width: 5.5rem;
        padding-inline: 0.55rem;
    }

    .billing-chart-card .card-body {
        min-height: auto;
    }
}
