/*************************************************************/
/* Base                                                      */
/*************************************************************/

html {
    font-size: 12px;
    background-color: #4c535b;
}

body {
    padding: 0;
    background-color: #4c535b;
    color: #000;
    font-family: "Meiryo UI", Meiryo, Helvetica, "Hiragino Kaku Gothic ProN", YuGothic, Osaka, "MS PGothic", sans-serif, "Font Awesome 5 Free";
}

/*************************************************************/
/* Extend                                                    */
/*************************************************************/

div:focus,
a:focus,
.btn:focus,
.page-link:focus,
.form-control:focus,
input[type="checkbox"]:focus,
select.custom-select:focus,
button.btn:focus,
button.close:focus {
    outline: solid 2px #f00;
    box-shadow: none;
}

.btn-primary {
    background-color: rgba(64,120,181,1);
    border-color: rgba(64,120,181,1);
}
.btn-primary:hover {
    background-color: rgba(18,101,168,1);
    border-color: rgba(18,101,168,1);
}
.btn-primary:focus {
    background-color: rgba(18,101,168,1);
    border-color: rgba(18,101,168,1);
}

textarea.form-control:focus, input.form-control:focus, select:focus, select option {
    background-color: #f7e99f;
}

.page-link:hover:not(:focus) {
    z-index: initial;
}

.bg-red{
    background-color: #f00;
    color: #fff;
}

.bg-red-fl{
    background-color: #d9534f;
    color: #fff;
}

.bg-orange{
    background-color: #faad09;
    color: #fff;
}

.bg-gray-light {
    background-color: #eee;
}

.bg-blue{
    background-color: #007bff;
    color: #fff;
}

.bg-blue-light {
    background-color: #DBE8F0;
}

.bg-green-fl {
    background-color: #37b437;
    color: white;
}

.bg-orange-fl {
    background-color: #FFC107;
    color: black;
}

.bg-green {
    background-color: #008000;
    color: white;
}

.bg-green-light {
    background-color: #DBF0DD;
}

.bg-green-dark {
    background-color:rgba(164, 197, 166, 0.644);
}

.border-gray-light {
    border-color: #dee2e6 !important;
}

.text-white {
    color : white;
}

.text-gray {
    color: #777;
}

hr {
    margin: 8px 0;
}

.name-holder {
    font-size: 0.8rem;
    width: 80px;
    overflow: hidden;
}
.side-item-name-holder {
    font-size: 0.8rem;
    width: 300px;
    overflow: hidden;
}
.item-name-holder {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.6;
    color: #495057;
    text-align: left;
    white-space: normal;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 1rem;
    width: 100%;
    min-height: 27px;
}

h5 {
    border-left: solid 3px #4c535b;
    padding: 2px 0 0 0.5rem;
    font-weight: bold;
}

.lh-tight {
    line-height:0.9rem;
}

.modal-backdrop {
    z-index: 999996;
}

.modal {
    z-index: 999997;
}

.ui-autocomplete {
    max-height: 218px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 999998;
}

table.table-parts-details>thead {
    background-color: rgba(0, 0, 0, .6);
}

table.table-parts-details>tbody {
    border-top-width: 0;
}

table.table-parts-details>tbody:nth-child(odd) {
    background-color: #eeeef2;
}

table.table-parts-details>thead>tr,
table.table-parts-details>tbody>tr {
    height: 36px;
}

table.table-parts-details>thead>tr>th {
    font-weight: normal;
    color: #fff;
}

.information {
    text-decoration: underline;
}

small, .small {
    font-size: 90%;
    font-weight: 400;
}

.dynamic-modal-content {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fcfcfc;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    padding: 0px;
    outline: 0;
}

.dynamic-modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

/*************************************************************/
/* Form                                                      */
/*************************************************************/

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance:textfield;
}

input:required,
select:required {
    box-shadow: none;
    outline: none;
    border-left: solid 2px #f00;
}

.form-check input[type="radio"] + div:focus {
    position: relative;
    z-index:9999;
}

textarea.form-control {
    min-height: 29px;
}

.form-check {
    margin: 0;
}

input[type="radio"] {
    /*
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: none;
    */
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

input[type="radio"] + div {
    height: 29px;
    border: solid 1px #bbb;
    border-radius: 5px;
    padding: 5px 10px;
    text-align: center;
    background-color: #fff;
    cursor: pointer;
}
input[type="radio"]:disabled + div {
    background-color: #e0e0e0;
    cursor: default;
}

input[type="radio"]:checked + div {
    background-color: #4c535b;
    color: #fff;
}
input[type="radio"]:focus + div {
    outline: solid 2px #f00;
    box-shadow: none;
}

.custom-file-input:lang(ja) ~ .custom-file-label::after {
    content: "参照";
}

/*************************************************************/
/* Header                                                    */
/*************************************************************/

div.container.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    padding: 0;
    z-index: 999996;
}

header div.logo {
    position: relative;
    width: 70px;
    height: 70px;
    border: solid 1px #a0a0a0;
    border-bottom: none;
    background-color: #5C6167;
    z-index: 1;
}

header div.logo img {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

header .account-info {
    color: #fff;
}

@media (max-width:991px) {
    header img.logo {
        width: 30px;
    }
    .side-item-name-holder {
        font-size: 0.8rem;
        width: 180px;
        overflow: hidden;
    }
}

@media (min-width:992px) {
    header {
        border-bottom: solid 1px #a0a0a0;
    }
    header .navbar {
        padding: 0;
        border: solid 1px #a0a0a0;
        border-bottom: none;
        border-left: none;
    }

    header .nav-item.box {
        border-right: solid 1px #a0a0a0;
        padding: 5px;
    }

    header .nav-item.cog {
        top: 0;
        bottom: 0;
        margin: auto 10px auto 20px;
    }

    header .navbar.sub-menu {
        min-height: 28px;
        max-height: 28px;
        background-color: #ddd;
    }
    header .navbar.sub-menu > .form-inline {
        flex-wrap: nowrap;
    }
    header .navbar.sub-menu .input-group {
        width: 180px;
    }
    header .navbar.sub-menu .sub-menu-list {
        display: flex;
        flex-wrap: wrap;
        overflow: auto;
        height: 27px;
        margin-left: 3px;
    }
    header .navbar.sub-menu .sub-menu-list > div {
        margin: 2px 3px 2px;
    }

    header .navbar.sub-menu .input-group,
    header .navbar.sub-menu .form-control,
    header .navbar.sub-menu button {
        height: 27px;
    }

    header .navbar.sub-menu button {
        padding-top: 4px;
    }

    header .navbar.sub-menu button {
        width: 32px;
    }

    header .account-info {
        width: 125px;
    }
}

header a,header a:hover {
    color: #fff;
}

/*************************************************************/
/* Contents                                                  */
/*************************************************************/

div.container.contents {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    margin-top: 70px;
    padding-top: 6px;
    padding-bottom: 5px;
    background-color: #fcfcfc;
}
@media (max-width:991px) {
    div.container.contents {
        margin-top: 50px;
    }
}

/*************************************************************/
/* TableGrid                                                 */
/*************************************************************/

div.table-grid {
    padding: 0 15px 0 14px;
}

div.table-grid .row {
    border-left: solid 1px #ddd;
}

div.table-grid .row:first-child {
    border-top: solid 1px #ddd;
}

div.table-grid .row > div {
    padding: 0;
    margin: 0;
}

div.table-grid .row > div:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 1px;
    border-right: solid 1px #ddd;
    pointer-events: none;
}

div.table-grid .row > div:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 1px;
    border-bottom: solid 1px #ddd;
    pointer-events: none;
}

div.table-grid .row > div .th {
    background-color: rgba(0,0,0,.6);
    color: #fff;
    text-align: center;
    height: 22px;
    padding-top: 2px;
}

div.table-grid .row > div .td {
    padding: 1px 1px 1px 2px;
}

div.table-grid.height-fixed > div .td.with-input{
    height : 32px;
    padding: 1px 1px 1px 2px;
}

div.table-grid.height-fixed > div .td {
    height : 22px;
    padding: 1px 1px 1px 2px;
}

/* table-grid-side*/

div.table-grid-side {
    padding: 0 15px 0 14px;
}

div.table-grid-side .row {
    border-left: solid 1px #ddd;
}

div.table-grid-side .row:first-child {
    border-top: solid 1px #ddd;
}

div.table-grid-side .row > div {
    padding: 0;
    margin: 0;
}

div.table-grid-side .row > div:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 1px;
    border-right: solid 1px #ddd;
    pointer-events: none;
}

div.table-grid-side .row > div:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 1px;
    border-bottom: solid 1px #ddd;
    pointer-events: none;
}

div.table-grid-side .row > div .th {
    background-color: rgba(0,0,0,.6);
    color: #fff;
    text-align: center;
    padding-top: 2px;
}

div.table-grid-side .row > div .td {
    padding: 1px 1px 1px 2px;
}
/* nest grid-table */

div.table-grid.table-grid-without-border .row > div:after {
    border-bottom: none;
}

/*************************************************************/
/* ResponsiveTable                                           */
/*************************************************************/

table.responsive hr {
    margin: 2px 0 3px 0;
}

@media screen and (min-width: 767px) {
    table.responsive thead.not-without-display tr td {
        background-color: #fff;
    }
}

@media screen and (max-width: 767px) {
    table.responsive {
        border: none;
    }

    table.responsive thead {
        display: none;
    }

    table.responsive thead.not-without-display {
        display: inline;
        background-color: transparent;
    }

    table.responsive thead.not-without-display tr:nth-child(2n+1) {
        background-color:rgba(0, 0, 0, 0.05);
    }

    table.responsive thead.not-without-display tr:nth-child(2n+2) {
        background-color: rgba(0, 0, 0, 0.05);
    }

    table.responsive tbody tr td > input,
    table.responsive tbody tr td > select,
    table.responsive tbody tr td > textarea {
        display: inline-block !important;
        width: 300px;
    }

    table.responsive tbody {
        background-color: transparent;
    }

    table.responsive tr {
        display: block;
        border-bottom: solid 1px #e9e9e9;
        margin-bottom: 1rem;
    }

    table.responsive tr.m-none {
        margin-bottom: 0px;
    }

    table.responsive td {
        display: block;
        text-align: right !important;
        border: solid 1px #e9e9e9;
        border-bottom: none;
        min-height: 24px;
    }

    /* table.responsive td:first-child {
        background-color: #6c757d;
        color: #fff;
    }  */

    table.responsive td:before {
        content: attr(aria-label);
        float: left;
    }

    table.responsive td hr {
        display: none;
    }

    div.table-responsive {
        padding: 0 !important;
    }
    .side-item-name-holder {
        font-size: 0.8rem;
        width: 300px;
        overflow: hidden;
    }
}

@media screen and (min-width: 768px) {
    table.responsive tbody tr:hover {
        background-color: #fafaa0 !important;
    }
    table.responsive tbody:hover {
        background-color: #fafaa0 !important;
    }
    .custom-hover {
        background-color: #fafaa0 !important;
    }
}

@media (max-width: 575px) {
    .side-item-name-holder {
        font-size: 0.8rem;
        width: 240px;
        overflow: hidden;
    }
}


/*************************************************************/
/* TableStriped                                              */
/*************************************************************/

@media screen and (min-width: 768px) {
    table.table-striped > tbody > tr:nth-child(2n+1) {
        background-color: #fff;
    }
    table.table-striped > tbody > tr:nth-child(2n+2) {
        background-color: #e8e8e8;
    }

    /* table-double-striped */
    table.table-double-striped > tbody:nth-child(2n+1) {
        background-color: #e8e8e8;
    }
    table.table-double-striped > tbody:nth-child(2n+2) {
        background-color: #fff;
    }
    table.table-double-striped > tbody {
        border-top: 1px;
    }
    table.table-double-striped > tbody > tr,td {
       border-bottom: 0px;
    }
}
@media screen and (max-width: 768px) {
    table.table-striped > tbody > tr:nth-child(2n+1) {
        background-color:rgba(0, 0, 0, 0.05);
    }
    table.table-striped > tbody > tr:nth-child(2n+2) {
        background-color: #fff;
    }

    /* table-double-striped */
    table.table-double-striped > tbody:nth-child(2n+1) {
        background-color: #fff;
    }
    table.table-double-striped > tbody:nth-child(2n+2) {
        background-color:rgba(0, 0, 0, 0.05)
    }
    table.table-double-striped > tbody {
        border-top: 1px;
    }
    table.table-double-striped > tbody > tr,td {
       border-bottom: 0px;
    }
}

/*************************************************************/
/* Accordion                                                 */
/*************************************************************/

.detail-search-accordion-box{
    position: relative;
    margin-top: 1em;
    padding: 1em 2em;
    border-top: 1px solid #D3D3D3;
}

.detail-search-accordion-box-full-border{
    position: relative;
    margin-top: 1em;
    margin-left: -1px;
    padding: 1em 2em;
    border: 1px solid #D3D3D3;
}

.detail-search-accordion-box .detail-search-accordion{
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1em;
    padding: 0 1em;
    margin: 0;
    background-color: white;
    transform: translateY(-50%) translateX(1em);
}

.detail-search-accordion-box .detail-search-accordion{
    color : #000000;
}

.card {
    border : 0px;
    background-color : #fcfcfc;
}

/*************************************************************/
/* calendar                                                  */
/*************************************************************/

.flatpickr-calendar.open {
    z-index: 999998;
}

/*************************************************************/
/* vue.js                                                    */
/*************************************************************/

[v-cloak]:not(span) {
    display: none;
}

span[v-cloak] {
    visibility: hidden;
}
.sort-by {
    color: red;
    /* font-size: 20px; */
}

/*************************************************************/
/* autocomplete                                              */
/*************************************************************/

.ui-menu.ui-autocomplete {
    overflow-y:scroll;
}

.auto-complete-matches {
    font-weight: bold;
}

.ui-state-active {
    display: block;
    padding: 0 1em 0 .4em !important;
    border: solid 1px transparent !important;
    background: #007bff !important;
    color: #ffffff !important;
}

/*************************************************************/
/* search-counter                                            */
/*************************************************************/
.search-counter {
    display: inline-block;
}
.view_disp {
    display: none;
}
@media (max-width: 575px) {
    body,.btn,.input-group-text,.h6,.form-control,.custom-select,.item-name-holder {
        font-weight: 600;
    }
    .sp_none {
        display: none !important;
    }
    .view_disp {
        display: initial !important;
    }
    .badge {
        font-size: 100%;
        margin-bottom: 3px;
    }
    .sp_wd_150 {
        width: 150px;
    }
    .sp_label {
        padding-left: 5px;
        padding-right: 3px;
    }
    small, .small {
        font-size: 100%;
        font-weight: 600;
    }
}

.rotate_icon .fas {
    transition: .2s transform ease-in-out;
}

.rotate_icon [data-toggle="collapse"][aria-expanded="true"] .fas {
    -webkit-transform: rotate(90deg);
    -moz-transform:    rotate(90deg);
    -ms-transform:     rotate(90deg);
    -o-transform:      rotate(90deg);
    transform:         rotate(90deg);
}

a:focus.without-outline {
    outline: none;
    box-shadow: none;
}

/* 丸数字 */
.circle_number {
    width:100%;
    height:fit-content;
	aspect-ratio: 1;
    border-radius: 50%;
    box-sizing: border-box;
    background-color: #000000;
    color: #ffffff;
	display: flex;
	justify-content: center;
	align-items: center;
    font-weight: bold;
	padding: 2px;
}