/* Desktop Table Styles - 横幅とアライメント専用 */

/* unit_main内のテーブルスタイル */
.unit_main table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0 20px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.unit_main th, .unit_main td {
    border: none;
    padding: 12px 16px;
    text-align: left;
}

.unit_main th {
    background-color: var(--unit-color);
    color: #fff;
    font-weight: bold;
}

.unit_main tr:nth-child(even) {
    background-color: #f9f9f9;
}

.unit_main tr:hover {
    background-color: #f1f1f1;
}

table.desktop-table {
    width: 100% !important;
    border-collapse: collapse !important;
    min-width: 1000px !important; /* 最小幅を設定 */
    table-layout: auto !important; /* 自動レイアウトでフリー調整 */
    margin: 0 !important;
    padding: 0 !important;
}

/* 進捗カラムのみ折り返しなし設定 */
.desktop-table th:nth-child(7),
.desktop-table td:nth-child(7) {
    white-space: nowrap; /* 折り返しなし */
    overflow-x: auto; /* 横スクロール */
    min-width: 200px; /* 最小幅を確保 */
    text-align: center; /* センター配置 */
}

/* 備考カラム設定 */
.desktop-table th:nth-child(8),
.desktop-table td:nth-child(8) {
    max-width: 200px; /* 最大幅を制限 */
    word-wrap: break-word; /* 長いテキストを折り返し */
    text-align: left; /* 左揃え */
}

/* 備考表示用スタイル */
.remarks-display {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help; /* ホバー時にカーソルを変更 */
}


/* アライメント設定 - シンプル版 */
.desktop-table th,
.desktop-table td {
    text-align: center; /* デフォルト中央寄り */
    padding: 8px; /* セル内パディング */
}

.desktop-table th:nth-child(2),
.desktop-table td:nth-child(2) {
    text-align: left; /* イベント名のみ左寄り */
}

/* イベントID列のスタイル */
.desktop-table td:first-child {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

/* イベント名列のスタイル */
.desktop-table td:nth-child(2) div {
    color: #666;
    font-size: 12px;
    margin-bottom: 3px;
}

.desktop-table td:nth-child(2) strong {
    color: #212529;
    font-size: 14px;
}

/* 未割り当て・未設定のスタイル */
.desktop-table .unassigned,
.desktop-table .not-set,
.desktop-table td span[style*="color: #999"] {
    color: #999 !important;
    font-style: italic;
    font-size: 12px;
}

/* 未割り当て状態の視覚的スタイル */
.desktop-table .status-unassigned {
    color: #999 !important;
    font-style: italic;
    font-size: 12px;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px dashed #dee2e6;
}

/* 未設定状態の視覚的スタイル */
.desktop-table .status-not-set {
    color: #6c757d !important;
    font-style: italic;
    font-size: 12px;
    background-color: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ffeaa7;
}

/* 会員スピーチ非表示のスタイル */
.desktop-table .no-member-speech {
    display: none !important;
}

.desktop-table .member-speech-disabled {
    opacity: 0.5;
    background-color: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}

.desktop-table .member-speech-disabled td {
    background-color: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}

/* 担当者・スピーカーのインライン編集スタイル */
.desktop-table .inline-edit {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.desktop-table .inline-edit:hover {
    background-color: #f0f0f0;
}

.desktop-table .inline-select {
    font-size: 12px;
    padding: 2px;
    border-radius: 3px;
}

.desktop-table .inline-input {
    font-size: 12px;
    padding: 2px;
    border-radius: 3px;
    width: 150px;
}

.desktop-table .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 3px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    width: 150px;
}

/* ファイルリンクのスタイル */
.desktop-table td a {
    text-decoration: none;
}

.desktop-table td a:hover {
    text-decoration: underline;
}

/* 進捗セレクトボックスのスタイル */
.desktop-table select {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    background-color: white;
    min-width: 80px;
}

.desktop-table select{
    width: 100%;
    padding: 8px; 
    border: 1px solid #ddd; 
    border-radius: 3px; 
    width: 100px;
    font-size: 12px;
}


