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, select, button { 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;
  }
  .center {
    width: 100%;
    border: none;
  }
  select {
    width: 265px;
  }
  .mdl-data-table th, .mdl-data-table td {
    padding: 2px 3px 2px 3px !important;
    font-size: 14px !important; 
  }
}

@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;
  }
  .center {
    width: 100%;
    border: none;
  }
  select {
    width: 265px;
  }
  .mdl-data-table th, .mdl-data-table td {
    padding: 2px 3px 2px 3px !important;
    font-size: 14px !important; 
  }
}

@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;
  }
  .center {
    width: 90%;
    border: 2px solid #c0c0c0;
  }
  select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -ms-appearance: none !important;
    appearance: none !important;
    background: url(images/down-arrow.png) no-repeat right 4px !important;
    width: 500px;
  }
  .mdl-data-table th, .mdl-data-table td {
    padding: 4px 8px 4px 8px !important;
    font-size: 15px !important; 
  }
}
.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';
}
th, td, div {
  line-height: 24px;
  vertical-align: middle !important;
}
td.header-form {
  font-size: 15px !important;
}
a {
  line-height: 24px;
  text-decoration: none;
}
h3 {
  padding: 16px;
}
input {
  padding: 3px;
  line-height: 20px;
}
ol, ul {
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 10px;
}
p {
  font-size: 15px;
}
select {
  margin-bottom: 10px;
  padding: 4px;
  font-size: 14.5px;
  line-height: 1.5;
  height: 36px;
  background:#f4f4f4;
}
strong {
  font-weight: bold !important;
}
td {
  text-align: left !important;
}
.mdl-button {
  margin-top: -4px;
  font-size: 15px;
  line-height: 1.5;
  height: 36px;
}
.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 {
  text-align: left;
  height: unset;
}
.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 {
  overflow-y:visible;
  height: unset;
}
.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__tab {
  color: #fff;
  font-size: 16px;
}
.mdl-layout-title {
  color: #000e8f;
  line-height: 30px;
  font-size: 18px
}
.mdl-menu__item {
  font-size: 14px !important;
  height: 25px;
  line-height: 25px;
  transition-delay: 0.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;
}
.center {
  margin: auto;
  margin-bottom: -10px;
  padding: 0px;
}
.completed {
  color: #000e8f;
  font-size: 18px;
  padding: 10px;
}
.container {
  display: flex;
  justify-content: center;
  padding: 10px;
  padding-top: 0px;
}
.errormsg {
  color: crimson;
}
.explanation {
  padding: 10px;
  font-size: 15px;
}
.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;
}
.section-header {
  color: #000e8f;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}
.inline {
  display: inline-block;  
}
.login_form {
  padding: 10px;
}
.register_form {
  padding: 10px;
  padding-top: 0px;
}
.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;
}

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

.txtRed { color: crimson !important; }
.txtGreen { color: green !important; }
.txtBlue { color: #000e8f !important; }

div.vertical
{
  position: relative; 
  transform: translate(0px, 5px) rotate(-90deg) !important;
  -webkit-transform: rotate(-90deg); /* Safari/Chrome */
  -moz-transform: rotate(-90deg); /* Firefox */
  -o-transform: rotate(-90deg); /* Opera */
  -ms-transform: rotate(-90deg); /* IE 9 */
  text-align: left;
  width: 15px;
}
th.vertical
{ 
  height: 72px;
  padding-bottom: 10px;
  vertical-align: bottom !important;
  text-align: left;
}

.save {
  margin-top: 5px;
}
.saved {
  color: white !important;
  background-color: darkblue !important;
}
.txt_saved {
  color:  darkblue !important;
}

#outer-div {
  width: 100%;
  text-align: center;
  background-color: white;
}

#inner-div {
  display: inline-block;
  margin: 0 auto;
  padding: 3px;
  text-align: left;
}