/* タイムカードページ用スタイル */

.timecard-all-container {
    max-width: 1400px;
    margin: 0 auto;
}

.current-time-display {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.current-time-display i {
    font-size: 36px;
}

.managers-timecard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.manager-timecard-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.manager-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.manager-info i {
    font-size: 24px;
    color: #667eea;
}

.manager-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.manager-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.manager-status-badge.working {
    background: #4caf50;
    color: white;
}

.manager-status-badge.completed {
    background: #2196f3;
    color: white;
}

.manager-status-badge.not-started {
    background: #e0e0e0;
    color: #666;
}

.manager-attendance-info {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.manager-attendance-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.manager-attendance-info .info-label {
    font-weight: 500;
}

.manager-attendance-info .info-value {
    font-weight: bold;
    color: #333;
}

.manager-working-time {
    text-align: center;
    padding: 10px;
    background: #f0f4ff;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
}

.manager-timecard-actions {
    display: flex;
    gap: 10px;
}

.btn-manager-clock {
    flex: 1;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-manager-clock i {
    font-size: 20px;
}

.btn-manager-clock-in {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.btn-manager-clock-in:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.btn-manager-clock-out {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    color: white;
}

.btn-manager-clock-out:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.btn-manager-clock:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-manager-history {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 13px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-manager-history:hover {
    background: #667eea;
    color: white;
}

.timecard-status {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-time {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-time i {
    font-size: 42px;
}

.attendance-status-display {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-badge.working {
    background: #4caf50;
    color: white;
}

.status-badge.completed {
    background: #2196f3;
    color: white;
}

.status-badge:not(.working):not(.completed) {
    background: #e0e0e0;
    color: #666;
}

.working-time {
    font-size: 24px;
    color: #333;
    font-weight: 500;
}

.timecard-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-clock {
    flex: 1;
    padding: 40px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-clock i {
    font-size: 48px;
}

.btn-clock-in {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.btn-clock-in:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-clock-out {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    color: white;
}

.btn-clock-out:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

.btn-clock:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timecard-history {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timecard-history h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.timecard-history .table-container {
    overflow-x: auto;
}

.timecard-history .data-table {
    width: 100%;
}

.timecard-history .data-table th {
    background: #f5f7fa;
    font-size: 14px;
}

.timecard-history .data-table td {
    font-size: 14px;
}

.attendance-status-cell {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.attendance-status-cell.working {
    background: #4caf50;
    color: white;
}

.attendance-status-cell.completed {
    background: #2196f3;
    color: white;
}
