﻿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;
}*/


.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;
}



/* アイコンの隣にあるカレンダーの親コンテナ */
.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: #bcffbc !important;
}
    .fc-day-today:hover {
        background-color: lightgray !important; /* FullCalendar のデフォルトに合わせる */
    }

/* リストビューの今日（見出し部分）の背景を消す */
.fc-list-day.fc-day-today .fc-list-day-cushion {
    background-color: #bcffbc !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;
}



