/* 卓稼働状況ボード（table_status_render.php が出力するHTMLに対応するスタイル）
 * display.php（単独ページ）・mj-smileサイトへの直接埋め込みの両方で読み込む。
 */
.ts-board * { box-sizing: border-box; }
.ts-board {
    max-width: 640px;
    margin: 0 auto;
    font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}
.ts-board-body {
    padding: 14px;
}
.ts-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
@media (max-width: 480px) {
    .ts-card-grid { grid-template-columns: repeat(3, 1fr); }
}
.ts-tcard {
    background: #fff;
    border: 2px solid #2e8b3d;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.ts-tcard.ts-unused {
    border-color: #ccc;
}
.ts-tcard-head {
    background: #2e8b3d;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 2px;
}
.ts-tcard.ts-unused .ts-tcard-head {
    background: #999;
}
.ts-tcard-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ts-tcard-time {
    font-size: 19px;
    font-weight: bold;
    color: #1a3a5c;
    padding: 8px 2px 4px;
}
.ts-tcard.ts-unused .ts-tcard-time {
    color: #aaa;
}
.ts-tcard-set {
    font-size: 19px;
    font-weight: bold;
    color: #2e8b3d;
    padding: 8px 2px 4px;
}
.ts-tcard-sub {
    font-size: 11px;
    color: #555;
    padding: 1px 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ts-tcard-sub b {
    font-size: 13px;
    color: #1a3a5c;
}
@media (max-width: 480px) {
    /* 3列表示になる幅では、ラベル+数値がカード内に収まりきらず改行されて
       見た目が崩れることがあるため、この幅だけ文字をさらに小さくする */
    .ts-tcard-sub { font-size: 9.5px; }
    .ts-tcard-sub b { font-size: 11px; }
}
.ts-bottom-bar {
    margin-top: 14px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 10px 12px;
    border-radius: 6px;
}
.ts-bottom-bar b {
    font-size: 15px;
}
