/* ============================================================
   事業所（Office）専用スタイル
   ============================================================ */

/* フラッシュメッセージ（Bootstrap 非依存） */
.alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 一覧ページ ヘッダー行（タイトル＋新規ボタン） */
.list_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.list_header h3 {
    margin: 0;
}
.list_header .btn_new {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0px 12px;
    gap: 8px;
    width: 216px;
    height: 48px;
    border-radius: 139px;
}

/* style_s.css の main margin を上書き */
main.office_main,
main.office_main main {
    margin-top: 0;
    margin-bottom: 0;
}

/* ヘッダー */
header.office_header {
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 300;
    background: rgba(248, 112, 118, 0.7);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

.office_header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 24px;
}

.office_header_inner h1 {
    margin: 0;
    line-height: 1;
}

.office_header_inner h1 img {
    height: 32px;
    width: auto;
}

.office_header_right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.office_account_name {
    font-size: 0.85rem;
    color: #4F4849;
    line-height: 1.3;
    text-align: right;
}

.office_account_name span {
    display: block;
    font-size: 0.75rem;
    color: #888;
}

/* ============================================================
   サイドバー + メインコンテンツ レイアウト
   ============================================================ */
.office_wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 60px;
}

/* サイドバー */
.office_sidebar {
    width: 220px;
    min-width: 220px;
    background: #fff;
    border-right: 1px solid #E8E5DC;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 200;
}

.office_sidebar_logo_area {
    padding: 20px 16px 12px;
    border-bottom: 1px solid #E8E5DC;
}

.office_sidebar_logo_area p {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

.office_sidebar nav ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.office_sidebar nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #4F4849;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.office_sidebar nav ul li a:hover {
    background: #F5F3EB;
    color: #F87076;
    border-left-color: #F87076;
}

.office_sidebar nav ul li a.active {
    background: #FFF0F0;
    color: #F87076;
    border-left-color: #F87076;
    font-weight: bold;
}

.office_sidebar nav ul li a .nav_icon {
    width: 18px;
    text-align: center;
    color: inherit;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.office_sidebar nav ul li.sidebar_divider {
    height: 1px;
    background: #E8E5DC;
    margin: 6px 16px;
}

/* バッジ（未読件数） */
.sidebar_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F87076;
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    margin-left: auto;
}

/* メインコンテンツ */
.office_main {
    flex: 1;
    margin-left: 220px;
    min-height: calc(100vh - 60px);
    padding: 32px;
}

/* QRコード管理 */
.qr-codes-box {
    margin-bottom: 24px;
}
