/* Year Picker Styles */

/* Increase container width for main content area */
#main .container {
    max-width: 95% !important;
    width: 95% !important;
}

/* Reduce vertical white space */
#main {
    padding-top: 2rem !important;
}

#content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#sidebar {
    position: sticky;
    top: 1rem;
}

.year-month-picker {
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin-bottom: 1.5rem;
}

.picker-header {
    padding: 10px 12px;
    background: #f3f3f3;
    border-bottom: 1px solid #d4d4d4;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.picker-content {
    padding: 12px;
}

/* Year-Month Tree Styles */
.year-item {
    margin-bottom: 4px;
}

.year-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
}

.year-toggle {
    cursor: pointer;
    user-select: none;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    transform: rotate(-90deg);
    color: #666;
}

.year-toggle.expanded {
    transform: rotate(0deg);
}

.year-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.year-checkbox,
.month-checkbox {
    margin: 0 8px 0 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.year-text,
.month-text {
    font-size: 14px;
    color: #333;
}

.year-label:hover {
    background: #f8f8f8;
    padding-left: 4px;
    margin-left: -4px;
    border-radius: 3px;
}

.months-container {
    display: none;
    margin-left: 20px;
    padding-left: 12px;
    border-left: 1px solid #e0e0e0;
}

.months-container.expanded {
    display: block;
}

.month-item {
    padding: 4px 0;
}

.month-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.month-label:hover {
    background: #f8f8f8;
    padding-left: 4px;
    margin-left: -4px;
    border-radius: 3px;
}
    font-size: 10px;
    transition: transform 0.2s ease;
    color: #666;
}

.picker-arrow.collapsed {
    transform: rotate(-90deg);
}

.picker-title {
    color: #333;
}

.picker-content {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.picker-content.collapsed {
    display: none;
}

/* Year Item Styles */
.year-item {
    border-bottom: 1px solid #e8e8e8;
}

.year-item:last-child {
    border-bottom: none;
}

.year-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    background: #fafafa;
}

.year-header:hover {
    background: #f0f0f0;
}

.year-toggle {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    font-size: 10px;
    color: #666;
    transition: transform 0.2s ease;
}

.year-toggle.collapsed {
    transform: rotate(-90deg);
}

.year-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0078d4;
    display: inline-block;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    flex-shrink: 0;
    position: relative;
}

.year-label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* Month List Styles */
.month-list {
    background: #ffffff;
    padding-left: 24px;
}

.month-list.collapsed {
    display: none;
}

.month-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    user-select: none;
}

.month-item:hover {
    background: #f5f5f5;
}

.month-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    margin-left: 22px;
    cursor: pointer;
    accent-color: #0078d4;
    display: inline-block;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    flex-shrink: 0;
    position: relative;
}

.month-label {
    font-size: 13px;
    color: #333;
}

/* Indeterminate checkbox styling for better visual feedback */
input[type="checkbox"].indeterminate {
    opacity: 0.6;
}

/* Selection Feedback Panel */
.selection-feedback {
    margin-top: 1rem;
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.feedback-header {
    padding: 10px 12px;
    background: #0078d4;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.feedback-content {
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
}

.feedback-content em {
    color: #999;
}

.feedback-year {
    margin-bottom: 8px;
    padding: 8px;
    background: #f5f5f5;
    border-left: 3px solid #0078d4;
    border-radius: 2px;
}

.feedback-year-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.feedback-year-full {
    color: #0078d4;
    font-size: 12px;
}

.feedback-months {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.feedback-content::-webkit-scrollbar {
    width: 6px;
}

.feedback-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.feedback-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* Scrollbar styling */
.picker-content::-webkit-scrollbar {
    width: 8px;
}

.picker-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.picker-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.picker-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design */
@media screen and (max-width: 960px) {
    .content-flex-wrapper {
        flex-direction: column;
    }
    
    .image-section, .picker-section {
        max-width: 100%;
    }
}

@media screen and (max-width: 640px) {
    .picker-content {
        max-height: 400px;
    }
    
    .year-header, .month-item {
        padding: 10px 12px;
    }
}

/* Hour Type Picker Styles */
.hour-type-picker {
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin-top: 1rem;
}

.hour-type-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.hour-type-item:last-child {
    border-bottom: none;
}

.hour-type-item:hover {
    background: #f5f5f5;
}

.hour-type-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0078d4;
    display: inline-block;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    flex-shrink: 0;
    position: relative;
}

.hour-type-label {
    font-size: 13px;
    color: #333;
}

/* Classification Picker Styles */
.classification-picker {
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin-top: 1rem;
}

.classification-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.classification-item:last-child {
    border-bottom: none;
}

.classification-item:hover {
    background: #f5f5f5;
}

.classification-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0078d4;
    display: inline-block;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    flex-shrink: 0;
    position: relative;
}

.classification-label {
    font-size: 13px;
    color: #333;
}

/* Jira Issue Picker Styles */
.jira-issue-picker {
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin-top: 1rem;
}

.jira-issue-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.jira-issue-item:last-child {
    border-bottom: none;
}

.jira-issue-item:hover {
    background: #f5f5f5;
}

.jira-issue-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0078d4;
    display: inline-block;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    flex-shrink: 0;
    position: relative;
}

.jira-issue-label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
    flex-grow: 1;
}

/* Ticket Date Filter Styles */
.ticket-date-filter {
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin-top: 1rem;
}

.ticket-date-filter .picker-header {
    padding: 10px 12px;
    background: #f3f3f3;
    border-bottom: 1px solid #d4d4d4;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.ticket-date-filter .picker-header:hover {
    background: #ebebeb;
}

.ticket-date-filter .picker-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    font-size: 10px;
    color: #666;
    width: 16px;
    height: 16px;
}

.ticket-date-filter .picker-arrow.collapsed {
    transform: rotate(-90deg);
}

.ticket-date-filter .picker-title {
    font-weight: 500;
    color: #333;
    flex: 1;
}
