.summary-tabs {
    display: flex;
    flex-wrap: nowrap;           /* 折り返ししないように固定 */
    gap: 0;                      /* タブ間の隙間なし */
    justify-content: flex-start; /* 左寄せ */
    width: auto;                 /* 必要な幅に応じて */
    overflow-x: auto;            /* 幅超過時は横スクロール可（念のため） */
}

.summary-table td {
    box-sizing: border-box;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    text-align: right;
    vertical-align: middle;
    background-color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px;
    border: 1px solid #ccc;
    font-size: 80%; /* 🌸 フォントサイズ80%に統一 */
}

.summary-table td.empty {
    background-color: #fff !important;
    border: none !important;
    text-align: center;
    color: #ccc;
}

.summary-table td.empty:last-child {
    border-right: none !important;
}

.summary-table tr:first-child td {
    background-color: #ffe4e1;
    text-align: center;
    font-weight: bold;
}

.summary-table tr td:last-child {
    border-right: 1px solid #ccc !important;
}

/* 🌸 項目名（th）のフォントサイズ調整 */
.summary-table th {
    font-size: 80%;
}

/* 🌸 合計プロパティのタブを元のピンク系に戻す */
.summary-tab-btn {
    background: #ffe4e1;
    border: 1px solid #d8a0a0;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 4px 0;
    font-size: 85%;
    font-weight: bold;
    color: #444;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;      /* 改行させず1行に保つ */
    overflow: hidden;         /* 長すぎる文字を切り捨て */
    text-overflow: ellipsis;  /* …で省略表示 */
}

.summary-tab-btn.active {
    background: #ffccd5; /* アクティブ時の濃いピンク色 */
    color: #000;
}

.summary-tab-content {
    width: 100%;         /* 親幅いっぱいにする */
    overflow-x: auto;    /* 念のため横スクロール許可 */
}

.summary-table {
    table-layout: fixed;      /* 列幅を均等化 */
    width: 100%;              /* タブ数と揃えるため全幅に */
    border-collapse: collapse;
    margin-bottom: 10px;
}
