@import url('Common.css');

#target {
    width: 100%;
}
#target table {
 width: 70%;	
 border-collapse: collapse;	
 border: 1px solid rgb(85, 85, 85);	
 margin: 10px 15% 20px;	
 table-layout: fixed;
 background-color: #FCFCFC;
}
#target th {
 border: 1px solid rgb(85, 85, 85);		
 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%);
}
.no {
    width: 2rem;
}
td:first-child {
    width: 40%;
}
.staffmail {
    width: 100%;
    height: 95%;
    border: none;
    padding: 0 0.5rem;
    font-size: 1rem;
}
.cb {
    width: 10%;
}
#target td {
    border: 1px solid rgb(100, 100, 100);	
    height: 2rem;	
    padding: 0 0.5rem;
    text-align: center;
}
.sm-delete {
    width: 3rem;
    height: 1.2rem;
    margin: 0 auto;
    text-align: center;
    line-height: 1.2rem;
    font-size: 0.8rem;
    color: white;
    background-color: #888;
    cursor: pointer;
}
.sigbox {
    width: 70%;
    margin-left: 15%;
}
.hozon {
    width: 12rem;
    height: 2rem;
    line-height: 2rem;
    margin: 2rem auto 100px;
    cursor: pointer;
}
table {
    counter-reset: th-counter;
}

th.Num::before {
    counter-increment: th-counter;
    content: counter(th-counter);
}
.comment {
    margin-left: 15%;
    font-size: 0.8rem;
}
.textarea {
    font-size: 1rem;
    padding: 0.5rem;
}
.invalid-feedback {
    color: red;
}

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

    #target {
        width: 100%;
    }
    .hozon {
        margin-bottom: 100px
    }
    .staff-mail-cards {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        width: 100%;
    }

    .staff-mail-card {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        overflow: hidden;
        border: 1px solid #e0e0e0;
        width: 100%;
    }

    .card-header {
        background: linear-gradient(135deg, #F0FFF0 90%, var(--accent-color) 90%);
        padding: 1rem;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #e0e0e0;
    }

    .card-number {
        font-weight: bold;
        margin-right: 1rem;
        min-width: 1.5rem;
    }
    
    .staffmail {
        flex-grow: 1;
        padding: 0.5rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        width: calc(100% - 2.5rem);
    }

    .card-body {
        padding: 1rem;
    }

    .checkbox-container {
        display: flex;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .checkbox-container input {
        margin-right: 0.5rem;
    }

    .card-footer {
        padding: 1rem;
        text-align: right;
        border-top: 1px solid #e0e0e0;
    }
    
    .sm-delete {
        background-color: #f44336;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        width: auto;
        padding: 0.5rem 1rem;
        font-size: 1rem; 
        height: 2rem;
    }
    .sigbox {
        width: 100%;
        margin-left: 0;
        padding: 1rem;
    }
    .textarea {
        width: 100%;
    }
}