/* タイムカード表示用CSS */
#timecard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timecard-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.timecard-header {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.timecard-header h2 {
    margin: 0;
    font-size: 1.1em;
}

.timecard-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3em;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.timecard-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.timecard-body {
    padding: 12px 20px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.timecard-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 12px;
    flex-shrink: 0;
}

.timecard-month-nav button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.2s;
}

.timecard-month-nav button:hover {
    background: #e0e0e0;
}

#timecard-month-display {
    font-size: 0.9em;
    font-weight: bold;
    color: #1976d2;
}

.timecard-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: calc(95vh - 160px);
    overflow-y: auto;
}

.timecard-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75em;
}

.timecard-table th {
    background: #f8f9fa;
    padding: 4px 3px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 0.8em;
}

.timecard-table td {
    padding: 3px 2px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    line-height: 1.2;
}

.timecard-table tr:nth-child(even) {
    background: #f8f9fa;
}

.timecard-table tr:hover {
    background: #e3f2fd;
}

.timecard-today {
    background: #fff3e0 !important;
    border-left: 4px solid #ff9800;
}

.timecard-today:hover {
    background: #ffe0b2 !important;
}

.timecard-bonus {
    color: #d32f2f;
    font-weight: bold;
    font-size: 0.7em;
}

.timecard-note {
    font-size: 0.7em;
    color: #666;
    margin-top: 10px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 6px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .timecard-modal-content {
        max-height: 95vh;
    }
    
    .timecard-table {
        font-size: 0.7em;
        max-height: calc(95vh - 180px);
    }
    
    .timecard-table th {
        padding: 3px 2px;
        font-size: 0.75em;
    }
    
    .timecard-table td {
        padding: 2px 1px;
        line-height: 1.1;
    }
    
    .timecard-month-nav {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .timecard-month-nav button {
        width: 100px;
        padding: 3px 6px;
        font-size: 0.75em;
    }
    
    .timecard-header {
        padding: 8px 16px;
    }
    
    .timecard-header h2 {
        font-size: 1em;
    }
    
    .timecard-body {
        padding: 8px 16px;
    }
    
    #timecard-month-display {
        font-size: 0.85em;
    }
}
