/* Smart Import Insights Panel Styles */

.sii-panel {
    margin-bottom: 10px;
}

.sii-toggle-btn {
    cursor: pointer;
}

.sii-stats-body {
    padding: 10px;
}

.sii-chart {
    height: 200px;
    width: 100%;
}

.sii-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sii-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
}

.sii-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

/* Bar Chart */
.sii-bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100px;
}

.sii-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.sii-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 70px;
}

.sii-bar-val {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
}

.sii-bar {
    width: 24px;
    min-height: 2px;
    border-radius: 2px 2px 0 0;
}

.sii-bar-label {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    text-align: center;
}

/* Donut Chart */
.sii-donut-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sii-donut-svg {
    width: 100px;
    height: 100px;
}

.sii-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.sii-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sii-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sii-legend-label {
    color: #555;
}

/* Clauses */
.sii-clause-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sii-clause-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sii-clause-label {
    width: 80px;
    font-size: 12px;
    color: #333;
    text-align: right;
}

.sii-clause-bar-track {
    flex: 1;
    height: 16px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.sii-clause-bar-fill {
    height: 100%;
    background: #4e7cf6;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.sii-clause-pct {
    width: 40px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* Top Counterparties */
.sii-top-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sii-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sii-top-name {
    width: 100px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sii-top-bar-track {
    flex: 1;
    height: 16px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.sii-top-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.sii-top-amt {
    width: 70px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: right;
}

/* Empty state */
.sii-empty {
    color: #999;
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

/* Heading */
.sii-heading-icon {
    margin-right: 6px;
}

.sii-heading-sub {
    font-weight: normal;
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}
