@import url('Common.css');
@import url('Spinner.css');
@import url('Progress.css');


#target {
    width: 100%;
}
table {
 width: 96%;	
 border-collapse: collapse;	
 border: 1px solid rgb(85, 85, 85);	
 margin: 10px 2%;	
 table-layout: fixed;	
}

th {
 border: 1px solid rgb(85, 85, 85);	
 text-align: center;	
 color: rgb(51, 51, 51);	
 height: 2rem;	
 padding: 0px;	
 font-weight: normal;	
}
td {
 border: 1px solid rgb(100, 100, 100);	
 height: 2rem;	
 text-align: center;
}
.wrap {
 width: 98%;	
 height: 75vh;	
 border: 1px solid rgb(51, 51, 51);	
 border-top-left-radius: 0.5rem;	
 border-top-right-radius: 0.5rem;	
 border-bottom-right-radius: 0.5rem;	
 border-bottom-left-radius: 0.5rem;	
 margin: 50px 1% 0.5rem;	
 text-align: center;	
 padding: 0.5rem;
 background-color: #FCFCFC;	
 overflow: auto;
}
.flex {
 display: flex;	
 flex-flow: row nowrap;	
 justify-content: space-between;	
 align-items: center;	
 width: 98%;	
 margin-left: 1%;	
 border: 1px solid rgb(51, 51, 51);	
 border-top-left-radius: 0.5rem;	
 border-top-right-radius: 0.5rem;	
 border-bottom-right-radius: 0.5rem;	
 border-bottom-left-radius: 0.5rem;	
 padding: 0.5rem;
 background-color: #FCFCFC;
 gap: 1rem;
}
.flex1 {
 display: flex;	
 flex: 1;
 flex-flow: row nowrap;	
 justify-content: flex-start;	
 align-items: center;	
 padding: 0.5rem; 
}
.flex2 {
 display: flex;	
 flex: 1;
 flex-flow: row nowrap;	
 justify-content: space-between;	
 align-items: center;	
 padding: 0.5rem;

}
.flex2 div {
    margin-left: 0;
}
.btn-flex {
    width: 30%;
    min-width: 30%;
    max-width: 30%;
    margin: 0;
}
.panel {
 height: 25vh;	
 background-color: var(--base-color);	
 display: flex;	
 flex-flow: row nowrap;	
 justify-content: space-between;	
 align-items: center;	
}
.left {
 width: 20%;	
 height: 90%;	
 margin: 5% 2%;	
 border: 1px solid rgb(51, 51, 51);	
 border-top-left-radius: 0.5rem;	
 border-top-right-radius: 0.5rem;	
 border-bottom-right-radius: 0.5rem;	
 border-bottom-left-radius: 0.5rem;	
 overflow: auto;
}
.right {
 width: 70%;	
 height: 90%;	
 margin: 5% 2%;	
 border: 1px solid rgb(51, 51, 51);	
 border-top-left-radius: 0.5rem;	
 border-top-right-radius: 0.5rem;	
 border-bottom-right-radius: 0.5rem;	
 border-bottom-left-radius: 0.5rem;	
 font-size: 0.8rem;	
 padding: 1rem;
}
.staff-panel-table {
 border: none;	
}
.staff-panel-table th {
 height: 0.8rem;	
 font-size: 0.5rem;	
 border: none;	
}
.staff-panel-table td {
 height: 0.8rem;	
 font-size: 0.7rem;	
 border: none;	
}
.checkth {
 width: 15%;	
}
.youbi-list {
 width: 100%;	
 height: 1rem;	
}
.day-list {
 width: 100%;	
 height: 3rem;	
 font-size: 0.5rem;	
}
.day-list-table {
 border: none;	
}
.day-list-table td {
 border: none;	
 height: 0.7rem;
 font-size: 0.7rem;	
}
.day {
    text-decoration: underline;
    color: #00A;
    cursor: pointer;
}
.table-wrap {
    width: 100%;
    overflow: auto;
}
.shift-table {
    width: 200%;
}
.shift-table th {
 font-size: 0.9rem;	
}
.shift-table tr:nth-child(1) td {
 height: 0.6rem;	
 line-height: 1rem;	
 padding: 0px;	
 margin: 0px;	
font-size: 0.6rem;	
}
.shift-table * {
    font-size: 0.5rem;
}
.youbi {
    font-size: 0.9rem;
}
.waku {
    width: 100%;
    height: 2rem;
    background-color: #FCF;
    border: 1px #CCC solid;
    border-radius: 0.5rem;
    text-align: center;
    line-height: 2rem;
    font-size: 0.7rem;
    cursor: pointer;
}
.prev,.next {
    cursor: pointer;
}
.notice {
    font-size: 0.5rem;
    text-align: left;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#shift-table {
    display: table;
}

#shift-table-sp {
    display: none;
}
label.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}
.staff-popup {
  display: none;
  width: 200px;
  height: 250px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: auto;
  background-color: white;
  border: 1px #999 solid;
  border-radius: 4px;
  padding: 1rem;
}
.delete-staff-popup {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #999;
    cursor: pointer;
}
#unsavedWarning {
    transition: opacity 0.5s ease;
    opacity: 1;
}
#unsavedWarning.hidden {
    opacity: 0;
}
.SP {
    display: none;
}

@media screen and (max-width: 767px) {

    #target {
        width: 100%;
        padding: 1%;
    }
    .flex {
        display: block;
        width: 100%;
    }
    .flex1 {
        width: 100%;
    }
    .flex2 {
        width: 96%;
        margin-left: 2%;
    }
    #hozon {
        width: 7rem;
    }	
    .wrap {
        margin: 10px 0 0.5rem;
        width: 100%;
        height: auto;
        margin-bottom: 100px;
    }
    .panel {
        display: block;	
        height: auto;	
    }
    .right {
        height: auto;
        width: 100%;	
        font-size: 1rem;
        margin: 0;	  
    }
    .left {
        height: 20vh;
        width: 100%;
        margin: 0 0 1%;	
        overflow: auto;  
    }
    .youbi-list {	
        height: auto;	
       }
    .staff-panel-table th {
        font-size: 0.8rem;	
    }
    .staff-panel-table td {
        font-size: 0.8rem;	
    }
    .day-list {
        height: auto;
        font-size: 0.8rem;	
    }
    #shift-table {
        display: none;
    }

    #shift-table-sp {
        display: table;
        width: 100%;
        margin: 10px 0;
        table-layout: fixed;
        height: auto;
    }

    #shift-table-sp th,
    #shift-table-sp td {
        word-break: break-word;
        overflow-wrap: break-word;
        width: 7rem;
    }
    #shift-table-sp td {
        background-color: #AAA;
    }
    #shift-table-sp th:first-child,
    #shift-table-sp th:nth-child(2) {
        width: 3rem;
    }
    #shift-table-sp td:first-child,
    #shift-table-sp td:nth-child(2){
        width: 3rem;
        background-color: rgb(220, 230, 255);
    }


    .table-wrap {
        overflow-x: visible;
    }
    .SP {
        display: block;
    }
}


