/* 最小化できませんでした。最小化されていないコンテンツを返します。
(11,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(12,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(13,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(14,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(15,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(16,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(17,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(162,21): run-time error CSS1039: Token not allowed after unary operator: '-sidemenu-width'
(163,17): run-time error CSS1039: Token not allowed after unary operator: '-sidemenu-width'
(165,22): run-time error CSS1039: Token not allowed after unary operator: '-sidemenu-color-main'
(166,19): run-time error CSS1039: Token not allowed after unary operator: '-sidemenu-zindex-main'
(178,17): run-time error CSS1039: Token not allowed after unary operator: '-sidemenu-color-main'
(179,28): run-time error CSS1039: Token not allowed after unary operator: '-sidemenu-color-header'
(191,17): run-time error CSS1039: Token not allowed after unary operator: '-sidemenu-color-text'
(243,17): run-time error CSS1039: Token not allowed after unary operator: '-sidemenu-color-main'
(247,22): run-time error CSS1039: Token not allowed after unary operator: '-sidemenu-color-main'
(248,17): run-time error CSS1039: Token not allowed after unary operator: '-sidemenu-color-header'
(260,19): run-time error CSS1039: Token not allowed after unary operator: '-sidemenu-zindex-overlay'
 */
/*
    Visual Studio 設定
        ツール > オプション
        テキストエディタ > CSS > 詳細設定 > 階層形式のインデント > オフ
*/

/*======================================================================================*/

/* CSS変数 */
:root {
    --sidemenu-color-main: #fff;
    --sidemenu-color-header: #666;
    --sidemenu-color-text: #000;
    --sidemenu-width: 280px;
    --sidemenu-zindex-main: 1039; /* 1031～1039を使う ※ナビゲーションバーとモーダルのあいだ */
    --sidemenu-zindex-overlay: 1038;
    --sidemenu-zindex-collapse: 1037;
}

/* ボディ */
body {
    padding-top: 66px;
    padding-bottom: 20px;
}

/* コンテンツがエッジに当たらないようにパディングを設定する */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* 水平方向の説明リストが長すぎて左の列に収まらない用語を切り捨てる
   デフォルトのブートストラップ動作を上書きする */
.dl-horizontal dt {
    white-space: normal;
}

/* フォームの入力要素はデフォルトで100%幅なので、幅を設定する */
input,
select,
textarea {
    max-width: 280px;
}

/* レスポンシブ無効化 */
.container,
.container-fluid {
    max-width: none;
    min-width: 1000px;
}

.container-fluid .width-limit {
    max-width: 1200px;
}

@media screen {
    .form-horizontal .control-label {
        padding-top: 7px;
        margin-bottom: 0;
        text-align: right;
    }

    .dl-horizontal dt {
        float: left;
        width: 160px;
        clear: left;
        text-align: right;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dl-horizontal dd {
        margin-left: 180px;
    }
}

/*======================================================================================*/

/* 独自ナビゲーションバー */
.navigation {
    width: 100%;
    height: auto;
    padding: 0;
    position: fixed;
    top: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1030;
    white-space: nowrap;
}

.navigation .container-fluid .navigation-header,
.navigation .container-fluid .navigation-logo {
    margin-right: -15px;
    margin-left: -15px;
}

.navigation .navigation-header {
    background-color: #222;
    height: 36px;
    display: flex;
    padding-left: 15px;
    padding-right: 15px;
}

.navigation .header-left {
    margin-right: auto;
}

.navigation .header-right {
    margin-left: auto;
}

.navigation .header-brand img {
    position: absolute;
    margin: 1px;
    height: 34px;
}

.navigation .header-nav {
    display: flex;
    margin-top: 8px;
}

.navigation .header-nav-item {
    list-style: none;
}

.navigation .header-nav-item a,
.navigation .header-nav-item span {
    padding: 8px 13px;
}

.navigation a,
.navigation span {
    color: #9d9d9d;
    text-decoration: none;
}

.navigation a:hover,
.navigation a:focus {
    color: #fff;
}

.navigation .navigation-logo {
    background-color: #fff;
    height: 30px;
    display: flex;
    justify-content: center;
}

.navigation .navigation-logo img {
    margin: 5px;
    height: 20px;
}

/* サイドバー：本体 */
#sidemenu {
    visibility: hidden; /* フォーカス不可 */
    position: fixed;
    top: 0;
    left: calc(var(--sidemenu-width) * -1);
    width: var(--sidemenu-width);
    height: 100%;
    background: var(--sidemenu-color-main);
    z-index: var(--sidemenu-zindex-main);
    transition: left 0.3s, visibility 0.3s;
    overflow-y: auto;
    user-select: none; /* テキスト選択不可 */
}

#sidemenu.active {
    visibility: visible; /* フォーカス可 */
    left: 0;
}

#sidemenu header {
    color: var(--sidemenu-color-main);
    background-color: var(--sidemenu-color-header);
    font-size: 20px;
    line-height: 36px;
    padding-left: 10px;
}

#sidemenu .panel {
    margin: 12px 6px 6px;
}

#sidemenu .panel-title,
#sidemenu a {
    color: var(--sidemenu-color-text);
    font-size: 16px;
}

#sidemenu .panel-title {
    font-weight: bold;
}

/* サイドバー：展開 */
#sidemenuCollapse {
    margin-right: 10px;
    padding: 8px 10px;
    height: 36px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    border-color: #333;
    border-radius: 4px;
}

#sidemenuCollapse:focus {
    outline: 0;
}

#sidemenuCollapse:hover {
    background-color: #555;
}

#sidemenuCollapse .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: #fff;
}

#sidemenuCollapse .icon-bar + .icon-bar {
    margin-top: 4px;
}

/* サイドバー：閉じる */
#sidemenuDismiss {
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    position: absolute;
    top: 1px;
    right: 7px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.4em;
    color: var(--sidemenu-color-main);
}

#sidemenuDismiss:hover {
    background: var(--sidemenu-color-main);
    color: var(--sidemenu-color-header);
}

/* サイドバー：オーバーレイ */
#sidemenuOverlay {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--sidemenu-zindex-overlay);
    opacity: 0;
    /*transition: opacity 0.5s ease-in-out;*/ /* display:none はアニメーションが効かない*/
}

#sidemenuOverlay.active {
    display: block;
    opacity: 1;
}

/* サイドバー：本文スクロールバー制御 */
.sidemenu-open {
    overflow: hidden;
}

/* サイドバー：アクティブ項目 */
#sidemenu .list-group-item-active {
    position: relative;
}

#sidemenu .list-group-item-active:before {
    content: '\f054';
    font-family: FontAwesome;
    font-size: 0.9em;
    position: absolute;
    left: 3px;
}

#sidemenu .list-group-item-active:after {
    content: '\f053';
    font-family: FontAwesome;
    font-size: 0.9em;
    position: absolute;
    right: 3px;
}

/*======================================================================================*/

/* ファイルアップロード */
input[type="file"] {
    width: 600px;
    max-width: 600px;
}

/* アップロードの結果メッセージ */
.result-message {
    background-color: #fff;
    min-height: 200px;
    max-height: 340px;
    overflow-y: scroll;
    max-width: 600px;
}

.result-message-success {
    color: green;
}

.result-message-warn {
    color: blue;
}

.result-message-error {
    color: red;
}

/* 検証エラー時のスタイル */
.validation-summary-errors {
    padding: 6px;
    color: #B94A48;
    background-color: #ffeeee;
    border: 1px solid #e80c4d;
    border-radius: 4px;
    margin-bottom: 10px;
}

.validation-summary-errors > span {
    font-weight: 700;
    display: block;
    width: 100%;
    position: relative;
    cursor: pointer;
}

.validation-summary-errors > span:hover {
    text-decoration: underline;
}

.validation-summary-errors > span:after {
    content: "\f067";
    font-family: FontAwesome;
    position: absolute;
    right: 5px;
}

.validation-summary-errors > span[aria-expanded="true"]:after {
    content: "\f068";
    font-family: FontAwesome;
}

.validation-summary-errors > ul {
    overflow-y: auto;
    max-height: 70px;
    margin-bottom: 0;
}

.input-validation-error {
    border: 1px solid #e80c4d;
    background-color: #ffeeee;
}

.input-validation-error + .input-group-addon {
    border-color: #e80c4d;
}

/* スマホサイズだとエディタから離れてしまうので対策
   ※inputのmax-widthを指定しているのが原因
*/
.input-group-addon {
    width: initial;
}

/* 文字付きの罫線 */
hr.hr-text {
    margin-top: 20px;
    margin-bottom: 10px;
    border-top: 1px solid #eeeeee;
    height: 1em;
    text-align: left;
    overflow: visible;
}

hr.hr-text::after {
    content: attr(data-content);
    color: #777;
    font-weight: 700;
    background: #fff;
    display: inline-block;
    height: 2em;
    line-height: 2em;
    position: relative;
    top: -1em;
    padding: 0 1em;
    margin-left: 1em;
}

/* 範囲入力 */
.input-range::after {
    content: '～';
    margin-left: 4px;
    margin-right: 4px;
}

/* 入力エリアフォーカス時の背景色 */
input:focus,
select:focus,
textarea:focus {
    background-color: #fff8dc;
}

/* ヘッダー部のレイアウト */
.header-flex-parent {
    display: flex;
}

.header-flex-parent .child-left {
    margin-right: 7px;
}

.header-flex-parent .child-center {
    width: 100%;
    margin-right: auto;
}

.header-flex-parent .text-ellipsis {
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.header-flex-parent .text-adjust-margin {
    margin-top: 7px;
}

.header-flex-parent .child-right {
    margin-left: 7px;
}

/* フォームのレイアウト */

.table-info {
    margin-bottom: 6px;
}

.form-horizontal + .table-info {
    margin-top: -10px;
}

/* 垂直方向のレイアウト */
html,
body,
.body-content,
.vertical-form,
.vertical-container {
    height: 100%;
}

.vertical-container {
    display: flex;
    flex-direction: column;
    width: fit-content;
    min-width: calc(1000px - 30px); /* .body-contentのpaddingを引く */
    max-width: 100%;
}

.vertical-main {
    flex: 1;
    min-height: 200px;
    overflow: auto;
}

.vertical-tail-space {
    margin-bottom: 46px;
}

/* テーブルのレイアウト */
.table-scroll table {
    min-width: calc(1000px - 30px); /* .body-contentのpaddingを引く */
    margin-bottom: 0;
}

.table-scroll thead,
.table-scroll tfoot {
    position: sticky;
    background-color: #eee;
    box-shadow: 0 0 0 1px #ddd;
    z-index: 10;
}

.table-scroll thead {
    top: 0;
}

.table-scroll tfoot {
    bottom: 0;
}

/* テーブルのソート可能ヘッダー */
.table div[data-sort-column] {
    cursor: pointer;
    width: 100%;
    position: relative;
    padding-right: 16px;
    user-select: none;
}

.table div[data-sort-column][data-sort-order]:after {
    content: "\f0dc";
    font-family: FontAwesome;
    position: absolute;
    right: 0;
    color: #aaa;
}

.table div[data-sort-column][data-sort-order=asc]:after {
    content: "\f0de";
    color: #333;
}

.table div[data-sort-column][data-sort-order=desc]:after {
    content: "\f0dd";
    color: #333;
}

/* テーブルのエディタレイアウト */
.table .input-cell-text {
    padding: 4px;
}

.table .input-cell-text .form-control {
    padding: 4px 6px;
    height: 30px;
}

.table .input-cell-text .input-group-addon,
.table .input-cell-text .btn {
    padding: 4px 8px;
}

.table input[type=checkbox] {
    transform: scale(1.3);
}

/* 余白調整用 */
.space-tail {
    height: 46px;
}

/*======================================================================================*/

.w20 {
    width: 20px !important;
    max-width: 20px;
}

.w30 {
    width: 30px !important;
    max-width: 30px;
}

.w40 {
    width: 40px !important;
    max-width: 40px;
}

.w50 {
    width: 50px !important;
    max-width: 50px;
}

.w60 {
    width: 60px !important;
    max-width: 60px;
}

.w70 {
    width: 70px !important;
    max-width: 70px;
}

.w80 {
    width: 80px !important;
    max-width: 80px;
}

.w90 {
    width: 90px !important;
    max-width: 90px;
}

.w100 {
    width: 100px !important;
    max-width: 100px;
}

.w110 {
    width: 110px !important;
    max-width: 110px;
}

.w120 {
    width: 120px !important;
    max-width: 120px;
}

.w130 {
    width: 130px !important;
    max-width: 130px;
}

.w140 {
    width: 140px !important;
    max-width: 140px;
}

.w150 {
    width: 150px !important;
    max-width: 150px;
}

.w200 {
    width: 200px !important;
    max-width: 200px;
}

.w210 {
    width: 210px !important;
    max-width: 210px;
}

.w220 {
    width: 220px !important;
    max-width: 220px;
}

.w230 {
    width: 230px !important;
    max-width: 230px;
}

.w240 {
    width: 240px !important;
    max-width: 240px;
}

.w250 {
    width: 250px !important;
    max-width: 250px;
}

.w300 {
    width: 300px !important;
    max-width: 300px;
}

.w350 {
    width: 350px !important;
    max-width: 350px;
}

.w400 {
    width: 400px !important;
    max-width: 400px;
}

/*======================================================================================*/

.color-blue {
    color: #0d6efd;
}

.color-indigo {
    color: #6610f2;
}

.color-purple {
    color: #6f42c1;
}

.color-pink {
    color: #d63384;
}

.color-red {
    color: #dc3545;
}

.color-orange {
    color: #fd7e14;
}

.color-yellow {
    color: #ffc107;
}

.color-green {
    color: #198754;
}

.color-teal {
    color: #20c997;
}

.color-cyan {
    color: #0dcaf0;
}

/*======================================================================================*/

/* Bootbox モーダルダイアログ */
.bootbox .modal-title {
    font-weight: 700;
}

.bootbox .modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 180px);
}

@media screen {
    .bootbox .modal-dialog {
        width: 600px;
        margin: 30px auto;
    }

    .bootbox .modal-lg {
        width: 900px;
    }
}

/* Select2 */
.select2-container .select2-selection:focus,
.select2-container .select2-search__field:focus {
    background-color: #fff8dc !important;
}

.select2-container .select2-results > .select2-results__options {
    max-height: 320px;
    overflow-y: auto;
}

.input-validation-error ~ .select2 .select2-selection {
    /* 検証エラー */
    border: 1px solid #e80c4d;
    background-color: #ffeeee;
}

/* CKEditor */
.input-validation-error ~ #cke_Body {
    /* 検証エラー */
    border: 1px solid #e80c4d;
}

