/* 全体コンテナ */
.tc-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    font-family: sans-serif;
}

/* 左側：スタッフリスト */
.tc-staff-list {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-height: 80vh;
    overflow-y: auto;
}

.tc-staff-list h3 {
    margin-top: 0;
    font-size: 1.1rem;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.staff-card {
    padding: 15px;
    margin-bottom: 10px;
    background: #f1f1f1;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.staff-card.active {
    background: #e7f3ff;
    border-color: #0073aa;
    font-weight: bold;
}

/* 右側：メインパネル */
.tc-main-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 日付・時刻・ステータス表示 */
#tc-display-area {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#real-time-date {
    font-size: 1.2rem;
    color: #666;
}

#real-time-clock {
    font-size: 3.5rem;
    font-weight: bold;
    color: #222;
    line-height: 1;
    margin: 10px 0;
}

#today-status-display {
    background: #e7f3ff;
    color: #0056b3;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid #b3d7ff;
}

/* 打刻ボタン */
.tc-button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tc-btn {
    padding: 25px 10px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.tc-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

.btn-in { background: #28a745; }
.btn-out { background: #dc3545; }
.btn-break { background: #17a2b8; }
.btn-break:nth-of-type(3) { background: #ffc107; color: #333; } /* 休憩入り */

/* アコーディオン部分 */
.tc-acc-item {
    margin-bottom: 10px;
}

.tc-acc-btn {
    width: 100%;
    padding: 15px;
    text-align: left;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.tc-acc-content {
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    padding: 20px;
}

/* タイムカードテーブル */
.tc-log-table {
    width: 100%;
    border-collapse: collapse;
}

.tc-log-table th, .tc-log-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.tc-log-table th { background: #f4f4f4; }

/* レスポンシブ対応（iPad/スマホ） */
@media (max-width: 768px) {
    .tc-container { flex-direction: column; }
    .tc-staff-list { max-height: 200px; }
}

/* 無効化されたボタンの見た目 */
.tc-btn:disabled {
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(1); /* 白黒にする（より分かりやすくなります） */
}