/* ============================================
全てのhtmlファイルに適用するスタイルシートです。
===============================================*/

/* --- 画面のタイトル部 --- */
.contents-title {
    width: 100%;
    height: 40px;
    text-align: left;
    display: flex;
}
.stick {
    width: 10px;
    height: 100%;
    margin: 0;
    border-radius: 10px;
    background-color: white;
}
.contents-name {
    width: auto;
    height: 100%;
    margin-left: 10px;
    font-size: 30px;
    color: white;
}
/* --- 監視画面設定の分割 --- */
.main-panel {
    width: 100%;
}
.setting-panel {
    width: 400px;
    background-color: #DEEBF7;
    padding: 5px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}
.setting-panel .nav-item {
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    border: #2c5a7b 1px solid;
}
.setting-panel .nav-link {
    padding: 0 5px;
}
.setting-panel .tab-content {
    border: #2c5a7b 1px solid;
    background-color: #ffffff;
}
.setting-panel .tab-pane {
    padding: 5px;
}
.setting-panel .form-control {
    border: #2c5a7b 2px solid;
}
.setting-panel .btn-reference {
    margin-top: 5px;
    text-align: right;
}
.setting-panel .setting-btn-area {
    position: relative;
    right: 0;
    margin: 5px;
    bottom: 0;
}

.setting-panel .setting-btn-position{
    position: absolute;
    right: 0px;
}

.setting-panel .btn-size {
    padding: 0 10px;
}
/* --- コンテンツ表示部 --- */
.contents-view {
    width: calc(100% - 20px);
    height: calc(100% - 155px);
    margin: 5px 0 0 20px;
    padding: 0;
    text-align: center;
}
/* --- トグルアニメーション --- */
.Toggle-animation {
    cursor: pointer;
    position: relative;
}
.Toggle-animation::after {
    width: 15px;
    height: 15px;
    border-right: solid 2px #fff;
    border-top: solid 2px #fff;
    content: '';
    position: absolute;
    display: block;
    right: 10px;
    top: 15%;
    transform: rotate(135deg);
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}
.Toggle-animation.open::after {
    top: 45%;
    transform: rotate(-45deg);
}
/* --- 検索・絞り込みボックス --- */
.search-box {
    width: 100%;
    height: auto;
    padding: 5px 5px 0 5px;
    margin: 0;
    margin-bottom: 5px;
    border: 1px solid white;
    background-color: #8b98a3;
    position: relative;
    text-align: left;
}
/* --- 検索・絞り込みボックスのアコーディオンボタン --- */
.accordion-btn {
    width: 100%;
    height: fit-content;
    padding-left: 5px;
    text-align: left;
    border: none;
    background-color: transparent;
    color: white;
}
.accordion-body {
    padding: 0;
}
/* --- 検索・絞り込みボックスのボタンエリア --- */
.OK-btn-area {
    text-align: right;
    margin-bottom: 5px;
}
.OK-btn-area .btn {
    font-size: large;
}
/* --- 検索ボックスのエラー表示 --- */
.invalid-feedback {
    width: fit-content;
	background-color: #e40b0bbb;
    color: #ffffff;
    padding: 0 5px;
    border-radius: 5px;
    margin-top: 0;
    position: absolute;
    top: 25px;
    z-index: 5;
}
/* --- 凡例のハテナボタン --- */
.btn-question,
.update-icon {
    width: 35px;
    height: 35px;
    margin: 0 5px 0 0;
    padding: 0;
    border: none;
    background-color: transparent;
    position: absolute;
    top: 0;
    right: 0;
}
.question-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
    stroke: white;
    stroke-width: 0.5px;
    color: #0c74a2;
    filter: drop-shadow(0 0 3px black);
}
.question-icon:hover {
    color: deepskyblue;
}
/* --- グループ化 --- */
.group {
    margin: 0;
    padding: 0;
    display: inline-block;
    position: relative;
}
/* --- input-group全般 --- */
.input-group-text {
    color: white;
    padding: 1px 5px 1px 5px;
    font-size: small;
}
/* --- セレクトボックス --- */
.form-select {
    width: max-content;
    padding: 0 2rem 0 5px;
    font-size: small;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}
.form-select option {
    padding-left: 5px;
}
/* --- 入力フォーム --- */
.form-control {
    padding: 0 5px;
}
/* --- 期間入力フォーム --- */
.form-datetime {
    font-size: small;
    padding: 0 5px;
}
/* --- フォームのプレースホルダー --- */
input::-webkit-input-placeholder,
input:-moz-placeholder,
input::-moz-placeholder,
input:-ms-input-placeholder {
    font-size: 5px;
}
/* --- 必須バッジ --- */
.badge-required {
    margin: 0 5px 0 5px;
    background-color: #c00000;
    color: white;
}
/* --- 表示部上部 --- */
.view-box-top {
    max-width: 100%;
    height: auto;
    margin-bottom: 5px;
    text-align: right;
    color: white;
}
/* --- 表示部上部の警告ラベル --- */
.alert-view-box-top {
    width: auto;
    text-align: center;
}
.label-alert-view-box-top {
    padding: 0 5px 0 5px;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
}
/* --- 表示部上部の結果件数表示 --- */
.label-result-view-box-top {
    width: auto;
    padding: 0 10px 0 0;
    margin: 0 0 0 auto;
}
/* --- 表示部 --- */
.view-box {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    text-align: center;
    display: inline-block;
}
/* --- 通信異常 --- */
.communication-error {
    position: absolute;
    z-index: 2;
    background-color: #0000005d;
    height: calc(100% - 200px);
    top: 95px;
}
.communication-error .message {
    width: 100%;
    color: #00b0f0;
    font-size: 15vw;
    text-shadow: 2px 2px 0 #ffffff, -2px -2px 0 #ffffff, -2px 2px 0 #ffffff,
        2px -2px 0 #ffffff;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}
/* --- テーブル --- */
.table {
    width: 100vw;
    max-width: 100%;
    height: auto;
    margin: 0;
    text-align: center;
    position: relative;
    vertical-align: middle;
    border-collapse: collapse;
    white-space: nowrap;
}
/* --- テーブルの3点リーダー表示 --- */
.table-option > tbody > tr > td,
.table-option > tbody > tr > th,
.table-option > thead > tr > td,
.table-option > thead > tr > th {
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}
/* --- 行ヘッダー固定 --- */
.table-option thead {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    border-width: 0;
    background: white;
    border-top: white;
    background-color: #2c5a7b;
    color: white;
    z-index: 2;
}
.table-option > thead > tr {
    border-width: 0;
}
/* --- 行と列固定時にz軸を変える --- */
.table-option th.z-03 {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    background-color: #2c5a7b;
    color: white;
    z-index: 3;
}
/* --- 列を固定させる --- */
.table-option td.column-fixed {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    background-color: #2c5a7b;
    color: white;
    z-index: 1;
}
/* --- セルの幅固定 --- */
.col-width {
    min-width: 80px;
    max-width: 80px;
    min-height: 120px;
    max-height: 120px;
}
/* --- アイコン付きのセル --- */
.icon-cell {
    width: fit-content;
    position: relative;
}
.icon-left {
    position: absolute;
    top: 0;
    left: 25px;
}
.icon-cell label {
    padding-left: 50px;
    margin: 0;
}
/* --- 監視画面での画像 --- */
.view-box-img {
    max-width: 100%;
    max-height: 100%;
}
/* --- 拠点状態表示ボックス配置エリア --- */
.monitoring-status-box {
    top: 0;
    position: absolute;
    width: 100%;
    height: calc(100%);
    overflow: hidden;
}
.img-style {
    width: 100%;
    position: relative;
}
/* --- 拠点状態表示ボックスエリア --- */
.status-marker {
    border-radius: 5px;
    position: absolute;
    border: 2px solid #2c5a7b;
}
/* --- モーダル --- */
.modal-header,
.modal-footer {
    border: none;
}
.modal-body label {
    display: inline;
}
.modal-dialog {
    padding-top: 80px;
}
.modal-area-guide {
    padding: 30px;
}
.modal-equipment-guide {
    padding: 200px;
}
/* --- モーダル内の項目名 --- */
.modal-bold-label {
    margin: 0;
    padding-left: 10px;
    font-weight: bold;
}
/* --- モーダル内のform --- */
.modal-form {
    height: auto;
    margin-left: 20px;
    margin-bottom: 0;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    font-size: medium;
    font-weight: normal;
}
.modal-error-message, .normal-error-message {
    color: #C00000;
}
.modal-error-message {
    width: 100%;
    padding-left: 20px;
    font-size: small;
    display: none;
}
/* --- モーダルのinputフォームの幅調整 --- */
.modal-input-form-width {
    max-width: calc(100% - 40px);
}
/* --- モーダルフォームのベース --- */
.modal-input-form-base {
    position: relative;
}
/* --- モーダルのツールチップ --- */
/* --- input要素の下の要素(弟要素)に指定してください。--- */
.modal-tooltip {
    display: none;
    position: absolute;
    font-size: 12px;
    box-shadow: 2px 2px 4px gray;
    background-color: rgb(247, 247, 247);
    border-radius: 0.25rem;
    z-index: 1;
    left: 20px;
    top: 60px;
}
.confirm-modal-style {
    box-shadow: 0 0 10px 5px gray;
}
/* --- スマホ画面で上部固定 --- */
.flex {
    display: flex;
}

.video-area {
    width: auto;
}
/* --- カメラ名 --- */
.camera-name-label {
    font-size: 12px;
    width: fit-content;
    max-width: 300px;
    padding: 0 10px;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    position: absolute;
    top: -19px;
    left: 0;
}
/* --- 映像表示部 --- */
.live-video-area {
    width: fit-content;
    position: relative;
    margin-top: 20px;
}
.snapshot-img {
    height: 100%;
}

/* --- スライドトグル --- */
input.toggle-input {
    /* トグルスイッチの変更で強制的に一覧スクロールが最上段に戻る現象が起きていたので、以下のスタイルに変更した */
    display: none;
}
label.toggle-label {
    top: 3px;
    width: 45px;
    height: 20px;
    background: #ccc;
    position: relative;
    display: inline-block;
    border-radius: 22px;
    transition: 0.4s;
    box-sizing: border-box;
    cursor: pointer;
}
label.toggle-label:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    left: 0;
    top: 0;
    z-index: 0;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: 0.4s;
    cursor: pointer;
}
input.toggle-input:checked + label.toggle-label {
    background-color: #23bdd1;
    cursor: pointer;
}
input.toggle-input:checked + label.toggle-label:after {
    left: 25px;
    cursor: pointer;
}
div.toggle-switch {
    position: relative;
    width: 150px;
    margin: auto;
    cursor: pointer;
}

/* --- 監視画面設定のマーカー設定ボックス --- */
.marker-setting-box {
    position: relative;
    padding: 12px 10px 5px 10px;
    margin-top: 15px;
    border: solid 1px #2c5a7b;
    background-color: #92e2ff;
}
.marker-size input,
.marker-setting-box input {
    width: 50px;
    font-size: small;
}
.marker-title {
    position: absolute;
    border-radius: 5px;
    background-color: #ffffff;
    top: -15px;
    left: 5px;
}
.marker-title label {
    padding-left: 20px;
}
/* --- プラスマイナスアイコン --- */
div.plus-icon,
div.minus-icon{
    display: inline-block;
    cursor: pointer;
}
div.minus-icon>span:before,
div.minus-icon>span:after,
div.plus-icon>span:before,
div.plus-icon>span:after {
  position: absolute;
  content: "";
  display: block;
  transition: all 0.4s;
  background: #0308fa;
  left: 12px;
  top: 50%;
  width: 15px;
  height: 3px;
  transform: translate(-50%, -50%);
}
/* --- そのうち1本を縦にする --- */
div.plus-icon>span:before {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* --- プラスアイコンクリック後、マイナスにする --- */
div.plus-icon>span.open:before {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* プラスアイコンの時は座標データを非表示にする。*/
div.plus-icon+div.axis-form-box{
    display:none;
}

/* --- 移動カーソル --- */
.move-cursor {
    cursor: move !important;
}
/* --- ファイル名ラベル --- */
.file-path-label {
    height: auto;
    min-height: 30px;
    overflow-wrap: anywhere;
}
@media (min-width: 1000px) {
    /* --- input-group全般 --- */
    .input-group {
        width: auto;
        height: auto;
        max-width: 350px;
        margin-bottom: 5px;
        margin-right: 10px;
        display: inline-flex;
    }
    /* --- 表示部上部 --- */
    .view-box-top {
        display: flex;
    }
    /* --- 拠点名box --- */
    .location-name-box {
        width: auto;
        text-align: left;
        white-space: nowrap;
        margin: auto 0;
    }
    /* --- エラーメッセージbox --- */
    .error-message-box {
        width: auto;
        text-align: center;
        vertical-align: middle;
        margin: auto;
    }
    /* --- 表示部上部操作ボタン --- */
    .view-box-operation-btns {
        width: auto;
        white-space: nowrap;
        margin: 0 0 0 auto;
    }
    .view-box {
        overflow: auto;
    }
    /* --- 通信異常 --- */
    .communication-error {
        width: calc(100vw - 50px);
        left: 50px;
    }
    /* --- 拠点のライブ映像エリア --- */
    .equipment-live-view {
        flex-wrap: wrap;
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        width: fit-content;
    }
    /* --- PCのときflex --- */
    .flex-block {
        display: flex;
    }
}

@media (max-width: 1000px) {
    /* --- input-group全般 --- */
    .input-group {
        width: auto;
        height: auto;
        max-width: 200px;
        margin-bottom: 5px;
        margin-right: 10px;
        display: inline-flex;
    }
    /* --- 拠点名ラベル --- */
    .location-name-box {
        text-align: left;
        white-space: nowrap;
    }
    /* --- エラーメッセージラベル --- */
    .error-message-box {
        text-align: center;
        margin-bottom: 5px;
    }
    /* --- 表示部上部操作ボタン --- */
    .view-box-operation-btns {
        text-align: right;
    }
    /* --- コンテンツ表示部 --- */
    .contents-view {
        position: relative;
    }
    .view-box {
        overflow-x: auto;
        overflow-y: hidden;
        height: auto;
    }
    .modal-xl {
        max-width: 100%;
    }
    /* --- テーブル --- */
    .table {
        margin-bottom: 10px;
    }
    /* --- 通信異常 --- */
    .communication-error {
        width: 100%;
        height: calc(100% - 80px);
        top: 80px;
        left: 0;
    }
    /* --- スマホのときblock --- */
    .flex-block {
        display: block;
    }
}
