/* Contract Editor Styles */

.contract-editor-controls {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contract-editor-controls label {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.customer-select {
    flex: 1;
    max-width: 300px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.contracts-container {
    margin-top: 2rem;
}

.contracts-container h3 {
    color: #2c5282;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2c5282;
}

.year-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.year-tab {
    padding: 0.75rem 1.5rem;
    background: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.year-tab:hover {
    background: #d0d0d0;
}

.year-tab.active {
    background: #2c5282;
    color: white;
}

.contracts-table {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.contracts-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.contracts-table thead {
    background: #f0f0f0;
}

.contracts-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.contracts-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

.contracts-table tbody tr:hover {
    background: #f9f9f9;
}

.contract-hours-input {
    width: 150px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.contract-hours-input:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.1);
}

.editor-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.editor-actions .button {
    min-width: 120px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .contract-editor-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .customer-select {
        max-width: none;
    }
    
    .year-tabs {
        flex-wrap: wrap;
    }
    
    .contracts-table {
        font-size: 12px;
    }
    
    .contracts-table th,
    .contracts-table td {
        padding: 0.5rem;
    }
    
    .editor-actions {
        flex-direction: column;
    }
    
    .editor-actions .button {
        width: 100%;
    }
}
