
@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP");

:root {
    --dash-point-bg-color: #e3f2fd;
    --dash-title-bg-color: #69b2f3;
    --dash-base-bg-color: #f1ece1;
    
    --dash-point-bg-color: #e9e3f5;
    --dash-title-bg-color: #d1b9fe;

    --sys-point-bg-color: brown;

    --admin-sidebar-width: 160px;

    --link-point-color: #dc3545;
}


html, body {
  font-size: 14px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* overflow: hidden; */
}

ul{
  padding: 0;
}

.is_invalid{
  color: var(--link-point-color);
  font-size: small;
}
.is_ivalid::before{
  content: '※';
}

.attention{
  font-weight: bold;
  color: red;
}

body{
  background: #f5f5f5;
  font-family: "Noto Sans JP";
}

header,footer{
  background: var(--dash-point-bg-color);
  text-align: center;
}

header{
  height: 40px;
}

footer{
  position: sticky;
  top: 100vh;
  font-size: .8rem;
  height:30px;
  line-height: 30px;
}

main{
  margin: 3rem;
  overflow: hidden;
}

h1, h2{
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

h1 button, h2 button{
    margin:0 1rem;
}

h1{
    background: var(--dash-title-bg-color);
    padding: .5rem 1rem;
    border-radius: .4rem;
    position: relative;
}

h2{
    margin: 1rem 0;
    margin-top: 2rem;
    padding: 0 1rem;
    border-bottom: solid var(--dash-title-bg-color);
    /* border-left: solid .5rem var(--dash-title-bg-color); */
}

.base-area{
    margin: 1rem;
    margin-bottom: 4rem;
    padding: 1rem;
    background-color: var(--dash-base-bg-color);
    border-radius: .4rem;
    height: 100%;
}

#dash-top-btn-group{
    display: flex;
    margin-bottom: .4rem;
    flex-wrap:wrap;
}

#dash-top-btn-group a{
    margin-right: .5rem;
}

.btn-group{
    margin-bottom: .4rem;
}

.readonly-form{
  pointer-events: none;
  opacity: 0.6;
}

.thumb-small{
  width:6.3rem;
  height:6.3rem;
  object-fit: cover;
}


.contents_flex{
  display: flex;
  flex: 1;
  overflow: hidden;
}

.link{
  cursor: pointer;
}
.link:hover{
  border-bottom:solid 1px var( --link-point-color );
  /* opacity: .8; */
}



/* メニュー登録画面のレイアウト */

.main-contents{
  width: 100%;
}
main{
  display: flex;
  flex: 1;
  margin: 0;
  font-size: 1rem;
}

main h1{
  font-size: 1.4rem;
  height: 50px;
  border-radius: 0;
  background: none;
  border-bottom: 1px solid #ccc;
  margin: 0;
}

main h1 button{
  width: 10rem;
  position: absolute;
  right: 0;
}

main h2{
  font-size: 1rem;
  margin-top: 0;
  padding: 0;
}

.contents_flex > div{
  flex: 1;
  height: calc(100vh - 40px - 30px - 50px); /* ヘッダーとフッター、タイトルバーを除いた高さ */
  overflow-y: auto;
}

.base-area h2{
  margin:1rem;
}

.base-area{
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: 1px solid #ccc;
  margin: -1px;
  font-size: 1rem;
  position: relative;
  width: 50%;
}

.base-area .main{
  padding: 1rem;
  padding-bottom: 60px;
}

/* pagination */
.nav{
  width: calc((100% - var(--admin-sidebar-width)) * 0.5);
  background: #eee;
  margin: -1px;
  border: 1px solid #ccc;
  position: fixed;
  bottom: 30px;
  height: 60px;
}

.nav .pagination,
.nav .btn{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}


/* サイドバー */
#admin_sidebar{
    padding: 1rem 1.5rem;
    font-size: small;
    background: #444;
    overflow-y: auto;
    min-width: var(--admin-sidebar-width);
}
#admin_sidebar a{
    display: block;
    line-height: 3rem;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    width: fit-content;
}
#admin_sidebar hr{
  border-color: #fff;
}


/* 所属一覧 */
.parent_at a{
  margin-right: 1rem;
}


/* 並び替え */
.sort_list{
  list-style: none;
}
.sort_list li{
  cursor: pointer;
  background: #fff;
  color: var( --link-point-color );
  border:solid 1px #ccc;
  border-left: none;
  border-right: none;
  margin: -1px;
  padding:.5rem;
  position: relative;
  display: flex;
  align-items: center;
  user-select: none;
}
.sort_list li:hover{
  /* opacity: .8; */
  background: var( --link-point-color );
  color: #fff;
}

.sort_list i.move{
  margin-left:.5rem;
  margin-right: 1rem;
  cursor: grab;
}
.sort_list span.price{
  margin-left: auto;
  margin-right:3rem;
}
.sort_list span.trash{
  background: #6c757d;
  color: #fff;
  position: absolute;
  right: 0;
  height: 2.5rem;
  width: 2.5rem;
  text-align: center;
  line-height: 2.5rem;
}
.sort_list span.trash:hover{
  background: #000;
}
.sort_list li.dragging {
  opacity: 0.5;
}

.btn_add{
  width: fit-content;
  margin-left:auto;
}

/* 座席リスト　複数行 */
.lists-container{
  display: flex;
  gap: 1rem;
}
.multi_list{
  width: 25%;
  min-height: 2rem;
  background: #fff;
}


/* 曜日チェックボックス */
.weekday {
    border: none;
}

.weekday label {
    display: flex;
    align-items: center;
    gap: 0 .5em;
    position: relative;
    max-width: 200px;
    margin-bottom: .4em;
    padding: .5em .7em;
    border: 1px solid #2589d0;
    border-radius: 3px;
    background-color: #2589d026;
    cursor: pointer;
}

.weekday label:has(:checked) {
    background-color: #2589d0;
    color: #fff;
}

.weekday label::before {
    width: 14px;
    height: 14px;
    border-radius: 1px;
    background-color: #fff;
    content: '';
}

.weekday label:has(:checked)::after {
    position: absolute;
    top: 14px;
    left: 15px;
    transform: rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid #2589d0;
    border-width: 0 2px 2px 0;
    content: '';
}

.weekday input {
    display: none;
}



/* モーダル */
#modal_layer{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0, .5);
}

#modal_window{
  width: fit-content;
  min-width: 35%;
  height: 90%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: #ddd;
  border-radius: .4rem;
}


#modal_header{
  height: 3rem;
  line-height: 3rem;
  text-align: center;
  padding: .2rem;
}
#modal_footer{
  height: 3rem;
  display: flex;
  justify-content: space-between;
  padding: .2rem;
}
#modal_footer button{
  width: 8rem;
  padding: 0.2rem;
}

#modal_close{
  margin: .2rem;
  padding: .2rem;
  font-size: 2rem;
  position: absolute;
  top: 0;
  right: 0;
}

#modal_contents{
  overflow: auto;
  height: calc(100% - 6rem);
  background: var(--dash-base-bg-color);
  padding:1rem;
}

#modal_contents ul{
  list-style: none;
  padding: 0;
}

#modal_contents li{
  border-top: solid 1px #ccc;
  border-bottom: solid 1px #ccc;
  margin: -1px;
}

#modal_contents li label{
  display: flex;
  padding: 1rem;
  align-items: center;
}

#modal_contents li label p{
  padding-left: 1rem;
  flex-grow: 1;
  margin: 0;
}

#modal_contents li label p span{
  font-size: small;
  display: block;
}
.manage_name{
  color: #666;
}
.status_txt{
  width: fit-content;
  background: #999;
  color: #fff;
  padding: 0 .2rem;
}

#modal_contents li input,
#modal_contents li label{
  cursor: pointer;
}
#modal_contents li input:hover,
#modal_contents li label:hover{
  opacity: .8;
  background: #fff;
}


/* トップ */
#index{
  width: 80%;
  margin: 3rem auto;
}

/* ログイン */
#login_form{
  width: 30%;
  margin: 3rem auto;
}