@charset "UTF-8";

/* =============================================

    スタイル設定

============================================= */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dt,
dd,
li,
table,
th,
td,
form,
address,
pre,
strong,
em,
fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
}

html {
    height: 100%;
    width: 100%;
    background-color: #f2f5f8;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    font-family: "メイリオ", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "MS Pゴシック",
        "MS PGothic", sans-serif;
    color: #333;
    background-color: #f2f5f8;
}

button.search_modal_btn,
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
select,
textarea {
    font-family: "メイリオ", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "MS Pゴシック",
        "MS PGothic", sans-serif;
    margin: 0;
    padding: 0.5em 0.3em;
    width: 100%;
    outline: none;
    border: 1px solid #ccc;
    font-size: 15px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1) inset;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 2px;
}

button.search_modal_btn:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    background: #e4f2e1;
    box-shadow: 0 0 4px #47a837;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #38761d;
}

a[href] {
    color: #47a837;
    text-decoration: none;
    outline: none;
}

a[href]:hover {
    opacity: 0.6;
}

.bold {
    font-weight: bold;
}

.container .error-message {
    color: #f00;
}

.container .error-input {
    background: #ffcccc;
    border: 1px solid #f00;
}

.display-none {
    display: none;
}

/* トグルボタン */
.toggle-button {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 20px;
    border-radius: 20px;
    background-color: #dddddd;
    cursor: pointer;
    transition: background-color 0.4s;
}

.toggle-button:has(:checked) {
    background-color: #38761d;
}

.toggle-button::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgb(0 0 0 / 20%);
    background-color: #fff;
    content: "";
    transition: left 0.4s;
}

.toggle-button:has(:checked)::after {
    left: 20px;
}

.toggle-button input {
    display: none;
}

/* =============================================

    ボタン設定

============================================= */
button {
    font-family: "メイリオ", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "MS Pゴシック",
        "MS PGothic", sans-serif;
    border-style: none;
    text-decoration: none;
    font-weight: normal;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

/* 登録 */
.green-button {
    background: #38761d;
    border: 1px solid #38761d;
    color: #fff;
}

.green-button:hover {
    background: #e4f2e1;
    border-color: #38761d;
    color: #38761d;
}

/* 登録ボタンの配色の反転 */
.light-green-button {
    background: #e4f2e1;
    border: 1px solid #38761d;
    color: #38761d;
}

.light-green-button:hover {
    background: #38761d;
    border-color: #38761d;
    color: #38761d;
    color: #fff;
}

/* 補助的な機能用 */
.yellow-button {
    background: #fff3cd;
    border: 1px solid #856404;
    color: #856404;
}

.yellow-button:hover {
    background: #e47f25;
    border-color: #f6d4b5;
    color: #fff;
}

/* 削除 */
.light-red-button {
    background: #991f23;
    border: 1px solid #991f23;
    color: #fff;
}

.light-red-button:hover {
    background: #f9f0ef;
    border-color: #991f23;
    color: #991f23;
}

/* 戻る */
.light-gray-button,
.gray-button {
    background: #f5f5f5;
    color: #565e64;
    border: 1px solid #565e64;
}

.light-gray-button:hover,
.gray-button:hover {
    background: #565e64;
    border-color: #565e64;
    color: #fff;
}

/* =============================================

    画面

============================================= */
main {
    top: 50px;
    position: relative;
}

main.with-sidebar {
    left: 250px;
    width: calc(100vw - 270px);
}

main.no-sidebar {
    left: 55px;
    width: calc(100vw - 75px);
}

main > .container {
    width: 100%;
    padding: 50px 0px;
}

/* =============================================

    検索ボックス

============================================= */
.container .search-box {
    width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
}

.container .search-box dl {
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

.container .search-box dl dt {
    padding: 0.5rem 1rem;
    background-color: #47a837;
    line-height: 1.3;
    border-radius: 2px 2px 0 0;
    color: #fff;
    cursor: pointer;
}

.container .search-box dl dt:before {
    font-family: "FontAwesome";
    content: "\f068";
    font-size: 120%;
    margin-right: 0.5rem;
    color: #fff;
}

.container .search-box dl dt.plus::before {
    font-family: "FontAwesome";
    content: "\2b";
}

.container .search-box dl dd {
    background-color: #fff;
    border-radius: 0 0 2px 2px;
    border-top: 1px solid #ccc;
}

.container .search-box dl dd form {
    padding: 0.5rem;
}

.container .search-box .search-column-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container .search-box .search-column-box .search-column-item {
    width: 49%;
    padding: 0.3rem;
}

.container .search-box .search-column-box .search-column-item .search-item-label {
    width: 20%;
}

.container .search-box .search-column-box .search-column-item .search-item-input {
    width: 77%;
    font-size: 95%;
}

.container .search-box .search-button-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 0.5rem 0;
}

.container .search-box .search-button-box button {
    margin: 1%;
    padding: 0.75em 0;
    width: 140px;
    border-radius: 3px;
}

/* =============================================

    ボタンブロック

============================================= */
.container .button-box {
    width: 95%;
    margin: 0 auto;
    padding-bottom: 1rem;
}

.container .button-box button {
    padding: 0.5rem 1.5rem;
    border-radius: 3px;
}

/* =============================================

    件数表示、ページ数表示

============================================= */
.container .page-box {
    width: 95%;
    margin: 0 auto;
    padding: 2rem 0 0.5rem 0;
    display: flex;
    align-items: center;
}

.container .page-box .page-button-box {
    margin: 0 0 0 auto;
}

.container .page-box .page-button-box ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.container .page-box .page-button-box li {
    padding-right: 0.5em;
}

.container .page-box .page-button-box button {
    padding: 0.2em 0.7em;
}

.container .page-box .page-button-box input {
    font-size: 98%;
    width: 100px;
    margin: 0 0.5em;
}

/* =============================================

    テーブル一覧

============================================= */
.container .table-box {
    width: 95%;
    margin: 0 auto;
}

.container .table-box table {
    width: 100%;
    border-spacing: 0px;
    border-collapse: collapse;
    table-layout: auto;
    border: 0;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1);
}

.container .table-box table th {
    padding: 0.5rem;
    background: #47a837;
    border-width: 0 1px 1px 0;
    border-color: #ccc;
    border-style: solid;
    color: #fff;
    text-align: center;
    vertical-align: middle;
}

.container .table-box table tr {
    background: #fff;
}

.container .table-box table tr:nth-child(odd) {
    background: #e4f2e1;
}

.container .table-box table tr:hover {
    background: #ccc;
}

.container .table-box table tr:hover td {
    color: #333;
}

.container .table-box table td {
    padding: 0.5rem 1rem;
    border-width: 0 1px 1px 1px;
    border-color: #ccc;
    border-style: solid;
    color: #333;
    text-align: left;
    vertical-align: middle;
}

.container .table-box table td button {
    width: 50px;
    padding: 0.4rem 0.5rem;
    border-radius: 3px;
}

/* =============================================

    詳細画面

============================================= */
.container .detail-box {
    width: 95%;
    margin: 0 auto;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.container .detail-box .detail-item {
    width: 100%;
    padding-bottom: 1.5rem;
    display: flex;
}

.container .detail-box .detail-item .detail-item-label {
    width: 18%;
}

.container .detail-box .detail-item .detail-item-input {
    width: 80%;
}

.container .detail-box .detail-button-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 0.5rem 0;
}

.container .detail-box .detail-button-box a:hover {
    opacity: 1;
}

.container .detail-box .detail-button-box button {
    margin: 1%;
    padding: 0.75em 0;
    width: 140px;
    border-radius: 3px;
}

/* =============================================

    アイコン

============================================= */
button.search_modal_btn {
    background-color: rgb(255, 255, 255);
    height: 35px;
    text-align: left;
    display: block;
    position: relative;
}

.calender_div {
    position: relative;
}

button.search_modal_btn:after,
.calender_div:after {
    font-family: FontAwesome;
    position: absolute;
    right: 0.5rem;
    font-size: 1.5rem;
    top: -0.1rem;
    pointer-events: none;
}

button.search_modal_btn:after {
    content: "\f2d2";
}

.calender_div:after {
    content: "\f073";
}

/* =============================================

    カレンダー

============================================= */
body .dropdown-menu {
    background: #fff;
}

body .datepicker table tr td.today {
    background: #fff3cd;
    color: #856404;
}

body .datepicker table tr td span.active,
body .datepicker table tr td span.active.active,
body .datepicker table tr td.active.today,
body .datepicker table tr td.active.active {
    background: #e4f2e1;
    color: #38761d;
    text-shadow: none;
}

body .datepicker table tr td span:hover,
body .datepicker table tr td span.active:hover,
body .datepicker table tr td.day:hover,
body .datepicker table tr td.today:hover,
body .datepicker table tr td.active:hover {
    background: #38761d !important;
    color: #fff !important;
}

body .datepicker {
    padding: 0.8rem 1.5rem;
}

body .datepicker td {
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

.class-sunday {
    color: red;
}
.class-saturday {
    color: blue;
}

/* =============================================

    検索モーダル

============================================= */
/* キーボード */
#hierarchy_keybord_search .modal-body td.keybord {
    width: 28px;
    height: 28px;
}

#hierarchy_keybord_search .modal-body td.keybord {
    vertical-align: middle;
    text-align: center;
    border-radius: 3px;
    font-size: 14px;
    background-color: #f5f5f5;
    color: #dcdcdc;
}

#hierarchy_keybord_search .modal-body td.color_none {
    background-color: var(--bs-modal-bg);
}

#hierarchy_keybord_search .modal-body table {
    border-collapse: separate;
    border-spacing: 5px;
}

#hierarchy_keybord_search ul:first-child {
    width: 120px;
}

#hierarchy_keybord_search ul:not(:first-child, :last-child) {
    width: 270px;
}

#hierarchy_keybord_search ul:last-child {
    width: 310px;
}

#hierarchy_keybord_search .modal-body input#hierarchy_keybord {
    width: 250px;
}
#hierarchy_keybord_search .modal-body input#customer_address {
    width: 400px;
}

#hierarchy_keybord_search .modal-body label {
    width: 80px;
}

/* クリアボタン */
.modal-header .clear {
    padding: 0.2rem 1rem 0 0;
}

.search_modal .modal-header {
    justify-content: space-between;
}

.search_modal .modal-header .clear .act-btn {
    margin-bottom: 0.2rem !important;
}
