﻿body {
}

html, body, #app {
    height: 100%;
    margin: 0;
    padding: 0;
}

/*.custom-font-appbar {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 400;
    font-style: normal;
}*/

.normal-case {
    text-transform: none !important;
}

.custom-font-appbar {
    font-family: "Nabla", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: 
        "EDPT" 40,
        "EHLT" 23;
}

.rubik-doodle-triangles-regular {
    font-family: "Rubik Doodle Triangles", system-ui;
    font-weight: 400;
    font-style: normal;
    white-space: nowrap !important;
    color: #f09501 !important;
}

.date-picker-input {
    width: 200px;
}

.appbar-title {
    display: inline-flex;
    align-items: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none; /* これ！ */
}


.title-default {
    transform: translateX(0);
    opacity: 1;
    cursor: pointer !important; /* クリック可 */
    pointer-events: auto !important; /* クリック可 */
}

.title-move {
    transform: translateX(-60px); /* 適宜調整 */
    opacity: 0;
    cursor: default !important; /* ポインターではなく通常矢印 */
    pointer-events: none !important; /* クリック無効 */
}

/* 共通: 余計な上書きが入らないように */
.home-link {
    position: relative !important;
}

.drawer-title {
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none; /* 必要に応じて。AppBarと同様 */
}

.title-visible {
    transform: translateX(0);
    opacity: 1;
}

.title-hidden {
    transform: translateX(60px); /* 少し左にスライドさせてフェードアウト */
    opacity: 0;
}

/*スケジューラーカテゴリーチェックボックス*/
.color-selector{
    width: 135px;
}
.color-selector .mud-input .mud-input-root {
    /* 縦方向の見切れ対策 */
    height: 40px !important;
    padding-top: 0px;
    padding-bottom: 0px;
}
    .color-selector .mud-list .mud-list-item {
        padding-top: 0px !important;
        padding-right: 16px;
    }

.category-checkbox .mud-typography {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 480px) {
    .mud-calendar-button {
        font-size: 10px;
    }
}

/* 画面が狭い時（縦並び）→ 上に詰める */
@media (max-width: 600px) {
    .filters-container {
        margin-top: -20px !important;
    }
        /* もう少し詰めたいなら -14px など */
        .filters-container .mud-checkbox {
            margin-top: -20px;
            margin-bottom: 0;
        }
}

/* 画面が広い時（横並び）→ ほんの少し下げる */
@media (min-width: 601px) {
    .filters-container {
        margin-top: 10px !important;
    }
    /* アイコンより気持ち下に */
}

/* 余計なマージンを消して、重なりを防ぐ */
.toolbar {
    gap: 8px;
}
    /* MudStack の Spacing と合わせてOK */
    .toolbar .icons {
        flex: 0 0 auto;
    }
    /* アイコンは幅固定（縮まない） */
    .toolbar .filters {
        flex: 1 1 280px;
    }
/* チェック群は伸び縮み＆必要で折り返し */

/* 画面狭いときは上詰め、広いときは少し下げたい場合 */
@media (max-width: 443px) {
    .toolbar {
        align-items: flex-start;
    }

        .toolbar .filters {
            margin-top: -4px;
            margin-bottom: 4px;
        }
}

@media (min-width: 444px) {
    .toolbar .filters {
        margin-top: 8px;
        margin-bottom: 10px;
    }
    /* 好みで微調整 */
}

/* 親ツールバー（参考：既に MudStack が flex だが一応明示） */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

    /* チェック群：可変幅にして残りを占める → 右アイテムを押し出すために必須 */
    .toolbar .checks {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 12px; /* お好みで */
        flex: 1 1 auto !important; /* ← これが肝 */
    }

    /* Taskメモ：広い時は右端へ */
    .toolbar .task-card {
        margin-left: auto !important; /* ← 右端へ押し出す */
        display: flex; /* Safari 対策で念のため */
    }

/* 狭い時は下段（チェック群の下）に落とす */
@media (max-width: 785px) {
    .toolbar .task-card {
        order: 99; /* checks の後ろへ */
        flex: 1 1 100%; /* 1行使う＝下段に配置 */
        margin-left: 0 !important;
        margin-top: 8px;
    }
}

/* MudCheckBox の上下マージンを詰める */
.compact-checkbox .mud-input-control {
    margin-top: -4px !important;
    margin-bottom: -8px !important;
    margin-left: -8px !important;
}

/* ラベルの高さも詰める */
.compact-checkbox .mud-typography {
    line-height: 1.2 !important;
}


/*ダッシュボード会議室予約・来客一覧テキスト用*/
.wrap-text {
    max-width: 220px; /* 任意。親に幅があるなら不要 */
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.2;
}

/*MudDatePickerのヘッダーを非表示にする*/
.mud-picker-toolbar {
    display: none !important;
}

.agenda-header {
    gap: .5rem;
}

.agenda-date {
    white-space: nowrap;
    text-align: center;
}

/* 600px以下で縦並びにする */
@media (max-width: 600px) {
    .agenda-header {
        flex-wrap: wrap;
    }

    .agenda-date {
        flex-basis: 100%;
        order: 2; /* 真ん中に表示 */
    }

    .agenda-actions {
        order: 3;
    }
}

/* アイコンの隣にあるカレンダーの親コンテナ */
.calendar-container {
    flex-grow: 1; /* 横方向の残りのスペースを埋める */
    height: calc(100vh - 140px); /* 親から高さを継承して、縦いっぱいに広がる */
    display: flex; /* 子要素(MudPaper)をFlexboxで管理する */
    flex-direction: column;
    margin-top: 10px;
/*    margin-left: -10px;
    margin-right: -10px;*/
}

/* MudPaperがコンテナ(calendar-container)を埋めるようにする */
.calendar-full-height {
    flex-grow: 1; /* 縦方向の残りのスペースを埋める */
    display: flex; /* これにより、中のMudCalendarが height: 100% を正しく解釈できる */
}

/* MudCalendar自体がMudPaperを埋めるようにする */
.calendar-full-size {
    height: 100%;
    width: 100%;
}



/* カレンダーの各行 */
.calendar-full-size .mud-calendar-month-view-row {
    height: 100%; /* 親の高さ（グリッドのセル）に追従 */
}

    .calendar-full-size .mud-cal-month-link {
        padding: 2px !important; /* セルの余白を極限まで減らす */
        min-height: 0 !important; /* ライブラリの最小高さを上書き */
    }


.mud-cal-overflow-message.overflow-button {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 4px;
    background-color: #1976d2;
    color: white;
    font-size: 0.75rem;
    padding: 2px 0;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


    .overflow-button:hover {
        background-color: #1565c0;
    }

/* 従業員マスタのDataGridを画面サイズに合わせて追従させる */
 .responsive-grid .mud-table-container {
    /* グリッド本体の高さをビューポートに応じて変更します。
      280pxの部分はヘッダーやフッターなど、グリッド以外の要素の高さです。
      環境に合わせて調整してください。
    */
    height: calc(100vh - 230px);
    /*
      グリッド本体の最大の高さを指定します。
      750pxからヘッダーの高さを引いた値を指定すると良いでしょう。
    */
    max-height: 780px;
}

/**************************FullCalendarCss*********************************/
/* ライトモード用 */
:root {
    --calendar-event-text-color: #000000;
}

/* ダークモード切り替え時 */
body.dark-mode {
    --calendar-event-text-color: #ffffff;
}

/* FullCalendar イベントに適用 */
.fc-event-dynamic {
    color: var(--calendar-event-text-color) !important;
    border-radius: 10px;
}

/* FullCalendar の dayGrid のセル高さを固定 */
.fc .fc-daygrid-day-frame {
    min-height: 120px; /* お好みで調整 */
 
}
/*今日の日付のクリーム色を無くす*/
.fc-day-today {
    background-color: rgba(var(--mud-palette-primary-rgb), .18) !important;
}
    .fc-day-today:hover {
        background-color: rgba(var(--mud-palette-primary-rgb), .28) !important;
    }

/* リストビューの今日（見出し部分）の背景を消す */
.fc-list-day.fc-day-today .fc-list-day-cushion {
    background-color: rgba(var(--mud-palette-primary-rgb), .18) !important;
}

/* 先月ボタンのマスの背景色 */
/* 次月ボタンのマスの背景色 */
/* 今日の日付のマスの背景色 */
.fc .fc-prev-button,
.fc .fc-next-button,
.fc .fc-today-button,
.fc .fc-dayGridMonth-button,
.fc .fc-timeGridWeek-button,
.fc .fc-timeGridDay-button,
.fc .fc-listWeek-button {
    background-color: #66a593 !important; /*ミント*/
    border-color: #66a593 !important; /*ミント*/
}

/* ヘッダーの全体レイアウトを柔軟にする (モバイルで綺麗に表示)*/
.fc-header-toolbar {
    display: flex;
    flex-wrap: wrap; /* スマホで折り返し */
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* 左・右のボタン群を均等に整列 */
.fc .fc-toolbar-chunk {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* スマホ画面で中央のタイトルが折り返さないように */
.fc-toolbar-title {
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ボタンのサイズ調整（モバイル時に少し小さく） */
.fc .fc-button {
    padding: 4px 8px;
    font-size: 0.85rem;
}


/*************************************AIagent*****************************************/
/* 改行をそのまま表示 */
.msg-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ai-title-gradient {
    background: linear-gradient(135deg, var(--mud-palette-primary) 0%, var(--mud-palette-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 吹き出しの共通スタイル */
.chat-bubble {
    border-radius: 20px !important; /* 全体の丸み */
    overflow: hidden; /* 角丸からはみ出さないように */
    max-width: min(75%, 820px); /* 行幅を抑えて読みやすく */
    /* padding は MudPaper の pa-3 が効いているのでOK */
}

    /* 右側（ユーザー） */
    .chat-bubble.from-user {
        /* top-left | top-right | bottom-right | bottom-left */
        border-radius: 20px 6px 20px 20px !important;
        color: var(--mud-palette-text-primary-contrast); /* mud-theme-primary用の文字色確保 */
    }

    /* 左側（AI）: 左下だけ少し小さめ */
    .chat-bubble.from-ai {
        border-radius: 6px 20px 20px 20px !important;
    }

/* 空のときに中央に配置 */
.empty-chat {
    height: 65vh; /* 親と同じ高さに */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: var(--mud-palette-text-secondary);
}

/* 見出しの帯（必要なら position:sticky で固定も可） */
.ai-page-header {
    /* position: sticky; top: 0;  ← 固定させたいときだけ有効化 */
    background: var(--mud-palette-background);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    z-index: 5;
}

/* 中身の最大幅と左右寄せ切替 */
.ai-page-header__inner {
    max-width: 1200px; /* ChatGPT風の最大幅 */
    margin: 0 auto; /* コンテナを中央に */
    padding: 8px 16px;
    display: flex;
}

/* md以上は左寄せ */
@media (min-width: 960px) {
    .ai-page-header__inner {
        justify-content: flex-start;
    }
}

/* sm以下は中央寄せ */
@media (max-width: 959.98px) {
    .ai-page-header__inner {
        justify-content: center;
    }
}

/* 文字の調整（任意） */
.ai-page-title {
    line-height: 1;
}

/* 入力欄の角を丸く（値は好みで 16〜24px あたり） */
.chat-input .mud-input-root {
    border-radius: 20px !important;
    overflow: hidden; /* はみ出し防止（Adornment含む） */
}

/* Outlined の枠（ノッチ付きの fieldset）も丸める */
.chat-input .mud-input-outlined-border {
    border-radius: 20px !important;
}

/* ついでに枠線を少し太く/色を弱めたいとき（任意） */
.chat-input .mud-input-outlined-border {
    border-width: 1.5px;
    /* border-color: var(--mud-palette-action-default); */
}
/* isLoading 中（＝is-loading クラス付き）だけ、枠をデフォルトのグレーに固定 */
.chat-input.is-loading .mud-input-outlined-border {
    border-color: var(--mud-palette-lines-default) !important;
}

/* Disabled による薄色化を抑えて“デフォ色”をキープしたい場合（任意） */
.chat-input.is-loading .mud-input-root.mud-disabled .mud-input-outlined-border {
    border-color: var(--mud-palette-lines-default) !important;
    opacity: 1; /* 既定の disabled の薄さを戻す。薄い見た目が良ければこの行は外す */
}

/* ラベルの色味も合わせる（任意） */
.chat-input.is-loading .mud-input-label {
    color: var(--mud-palette-text-secondary) !important;
}
/* 既定：md以上はヘッダー直下 */
.chat-card {
    margin-top: 0 !important;
}

/* sm以下では少し余白を残す */
@media (max-width: 959.98px) {
    .chat-card {
        margin-top: 12px !important;
    }
}

/* Drawer内を縦並びにして、最後の一覧だけをスクロール対象に */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 6px; /* 好みで */
    padding-bottom: 8px;
}

/* 上部ヘッダ（左：AIアイコン / 右：新しいチャット） */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

/* 検索バーの余白を最小限に */
.search-wrap {
    padding: 0 10px;
}

/* 一覧だけをスクロールさせる。min-height:0 がポイント */
.session-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 6px 6px;
    overflow-x: auto;
}
/* 中身が欲しいだけ横に広がれるようにする */
.tree-wrapper {
    width: max-content; /* コンテンツ幅に合わせて広がる */
    min-width: 100%; /* ただし最低でも Drawer 幅は確保 */
}

/* リスト項目の見た目 */
.session-item {
    border-radius: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin: 2px 2px;
}

    .session-item:hover {
        background: rgba(0,0,0,.04);
    }

    .session-item.selected {
        background: rgba(0,0,0,.08);
    }

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row1 {
    font-size: .95rem;
}

.row2 {
    font-size: .78rem;
    color: var(--mud-palette-text-secondary);
}
.session-item {
    position: relative;
    border-radius: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin: 2px 2px;
}

    .session-item:hover {
        background: rgba(0,0,0,.04);
    }

    .session-item.selected {
        background: rgba(0,0,0,.08);
    }

.item-actions {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity .15s ease;
}

.session-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左テキスト / 右三点 */
    width: 100%;
}

.session-text {
    flex: 1;
    min-width: 0; /* truncate効かせるため */
}

.row1 {
    font-size: .95rem;

}

.row2 {
    font-size: .78rem;
    color: var(--mud-palette-text-secondary);
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 三点メニューは初期は非表示 */
.menu-actions {
    opacity: 0;
    transition: opacity .15s ease;
}

/* ListItemにホバー or 選択されたときだけ表示 */
.session-item:hover .menu-actions,
.session-item.selected .menu-actions {
    opacity: 1;
}

/* デフォルトは中央寄せ */
.chat-container {
    max-width: 800px; /* 好みの上限幅 */
    margin: 0 auto;
    padding: 0 12px; /* デスクトップでは少し余白 */
}

/* スマホや小さい画面では幅いっぱいに */
@media (max-width: 768px) {
    .chat-container {
        max-width: 100% !important;
        margin: 0;
        padding: 0;
    }

    .chat-card {
        border-radius: 0; /* 左右の角丸をなくしてフル幅感 */
    }
}

/* PC（幅600px以上） → flex */
@media (min-width: 600px) {
    .folder-line {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .folder-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    /* ︙ を通常は隠す */
    .folder-menu {
        opacity: 0;
        pointer-events: none; /* ホバーしてない時はクリックも禁止 */
        transition: opacity 0.15s;
    }
    /* 行にホバーしたら ︙ を表示 */
    .mud-treeview-item-content:hover .folder-menu {
        opacity: 1;
        pointer-events: auto;
    }


}

/* スマホ（幅599px以下） → grid */
@media (max-width: 599px) {
    .folder-line {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        width: 100%;
        gap: 4px;
    }

    .folder-text {
        white-space: normal;
        word-break: break-word;
    }

    /* モバイルは常に表示（タップ操作のため） */
    .folder-menu {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.folder-menu .mud-button-root {
    transform: translateY(2px);
}

/*************************************Dot・Store*****************************************/









/* Customer-folder project dialogs. Kept global because MudDialog renders in a portal. */
.customer-project-dialog-theme {
    --customer-dialog-surface: #fff;
    --customer-dialog-border: #e5e7eb;
    --customer-dialog-text: #111827;
    background: var(--customer-dialog-surface) !important;
    color: var(--customer-dialog-text) !important;
}

.customer-project-dialog-theme .mud-dialog-content {
    padding: 20px 22px 16px;
    overflow-y: auto;
}

.customer-project-dialog-theme .mud-dialog-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--customer-dialog-border);
    background: var(--customer-dialog-surface) !important;
}

.customer-project-dialog-theme .mud-button-root {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 8px !important;
    font-weight: 700;
    text-transform: none !important;
    white-space: nowrap;
}

.customer-project-dialog-theme .mud-button-outlined {
    border: 1px solid var(--customer-dialog-border) !important;
    background: #fff !important;
    color: var(--customer-dialog-text) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1) !important;
}

.customer-project-dialog-theme .mud-button-filled-primary {
    color: var(--mud-palette-primary-text) !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--mud-palette-primary) 22%, transparent) !important;
}

.customer-project-code-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: start;
    gap: 8px;
}

/* ライン工番対応（第2段階）: 案件作成／編集ダイアログの選択済み工番表示。 */
.customer-project-work-numbers-empty {
    padding: 14px 16px;
    border: 1px dashed var(--customer-dialog-border);
    border-radius: 10px;
    background: #fafafa;
}

.customer-project-work-numbers-empty-title {
    font-weight: 700;
    color: var(--customer-dialog-text);
    margin-bottom: 2px;
}

.customer-project-work-number-single {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--customer-dialog-border);
    border-radius: 10px;
    background: #fafafa;
}

.customer-project-work-number-card {
    min-width: 0;
}

.customer-project-work-number-code {
    font: 700 .88rem ui-monospace, SFMono-Regular, Consolas, monospace;
    color: var(--customer-dialog-text);
}

.customer-project-work-number-name {
    margin-top: 2px;
    font-size: .82rem;
    color: #4b5563;
}

.customer-project-work-number-figure {
    margin-top: 2px;
    font-size: .76rem;
    color: #6b7280;
}

.customer-project-work-number-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.customer-project-work-numbers-line,
.customer-project-work-numbers-readonly {
    padding: 10px 14px;
    border: 1px solid var(--customer-dialog-border);
    border-radius: 10px;
    background: #fafafa;
}

.customer-project-work-numbers-line-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.customer-project-work-numbers-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.customer-project-work-number-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--customer-dialog-border);
    border-radius: 8px;
    background: #fff;
}

.customer-project-work-number-row-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.customer-project-work-number-row-delete {
    flex: 0 0 auto;
}

.customer-project-work-number-row-pending {
    border-style: dashed;
    background: #f5f7ff;
}

.customer-project-work-number-row-code {
    font: 700 .84rem ui-monospace, SFMono-Regular, Consolas, monospace;
    color: var(--customer-dialog-text);
    white-space: nowrap;
}

.customer-project-work-number-row-name {
    font-size: .8rem;
    color: #4b5563;
}

.customer-project-work-number-row-figure {
    font-size: .74rem;
    color: #6b7280;
}

.koban-select-toolbar-count,
.koban-select-footer-count {
    white-space: nowrap;
}

.project-edit-loading {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--mud-palette-text-secondary);
}

.koban-select-dialog .mud-table-row { cursor: pointer; }
.koban-select-dialog .koban-finished-row { background: #f3f4f6 !important; color: #6b7280 !important; }

@media (max-width: 600px) {
    .customer-project-dialog-theme .mud-dialog-content { padding: 16px 14px 12px; }
    .customer-project-code-field { grid-template-columns: minmax(0, 1fr); }
    .customer-project-code-field .mud-button-root { width: 100%; }
    .customer-project-dialog-theme .mud-dialog-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        padding: 10px 14px 14px;
    }
    .customer-project-dialog-theme .mud-dialog-actions .mud-button-root {
        width: 100%;
        margin: 0;
    }
    .customer-project-work-number-single {
        flex-direction: column;
        align-items: stretch;
    }
    .customer-project-work-number-actions {
        justify-content: flex-end;
    }
}

/* ============================================================
   会議室関連Dialog 共通レスポンシブ幅（2026-08-19、2026-08-20強化）
   PC → 適度な最大幅を維持。スマホ → viewportを最大限使う（左右余白 約8px）。
   FullScheduler.razorの.fs-schedule-dialogと同じ思想を、会議室関連の全Dialogへ
   共通クラスとして展開する（Dialogごとに同じCSSをコピペしない）。
   使い方: 各<MudDialog>のClass属性へ "meeting-room-dialog"（通常）または
   "meeting-room-dialog-wide"（WorkerMultiSelectDialog等、少し広めに使いたい場合）を付与する。

   実機検証（2026-08-19、MudBlazor 8.15.0を実際に動かした最小Blazor Serverアプリで、
   getBoundingClientRect().widthを計測）: Class="meeting-room-dialog"はDialogOptionsの
   MaxWidth/FullWidthの設定有無に関わらず実際に.mud-dialog要素へ乗り、390px viewportで
   374px(=390-16)へ正しく上書きされることを確認済み（静的HTML再現ではなく、実際に
   DialogService.ShowAsyncで開いたDOMのgetBoundingClientRect()で計測）。
   このため実機で余白が残っていた場合、CSSのセレクタ自体よりも「site.cssがキャッシュされて
   古いまま読み込まれている」可能性が高いと判断し、App.razor側でsite.cssの参照を
   @@Assets["css/site.css"]（ASP.NET Coreの静的アセットフィンガープリンティング）へ変更し、
   ファイル内容が変わるたびにURLが変わる（＝古いキャッシュを参照しなくなる）ようにした
   （MudBlazor.min.css/ERPmini.styles.cssは既にこの仕組みを使っており、site.cssだけが
   素のパス参照でキャッシュバスティングが無かった）。
   本ブロックはそれに加えて、以下は".mud-dialog"との複合セレクタ+!importantへ強化し、
   MudBlazorの.mud-dialog-width-*より優先されることをセレクタの形自体で保証する
   （読み込み順序に依存しない）。 */
.mud-dialog.meeting-room-dialog,
.mud-dialog.meeting-room-dialog-wide {
    min-width: 0 !important;
    box-sizing: border-box !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
}
.mud-dialog.meeting-room-dialog {
    width: min(680px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
}
.mud-dialog.meeting-room-dialog-wide {
    width: min(900px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
}
.mud-dialog.meeting-room-dialog .mud-dialog-title,
.mud-dialog.meeting-room-dialog .mud-dialog-content,
.mud-dialog.meeting-room-dialog .mud-dialog-actions,
.mud-dialog.meeting-room-dialog-wide .mud-dialog-title,
.mud-dialog.meeting-room-dialog-wide .mud-dialog-content,
.mud-dialog.meeting-room-dialog-wide .mud-dialog-actions {
    min-width: 0 !important;
}
/* DialogContentだけがスクロールし、タイトル・操作ボタンは常に見える位置へ残す
   （MudBlazor既定で.mud-dialogは既にflex-direction:columnかつ
   .mud-dialog-content{flex:1 1 auto;overflow:auto}のため、基本構造はそのまま活用する）。 */
.mud-dialog.meeting-room-dialog .mud-dialog-actions,
.mud-dialog.meeting-room-dialog-wide .mud-dialog-actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
}

@media (max-width: 600px) {
    .mud-dialog.meeting-room-dialog,
    .mud-dialog.meeting-room-dialog-wide {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        max-height: calc(100vh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
    }
}
