﻿/* ฟอนต์และพื้นหลัง */
body {
  
  font-family: 'Phetsarath OT', sans-serif;
  background-color: #34495e;
  margin: 0;
  padding: 0;
  padding-top: 56px;
}

/* Navbar */
.navbar {
  background-image: linear-gradient(to bottom left, rgb(211, 203, 203), #a3092b);
  transition: background-image 0.5s;
}
.nav-item .nav-link {
  color: #a3092b;
}
.nav-up {
  top: -80px;
  transition: top 0.5s ease-in-out;
}

/* Modal */
.modal-content .modal-header {
  height: 59px;
  background-color: #a3092b;
  position: relative;
  border-radius: 0;
}
.modal-content .modal-header .text {
  height: 56px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 16px;
  padding: 8px 15px;
  color: #fff;
}
.modal-content .modal-header .text .field {
  font-size: 19px;
}
.modal-content .modal-header .text .field .name {
  font-weight: normal;
}
.modal-body .menu {
  padding-left: 0;
}

/* ตาราง */
table {
  width: 100%;
  border-collapse: collapse;
  background: #34495e;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


table th {
  font-size: 12px;
  color: #eae12a;
   text-align: center;
	border: 1px solid #ddd;
  padding: 2px;
}
 table td {
  font-size: 10px;
  /* color: #dd5; */
  text-align: center;
  border: 1px solid  #ffffff;
  padding: 8px;
  
}
table tr {
  border-color: #46637f;
}
table td:hover {
  background-color: #FFF842;
  color: #403E10;
  font-weight: bold;
  box-shadow: #7F7C21 -1px 1px, #7F7C21 -2px 2px, #7F7C21 -3px 3px;
  transform: translate3d(6px, -6px, 0);
  transition: all 0.4s ease;
}
#cellDownTable {
  background-color: whitesmoke;
}
#cellDownTable th,
#cellDownTable td {
  background-color: whitesmoke;
  color: black;
}

/* Responsive */
@media (max-width: 767.98px) {
  #cellDownTable {
    font-size: 12px;
  }
  #cellDownTable th,
  #cellDownTable td {
    white-space: nowrap;
  }
}

/* DataTable Styling */
div.dataTables_length label,
div.dataTables_filter label,
div.dataTables_info,
div.dataTables_paginate {
  color: red !important;
  font-size: 12px !important;
}
div.dataTables_length select,
div.dataTables_paginate a {
  font-size: 12px !important;
  color: red !important;
}

/* Chart */
#piechart1 {
  aspect-ratio: 2 / 1;
  width: 100%;
}

/* Heading */
h2 {
  margin-top: 20px;
  font-weight: bold;
}
.container {
  margin-top: 30px;
}
.white-text {
  color: whitesmoke;
}