/*  Updated Date: 2 Feb 2021 8:59;
 * ELIB Version 3.7.0.3
 * Homepage: http://www.book.co.th
 * Copyright 2017 ELIB Devolopment Team
 * Licensed under Book Promotion & Service .Co,Ltd
/*Override Color CSS*/
.alert-primary {
    --bs-alert-color: #00695c;
    --bs-alert-bg: #d8f7ec;
    --bs-alert-border-color: #d8f7ec;
}

@font-face {
  font-family: 'Kanit';
  src: url('/elib/dist/fonts/Kanit-Light.ttf')
}

body {
  font-size: 0.85rem !important;
  font-family: 'Kanit';
}

input{
   font-size: 0.85rem !important;
}

select{
   font-size: 0.85rem !important;
}

button{
   font-size: 0.85rem !important;
}

select#id_db {
  font-size: 0.85rem !important;
}

@-moz-document url-prefix() 
{
body{
    max-width: auto !important;
    margin-top: -15px;
  }
}


.pagehead-fluid {
  
}

/*Navigation Bar*/
.navbar {
  margin-bottom: 20px !important;
}

.nav-sm {
  margin-bottom: 0px !important;
  padding: 1px !important;
  display: flex;
  line-height: 1.5;
  position: relative;
}

.nav-patron {
  padding: 0.3rem 0.5rem !important;
  color: rgba(0, 0, 0, 0.5, );
  cursor: default;
}

.nav-patron:hover {
  color: rgba(0, 0, 0, 0.5, );
  cursor: default;
}

.form-cat {
  margin-block-end: 0em !important;
}

.nav-sta {
  max-width: auto !important;
}

@-moz-document url-prefix() {
  .nav-sta {
    max-width: auto !important;
    margin-top: -15px;
  }
}

.nav-pat {
  max-width: auto !important;
  margin-top: -20px !important;
  margin-bottom: 10px !important;
}

.bg-dark {
  background-color: #00695c !important;
}

.navbar-sm {
  padding: 0.1rem 0.5rem !important;
}

.navbar-dark .navbar-brand {
  color: white;
}

.bg-sub {
  background-color: transparent;
}

.navbar-dark .navbar-brand:focus,
.navbar-dark .navbar-brand:hover {
  color: white;
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
}

.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
  color: white;
}

.navbar-disabled {
  color: #9498a1 !important;
}

/*End Navigation Bar*/
.card-deck {
  margin-top: 15px;
}

/* Share and Social*/
.fb-share {
  background-color: rgb(59, 89, 152);
  color: #fff;
}

.twtter-share {
  background-color: #1b95e0;
  color: #fff;
}

.print-out {
  background-color: #555555;
  color: #fff;
}

.email-out {
  background-color: #555555;
  color: #fff;
}

/*Menu*/
.left-tab {
  border-top-left-radius: 5px !important;
}

.carousel-indicators {
  bottom: -10px;
}

.carousel-indicators li {
  background-color: #9498a1;
}

.carousel-indicators .active {
  background-color: #00695c;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  color: #9498a1;
  background-color: transparent;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: #9498a1;
}

.newadiv {
  margin-top: 10px;
  margin-bottom: 15px;
}

.nav-pills .nav-link.active,
.show>.nav-pills .nav-link {
  color: #fff;
  background-color: #00695c;
  border-top-left-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
  cursor: default;
  }

.newa-head {
  border-color: #00695c;
  padding-right: 0px;
  padding-left: 0px;
}

.newa-body {
  border-color: #00695c;
  padding-right: 0px;
  padding-left: 0px;
  border: 1px solid #00695c !important;
  border-top-left-radius: 0px !important;
  border-bottom-left-radius: 5px !important;
  border-top-right-radius: 0px !important;
  border-bottom-right-radius: 5px !important;
}

.dropdown-item {
  font-size: 14px !important;
}

.dropdown-item:focus {
  background-color: #00695c;
}

.menumm {
  font-size: 0.875rem;
  color: #00695c !important;
  border: 1px solid #00695c !important;
}

.menumm:hover {

  color: #fff !important;
  background-color: #00695c;
}

.menu {
  font-size: 0.875rem;
  color: #00695c !important;
  border: 1px solid #00695c !important;
}

.menu:hover {
  color: #fff !important;
  background-color: #00695c;
}

/*Result Table*/


.result-table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.result-table table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.result-table table {
  border-collapse: collapse !important;
  border: 1px solid #00695c;
}

.result-table th {
  background-color: #00695c !important;
  vertical-align: bottom;
  color: fff;

}

.result-table td {
  background-color: #fff !important;
}

.result-table th,
td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: middle;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}

/*Res Citem Menu*/
.res_cmenu_th {
  font-family: 'Kanit';
  /* font-size: 1.1rem;*/
  font-weight: normal;
  line-height: 1.5;
  color: #fff;
  background-color: #00695c !important;
  vertical-align: bottom;
  text-align: center;
  border: 1px solid #00695c;
  padding: 8px;
}

.res_cmenu_td,
.res_cmenu_td_cno {
  font-family: 'Kanit';
  /* font-size: 1.1rem;*/
  font-weight: normal;
  line-height: 1.5;
  background-color: #fff !important;
  vertical-align: bottom;
  text-align: center;
  border: 1px solid #00695c;
  padding: 8px;
}

.res_cmenu_td_cno {
  font-weight: bold;
  vertical-align: middle;
}

.res_rs_table tr:nth-child(odd) {
  background-color: #f3f3f3;
}

/* Item Table*/
.item-table table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  border: 1px solid #00695c;
}

.item-table table {
  border-collapse: collapse !important;
}

.item-table th {
  background-color: #00695c;
  vertical-align: bottom;
  color: #fff;
  border: 2px solid #00695c;
}

.item-table td {
  background-color: #fff !important;
  border: 0.5px solid #00695c;
}

/*Highlight Color*/
.res_subfield {
  color: blue;
}

.res_hi_w {
  color: #dc3545;
  font-weight: bold;
}

.search_hi_w {
  color: #dc3545;
  font-weight: bold;
}

/*DB name Color*/
.res_hi_db {
  font-weight: bold;
  color: #5cb85c
}

/*End Highlight Color*/
/*Card*/
.card {
  border-color: #00695c;
}

.card-header {
  background-color: #00695c;
  color: #fff;
}

.contact {
  border: 1px solid rgba(0, 0, 0, 0.125);
}

/*End Card*/
/*Table*/
.table-overrride th>tr>td {
  border: 1px solid #00695c;
}

/*Copy Menu*/
.res_cmenu th>tr>td {
  border: 1px solid #00695c;
}

.res_cmenu_th {
  color: #fff;
  background-color: #00695c !important;
  border: 1px solid #00695c !important;
}

.res_cmenu_td,
.res_cmenu_td_cno {
  background-color: #fff !important;
  border: 1px solid #00695c;
}

.res_rs_table tr:nth-child(odd) {
  background-color: #f3f3f3;
}

a.list-group-item,
button.list-group-item {
  color: #000000;
}

/*End Copy Menu*/
.dis {
  background-color: #ddd !important;
  color: #fff !important;
}

.dis:hover {
  background-color: #ddd !important;
  color: #fff !important;
}

/*End Table*/
.list-item-selected {
  background-color: #00695c !important;
  color: #fff !important;
}

@media (max-width: 425px) {
  .mb-dark {
    background-color: transparent;
    color: #fff;
  }

  a#hide-xs {
    display: none !important;
  }

  tr#hide-xs {
    display: none !important;
  }

  div#hide-xs {
    display: none !important;
  }

  .mb-dark-item {
    color: #fff !important;
  }
}

.mobile-row {
  border: 1px dotted #646363ee;

}
@media (max-width: 425px) {
  .mobile-hide  {
    display: none !important;
  }
  
}
@media (min-width: 780px) {
  .desktop-hide {
    display: none !important;
  }
}

@media (min-width: 425px) {
  div#show-xs {
    display: none !important;
  }

  a#show-xs {
    display: none !important;
  }


}

@media (max-width: 768px) {
  .mb-dark {
    background-color: initial;
  }
}

@media (max-width: 992px) {
  .mb-dark {
    background-color: initial;
  }
}

@media (max-width: 1200px) {
  .mb-dark {
    background-color: initial;
  }
}

/*Quick Link*/
/*
#cirlink {
 display: none;
}
#holdlink {
 display: none;
}
*/
/*Fix size marc table*/
form>table#mrc_res_cat>thead>tr>td:nth-child(0) {
  width: 5% !important;
  margin: 2px;
}
form>table#mrc_res_cat>thead>tr>td:nth-child(1) {
  width: 5% !important;
  margin: 2px;
}form>table#mrc_res_cat>thead>tr>td:nth-child(2) {
  width: 5% !important;
  margin: 2px;
}
form>table#mrc_res_cat>tbody#idMarcCat>tr>td {
  width: inherit !important;
  margin: 2px;
}
/*Fix size marc tableEdit*/
form>table#ctm_cvr_table0>tbody>tr>td#ctm_cvr_res0>table#mrc_res_cat>thead>tr>td:nth-child(0) {
  width: 5% !important;
  margin: 2px;
}

form>table#ctm_cvr_table0>tbody>tr>td#ctm_cvr_res0>table#mrc_res_cat>thead>tr>td:nth-child(1) {
  width: 5% !important;
  margin: 2px;
}

form>table#ctm_cvr_table0>tbody>tr>td#ctm_cvr_res0>table#mrc_res_cat>thead>tr>td:nth-child(2) {
  width: 5% !important;
  margin: 2px;
}

form>table#ctm_cvr_table0>tbody>tr>td#ctm_cvr_res0>table#mrc_res_cat>tbody#idMarcCat>tr>td {
  width: inherit !important;
  margin: 2px;
}
/*Fix size non-marc table*/
form>table#nmrc_res_cat>tbody>tr>th {
  width: 15% !important;
  margin: 2px;
}

/*Fix size non-marc tableEdit*/
form>table#ctnm_cvr_table0>tbody>tr>td#ctnm_cvr_res0>table#nmrc_res_cat>tbody>tr>th {
  width: 15% !important;
  margin: 2px;
}