:root {
    --header-height: 45px;
    --header-border-color: var(--bs-border-color);
    --header-bg-color: #f7f7f7;
}

html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scrollbar-color: #b297e9 #fff;

}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #b297e9;
}


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* ============================================================
   Schedule Custom UI Styles
   ============================================================ */

/* Top row header */
.page-header-container {
    padding: 0;
    margin-bottom: 0px;
}

.page-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-action-area {
    /* auto marginが利用可能な余白をすべて占有 */
    margin-left: auto;
}

.page-title-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.page-title-text {
    font-size: 1.4rem;
    font-weight: bold;
}

.page-dynamic-title {
    font-size: 1.2rem;
    color: #666;
    margin-left: 0.5rem;
}

/* Purple button */
.btn-purple {
    display: flex;
    align-items: center;
    background-color: #7b58c4;
    color: white;
    border: none;
    padding: .5rem .7rem;
    border-radius: 6px;
    font-weight: bold;
}

.btn-purple:hover {
    background-color: #6546a3;
    color: white;
}

.btn-purple:active {
    background-color: #6546a3 !important;
    color: white !important;
}

/* Dropdowns in the toolbar center */
.schedule-dropdown-area {
    /* hidden until moved into FullCalendar toolbar */
    gap: 1rem;
    align-items: center;
}

.custom-select {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

/* FullCalendar Custom Overrides to match React Mockup */
#calendar {
    flex: 1;
    min-height: 0;
    /* Flexboxの仕様で子要素が親の枠を押し広げてしまうのを防ぐ */
}

/* Toolbar */
.fc-theme-standard .fc-toolbar {
    align-items: center;
    background-color: #f7f7f7;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-bottom: none;
    margin-bottom: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* Buttons inside the toolbar */
.fc .fc-button-primary {
    background-color: #555555;
    border-color: #555555;
    color: white;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #7b58c4;
    border-color: #7b58c4;
}

.fc .fc-button-primary:hover {
    background-color: #444444;
    border-color: #444444;
}

.fc-toolbar-chunk:nth-child(2) {
    width: 50%;
}

/* Specific styling for the left button group (customGrDay, etc) to look like tabs/buttons */
.fc-toolbar-chunk:first-child .fc-button-group {
    margin-right: 0;
}

/* Remove background color from header cells of weekends so headers look clean, or adjust if desired */
.fc .fc-col-header-cell.fc-day-sat,
.fc .fc-col-header-cell.fc-day-sun {
    background-color: transparent;
}

/* Background colors for weekends */
/* Saturday - light blue */
.fc .fc-day-sat {
    color: #0d6efd;
    /* background-color: #e0f0ff; */
    background-color: rgba(43, 128, 255, 0.15);
}

/* sat-header */
.fc-timeline-slot-label.fc-day-sat {
    background-color: #bed8fe;
}

/* Sunday - light pink */
.fc .fc-day-sun {
    color: #d63384;
    /* background-color: #ffe0eb; */
    background-color: rgba(255, 98, 153, 0.15);
}

/* sun-header */
.fc-timeline-slot-label.fc-day-sun {
    background-color: #f5c2d8;
}

/* today */
.fc-day-today {
    background-color: rgba(255, 220, 40, 0.15);
}

/* today-header */
.fc-timeline-slot-label.fc-day-today {
    background-color: white;
}

/* Bootstrapのアイコンの表示 */
.bi {
    display: inline-block;
    position: relative;
    width: 1.2rem;
    height: 1.2rem;
    top: -1px;
    background-size: cover;
}

/* ＋アイコン */
.bi-plus-lg-icon {
    font-weight: bold;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-lg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2'/%3E%3C/svg%3E");
}

/* 家アイコン */
.bi-house-door-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

/* □+アイコン */
.bi-plus-square-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

/* カレンダーアイコン */
.bi-calendar-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-calendar-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V5h16V4H0V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5'/%3E%3C/svg%3E");
}

/* 設備予約アイコン */
.bi-clock-history {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-clock-history' viewBox='0 0 16 16'%3E%3Cpath d='M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022zm2.004.45a7 7 0 0 0-.985-.299l.219-.976q.576.129 1.126.342zm1.37.71a7 7 0 0 0-.439-.27l.493-.87a8 8 0 0 1 .979.654l-.615.789a7 7 0 0 0-.418-.302zm1.834 1.79a7 7 0 0 0-.653-.796l.724-.69q.406.429.747.91zm.744 1.352a7 7 0 0 0-.214-.468l.893-.45a8 8 0 0 1 .45 1.088l-.95.313a7 7 0 0 0-.179-.483m.53 2.507a7 7 0 0 0-.1-1.025l.985-.17q.1.58.116 1.17zm-.131 1.538q.05-.254.081-.51l.993.123a8 8 0 0 1-.23 1.155l-.964-.267q.069-.247.12-.501m-.952 2.379q.276-.436.486-.908l.914.405q-.24.54-.555 1.038zm-.964 1.205q.183-.183.35-.378l.758.653a8 8 0 0 1-.401.432z'/%3E%3Cpath d='M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0z'/%3E%3Cpath d='M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5'/%3E%3C/svg%3E");
}

.bi-clock-history-white {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-clock-history' viewBox='0 0 16 16'%3E%3Cpath d='M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022zm2.004.45a7 7 0 0 0-.985-.299l.219-.976q.576.129 1.126.342zm1.37.71a7 7 0 0 0-.439-.27l.493-.87a8 8 0 0 1 .979.654l-.615.789a7 7 0 0 0-.418-.302zm1.834 1.79a7 7 0 0 0-.653-.796l.724-.69q.406.429.747.91zm.744 1.352a7 7 0 0 0-.214-.468l.893-.45a8 8 0 0 1 .45 1.088l-.95.313a7 7 0 0 0-.179-.483m.53 2.507a7 7 0 0 0-.1-1.025l.985-.17q.1.58.116 1.17zm-.131 1.538q.05-.254.081-.51l.993.123a8 8 0 0 1-.23 1.155l-.964-.267q.069-.247.12-.501m-.952 2.379q.276-.436.486-.908l.914.405q-.24.54-.555 1.038zm-.964 1.205q.183-.183.35-.378l.758.653a8 8 0 0 1-.401.432z'/%3E%3Cpath d='M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0z'/%3E%3Cpath d='M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5'/%3E%3C/svg%3E");
}


/* ファイル共有アイコン */
.bi-share-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-share-fill' viewBox='0 0 16 16'%3E%3Cpath d='M11 2.5a2.5 2.5 0 1 1 .603 1.628l-6.718 3.12a2.5 2.5 0 0 1 0 1.504l6.718 3.12a2.5 2.5 0 1 1-.488.876l-6.718-3.12a2.5 2.5 0 1 1 0-3.256l6.718-3.12A2.5 2.5 0 0 1 11 2.5'/%3E%3C/svg%3E");
}

.bi-share-icon-white {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-share-fill' viewBox='0 0 16 16'%3E%3Cpath d='M11 2.5a2.5 2.5 0 1 1 .603 1.628l-6.718 3.12a2.5 2.5 0 0 1 0 1.504l6.718 3.12a2.5 2.5 0 1 1-.488.876l-6.718-3.12a2.5 2.5 0 1 1 0-3.256l6.718-3.12A2.5 2.5 0 0 1 11 2.5'/%3E%3C/svg%3E");
}

/* ChatAIアイコン */
.bi-chat-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-robot' viewBox='0 0 16 16'%3E%3Cpath d='M6 12.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5M3 8.062C3 6.76 4.235 5.765 5.53 5.886a26.6 26.6 0 0 0 4.94 0C11.765 5.765 13 6.76 13 8.062v1.157a.93.93 0 0 1-.765.935c-.845.147-2.34.346-4.235.346s-3.39-.2-4.235-.346A.93.93 0 0 1 3 9.219zm4.542-.827a.25.25 0 0 0-.217.068l-.92.9a25 25 0 0 1-1.871-.183.25.25 0 0 0-.068.495c.55.076 1.232.149 2.02.193a.25.25 0 0 0 .189-.071l.754-.736.847 1.71a.25.25 0 0 0 .404.062l.932-.97a25 25 0 0 0 1.922-.188.25.25 0 0 0-.068-.495c-.538.074-1.207.145-1.98.189a.25.25 0 0 0-.166.076l-.754.785-.842-1.7a.25.25 0 0 0-.182-.135'/%3E%3Cpath d='M8.5 1.866a1 1 0 1 0-1 0V3h-2A4.5 4.5 0 0 0 1 7.5V8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1v-.5A4.5 4.5 0 0 0 10.5 3h-2zM14 7.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.5A3.5 3.5 0 0 1 5.5 4h5A3.5 3.5 0 0 1 14 7.5'/%3E%3C/svg%3E");
}

.bi-chat-icon-white {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-robot' viewBox='0 0 16 16'%3E%3Cpath d='M6 12.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5M3 8.062C3 6.76 4.235 5.765 5.53 5.886a26.6 26.6 0 0 0 4.94 0C11.765 5.765 13 6.76 13 8.062v1.157a.93.93 0 0 1-.765.935c-.845.147-2.34.346-4.235.346s-3.39-.2-4.235-.346A.93.93 0 0 1 3 9.219zm4.542-.827a.25.25 0 0 0-.217.068l-.92.9a25 25 0 0 1-1.871-.183.25.25 0 0 0-.068.495c.55.076 1.232.149 2.02.193a.25.25 0 0 0 .189-.071l.754-.736.847 1.71a.25.25 0 0 0 .404.062l.932-.97a25 25 0 0 0 1.922-.188.25.25 0 0 0-.068-.495c-.538.074-1.207.145-1.98.189a.25.25 0 0 0-.166.076l-.754.785-.842-1.7a.25.25 0 0 0-.182-.135'/%3E%3Cpath d='M8.5 1.866a1 1 0 1 0-1 0V3h-2A4.5 4.5 0 0 0 1 7.5V8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1v-.5A4.5 4.5 0 0 0 10.5 3h-2zM14 7.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.5A3.5 3.5 0 0 1 5.5 4h5A3.5 3.5 0 0 1 14 7.5'/%3E%3C/svg%3E");
}

/* 時間アイコン */
.bi-clock-icon {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-clock' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0'/%3E%3C/svg%3E");
}

/* 場所アイコン(ピン) */
.bi-geo-alt-icon {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-geo-alt' viewBox='0 0 16 16'%3E%3Cpath d='M12.166 8.94c-.524 1.062-1.234 2.12-1.96 3.07A32 32 0 0 1 8 14.58a32 32 0 0 1-2.206-2.57c-.726-.95-1.436-2.008-1.96-3.07C3.304 7.867 3 6.862 3 6a5 5 0 0 1 10 0c0 .862-.305 1.867-.834 2.94M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10'/%3E%3Cpath d='M8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4m0 1a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E");
}

/* PCアイコン */
.bi-laptop-icon {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-laptop' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 3a.5.5 0 0 1 .5.5V11H2V3.5a.5.5 0 0 1 .5-.5zm-11-1A1.5 1.5 0 0 0 1 3.5V12h14V3.5A1.5 1.5 0 0 0 13.5 2zM0 12.5h16a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5'/%3E%3C/svg%3E");
}


.page-icon-wrap {
    background-color: #d7c7f7;
    border-radius: 50px;
    padding: .6rem;
}

.page-top-icon {
    display: block;
    width: 1rem !important;
    height: 1rem !important;
}

.side-icon {
    fill: white !important;
}

/* DDLなどのfocus時の色変更 */
.form-select:focus {
    border-color: #bfa8ed !important;
    box-shadow: 0 0 0 .25rem rgba(127, 81, 219, .25) !important;
}

/*==================================== 
bootstrap・fullcalendarのスタイル上書き
======================================*/

/* 日付選択ボタンのfocus時の影を消す */
.fc .fc-button-primary:focus {
    box-shadow: none !important;
}

/* カスタムヘッダー（日付と曜日の2段表示） */
.fc-header-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.fc-header-date {
    font-size: 1.05rem;
    font-weight: bold;
}

.fc-header-dow {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* timeGridなどのヘッダー内での位置調整 */
.fc-col-header-cell-cushion {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 4px 0 !important;
}

.Avatar_avatar {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    border-radius: 50%;

    width: 48px;
    height: 48px;
    color: #fff;
    background-color: #8a2be2;
}

.Avatar_text {
    font-size: 1rem;
}

.Avatar_icon {
    font-size: 1.5rem;
}

/* chatAI送信ボタン */
.notranslate {
    color: #8a2be2;
}

.navbar {
    padding: 0 !important;
}

/*==================================== 
ローダー
======================================*/
.loader-overlay {
    z-index: 9999;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

.loader-container-wrap {
    position: relative;
    transform-style: preserve-3d;
    perspective: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cell Add Button (Gr週ビュー: 各セル内の新規登録ボタン) */
.fc-cell-add-btn {
    position: absolute;
    padding: 1px 2px;
    min-width: 11px;
    min-height: 11px;
    background-color: #555555;
    border: 1px solid #555555;
    color: white;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .75;
    transition: all 0.2s;
    z-index: 5;
}

.fc-cell-add-btn .bi-plus-lg-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.fc-cell-add-btn:hover {
    background-color: #444444;
    border-color: #444444;
    opacity: 1;
}

.fc-cell-add-btn:active {
    background-color: #7b58c4;
    border-color: #7b58c4;
}

.loader-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15rem;
    height: 15rem;
    padding: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg,
            #3a2edf 0%,
            #c300ff 50%,
            #ff0077 100%);
    background-size: 1000% 1000%;
    animation: GradationAnimation 7s ease-in-out infinite;
}

.loader-container::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -1.2rem;
    left: -1.2rem;
    right: -1.2rem;
    bottom: -1.2rem;
    border-radius: 50%;
    background: inherit;
    background-size: 1000% 1000%;
    animation: GradationAnimation 7s ease-in-out infinite;
    opacity: 0.25;
}

.loader-container::after {
    content: "";
    position: absolute;
    z-index: -2;
    top: -2.5rem;
    left: -2.5rem;
    right: -2.5rem;
    bottom: -2.5rem;
    border-radius: 50%;
    background: inherit;
    background-size: 1000% 1000%;
    animation: GradationAnimation 7s ease-in-out infinite;
    opacity: 0.2;
}

@keyframes GradationAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.loader-logo {
    display: inline-block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 322.55 380.95'%3E%3Cg id='_レイヤー_2' data-name='レイヤー 2'%3E%3Cg id='_下層' data-name='下層'%3E%3Cg%3E%3Crect x='116.85' y='110.66' width='88.86' height='236.41' rx='44.43' ry='44.43' style='fill: %23fff;'/%3E%3Ccircle cx='161.28' cy='44.43' r='44.43' style='fill: %23fff;'/%3E%3Crect x='233.69' y='144.54' width='88.86' height='236.41' rx='44.43' ry='44.43' style='fill: %23fff;'/%3E%3Ccircle cx='278.12' cy='78.32' r='44.43' style='fill: %23fff;'/%3E%3Crect x='0' y='144.54' width='88.86' height='236.41' rx='44.43' ry='44.43' style='fill: %23fff;'/%3E%3Ccircle cx='44.43' cy='78.32' r='44.43' style='fill: %23fff;'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   Mobile Adjustments
   ============================================================ */
@media (max-width: 768px) {

    /* グループ用のボタン（Gr日・Gr週）はスマホでは非表示 */
    .fc-customGrDay-button,
    .fc-customGrWeek-button {
        display: none !important;
    }
}

/* ============================================================
   File Share Custom UI Styles
   ============================================================ */

.files-container {
    background-color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ツールバー（パンくず + ボタン） */
.toolbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edebe9;
    background-color: #ffffff;
    flex-wrap: wrap;
    gap: 12px;
}

/* Command Bar */
.command-bar {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    gap: 8px;
    border-bottom: none;
}

.command-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 4px;
    color: #323130;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #d2d0ce;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.command-btn:hover {
    background-color: #f3f2f1;
    border-color: #a19f9d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.command-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.command-btn span.bi {
    width: 16px;
    height: 16px;
}

.command-btn.primary {
    background-color: #7f51db;
    color: #ffffff;
    border-color: #7f51db;
    font-weight: 600;
}

.command-btn.primary:hover {
    background-color: #6a43b8;
    border-color: #6a43b8;
}

/* Breadcrumb */
.breadcrumb-area {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.breadcrumb-item {
    cursor: pointer;
    color: #7f51db;
}

.breadcrumb-item:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #323130;
    cursor: default;
}

.breadcrumb-item.active:hover {
    text-decoration: none;
}

.breadcrumb-separator {
    color: #605e5c;
    font-size: 12px;
}

/* Grid Customization (Moved from isolated CSS) */
.files-grid .rz-datagrid {
    border: none !important;
}

.files-grid .rz-datagrid-header {
    background-color: transparent !important;
    border-bottom: 1px solid #edebe9 !important;
}

.files-grid .rz-column-title {
    font-size: 12px;
    font-weight: 600;
    color: #605e5c;
    text-transform: none !important;
}

.files-grid .rz-datagrid-data td {
    padding: 8px 12px !important;
    border-bottom: 1px solid #f3f2f1 !important;
    border-right: none !important;
}

.files-grid .rz-datagrid-row-hover:hover {
    background-color: #f3f2f1 !important;
}

.rz-selectable tbody tr.rz-data-row:hover:not(.rz-state-highlight)>td {
    background-color: #e2daf0 !important;
}

.rz-selectable tbody tr.rz-data-row:hover:not(.rz-state-highlight) .rz-cell-data {
    background-color: var(--rz-transition) !important;
    color: var(--rz-transition) !important;
}

/* 選択時の青いハイライトを完全に無効化 */
.rz-selectable tbody tr.rz-data-row.rz-state-highlight>td {
    background-color: #c9b9e7 !important;
}

.rz-selectable tbody tr.rz-data-row.rz-state-highlight .rz-cell-data {
    background-color: var(--rz-transition) !important;
    color: var(--rz-transition) !important;
}

/* チェックボックスの色味を紫に変更 */
.rz-chkbox-box.rz-state-active {
    background-color: #7f51db !important;
}

/* Icons (File Share Specific) */
.bi-plus-lg-white-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-lg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2'/%3E%3C/svg%3E");
}

.bi-upload-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23323130' class='bi bi-upload' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5'/%3E%3Cpath d='M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708z'/%3E%3C/svg%3E");
}

.bi-folder-fill-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffb900' class='bi bi-folder-fill' viewBox='0 0 16 16'%3E%3Cpath d='M9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.826a2 2 0 0 1-1.991-1.819l-.637-7a2 2 0 0 1 .342-1.31L2.84 3.738C3.208 3.275 3.772 3 4.372 3h1.457a1 1 0 0 1 .707.293L8.586 5.343a1 1 0 0 0 .707.293h1.457c.331 0 .6-.269.6-.6s-.269-.6-.6-.6H9.828z'/%3E%3C/svg%3E");
}

.bi-file-earmark-excel-fill-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23107c41' class='bi bi-file-earmark-excel-fill' viewBox='0 0 16 16'%3E%3Cpath d='M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 0.293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM5.884 6.68 8 9.219l2.116-2.54a.5.5 0 1 1 .768.641L8.651 10l2.233 2.68a.5.5 0 0 1-.768.64L8 10.781l-2.116 2.54a.5.5 0 0 1-.768-.641L7.349 10 5.116 7.32a.5.5 0 1 1 .768-.64z'/%3E%3C/svg%3E");
}

.bi-file-earmark-fill-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23605e5c' class='bi bi-file-earmark-fill' viewBox='0 0 16 16'%3E%3Cpath d='M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5.5 1.5v2a1 1 0 0 0 1 1h2l-3-3z'/%3E%3C/svg%3E");
}

.bi-chevron-right-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23605e5c' class='bi bi-chevron-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.bi-pencil-square-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23323130' class='bi bi-pencil-square' viewBox='0 0 16 16'%3E%3Cpath d='M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.121L13.751 4.396z'/%3E%3Cpath fill-rule='evenodd' d='M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z'/%3E%3C/svg%3E");
}

.bi-arrow-right-circle-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23323130' class='bi bi-arrow-right-circle' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z'/%3E%3C/svg%3E");
}

.bi-trash-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23323130' class='bi bi-trash' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z'/%3E%3Cpath fill-rule='evenodd' d='M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z'/%3E%3C/svg%3E");
}

.bi-download-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23323130' class='bi bi-download' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5'/%3E%3Cpath d='M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z'/%3E%3C/svg%3E");
}

.command-separator {
    width: 1px;
    height: 24px;
    background-color: #edebe9;
    margin: 0 8px;
}

.command-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.breadcrumb-separator {
    width: 12px;
    height: 12px;
    margin: 0 4px;
}

.file-icon-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.file-icon span.bi {
    width: 20px;
    height: 20px;
}

.file-name {
    color: #323130;
    font-size: 14px;
    font-weight: 400;
}

.file-name:hover {
    color: #7f51db;
    text-decoration: underline;
    cursor: pointer;
}

/* --- 最近の更新履歴サイドバー --- */
.main-content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.files-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid #edebe9;
}

.history-sidebar {
    width: 320px;
    background-color: #faf9f8;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.history-header {
    padding: 16px;
    border-bottom: 1px solid #edebe9;
}

.history-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #323130;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.history-item {
    padding: 16px;
    border-bottom: 1px solid #f3f2f1;
    display: flex;
    gap: 12px;
    transition: background-color 0.2s ease;
    cursor: default;
}

.history-item:hover {
    background-color: #f3f2f1;
}

.history-item-icon-wrap {
    flex-shrink: 0;
}

.history-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #7f51db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.history-item-content {
    flex: 1;
    min-width: 0;
}

.history-item-text {
    font-size: 13px;
    color: #323130;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-all;
}

.history-item-filename {
    font-weight: 600;
    color: #7f51db;
}

.history-item-time {
    font-size: 11px;
    color: #605e5c;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* レスポンシブ対忁E*/
@media (max-width: 992px) {
    .main-content-wrapper {
        flex-direction: column;
        overflow-y: auto;
    }

    .files-main-content {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #edebe9;
        overflow-y: visible;
    }

    .history-sidebar {
        width: 100%;
        flex: none;
        overflow-y: visible;
    }
}

/* ===============================
   popover（もっと見る）の調整
================================= */
.popover {
    position: absolute;
    transform: translateX(-50%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popover-header {
    background: #f1f3f5;
    font-weight: bold;
}

/* 三角中央固定 */
.popover .popover-arrow {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* スクロール問題対策 */
.fc {
    min-height: 0;
}

.fc-scroller {
    overflow: auto;
}