/* lawyer_letter 24h 历史律师函模块 */
.history-banner {
    background: #fff;
    border: 1px solid #e6e8ed;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin: 0 0 14px;
}

.history-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f6f8fb, #eef2f7);
    cursor: pointer;
    font-size: 14px;
}

.history-banner-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #2c3e50;
}

.history-btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}

.history-content.collapsed {
    display: none;
}

.history-list {
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-card {
    border: 1px solid #ebeef4;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fafbfd;
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}

.history-card-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13.5px;
}

.history-card-time {
    color: #888;
    font-size: 12px;
}

.history-file-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 16px;
}

.history-file-badge.paid {
    background: #e8f6ee;
    color: #137a44;
    border: 1px solid #b6e0c4;
}

.history-file-badge.unpaid {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

.history-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-card-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d6dbe4;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    font-size: 13px;
}

.history-card-btn:hover {
    background: #f3f5f9;
}

.history-card-btn-download {
    background: linear-gradient(135deg, #4f8ef7, #3b76e0);
    color: #fff;
    border: none;
}

.history-card-btn-pay {
    background: linear-gradient(135deg, #f5a623, #e6841a);
    color: #fff;
    border: none;
}

.history-card-btn-delete {
    background: #fff;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

.history-card-btn-delete:hover {
    background: #fdecea;
}

.history-card-btn-preview {
    background: linear-gradient(135deg, #67c0a3, #4ea98a);
    color: #fff;
    border: none;
}

.history-card-btn-preview:hover {
    filter: brightness(1.05);
}

.history-card-btn-download {
    background: linear-gradient(135deg, #4f8ef7, #3b76e0);
    color: #fff;
    border: none;
}

.history-card-btn-download:hover {
    filter: brightness(1.05);
}

@media (max-width: 540px) {
    .history-card-actions {
        gap: 6px;
    }
    .history-card-btn {
        padding: 5px 9px;
        font-size: 12px;
    }
}
