@charset "utf-8";

/* ベースのスタイル START-------------------------------------------------------------------- */
:root {
    --btn-gap: 15px;
    --section-gap: 15px;
    --form-inline-input-width: 190px;
    --table-tr-hover-bg-color: rgba(87, 142, 133, .3);
    --table-tr-odd-bg-color: rgba(0, 0, 0, .04);
    --table-border-color: #dee2e6;
}

*,
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
}

html {
    /* ベースの文字サイズ */
    font-size: 14px;
}

/* 文字サイズ「見出し」 */
h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.625rem;
}

h5,
#selectedYearMonth {
    font-size: 1.5rem;
}

h6 {
    font-size: 1.375rem;
}

/* 文字サイズ「大」 */
main > h1.title,
.modal-title,
.inner-header,
.section > .title,
.help-icon,
.text-lg {
    font-size: 1.25rem;
}

/* 文字サイズ「中」 */
input,
input.form-control,
label,
textarea,
select,
select.form-control,
option,
a,
a.page-link,
span.page-link,
.btn,
.table tbody td,
.select2-container--bootstrap .select2-selection,
.select2-container--bootstrap .select2-search--dropdown .select2-search__field,
.select2-container--bootstrap .select2-results__option,
.text-md {
    font-size: 1rem;
}

/* 文字サイズ「小」 */
small,
.small,
.sc_data .timeline span.timeline-subtitle,
.text-sm {
    font-size: 0.875rem;
}

label {
    font-weight: normal;
    margin-bottom: 0.3rem;
    padding: 0;
}
label.required-label::after,
span.required-label::after {
    background-color: #c20a0a;
    width: 5px;
    height: 5px;
    margin-left: 3px;
    vertical-align: super;
    content: "";
    display: inline-block;
    border-radius: 8px;
}

input[type="file"],
div.custom-file .custom-file-label {
    cursor: pointer;
}

textarea {
    /* テキストボックスと同じ高さ */
    height: 33.5px;
}

.custom-checkbox label,
.custom-radio label {
    font-weight: normal;
}

th {
    font-weight: normal;
}

.table {
    margin-bottom: 0;
}

.table td, .table th {
    border-top: 0;
}

.table thead {
    border-top: 0.5px solid var(--table-border-color);
}

.table tbody {
    border-bottom: 0.5px solid var(--table-border-color);
}

.table tbody.can-select-tbody {
    cursor: pointer;
}

.table tbody.can-select-tbody tr {
    position: relative;
}

.table tbody.can-select-tbody tr a {
    position: absolute;
    display: table;
    bottom: 0%;
    width: 99.5%;
    height: 99.5%;
    text-decoration: none;
    color: #212529;
    font-size: 0.9rem;
}

.table tbody.can-select-tbody tr a span {
    display: table-cell;
    vertical-align: middle;
}

.table tbody tr:nth-of-type(odd) {
    background-color: var(--table-tr-odd-bg-color);
}

.table:not(.hover-off) tbody tr:not(.hover-off):hover {
    background-color: var(--table-tr-hover-bg-color);
}

.table thead th, .table tbody td {
    padding: 0.2rem;
    vertical-align: middle;
    height: 40px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.btn {
    color: #fff !important;
}

.btn-secondary {
    background-color: #7f96a6 !important;
    border-color: #7f96a6 !important;
}

.btn-secondary:hover,
.btn-secondary:active {
    background-color: #536672 !important;
    border-color: #536672 !important;
}

.btn-success {
    background-color: #12bca8 !important;
    border-color: #12bca8 !important;
}

.btn-success:hover,
.btn-success:active {
    background-color: #0e8d7e !important;
    border-color: #0e8d7e !important;
}

.btn-excel {
    background-color: #107c41 !important;
    border-color: #107c41 !important;
}

.btn-excel:not(:disabled):hover,
.btn-excel:not(:disabled):active {
    background-color: #0c5c30 !important;
    border-color: #0c5c30 !important;
}

.btn-pdf {
    background-color: #cd1516 !important;
    border-color: #cd1516 !important;
}

.btn-pdf:not(:disabled):hover,
.btn-pdf:not(:disabled):active {
    background-color: #ad1213 !important;
    border-color: #ad1213 !important;
}

.btn-icon {
    background-color: transparent;
    border: none;
    color: #212529 !important;
    cursor: pointer;
}

.currency {
    text-align: right;
}

.toggle-group .btn-sm.toggle-on,
.toggle-group .btn-sm.toggle-off {
    padding: 0.2rem 0.5rem;
}

.form-control {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
}

textarea.form-control {
    height: 115px;
}

.custom-control-label::before,
.custom-control-label::after {
    top: 0.2rem;
}

.pagination {
    justify-content: center;
}

.page-start,
.page-end {
    width: 65px;
}

.page-previous,
.page-next {
    width: 55px;
}

.page-previous {
    border-left: unset;
    border-top-left-radius: unset !important;
    border-bottom-left-radius: unset !important;
}

.page-next {
    border-right: unset;
    border-top-right-radius: unset !important;
    border-bottom-right-radius: unset !important;
}

.form-inline {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, var(--form-inline-input-width)) auto;
}

.form-inline label {
    justify-content: start;
    margin-bottom: 0.3rem;
}

.form-inline > div:last-of-type {
    grid-column: -1;
    justify-self: end;
    padding-right: 0;
    margin-right: -15px;
}

a.nav-link[data-toggle="tab"] {
    width: 120px;
    text-align: center;
    cursor: pointer;
}

a.nav-link[data-toggle="tab"]:not(.active) {
    padding-bottom: 11px;
}

a.nav-link[data-toggle="tab"].active {
    border-top: 5px solid var(--primary-color);
}

.modal-header {
    padding: 0.5rem 0.8rem;
}

.modal-title {
    font-weight: bold;
    line-height: 1;
    position: relative;
    top: 2px;
}

.modal-footer {
    border-top: unset;
}

button, a.btn {
    margin-right: 0.25rem;
}

.align-end {
    float: right;
}

* button:last-child, a.btn:last-child {
    margin-right: 0;
}

/* input[type="number"]のボタン削除  */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    padding: 0 3px;
    -moz-appearance:textfield;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}
/* ベースのスタイル END-------------------------------------------------------------------- */

main > .title {
    font-weight: bold;
    border-bottom: 1px solid var(--table-border-color);
    padding: 5px 0;
    margin-top: -5px;
}

.not-auth-form {
    min-height: 200px;
    position: relative;
    padding-bottom: 60px;
    box-sizing: border-box;
}

footer.main-footer {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    height: 2rem;
    position: absolute;
    bottom: 0;
    display: table;
    table-layout: fixed;
}

footer.main-footer > small {
    display: table-cell;
    vertical-align: middle;
}

.not-auth-form-row {
    margin: auto;
    width: 40%;
    max-width: 600px;
}

.only-logo-header {
    /* ロゴ画像のダウンロード前後でガタつかせないため、高さを指定 */
    height: 111px;
}

.icon {
    width: 20px;
}

.date-picker-trigger,
.time-picker-from-trigger,
.time-picker-to-trigger {
    cursor: pointer;
}

.date-picker-trigger.disabled,
.time-picker-from-trigger.disabled,
.time-picker-to-trigger.disabled {
    cursor: default;
}

table th,
table tbody td,
.table th,
.table tbody td {
    font-size: 0.9rem;
}

#overlay {
    width: 100%;
    z-index: 9999;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    background-image: url("../../images/loader.gif");
    background-repeat: no-repeat;
    background-position: 50% 20vw;
    background-color: #F5F8FA;
    opacity: 0.4;
}

.select2-results__option:empty {
    height: 31.17px;
}

.select2-container--bootstrap .select2-selection {
    padding-left: 0.3rem;
}

select.form-control:not([size]):not([multiple]),
.select2-container--bootstrap .select2-selection--single {
    height: calc(1.5em + .75rem + 1.77px);
}

ul.select2-results__options.select2-results__options--nested li.select2-results__option {
    padding-left: 30px !important;
}

.select2-container--bootstrap.select2-container--disabled .select2-search__field,
.select2-container--bootstrap.select2-container--disabled .select2-selection {
    cursor: default;
}

.select2-container--bootstrap .select2-results>.select2-results__options {
    overflow-x: hidden;
}

/* モーダル内でjQuery UIのAutocompleteを表示させるため、モーダルのz-index+1している */
.ui-autocomplete {
    z-index: 1051;
}

.side-menu-item {
    color: #999;
}

.nav-link.active,
.side-menu-item.active {
    color: #fff;
    font-weight: bold;
}

.side-menu-item:hover,
.side-menu-item:focus {
    text-decoration: none;
    color: #fff;
}

.validation-tip {
    color: #f00;
    font-weight: normal;
    display: block;
    text-align: start;
    font-size: 0.9rem;
}

body > div.layout.grid-container {
    --sidebar-width-sm: 80px;
    --sidebar-width-lg: 200px;

    display: grid;
    grid-template-columns:
        [sidebar] minmax(var(--sidebar-width-sm), var(--sidebar-width-lg))
        [main-content] 1fr;
    grid-template-rows:
        [header] 50px
        [content] calc(100vh - 50px);
}

body > div.layout > header {
    grid-column: 1 / -1;
    grid-row: header;
}

body > div.layout > header,
body > div.layout > header nav.main-menu {
    min-height: 50px;
    max-height: 50px;
}

body > div.layout > nav.sidebar {
    grid-column: sidebar;
    grid-row: content;
    background-color: var(--sidebar-color);
    position: fixed;
    top: 50px;
    z-index: 99;
    min-width: var(--sidebar-width-sm);
    max-width: var(--sidebar-width-lg);
}

body > div.layout > nav.sidebar ul.side-menu {
    flex-flow: column;
    height: calc(100vh - 50px);
}

body > div.layout > main {
    grid-column: main-content;
    grid-row: content;
}

.list-header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    margin-bottom: 0.5rem;
}

.list-header-row .list-header-col-start {
    grid-column-start: 0;
}

.list-header-row .list-header-col-end {
    grid-column-start: -1;
}

/* 画面幅が575px以下の場合 */
@media screen and (max-width: 575px) {
    .form-group {
        width: 100%;
    }
}

/* 画面幅が768px以下の場合 */
@media screen and (max-width: 768px) {
    .form-inline {
        display: contents;
        width: inherit;
    }

    .form-inline .select2-container {
        width: 100%;
        max-width: 100%;
    }

    .form-inline > div {
        padding-right: 0;
        padding-left: 0;
    }

    .not-auth-form {
        margin: 0 15px;
    }

    .not-auth-form-row {
        width: 100%;
    }
}

/* 画面幅が1280px～769pxまでの場合 */
@media screen and (max-width: 1280px) and (min-width: 769px) {
    .form-inline {
        display: flex;
    }

    .form-inline > div:not(:last-of-type) {
        width: 190px;
    }

    .form-inline > div:last-of-type {
        margin-left: auto;
    }
}

/* 画面幅が576px以上の場合 */
@media screen and (max-width: 575px), (min-width: 576px) {
    body > div.layout.grid-container {
        grid-template-columns:
        [sidebar] var(--sidebar-width-sm)
        [main-content] 1fr;
    }

    body > div.layout > nav.sidebar {
        min-width: var(--sidebar-width-sm);
        max-width: var(--sidebar-width-sm);
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body > div.layout > nav.sidebar ul.side-menu li.nav-item {
        padding: 14px 0 16px 0;
        text-align: center;
        white-space: normal;
    }

    body > div.layout > nav.sidebar ul.side-menu li.nav-item a.nav-link {
        padding-right: 0;
        padding-left: 0;
    }

    body > div.layout > nav.sidebar ul.side-menu li.nav-item a.nav-link i {
        display: inline;
        width: unset;
    }

    a.side-menu-item > i {
        font-size: 2rem;
        display: block;
    }

    a.side-menu-item > span {
        font-size: 0.875rem;
        display: block;
    }
}

/* 画面幅が768px以上の場合 */
@media screen and (min-width: 768px) {
    body > div.layout.grid-container {
        grid-template-columns:
        [sidebar] var(--sidebar-width-lg)
        [main-content] 1fr;
    }

    body > div.layout > nav.sidebar {
        min-width: var(--sidebar-width-lg);
        max-width: var(--sidebar-width-lg);
        padding-right: inherit;
        padding-left: inherit;
    }

    body > div.layout > nav.sidebar ul.side-menu li.nav-item {
        text-align: inherit;
        padding: 14px 20px 16px 0;
        max-height: 50px;
    }

    body > div.layout > nav.sidebar ul.side-menu li.nav-item a.nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    body > div.layout > nav.sidebar ul.side-menu li.nav-item a.nav-link i {
        display: inline-block;
        width: 20px;
    }

    nav.sidebar .nav-item:not(:first-child) {
        padding-top: inherit;
    }

    a.side-menu-item > i {
        font-size: inherit;
        display: initial;
    }

    a.side-menu-item > span {
        font-size: inherit;
        display: initial;
    }

    .form-inline .select2-container {
        width: var(--form-inline-input-width);
        max-width: var(--form-inline-input-width);
    }
}

.uploaded-file-row:first-of-type {
    border-bottom: 1px solid #ced4da;
}

.uploaded-file-row {
    padding: 8px 0 5px 0;
    border-bottom: 1px solid #ced4da;
}

.uploaded-file-row .grid-container:not(.custom-file) {
    display: grid;
    grid-template-columns: 1fr max-content;
    column-gap: var(--btn-gap);
}

.uploaded-file-row .grid-container > *:not(.custom-file-label) {
    align-self: center;
    height: fit-content;
}

.uploaded-file-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.section > .title {
    border-bottom: 1px solid #ced4da;
    margin-bottom: 10px;
}

.section {
    margin-bottom: var(--section-gap);
}

.custom-control-inline {
    margin-right: .6rem;
}

.accordion-header {
    cursor: pointer;
}

.inner-scroll-section {
    height: calc(100% - 135px);
}

.inner-scroll-content {
    max-height: 100%;
}

.inner-scroll-table {
    border-collapse: separate;
    border-spacing: 0;
}

.inner-scroll-table thead {
    border-top: 0;
}

.inner-scroll-table th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 98;
    border-top: 0.5px solid var(--table-border-color);
}

/* 印刷時のスタイル */
@media print {
    body > div > header {
        display: none; !important;
    }
    body > div > nav > div {
        display: none; !important;
    }
    body > div.layout.grid-container {
        display: block; !important;
    }
}