/* ============================================
   準管理者ダッシュボード用スタイル
   ============================================ */

/* 全体ラッパー */
.tc-subdash-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", sans-serif;
    color: #2d3748;
}

/* ヘッダー（月ナビゲーション） */
.tc-subdash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1a365d, #2b6cb0);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
}

.tc-subdash-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tc-subdash-nav {
    color: #bee3f8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.tc-subdash-nav:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* タブ切り替え */
.tc-subdash-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.tc-subdash-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tc-subdash-tab:hover {
    color: #2b6cb0;
}

.tc-subdash-tab.active {
    color: #2b6cb0;
    border-bottom-color: #2b6cb0;
}

/* テーブル共通 */
.tc-subdash-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tc-subdash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.tc-subdash-table thead th {
    background: #edf2f7;
    color: #4a5568;
    font-weight: 700;
    padding: 10px 12px;
    text-align: center;
    white-space: nowrap;
    font-size: 0.82rem;
    border-bottom: 2px solid #cbd5e0;
}

.tc-subdash-table tbody td {
    padding: 9px 12px;
    text-align: center;
    border-bottom: 1px solid #edf2f7;
    white-space: nowrap;
}

.tc-subdash-table tbody tr:hover {
    background: #f7fafc;
}

.tc-subdash-name {
    text-align: left !important;
    font-weight: 600;
    color: #2d3748;
}

/* 残業時間がある場合のハイライト */
.tc-overtime {
    color: #e53e3e;
    font-weight: 700;
}

/* 詳細ボタン */
.tc-subdash-detail-btn {
    padding: 5px 14px;
    border: 1px solid #cbd5e0;
    background: #fff;
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tc-subdash-detail-btn:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

/* アコーディオン（個人別タイムカード） */
.tc-subdash-detail-row td {
    padding: 0 !important;
    background: #f7fafc;
}

.tc-subdash-detail-content {
    padding: 12px 16px;
    max-height: 400px;
    overflow-y: auto;
}

.tc-subdash-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.tc-subdash-detail-table th {
    background: #e2e8f0;
    color: #4a5568;
    font-weight: 600;
    padding: 7px 10px;
    text-align: center;
    font-size: 0.78rem;
}

.tc-subdash-detail-table td {
    padding: 6px 10px;
    text-align: center;
    border-bottom: 1px solid #edf2f7;
}

/* 有給取得一覧の空メッセージ */
.tc-subdash-empty {
    text-align: center;
    color: #a0aec0;
    font-size: 0.95rem;
    padding: 40px 0;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .tc-subdash-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .tc-subdash-title {
        font-size: 1rem;
    }
    .tc-subdash-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .tc-subdash-table {
        font-size: 0.8rem;
    }
    .tc-subdash-table thead th,
    .tc-subdash-table tbody td {
        padding: 7px 6px;
    }
}
