/*+各種マスタ：部門登録（部門マスタ）CSS*/
/*//設定リセット*/
table{
    margin-bottom: 0;
}

/*+店舗・グループ選択  .filter .div_2 ...CSS:source_basic.css*/

/*+部門マスタ .departments*/
/**一覧の表示・更新～CSV .departments .div_1*/
.departments .div_1{
    width: 100%;
}

.departments .div_1 table{
    width: 95%;
    margin: 0 auto;
}

.departments .div_1 table th{
    width: 17.75%;
}

.departments .div_1 table td{
    padding: 1em;
}

.departments .div_1 table th span{
    display: inline-block;
    width: fit-content;
    height: 2em;
    line-height: 2em;
    color: #777777;
    text-decoration: underline;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    background-color: white;
    padding: 0 0.5em ;
}

/*画像と横並び*/
.departments .div_1 table .td_flex{
    width: 100%;
    display: flex;
    border: none;
    border-right: 1px solid #D8DCDE;
}

/*横並びになってるp*/
.departments .div_1 table .td_flex p{
    width: 35%;
}

/*横並びになってるimg*/
.departments .div_1 table .td_flex img{
    height: fit-content;
}

/*新規登録*/
.departments .div_1 table .tr_2 td p{
}

/*部門マスタコピー登録*/
.departments .div_1 table .tr_3 td{
    border-top: 1px solid #D8DCDE;
    border-bottom: 1px solid #D8DCDE;
    padding-bottom: 2em;
    position: relative;
}

/*詳細へ*/
.departments .div_1 table .tr_3 a{
    position: absolute;
    bottom: 0;
    left: 33%;
}

/*特殊商品登録*/
.departments .div_1 table .tr_4 td{
        position: relative;
}

/*詳細へ*/
.departments .div_1 table .tr_4 a{
    position: absolute;
    bottom: 0;
    left: 33%;
}

.departments .div_1 table .tr_4 .td_flex img{
    margin-left: 7.5%;
}

/**新規登録と一覧の更新 .departments .div_2*/
.departments .div_2 > p:first-of-type{
    width: 100%;
    margin-left: 1em;
    margin-bottom: 1.5em;
}

/*div_2_1～div_2_3共通*/
.departments .div_2 .div_2_1,
.departments .div_2 .div_2_2,
.departments .div_2 .div_2_3{
    width: 95%;
    background-color: #5A75B8;
    padding: 1em;
    margin: 0 auto;
}

/*//新規登録と一覧の説明(部門略称まで) .departments .div_2 .div_2_1 */
.departments .div_2 .div_2_1{
    padding-bottom: 0;
}

.departments .div_2 .div_2_1 > p:first-of-type{
    width: 100%;
    color: white;
    margin-bottom: 1em;
}

.departments .div_2 .div_2_1 p span{
    color: black;
}

/*table*/
.departments .div_2 .div_2_1 table,
.departments .div_2 .div_2_3 table{
    width: 100%;
    margin: 0;
}

.departments .div_2 .div_2_1 table th,
.departments .div_2 .div_2_3 table th{
    width: 25%;
    text-align: left;
    border-color: #3F5DA5;
    border-right: none;
    background-color: white;
    padding-left: 1.5em;
    position: relative;
}

.departments .div_2 .div_2_1 table tr:last-of-type th{
    border-bottom: none;
}

/*th左点*/
.departments .div_2 .div_2_1 table th::before,
.departments .div_2 .div_2_3 table th::before{
    content: "・";
    display: inline-block;
    font-weight: bold;
    position: absolute;
    left: 0.5em;
}

.departments .div_2 .div_2_1 table td,
.departments .div_2 .div_2_3 table td{
    border-color: #3F5DA5;
    border-left: none;
    background-color: white;
    padding: 0.8em 0;
}

/*td横並び*/
.departments .div_2 table .td_flex{
    width: auto;
    display: flex;
    border: none;
}

/*span改行*/
.departments .div_2 .div_2_1 table td span,
.departments .div_2 .div_2_3 table td span{
    display: block;
}


/*店舗コード/店舗名/部門コード tr_1*/
/*入力必須*/
.departments .div_2 .div_2_1 table .tr_1 th span{
    display: block;
    color: #FB2C2C;
}

/*部門コード注意点*/
.departments .div_2 .div_2_1 table .tr_1 td .td_flex{
    margin-top: 0.5em;
}

.departments .div_2 .div_2_1 table .tr_1 td .td_flex div{
    width: 45%;
    }

.departments .div_2 .div_2_1 table .tr_1 td .td_flex div h3{
    font-weight: normal;
    font-size: unset;
    margin: 0;
}

.departments .div_2 .div_2_1 table .tr_1 td .td_flex div ul{
    margin: 0.5em 0;
}

img[data-original="../../7-other_master/7-2-001/img/departments_5.png"]{
    height: fit-content;
}

/*部門名 tr_2*/
.departments .div_2 .div_2_1 table .tr_2 p{
    width: 100%;
    margin-bottom: 0.5em;
}

img[data-original="../../7-other_master/7-2-001/img/departments_6.png"]{
    width: 34%;
    height: fit-content;
    margin: 0 0 0 auto;
    margin-right: 18.5%;
}

/*部門略称 tr_3*/
.departments .div_2 .div_2_1 table .tr_3 .td_flex{
}

.departments .div_2 .div_2_1 table .tr_3 .td_flex p{
    width: 30%;
    padding-left: 0;
}

img[data-original="../../7-other_master/7-2-001/img/departments_7.png"]{
    width: 33%;
    height: fit-content;
    margin-left: 17.5%;
}

/*//軽減税率対応 税率 .departments .div_2 .div_2_2*/
.departments .div_2 .div_2_2{
    display: flex;
    border-right: 1px solid #3F5DA5;
    padding-top: 0;
    padding-bottom: 0;
}

.departments .div_2 .div_2_2 table th,
.departments .div_2 .div_2_2 table td{
    border-color: #3F5DA5;
    border-bottom: none;
    background-color: white;
}

.departments .div_2 .div_2_2 table{
    width: 69.5%;
}

.departments .div_2 .div_2_2 table th{
    width: 35.7%;
    border-right: none;
    text-align: left;
    padding-left: 1.5em;
    position: relative;
}

/*th左点*/
.departments .div_2 .div_2_2 table th::before{
    content: "・";
    display: inline-block;
    font-weight: bold;
    position: absolute;
    left: 0.5em;
}

.departments .div_2 .div_2_2 table td{
    width: calc(100% - 35.7%);
    border-left: none;
    padding: 0.8em 0;
}

/*span改行*/
.departments .div_2 .div_2_2 table td span{
    display: block;
}

.departments .div_2 .div_2_2 .img_div{
    width: 30.5%;
    border-top: 1px solid #3F5DA5;
    background-color: white;
    padding: 0.5em 0;
}

.departments .div_2 .div_2_2 .img_div img{
    width: 57%;
}

.departments .div_2 .div_2_2 .img_div p{
    margin-top: 1em;
    padding-left: 1em;
}

/*//新規登録と一覧の説明(免税区分から) .departments .div_2 .div_2_3 */
.departments .div_2 .div_2_3{
    padding-top: 0;
}

.departments .div_2 .div_2_3 table td img{
    height: fit-content;
}

/*免税区分 .tr_4*/
.departments .div_2 .div_2_3 table .tr_4 .td_flex{
        border-top: 1px solid #3F5DA5;
}

.departments .div_2 .div_2_3 table .tr_4 td img{
    width: 16.8%;
    margin-left: 7%;
}

/*部門割当キー*/
.departments .div_2 .div_2_3 table .tr_5 td img{
    width: 55%;
    margin: 0 0 0 auto;
    margin-right: 8.5%;
}

/*//新規登録・更新・削除 maker div_3*/
.departments .div_3 div{
    width: 95%;
    margin: 0 auto;
}

.departments .div_3 div:not(.departments .div_3 div:last-of-type){
    margin-bottom: 2em;
}

.departments .div_3 div:first-of-type{
    margin-bottom: 2em;
}

.departments .div_3 h4{
    font-weight: normal;
    color: black;
    margin-bottom: 0;
}

/*h4左丸*/
.departments .div_3 h4::before{
    content: "●";
    display: inline-block;
    font-size: 20px;
}

.departments .div_3 div p{
    padding-left: 1em;
}

/*新規登録ボタン*/
.departments .div_3 .spa_1{
    display: inline-flex;
    align-items: center;
    margin: 0 0.2em;
}

.departments .div_3 .spa_1::before{
    content: "";
    display: inline-block;
    width: 120px;
    height: 35px;
    line-height: 35px;
    background-image: url(img/button_new.png);
    background-repeat: no-repeat;
    background-size: contain;
}

/*更新ボタン*/
.departments .div_3 .spa_2{
    display: inline-flex;
    align-items: center;
    margin: 0 0.2em;
}

.departments .div_3 .spa_2::before{
    content: "";
    display: inline-block;
    width: 83px;
    height: 35px;
    line-height: 35px;
    background-image: url(img/button_registration.png);
    background-repeat: no-repeat;
    background-size: contain;
}

/*削除ボタン*/
.departments .div_3 .spa_3{
    display: inline-flex;
    align-items: center;
    margin: 0 0.2em;
}

.departments .div_3 .spa_3::before{
    content: "";
    display: inline-block;
    width: 83px;
    height: 35px;
    line-height: 35px;
    background-image: url(img/button_delete.png);
    background-repeat: no-repeat;
    background-size: contain;
}

/**部門マスタコピー登録 departments div_4*/
.departments .div_4 img[data-original="../../7-other_master/7-2-001/img/departments_3.png"]{
    width: 75%;
    margin-bottom: 1em;
}

.departments .div_4 p{
    width: 100%;
    padding-left: 1em;
}

.departments .div_4 p:last-of-type{
    margin-top: 0.5em;
}

.departments .div_4 p:last-of-type .spa_2{
    display: inline-block;
    color: red;
    margin-right: 0.5em;
}

/**特殊商品登録 departments div_5*/
.departments .div_5 .div_flex{
    width: 95%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

.departments .div_5 .div_flex div{
    width: 55%;
}

.departments .div_5 .div_flex div table{
    margin: 1em 0;
}

.departments .div_5 .div_flex div table th{
    width: 20%;
}

.departments .div_5 .div_flex div table .spa_1{
    display: block;
}

.departments .div_5 img[data-original="../../7-other_master/7-2-001/img/departments_4.png"]{
    width: 35%;
    height: fit-content;
}