body { background-color: #f8f9fa; }
main { padding-top: 100px; margin: 20px; }
.navbar, footer, .modal-header, .btn-main {
    background-color: #4e8b63;
    color: white;
}
.navbar .nav-link, .navbar-brand { color: #fff !important; }
.navbar .nav-link:hover, .dropdown-item:hover { color: #ffc107 !important; }
.dropdown-menu { background-color: #4e8b63; max-height: 20vh; overflow-y: auto; }
.dropdown-item { color: #fff; }
footer { padding: 20px 0; }
.btn-main:hover { background-color: #168f3f; }
.sidebar {
    background-color: #4e8b63;
    min-height: 100vh;
    color: white;
}
.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
}
.sidebar a:hover {
    background-color: #168f3f;
}
@media (max-width: 767.98px) {
    .sidebar {
    display: none;
    }
}

/* 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: 99; /* 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 */

/* 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;
}
