body {
    margin: 14px;
    font-family: Arial;
}
/* Header */
.header {
    background-color: #043252; /* midnightblue */
    padding: 10px;
}

/* Navbar container */
.navbar {
  overflow: hidden;
  background-color: #1a949f;
  font-family: Arial;
}
/* Links inside the navbar */
.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  font-weight: bold;
  margin: 0; /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: green;
  color: yellow;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1a949f;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px grey; /* rgba(0,0,0,0.2) */
  z-index: 3;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: green;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.content { /* Hiển thị nội dung của web */
    background-color: #f1f1f1;
    padding: 20px 15px 20px 15px; /* Top Right Bottom Left */
    font-size: 13pt;
    border: 1px solid #1a949f;
}

.content table {
    width: 100%;
    font-size: 12pt;
}

.container {
    width: 100%;
    margin: auto;
}

.divwithscroll {
    height: 300px;
    overflow: scroll;
}

.footer {
    background-color: #043252; /* midnightblue */
    padding: 10px;
}

.footer a {
    color: lightblue;
    font-size: 12pt;
    font-weight: bold;
}

a {
    color: blue;
    font-size: 12pt;
    font-weight: bold;
}

.programname {
    width: 80%;
    font-family: "Times New Roman";
    color: #ffff00; /* yellow */
    text-align: center;
    font-size: 24pt;
    font-weight: bold;
}

#date {
    float: right;
    color: #ffffff; /* white */
    text-align: center;
    font-size: 12pt;
    padding: 1px 8px 1px 8px;
}

#clock {
    float: right;
    background-color: #0000ff; /* blue */
    color: #ffffff; /* white */
    text-align: center;
    font-size: 12pt;
    font-weight: bold;
    padding: 1px 8px 1px 8px;
}

#user {
    float: right;
    color: yellow;
    text-align: center;
    font-size: 12pt;
    padding: 14px;
}

.copyright {
    color: #ffff00; /* yellow */
    text-align: center;
    font-size: 12pt;
}

datalist {
    display: none;
}

h1, h2, h3, h4, h5 {
font-weight: bold;
/* color: #000000; */
}

input[type=text], input[type=password], input[type=email], input[type=number], input[type=tel], input[type=date], select {
    width: 100%;
    padding: 4px 10px;
    margin: 4px 0;
    font-size: 12pt;
    display: inline-block;
    border: 1px solid #1a949f;
    box-sizing: border-box;
}

textarea {
    width: 100%;
    padding: 4px 10px;
    border: 1px solid #1a949f;
    box-sizing: border-box;
}

.button {
background-color: #1a949f;
color: #ffffff;
font-weight: bold;
font-size: 12pt;
padding: 4px 10px;
margin: 4px 0;
border: none;
cursor: pointer;
border-radius: 8px; /* Bo góc button */
}

.button:hover {
    opacity: 0.8;
    background-color: green;
    color: #ffff00; /* Yellow */
}

.form {
    width: 65%;
    border: 1px solid #1a949f;
    background-color: #dcd8d2; /* #95c8b8 */
    padding: 10px;
    margin: 10px auto;
    border-radius: 8px;
}

.modal {
    display: none; /* mặc định được ẩn đi */
    position: fixed; /* vị trí cố định */
    z-index: 3; /* Ưu tiên hiển thị trên cùng do đã có 2 cái khác hiển thị trước */
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 85%; 
    overflow: auto;
    /* background-color: #f1f1f1; */
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 10px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 3; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

/* CSS for button Back to Top */
#topBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 10px;
    z-index: 99;
    font-size: 18px;
    font-weight: bold;
    border: none;
    outline: none;
    background-color: #043252;
    color: yellow;
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
}

#topBtn:hover {
background-color: green;
}
/* Hết - CSS for button Back to Top */

.avatar {
  vertical-align: middle;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* New table style */
#styletable {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
}
#styletable td, #styletable th {
  border: 1px solid grey;
  padding: 4px;
}
#styletable tr:nth-child(even){background-color: #c5d1d5;}
#styletable tr:hover {background-color: #9abded;}
#styletable th {
  padding-top: 4px;
  padding-bottom: 4px;
  text-align: center;
  background-color: #426d92; /* #04AA6D */
  color: white;
}

/* Table cuộn dọc và cuộn ngang */
#hvscrolltable {
    overflow: scroll;
    height: 400px;
    width: 100%;
}
#hvscrolltable table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}
#hvscrolltable thead{
    position: sticky;
    top: 0;
    background-color: #1ea54c;
    color: white;
    z-index: 1;
}
/* Cột 1 */
#hvscrolltable td:first-child {
    position: sticky;
    left: 0;
    background-color: #fff;
    color: black;
}
#hvscrolltable th:first-child {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: #426d92;
    color: #fff;
}
#hvscrolltable tbody tr:nth-child(odd) {
    background: #c5d1d5;
}
#hvscrolltable tbody tr:nth-child(even) {
    background: #eee;
}
#hvscrolltable th, #hvscrolltable td {
    border: 0px solid #ddd;
    padding: 4px;
}
#hvscrolltable td {
    line-height: 2;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}
