@import url('https://fonts.googleapis.com/css2?family=Kanit');

* {
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.logo-mss{
    width: 100px;
    height: 100px;
    position: absolute;
    right: 0;
    margin-right: 30px;
    margin-top: 20px;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 210mm;
    width: 100%;
    position: relative;
}

.title-time {
    text-align: left;
    color: #333;
    font-size: 20px;
    margin-left: 30px;
}

form {
    margin-bottom: 20px;
    margin-left: 30px;
    text-align: left;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

th,
td {
    padding: 4px;
    font-size: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    font-size: 12px;
    background-color: #535353;
    color: white;
}

tbody tr:nth-child(even) {
    font-size: 15px;
}

.button-container {
    margin-top: 20px;
    text-align: center;
}

button {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #0073ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

th:nth-child(3),
td:nth-child(3) {
    width: 150px;
    /* หรือขนาดที่คุณต้องการ */
}

/* Print styles */
@media print {
    body {
        display: block;
        background-color: white;
        font-size: 10px;
    }

    .container {
        box-shadow: none;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .button-container {
        display: none;
    }

    .title-time {
        text-align: left;
        color: #333;
        font-size: 20px;
        margin-left: 30px;
        margin-bottom: 40px;
    }

    form {
        display: none;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    th,
    td {
        padding: 2px;
        font-size: 10px;
        border: 0.5px solid #000;
    }

    th:nth-child(1),
    td:nth-child(1) {
        width: 50px;
    }

    th:nth-child(2),
    td:nth-child(2) {
        width: 50px;
    }

    th:nth-child(3),
    td:nth-child(3) {
        width: 120px;
    }

    th:nth-child(4),
    td:nth-child(4) {
        width: 65px;
    }

    th:nth-child(5),
    td:nth-child(5) {
        width: 65px;
    }

    th:nth-child(6),
    td:nth-child(6) {
        width: 65px;
    }

    th:nth-child(7),
    td:nth-child(7) {
        width: 65px;
    }

    th:nth-child(8),
    td:nth-child(8) {
        width: 65px;
    }
}