body::before {
  background-size: cover;
  background-attachment: fixed;
  content: "";
  will-change: transform;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  position: fixed;
}

@font-face {
  font-family: "cs-chatthai-ui";
  src: url("fonts/cs-chatthai-ui/cschatthaiui-webfont.woff2") format("woff2"),
    url("fonts/cs-chatthai-ui/cschatthaiui-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6,
nav,
a,
div,
p,
span,
td,
input {
  font-family: "cs-chatthai-ui", sans-serif !important;
}

@media (max-width: 512px) and (-webkit-min-device-pixel-ratio: 1.5),
(max-width: 512px) and (min-resolution: 1.5dppx),
(max-width: 1024px) and (-webkit-max-device-pixel-ratio: 1.5),
(max-width: 1024px) and (max-resolution: 1.5dppx) {
  body::before {
    background-color: #fff;
  }
}

@media (min-width: 513px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 1.5),
(min-width: 513px) and (max-width: 1024px) and (min-resolution: 1.5dppx),
(min-width: 1025px) and (max-width: 2048px) and (-webkit-max-device-pixel-ratio: 1.5),
(min-width: 1025px) and (max-width: 2048px) and (max-resolution: 1.5dppx) {
  body::before {
    background-color: #fff;
  }
}

@media (min-width: 1025px) and (-webkit-min-device-pixel-ratio: 1.5),
(min-width: 1025px) and (min-resolution: 1.5dppx),
(min-width: 2049px) and (-webkit-max-device-pixel-ratio: 1.5),
(min-width: 2049px) and (max-resolution: 1.5dppx) {
  body::before {
    background-color: #fff;
  }
}

.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: "liga";
}

a {
  color: green !important;
}

th,
td,
div,
a {
  text-decoration: none;
  vertical-align: middle !important;
}

h3 {
  padding: 16px;
}

input {
  padding: 3px;
  line-height: 20px;
}

p {
  font-size: 15px;
}

strong {
  font-weight: bold !important;
}

td {
  text-align: left !important;
}

.mdl-button:focus:not(:active) {
  background-color: transparent;
}

.mdl-cell {
  background-color: #fff;
}

.mdl-data-table {
  border: 0px;
}

.mdl-data-table td {
  border: 0px;
  border-top: 0px;
  border-bottom: 0px;
  white-space: normal;
}

.mdl-data-table th,
.mdl-data-table td {
  padding: 5px 5px;
  text-align: left !important;
  font-size: 15px !important;
  height: unset !important;
  line-height: 24px;
}

.mdl-dialog {
  top: 60px;
  padding: 0px;
  width: 80% !important;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.mdl-dialog__content {
  padding: 0px;
}

.mdl-dialog__content p {
  font-size: 18px;
  padding-top: 10px;
}

.mdl-dialog__actions {
  padding: 0px;
}

/* Fixes for IE 10 */
.mdl-grid {
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
  padding: 0px;
}

.mdl-layout__drawer-button {
  line-height: 54px;
}

.mdl-layout__drawer .mdl-navigation__link:hover {
  border-left: 4px solid #8bc34a;
}

.mdl-layout__header {
  /* This background is dark, so we set text to white. Use 87% black instead if
    your background is light. */
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mdl-layout__header-row {
  padding: 10px;
}

.mdl-layout__tab {
  color: #fff;
  font-size: 16px;
}

.mdl-layout-title {
  color: #000e8f;
}

.mdl-menu__item {
  font-size: 14px !important;
  height: 25px;
  line-height: 25px;
  transition-delay: 0s !important;
}

.mdl-radio__label {
  font-size: 14px;
}

.mdl-textfield {
  padding: 5px 0px 5px 0px;
}

.mdl-textfield__input {
  font-size: 14px;
  background-color: #fff;
}

.mdl-textfield__label {
  top: 8px;
  font-size: 14px;
  color: red;
  transition: opacity 250ms ease-in-out;
}

.mdl-textfield__label:after {
  top: 25px;
}

.action_bar {
  padding: 10px;
  background-color: #c0c0c0;
}

.address {
  border-width: 0.8px;
  border-style: solid;
  border-color: #909090;
  padding: 5px 5px;
}

.alert {
  color: #fff;
  background-color: crimson;
  font-size: 18px;
  padding: 10px;
}

.align_center {
  width: 100% !important;
  text-align: center;
}

.completed {
  color: #000e8f;
  font-size: 18px;
  padding: 10px;
}

.errormsg {
  color: crimson;
}

.explanation {
  padding: 10px;
}

.sub-title {
  color: #000e8f;
  font-size: 15px;
  font-weight: bold;
}

.gray {
  background-color: #ccc;
}

.header-form {
  color: #000e8f;
  font-size: 18px;
  font-weight: bold;
}

div.header-form {
  color: #000e8f;
  font-size: 15px;
  padding: 25px 0px 0px 8px;
}

div.sub-header-form {
  color: #000e8f;
  font-size: 14px;
  padding: 25px 0px 0px 8px;
}

.inline {
  display: inline-block;
}

.login_form {
  padding: 10px;
}

.photo {
  background-color: #f0f0f0;
  margin-top: 5px;
  padding: 5px;
  width: 110px;
  text-align: center;
}

.responsive {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.warning_msg {
  color: crimson;
}

.view_result th {
  color: #fff;
  background-color: #687897;
}

.view_result td {
  color: #fff;
  background-color: #978768;
  border-bottom: 1px solid #c0c0c0;
}

.nowrap {
  white-space: nowrap !important;
}