/* 全局样式 */
* {
    margin: 0;
    padding: 0;
}
/* 原生组件样式 */
header,
footer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

footer span {
    width: 33%;
}

footer input { 
    width: 80%;
}

input {
    width: 100%;
    border: none;
    height: 30px;
}

input:focus {
    outline: none;
}

table {
    margin-top: 15px;
    width: 100%;
    border: 3px solid #000;
}

table input {
    width: 100%;
    border: none;
    text-align: center;
}

td,
th {
    height: 30px;
}

/* 类名样式 */
.headerdata {
    border-bottom: 1px solid #000;
}

.tien {
    width: 33%;
}

.headerdata input {
    width: 100%;
    border: none;
}

.datatable td {
    text-align: center;
}

/* ID样式 */
#titles {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

#remark {
    border: none;
    width: 100%;
    height: 100%;
    resize: none;
}

#totaltr {
    text-align: right;
}

#dataform {
    overflow: hidden;
}

#button-container {
    display: flex;
    width: 100%;
}

#button-container button {
    height: 50px;
    width: 33.33%;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
}

#print {
    width: 100%;
    height: 50px;
    background-color: #4CAF50;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

#Click {
    width: 100%;
    height: 50px;
    background-color: #4CAF50;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

#error {
    text-align: center;
    color: transparent;
    transition: 1s ease-in-out;
}

/* 媒体查询 */
@page {
    margin: 1cm;
}

@media print {
    /* 全局样式 */
    * {
        font-size: 13px;
    }

    /* 原生组件样式 */
    textarea {
        overflow: hidden;
    }

    table {
        width: 100%;
    }

    td,
    th {    
        height: auto;
    }

    td input {
        padding: 0;
        margin: 0;
        width: 100%;
        height: 20px;
    }
    /* 类名样式 */
    .no-print {
        display: none;
    }
    
    .headerdata {
        height: 35px;
    }

    .headerdata input {
        height: 12px;
    }

    /* ID样式 */
    #titles {
        text-align: center;
        font-size: 30px;
        font-weight: bold;
    }

}