.traffic-details-panel {
    margin-bottom: 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #24324a;
    overflow: hidden;
}

.traffic-details-header,
.traffic-details-section {
    padding: 18px 20px;
}

.traffic-details-header {
    border-bottom: 1px solid #e5e7eb;
}

.traffic-details-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.traffic-details-subtitle,
.traffic-details-note {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.traffic-details-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #e5e7eb;
}

.traffic-details-metric {
    min-width: 0;
    padding: 16px 20px;
    border-right: 1px solid #e5e7eb;
}

.traffic-details-metric:last-child {
    border-right: 0;
}

.traffic-details-metric-label {
    color: #6b7280;
    font-size: 12px;
}

.traffic-details-metric-value {
    display: block;
    margin-top: 5px;
    color: #172033;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.traffic-details-section + .traffic-details-section {
    border-top: 1px solid #e5e7eb;
}

.traffic-details-section-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
}

.traffic-details-chart {
    display: grid;
    grid-template-columns: repeat(24, minmax(8px, 1fr));
    align-items: end;
    gap: 4px;
    height: 190px;
    padding-top: 10px;
    border-bottom: 1px solid #d8dee8;
}

.traffic-details-bar {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    min-width: 0;
    height: 100%;
}

.traffic-details-segment {
    display: block;
    min-height: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.traffic-details-chart-labels {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 7px;
    color: #7b8494;
    font-size: 11px;
}

.traffic-details-chart-labels span:last-child {
    text-align: right;
}

.traffic-details-table-wrap {
    width: 100%;
    overflow: auto;
}

.traffic-details-table-wrap.records {
    max-height: 560px;
}

.traffic-details-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 13px;
}

.traffic-details-table th,
.traffic-details-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
    white-space: nowrap;
}

.traffic-details-table th {
    color: #667085;
    font-size: 12px;
    font-weight: 500;
}

.traffic-details-table td.numeric,
.traffic-details-table th.numeric {
    text-align: right;
}

.traffic-details-node {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.traffic-details-node-dot {
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.traffic-details-panel[dir="rtl"] .traffic-details-node-dot {
    margin-right: 0;
    margin-left: 8px;
}

.traffic-details-records summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    list-style-position: inside;
}

.traffic-details-records[open] summary {
    margin-bottom: 14px;
}

.traffic-details-empty,
.traffic-details-unavailable {
    padding: 18px 20px;
    color: #667085;
    font-size: 13px;
}

.traffic-details-unavailable {
    border-left: 3px solid #eab308;
}

@media (max-width: 767px) {
    .traffic-details-header,
    .traffic-details-section {
        padding: 15px;
    }

    .traffic-details-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .traffic-details-metric {
        padding: 14px 15px;
        border-bottom: 1px solid #e5e7eb;
    }

    .traffic-details-metric:nth-child(2n) {
        border-right: 0;
    }

    .traffic-details-metric:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .traffic-details-chart {
        gap: 2px;
        height: 150px;
    }

    .traffic-details-metric-value {
        font-size: 17px;
    }
}
