/* Overview: charts share one row, the two Top 10 rankings share the next. */
#sub-crm-overview .crm-widgets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
#sub-crm-overview .crm-overview-card { min-width: 0; }
#sub-crm-overview .table-container { overflow-x: auto; }
#sub-crm-overview .crm-card-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
#sub-crm-overview .crm-card-header h3 { margin: 0; }
#sub-crm-overview .crm-top-label {
    flex-shrink: 0; color: #38bdf8; background: rgba(56,189,248,.1);
    border: 1px solid rgba(56,189,248,.22); border-radius: 6px;
    padding: 4px 8px; font-size: .75rem; font-weight: 600;
}
#sub-crm-overview .crm-ranking-list { display: flex; flex-direction: column; }
#sub-crm-overview .crm-ranking-row {
    display: grid; grid-template-columns: 24px minmax(0,1fr) auto;
    align-items: center; gap: 10px; height: 68px; min-height: 68px; padding: 6px 0;
    border-bottom: 1px dashed rgba(255,255,255,.08);
}
#sub-crm-overview .crm-ranking-row:last-child { border-bottom: 0; }
#sub-crm-overview .crm-ranking-position {
    color: #94a3b8; text-align: center; font-size: .8rem;
    font-weight: 600; font-variant-numeric: tabular-nums;
}
#sub-crm-overview .crm-ranking-description { min-width: 0; }
#sub-crm-overview .crm-ranking-name {
    color: #f8fafc; font-size: .85rem; font-weight: 600;
    line-height: 1.35; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
#sub-crm-overview .crm-ranking-meta { color: #94a3b8; font-size: .76rem; line-height: 1.2; margin-top: 3px; }
#sub-crm-overview .crm-ranking-value { text-align: right; white-space: nowrap; }
#sub-crm-overview .crm-ranking-value strong {
    display: block; color: #34d399; font-size: .92rem; font-variant-numeric: tabular-nums;
}
#sub-crm-overview .crm-ranking-value small { color: #38bdf8; font-size: .76rem; }
#sub-crm-overview .crm-product-description { display: flex; align-items: center; gap: 10px; min-width: 0; }
#sub-crm-overview .crm-product-avatar {
    flex: 0 0 32px; width: 32px; height: 32px; object-fit: cover;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: .85rem;
}
#sub-crm-overview .crm-product-avatar[hidden] { display: none; }
#sub-crm-overview .crm-insight { line-height: 1.45; gap: 10px; }
@media (max-width: 1100px) {
    #sub-crm-overview .crm-widgets-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
    #sub-crm-overview .crm-overview-card { padding: 15px !important; }
    #sub-crm-overview .crm-ranking-row { gap: 7px; grid-template-columns: 20px minmax(0,1fr) auto; }
    #sub-crm-overview .crm-product-avatar { display: none; }
    #sub-crm-overview .crm-ranking-value strong { font-size: .84rem; }
}
