.sisetu-box {
    background: #fff;
    color: #212529;
    padding: 6px 8px;
    border-radius: 8px;
    border: 4px solid;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
}

.sisetu-name {
    font-weight: 700;
    max-width: 140px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sisetu-count {
    font-size: 12px;
    margin-top: 2px;
}

/*凡例用*/
.map-legend-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem !important;  
}

.legend-item input {
    margin-right: 6px;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
}

/* @ 透析可（受入可）青 */
.dialysis-ok-accept {
    background-color: var(--bs-primary);
}

/* A 透析可（受入不可）薄い青＋青枠 */
.dialysis-ok-noaccept {
    background-color: #dbeafe; /* 薄い青 */
    border: 2px solid var(--bs-primary);
}

/* B 透析不可（要請有）赤 */
.dialysis-ng-request {
    background-color: var(--bs-danger);
}

/* C 透析不可（要請無）薄い赤 */
.dialysis-ng-norequest {
    background-color: #f8d7da;
    border: 2px solid var(--bs-danger);
}

/* D 不明 グレー */
.dialysis-unknown {
    background-color: var(--bs-secondary);
}

/* E 未送信 水色 */
.dialysis-unsent {
    background-color: #0dcaf0;
}

map-wrapper {
    position: relative;
}

#map {
    height: 450px;
    z-index: 1;
}

/* オーバーレイ本体 */
.map-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 400px; /* ←常に幅を持たせる */
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    z-index: 1000;
    transition: transform .25s ease;
    overflow: hidden;
}

.map-overlay.map-overlay_app {
    width: 300px;
}

/* ヘッダー（クリック部分） */
.map-overlay-header {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    background: #f8f9fa;
    text-align: center;
}

.map-overlay-body {
    padding: 12px 16px;
    overflow-y: auto;
    max-height: calc(90vh - 36px);
}

/* 折りたたみ状態 */
.map-overlay.collapsed {
    width: 36px;
    height: 36px;
}

.map-overlay.collapsed .map-overlay-body {
    display: none;
}

.map-legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 6px 12px; /* 行間 / 列間 */
}

