.table-responsive {
    max-height: calc(100vh - 200px);
    overflow: auto;
}

.table th {
    position: sticky;
    top: 0;
    background-color: var(--gray-dark);
    color: var(--white);
    z-index: 10;
    white-space: nowrap;
    font-size: 0.85rem;
    min-width: 100px;
    text-align: center;
    vertical-align: middle;
    padding: 8px;
}

.table td {
    white-space: nowrap;
    font-size: 0.85rem;
    text-align: left;
    vertical-align: middle;
    padding: 6px 8px;
    min-width: 100px;
}

/* テーブル本体 */
.tenant-table {
    width: 3000px; /* 固定幅でスクロールを確実に発生させる */
    margin: 0;
}

.tenant-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 日程調整と同じスクロールバーカスタマイズ */
.table-responsive::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.building-link {
    color: #0d6efd;
    text-decoration: none;
}
.building-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}
.room-link {
    color: #198754;
    text-decoration: none;
    font-weight: bold;
}
.room-link:hover {
    color: #146c43;
    text-decoration: underline;
}

/* メインコンテンツ - 日程調整と同じ構造 */
#content {
    overflow-x: auto;
    margin-left: 250px; /* サイドバーの幅分だけマージンを設定 */
    padding-top: 20px;
    padding-bottom: 50px;
}

@media (max-width: 991.98px) {
    #content {
        margin-left: 25%;
    }
}

@media (max-width: 767.98px) {
    #content {
        margin-left: 0;
    }
}
.search-card {
    margin-bottom: 20px;
}
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}
.grace-badge {
    font-size: 0.70rem;
    padding: 0.2rem 0.4rem;
    white-space: nowrap;
}
.tenant-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
}
.tenant-link:hover {
    color: #a71e2a;
    text-decoration: underline;
}

/* disabled状態のラジオボタンの透明度を通常に戻す */
.form-check-input:disabled,
.form-check-input[disabled] {
  opacity: 1 !important;
  cursor: not-allowed;
}

/* disabled状態のラベルも通常の表示に */
.form-check-input:disabled ~ .form-check-label,
.form-check-input[disabled] ~ .form-check-label {
  opacity: 1 !important;
  cursor: not-allowed;
}