/**
 * 储存空间细分展开样式模块（主页右上角用户信息 - 存储进度条展开）
 * 独立前缀：storage-breakdown-，不与其他面板通用，保证面板独立性
 * 符合规范：04 字体规格、01 UNC 路径隐藏（本模块无路径展示）
 */

/* ==================== 进度条行（整行可点击展开/折叠，已去除三角箭头） ==================== */

.storage-breakdown-toggle-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: 0;
    cursor: pointer;
    border-radius: var(--radius-sm, 4px);
    transition: background 0.2s ease;
}

.storage-breakdown-toggle-row:hover {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.06));
}

.storage-breakdown-toggle-row:focus-visible {
    outline: 1px solid var(--border-primary);
    outline-offset: 2px;
}

.storage-breakdown-toggle-row .storage-progress-bar-container {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
}

.storage-breakdown-toggle-row .storage-progress-info {
    flex: 0 0 auto;
    width: 100%;
}

/* ==================== 细分列表容器（浮层在进度条下方，不撑高整行） ==================== */
/* 父容器 .user-storage-progress 需设置 position:relative，见 user-info-section.css */

.storage-breakdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.3));
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
}

/* ==================== 细分项：文案 + 小进度条 ==================== */

.storage-breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 18px;
}

.storage-breakdown-label {
    flex: 1;
    min-width: 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 11px;
    font-weight: normal;
    color: var(--text-secondary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.storage-breakdown-value {
    flex-shrink: 0;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 11px;
    font-weight: normal;
    color: var(--text-primary);
    line-height: 1.3;
}
