/**
 * Officer Directory Feature Styles
 * Styles specific to officer directory functionality
 * 
 * @package SHIPS Child
 * @subpackage Features\OfficerDirectory
 * @version 1.0.0
 */

/* Position Column Styling */
#douyu-wrapper .position-column {
    background-color: var(--ui-light);
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

/* Hide duplicate position values in consecutive rows */
#douyu-wrapper tbody tr:not(:first-child) .position-column {
    position: relative;
}

/* Year Selector */
#douyu-wrapper .year-selector {
    text-align: center;
    margin: var(--ui-spacing-xl) 0;
}

#douyu-wrapper .year-selector select {
    padding: 8px 16px;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-lightest);
    font-size: 1rem;
    cursor: pointer;
}

#douyu-wrapper .year-selector select:focus {
    outline: none;
    border-color: var(--ui-primary, #17A2B8);
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

/* Officer Table Enhancements */
#douyu-wrapper .officer-table table {
    width: 100%;
}

#douyu-wrapper .officer-table th:first-child,
#douyu-wrapper .officer-table td:first-child {
    min-width: 100px;
}

#douyu-wrapper .officer-table th:nth-child(2),
#douyu-wrapper .officer-table td:nth-child(2) {
    min-width: 120px;
}

#douyu-wrapper .officer-table th:last-child,
#douyu-wrapper .officer-table td:last-child {
    min-width: 180px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #douyu-wrapper .officer-table {
        font-size: 0.9rem;
    }
    
    #douyu-wrapper .officer-table th,
    #douyu-wrapper .officer-table td {
        padding: 8px 6px;
    }
    
    #douyu-wrapper .year-selector select {
        width: 100%;
        max-width: 200px;
    }
}