
/* Prefix: cj-trainTable */

table.cj-trainTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* header */
table.cj-trainTable thead th {
    background: #0b2a5b; /* 專業深藍 */
    color: #ffffff;
    text-align: left;
    padding: 14px 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

table.cj-trainTable thead th.cj-trainTable__hours {
    text-align: right;
}

/* column widths (optional, keep layout stable) */
table.cj-trainTable thead th.cj-trainTable__org {
    width: 26%;
}
table.cj-trainTable thead th.cj-trainTable__date {
    width: 14%;
    white-space: nowrap;
}
table.cj-trainTable thead th.cj-trainTable__hours {
    width: 10%;
    white-space: nowrap;
}

/* body cells */
table.cj-trainTable tbody td {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    vertical-align: top;
    line-height: 1.5;
}

/* zebra rows */
table.cj-trainTable tbody tr:nth-child(odd) td {
    background: #f8fafc; /* Slate-50 極淺灰藍 */
}
table.cj-trainTable tbody tr:nth-child(even) td {
    background: #ffffff;
}

/* date column */
table.cj-trainTable tbody td.cj-trainTable__date {
    white-space: nowrap;
    color: #334155;
    font-weight: 500;
}

/* hours column */
table.cj-trainTable tbody td.cj-trainTable__hours {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: bold;
    color: #0b2a5b;
}

/* ---------------------------------------------------- */
/* 加值優化：Hover 效果 (原 CSS 未提供，建議加上) */
/* ---------------------------------------------------- */
table.cj-trainTable tbody tr:hover td {
    background: #e0f2fe; /* Sky-100 淺藍色懸停 */
    transition: background 0.2s ease;
}

/* ---------------------------------------------------- */
/* Mobile Responsive Tweak (簡易手機版優化) */
/* ---------------------------------------------------- */
@media (max-width: 600px) {
    .demo-container {
        overflow-x: auto;
    }
    table.cj-trainTable {
        min-width: 600px;
    }
}