body {
  font-size: .875rem;
  /* font-size: 13pt; */
}

main[role="main"] {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: 0px;
  margin-left: 0px;

}

.attendance-main {
  height: calc(100dvh - 300px);
  /* Giá trị mặc định */
  overflow-y: auto;
}

.action span {
  visibility: hidden;
}

.action:hover span {
  visibility: visible;
}

.card {
  float: left;
  margin-right: 0px;
  margin-left: 5px;
  margin-bottom: 5px;
}

.small,
small {
  font-size: .6em;
  font-weight: 400;
}

.card2 {
  width: 190px;
  height: 190px;
  overflow: hidden;
  object-fit: contain;


}

@media (max-width: 390px) {
  .card2 {
    width: 145px;
    height: 145px;
  }

  .col-md-9 {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

}


.card-body {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 1px;
  padding: 0.25rem;
}

.card-text2 {
  margin-top: 0;
  margin-bottom: initial;
}

a.link {
  background: transparent;
  color: blue;
  border: none;
  outline: 0;
  /* text-decoration: underline; */
  cursor: pointer;
}

a.link:hover {
  color: firebrick;
}

.description {
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 200px;
}

.descriptionblock {

  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
  display: block;
}

.close-icon {
  border-radius: 20%;
  position: absolute;
  right: 7px;
  top: 5px;
  padding: 5px 5px;
  width: 40px;
  height: 40px;
}

.rotate-icon {
  border-radius: 15%;
  position: absolute;
  right: 7px;
  bottom: 5px;
  padding: 5px 5px;
  width: 40px;
  height: 40px;
}

.modal-content1 {
  width: 100%;
  max-width: 700px;
}

.card .text_info {
  position: absolute;
  /* Position the background text */
  top: 0;
  /* bottom: 0; */
  /* At the bottom. Use top:0 to append it to the top */
  background: rgb(0, 0, 0);
  /* Fallback color */
  background: rgba(0, 0, 0, 0.5);
  /* Black background with 0.5 opacity */
  color: #f1f1f1;
  /* Grey text */
  width: 100%;
  /* Full width */
  padding: 1px;
  /* Some padding */
  border-top-left-radius: 0.25rem 0.25rem;
  border-top-right-radius: 0.25rem 0.25rem;
}

.card .text_info .text_date {
  font-size: 12px;
  color: #fff;
  /* position: absolute; */
  top: 5px;
  left: 5px;
  /* -webkit-text-stroke: 0.7px black; */
  margin-left: 2px;
  margin-bottom: 1px;
}

.page-item.active .page-link {
  z-index: 0;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.45rem 0.5rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #007bff;
  background-color: #fff;
  border: 1px solid #dee2e6;
}

.alert .close {
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.75rem 1rem;
}

/* 🎯 iPhone 12 Pro (<= 400px) */
@media (max-width: 400px) {
  .attendance-main {
    height: calc(100dvh - 270px);
  }
}

/* 🎯 iPhone 12 Pro Max (401px - 430px) */
@media (min-width: 401px) and (max-width: 430px) {
  .attendance-main {
    height: calc(100dvh - 260px);
  }
}

/* 🎯 iPad Gen 9 (768px - 850px) */
@media (min-width: 768px) and (max-width: 850px) {
  .attendance-main {
    height: calc(100dvh - 200px);
  }
}

/* 🎯 Desktop (>= 1024px) */
@media (min-width: 1024px) {
  .attendance-main {
    height: calc(100dvh - 150px);
  }
}

/*
 * Sidebar
 */

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  /* Behind the navbar */
  padding: 48px 0 0;
  /* Height of navbar Cũ */
  /* padding: 10px 0 0;  */
  /* Height of navbar Mới */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}


.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
  /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
  }
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
.icon-image {
  background-image: url("../images/icon/image.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 20px 20px;
  /* background-position: 4px center; */
  padding-left: 25px;
  padding-right: 5px;
}
.icon-add {
  background-image: url("../images/icon/add.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}

.icon-add-black {
  background-image: url("../images/icon/add-black-18.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}

.icon-student {
  background-image: url("../images/icon/student.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}

.icon-student-black {
  background-image: url("../images/icon/add-student-black.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}

.icon-payment {
  background-image: url("../images/icon/payment.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}

.icon-payment-black {
  background-image: url("../images/icon/add-payment-black.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}

.icon-list {
  background-image: url("../images/icon/list-white.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}

.icon-pen {
  background-image: url("../images/icon/pen-white.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}
.icon-edit {
  background-image: url("../images/icon/edit.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}
.icon-change {
  background-image: url("../images/icon/change-white.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 20px;
}

.icon-setting {
  background-image: url("../images/icon/setting-white.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}

.icon-setting-black {
  background-image: url("../images/icon/setting-black.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}

.icon-tool {
  background-image: url("../images/icon/tool-white.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}

.icon-tool-black {
  background-image: url("../images/icon/tool-black.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 20px;
  padding-right: 5px;
}

.icon-upload {
  background-image: url("../images/icon/upload-white.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-position: 4px center;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-upload-black {
  background-image: url("../images/icon/upload-black.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 25px;
  padding-right: 5px;
}
.icon-download {
  background-image: url("../images/icon/download-white.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 25px;
  padding-right: 5px;
  /* margin-left: 25px;
  margin-right: 5px; */
}

.icon-download-black {
  background-image: url("../images/icon/download-black.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 25px;
  padding-right: 5px;
}
.icon-delete {
  background-image: url("../images/icon/delete-white.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 15px;
  padding-right: 5px;
}

.icon-delete-black {
  background-image: url("../images/icon/delete-black.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 15px;
  padding-right: 5px;
}

.icon-filter {
  background-image: url("../images/icon/filter-white.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-filter-black {
  background-image: url("../images/icon/filter-black.svg");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-doc {
  background-image: url("../images/icon/doc.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 20px 20px;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-xls {
  background-image: url("../images/icon/xls.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 20px 20px;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-docx {
  background-image: url("../images/icon/docx.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 20px 20px;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-xlsx {
  background-image: url("../images/icon/xlsx.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 20px 20px;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-pdf {
  background-image: url("../images/icon/pdf.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 20px 20px;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-txt {
  background-image: url("../images/icon/txt.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 20px 20px;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-jpg {
  
  background-image: url("../images/icon/jpg.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 20px 20px;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-png {
  background-image: url("../images/icon/png.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 20px 20px;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-zip {
  background-image: url("../images/icon/zip.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 20px 20px;
  padding-left: 25px;
  padding-right: 5px;
}

.icon-rar {
  background-image: url("../images/icon/rar.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 20px 20px;
  padding-left: 25px;
  padding-right: 5px;
}

.thead {
  background: #dcf4fc !important;
}

.table-a {
  background: #fff3e6 !important;
}

.btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #156828;
}
.btn-pink {
    color: #fff;
    background-color: #e83e8c;
    border-color: #bf1a67;
}
.btn-pink:hover {
    color: #fff;
    background-color: #bb1f68;
    text-decoration: none;
}
.btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #922530;
}

.btn-warning {
  color: #212529;
  background-color: #ffc107;
  border-color: #534008;
}

.form-control {
  display: block;
  width: 100%;
  /* height: calc(1.5em + .75rem + 2px); */
  height: calc(1.1em + .75rem + 2px);
  /* padding: .375rem .75rem; */
  padding: .15rem .2rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #6c757d;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* .form-custom-p {
padding: .375rem .75rem;
} */
.form-control-sm {
  height: calc(1.5em + .5rem + 2px);
  /* padding: .25rem .5rem; */
  padding: .15rem .2rem;
  font-size: .875rem;
  line-height: 1.5;
  border-radius: .2rem;
}

.btn-close-filter {
  padding: .15rem .7rem;
  font-size: 13px;
}

.custom-select {
  height: calc(1.1em + .75rem + 2px);
  padding: .15rem .7rem;
  border: 1px solid #6c757d;
}

.border {
  border: 1px solid #4a7fb3 !important;
  border-radius: .25rem;
  background-color: #caddef;
}

.form-control {
  font-size: 13px;
}

label {
  margin-bottom: .2rem;
}

.sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  /* Cho header nằm trên body */

}

.table thead .sticky-col {
  z-index: 3;
  /* Header cao hơn body */
}

.table-hover tbody tr:hover>.sticky-col {
  background-color: #ececec !important;
  /* 👈 Giả lập hover */
}