/* ============================================================
   whereis アプリ固有スタイル
   共通スタイルは common/styles_common.css で定義
   Bootstrap 5 は initializer-common.js が動的ロード
   ============================================================ */

body { background: var(--rl-surface); }

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 24px);
}
.page-wrapper > .container-xl:not(#ad-container-top-1):not(#ad-container-footer-1) { flex: 1; }
@media (max-width: 575px) {
    .page-wrapper { min-height: calc(100vh - 40px); }
}

/* ========================================
   表示名ラベルの登録状態スタイル（JSが切り替え）
======================================== */
#user-name-label.registered   { color: green; font-weight: normal; }
#user-name-label.unregistered { color: #dc3545; font-weight: 700; }

/* 削除ボタン: 有効時は濃いグレー（危険色でなく落ち着いた色） */
#delete-user:not(:disabled) {
    background: #555;
    border-color: #555;
    color: #fff;
}
#delete-user:not(:disabled):hover {
    background: #444;
    border-color: #444;
}

/* ========================================
   オフィスマップ
======================================== */
#map-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
}

#map {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--rl-border);
    border-radius: var(--rl-radius);
    box-sizing: border-box;
}

/* ユーザーアイコン（マップ上に絶対配置） */
.user-icon {
    position: absolute;
    width: calc(var(--map-width) * 0.05);
    height: calc(var(--map-width) * 0.05);
    background-color: rgb(116, 211, 255);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    line-height: 1.2;
    word-break: normal;
    white-space: nowrap;
}
