/* Layout
   ========================================================================== */

*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
/* Small screens (default)  320 px*/
html {
  font: 100%/1.5 "tahoma", arial;
  font-weight: 800;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body {
  background-color: #FFFFFF;
}
a, button, .myelements
{
	-ms-touch-action: manipulation;	/* IE10  */
	touch-action: manipulation;		/* IE11+ */
}
.container {
  margin: 0 auto;
  width:90%;
  max-width: 25rem;
  margin-bottom:0.50rem;
  margin-top:0.50rem;
}
.subcontainer{
  margin: 0 auto;
  background-color:#FFFFFF;
  max-width: 30rem;
  width:100%;
}
/* Header
   ========================================================================== */

header {
  /*background-color: #FFFFFF;*/
  text-align: left;
}

.intro {
	margin: 0.5rem 0;
}
 
header h1 {
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  padding: .4rem 2.5rem;
  font-size: 1.7rem;
  margin-bottom: 0.1rem;
}

header p {
  color: rgba(255,255,255,0.7);
  margin: 0 auto;
}

header a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

header a:hover { text-decoration: none; }

/* ================Messbox================== */
#containerMess {
  width: 650px;
  padding: 10px;
  margin: 0 auto;
}

#cboxLoadedContent {
  padding: 10px;
  background: #fffff0;
}

#modal-content {
  display: none;
}

#modal-content label {
  display: block;
  margin-bottom: 5px;
}

#modal-content input {
  width: 95%;
}

/* Typography
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: 1.3rem;
  line-height: 1.3em;
  margin-bottom: .5rem;
  color:#666666;
}

h2 {
  font-size: 1.2rem;
  font-weight:normal;
  margin-bottom: .5rem;
}

h3 {
  font-size: 1rem;
  font-weight:normal;
  margin-bottom: .5rem;
}

p {
  color: #999;
  margin: 0 auto;
  max-width: 30rem;
}

input{
	font-size: 1rem;
	font-weight:normal;
	background: #f1f1f1;
	border: 1px #CCCCCC solid;
	border-radius: 5px;
	height:2.7rem;
	width:98%;
}
input[type=date]{
	width:98%;
	-webkit-appearance: textfield;
    -moz-appearance: textfield;
	text-align: left;
    text-align: -webkit-left;
    min-width: 98%;
}
input[type=checkbox]{
	/*font-size: 0.5rem;*/
	width:auto;
	font-size:2rem;
	font-weight: normal;
	margin: auto;
  	position:relative;
	vertical-align:middle;
	padding:0.5rem;
}

input[type='checkbox'] {
  width: 20px;
  height: 20px;
  border: 2px solid #747474;
  border-radius: 50%;
  outline: none;
  opacity: 0.6;
  transition: 0.3s;
}

input[type=file]{
	width:98%;
	background:none;
	border:none;
	-webkit-appearance: textfield;
    -moz-appearance: textfield;
	text-align: left;
    text-align: -webkit-left;
    min-width: 98%;
}
input[type=file]::file-selector-button {
  padding: 5px 10px;
  border-radius: 5px;
}

input[type=file]:hover{
	background:none;
	box-shadow: none;
	
}

.blinking-text {
  /*font-size: 20px;  ขนาดตัวอักษร */
  color: #ff0000; /* สีข้อความ */
  animation: blinking 1.5s infinite; /* ใช้แอนิเมชันกระพริบ */
}

@keyframes blinking {
  0% { opacity: 1; }   /* แสดงข้อความ */
  50% { opacity: 0; }  /* ซ่อนข้อความ */
  100% { opacity: 1; } /* แสดงข้อความ */
}


/*input[type=radio]{
	width:auto;
	font-size:2rem;
	font-weight: normal;
	margin: auto;
  	position:relative;
	vertical-align:middle;
	padding:0.5rem;
}*/
.radio_PDF {
  accent-color: blue;
}
.radio_EXCEL {
  accent-color: green;
}
input[type='radio'] {
  width: 20px;
  height: 20px;
  border: 2px solid #747474;
  border-radius: 50%;
  outline: none;
  opacity: 0.6;
  transition: 0.3s;
}
input[type='radio']:hover:before {
  box-shadow: 0px 0px 0px 12px rgba(80, 80, 200, 0.2);
  border-radius: 50%;
  opacity: 1;
}

input[type='radio']:before {
  content: '';
  display: block;
  width: 60%;
  height: 60%;
  margin: 20% auto;    
  border-radius: 50%;
}

input:hover{ 
	box-shadow: 0 3px 4px 0 rgba(0,0,0,0.24), 0 4px 12px 0 rgba(0,0,0,0.19); 
}

#div_flex {
	display:inline-block;
	width:100%;
}

#div_flex input[type=date]{
	width:50%;
	-webkit-appearance: textfield;
    -moz-appearance: textfield;
	text-align: left;
    text-align: -webkit-left;
    min-width: 50%;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #CCCCCC;
  opacity: 1; /* Firefox */
}

::-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #fff;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #fff;
}

select{
	font-size: 1rem;
  	font-weight:normal;
	background: #f1f1f1;
	border: 1px #CCCCCC solid;
	border-radius: 5px;
	height:2.7rem;
	width:98%;
}
option{
	height:2.7rem;
}

table{
  margin: 0 auto;
  width:95%;
  max-width: 25rem;
  margin-bottom:0.50rem;
  margin-top:0.5rem;
}

th {

}

td {
  white-space: nowrap;
  padding-top:0.2em;
}

/* Links
   ========================================================================== */
a {
  color: #999999; /* #497bad */
  text-decoration: none;
}

/* Buttons
   ========================================================================== */
/*0066CC; สีน้ำเงิน*/
#button_login{
	background-color:#008000;
	color:#FFFFFF;
	border: 1px #CCCCCC solid;
	border-radius: 5px;
	padding: 0.2em 0.2em 0.2em 0.2em;
	font-size: 1.2rem;
	height:2.8rem;
	width:40%;
	margin-top:1rem;
}
#button_login:hover{ 
	box-shadow: 0 3px 4px 0 rgba(0,0,0,0.24), 0 4px 12px 0 rgba(0,0,0,0.19); 
}

#button_export{
	background-color:#008000;
	color:#FFFFFF;
	border: 1px #CCCCCC solid;
	border-radius: 5px;
	padding: 0.2em 0.2em 0.2em 0.2em;
	font-size: 1.2rem;
	height:2.8rem;
	width:35%;
	margin-top:1rem;
}
#button_export:hover{ 
	box-shadow: 0 3px 4px 0 rgba(0,0,0,0.24), 0 4px 12px 0 rgba(0,0,0,0.19); 
}

#button_exportUSB{
	background-color:#008000;
	color:#FFFFFF;
	border: 1px #CCCCCC solid;
	border-radius: 5px;
	padding: 0.2em 0.2em 0.2em 0.2em;
	font-size: 1.2rem;
	height:2.8rem;
	width:35%;
	margin-top:1rem;
}
#button_exportUSB:hover{ 
	box-shadow: 0 3px 4px 0 rgba(0,0,0,0.24), 0 4px 12px 0 rgba(0,0,0,0.19); 
}

#button_back{
	background-color:rgba(192, 0, 0, 1);
	color:#FFFFFF;
	border: 1px #CCCCCC solid;
	border-radius: 5px;
	padding: 0.2em 0.2em 0.2em 0.2em;
	font-size: 1.2rem;
	height:2.8rem;
	width:20%;
	margin-top:1rem;
}

#button_del{
	color:#000000;
	border: 1px #CCCCCC solid;
	border-radius: 5px;
	padding: 0.2em 0.2em 0.2em 0.2em;
	font-size: 1rem;
	height:2.5rem;
	width:20%;
	margin-top:1rem;
	background-color:#FFCC00;
}

#button_back:hover{ 
	box-shadow: 0 3px 4px 0 rgba(0,0,0,0.24), 0 4px 12px 0 rgba(0,0,0,0.19); 
}

#img_logo{
	margin-top:0.2rem;
	margin-bottom:1rem;
	position:relative;
}
#img_logo img{
	max-height:2.7rem;
}
#label_report{
	background-color:#0066CC;
	color:#FFFFFF;
	border:1px #0066CC solid;
	font-size:1.5rem;
	font-weight: normal;
	margin: auto;
  	position:relative;
	vertical-align:middle;
	padding:0.5rem;
}
#label_report img{
	max-height: 1.5rem;
}
#label_twait{
	background-color:#0066CC;
	color:#FFFFFF;
	border:1px #0066CC solid;
	font-size:1.5rem;
	font-weight: normal;
	margin: auto;
  	position:relative;
	vertical-align:middle;
	padding:0.5rem;
}

/*Report menu*/
#button_report{
	color:#0066CC;
	border:2px #0066CC solid;
	border-radius: 10px;
	padding: 0.5rem;
	font-size: 1.4rem;
	font-weight: normal;
	margin: auto;
  	position:relative;
	vertical-align:middle;
	margin-bottom:0.5rem;
	
}
#button_report img{
	max-height:1.3rem;
}
#button_report:hover{ 
	box-shadow: 0 3px 4px 0 rgba(0,0,0,0.24), 0 4px 12px 0 rgba(0,0,0,0.19); 
}

#label_title{
	color:#595959;
	font-size: 1.2rem;
	font-weight: normal;
	margin: auto;
  	position:relative;
	vertical-align:bottom;
	margin-top:1rem;
	margin-bottom:0.2rem;
	/*border: 1px #0066CC solid;*/
}
#button_logout{
	font-size:medium; 
	box-shadow: rgba(0,0,0,0.24); 
	font-weight:normal; 
	color:#999999; 
	height:auto; 
	width:auto; 
	padding:5px 10px 5px 10px;
	margin-top:1rem;
}
#button_logout:hover{ 
	box-shadow: 0 3px 4px 0 rgba(0,0,0,0.24), 0 4px 12px 0 rgba(0,0,0,0.19); 
}

#logout-button {
  padding: 10px 20px; /* ความสูงและความกว้างของปุ่ม */
  font-size: 16px; /* ขนาดตัวอักษร */
  font-weight: bold; /* ตัวอักษรหนา */
  color: white; /* สีตัวอักษร */
  background-color: #ff4d4d; /* สีพื้นหลัง */
  border: none; /* ลบเส้นขอบ */
  border-radius: 8px; /* มุมโค้งมน */
  cursor: pointer; /* เปลี่ยนเคอร์เซอร์เมื่อเลื่อนเมาส์ */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* เงา */
  transition: all 0.3s ease; /* เอฟเฟกต์การเปลี่ยน */
}

/* เอฟเฟกต์เมื่อเอาเมาส์วางบนปุ่ม */
#logout-button:hover {
  background-color: #ff1a1a; /* สีเข้มขึ้น */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* เงาเพิ่มขึ้น */
  transform: translateY(-2px); /* ปุ่มยกขึ้น */
}

/* เอฟเฟกต์เมื่อคลิก */
#logout-button:active {
  background-color: #e60000; /* สีเข้มสุด */
  transform: translateY(2px); /* ปุ่มกดลง */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* เงาลดลง */
}


#fix_bottom{
	display:inherit;
	position: fixed;
	left: 0;
	bottom: 0; 
	width: 100%;
	color: #000;
	text-align: center;
	background-color:#000000;
	font-size:1.5rem;
	padding-top:1.1rem;
	padding-bottom:1.1rem;
}

#fix_bottomBack{
	display:inherit; 
	position: fixed; 
	left: 0; 
	bottom: 0; 
	width: 50%; 
	color: white; 
	text-align: center; 
	background-color:#C00000; 
	font-size:1.5rem;
	font-weight:normal;
	padding-top:1rem;
	padding-bottom:1rem;
	/*sborder: 1px #999999 solid;
	border-radius: 5px;*/
}

#fix_bottomBlue{
	display:inherit; 
	position: fixed; 
	right: 0; 
	bottom: 0; 
	width: 49%; 
	color: #0000FF; 
	text-align: center; 
	background-color:#0000FF; 
	font-size:1.5rem;
	font-weight:normal;
	padding-top:1rem;
	padding-bottom:1rem;
}

#fix_bottomCloseImg{
	display:inherit; 
	position: fixed; 
	left: 0; 
	bottom: 0; 
	width: 98%; 
	color: white; 
	text-align: center; 
	background-color:#C00000; 
	font-size:1.5rem;
	font-weight:normal;
	padding-top:1rem;
	padding-bottom:1rem;
	border: 1px #999999 solid;
	border-radius: 5px;
}

.top-buttons {
  display: inline-block;
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  margin-left: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 5px;
  margin-top: 15px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}
.top-buttons hover {
  background-color: #5a6268;
}

.actions {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.btn-latest {
  flex: 1;
  margin: 0 5px;
  padding: 12px 15px;
  font-size: 1.2rem;/*14px*/
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
  background-color: #0078d7;
}
.btn-latest:hover {
  background-color: #0056b3;
}


/* Medium screens (640px) */
@media (min-width: 40rem) { 
  html { font-size: 112%; }
  .intro { margin: 2.5rem 0; }
  .mobile { max-width: 300px; }
  section { margin: 0.5rem 0; padding: 1rem 0; }
  header h1 { font-size: 1.5rem; }
  header h2 { font-size: 1.2rem;}
  header h3 { font-size: 1rem; }
  input{ width:98%; }
  input[type=date]{ width:98%; }
}

/* Large screens (1024px) */
@media (min-width: 64rem) { 
  html { font-size: 120%; }
  .intro { margin: 0.5rem 0; }
  .mobile { max-width: 325px; }
  section { margin: 0.5rem 0; padding: 1rem 0; }
  header h1 { font-size: 1.5rem; }
  header h2 { font-size: 1.2rem;}
  header h3 { font-size: 1rem; }
  input{ width:98%; }
  input[type=date]{ width:98%; }
	
}


/* Utilities
   ========================================================================== */

.remove-padding { padding-bottom: 0; }
.remove-border { border: none; }

/* Clearfix by Nicolas Gallagher
   ========================================================================== */

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }
