﻿
.Abs {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.abs-v {
  top: 0;
  bottom: 0;
}

.abs-h {
  left: 0;
  right: 0;
}

.TextBold {
  font-weight: bold;
}

.TextBoldI {
  font-weight: bold !important;
}

.bold {
  font-weight: bold !important;
}

.underline {
  text-decoration: underline !important;
}

.FamPage {
  width: 100%;
  height: 100%;
  background-color: dimgray;
}

.hide {
  display: none;
}

.hidden {
  display: none !important;
}

.pointer {
  cursor: pointer;
}

.ovf-visible {
  overflow: visible !important;
}

.ImgIcon {
  min-width: 16px;
  min-height: 16px;
  padding-left: 16px;
  background-repeat: no-repeat;
  background-position: center;
}

.t-auto { top: auto; }
.r-auto { right: auto; }
.b-auto { bottom: auto; }
.l-auto { left: auto; }

.mgt4   { margin-top:   4px !important; }
.mgt6   { margin-top:   6px !important; }
.mgt-41 { margin-top: -41px !important; }

.mgb4   { margin-bottom: 4px !important;  }
.mgb5   { margin-bottom: 5px !important;  }
.mgb6   { margin-bottom: 6px !important;  }

.mgl2   { margin-left: 2px !important;    }
.mgl4   { margin-left: 4px !important;    }
.mgl5   { margin-left: 5px !important;    }
.mgl6   { margin-left: 6px !important;    }
/*.ml6    { margin-left: 6px !important;    }*/

.mgr2   { margin-right:  2px !important;  }
.mgr4   { margin-right:  4px !important;  }
.mgr6   { margin-right:  6px !important;  }
.mgr8   { margin-right:  8px !important;  }
.mgr10  { margin-right: 10px !important;  }

.fbs70  { flex-basis: 70px;   }
.fbs80  { flex-basis: 80px;   }
.fbs90  { flex-basis: 90px;   }
.fbs100 { flex-basis: 100px;  }
.fbs110 { flex-basis: 110px;  }
.fbs180 { flex-basis: 180px;  }

.pd0    { padding: 0px !important;  }

.pdt2   { padding-top: 2px !important;  }

.pdr8   { padding-right: 8px !important;  }

.pdl8   { padding-left:  8px !important;  }
.pdl16  { padding-left: 16px !important;  }
.pdl20  { padding-left: 20px !important; }

.pdlr8  { padding-left:  8px !important;  padding-right:  8px !important; }
.pdlr16 { padding-left: 16px !important;  padding-right: 16px !important; }

.clRed      { color: red      !important;  }
.clGray     { color: gray     !important;  }
.clDarkGray { color: darkgray !important;  }
.clSilver   { color: silver   !important;  }

.w40  { width: 40px  !important; }
.w80  { width: 80px  !important; }
.w90  { width: 90px  !important; }
                                                 
.w100 { width: 100px; }
.w110 { width: 110px; }
.w120 { width: 120px; }
.w130 { width: 130px; }
.w140 { width: 140px; }
.w150 { width: 150px; }
.w160 { width: 160px; }
.w170 { width: 170px; }
.w180 { width: 180px; }
.w190 { width: 190px; }
.w200 { width: 200px; }
.w300 { width: 300px; }

.w20pi  { width: 20%  !important; }

.w30p   { width: 30%; }
.w40p   { width: 40%; }

.mnw90  { min-width: 90px;  }
.mnw110 { min-width: 110px; }

.mxw90  { max-width: 90px;  }

.b20 { bottom: 20px; }
.b40 { bottom: 40px; }

.h25p   { height: 25%;  }
.h30p   { height: 30%;  }
.h40p   { height: 40%;  }
.h60p   { height: 60%;  }
.h100p  { height: 100%; }

.mnh80  { min-height: 80px;   }
.mnh100 { min-height: 100px;  }

.fsz13  { font-size: 13px !important; }

.valign-baseline {
  vertical-align: baseline !important;
}

.valign-top {
  vertical-align: top !important;
}

.valign-middle {
  vertical-align: middle !important;
}

.valign-bottom {
  vertical-align: bottom !important;
}

.flt-r {
  float: right;
}

.flt-l {
  float: left;
}

.newline {
  width: 100%;
}

.id4 {
  text-indent: 4px;
}

.id6 {
  text-indent: 6px;
}

.id8 {
  text-indent: 8px;
}

.id9 {
  text-indent: 9px;
}

.id12 {
  text-indent: 12px;
}

.id16 {
  text-indent: 16px;
}


/* text blink ==================================================================*/

@keyframes blink-shadow-blue {
  0%  { color: royalblue;  }
  30% { text-shadow: 0 0 20px royalblue;  }
}

@keyframes blink-shadow-red {
  0%  { color: red;  }
  30% { text-shadow: 0 0 20px red;  }
}

.blink_shadow_blue {
  animation: blink-shadow-blue 1s infinite;
}

.blink_shadow_red {
  animation: blink-shadow-red 1s infinite;      
}


/*==============================================================================*/
.BtnImg {
  background-repeat: no-repeat;
  background-position: center;
}

.BtnFlat {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

.BtnFlat:focus,
.BtnFlat:active {
  outline: none;
}



/*==============================================================================*/

a[disabled],
a.disabled {
  pointer-events: none !important;
  color: silver !important;
  cursor: default !important;
}



/* Mnu =========================================================================*/
.Mnu_Bar {
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

  .Mnu_Bar a {
    float: left;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }

  .Mnu_Bar > .Mnu_Drop {
    float: left;
    overflow: hidden;
    background-color: inherit;
  }

  .Mnu_Drop .Mnu_DropBtn {
    cursor: pointer;
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 26px 14px 16px;
    background-color: inherit;
    background-image: url('../Images/down.gif');
    background-position: right center;
    background-repeat: no-repeat;
    font-family: inherit;
    margin: 0;
  }

  .Mnu_DropContent .btn-group .dropdown-toggle-split {
    border-left: 1px solid #cdcfcf;
    border-radius: 0px;
    background-color: transparent;
    color: black;
  }

    .Mnu_DropContent .btn-group .dropdown-toggle-split i.fa {
      margin-left: 4px;      
    }

    .Mnu_DropContent .btn-group .dropdown-toggle-split:hover i.fa {
      color: #93b8d6 !important;
    }

    .Mnu_DropContent .dropdown-menu {
      margin-left: 0px;
      border: none;
      border-radius: 0px;
      padding: 0px !important;
      background-color: #f9f9f9;
    }

  .Mnu_Bar a:hover,
  .Mnu_Drop:hover > .Mnu_DropBtn,
  .Mnu_DropContent .dropdown-toggle:hover {
    background-color: #b14900 !important;
  }

.Mnu_DropContent {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  white-space: nowrap;
  z-index: 1;
}

  .Mnu_DropContent a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }

    .Mnu_DropContent a:hover {
      background-color: #ddd;
    }

  .Mnu_DropContent .Mnu_Drop .Mnu_DropBtn {
    color: black;
    min-width: 160px;
    text-align: left;
    background-image: url('../Images/down_b.png');
  }

.Mnu_Show {
  display: block;
}


/* Bootstrap Custom v3.4 ======================================================*/

.wrap {
  white-space: pre-wrap !important;
}

/*
div.btn-group {
  display: inline-flex;
}
*/

/* Bootstrap Custom v4 =========================================================*/

.modal {
  overflow-y: auto;
}

.modal-header {
  padding: 10px;
  border-bottom: none;
}

.modal-header button.close {
  margin-left: 0px;
}

.modal-footer {
  padding: 10px;
  border-top: none;
}

  .modal-footer > button {
    min-width: 70px;
  }


/* spl -------------------------------------------------------------------------*/
.SplVer > div {
  overflow: hidden;
}

  .SplVer > div:nth-child(1) {
    right: auto;
    width: 50%;
  }

  .SplVer > div:nth-child(2) {
    left: auto;
  }

.SplHor > div {
  overflow: hidden;
}

  .SplHor > div:nth-child(1) {
    bottom: auto;
    height: 50%;
  }

  .SplHor > div:nth-child(2) {
    top: auto;
  }


.Spl-HideR > div:nth-child(2),
.Spl-HideR > div.splitter-resizebar {
  display: none !important;
}

.Spl-HideR > div:first-child {
  right: 0px !important;
  width: auto !important;
}


/* flex ------------------------------------------------------------------------*/

.d-flex-col-i {
  display: flex !important;
  flex-direction: column !important;
}

.d-flex-col {
  display: flex;
  flex-direction: column;
}



/* nav-tabs --------------------------------------------------------------------*/
.nav-tabs {
  display: flex;
  align-items: flex-end;
  padding-left: 0px;
  background-color: #d05400;
  border-color: #ccc;
}

.nav-tabs.nav-bold > .nav-item > .nav-link.active {
  font-weight: bold;
}

  .nav-tabs .nav-item {
    margin-bottom: 0px;
  }

    .nav-tabs .nav-link {
      padding: 9px 15px;
      margin-right: 2px;
      color: #ffdcb1;
      border: 1px solid transparent;
      border-radius: 0;
      text-align: center;
      cursor: pointer;
    }

    .nav-tabs .nav-link.nav-right {
      margin-right: 0px;
      margin-left: auto;
    }

    .nav-tabs .nav-link:hover {
      background-color: #ca8300;
      border-color: transparent;
    }

    .nav-tabs .nav-item.show .nav-link,
    .nav-tabs .nav-link.active,
    .nav-tabs .nav-link.active:hover,
    .nav-tabs .nav-link.active:focus {
      background-color: orange;
      border-color: transparent;
      cursor: default;
    }

      .nav-tabs .nav-link > i {
        margin-right: 5px;
      }

li.nav-item.dropdown .btn[data-toggle='dropdown'] {
  padding: 10px 10px;
  margin-right: 2px;
  border: none;
  border-radius: 0px;
  background-color: transparent;
}

  li.nav-item.dropdown .btn[data-toggle='dropdown']:hover,
  li.nav-item.dropdown .dropdown-menu > a.dropdown-item:hover {
    background-color: #ca8300;
  }

  li.nav-item.dropdown.show .btn[data-toggle='dropdown'] {
    background-color: orange;
  }

  li.nav-item.dropdown .btn[data-toggle='dropdown'] > i {
    color: #ffdcb1;
  }

  li.nav-item.dropdown.show .btn[data-toggle='dropdown'] > i {
    color: #495057;
  }
      
  .btn > i.fa,
  .btn > i.fas,
  .btn > i.glyphicon {
    margin: 0px -2px;
    font-size: 15px;
    top: 3px;
    color: steelblue;
  }    

  .btn.ico > i {
    margin-right: 6px !important;
  }

  .btn.icoR > i {
    margin-left: 6px !important;
  }

    .btn.btn-primary > i {
      color: white;
    }

  .btn-divider-ver {
    min-height: 100%;
    width: 0;
    margin: 0 2px 0 7px;
    border-left: 1px solid #e2e2e2;
    display: inline-block;
  }


/* input -----------------------------------------------------------------------*/

input[disabled].form-control {
  color: silver;
  background-color: #f5f5f5;
}

.form-check .form-check-label + input.form-check-input {
  margin-left: 6px;
  margin-right: 0;
}


span[disabled] {
  color: silver;
}

/* dropdown menu ---------------------------------------------------------------*/

ul.dropdown-menu {
  max-height: 320px;
  overflow: auto;
}

ul.dropdown-menu > li > a {
  padding: 3px 20px 3px 28px;
}

ul.dropdown-menu > li > button {
  padding: 3px 20px 3px 28px;
  white-space: nowrap;
  border: none;
  background-color: white;
}

ul.dropdown-menu > li > button:hover {
  background-color: #efefef;
}

ul.dropdown-menu > li > button[disabled] {
  color: silver !important;
}

  ul.dropdown-menu > li > a > i {
    margin: 0px 7px 0px -21px;
    color: #aab3b7;
  }

  ul.dropdown-menu > li > button > i {
    margin: 0px 6px 0px -21px;
    color: #aab3b7;
  }

  ul.dropdown-menu > li > a > i.glyphicon-ok {
    visibility: hidden;
  }

  ul.dropdown-menu > li > a.selected > i.glyphicon-ok {
    visibility: visible;
    color: #607D8B;
  }

  ul.dropdown-menu > li > a > input[type='checkbox'] {
    margin: 4px 6px 0px -12px;
    float: left;
  }

li.dropdown-header {
  padding-left: 15px;
}


/* Modal ----------------------------------------------------------------------*/
.modal-title, .modal-text {
  white-space: pre-wrap;
  overflow-x: auto;
}


/* editable-select -------------------------------------------------------------*/
ul.es-list { 
  max-height: 220px;
}

/*
input.es-input.listNoWrap + ul.es-list {
  width: auto !important;
}
*/


/* TreNav =====================================================================*/
.TreNav, .TreNav ul {
  padding-left: 0px;
  margin-top: 0px;
  list-style: none;
}

  .TreNav .tree-toggle {
    margin-bottom: 0px;
  }

  .TreNav li {
    padding: 1px 0px 1px 12px;
    position: relative;
    display: block;
    list-style: none;
  }

    .TreNav li label {
      padding: 0px 4px;
      font-weight: bold;
    }

    .TreNav li a {
      padding: 1px 4px;
      display: inline;
      color: #428bca;
      text-decoration: none;
    }

      .TreNav li a:hover {
        background-color: #FFFFCC;
      }

      .TreNav li a.selected {
        background-color: #fbc96d;
        color: navy;
      }



/* Column =====================================================================*/
.Col250 {
  min-width: 250px;
}

.Col300 {
  min-width: 300px;
}

/* AwGrid =====================================================================*/
.AwGrid {
  overflow: auto;
  background-color: #FAFAFA;
}

  .AwGrid thead {
    display: table-caption;
    position: sticky;
    top: 0;
  }

  .AwGrid tbody {
    background-color: #F7F7F7;
  }

  /*
  .AwGrid tr > th, td {
    padding: 2px 6px;
    text-align: left;
    white-space: nowrap;
  }
  */

  .AwGrid tr > th {
    border-left: 1px solid #A3A3A3;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #A8A8A8), color-stop(1, #858585));
    background: -moz-linear-gradient(center top, #A8A8A8 5%, #858585 100% );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#A8A8A8', endColorstr='#858585');
    background-color: #A8A8A8;
    color: #FFFFFF;
    font-weight: bold;
  }

  .AwGrid tr > td {
    border-left: 1px solid #DBDBDB;
    cursor: pointer;
  }
    .AwGrid tbody > tr:nth-child(odd) {
      background-color: #ECECEC;
    }

    .AwGrid tbody > tr:hover {
      background-color: #fdf4bf;
    }

    .AwGrid tbody > tr.Selected {
      background-color: #FFFF00 !important;
    }



/* jqGrid : respondsive =======================================================*/
.ui-jqgrid,
.ui-jqgrid-view,
.ui-jqgrid-bdiv,
.ui-jqgrid-hdiv {
  width: auto !important;
  left: 0;
  right: 0;
}

.ui-jqgrid {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 0;
}

  .ui-jqgrid .ui-jqgrid-view {
    position: absolute;
    bottom: 0;
  }

  .ui-jqgrid .ui-jqgrid-bdiv {
    position: absolute;
    height: auto !important;
    top: 47px;
    bottom: 0;
  }

  .ui-jqgrid .ui-jqgrid-titlebar {
    height: 21px;
    padding: 0 .2em 0 .4em;
    border-radius: 0;
  }

    .ui-jqgrid .ui-jqgrid-htable th {
      height: 25px;
      padding: 0 2px 0 2px;
    }

    .ui-jqgrid .ui-jqgrid-htable .ui-th-div {
      margin-top: 4px;
    }

      .ui-jqgrid .ui-jqgrid-htable .ui-th-div input[type="checkbox"] {
        margin-top: 2px;
      }

      .ui-jqgrid tr.jqgrow input[type="checkbox"] {
        margin-top: 4px;
      }

/*
  td.edit-cell.ui-state-highlight {
    background-image: linear-gradient(#d3f0ff, #a5d6ef) !important;
  }

    td[role=gridcell] > input[type=text][module=cell].ui-widget-content {
      background: #ffffd2;
    }

  .ui-state-highlight, 
  .ui-widget-content .ui-state-highlight, 
  .ui-widget-header .ui-state-highlight {
    border: 0 none #bbbba7;
    background: #e9ec5a !important;
  }

  tr.ui-state-highlight td.edit-cell.ui-state-highlight {
    background: #e9ec5a !important;
  }
*/

.ui-jqgrid tr#norecs.jqgrow {
  display: none;
}

.ui-jqgrid .DisableSelect td.jqgrid-multibox  {
  pointer-events: none;
}

  .ui-jqgrid .DisableSelect td.jqgrid-multibox input[type="checkbox"] {
    opacity: 0.4;
  }

/* สำหรับใส่ให้ column wrap text */
.ui-jqgrid.grd_wrapcell tr.jqgrow td[role='gridcell'] {
  white-space: pre-wrap;
}

.ui-jqgrid .ui-jqgrid-htable th div {
  overflow: visible !important;
  height: auto !important;
}

.ui-th-column, .ui-jqgrid .ui-jqgrid-htable th.ui-th-column {
  white-space: normal !important;  
}

.ui-jqgrid .ui-th-div-ie {
  white-space: normal !important;  
}

.ui-jqgrid .SingleFocus tr.jqgrow.ui-state-highlight:not(.RowFocus) {
  background: #fdffc5 !important;
}

.ui-th-column.ColPad4 > div.ui-th-div {
  padding-left: 4px;
  padding-right: 4px;
}


/* cell */

.ui-jqgrid td[role='gridcell'] button.cellBtn {
  border-width: 1px;
}


/* pager */
.ui-jqgrid .ui-jqgrid-pager {
  position: absolute;
  bottom: 0px;
  width: auto !important;
  border-radius: 0px;
}

  .ui-pager-table div.ui-paging-info {
    padding-left: 6px;
    font-weight: bold !important;
  }

/* footer */
.ui-jqgrid .ui-jqgrid-view > div.ui-jqgrid-sdiv {
  position: absolute;  
  bottom: 0px;
  width: 100% !important;
}

  .ui-jqgrid .ui-jqgrid-view > div.ui-jqgrid-sdiv table.ui-jqgrid-ftable td  {
    background: #e6e6e6;
  }

/*
.grd_relativehigh.ui-jqgrid,
.grd_relativehigh .ui-jqgrid-view,
.grd_relativehigh .ui-jqgrid-bdiv {
  bottom: auto;
}
*/

.ui-jqgrid.grd_relativehigh,
.ui-jqgrid.grd_relativehigh .ui-jqgrid-view {
  position: relative;
}

  .ui-jqgrid.grd_relativehigh .ui-jqgrid-bdiv {
    position: relative;
    top: 0px !important;
    /*padding-bottom: 6px;*/
  }

/* heightauto  */
.ui-jqgrid.grd_heightauto {
  position: relative;
}

  .ui-jqgrid.grd_heightauto .ui-jqgrid-view {
    position: relative;
  }

  .ui-jqgrid.grd_heightauto .ui-jqgrid-bdiv {
    position: relative;
    top: auto !important;
    overflow-x: scroll;
    scrollbar-color: #dfdfdf white;
  }

.grd_hideborder {
  border: none;
}

/* hide grid dialog */
/*div.ui-widget-overlay,*/
#info_dialog.ui-jqdialog {
  display: none !important;
}

/* subGrid */

.ui-jqgrid .subGrid tr.ui-row-ltr > td:not(:last-child) {
  border-right-color: #e9ecef;
}

.ui-jqgrid .subGrid tr.ui-row-ltr > td {
  border-bottom: none;
}

  .ui-jqgrid .subGrid tr.ui-subgrid:last-child > td {
    border-bottom: solid 1px #ccc;
  }

.ui-jqgrid .subGrid tr.ui-row-ltr > td {
  border-top: solid 1px #aaaaaa;
}

  .ui-jqgrid .subGrid tr.jqgfirstrow+tr.ui-row-ltr > td {
    border-top: none;
  }

.ui-jqgrid .subGrid td.ui-widget-content.subgrid-cell {
  border-right-color: #e9ecef;
}

.ui-jqgrid .subGrid td.ui-widget-content {
  border-bottom: none;
}

  .ui-jqgrid .subGrid tr.ui-subgrid > td {
    border-top: solid 1px #e9ecef !important;
    padding-bottom: 2px;
  }

.ui-jqgrid-btable.subGrid > tbody > tr.jqgrow {
  background: #f1faff;
}

.ui-jqgrid tr.jqgrow.ui-state-highlight+tr.ui-sg-expanded > td {
  background-color: #f6f7dc;
  background-image: inherit;
}

.ui-widget-content .subgrid-cell > span.ui-icon {
  background-image: inherit;
}


/* tree */
.ui-jqgrid div.tree-wrap-ltr {      /* ลดขอบ icon ซ้ายขวา */
  margin-left: -2px;  
  margin-right: -2px
}

.ui-jqgrid div.tree-wrap-ltr[style*='width:18px'] > div.ui-icon.tree-leaf {
  background-image: none;           /* ซ่อน icon ที่ไม่มี child */
}

.ui-widget .ui-widget.ui-jqgrid {
  font-size: 11px;                  /* แก้ไข grd ที่อยู่บน dialog แล้ว font ใหญ่ */
}

/* grouping */
.ui-jqgrid tr.ui-widget-content.jqgroup > td {
  font-weight: bold;
}

/* inline editor */

td.edit-cell.ui-state-highlight {
  background-image: linear-gradient(#d3f0ff, #a5d6ef) !important;
}

  td[role=gridcell] > input[type=text][module=cell].ui-widget-content {
    background: #ffffd2;
  }

.ui-state-highlight, 
.ui-widget-content .ui-state-highlight, 
.ui-widget-header .ui-state-highlight {
  border: 0 none #bbbba7;
  background: #e9ec5a !important;
}

tr.ui-state-highlight td.edit-cell.ui-state-highlight {
  background: #e9ec5a !important;
}

.ui-jqgrid tr.jqgrow td.edit-cell {
  overflow: visible;             /* ใส่เพื่อให้มองเห็น dropdown ของ Scb ได้ */
}

  .ui-jqgrid td.edit-cell > span {
    position: relative;
    display: block;
    padding: 0px !important;
    background-color: white;
  }

  .ui-jqgrid td.edit-cell input {
    margin-bottom: -1px;
  }


.ui-jqgrid tr.jqgrow td[role=gridcell] input[type=text] {
  width: 100% !important;
  min-height: 21px;
  padding: 1px 0px 1px 0px !important;
  border: none;
  border-radius: 0px;
  outline: none !important;
}

  .ui-jqgrid tr.jqgrow td[role=gridcell] input[type=text]:focus {
    outline: none !important;
  }

  .ui-jqgrid tr.jqgrow td[role=gridcell][style*='text-align:right'] input[type=text] {
    text-align: right;
  }

  .ui-jqgrid tr.jqgrow td[role=gridcell] + ul.es-list {
    width: auto !important;
    min-width: 280px;
    white-space: nowrap;
    overflow: visible;
  }

body > .ui-widget-overlay {
  opacity: 0 !important;
}


/* jquery-ui dialog ============================================================*/

div.ui-dialog-par {
  position: fixed;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  overflow: auto;
  z-index: 202;      /*200*//*101*/
  display: flex;
  justify-content: center;
  align-items: center;
}

div.ui-widget-overlay.nobackdrop {
  opacity: 0;
}

div.ui-dialog.ui-widget {
  font-size: inherit;
  font-family: inherit;
  padding: 0px;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 50%);
  z-index: 201;
}

  div.ui-dialog.ui-widget.ui-resizable {
    display: flex;
    flex-direction: column;
    overflow: visible;        /* เพื่อให้เห็น dropdown */
  }

  @media (max-width: 768px) {
    div.ui-dialog.ui-widget {
      position: relative;
      left: auto !important;
      top: auto !important;
    }
  }

  .ui-widget input, 
  .ui-widget select, 
  .ui-widget textarea, 
  .ui-widget button {
    font-size: inherit;
    font-family: inherit;
  }

  .ui-dialog .ui-dialog-titlebar {
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0px;
    padding: 2px 34px 2px 10px;
  }

  .ui-dialog .ui-dialog-title {
    width: 100%;
    font-size: 16px;
  }

  .ui-dialog .ui-dialog-titlebar-close {
    width: 21px;
    right: 7px;
    outline: none;
  }

    .ui-dialog .ui-dialog-titlebar-close > .ui-icon-closethick {
      margin-left: -9px;
    }
           
  .ui-dialog .ui-dialog-content {
    padding: 0px;
    width: auto !important;   /* แก้การปรับ size แล้วเกินขอบ */
  }


/* AwTree =====================================================================*/
.AwTree {
  overflow: auto;
  background-color: #FAFAFA;
}

  .AwTree > table {
    width: 100%;
  }                                                                         

  .AwTree > table > tbody {
    background-color: #F7F7F7;
  }

  .AwTree > table > thead {
    display: table-caption;
    position: sticky;
    top: 0;
    z-index: 1;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #cdcdcd));
    background: -moz-linear-gradient(center top, #ededed 5%, #cdcdcd 100% );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#cdcdcd');
    background-color: #ededed;
    /*
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #A8A8A8), color-stop(1, #858585));
    background: -moz-linear-gradient(center top, #A8A8A8 5%, #858585 100% );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#A8A8A8', endColorstr='#858585');
    background-color: #A8A8A8;
    */
  }

  .AwTree > table > thead > tr > th {
    padding: 2px 8px;
    text-align: left;
    white-space: nowrap;
    /*border-left: 1px solid #A3A3A3;*/
    border-left: 1px solid #bbbbbb;
    color: #FFFFFF;
    font-weight: bold;
  }

  .AwTree > table > tbody > tr > td {
    padding: 0;
  }


/* tabBtn =====================================================================*/

.tabBtn {
  display: flex;
  align-items: flex-end;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  border-bottom: 1px solid #ddd;
}

  .tabBtn > li {
    position: relative;
    display: block;
    float: left;
    margin-bottom: -1px;
  }

    .tabBtn > li > button {
      padding: 10px 15px;
      margin-right: 2px;
      border: 1px solid transparent;
      outline: none;
      background-color: transparent;
      color: #337ab7;
      line-height: 1.42857143;
    }

      .tabBtn > li > button:hover {
        background-color: #e7e7e7;
      }

    .tabBtn > li.active > button,
    .tabBtn > li.active > button:hover {
      color: #555555;
      cursor: default;
      background-color: #e7e7e7;
      border: 1px solid #ddd;
      border-bottom-color: transparent;
    }


/* AwTab ======================================================================*/
.AwTab {
  overflow: hidden;
  border: 1px solid #ccc;
  height: 100%;
  background-color: white;
}

  .AwTab .TabBtns {
    display: flex;
    border-bottom: 1px solid #ccc;
    background-color: #f1f1f1;
    height: 46px;
  }

    .AwTab .TabBtns button {
      background-color: inherit;
      float: left;
      border: none;
      outline: none;
      cursor: pointer;
      padding: 14px 16px;
      transition: 0.3s;
    }

      .AwTab .TabBtns button:hover {
        background-color: #ddd;
      }

      .AwTab .TabBtns button.Active {
        background-color: #ccc;
      }

  .AwTab .TabPage {
    display: none;
    position: absolute;
    top: 47px;
    bottom: 1px;
    right: 1px;
    left: 0;
    padding: 6px;
    overflow: auto;
  }

  .AwTab .TabPage.Active {
    display: block !important;
  }




/* AwSel ======================================================================*/

.AwSel .modal-body {
  height: 350px;
}

  .AwSel .DivSelY {
    right: 50%;
    margin-left: 25px;
    margin-right: 25px;
    overflow: hidden;
  }

  .AwSel .DivSelN {
    left: 50%;
    right: 25px;
    margin-left: 25px;
    overflow: hidden;
  }

    .AwSel .modal-body > div > p {
      margin-top: 2px;
    }

    .AwSel .modal-body > div > .AwGrid {
      top: 24px;
    }

  .AwSel .DivSelBtnT {
    top: 46px;
    bottom: auto;
    left: 50%;
    margin-left: -25px;
    width: 50px;
    text-align: center;
  }

  .AwSel .DivSelBtnB {
    top: auto;
    bottom: 8px;
    left: 50%;
    margin-left: -25px;
    width: 50px;
    text-align: center;
  }

  .AwSel .modal-body button {
    width: 30px;
    padding: 4px;
    margin: 2px;
  }

  .AwSel .BtnSelRefresh {
    float: left;
  }


/* AwSlg ======================================================================*/
.AwSlg div.modal-body {
  height: 350px;
}

.AwSlg .AwTree, .AwSlg .AwGrid {
  margin: 0px 4px;
  border: solid 1px #ddd;
}

.AwSlg .modal-header {
  border-bottom: none;
}

.AwSlg .modal-footer {
  border-top: none;
}

.AwSlg .btnRefresh {
  float: left;
}

/* AwScb ======================================================================*/
textarea.AwScb {
  border-top-style: none;
  margin-left: 0px !important;
}

input.AwScb_Cho {
  border-bottom-style: none;
}

li.ScbChoHide {
  display: none !important;
}


/* AwCho ======================================================================*/

.AwCho .modal-xl {
  max-width: 900px;
}

.AwCho .AwTree, .AwCho .AwGrid {
  margin: 0px 4px;
  border: solid 1px #ddd;
}

.AwCho .modal-header {
  padding: 8px 12px;
  border-bottom: none;
}

  .AwCho .modal-header button.close {
    z-index: 1;
  }

  .AwCho.isMobile .modal-header button.close {
    display: none;
  }

.AwCho .modal-footer {
  padding: 6px 10px
}

  .AwCho .modal-title {
    display: inline-block;
  }

.AwCho div.modal-body {
  height: 450px;
  margin: -37px 8px 0px 8px;
  padding: 0;
}

.AwCho div.modal-spl-l {
  width: 100%;
  flex: auto;
}

.AwCho div.modal-spl-r {
  width: 100%;
  flex: auto;
}

.AwCho .splitter-resizebar {
  background-color: #ccc !important;
}

.AwCho div[role="separator"] {
  background-color: #ebebeb !important;
}

  .AwCho div[role="separator"] {
    margin-top: 37px;
  }

  .AwCho.isMobile div[role="separator"] {
    margin-top: 0px;
    margin-bottom: 6px;
    height: 4px;
  }

.AwCho .divSearch {
  width: 200px;
  margin-left: 8px;
}

.AwCho div.SchBtn {
  display: flex;
  justify-content: flex-end;
  margin: 0px 0px 0px 100px;
  white-space: nowrap;
  overflow: hidden;
}

.AwCho div.SeqBtn {
  display: flex;
  justify-content: center;
  margin: 0px 30px 0px 0px;
  white-space: nowrap;
  overflow: hidden;
  padding: 0px 30px;
}

  .AwCho.isMobile div.SeqBtn {
    margin-right: 0px;
    padding: 0px 10px;
  }

  .AwCho .btnSeq {
    margin-right: 6px;
  }

  .AwCho .btnSeq[data-val=R] {
    margin-right: 10px;
  }

  .AwCho .btnSeq[data-val=T] {
    margin-left: auto;
  }

    .AwCho .btnSeq > i {
      padding: 2px 10px;
      margin: 0px -6px;
      background-repeat: no-repeat;
      background-position: center;
    }

    .AwCho .btnSeq[data-val=C] > i { background-image: url(../Images/seq_C.png); }
    .AwCho .btnSeq[data-val=R] > i { background-image: url(../Images/seq_R.png); }
    .AwCho .btnSeq[data-val=T] > i { background-image: url(../Images/seq_T.png); }
    .AwCho .btnSeq[data-val=U] > i { background-image: url(../Images/seq_U.png); }
    .AwCho .btnSeq[data-val=D] > i { background-image: url(../Images/seq_D.png); }
    .AwCho .btnSeq[data-val=B] > i { background-image: url(../Images/seq_B.png); }

.AwCho div.scbHead {
  margin-right: auto;
  /*padding: 2px 2px 0px 32px;*/
}

.AwCho .ui-jqgrid {
  margin-top: 37px;
}


/* DlgList =====================================================================*/

.DlgList .modal-xl {
  max-width: 900px;
}

.DlgList .AwGrid {
  margin: 0px 4px;
  border: solid 1px #ddd;
}

.DlgList .modal-header {
  padding: 12px;
  border-bottom: none;
}

  .DlgList .modal-title {
    display: inline-block;
  }

.DlgList div.modal-body {
  height: 400px;
  margin: 0 8px;
  padding: 0;
}

  .DlgList div.modal-spl {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }

.DlgList div.modal-spl-l {
  position: absolute;
  width: 439px;
  top: 0;
  bottom: 0;
}

.DlgList div.modal-spl-r {
  position: absolute;
  width: 438px;
  top: 0;
  bottom: 0;
  right: 0;
}

  .DlgList div.modal-spl-r.single {
    width: auto;
    left: 0;
  }

.DlgList .splitter-resizebar {
  background-color: #ccc !important;
}

.DlgList .divSearch {
  width: 200px;
  margin-left: 24px;
  margin-right: auto;
}

.DlgList div.SeqBtn {
  margin-right: 100px;
  margin-left: auto;
}

  .DlgList .btnSeq {
    margin-right: 2px;
  }
    .DlgList .btnSeq > i {
      padding: 2px 10px;
      margin: 0px -6px;
      background-repeat: no-repeat;
      background-position: center;
    }

    .DlgList .btnSeq[data-val=T] > i { background-image: url(../Images/seq_T.png); }
    .DlgList .btnSeq[data-val=U] > i { background-image: url(../Images/seq_U.png); }
    .DlgList .btnSeq[data-val=D] > i { background-image: url(../Images/seq_D.png); }
    .DlgList .btnSeq[data-val=B] > i { background-image: url(../Images/seq_B.png); }




/*
.DlgList .modal-header {    
  padding: 12px 12px 10px 16px;
}

  .DlgList .modal-header h4 {    
    float: left;
  }

  .DlgList .modal-header .input-group {    
    float: left;
    width: 240px;
    margin: -2px 48px;
  }

  .DlgList .modal-header .input-group-addon {    
    width: 21px;
  }

    .DlgList .modal-header .btnFld {    
      height: 26px;
      padding: 0px 0px 4px 4px;
    }

.DlgList .modal-body {    
  height: 416px;
}

.DlgList .modal-body > .ui-jqgrid {    
  margin: -1px 6px;
}


.DlgList .modal-footer {    
  padding: 10px;
}
  
  .DlgList .modal-footer button {    
    min-width: 70px;
  }
*/

/* Ibc : Input Button Clear ===================================================*/
.Ibc {
  display: inline;
  margin: 6px 6px 8px -20px;
  z-index: 3;
  color: #c0c0c07d;
  cursor: pointer;
}

  input.AwScb + .Ibc {
    margin: 6px 22px 8px -36px;
  }

.Ibc:hover {
  color: black;
}


/* Dtp : DateTimePicker =======================================================*/
#ui-datepicker-div.ui-widget-content {
  z-index: 1100 !important;
}


/* Dpk : Boostrap DatePicker  */
.datepicker td, 
.datepicker th {
  width: 32px;
  height: 24px;
}


/* DivHead ====================================================================*/
.DivHead span.input-group-addon input[type=checkbox] {
  float: right;
  /*margin: 1px 0 0;*/
  margin: 0px;
}

.DivHead span.input-group-addon.ChkLeft input[type=checkbox] {
  float: left;
  margin-right: 6px;
}

.DivHidden {
  width: 0px;
  height: 0px;
  overflow: hidden;
}

.input-group-wide .input-group-addon {
  display: block !important;
  width: 100% !important;
  border-right: 1px solid #ccc !important;
  border-bottom: 0px !important;
}

  .input-group-wide .input-chk {
    display: block !important;
    padding-left: 8px;
  }


.input-group .divImg {
  min-height: 28px;
  background-color: white;
  border: 1px solid #ebebeb;
}


div.input-group.input-group-grd {
  display: flex;
  overflow: auto;
}

  .input-group-grd > span.input-group-addon {
    border: none;
    background-color: transparent;
  }

  .input-group-grd > .btn-group {
    margin-left: auto;
  }

  .input-group-grd > div.input-grd {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: auto;
    position: relative;
    min-height: 200px;
    border: 1px solid #ccc;
  }





/* card ========================================================================*/

.aw-card {
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 12px;
}

  .aw-card .aw-row {
    display: inline-flex;
    margin-bottom: 1px;
  }

  .aw-card .aw-col {
    display: inline-flex;
    align-items: baseline;
    flex: 1;
  }

  .aw-card .aw-col > span {
    white-space: nowrap;
    padding: 0px 4px 0px 6px;
  }

  .aw-card input.form-control {
    height: 22px;
    font-size: 12px;
    border-color: #e2e2e2;
  }

/* summernote ==================================================================*/

.note-editor.note-frame.card {
  border-radius: 0px;
  box-shadow: none;
  margin-bottom: 0px;
}

  .note-editor .note-toolbar.card-header,
  .note-editor .note-statusbar {
    border-radius: 0px !important;
  }
  
  .note-editor .tooltip.fade.bs-tooltip-top {
    display: none;
  }
  
    textarea:read-only+div.note-editor div.note-editable.card-block[contenteditable='false'] {
      background-color: floralwhite;
    }

    textarea+div.note-editor.note-airframe {
      border: 1px solid #cdcdcd;
    }

      textarea+div.note-editor.note-airframe div.note-editable {
        min-height: 26px;
        background-color: white !important;
        padding: 3px 2px 2px 5px !important;
      }

      /*
      textarea+div.note-editor.note-airframe div.note-editable {
        background-color: white !important;
        padding: 10px !important;
        min-height: 100px;
      }
      */

textarea.h100p + .note-editor,
textarea.h100p + .note-editor > .note-editing-area,
textarea.h100p + .note-editor > .note-editing-area > .note-editable {
  height: 100%;
}

  textarea.h100p + .note-editor > .note-statusbar {
    display: none;
  }




/* Popover =====================================================================*/
div.popover {
  background-color: rgb(255, 231, 231);
}

  div.popover .arrow::after {
    border-top-color: rgb(255, 231, 231);
    border-bottom-color: rgb(255, 231, 231);
  }

  div.popover .popover-body {
    color: #bf0000;
  }
