﻿@font-face {
  font-family: 'Sarabun';
  src: url("../fonts/sarabun-regular-webfont.woff2") format("woff2"), url("../fonts/sarabun-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal; }

@font-face {
  font-family: 'Sarabun';
  src: url("../fonts/sarabun-medium-webfont.woff2") format("woff2"), url("../fonts/sarabun-medium-webfont.woff") format("woff");
  font-weight: 500;
  font-style: normal; }

@font-face {
  font-family: 'Sarabun';
  src: url("../fonts/sarabun-bold-webfont.woff2") format("woff2"), url("../fonts/sarabun-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal; }

:root {
  --primary: #3e82f7;
  --text-color: #495057;
  --footer-space: 46px; }

form.main {
  position: relative; }

.content {
  padding: 1rem 2.5rem 1rem; }

body {
  font-family: 'Sarabun', sans-serif; }

.navbar {
  padding: 0.25rem 1.25rem; }
  .navbar .navbar-brand {
    padding: 0; }
  .navbar .navbar-text {
    font-size: 22px; }

.navbar-menu {
  background-color: var(--primary);
  padding-left: 16px;
  padding-right: 16px;
  height: 60px;
  /*    position:absolute;
    top:0;
    left:0;
    right:0;*/ }
  .navbar-menu a {
    color: #fff; }
  .navbar-menu .navbar-brand {
    padding: 0px;
    margin: 0px; }
  .navbar-menu .navbar-nav {
    display: flex;
    grid-gap: 16px;
    flex-direction: row;
    align-items: center; }

#MainMenu .sub-menu {
  top: 40px !important; }
  #MainMenu .sub-menu:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 10px;
    top: -10px;
    left: 0; }
  #MainMenu .sub-menu h4 {
    background: none;
    display: block;
    border: none;
    padding: .35rem 1rem;
    margin-bottom: 0;
    color: #6c757d; }
  #MainMenu .sub-menu a {
    display: block;
    padding: .25rem 1rem;
    width: 100%;
    clear: both;
    font-weight: 400;
    color: #495057;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: background .1s ease-in-out,color .1s ease-in-out;
    color: var(--primary); }
    #MainMenu .sub-menu a:hover {
      background-color: #f4f7f9;
      text-decoration: none;
      color: var(--primary); }

a svg {
  pointer-events: none; }

/* control */
select {
  display: block;
  width: 100%;
  padding-right: 1.5rem !important;
  font-size: .825rem;
  font-weight: 400;
  line-height: 1.625;
  color: #495057;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23020202' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .3rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: .2rem; }

.fileUpload {
    position: relative;
    overflow: hidden;
    /*margin: 10px;*/
}

    .fileUpload input.upload {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        padding: 0;
        font-size: 20px;
        cursor: pointer;
        opacity: 0;
        filter: alpha(opacity=0);
    }

.btn-file {
    position: relative;
    overflow: hidden;
}

    .btn-file input[type=file] {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 100%;
        min-height: 100%;
        font-size: 100px;
        text-align: right;
        filter: alpha(opacity=0);
        opacity: 0;
        outline: none;
        background: white;
        cursor: inherit;
        display: block;
    }


.form-group .custom-radio {
  padding-left: 0; }
  .form-group .custom-radio input {
    margin-right: 8px; }
  .form-group .custom-radio label {
    margin-right: 8px; }

.form-check {
  margin-top: auto;
  padding-left: 0; }
  .form-check input[type=checkbox] {
    float: left;
    margin-top: .3125em; }
  .form-check label {
    margin-left: 8px;
    display:inline;
  }

.radiolist {
  display: flex;
  align-items: start;
  grid-gap: 8px; }
  @media (max-width: 767px) {
    .radiolist {
      flex-direction: column; } }

.cb {
    display: flex;
    align-items: start;
    grid-gap: 0.85rem;
}

.badge * {
  color: white !important; }

.table tr.bg-primary th, .table tr.bg-primary td {
  color: #fff; }

.table > tbody > tr > td {
  vertical-align: top; }

.page-header h4 {
  font-size: 20px;
  margin-top: 16px;
  margin-bottom: 32px; }

.hidden {
  display: none; }

.btn-icon-print {
  padding-left: 2.5rem;
  position: relative;
  background-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-printer align-middle mr-2"><polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect></svg>');
  background-position-x: .7rem;
  background-position-y: .3rem;
  background-repeat: no-repeat; }

.sec-filter .form-group {
  margin-bottom: 8px; }

.sec-filter .form-label {
  font-size: 12px;
  margin-bottom: 4px; }

.sec-filter .more-filter {
  position: relative;
  padding-top: 16px;
  margin-top: 0.5rem;
  border-top: #dee6ed solid 0.5px;
  opacity: 0;
  height: 0; }
  .sec-filter .more-filter.show {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    height: auto; }

.footer-space {
  height: var(--footer-space); }

footer.footer {
  position: absolute;
  width: 100%;
  height: var(--footer-space);
  bottom: 0;
  left: 0;
  padding: 12px 16px; }

.l-form-inline {
  display: flex;
  align-items: center;
  white-space: nowrap;
  grid-gap: 0.8rem; }

.ui-autocomplete {
  background: #fff;
  max-width: max-content;
  border-radius: 0.25rem;
  position: relative;
  box-shadow: 0px 1px 5px 3px rgba(0, 0, 0, 0.12);
  padding: 0;
  z-index: 9999; }
  .ui-autocomplete .ui-menu-item {
    list-style: none;
    padding: 6px 12px;
    width: 100%;
    cursor: default; }
    .ui-autocomplete .ui-menu-item:hover {
      background-color: #3f80ea;
      color: #fff; }

.re-onfocus * {
  pointer-events: none; }

.table.table-column-sticky {
  --bs-table-bg: #fff; }
  .table.table-column-sticky thead .column-sticky {
    position: sticky;
    z-index: 3;
    background-color: var(--bs-table-bg); }
  .table.table-column-sticky tbody .column-sticky {
    position: sticky;
    z-index: 1;
    background-color: var(--bs-table-bg); }

.table.table-header-sticky {
  --bs-table-bg: #fff;
  border-collapse: separate;
  border-spacing: 0; }
  .table.table-header-sticky tr.row-sticky {
    position: sticky;
    z-index: 2;
    background-color: var(--bs-table-bg);
    border: 1px solid;
    border-color: #dee6ed; }
