/* スタッフ用スマホボトムグローバルメニュー
   （マスター/フランチャイジーはハンバーガードロワー。スタッフのみボトムナビ） */

.staff-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.staff-bottom-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: 64px;
}

.staff-bottom-nav-item {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.staff-bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #6c757d;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.15s ease;
}

.staff-bottom-nav-link:hover,
.staff-bottom-nav-link:focus {
    color: var(--color-primary);
    text-decoration: none;
}

.staff-bottom-nav-link.active {
    color: var(--color-primary);
}

.staff-bottom-nav-icon {
    font-size: 14px;
    line-height: 1;
    margin-bottom: 4px;
}

/* 未読バッジをアイコン右上に重ねるためのラッパー
   （アイコン自体の margin-bottom はそのまま効かせ、他項目とラベル位置を揃える） */
.staff-bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
}

.staff-bottom-nav-badge {
    position: absolute;
    top: -6px;
    left: 100%;
    margin-left: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background-color: #dc3545;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
}

.staff-bottom-nav-label {
    display: block;
    width: 100%;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
    text-align: center;
}

/* ボトムナビ表示中はコンテンツが隠れないように余白を確保
   （style.css の .content-wrapper { padding-bottom: 0 !important } に勝つため !important 必須） */
@media (max-width: 768px) {
    body:has(.staff-bottom-nav) .content-wrapper {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

/* PC では表示しない（保険：JSX側でd-md-noneを付けているがCSSでも明示） */
@media (min-width: 769px) {
    .staff-bottom-nav {
        display: none !important;
    }
}
