
input[type="checkbox"]:hover,
input[type="checkbox"] + label:hover {
    cursor: pointer;
}


.page_title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-top: 60px;
}

.search_label {
    width: 120px !important;
    background-color: #f7f7f7;
}

.search_text {
    width: 400px;
}

.rosen-row td:nth-child(2) {
    cursor: pointer;
}

.rosen-row td:nth-child(2):hover {
    background-color: #fff5ee !important;
}

/* 固定ヘッダーのスタイル */
.fixed-header {
    position: sticky;
    top: 67px;
    left: 50px;
    background: #FFFFFF; /* 背景色 */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap; /* コンテンツが幅を超えたら折り返す */
    width: 100%;
    padding-top: 12px;
    gap: 10px;
}

/* ヘッダー・フッターボタン共通レイアウト */
.header-buttons,
.footer-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-left: 0 !important;
}

.btn {
    font-size: 10pt !important;
    padding: 5px 5px 5px 5px !important;
    width: 110px;
}

.container-fluid {
    position: relative;
    overflow: visible;
    padding: 5px 10px 50px 10px !important;
}


#search_input_container {
    /*width: 350px;
    min-width: 250px;
    flex: 0.5 1 auto;
    min-width: 200px;*/
    flex: 0.5 1 auto;
    min-width: 200px;
}

.table-rosen tbody tr td:nth-child(2):hover {
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: 900;
}

/* クリックされたセルのスタイル */
.table-rosen tbody tr td.selected {
    background-color: #f5f5f5 !important;
    font-weight: 900;
}

/* map の判例 */
.map-legend {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding-left: 10px;
    padding-bottom: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    font-size: 14px;
    font-weight: bold;
}

.legend-color {
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-right: 5px;
    border-radius: 50%;
    border: 1px solid #000;
}

#operation_message {
    font-size: 14px;
    color: red;
}

.search-control {
    border-radius: 0 5px 5px 0;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

.rosen-table-wrapper {
    max-height: 75vh;   /* limit but allow shrinking */
    height: auto;       /* shrink to content */
    overflow-y: auto;
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.rosen-table-wrapper table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* ヘッダー固定用の追加CSS */
.rosen-table-wrapper thead th {
    position: sticky;
    top: 0;
    background-color: #f2f2f2;
    z-index: 1;
}

.title-link {
    text-decoration: none;
    color: #f7812d;
    font-weight: bold;
    font-size: 1.5rem;
    padding-left: 10px;

}

.nav-link-clean {
    text-decoration: none;
    color: inherit;
}

.nav-link-clean:hover {
    text-decoration: none;
}

.map-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 = 9/16 = 0.5625 = 56.25% */
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 検索バーを左詰め・横並び化 */
#searchForm .searchbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .5rem;
    margin-left: 1.5rem;
}

/* Bootstrap の input-group は width:100% なので上書き */
#searchForm .searchbar .input-group {
    width: auto !important;
    flex: 0 0 auto;
}

/* フィールド幅が勝手に広がらないように */
#searchForm .searchbar .form-control.search-control {
    width: auto;
    flex: 0 0 auto;
}

/* ラベルの折り返し防止 */
#searchForm .searchbar .input-group-text {
    white-space: nowrap;
}

/* チェックボックス行の余白調整 */
#searchForm .searchbar .form-group {
    margin-bottom: 0;
}
