.kanit-thin {
    font-family: "Kanit", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.kanit-thin-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.kanit-extralight {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.kanit-extralight-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.kanit-light {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.kanit-light-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.kanit-regular {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.kanit-regular-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.kanit-medium {
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.kanit-medium-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.kanit-semibold {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.kanit-semibold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.kanit-bold {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.kanit-bold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.kanit-extrabold {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.kanit-extrabold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.kanit-black {
    font-family: "Kanit", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.kanit-black-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 900;
    font-style: italic;
}

.sarabun-thin {
    font-family: "Sarabun", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.sarabun-thin-italic {
    font-family: "Sarabun", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.sarabun-extralight {
    font-family: "Sarabun", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.sarabun-extralight-italic {
    font-family: "Sarabun", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.sarabun-light {
    font-family: "Sarabun", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.sarabun-light-italic {
    font-family: "Sarabun", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.sarabun-regular {
    font-family: "Sarabun", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.sarabun-regular-italic {
    font-family: "Sarabun", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.sarabun-medium {
    font-family: "Sarabun", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.sarabun-medium-italic {
    font-family: "Sarabun", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.sarabun-semibold {
    font-family: "Sarabun", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.sarabun-semibold-italic {
    font-family: "Sarabun", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.sarabun-bold {
    font-family: "Sarabun", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.sarabun-bold-italic {
    font-family: "Sarabun", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.sarabun-extrabold {
    font-family: "Sarabun", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.sarabun-extrabold-italic {
    font-family: "Sarabun", sans-serif;
    font-weight: 800;
    font-style: italic;
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite
}

.loader::before,
.loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 3px solid #3c96c8;
    animation: prixClipFix 2s linear infinite;
}

.loader::after {
    border-color: #c5cf37;
    animation: prixClipFix 2s linear infinite, rotate 0.5s linear infinite reverse;
    inset: 6px;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }

    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }

    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)
    }

    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
    }
}

/* Custom Global */
body {
    margin: 0;
    height: 100vh;
    color: #5a5a5a;
    background-color: #F5F5F5;
}

body a {
    text-decoration: none;
}

.fs-11 {
    font-size: 11px;
}

.fs-12 {
    font-size: 12px;
}

.fs-13 {
    font-size: 13px;
}

.fs-14 {
    font-size: 14px;
}

.fs-15 {
    font-size: 15px;
}

.fs-16 {
    font-size: 16px;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

.gap-40 {
    gap: 40px;
}

.gap-50 {
    gap: 50px;
}

.gap-60 {
    gap: 60px;
}

.heading h2,
.heading h3 {
    color: #414040;
    font-weight: normal;
}

#filter-box {
    padding: 20px;
    background-color: #FFF;
    border-radius: 10px;
    border: 1px solid #e7e7e7;
}

.font-green {
    color: rgb(105 185 146);
}

.font-orange {
    color: #c58002;
}

.font-red {
    color: #ff6d6d;
}

.font-gray {
    color: #a6a6a6;
}

.box-toggle .hb {
    display: none;
    margin-top: 25px;
    border-top: 1px solid #ededed;
    padding-top: 25px;
}

.box-toggle:first-child .hb {
    display: block;
}

.box-toggle .fl {
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: center;
}

.box-toggle .sl {
    display: flex;
    justify-content: space-between;
}

.box-toggle .sl .sb {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.box-toggle .hb .sl .sb.size-ml {
    font-size: 13px;
    margin-bottom: 5px;
}

.box-toggle .hb .sl .rs {
    font-size: 13px;
    margin-left: 5px;
}

.box-toggle .hb .sl .rs .pc {
    font-size: 12px;
}

.box-toggle .hd {
    font-size: 13px;
    font-weight: 300;
    color: #9E9E9E;
}

.box-toggle .rs {
    color: #5a5a5a;
    text-align: right;
}

.box-toggle .rs.more {
    color: #9E9E9E;
    font-size: 13px;
}

.box-toggle .pc {
    margin-left: 10px;
    font-size: 14px;
}

.box-toggle {
    cursor: pointer;
    position: relative;
    border: 1px solid #ededed;
    background-color: #f7f9fa;
    border-radius: 10px;
    padding: 25px;
}

.box-toggle .sb {
    position: relative;
}

.box-toggle .fl .sb:first-child {
    padding-left: 20px;
}

.fa-ellipsis {
    cursor: pointer;
}

.error {
    color: #ff6f6f;
    font-size: 12px;
    font-weight: 300;
}

.data-preform,
.data-fail {
    /*display: none;*/
    text-align: right;
}

.data-hidden {
    width: 0px !important;
    height: 0px !important;
    display: inline-block !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}


table.style-one {
    width: 100%;
    border-collapse: inherit;
    font-size: 13px;
    border-spacing: 0px 5px;
}

table.style-one tbody td:first-child,
table.style-one tbody th:first-child {
    border-radius: 10px 0 0 10px;
    border-left: 1px solid;
}

table.style-one tbody td:last-child,
table.style-one tbody th:last-child {
    border-radius: 0 10px 10px 0;
    border-right: 1px solid;
}

table.style-one td,
table.style-one th {
    padding: 15px 20px;
    background: #FFF;
    border-top: 1px solid;
    border-bottom: 1px solid;
    color: #484848;
    border-color: #e7e7e7 !important;
    white-space: nowrap;
    width: auto;
}

table.style-one>tbody>tr,
table.style-one>tbody>tr>th,
table.style-one>tbody>tr>td {
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    white-space: nowrap;
}

table.style-one th {
    background-color: #176c9b;
    color: #FFF;
    font-weight: normal;
}

table.style-one td.label {
    text-align: center;
}

.style-one td.user-status span {
    font-size: 11px;
    border-radius: 5px;
    color: #FFF;
    padding: 4px 12px;
}

.style-one td.user-status.active span {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.style-one td.user-status.suspended span {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.style-one td.action {
    text-align: center;
}

.style-one td.action span {
    font-size: 12px;
    border-radius: 5px;
    color: #FFF;
    padding: 4px 14px;
    background-color: #007bff;
    border: 1px solid #007bff;
    cursor: pointer;
    white-space: nowrap;
}

.style-one td.action .fa-edit {
    margin-right: 6px;
}

.table-wrapper {
    overflow: auto;
    white-space: nowrap;
}

input[type="radio"] {
    width: unset !important;
    margin: 0 10px 0 0;
}

.style-one td.product-name span {
    color: #717171;
    margin-left: 5px;
    font-size: 10px;
    font-weight: 300;
}

/* Table Style Two */
.style-two {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    background-color: #f7f9fa;
    border: 1px solid #ededed;
}

.style-two td,
.style-two th {
    border-bottom: 1px solid #ededed;
    padding: 12px 12px;
}

.style-two td.note {
    max-width: 300px;
}

.style-two td.note span.text {
    white-space: normal;
    word-break: break-all;
}

.style-two tr.bg-red {
    background-color: #ffe8e8;
}

.style-two tr:hover {
    background-color: #ddd;
}

.style-two th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #e5e5e5;
    font-weight: normal;
}

.style-two>tbody>tr,
.style-two>tbody>tr>th,
.style-two>tbody>tr>td {
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    white-space: nowrap;
}

/* Table Style Three */
.style-three {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    border: 1px solid #ededed;
    background-color: #FFF;
}

.style-three td,
.style-three th {
    padding: 18px 30px;
    border-bottom: 1px solid #ededed;
}

.style-three tr.bg-red {
    background-color: #ffe8e8;
}

.style-three tr:nth-child(odd) {
    background-color: #f8f9fd;
}


.style-three th {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: left;
    background-color: rgb(240 246 255);
    font-weight: 500;
}

.style-three td.user-status span {
    font-size: 11px;
    border-radius: 5px;
    color: #FFF;
    padding: 4px 12px;
}

.style-three td.user-status.active span {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.style-three td.user-status.suspended span {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.style-three td.action {
    text-align: center;
}

.style-three td.action span {
    font-size: 12px;
    border-radius: 5px;
    padding: 4px 14px;
    background-color: #deeaef;
    border: 1px solid #c5e0eb;
    color: #4d8dbd;
    cursor: pointer;
    white-space: nowrap;
}

.style-three td.action .fa-edit {
    margin-right: 6px;
}

.start-datetime span.time,
.end-datetime span.time {
    font-size: 11px;
    color: #a5a5a5;
}

.ref-id {
    font-size: 10px;
    color: #a6a6a6;
}

.table-material {
    display: flex;
    flex-direction: column;
}

.table-material .preform {
    order: 1;
}

.table-material .label {
    order: 2;
}

.table-material .lid {
    order: 3;
}

.table-material .other {
    order: 4;
}

.obox {
    margin-top: 20px;
}

.obox h3 {
    color: #707070;
}

.style-three .material-name {
    color: #005f93;
}

td.start-datetime {
    padding-left: 20px;
}

td.action {
    padding-right: 20px;
}

#reportrange {
    cursor: pointer;
    padding: 0px 20px;
    border: 1px solid #e7e7e7;
    margin-top: 5px;
    min-height: 36px;
    color: #525252;
    font-size: 13px;
    font-family: 'Kanit';
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    border-radius: 5px;
}

#reportrange span {
    margin-right: 5px;
}

.text-header .button span,
.button span {
    padding: 8px 22px;
    background-color: #176c9b;
    border-radius: 5px;
    font-size: 12px;
    color: #FFF;
    font-weight: 300;
    cursor: pointer;
}

.button span:hover {
    background-color: #2183b8;
}

#EditBox .box {
    padding: 30px;
}

#EditBox .result {
    display: flex;
    justify-content: center;
}

#EditBox hr {
    margin-top: 20px;
    margin-bottom: 10px;
    border: 1px solid #1414141f;
}

#EditBox .input {
    display: inline-block;
    width: 49%;
}

#EditBox button {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    margin-top: 10px;
    color: #FFF;
    border: unset;
    background: rgb(19 131 197 / 82%);
    background: linear-gradient(135deg, rgba(56, 148, 202, 1) 0%, rgba(252, 232, 71, 1) 100%);
    cursor: pointer;
}

#EditBox .BoxCancel {
    background: #c1c0c0;
    font-weight: 300;
}

#edit-material-form .BoxCancel {
    margin-top: 20px;
}

a {
    color: #FFF;
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100;
    backdrop-filter: blur(2px);
    color: #686868;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    width: 400px;
    /*min-height: 100px;*/
    overflow-y: hidden;
    background: #f1f1f1;
    border: 1px solid #EEE;
    position: relative;
    border-radius: 5px;
}

.add-new-choose .button {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.add-new-choose .button span {
    width: 100%;
    text-align: center;
}

#login-form input {
    background: unset;
    border: none;
    outline: none;
    padding-left: 28px;
    color: #525252;
    width: 90%;
}

#EditBox input {
    background: unset;
    border: none;
    outline: none;
    color: #525252;
    width: 100%;
}

#reset-password {
    cursor: pointer;
    color: #2b83b3;
}

#hide-product {
    cursor: pointer;
    color: #ef5350;
}

.flex {
    display: flex !important;
}

#EditBox .text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

:focus-visible {
    outline: none;
}

button:disabled,
button[disabled],
input:disabled {
    cursor: not-allowed !important;
}

#production-table input {
    text-indent: unset;
    padding: 0 16px;
    width: -webkit-fill-available;
    background-color: #fbfbfb;
}

#production-table select {
    background-color: #fbfbfb;
}

.form-box {
    margin-top: 20px;
    padding: 20px;
    background-color: #FFF;
    border-radius: 10px;
    border: 1px solid #e7e7e7;
}

.form-box .box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-box .box .input {
    width: calc(25% - 15px);
}

.right .form-box .box {
    gap: 10px;
    padding: 15px 0px;
    border-top: 1px solid #e7e7e7;
    transition: all .5s;
    animation: animateElement linear .3s;
    animation-iteration-count: 1;
}

.right .form-box .box:first-child {
    border: none;
    padding-top: 0;
}

.right .form-box .box .input {
    width: calc(50% - 5px);
}

.right .form-box .box .input .data {
    float: right;
}

.right .result-duration {
    float: right;
    font-size: 11px;
    color: #a6a6a6;
    margin-top: 6px;
}

.form-box input {
    display: block;
    width: 100%;
    min-height: 36px;
    border-radius: 5px;
    padding: 0;
    text-indent: 15px;
    color: #525252;
    font-size: 13px;
    font-family: 'Kanit';
    margin-top: 5px;
    border: 1px solid #e7e7e7;
}

.form-box label {
    color: #20719d;
}

.form-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

#production-table .flex {
    column-gap: 20px;
}

#production-table .left {
    width: 60%;
}

#production-table .right {
    width: 40%;
}

#production-form button {
    width: calc(50% - 5px);
}

button {
    padding: 6px 14px;
    background-color: #176c9b;
    color: #FFF;
    border: 1px solid #176c9b;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Kanit";
    font-weight: 300;
}

button.light {
    background-color: #cfdbe1;
    color: #054e76;
    font-weight: normal;
}

button.light.inactive {
    background-color: unset;
    color: #adadad;
    font-weight: normal;
    border-color: #adadad;
}

.text-right {
    text-align: right;
}

select {
    display: block;
    width: 100%;
    /*min-height: 38px;*/
    border: none;
    border-radius: 5px;
    text-indent: 15px;
    color: #525252;
    font-size: 13px;
    font-family: 'Kanit';
    margin-top: 5px;
    border: 1px solid #e7e7e7;
    background-color: #FFF;
    padding: 7.5px 0px;
}

.input-with-icon {
    padding: 8px 16px;
    color: #afafaf;
    font-size: 13px;
    background-color: #FFF;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
    border: 1px solid #e7e7e7;
}

.text-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.alert-text {
    padding: 10px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 300;
    text-align: center;
}

i.fa-solid.fa-trash {
    cursor: pointer;
}

.alert-text.red {
    color: #832a32;
    background-color: #f8d7dae6;
    border: 1px solid #f5c6cb;
}

.alert-text.green {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #afe3bb;
}

.alert-text.blue {
    color: #004085;
    background-color: #cce5ff;
    border: 1px solid #b8daff;
}

.alert-text.yellow {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

span.input-icon {
    position: absolute;
}

::placeholder {
    color: #afafaf;
    opacity: 1;
}

::-ms-input-placeholder {
    color: #afafaf;
}

/* Pen Code: Pie Chart */
* {
    box-sizing: border-box;
}

.pie-chart {
    margin: 20px auto 0px auto;
    display: block;
}

.container {
    padding: 0 40px;
    text-align: center;
}

.pie-chart {
    max-width: 300px;
    display: inline-block;
    position: relative;
    vertical-align: top;
}

.pie-chart+.pie-chart {
    margin-left: 40px;
}

/* D3: Line Chart */

#line-chart text {
    color: #9e9e9e;
}

#line-chart .axis line {
    stroke: #9e9e9e;
}

#line-chart path.domain {
    stroke: #9e9e9e;
}

#line-chart circle {
    stroke-width: 3;
    stroke: #6a76d7;
}

#line-chart2 path.area {
    fill: #e4e6f8;
}

#line-chart2 .gridX line,
.gridY line {
    stroke: lightgrey;
    stroke-opacity: 0.3;
    shape-rendering: crispEdges;
}

#line-chart2 g.axis {
    opacity: 0.5;
}

#line-chart2 .dots-build circle {
    stroke-width: 3;
    stroke: #6a76d7;
}

#line-chart2 .dots-buy circle {
    stroke-width: 3;
    stroke: #dd816b;
}

#line-chart2 g.gridX .domain,
#line-chart2 g.gridY .domain {
    stroke: none;
}

.max-circ {
    width: 200px;
    height: 200px;
    margin: auto;
    padding-top: 70px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    text-align: center;
    text-transform: uppercase;
    /*box-shadow: inset 0 0 50px 0 rgba(0, 0, 0, 0.3), 0 0 7px rgba(255, 255, 255, 0.8);*/
}

.max-circ span {
    display: block;
}

.max-circ .label {
    font-size: 12px;
    color: #9E9E9E;
}

.max-circ .value {
    font-size: 24px;
    font-weight: 700;
    filter: brightness(1.4);
}

.legend {
    margin: 20px 0 0;
    font-size: 12px;
    text-align: center;
}

.legend li {
    margin: 0 5px 10px;
    padding: 8px 8px 5px;
    border-radius: 1px;

    color: #9e9e9e;
    display: inline-block;
}

.legend li span {
    color: #4e4e4e;
    font-size: 14px;
}

.slice {
    cursor: pointer;
    filter: brightness(1) grayscale(0.15);
    transition: transform 0.2s, filter 0.2s;
}

.slice path {
    transition: opacity 0.2s;
}

.slice text {
    font-size: 11px;
    fill: #fff;
    font-weight: 300;
}

.slice:hover,
.slice.max {
    transform: scale(1.05);
    filter: brightness(1.4) grayscale(0);
}

.slice:hover path,
.slice.max path {
    opacity: 1;
}

/* Production Overview Page */
#production-overview .box {
    width: 100%;
    background-color: #FFF;
    border-radius: 10px;
    padding: 20px;
}

#production-overview .flex {
    flex-direction: row;
    gap: 30px;
}

#production-overview .box.pie {
    width: 40%;
}

#production-overview span.heading {
    display: block;
    color: #9E9E9E;
}

#production-overview .tbox {
    margin-top: 30px;
}

#production-overview .fd {
    position: relative;
    padding-left: 30px;
}

#data-by-size .item .flex {
    gap: 15px;
    align-items: center;
}

#data-by-size .text {
    font-size: 14px;
    color: #5a5a5a;
}

#production-overview .number {
    font-size: 22px;
    color: #4e4e4e;
}

#production-overview .pie-chart {
    margin: 20px auto 0px auto;
    display: block;
}

#production-overview .ld {
    margin-top: 10px;
    font-size: 14px;
}

#data-by-size .item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#data-by-size .item .icon {
    width: 63px;
    padding: 4px;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
}

#production-overview .ld span:last-child {
    color: #9E9E9E;
}

#production-overview .border::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 10px;
    width: 5px;
    height: 100%;
    background-color: #479cc5;
}

#production-overview .border {
    display: contents;
}

#report-production-monthly {
    display: flex;
    flex-direction: column !important;
}

/* Production Table Page */
.filter-bar {
    display: flex;
    justify-content: space-between;
}

.filter-bar .date-filter input {
    height: calc(100% - 2px);
    border: 1px solid #cdcdcd;
    text-align: center;
    border-radius: 5px;
    font-family: "Kanit";
    color: #5c5c5c;
    padding: 6px 0 !important;
    background-color: #FFF !important;
}

div.date-filter {
    width: unset;
}

.filter-bar div {
    white-space: nowrap;
}

.linenumber {
    background-color: #ddd;
    padding: 3px 7px;
    border-radius: 100px;
    display: inline-block;
    font-size: 10px;
    margin-top: 5px;
    border: 1px solid;
}

.icon-sun-moon {
    display: inline-block;
}

.dot {
    height: 6px;
    width: 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
}

.dot.lid-pink {
    background-color: #ff86b8;
}

.dot.lid-blue {
    background-color: #62bdfd;
}

.dot.lid-white {
    background-color: #fff;
    border: 1px solid #d5d5d5;
}

.dot.lid-black {
    background-color: #131313;
}

table .dot {
    margin: 0 5px 2px 0;
}

span.dot-circle {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    display: inline-block;
}

.icon-sun-moon svg {
    margin-bottom: -7px;
}

span.day-name {
    background-color: #ddd;
    padding: 3px 12px;
    border-radius: 100px;
    display: inline-block;
    font-size: 10px;
    margin-top: 5px;
    border: 1px solid;
}

span.day-name.sunday {
    background-color: #FFCDD2;
    border-color: #EF9A9A;
    color: #bf4442;
}

span.day-name.saturday {
    background-color: #D1C4E9;
    border-color: #B39DDB;
    color: #6d45b1;
}

span.day-name.friday {
    background-color: #BBDEFB;
    border-color: #90CAF9;
    color: #2375b7;
}

span.day-name.thursday {
    background-color: #FFE0B2;
    border-color: #FFCC80;
    color: #c57c02;
}

span.day-name.wednesday {
    background-color: #B2DFDB;
    border-color: #80CBC4;
    color: #00796B;
}

span.day-name.tuesday {
    background-color: #F8BBD0;
    border-color: #F48FB1;
    color: #AD1457;
}

span.day-name.monday {
    background-color: #eef5b0;
    border-color: #DCE775;
    color: #998c1b;
}

/* Mobile --------------------------------------------------------------------------------- */
@media (max-width: 1000px) {}

/* Custom Sidebar */
#container {
    height: 100vh;
}

#sidebar hr {
    margin: 20px;
    color: inherit;
    background-color: #FFF;
    border: 0;
    opacity: .25;
    height: 1px;
    width: calc(100% - 80px);
    padding: 0 20px;
}

/* Sidebar */

.layout {
    z-index: 1;
}

.layout .header {
    display: flex;
    align-items: center;
    padding: 20px;
}

.layout .content {
    padding: 12px 50px;
    display: flex;
    flex-direction: column;
}

.layout .footer {
    text-align: center;
    margin-top: auto;
    margin-bottom: 20px;
    padding: 20px;
}

.sidebar {
    color: #d7c42f;
    overflow-x: hidden !important;
    position: relative;
    z-index: 20;
}

.sidebar::-webkit-scrollbar-thumb {
    border-radius: 4px;
}

.sidebar:hover::-webkit-scrollbar-thumb {
    background-color: #1a4173;
}

.sidebar::-webkit-scrollbar {
    width: 0px;
    background-color: red;
}

/*#0c1e35*/
.sidebar .sidebar-layout {
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #002c44;
    z-index: 10;
}

.sidebar .sidebar-layout .sidebar-header {
    height: 100px;
    min-height: 100px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.sidebar .sidebar-layout .sidebar-header>span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar .sidebar-layout .sidebar-content {
    flex-grow: 1;
    padding: 10px 0;
}

.sidebar .sidebar-layout .sidebar-footer {
    height: 230px;
    min-height: 230px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

@keyframes animateElement {
    0% {
        opacity: 0;
        transform: scaleY(0) translateY(-100%);
    }

    100% {
        opacity: 1;
        transform: scaleY(1) translateY(0%);
    }
}

@keyframes swing {

    0%,
    30%,
    50%,
    70%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(5deg);
    }

    80% {
        transform: rotate(-5deg);
    }
}

.layout .sidebar {
    height: 100%;
    overflow: auto;
    width: 280px;
    min-width: 280px;
    -webkit-transition: width, left, right, 0.3s;
    transition: width, left, right, 0.3s;
}

.layout .sidebar .menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.layout .sidebar .menu .menu-header {
    padding: 10px 25px;
    font-size: 13px;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.layout .sidebar .menu .menu-item a {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    color: #d5d5d5;
}

.layout .sidebar .menu .menu-item a .menu-icon {
    font-size: 1.2rem;
    width: 35px;
    min-width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    display: inline-block;
    margin-right: 10px;
    border-radius: 2px;
    transition: color 0.3s;
}

.layout .sidebar .menu .menu-item a .menu-icon i {
    display: inline-block;
}

.layout .sidebar .menu .menu-item a .menu-title {
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
    transition: color 0.3s;
}

.layout .sidebar .menu .menu-item a .menu-prefix,
.layout .sidebar .menu .menu-item a .menu-suffix {
    display: inline-block;
    padding: 5px;
    opacity: 1;
    transition: opacity 0.3s;
}

.layout .sidebar .menu .menu-item a:hover .menu-title {
    color: #dee2ec;
}

.layout .sidebar .menu .menu-item a:hover .menu-icon {
    color: #dee2ec;
}

.layout .sidebar .menu .menu-item a:hover .menu-icon i {
    animation: swing ease-in-out 0.5s 1 alternate;
}

.layout .sidebar .menu .menu-item a:hover::after {
    border-color: #dee2ec !important;
}

.layout .sidebar .menu .menu-item.sub-menu {
    position: relative;
}

.layout .sidebar .menu .menu-item.sub-menu>a::after {
    content: '';
    transition: transform 0.3s;
    border-right: 2px solid currentcolor;
    border-bottom: 2px solid currentcolor;
    width: 5px;
    height: 5px;
    transform: rotate(-45deg);
}

.layout .sidebar .menu .menu-item.sub-menu>.sub-menu-list {
    padding-left: 20px;
    display: none;
    overflow: hidden;
    z-index: 999;
}

.layout .sidebar .menu .menu-item.sub-menu.open>a {
    color: #dee2ec;
}

.layout .sidebar .menu .menu-item.sub-menu.open>a::after {
    transform: rotate(45deg);
}

.layout .sidebar .menu .menu-item.active>a .menu-title {
    color: #dee2ec;
}

.layout .sidebar .menu .menu-item.active>a::after {
    border-color: #dee2ec;
}

.layout .sidebar .menu .menu-item.active>a .menu-icon {
    color: #dee2ec;
}

.layout .sidebar .menu>ul>.sub-menu>.sub-menu-list {
    background-color: #0b1a2c;
}

.layout .sidebar .menu.icon-shape-circle .menu-item a .menu-icon,
.layout .sidebar .menu.icon-shape-rounded .menu-item a .menu-icon,
.layout .sidebar .menu.icon-shape-square .menu-item a .menu-icon {
    background-color: #0b1a2c;
}

.layout .sidebar .menu.icon-shape-circle .menu-item a .menu-icon {
    border-radius: 50%;
}

.layout .sidebar .menu.icon-shape-rounded .menu-item a .menu-icon {
    border-radius: 4px;
}

.layout .sidebar .menu.icon-shape-square .menu-item a .menu-icon {
    border-radius: 0;
}

.layout .sidebar:not(.collapsed) .menu>ul>.menu-item.sub-menu>.sub-menu-list {
    visibility: visible !important;
    position: static !important;
    transform: translate(0, 0) !important;
}

.layout .sidebar.collapsed .menu>ul>.menu-header {
    opacity: 0;
}

.layout .sidebar.collapsed .menu>ul>.menu-item>a .menu-prefix,
.layout .sidebar.collapsed .menu>ul>.menu-item>a .menu-suffix {
    opacity: 0;
}

.layout .sidebar.collapsed .menu>ul>.menu-item.sub-menu>a::after {
    content: '';
    width: 5px;
    height: 5px;
    background-color: currentcolor;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    right: 10px;
    top: 50%;
    border: none;
    transform: translateY(-50%);
}

.layout .sidebar.collapsed .menu>ul>.menu-item.sub-menu>a:hover::after {
    background-color: #dee2ec;
}

.layout .sidebar.collapsed .menu>ul>.menu-item.sub-menu>.sub-menu-list {
    transition: none !important;
    width: 200px;
    margin-left: 3px !important;
    border-radius: 4px;
    display: block !important;
}

.layout .sidebar.collapsed .menu>ul>.menu-item.active>a::after {
    background-color: #dee2ec;
}

.layout .sidebar.has-bg-image .menu.icon-shape-circle .menu-item a .menu-icon,
.layout .sidebar.has-bg-image .menu.icon-shape-rounded .menu-item a .menu-icon,
.layout .sidebar.has-bg-image .menu.icon-shape-square .menu-item a .menu-icon {
    background-color: rgba(11, 26, 44, 0.6);
}

.layout .sidebar.has-bg-image:not(.collapsed) .menu>ul>.sub-menu>.sub-menu-list {
    background-color: rgba(11, 26, 44, 0.6);
}

.layout.rtl .sidebar .menu .menu-item a .menu-icon {
    margin-left: 10px;
    margin-right: 0;
}

.layout.rtl .sidebar .menu .menu-item.sub-menu>a::after {
    transform: rotate(135deg);
}

.layout.rtl .sidebar .menu .menu-item.sub-menu>.sub-menu-list {
    padding-left: 0;
    padding-right: 20px;
}

.layout.rtl .sidebar .menu .menu-item.sub-menu.open>a::after {
    transform: rotate(45deg);
}

.layout.rtl .sidebar.collapsed .menu>ul>.menu-item.sub-menu a::after {
    right: auto;
    left: 10px;
}

.layout.rtl .sidebar.collapsed .menu>ul>.menu-item.sub-menu>.sub-menu-list {
    margin-left: -3px !important;
}

.layout .sidebar.collapsed .sidebar-collapser {
    left: 60px;
}

.layout .sidebar.collapsed .sidebar-collapser i {
    transform: rotate(180deg);
}

/*
.sidebar-toggler {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1000;
}*/

.social-links a {
    margin: 0 10px;
    color: #3f4750;
}

/* add */
.layout {
    min-height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.layout.has-sidebar {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
}

.layout .header {
    -webkit-transition: width, 0.3s;
    transition: width, 0.3s;
    height: 64px;
    min-height: 64px;
    position: relative;
}

.layout .sidebar {
    width: 280px;
    min-width: 280px;
    -webkit-transition: width, left, right, 0.3s;
    transition: width, left, right, 0.3s;
}

.layout .sidebar.collapsed {
    width: 80px;
    min-width: 80px;
}

span.downtime-delete {
    cursor: pointer;
    font-size: 12px;
    color: #ff7070;
}

.dbox {
    width: 100%;
    text-align: right;
}

@media (max-width: 480px) {
    .layout .sidebar.break-point-xs {
        position: fixed;
        left: -280px;
        height: 100%;
        top: 0;
        z-index: 100;
    }

    .layout .sidebar.break-point-xs.collapsed {
        left: -80px;
    }

    .layout .sidebar.break-point-xs.toggled {
        left: 0;
    }

    .layout .sidebar.break-point-xs.toggled~.overlay {
        display: block;
    }

    .layout .sidebar.break-point-xs~.layout .header {
        width: 100% !important;
        -webkit-transition: none;
        transition: none;
    }
}


@media (max-width: 576px) {
    .layout.fixed-sidebar .sidebar~.layout {
        margin-top: 60px;
    }

    .layout .sidebar.break-point-sm {
        position: fixed;
        left: -280px;
        height: 100%;
        top: 0;
        z-index: 100;
    }

    .layout .sidebar.break-point-sm.collapsed {
        left: -80px;
    }

    .layout .sidebar.break-point-sm.toggled {
        left: 0;
    }

    .layout .sidebar.break-point-sm.toggled~.overlay {
        display: block;
    }

    .layout .sidebar.break-point-sm~.layout .header {
        width: 100% !important;
        -webkit-transition: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    .layout .sidebar.break-point-md {
        position: fixed;
        left: -280px;
        height: 100%;
        top: 0;
        z-index: 100;
    }

    .layout .sidebar.break-point-md.collapsed {
        left: -80px;
    }

    .layout .sidebar.break-point-md.toggled {
        left: 0;
    }

    .layout .sidebar.break-point-md.toggled~.overlay {
        display: block;
    }

    .layout .sidebar.break-point-md~.layout .header {
        width: 100% !important;
        -webkit-transition: none;
        transition: none;
    }
}

@media (max-width: 992px) {
    .layout .sidebar.break-point-lg {
        position: fixed;
        left: -280px;
        height: 100%;
        top: 0;
        z-index: 100;
    }

    .layout .sidebar.break-point-lg.collapsed {
        left: -80px;
    }

    .layout .sidebar.break-point-lg.toggled {
        left: 0;
    }

    .layout .sidebar.break-point-lg.toggled~.overlay {
        display: block;
    }

    .layout .sidebar.break-point-lg~.layout .header {
        width: 100% !important;
        -webkit-transition: none;
        transition: none;
    }
}

@media (max-width: 1200px) {
    .layout .sidebar.break-point-xl {
        position: fixed;
        left: -280px;
        height: 100%;
        top: 0;
        z-index: 100;
    }

    .layout .sidebar.break-point-xl.collapsed {
        left: -80px;
    }

    .layout .sidebar.break-point-xl.toggled {
        left: 0;
    }

    .layout .sidebar.break-point-xl.toggled~.overlay {
        display: block;
    }

    .layout .sidebar.break-point-xl~.layout .header {
        width: 100% !important;
        -webkit-transition: none;
        transition: none;
    }
}

@media (max-width: 1600px) {
    .layout .sidebar.break-point-xxl {
        position: fixed;
        left: -280px;
        height: 100%;
        top: 0;
        z-index: 100;
    }

    .layout .sidebar.break-point-xxl.collapsed {
        left: -80px;
    }

    .layout .sidebar.break-point-xxl.toggled {
        left: 0;
    }

    .layout .sidebar.break-point-xxl.toggled~.overlay {
        display: block;
    }

    .layout .sidebar.break-point-xxl~.layout .header {
        width: 100% !important;
        -webkit-transition: none;
        transition: none;
    }
}

.layout .footer {
    height: 64px;
    min-height: 64px;
}

.layout .content {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.layout .overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 99;
    display: none;
}

.fixed-top-nav {
    background-color: #002c44;
    position: fixed;
    top: 0;
    min-height: 60px;
    width: 100%;
    z-index: 30;
}

.layout .sidebar-toggler,
.fixed-top-nav {
    display: none;
}

#production-form .action.flex {
    margin-top: 15px;
    gap: 10px;
}

/* Mobile */
@media (max-width: 480px) {

    #production-form .form-box {
        width: calc(100% + 30px);
        margin-left: -15px;
        border-radius: 0;
    }

    div.date-filter {
        width: 100%;
        margin-bottom: 10px;
    }

    #date-filter div {
        width: 100%;
        display: flex;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
    }


    .layout .sidebar-toggler.break-point-xs {
        display: initial;
    }

    .layout .content {
        padding: 0px 15px 20px 15px;
    }

    .heading h2 {
        font-size: 18px;
    }

    #production-overview .fbox {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    #production-overview .fbox .box {
        width: calc(50% - 5px);
    }

    #production-overview .box {
        padding: 15px;
    }

    #production-overview .ld {
        font-size: 12px;
    }

    #production-overview span.heading {
        font-size: 14px;
    }

    #production-overview .number {
        font-size: 18px;
    }

    #production-overview .tbox {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        margin-top: 10px;
        gap: 10px;
        width: calc(100% + 30px);
        margin-left: -15px;
    }

    #production-overview .tbox .box {
        border-radius: 0px;
    }

    #production-overview .box-toggle {
        padding: 15px;
    }

    #production-overview .box-toggle .hb .sl .sb.size-ml {
        font-size: 12px;
    }

    #production-overview .box.pie {
        width: 100%;
    }

    #production-overview .box-toggle .fl .sb:last-child {
        display: none;
    }

    #production-overview .box-toggle .fl .sb:first-child {
        padding-left: 15px;
    }

    #production-overview .border::before {
        width: 4px;
    }

    #production-overview .box-toggle .hd {
        font-size: 12px;
    }

    #production-overview .rs {
        font-size: 14px;
        margin-left: 0;
    }

    #production-overview .box-toggle .sl .sb {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    #production-overview .box-toggle .pc {
        font-size: 12px;
    }

    #production-form div.flex {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    #production-table .left {
        width: 100%;
    }

    #production-table .right {
        width: 100%;
    }


    #production-table .form-box .box {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    #production-table .form-box .box .input {
        width: calc(50% - 5px);
    }

    .form-box h3 {
        font-size: 16px;
    }

    #production-table .filter-bar {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {

    .layout .sidebar-toggler.break-point-sm {
        display: initial;
    }

    .fixed-top-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        padding: 0px 15px;
    }
}

@media (max-width: 768px) {
    .layout .sidebar-toggler.break-point-md {
        display: initial;
    }
}

@media (max-width: 992px) {
    .layout .sidebar-toggler.break-point-lg {
        display: initial;
    }
}

@media (max-width: 1200px) {
    .layout .sidebar-toggler.break-point-xl {
        display: initial;
    }
}

@media (max-width: 1600px) {
    .layout .sidebar-toggler.break-point-xxl {
        display: initial;
    }
}

.layout.fixed-sidebar {
    height: 100%;
}

.layout.fixed-sidebar .sidebar {
    height: 100%;
    overflow: auto;
}

.layout.fixed-sidebar .sidebar~.layout {
    height: 100%;
    overflow: auto;
}

.layout.fixed-header .header {
    position: fixed;
    width: 100%;
    z-index: 2;
}

.layout.fixed-header .header~.layout,
.layout.fixed-header .header~.content {
    margin-top: 64px;
}

.layout.fixed-header.fixed-sidebar .header {
    width: calc(100% - 280px);
}

.layout.fixed-header.fixed-sidebar .sidebar.collapsed~.layout .header {
    width: calc(100% - 80px);
}

.layout.rtl {
    direction: rtl;
}

@media (max-width: 480px) {
    .layout.rtl .sidebar.break-point-xs {
        left: auto;
        right: -280px;
    }

    .layout.rtl .sidebar.break-point-xs.collapsed {
        left: auto;
        right: -80px;
    }

    .layout.rtl .sidebar.break-point-xs.toggled {
        left: auto;
        right: 0;
    }
}

@media (max-width: 576px) {
    .layout.rtl .sidebar.break-point-sm {
        left: auto;
        right: -280px;
    }

    .layout.rtl .sidebar.break-point-sm.collapsed {
        left: auto;
        right: -80px;
    }

    .layout.rtl .sidebar.break-point-sm.toggled {
        left: auto;
        right: 0;
    }
}

@media (max-width: 768px) {
    .layout.rtl .sidebar.break-point-md {
        left: auto;
        right: -280px;
    }

    .layout.rtl .sidebar.break-point-md.collapsed {
        left: auto;
        right: -80px;
    }

    .layout.rtl .sidebar.break-point-md.toggled {
        left: auto;
        right: 0;
    }
}

@media (max-width: 992px) {
    .layout.rtl .sidebar.break-point-lg {
        left: auto;
        right: -280px;
    }

    .layout.rtl .sidebar.break-point-lg.collapsed {
        left: auto;
        right: -80px;
    }

    .layout.rtl .sidebar.break-point-lg.toggled {
        left: auto;
        right: 0;
    }
}

@media (max-width: 1200px) {
    .layout.rtl .sidebar.break-point-xl {
        left: auto;
        right: -280px;
    }

    .layout.rtl .sidebar.break-point-xl.collapsed {
        left: auto;
        right: -80px;
    }

    .layout.rtl .sidebar.break-point-xl.toggled {
        left: auto;
        right: 0;
    }
}

@media (max-width: 1600px) {
    .layout.rtl .sidebar.break-point-xxl {
        left: auto;
        right: -280px;
    }

    .layout.rtl .sidebar.break-point-xxl.collapsed {
        left: auto;
        right: -80px;
    }

    .layout.rtl .sidebar.break-point-xxl.toggled {
        left: auto;
        right: 0;
    }
}