body {
    font-size: 14px;
}

.invalid-feedback {
    font-size: 14px;
}

.form-control {
    font-size: 14px;
}

.has-error .select2-selection {
    border-color: rgb(185, 74, 72) !important;
}

select.erase-arrow {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.nav-tabs {
    border-bottom: none;
}
.nav-tabs .nav-link{
    color: #777;
    text-decoration: none;
    background-color: transparent;
    font-size: 1.25rem;
    padding: 0.5rem 1.25rem;
}
@media screen and (max-width: 768px) {
    .nav-tabs .nav-link{
        padding: 0.5rem 0.7rem;
    }
}
.main-footer {
    padding: 0.5rem 1rem;
}
footer .left-col {
    float: left;
    text-align: left;
}
footer .right-col {
    float: right;
    text-align: right;
}

.text-error {
    color: #dc3545!important;
}
.text-link {
    color: #343a40;
    text-decoration: underline;
}
.text-underline {
    text-decoration: underline;
}
.text-15rem {
    font-size: 1.5rem;
}

.row-disabled {
    background-color: #d2d2d2;
}
.row-error {
    background-color: #ffc5cb;
}
.row-warning {
    background-color: #f9f5aa;
}
.row-success {
    background-color: #caf3d0;
}

.custom-file-input {
    height: 100%;
}
.custom-file-input.form-control:disabled {
    opacity: 0;
}

.approval-list th {
    width: 20%;
}
.approval-list th.type,
.approval-list th.state
{
    width: 10%;
}

/* ie対応 */
select.erase-arrow::-ms-expand {
  display: none;
}

/* 書類一覧 */
.document-index .form-group.row span{
    line-height: 30px;
}
.document-index .form-control.amount-from,
.document-index .form-control.amount-to{
    display: inline-block;
    width: 94%;
    margin-bottom: 10px
}

/* 書類登録 */
.document-edit .small-container {
    margin-right: -30px;
}
.document-edit .small-box {
    margin-right: 30px;
    text-align: center;
}
.document-edit .small-box h3{
    font-size: 1.2rem;
    margin: 10px 0;
}
.document-edit .small-box .icon > i {
    top: 6px;
    right: -36px;
    font-size: 50px;
}
.document-edit .form-check {
    display: inline-block;
    margin-right: 30px;
}
.document-edit .custom-file {
    height: calc(4.25rem + 2px);
    margin-bottom: 3px;
}
.document-edit .custom-file-label {
    height: calc(4.25rem + 2px);
    line-height: 3.5rem;
}
.document-edit .custom-file-label::after {
    content: "\30D5\30A1\30A4\30EB\9078\629E"; /*  "ファイル選択"; */
    height: 4.25rem;
    line-height: 3.5rem;
}
@media (max-width: 992px) {
    .document-edit .small-box {
        margin-bottom: 30px;
    }
    .document-edit .small-box > .inner {
        padding: 4px;
    }
    .document-edit .small-box .icon{
        display: block;
    }
    .document-edit .small-box .icon > i {
        top: 41px;
        right: calc(50% - 12px);
        font-size: 50px;
    }
    .document-edit .small-box .icon > i.fa-angle-right:before {
        content: "\f107";
    }
}

/* PDFプレビュー */
.img_preview{
    max-height: 800px;
    overflow: scroll;
}
.document_preview{
    max-height: 1024px;
    overflow: scroll;
}

/* 書類CSV一括登録 */
.temp-document-index table td.preview-col {
    text-align: center;
    vertical-align: middle;
}
.temp-document-index .fa-info-circle {
    color: #ffffff;
    font-size: 0.8rem;
    opacity: 0.8;
}
.temp-document-index table td.preview-col i {
    font-size: 1.5rem;
}
.temp-document .custom-file,
.csv-upload .custom-file {
    height: calc(4.25rem + 2px);
    margin-bottom: 3px;
}
.temp-document .custom-file-label,
.csv-upload .custom-file-label {
    height: calc(4.25rem + 2px);
    line-height: 3.5rem;
}
.temp-document .custom-file-label::after,
.csv-upload .custom-file-label::after {
    content: "\30D5\30A1\30A4\30EB\9078\629E"; /*  "ファイル選択"; */
    height: 4.25rem;
    line-height: 3.5rem;
}

/* bootstrap tooltip */
.bs-tooltip-top .arrow::before {
    border-top-color: #dc3545;
}
.tooltip-inner {
    background-color: #dc3545;
}

/* csvアップロード注意事項 */
.task-alert-area {
    background-color: #ffbec1;
    border:1px solid #dc3545;
}
.task-alert-area h6 {
    font-weight: bold;
}
.task-alert-area .task-alert-detail ul {
    margin-bottom: 0;
    list-style: none;
    margin-block-start: 0.25em;
    padding-inline-start: 10px;
}
.task-alert-area .task-alert-detail ul li{
    margin-right: 20px;
}

/* タスクキュー結果表示用 */
.task-result-area {
    background-color: #fff6de;
    border:1px solid #ffc107;
}
.task-result-area h6 {
    font-weight: bold;
}
.task-result-area .task-process-time span {
    font-size: 0.9rem;
    margin-right: 20px;
}
.task-result-area .task-result-detail p {
    margin-bottom: 0.25rem;
}
.task-result-area .task-result-detail span {
    font-size: 1rem;
    margin-right: 20px;
}
.task-result-area .task-result-detail ul {
    margin-bottom: 0;
    list-style: none;
    margin-block-start: 0.25em;
    padding-inline-start: 10px;
}
.task-result-area .task-result-detail ul li{
    margin-right: 20px;
}
.task-result-area .task-result-detail .error-message{
    font-size: 0.9rem;
}
.task-result-area .task-result-detail .error-message span{
    font-size: 0.9rem;
    text-decoration: underline;
}

/* 電子契約詳細用 */
.econtract-detail h4,
.econtract-detail h5,
.econtract-detail h6{
    font-weight: bold;
}
.econtract-detail table{
    border: 1px solid rgba(0,0,0,.1);
}
.econtract-detail table tr{
    border: 1px solid rgba(0,0,0,.1);
}
.econtract-detail table tr th,
.econtract-detail table tr td{
    border-right: 1px solid rgba(0,0,0,.1);
    padding: 10px 10px;
}
.econtract-detail table tr th{
    background-color: #f4f6f9;
}
.econtract-detail table tr td{
    text-align: left;
}
.econtract-detail {
    padding: 15px;
}
.econtract-detail h4{
    text-align: left;
}
.econtract-detail .btn-download{
    position: absolute;
    top: 0;
    right: 0;
}
.econtract-detail ul.preview-attributes {
    padding-right: 20px;
    padding-left: 0;
}
.econtract-detail ul.preview-attributes li{
    padding: 15px 0 30px 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
    padding-inline-start: 0;
    list-style-type: none;
    line-height: 1rem;
}
.econtract-detail ul.preview-attributes li:first-child{
    border-top: 1px solid rgba(0,0,0,.1);
}
.econtract-detail .md-pdf-view{
    min-height: 606px;
}
.econtract-detail .action-buttons form{
    display: inline-block;
}

@media screen and (max-width: 768px) {
    .econtract-detail {
        padding: 0;
    }
    .econtract-detail ul.preview-attributes {
        padding-right: 0;
        padding-left: 0;
    }
    .econtract-detail .btn-download{
        position: relative;
        float: right;
    }
    .econtract-detail .md-pdf-view{
        height: 500px;
    }
}

/* remodal用 */
.remodal-container h4,
.remodal-container h5,
.remodal-container h6{
    font-weight: bold;
}
.remodal-container table{
    border: 1px solid rgba(0,0,0,.1);
}
.remodal-container table tr{
    border: 1px solid rgba(0,0,0,.1);
}
.remodal-container table tr th,
.remodal-container table tr td{
    border-right: 1px solid rgba(0,0,0,.1);
    padding: 10px 10px;
}
.remodal-container table tr th{
    background-color: #f4f6f9;
}
.remodal-container table tr td{
    text-align: left;
}
.remodal-container {
    padding: 15px;
}
.remodal-container h4{
    text-align: left;
}
.remodal-container .btn-download{
    position: absolute;
    top: 0;
    right: 0;
}
.remodal-container ul.preview-attributes {
    padding-right: 20px;
    padding-left: 0;
 }
.remodal-container ul.preview-attributes li{
    padding: 15px 0 30px 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
    padding-inline-start: 0;
    list-style-type: none;
    line-height: 1rem;
}
.remodal-container ul.preview-attributes li:first-child{
    border-top: 1px solid rgba(0,0,0,.1);
}
.remodal-container .md-pdf-view{
    min-height: 606px;
}
.remodal-container .action-buttons form{
    display: inline-block;
}
.remodal-container .download-area {
    position: absolute;
    right: 0;
    top: -60px;
}
@media screen and (max-width: 768px) {
    .remodal {
        padding: 35px 20px 35px 20px;
    }
    .remodal-container {
        padding: 0;
    }
    .remodal-container ul.preview-attributes {
        padding-right: 0;
        padding-left: 0;
    }
    .remodal-container .btn-download{
        position: relative;
        float: right;
    }
    .remodal-container .md-pdf-view{
        height: 500px;
    }
    .remodal-container .download-area {
        position: initial;
    }
}

/* フォルダツリー用 */
.tree-area ul, .folder_tree_area ul {
  list-style-type: none;
  padding-inline-start: 15px;
}

.button-area .edit-button, li.reaf > li, li.contract > ul {
    display: none;
}
li.expand > ul {
    display: block;
}

.tree {
    position: relative;
    background: white;
    padding: 10px 10px;

    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
}

.folder_tree_area .tree {
    font-size: 1rem;
}

.tree .fa-folder-plus, .tree .fa-folder-minus,
.tree .fa-folder, .tree .fa-folder-open,
.tree .fa-minus-square, .tree .fa-plus-square, .tree .fa-square,
.tree ul a, .folder_name, .tree .organizer_name, .classificate_name
{
    cursor: pointer;
}

.tree .fa-folder-plus, .tree .fa-folder-minus,
.tree .fa-folder, .tree .fa-folder-open
{
    color: #007bff;
}

.tree-area .tree ul {
    padding-left: 10px;
    list-style: none;
}
.tree-area .tree ul li {
    position: relative;
    padding-top: 8px;
    padding-bottom: 5px;
    padding-left: 22px;
    box-sizing: border-box;
}
.tree-area .tree ul li i{
    color: #343a40;
    margin-right: 3px;
}
.tree-area .tree ul li:before {
    position: absolute;
    top: 22px;
    left: 0px;
    width: 17px;
    height: 1px;
    margin: auto;
    content: '';
    background-color: #666;
}
.tree-area .tree ul li:after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0px;
    width: 1px;
    height: 100%;
    content: '';
    background-color: #666;
}
.tree-area .tree ul li:last-child:after {
    height: 22px;
}

.folder_tree_area .tree ul {
    padding-left: 10px;
    list-style: none;
}
.folder_tree_area .tree ul li {
    position: relative;
    padding-top: 8px;
    padding-bottom: 5px;
    padding-left: 22px;
    box-sizing: border-box;
}
.folder_tree_area .tree ul li:before {
    position: absolute;
    top: 20px;
    left: -3px;
    width: 20px;
    height: 1px;
    margin: auto;
    content: '';
    background-color: #666;
}
.folder_tree_area .tree ul li:after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -3px;
    width: 1px;
    height: 100%;
    content: '';
    background-color: #666;
}
.folder_tree_area .tree ul li:last-child:after {
    height: 20px;
}

.tree ul a:hover {
    text-decoration: none;
}

.tree-area, .folder_tree_area {
    white-space:nowrap;
    overflow-x:scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.edit-eria {
    padding: 0;
}

.input-area .all-disabled, .input-area .input-data, .edit-eria .disabled {
    pointer-events: none;
}

.input-area, .input-area .all-disabled, .input-area .input-data, .edit-eria .parent-folder,
.edit-eria .parent-organizer {
    background: #f2f2f2;
}

select.js-parent-folder-name{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.folder_tree_area .folder_name {
    color: #000;
}

.policy-unit {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    font-size: 24px;
}

.folder_tree_area .cannot-access {
    cursor: not-allowed;
}

.list-editor .invalid-feedback {
    font-size: 12px;
}
.list-editor .disabled {
    background-color: #e9ecef;
}

#pdf-canvas {
    position: absolute;
    border: 1px solid rgba(0,0,0,0.2);
    box-sizing: border-box;
}
#fabric-canvas {
    position: absolute;
    border: 1px solid rgba(0,0,0,0.2);
    box-sizing: border-box;
    overflow: hidden;
    margin-top:1px;
    margin-left:1px;
}
#canvas-div {
    position: relative;
}

/* PDF注釈表示用スタイル */
.pdf-annotation {
    position: absolute;
    z-index: 1000;
    pointer-events: auto;
}

.file-attachment-annotation {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.file-attachment-annotation:hover {
    opacity: 0.8;
}
#ajax_upload_multi_files .custom-file {
    margin-bottom: 10px;
}
#ajax_upload_multi_files .custom-file-input {
    width: 80%;
    float: left;
    display: inline-block;
}
#ajax_upload_multi_files .custom-file-label {
    width: 82%;
    display: inline-block;
}
#ajax_upload_multi_files .custom-file .btn-delete-file {
    margin-left: 10px;
    display: inline-block;
}

.card-footer .template-btn {
    padding-top: 4px;
}

.template_name_header {
    width: 40.8%;
}
.template_code_header {
    width: 40.8%;
}
.template_reference-btn {
    margin: 6px 2px 0 8px;
    width: 94%;
}

.template-reference-btn {
    padding: 0.46rem 12px 0.46rem 12px;
}

pre.text-left {
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    white-space: pre-wrap;
    font-size: 14px;
    padding: 0 0 0 0.75rem;
    margin-bottom: 0px;
}

li pre.text-left {
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    white-space: pre-wrap;
    font-size: 14px;
    padding: 0 0 0 0.75rem;
    margin-bottom: -15px;
}
.nav .nav-treeview {
    margin-left: 15px;
}
/* 書類任意項目登録 */
.any-item-container {
    width: 75%;
    float: left;
    padding-right: 10px;
}
.any-btn-container {
    width: 25%;
    float: left;
}
.any-add-btn-container {
    width: 50%;
    margin-left: 34%;
}
.any-add-btn {
    width: 120px;
}
.any-add-btn-plus {
    width: 100%;
}
.any-item-add-title {
    padding-left: 1.25rem;
    display: inline-block;
    width: 29%;
    word-break: break-all;
    overflow-wrap: break-word;
}
.any-item-add-container {
    margin-bottom: 10px;
    display: inline-block;
    width: 70%;
}
.any-item-document-title-container {
    width: 25%;
    float: left;
    padding-top: 8px;
    padding-left: 20px;
}
.any-item-document-item-container {
    float: left;
    width: 75%;
    margin-bottom: 10px;
}
.any-item-document-title-show {
    display: flow-root;
    margin-left: 14px;
}
.any-item-document-item-show {
    height: 16px;
}
.any-item-document-item-show-top {
    margin-top: 10px;
}


.any-item-edit-title {
    padding-left: 1.25rem;
    display: inline-block;
    width: 20%;
    word-break: break-all;
    overflow-wrap: break-word;
}
.any-item-edit-container {
    margin-bottom: 10px;
    display: inline-block;
    width: 65%;
}

.pdf-preview-btn {
    text-align: left;
    float: right;
}

.pdf-preview-wording {
    margin-top: 10px;
}

.approver-btn-destroy {
    margin-top: 27px;
}

.upload-multi-files-disabled {
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
}

#ajax_upload_multi_attached_files .custom-file {
    margin-bottom: 10px;
}
#ajax_upload_multi_attached_files .custom-file-input {
    width: 80%;
    float: left;
    display: inline-block;
}
#ajax_upload_multi_attached_files .custom-file-label {
    width: 82%;
    display: inline-block;
}
#ajax_upload_multi_attached_files .custom-file .btn-delete-file {
    margin-left: 10px;
    display: inline-block;
}


.upload_multi_attached_files_display{
    display:none;
}




.attached-btn-primary {
    color: #fff;
    background-color: #ff0000;
    border-color: #ff0000;
    box-shadow: none;
}

.attached-btn-primary:hover {
    color: #fff;
    background-color: #d90000;
    border-color: #d90000;
}

.attached-btn-primary:focus, .attached-btn-primary.focus {
    color: #fff;
    background-color: #d90000;
    border-color: #d90000;
    box-shadow: 0 0 0 0 rgba(38, 143, 255, 0.5);
}

.attached-btn-primary.disabled, .attached-btn-primary:disabled {
    color: #fff;
    background-color: #ff0000;
    border-color: #ff0000;
}

.attached-btn-primary:not(:disabled):not(.disabled):active, .attached-btn-primary:not(:disabled):not(.disabled).active,
.show > .attached-btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #cc0000;
    border-color: #cc0000;
}

.attached-btn-primary:not(:disabled):not(.disabled):active:focus, .attached-btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .attached-btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0 rgba(255, 38, 38, 0.5);
}

/* 書類管理検索一覧スクロールバーの設定 */
.table-scrollbar::-webkit-scrollbar,
.top-scrollbar::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-scrollbar::-webkit-scrollbar-thumb,
.top-scrollbar::-webkit-scrollbar-thumb {
    --bg-opacity: 1;
    background-color: rgb(210, 210, 210);
}

.table-scrollbar {
    overflow-y: auto;
}

.top-scrollbar {
    overflow-y: hidden;
}

.top-scrollbar .inner {
    height: 1px;
}

/* 書類管理検索一覧ヘッダーの固定 */
.table-scrollbar thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #ececec;
}

/* 書類分類一覧画面の任意項目セル文字列折り返し */
.document-type-index-table .any-item-cell {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 200px;
}

.inactive {
    pointer-events: none;
    cursor: default;
    background-color: #ffffff;
}

.inactive p {
    color: #dedede;
}

.nav-link.inactive {
    pointer-events: none;
    cursor: default;
    background-color: #ffffff;
}

.nav-link.inactive p {
    color: #dedede;
}

.small-box.small-box-short > .inner{
    max-height: 90px;
}

.inactive2 {
    pointer-events: none;
    cursor: default;
    background-color: #ffffff;
}

.inactive2 .small-box {
    background-color: #dedede !important; /* 薄いグレーの背景に変更 */
}

/* テキストの色も変更 */
.inactive2 .text-lightblue, .inactive2 p {
    color: #a6a6a6; /* 薄いグレーのテキストに変更 */
}

/* フッターテキストの色も変更 */
.inactive2 .small-box-footer {
    color: #a6a6a6;
}

/* 承認者オブジェクトハイライト用スタイル */
.canvas-container {
    border: 1px solid #ccc;
    margin: 10px 0;
}

/* ツールチップの背景色を黒に変更 */
.tooltip-inner {
    background-color: #000 !important;
    color: #fff !important;
}

.tooltip.bs-tooltip-top .arrow::before {
    border-top-color: #000 !important;
}

.tooltip.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #000 !important;
}

.tooltip.bs-tooltip-left .arrow::before {
    border-left-color: #000 !important;
}

.tooltip.bs-tooltip-right .arrow::before {
    border-right-color: #000 !important;
}

/* 承認者テーブルヘッダー背景色 */
.approver-table-header-row {
    background-color: #f4f6f9;
}

/* ハイライト表示のツールチップアイコン */
.approver-highlight-tooltip {
    cursor: pointer;
    font-size: 0.8em;
}

/* 他社リンク非表示用 */
.d-none {
    display: none !important;
}

/* Destinations用のカスタムスタイル */

/* ストレージボタン用のカスタムスタイル */
.btn-storage {
    background-color: #0C3581 !important;
    border-color: #0C3581 !important;
    color: white !important;
}

.btn-storage:hover {
    background-color: #0a2b6b !important;
    border-color: #0a2b6b !important;
    color: white !important;
}

.btn-storage:focus {
    background-color: #0a2b6b !important;
    border-color: #0a2b6b !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(12, 53, 129, 0.25) !important;
}

.btn-storage:active {
    background-color: #082155 !important;
    border-color: #082155 !important;
}

/* e-bookACボタン用のカスタムスタイル */
.btn-storage-ebookac {
    background-color: #75BB29 !important;
    border-color: #75BB29 !important;
    color: white !important;
}

.btn-storage-ebookac:hover {
    background-color: #5a8f1f !important;
    border-color: #5a8f1f !important;
    color: white !important;
}

.btn-storage-ebookac:focus {
    background-color: #5a8f1f !important;
    border-color: #5a8f1f !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(117, 187, 41, 0.25) !important;
}

.btn-storage-ebookac:active {
    background-color: #4a751a !important;
    border-color: #4a751a !important;
}

/* ボタングリッドレイアウト */
.btn-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 300px;
    margin-left: auto;
}

.btn-grid-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-grid-column-left {
    align-items: flex-end;
}

.btn-grid-button {
    width: 170px;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 8px 12px;
}

.btn-grid-button-small {
    width: 120px;
}

.btn-grid-button-print {
    width: 50px;
}

.btn-grid-icon {
    margin-right: 8px;
    flex-shrink: 0;
}

.btn-grid-text {
    font-size: 12px;
    line-height: 1.2;
}
