@font-face {
    font-family: "TH Sarabun New";
    src: url(THSarabunNew.ttf);
}

html {
    font-family: "TH Sarabun New";
    /* font-size: 62.5%; */
    font-size: 0.625vw;
    background: rgb(219, 219, 219);
}

@media (orientation: portrait) {
    html {
        font-size: 1.35vw;
    }
}

body {
    background: rgb(219, 219, 219) !important;   
}

input {
    font-family: "TH Sarabun New";
    font-size: 3.5rem;
}

button {
    font-family: "TH Sarabun New";
    font-size: 3.5rem;
}

h1 {
    font-size: 5rem;
}


h2 {
    font-size: 4.5rem;
}

h3 {
    font-size: 4rem;
}

p, span {
    font-size: 3.5rem;
}

label {
    font-family: "TH Sarabun New";
    font-size: 3.5rem;
}

.back-button {
    position: fixed;
    top: 0;
    left: 0;   
}

.index, .menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-inline: 5rem;
}

.index form {
    background: whitesmoke;
    padding: 2rem;
}

.index .submit {
    width: 50%;
    margin-left: 25%;
}

.menu h2 {
    margin-block-end: 0 !important;
}

.menu .stock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 50%;
}

.menu .data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 80%;
}

.menu input {
    height: 5rem;
    width: 100%;
}

@media (orientation: portrait) {
    .menu .stock {
        grid-template-columns: 1fr;
    }

    .menu .data {
        grid-template-columns: 1fr;
    }
}

.text-center {
    text-align: center;
}

.update-stock {
    font-family: "TH Sarabun New";
    padding-top: 7.5rem;
    padding-inline: 5rem;
    font-size: 2.5rem;
}

.update-stock .one-line {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr;
    gap: 1rem;
    padding-bottom: 2rem;
    margin-top: 2rem;
    border-bottom: 1px solid black;
}

@media (orientation: portrait) {
    .update-stock .one-line {
        grid-template-columns: auto 1fr auto 1fr;
    }
}

.dropdown-menu input,li{
    font-size: 2.5rem;
}

.filter-option-inner-inner {
    font-family: "TH Sarabun New";
    font-size: 2.5rem;
}

.one-line .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 100%;
}

.update-stock label,input,button,span {
    font-size: 2.5rem;
}

.update-stock #quantity, #date {
    width: 100%;
}

.update-stock .submit {
    width: 50%;
    margin-left: 25%;
    margin-bottom: 10rem;
}

.update-stock .duplicate,.delete {
    width: 10rem;
}

.calc_stock {
    font-family: "TH Sarabun New";
    padding-top: 5rem;
    padding-inline: 5rem;
    font-size: 2.25rem;
}

.all_stock {
    font-family: "TH Sarabun New";
    padding-top: 5rem;
    padding-inline: 5rem;
    font-size: 3rem;

    align-items: center;
    margin: 0;
}

.all_stock form {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
}

.all_stock .submit {
    font-family: "TH Sarabun New";
    font-size: 3rem;
}

.all_stock select {
    font-family: "TH Sarabun New";
    font-size: 3rem;
}

.all_stock table {
    width: 100%;
    margin-bottom: 10rem;
}

.all_stock table th {
    border: 3px solid black;
    background: black;
    color: white;
    text-align: center;
}

.all_stock table td {
    text-align: center;
    border: 1px solid black;
    background: whitesmoke;
}

.all_stock .history th, .all_stock .history td {
    font-size: 2rem;
}

.all_stock .sku, .remark {
    text-align: start;
}

.his {
    margin: 0;
}

.conclude-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-block: 2rem;
}

.conclude-info p {
    text-align: center;
    margin-block-start: 0; 
    margin-block-end: 0;
}

.conclude-info p span {
    font-size: 3.25rem;
    text-decoration: underline;
}

div.table-container {
    width: 100%;
    height: 85dvh;
    overflow: scroll;
}

table.indi-product {
    max-width: 150%;
    width: auto !important;
}

table.indi-product tr td {
    width: 1%;
    white-space: nowrap;
}

table.indi-product tr th {
    width: 1%;
    white-space: nowrap;
    border: 1px solid white;
    padding-inline: 0.5rem;
}

.edit {
    width: 1%;
    white-space: nowrap;
}

.productTable .bootstrap-select {
    width: 100% !important;
}

.productTable .sku {
    min-width: 20rem !important;
    background: rgb(238, 234, 230);
}

.double-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.double-table p {
    margin: 0;
    padding: 0;
    border: 1px solid black;
}

.full {
    grid-column: span 2;
}

.no-line {
    text-decoration: none !important;
}

.width-max {
    font-size: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 4px;
}