@import url('Common.css');

#target table {
 width: 96%;	
 border-collapse: collapse;	
 border: 1px solid rgb(85, 85, 85);	
 margin: 10px 2% 20px;	
 table-layout: fixed;
 background-color: #FCFCFC;
}
#target th {
 border: 1px solid rgb(85, 85, 85);	
 text-align: center;	
 color: rgb(51, 51, 51);	
 height: 2rem;	
 padding: 0px;	
 font-weight: normal;	
}
#target tbody th {
    background: linear-gradient(135deg, #F0FFF0 90%, var(--accent-color) 90%);
}
#target tbody th.only-bg {
    background: #F0FFF0 !important;
}
#target td {
    border: 1px solid rgb(100, 100, 100);	
    height: 2rem;	
    padding: 0 0.5rem;
    text-align: left;
}
#target td.right {
    text-align: right;
}

.no {
 width: 5%;	
}
.edit {
 width: 10%;
 text-align: center;
 vertical-align: middle;	
}
.gijutsu {
 width: 20%;	
}
.menuname {
 width: 40%;	
}
.kingaku {
 width: 10%;	
}
.keisaijikan {
 width: 6%;	
}
.syoyoujikan {
 width: 6%;	
}
.keisai {
 width: 5%;	
}
.menu-delete {
 width: 5%;	
}
    
.edit-btn, .restore-btn {
    height: 1.4rem;;
    width: 90%;
    line-height: 1.4rem;
    background-color: var(--sub-color);
    color: white;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}
.restore-btn {
    background-color:var(--sub-color);
}

    
.edit-btn:hover {
  filter: saturate(1.8) brightness(1.5);
}

#target td.keisaitd, #target td.deletetd {
 text-align: center;	
}
.gray {
background-color: #CCC;	
}

table {
    counter-reset: th-counter;
}

th.Num::before {
    counter-increment: th-counter;
    content: counter(th-counter);
}


@media screen and (max-width: 767px) {
    #target {
        margin-top: 60px;
    }
    #target table {
        width: 200%;
    }
    .menu-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }
    
    .menu-card {
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        overflow: hidden;
        border: 1px solid #e0e0e0;
        margin-bottom: 20px;
    }
    
    .menu-header {
        background: linear-gradient(135deg, #F0FFF0 90%, var(--accent-color) 90%);
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #e0e0e0;
    }
    .edit-btn {
        width: 20%;
    }
    .menu-number {
        font-weight: bold;
        font-size: 1.2em;
        color: #333;
    }
    
    .menu-body {
        padding: 20px;
    }
    
    .menu-name {
        margin: 0 0 15px 0;
        font-size: 1.3em;
        color: #333;
    }
    
    .menu-tech {
        color: #666;
        margin-bottom: 15px;
        font-size: 1.1em;
    }
    
    .menu-details {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
    }
    
    .menu-price {
        font-weight: bold;
        font-size: 1.2em;
        color: #28a745;
    }
    
    .menu-time, .menu-duration {
        font-size: 1em;
        color: #666;
    }
    
    .menu-footer {
        background-color: #f9f9f9;
        padding: 15px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid #e0e0e0;
    }
    
    /* トグルスイッチのスタイル */
    .switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
    }
    
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .slider {
        position: absolute;
    }
    .ui-sortable-helper {
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }


}