@charset "UTF-8";

body {
    text-spacing-trim: space-all;
}

.hide_load {
    display: none;
}

/* Offcanvas Menu Icon */
.toggle-icon {
    transition: transform 0.3s ease;
    margin-left: auto;
}

button.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.top-container {
    display: flex;
    justify-content: space-between;
    /* 左右の要素を端に寄せる */
    align-items: center;
    /* 上下の中央に配置 */
    width: 100%;
    margin-bottom: 5px;
    /* 上部に少し余白を追加 */
}

.top-left {
    display: flex;
    align-items: center;
    /* 上下の中央に配置 */
    text-align: left;
    /* 左揃え */
}

.top-left>*:not(:last-child) {
    margin-right: 10px;
    /* 右側に10pxの隙間を作成 */
}

.top-center {
    flex: 2;
    /* 中央にスペースを確保 */
    text-align: center;
    /* 中央揃え */
}

.top-right {
    flex: 1;
    /* 右側にスペースを確保 */
    text-align: right;
    /* 右揃え */
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    /* 左右の要素を端に寄せる */
    align-items: center;
    /* 上下の中央に配置 */
    width: 100%;
    margin-top: 5px;
    /* 上部に少し余白を追加 */
}

.bottom-left {
    text-align: left;
    /* 左揃え */
    display: flex;
    align-items: center;
    /* 上下の中央に配置 */
}

.bottom-center {
    text-align: center;
    /* 中央揃え */
}

.bottom-right {
    text-align: right;
    /* 右揃え */
}

.clear {
    clear: both;
}

:root {
    --dt-row-selected: var(--bs-primary-rgb) !important;
    --dt-row-selected-text: var(--bs-primary-text-rgb, 255, 255, 255) !important;
    --dt-row-selected-link: var(--bs-primary-text-rgb) !important;
    --dt-pagination-color: var(--bs-primary-rgb);
    --dt-pagination-hover-color: var(--bs-primary-rgb);
    --dt-pagination-active-bg: var(--bs-primary-rgb);
    --dt-pagination-active-color: 255, 255, 255;
    --dt-pagination-focus-shadow: var(--bs-primary-rgb);
}

[data-bs-theme="dark"] {
    --dt-row-selected: var(--bs-primary-rgb) !important;
    --dt-row-selected-text: var(--bs-primary-text-rgb, 255, 255, 255) !important;
    --dt-row-selected-link: var(--bs-primary-text-rgb) !important;
    --dt-pagination-color: var(--bs-primary-rgb);
    --dt-pagination-hover-color: var(--bs-primary-rgb);
    --dt-pagination-active-bg: var(--bs-primary-rgb);
    --dt-pagination-active-color: 255, 255, 255;
    --dt-pagination-focus-shadow: var(--bs-primary-rgb);
}

/* ページネーションのスタイル */
.dataTables_wrapper .dataTables_paginate .pagination {
    --bs-pagination-color: rgb(var(--dt-pagination-color));
    --bs-pagination-hover-color: rgba(var(--dt-pagination-hover-color), 0.7);
    --bs-pagination-focus-color: rgba(var(--dt-pagination-hover-color), 0.7);
    --bs-pagination-active-bg: rgba(var(--dt-pagination-active-bg), 0.9);
    --bs-pagination-active-color: rgb(var(--dt-pagination-active-color));
    --bs-pagination-active-border-color: rgb(var(--dt-pagination-active-bg));
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(var(--dt-pagination-focus-shadow), 0.25);
}

/* ページネーション、追加登録ボタンの固定化 */
.footerPagination {
    position: fixed;
    display: flex;
    justify-content: center;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    padding-top: .5rem;
    padding-bottom: 1.5rem;
}
.footerPaginationWithBtn {
    position: fixed;
    display: flex;
    justify-content: center;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    padding-top: .5rem;
    padding-bottom: 3.0rem;
}

.footerBtnLeftFixed {
    position: fixed;
    bottom: 1.0rem;
    left: 2.0rem;
    padding: .5rem;
    margin-bottom: .5rem;
    z-index: 20;
}

.footerBtnRightFixed {
    position: fixed;
    bottom: 1.0rem;
    right: 2.0rem;
    padding: .5rem;
    margin-bottom: .5rem;
    z-index: 20;
}

.dt-mb-custom {
    margin-bottom: 5rem !important;
}

@media (max-width: 1200px) {
    .footerPagination {
        position: fixed;
        display: flex;
        justify-content: center;
        right: 0;
        bottom: .5rem;
        left: 0;
        z-index: 10;
        padding-top: .5rem;
        padding-bottom: 2.5rem;
    }
    .footerPaginationWithBtn {
        position: fixed;
        display: flex;
        justify-content: center;
        right: 0;
        bottom: .5rem;
        left: 0;
        z-index: 10;
        padding-top: .5rem;
        padding-bottom: 5.0rem;
    }
    .footerBtnLeftFixed {
        position: fixed;
        bottom: .5rem;
        left: 2.0rem;
        margin-bottom: 2.5rem;
        z-index: 20;
    }
    .footerBtnRightFixed {
        position: fixed;
        bottom: .5rem;
        right: 2.0rem;
        margin-bottom: 2.5rem;
        z-index: 20;
    }
    .dt-mb-custom {
        margin-bottom: 8rem !important;
    }
}

/* ライトモードとダークモード共通のベーススタイル */
.page-link.active,
.active>.page-link {
    z-index: 3;
    color: var(--bs-pagination-active-color);
    background-color: var(--bs-pagination-active-bg);
    border-color: var(--bs-pagination-active-border-color);
}

/* ダークモード用のスタイル */
[data-bs-theme="dark"] .page-link.active,
[data-bs-theme="dark"] .active>.page-link {
    color: var(--bs-primary-text);
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* オプション：ダークモード時の非アクティブなページリンクのスタイル */
[data-bs-theme="dark"] .page-link {
    color: var(--bs-primary);
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

/* オプション：ダークモード時のホバー状態 */
[data-bs-theme="dark"] .page-link:hover {
    color: var(--bs-primary-text);
    background-color: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-border-subtle);
}

/* ログイン画面のロゴファイルをライド・ダークに対応 */
[data-bs-theme=light] .disp-logo {
    background-image: url(../img/logo_lom_color_black_square_twoline.png);
    background-repeat: no-repeat;
    background-size: 300px;
}

[data-bs-theme=dark] .disp-logo {
    background-image: url(../img/logo_lom_color_white_square_twoline.png);
    background-repeat: no-repeat;
    background-size: 300px;
}

/* 各検索パネル（フィルター項目ごとの枠） */
div.dtsp-pane {
    background-color: var(--bs-primary) !important;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

/* パネルのタイトル部分 */
div.dtsp-paneHeader {
    background-color: var(--bs-primary) !important;
    color: var(--bs-white);
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

/* 検索パネルの背景色 */
div.dt-button-background {
    background-color: #000;
    opacity: 0.5;
}

/* チェックボックス付きのリスト（DataTable本体） */
div.dtsp-table {
    background-color: var(--bs-body-bg);
}

/* Hover行の色（オプション） */
div.dtsp-table tbody tr:hover {
    background-color: var(--bs-secondary);
    color: var(--bs-white);
}

.toast-container {
    z-index: 1000 !important;
}

[data-bs-theme=light] .bg-dark {
    color: var(--bs-gray-100);
    background-color: var(--bs-gray-900);
}

[data-bs-theme=dark] .bg-dark {
    color: var(--bs-gray-900);
    background-color: var(--bs-gray-100);
}

[data-bs-theme=light] .bg-dark > .btn-close {
    filter: var(--bs-btn-close-white-filter);
}

[data-bs-theme=dark] .bg-dark > .btn-close {
    filter: var(--bs-btn-close-color);
}

/* datatable ソートアイコン設定 */
th[class*="dt-orderable"] {
  position: relative !important;
}

th::before,
th::after,
th span.dt-column-order::before,
th span.dt-column-order::after {
  content: none !important;
  display: none !important;
  background-image: none !important;
  border: none !important;
}

th.dt-orderable-asc.dt-orderable-desc:not(.dt-ordering-asc):not(.dt-ordering-desc) span.dt-column-order::before {
  font-family: 'bootstrap-icons' !important;
  content: '\f3ca' !important;
  display: inline-block !important;
  opacity: 0.3 !important;
}

th.dt-ordering-asc span.dt-column-order::before {
  font-family: 'bootstrap-icons' !important;
  content: '\f235' !important;
  display: inline-block !important;
  opacity: 0.8 !important;
}

th.dt-ordering-desc span.dt-column-order::before {
  font-family: 'bootstrap-icons' !important;
  content: '\f229' !important;
  display: inline-block !important;
  opacity: 0.8 !important;
}

table.dataTable input.dt-select-checkbox:checked::after {
  content: "\f26e" !important;              /* bi-check */
  font-family: "bootstrap-icons"; /* Bootstrap Icons */
  font-size : 1.5rem;
}


/* チュートリアルダイアログ */
.tg-dialog {
    min-width: 340px;
    z-index: 9998 !important;
}

.tg-backdrop {
    box-shadow: rgba(33,33,33,.5) 0 0 1px 1px, rgba(33,33,33,.5) 0 0 0 1000vh !important;
    z-index: 9997 !important;
}

.tg-dialog .tg-dialog-footer button.tg-dialog-btn {
    color: var(--bs-white) !important;
    background-color: var(--bs-primary) !important;
}

.tg-dialog .tg-dialog-footer button.tg-dialog-btn.disabled {
    pointer-events: none !important;
}