/* ==========================================================================
   CỔNG THÔNG TIN ĐÀO TẠO THỪA THIÊN HUẾ - QUẢN LÝ ĐIỂM HỌC SINH
   Giao diện đơn giản, chuẩn theo hệ thống thật, font Tahoma, không màu mè
   ========================================================================== */

* {
  box-sizing: border-box;
  font-family: Tahoma, Arial, Helvetica, sans-serif !important;
}

body {
  margin: 0;
  padding: 0 0 40px 0;
  font-family: Tahoma, Arial, Helvetica, sans-serif !important;
  font-size: 9pt !important;
  background-color: #121212;
  color: #e0e0e0;
}

a {
  color: #3f74e2;
  text-decoration: none;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 9pt;
}

a:hover {
  text-decoration: underline;
}

/* ================= CONTAINER CHÍNH ================= */
#div_TraCuu {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  background-color: #1a1a1a;
  border: 1px solid #333333;
  text-align: left;
}

/* Banner */
.Banner_Trai {
  width: 100%;
  height: 140px;
  background-color: #0e95d0;
  background-image: url('../images/banner.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* Menu Hệ Thống */
.DongMenuHeThong {
  background: #118cd0;
  height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.DongMenuChucNang ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.DongMenuChucNang ul li {
  display: inline-block;
}

.DongMenuChucNang ul li a {
  display: block;
  padding: 8px 12px;
  font-size: 8.5pt;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.DongMenuChucNang ul li a.active,
.DongMenuChucNang ul li a.current {
  color: #d32f2f;
  background-color: #ffffff;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  margin-top: 2px;
}

/* Thông tin cá nhân bên phải menu */
.DongTTCN {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8.5pt;
  color: #ffffff;
}

.TTCN_Link {
  color: #ffffff;
  text-decoration: none;
  font-weight: normal;
  cursor: pointer;
  font-size: 8.5pt;
}

.TTCN_Link:hover {
  text-decoration: underline;
  color: #ffeb3b;
}

.TTCN_TenTaiKhoan {
  color: #ffeb3b;
  font-weight: bold;
}

/* Vùng Chính */
.Vung_Chinh {
  padding: 6px 10px 15px 10px;
  background-color: #1a1a1a;
}

/* Khung Viền Bộ Lọc (Năm học, học sinh, học kỳ) */
.Vien_Khung {
  border: 1px solid #383838;
  background-color: #242424;
  margin-bottom: 6px;
  margin-top: 5px;
  padding: 6px 10px;
  font-size: 9pt;
}

.Dong_Chinh {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.Dong_Mobi {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9pt;
  font-weight: normal;
  color: #ffffff;
}

.Dong_Mobi select,
.Dong_Mobi1 select {
  border: 1px solid #444444;
  height: 23px;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 1px 4px;
  outline: none;
  font-size: 9pt;
  font-family: Tahoma, Arial, sans-serif !important;
}

/* Nút bấm chuẩn ASP.NET portal */
.button {
  border: 1px solid #ccc;
  font-size: 9pt;
  cursor: pointer;
  font-weight: bold;
  height: 25px;
  background-color: #118cd0;
  padding: 3px 12px;
  border-radius: 3px;
  color: #ffffff;
  font-family: Tahoma, Arial, sans-serif !important;
  outline: none;
}

.button:hover {
  background-color: #0578b8;
  color: yellow;
  border-color: #ccc;
}

/* ================= BẢNG ĐIỂM (Vien_Bang) ================= */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #333333;
}

table.Vien_Bang {
  width: 100%;
  border-collapse: separate;
  border-spacing: 1px;
  background-color: #333333;
  font-size: 9pt;
}

/* Header bảng (Đơn giản 1 dòng như ảnh mẫu) */
.Dong_TieuDe {
  height: 48px;
}

.Cot_TieuDe {
  text-align: center;
  font-weight: bold;
  background-color: #1e1e1e;
  color: #4985b2;
  padding: 6px 3px;
  border-bottom: 1px solid #333333;
  font-size: 8.5pt;
  vertical-align: middle;
  line-height: 1.35;
}

/* Dòng dữ liệu xen kẽ */
.Dong_Chan {
  background-color: #242424;
  height: 28px;
}

.Dong_Le {
  background-color: #1a1a1a;
  height: 28px;
}

.Dong_Chan td,
.Dong_Le td {
  padding: 2px 4px;
  vertical-align: middle;
  color: #ffffff;
  font-size: 9pt;
}

/* Hiệu ứng rê chuột và chọn dòng */
.Dong_Chuot,
.Dong_Chan:hover,
.Dong_Le:hover {
  background-color: #2f2518 !important;
  cursor: default;
}

.Dong_Chon,
tr.row-selected {
  background-color: #3a2e1d !important;
}

/* Input điểm số trong bảng - Không viền, trong suốt, chữ trắng */
.diem-input {
  width: 100%;
  height: 24px;
  text-align: center;
  background-color: transparent;
  border: 1px solid transparent;
  color: #ffffff;
  font-size: 9pt;
  font-weight: normal;
  padding: 0;
  outline: none;
  font-family: Tahoma, Arial, sans-serif !important;
}

.diem-input:hover {
  border: 1px solid #444444;
}

.diem-input:focus {
  background-color: #0f2438 !important;
  border: 1px solid #118cd0 !important;
  color: #ffffff !important;
}

/* Báo lỗi nhập sai */
.NhapKhongHopLe {
  background-color: #721c24 !important;
  color: #ffffff !important;
  border: 1px solid #f5c6cb !important;
}

/* Ô Điểm trung bình môn: Chữ trắng theo đúng yêu cầu */
.dtb-cell {
  text-align: center;
  font-weight: bold;
  font-size: 9pt;
  color: #ffffff !important;
  font-family: Tahoma, Arial, sans-serif !important;
}

/* Input nhận xét */
.nhanxet-input {
  width: 100%;
  height: 24px;
  background-color: transparent;
  border: 1px solid transparent;
  color: #ffffff;
  font-size: 8.5pt;
  padding: 0 4px;
  outline: none;
  font-family: Tahoma, Arial, sans-serif !important;
}

.nhanxet-input:hover {
  border: 1px solid #383838;
}

.nhanxet-input:focus {
  background-color: #0f2438 !important;
  border: 1px solid #118cd0 !important;
  color: #ffffff !important;
}

/* Tên môn học */
.mon-name {
  color: #ffffff;
  font-weight: normal;
  padding-left: 2px;
}

/* KHUNG DƯỚI CÙNG: NÚT CẬP NHẬT VÀ TÙY CHỌN KÍN ĐÁO */
.Vung_CapNhat_Duoi {
  margin-top: 10px;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.Vung_NutChinh {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Thanh tùy chọn kín đáo, chữ nhỏ xám mờ */
.TuyChon_KinDao {
  font-size: 8pt;
  color: #777777;
  display: flex;
  align-items: center;
  gap: 10px;
}

.TuyChon_KinDao a {
  color: #777777;
  font-size: 8pt;
  text-decoration: none;
  cursor: pointer;
}

.TuyChon_KinDao a:hover {
  color: #4985b2;
  text-decoration: underline;
}

/* FOOTER */
.Footer {
  background-color: #0b5e8c;
  background-image: linear-gradient(to right, #094a6e, #0e86bc, #094a6e);
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  padding: 10px 10px;
  line-height: 1.5;
  font-size: 8.5pt;
  border-top: 1px solid #063955;
}

.Footer a {
  color: #ffffff;
  text-decoration: none;
}

.Footer a:hover {
  text-decoration: underline;
}

/* ================= MODAL / POPUP ĐƠN GIẢN ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.modal-content {
  background-color: #222222;
  border: 1px solid #444444;
  border-radius: 3px;
  width: 440px;
  max-width: 90vw;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.modal-header {
  background-color: #118cd0;
  color: #ffffff;
  padding: 7px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 9pt;
}

.modal-header .btn-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 13pt;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 14px 18px;
  color: #e0e0e0;
  font-size: 8.5pt;
}

.modal-footer {
  padding: 8px 18px;
  background-color: #1c1c1c;
  border-top: 1px solid #333333;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
  font-size: 8.5pt;
  color: #cccccc;
}

.form-control {
  width: 100%;
  height: 26px;
  padding: 2px 6px;
  background-color: #161616;
  border: 1px solid #444444;
  color: #ffffff;
  border-radius: 2px;
  outline: none;
  font-size: 8.5pt;
  font-family: Tahoma, Arial, sans-serif !important;
}

/* In ấn */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  #div_TraCuu {
    box-shadow: none;
    border: none;
    width: 100% !important;
  }
  .Vung_CapNhat_Duoi,
  .DongMenuHeThong,
  .modal-overlay,
  .no-print {
    display: none !important;
  }
  .diem-input,
  .nhanxet-input {
    border: none !important;
    background: transparent !important;
    color: #000000 !important;
  }
  table.Vien_Bang {
    background-color: #999999 !important;
  }
  .Cot_TieuDe {
    background-color: #f2f2f2 !important;
    color: #000000 !important;
  }
  .Dong_Chan, .Dong_Le {
    background-color: #ffffff !important;
  }
  .Dong_Chan td, .Dong_Le td, .dtb-cell {
    color: #000000 !important;
  }
}
