/* 変更履歴モーダルのスタイル */

.history-container {
    max-height: 70vh;
    overflow-y: auto;
}

.history-title {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.history-title h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.history-subtitle {
    color: #666;
    font-size: 0.9em;
}

.history-timeline {
    position: relative;
    padding-left: 1rem;
}

.history-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.history-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.history-icon {
    font-size: 1.5em;
    margin-right: 1rem;
}

.history-info {
    flex: 1;
}

.history-type {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.25rem;
}

.history-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9em;
    color: #666;
}

.history-reason {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.history-changes {
    margin-top: 1rem;
}

.history-change-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.history-field-name {
    font-weight: bold;
    color: #2196f3;
    margin-bottom: 0.5rem;
}

.history-values {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.history-old-value,
.history-new-value {
    padding: 0.5rem;
    border-radius: 4px;
}

.history-old-value {
    background: #ffebee;
    border-left: 3px solid #f44336;
}

.history-new-value {
    background: #e8f5e9;
    border-left: 3px solid #4caf50;
}

.history-value-label {
    font-size: 0.85em;
    color: #666;
    display: block;
    margin-bottom: 0.25rem;
}

.history-value-content {
    display: block;
    font-weight: 500;
}

.history-arrow {
    font-size: 1.5em;
    color: #666;
    text-align: center;
}

.empty-value {
    color: #999;
    font-style: italic;
}

/* 履歴ボタンのスタイル */
.btn-info {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}
