.top-header {
  background: #004085;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  width: 100vw;             /* ✅ chiếm toàn bộ chiều rộng màn hình */
  margin-left: calc(-1 * var(--container-padding, 0px)); /* nếu app-container có padding */
  margin-right: calc(-1 * var(--container-padding, 0px));
  box-sizing: border-box;
}
.org-name {
  font-weight: bold;
  font-size: 18px;
}
.top-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  margin-right: 0.6cm;
  padding-right: 0.6cm; /* Thêm padding phải */
}

.top-menu a {
  color: white;
  margin-left: 12px;
  text-decoration: none;
  background: #4e54c8;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.top-menu a:hover {
  background: #6f74d9;
  filter: brightness(1.1);
}

 
.gov-label {
  padding: 4px 6px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
 
.gov-label:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffeb3b;
}
.level-header {
  background: linear-gradient(135deg, #4A90E2, #357ABD, #2C3E50) !important;
  color: white !important;
  padding: 14px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 3px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;   /* Căn giữa ngang */
  height: 130px;
  white-space: nowrap;       /* Không xuống dòng */
      /* ✅ Cho phép cuộn ngang nếu quá dài */  
  flex-wrap: nowrap;         /* Không cho các phần tử wrap xuống dòng */
}
.clock-inline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
} 
.timeline-bar {
  width: 480px;
  height: 6px;
  background: linear-gradient(90deg, #ffcccc, #ffaaaa);
  border-radius: 3px;
  position: relative;
}
 
.timeline-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  background: #cc0000;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: move-dot 6s linear infinite, spin-dot 1.2s linear infinite;
}
 
@keyframes move-dot {
  from { left: -20px; }
  to { left: 100%; }
}
 
@keyframes spin-dot {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}
 
#uptime-box {
  background: #003366;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-left: 8cm; /* khoảng cách giữa Lob và đồng hồ */
  margin-top: -10px; /* giữ nguyên nếu muốn căn chỉnh lên xuống */
}
.level-header.special-level-header {
  display: flex;
  gap: 10px; 
}
.level-header.special-level-header span {
  border-radius: 12px;
  padding: 15px 15px; /* tăng padding dọc từ 10px lên 15px */
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.level-header.special-level-header span:hover {
  background-color: rgba(255, 255, 255, 0.35); /* Hiệu ứng hover nhẹ */
}

.search-top-row,
.search-bottom {
  display: flex;
  justify-content: flex-start; /* Căn trái */
  gap: 16px; /* Khoảng cách giữa các phần tử */
  align-items: center;
}
 
.input-box {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  background-color: #fff;
  width: 200px;
}
 
.search-header {
  padding: 10px;
}
 
.search-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap; /* ❌ Không cho xuống dòng */
}
.search-row .org-info {
  white-space: nowrap; /* Tránh vỡ dòng */
  font-weight: bold;
}
 .icon-group {
  display: flex;
  align-items: center;
  margin-left: 4cm; 
}
.search-row input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
}
.right-side {
  flex: 1; 
 background: #ffffff;
 border-radius: 0px;
  padding: 0px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow-y: ;verflow-x: auto;
  overflow-y: hidden;
 min-height: 490px;
 margin-top: 0;
 margin-right: 1px; /* cách khung app 2px về bên phải */
 box-sizing: border-box; /* đảm bảo padding/margin không làm thay đổi kích thước tổng */
}

/* Khung ngoài */
.left-wrapper {
  height: 100%; /* Chiếm toàn bộ chiều cao cha */
  margin-left: 1px;
}

.left-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-right: 1px;
}

.top-left-box {
  flex: 0 0 auto; /* Chiều cao cố định hoặc tự động tùy nội dung */
}

.bottom-left-box {
  max-height: 488px; /* Chiều cao tối đa hiện ra, bạn có thể chỉnh tùy ý */
  overflow-y: auto;  /* Bật scroll khi nội dung vượt quá */
  padding: 8px;
  background: #f8f8f8; /* Màu nền nếu muốn */
}
.left-wrapper,
.right-side {
    margin-top: 1px; /* đẩy xuống 2px */
    /* hoặc padding-top: 2px; nếu muốn đẩy nội dung bên trong */
}

/* Mỗi item menu */
.menu-group {
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 2px;
  background: #fff;
  border: 1px solid #ddd;
}
.menu-group:hover {
  background: #f0f0f0;
}

.menu-group ul li {
  margin: 4px 0;
  cursor: pointer;
}
 
.menu-group strong {
  display: block;
  margin-bottom: 5px;
}
 
.menu-group-bc {
  background: #f5f8ff;
  padding: 10px;
  border-left: 4px solid #4e54c8;
  border-radius: 8px;
}
 .cap-box {
  margin-top: 12px;
  background: #e0e0f0;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-align: center;
}
@media (max-width: 768px) {
  .main-section {
    grid-template-columns: 1fr;
  }
  .left-column, .right-column {
    width: 100%;
  }
}
 
.media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* hoặc contain nếu muốn giữ nguyên video không cắt */
  display: block;
  border-radius: 10px;
}
 
.media-container {
  width: 100%;
  height: 100%;      /* Chiếm toàn bộ khung cha */
  aspect-ratio: unset; /* bỏ tỉ lệ nếu muốn tự do */
}
.media-btn {
  background-color: transparent !important; /* Không nền */
  border: none !important;                  /* Không viền */
  padding: 0 !important;                    /* Không padding */
  border-radius: 0 !important;              /* Không bo góc */
  color: white;                             /* Màu chữ */
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  z-index: 2px;
  width: auto;                             /* Kích thước tự nhiên theo chữ */
  height: auto;
  line-height: normal;
}

.media-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
 
#mediaContainer {
  width: 490px;           /* chiều rộng tuỳ ý */
  aspect-ratio: 16 / 9;    /* tỉ lệ 6:9 */
  overflow: hidden;
}

#mediaContainer video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* hoặc contain nếu muốn video không bị cắt */
}

.left-btn {
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
}
 
.right-btn {
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
}
 
* {
  box-sizing: border-box;
}
.search-table {
  margin-top: 10px;
}
 
.search-table .row {
  display: flex;
  flex-wrap: nowrap;
  padding-left: 12px;
  min-width: 1100px;
  gap: 0;
}
 
.search-table .row > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.search-table .row > div:nth-child(5),
.search-table .row > div:nth-child(6),
.search-table .row > div:nth-child(7) {
  width: 90.4px;
}
.search-table .row > div:nth-child(1),
.search-table .row > div:nth-child(3),
.search-table .row > div:nth-child(4),
.search-table .row > div:nth-child(8),
.search-table .row > div:nth-child(10),
.search-table .row > div:nth-child(11) {
  width: 60.3px;
}
 
.search-table .row > div:nth-child(2) {
  width: 250px;
}
 
.search-table .row > div:nth-child(9),
.search-table .row > div:nth-child(12) {
  width: 90px;
}
.search-table label {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
  text-align: center;
  width: 100%;
}
 
.search-table input[type="text"],
.search-table input[type="date"],
.search-table input[type="file"] {
  width: 100%;
  padding: 5px 6px;
  font-size: 11px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}
 
input[type="file"]::file-selector-button {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eee;
  border: 1px solid #ccc;
  cursor: pointer;
}
 .table-wrapper {
  width: 100%;
} 
.popup-box {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 600px;
  max-width: 90vw;
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  transform: translate(-50%, -50%);
  z-index: 9999;
  text-align: center;
}
 
.popup-box h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #333;
}
 
.popup-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  text-align: left;
  color: #555;
}
 
.popup-box input[type="file"],
.popup-box input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 15px;
}
 
.popup-box button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: #4e54c8;
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
 
.popup-box button:hover {
  background: #363db2;
}
 
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
}
 
.close-btn:hover {
  color: #333;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
 
.globe-icon {
  display: inline-block;
  font-size: 44px;       
  animation: spin 4s linear infinite;  
  transform-origin: center;
}
.menu-group {
  display: flex;
  align-items: flex-end;       /* Đẩy chữ xuống sát mép dưới */
  justify-content: flex-start; /* Căn chữ về bên trái */
  height: 40px;                /* Chiều cao mỗi ô */
  padding-left: 8px;           /* Khoảng cách lề trái */
  padding-bottom: 2px;         /* Sát mép dưới nhưng vẫn có chút khoảng đệm */
  box-sizing: border-box;
  cursor: pointer;
  font-size: 20px;
  border-bottom: 1px solid #ddd; /* Tùy chọn: kẻ đường ngăn ô */
}
 
.menu-group:hover {
  background-color: #4e54c8; 
  color: white; 
}
.media-placeholder {
  position: relative;
}
 
#mediaPlaceholder {
  position: relative;
  width: 100%;
  height: auto; /* hoặc cố định chiều cao nếu cần */
  overflow: hidden;
}
 
/* 2. Video chiếm hết khung */
#mediaPlaceholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  background: none;
   pointer-events: auto;
}

.bottom-center-plus {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;

  background: black;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 22px;  /* chọn size phù hợp để dấu + nằm giữa */
  line-height: 1;   /* tránh line-height làm lệch */
  padding: 0;       /* tránh padding ảnh hưởng */
  cursor: pointer;
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.bottom-center-plus:hover {
  opacity: 1;
}

.modal {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items:center; justify-content:center;
}

.gallery-grid video,
.gallery-grid img {
  width: 100%; height: auto; border-radius:4px;
}
.video-container {
  position: relative;
}

.video-nav-btn {
  font-size: 14px;
  padding: 2px 4px;
  border: none;
  background: none;
  cursor: pointer;
}
 
.video-nav-btn:first-child {
  margin-right: 20px; /* cách nút tiếp theo 12px */
}
 
.video-nav-btn:hover,
.media-wrapper:hover .video-nav-btn {
  opacity: 1;               /* hiện khi hover wrapper */
}
.media-wrapper {
  pointer-events: none; /* Cho phép sự kiện đi xuyên qua */
}
 
.media-wrapper .video-nav-btn,
.media-wrapper .bottom-center-plus {
  pointer-events: auto; /* Các nút vẫn nhận sự kiện */
}
.bottom-center-plus.hidden {
  opacity: 0;
  pointer-events: none;
}
.video-skip-button {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  opacity: 0; /* mặc định ẩn */
  transition: opacity 0.3s ease;
}
 
.video-skip-button.left {
  left: 10px;
}
 
.video-skip-button.right {
  right: 0px;
}
.video-title {
      font-size: 18px;
      font-weight: bold;
      color: #003366;
      margin-left: 0cm;
    }

/* Tất cả các nút dùng chung kiểu này */
.media-mode-bar button {
  background: transparent;
  border: none;
  outline: none;
  padding: 2px;
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 23px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

/* Khi hover, chỉ hiệu ứng nhẹ (nếu cần) */
.media-mode-bar button:hover {
  transform: scale(1.2);
  background-color: rgba(0, 0, 0, 0.05); /* nhẹ, nếu muốn */
  border-radius: 4px;
}
.backward-btn,
.forward-btn {
  background: transparent;  /* Xóa nền xanh */
  border: none;             /* Xóa viền */
  color: white;             /* Màu chữ hoặc biểu tượng */
  font-size: 24px;          /* Kích thước nút */
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  /* Giữ padding nhỏ nếu muốn */
  padding: 4px 6px;
  /* Xóa shadow hoặc hiệu ứng nền nếu có */
  box-shadow: none;
}
.gallery-media {
  width: 100%;
  max-height: 300px;        /* cao hơn để thấy controls rõ hơn */
  object-fit: contain;      /* giữ nguyên tỉ lệ video mà không bị crop */
  display: block;
  margin-bottom: 0px;
  background: black;        /* giúp video nổi bật nếu có viền trắng */
}
.avatar-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
 
.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 80%;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
 
li {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.2s;
}
 
li:hover {
  background-color: #e0e0e0;
} 
.content {
  display: none;
}
 
#info label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}
 
#info input,
#info select {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
 
#info button {
  background-color: #007bff;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
 
#info button:hover {
  background-color: #0056b3;
}
 
#thongBaoTiep {
  font-weight: bold;
  margin-top: 10px;
}
.arrow-animate {
  display: inline-block;
  animation: arrowWiggle 1s infinite ease-in-out;
}
 
@keyframes arrowWiggle {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}
    .top-header {
      background: #004085;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
    }
 
   
    .search-header {
      background: #f9f9f9;
      padding: 10px 20px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 15px;
    }
 
    .main-section {
      display: grid;
      grid-template-columns: 450px 1fr;
      gap: 0px;
      padding: 0px;
    }
 
    .right-column {
  background: #ffffff;
  border-radius: 16px;
  padding: 0px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.app-container {
      max-width: 1440px;
      margin: 0 auto;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 0 0 4px rgba(78, 84, 200, 0.2);
      overflow: hidden;
      border: 3px solid #4e54c8;
    }
 
    .container {
      margin-top: 0px;
      padding-top: 0px;
    }
 
 
    #personalPage ul li:hover {
      background-color: #f0f0f0;
    }
 
    .avatar-title-section {
      display: flex;
      align-items: center;
      gap: 12px;
    }
 
    .avatar-title-section img {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 2px solid #ccc;
    }
 
    .avatar-title-section div {
      font-size: 14px;
      font-weight: bold;
    }
 
    /* Đảm bảo phần của avatar và tiêu đề video vẫn hiện ra khi hiển thị cá nhân */
    .top-header, .level-header, .search-header {
      position: relative;
      z-index: 1;
    }
 
    /* Thêm khoảng cách cho các thành phần không bị che khuất khi "Cá nhân" hiện ra */
    .main-section {
  display: flex;
  gap: 0;
}
 
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.tab-link.active {
  background-color: #e0f0ff;
  font-weight: bold;
} 
#content-info h2 {
  margin-bottom: 30px;
  font-size: 24px;
  color: #333;
  text-align: center;
}
 
#content-info label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}
 
#content-info input,
#content-info select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 18px;
  transition: border-color 0.3s;
}
 
#content-info input:focus,
#content-info select:focus {
  border-color: #3399ff;
  outline: none;
}
 
#thongBaoThongTinCaNhan {
  font-weight: bold;
  color: red;
  margin-top: -10px;
  margin-bottom: 10px;
  min-height: 20px;
}
 
#message {
  margin-top: 10px;
  font-weight: bold;
  color: #0066cc;
}
 
#content-info {
  padding-left: 1cm;
  margin-top: 0;
   max-height: 90vh; 
  display: flex;
    overflow-y: auto;
   scroll-behavior: smooth;
  flex-direction: column;
  align-items: flex-start;
}
#content-account {
  display: none; /* Ẩn mặc định */
  position: relative;
  left: 15cm;
  top: -13.5cm;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 20px;
  width: 820px;
  font-family: Arial, sans-serif;
}
 
/* Tiêu đề */
#content-account h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}
 
/* Vùng cuộn nội dung bên trong */
#content-account > div {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 15px;
  background-color: #fff;
  border-radius: 6px;
}
 
/* Nhãn label */
#content-account label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #444;
}
 
/* Input trường nhập */
#content-account input[type="text"],
#content-account input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
 
/* Nút chung */
#content-account button {
  padding: 8px 12px;
  margin-top: 5px;
  margin-bottom: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}
 
#content-account button:hover {
  background-color: #0056b3;
}
 
/* Biểu tượng toggle mật khẩu 👁️ */
#content-account .toggle-password {
  cursor: pointer;
  margin-left: 8px;
  font-size: 16px;
}
 
/* Nút "quay lại" riêng biệt */
#content-account button[onclick^="showPersonalContent"] {
  background: #ccc;
  color: #000;
}
.input-wrapper {
  position: relative;
  width: 13cm;
}
.input-wrapper input {
  width: 14cm; /* Cho chiều dài đồng nhất */
  padding-right: 2cm; /* Dành chỗ cho icon 👁️ */
}
 
.toggle-password {
  position: absolute;
  right: 0.5cm; /* 👁️ nằm bên trong input, xích trái 2cm */
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}
/* Giả sử các input mặc định là 80% */
input {
  width: 50%;
  box-sizing: border-box;
}
 
/* Rút ngắn 0.5cm cho những ô cần */
.shorter-input {
  width: calc(80% -3cm);
}
.search-header > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px; /* khoảng cách giữa các ô */
}
 
.search-header label {
  margin-right: 4px;
  white-space: nowrap;
}
 
.search-header input[type="text"]:first-of-type {
  width: 100px; /* ô số thẻ */
   height: 30px;
}
 
.search-header input[type="text"]:nth-of-type(2) {
  width: 350px; /* ô tìm kiếm */
   height: 30px;
}
.search-header > div:last-child {
  margin-left: 2.8cm; 
}
 
.search-icon-btn {
  padding: 5px 10px;
  cursor: pointer;
}
 
.setting-icon {
  cursor: pointer;
  font-size: 23px;
  transition: color 0.3s ease, transform 0.2s ease;
}
 
.setting-icon:hover {
  color: #ff6600; /* Màu khi hover, ví dụ cam */
  transform: scale(1.2); /* Làm lớn nhẹ khi hover */
}
#confirmButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
 #confirmButton {
      width: 6cm;
      padding: 8px;
      font-weight: bold;
      background-color: gray;
      opacity: 0.5;
      border: none;
      color: white;
    }
 
    #nextButton {
      width: 2cm;
      margin-left: 2cm;
      padding: 5px;
    }
 
 .account-section {
      margin: 20px;
      font-family: Arial, sans-serif;
    }
 
    #message {
      margin-top: 10px;
      font-weight: bold;
      color: red;
    }
 
    .success {
      color: green;
    }
.pricing-title {
  font-size: 24px;
  font-weight: bold;
  margin-left: 12cm; /* Đẩy sang phải 4cm */
  margin-bottom: 16px;
  margin-top: -14cm; 
}
 
.pricing-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  margin-left: 10cm;
  margin-top: 0;
}
 
.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 5.5cm;
  height: 9cm;
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background-color: #fff;
  box-sizing: border-box;
  position: relative;
}
 
.plan-title {
  font-weight: bold;
  margin-bottom: 8px;
}
 
.plan-price {
  color: #2b8a3e;
  margin-bottom: 8px;
}
 
.plan-features {
  font-size: 14px;
  margin-top: -0.8cm;  /* đẩy lên trên 0.5cm */
  margin-bottom: 12px;
  text-align: left;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}
 
.plan-btn {
  margin-top: 16px;
  padding: 10px 18px;
  margin-bottom: 45px;
  background-color:  #ff6600;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
}
 
.plan-btn:hover {
  background-color: #ff6600;
  transform: scale(1.05);
}
/* ---------- Popup Đăng ký ---------- */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  padding: 24px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  width: 360px;
  max-width: 90%;
  position: relative;
}
.modal-content .close {
  position: absolute;
  top: 10px; right: 16px;
  font-size: 22px;
  cursor: pointer;
}
.modal-content select {
  padding: 8px;
  width: 100%;
  border-radius: 6px;
  margin-top: 6px;
}
.modal-content button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
#cardFields input {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
 
.face-scan-icon {
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'>\
      <polyline points='3 7 3 3 7 3' />\
      <polyline points='17 3 21 3 21 7' />\
      <polyline points='21 17 21 21 17 21' />\
      <polyline points='7 21 3 21 3 17' />\
      <circle cx='12' cy='12' r='5.5' fill='none'/>\
      <circle cx='10' cy='11' r='0.5' fill='%23000'/>\
      <circle cx='14' cy='11' r='0.5' fill='%23000'/>\
      <path d='M10 14 Q12 15 14 14' stroke='%23000' fill='none' stroke-width='0.8'/>\
    </svg>") no-repeat center center;
  background-size: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}
 
.face-scan-icon:hover {
  transform: scale(1.15);
  filter: brightness(0.6) sepia(1) hue-rotate(190deg); /* tạo hiệu ứng màu mới */
}
h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
}
 
section {
  background: #fff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
 
h2 {
  margin-top: 0;
  color: #007BFF;
  font-size: 1.2em;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 5px;
}
 
label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}
 
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  max-width: 500px;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}
 
textarea {
  height: 80px;
  resize: vertical;
}
 
#adForm {
  background: #f0f8ff;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
 .large-textarea {
  width: calc(100% + 0cm); 
  height: 300px;
  font-size: 16px;
  padding: 10px;
  resize: vertical;
  box-sizing: border-box;
  overflow: auto;
  line-height: 1.5;
  margin-right: 4cm;
  max-width: none;  
}
 #settings {
  position: absolute;
  top: calc(60px - 1.3cm);     /* đẩy lên thêm 1.5cm */
  left: 240px;
  right: 20px;
  bottom: calc(20px - 0.5cm);  /* kéo xuống thêm 1cm */
  background: white;
  padding: 20px;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: none;
}
 #nextButton:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
  }
 button {
      padding: 5px 10px;
      font-size: 14px;
      cursor: pointer;
    }
button:hover {
  background: #218838;
}

    input {
      padding: 5px;
      font-size: 14px;
    }
    #formNhapThongTin {
      margin-top: 20px;
    }
   #popupTrinhKy {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -20%);
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  padding: 20px;
  z-index: 1000;
  width: 300px;
  border-radius: 8px;
}
#banHanhInfo span {
  display: inline-block;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  vertical-align: top;
  box-sizing: border-box;
  flex-shrink: 0;
}
 
.banhanh-row:hover {
  background-color: #fefbe7;   /* sáng hơn một chút */
}
.btn-back {
  background-color: #007bff;
  color: white;
  border: none;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s ease;
}
 
.btn-back:hover {
  background-color: #0056b3;
}
.star-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 0px;
  }
 
  .star-button {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
  }
 
  .red-star { color: red; }
  .yellow-star { color: gold; }
  .blue-star { color: dodgerblue; }
 
  .star-button:hover {
    transform: scale(1.2);
  }
 
  .star-button {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
 
.star-button:hover {
  transform: scale(1.05);
}
 
.star-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100px;
  min-height: 34px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #f9f9f9;
  cursor: pointer;
  flex-wrap: wrap;
  border-radius: 6px; 
}
.viewport {
      height: 80vh;
      overflow: auto;
      border: 1px solid #ccc;
      background: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    #pdfCanvas {
      display: block;
      margin: auto;
    }
    #pdfControls {
      display: none;
      gap: 10px;
      margin: 10px 0;
      flex-wrap: wrap;
      justify-content: space-evenly; 
    }
    #pdfControls button {
      padding: 6px 12px;
      border-radius: 6px;
      border: 1px solid #ccc;
      background-color: #f0f4f8;
      cursor: pointer;
    }
    #pdfControls button:hover {
      background-color: #dbe9f4;
    }
    #actionButtons {
      display: none;
      gap: 10px;
      margin-bottom: 10px;
    }
    .dropdown-content {
      display: none;
      position: absolute;
      background: white;
      border: 1px solid #ccc;
      z-index: 10;
      margin-top: 4px;
    }
    .dropdown-content button {
      width: 100%;
      padding: 8px 12px;
      background: none;
      border: none;
      text-align: left;
    }
    .dropdown:hover .dropdown-content {
      display: block;
    }
    .custom-file-button {
      padding: 6px 10px;
      background: #f0f0f0;
      border-radius: 6px;
      border: 1px solid #ccc;
      cursor: pointer;
      display: inline-block;
      margin-bottom: 10px;
    }
#pdfControls button {
  all: unset;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: #f0f4f8; /* màu nền nhẹ, dễ chịu */
  color: #333;
  border: 1px solid #ccc;
  transition: background-color 0.2s, transform 0.1s;
}
 
#pdfControls button:hover {
  background-color: #dbe9f4; /* hover nhẹ nhàng */
  transform: scale(1.03);
}
#sharePopup {
  position: absolute;
  display: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 10px;
  min-width: 160px;
  z-index: 1000;
}
 
#sharePopup button {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 8px 12px;
  border: none;
  text-align: left;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}
 
#sharePopup button:nth-child(1) {
  background-color: #0084ff; /* Zalo */
}
#sharePopup button:nth-child(1):hover {
  background-color: #006edc;
}
 
#sharePopup button:nth-child(2) {
  background-color: #d93025; /* Gmail */
}
#sharePopup button:nth-child(2):hover {
  background-color: #b1271c;
}
#sharePopup button:nth-child(3) {
  background-color: #34a853; /* Copy link */
}
#sharePopup button:nth-child(3):hover {
  background-color: #2a8543;
}
.doc-row {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.doc-row:hover {
  background-color: #f0f8ff;
  transform: scale(0.995);
  transition: all 0.2s ease;
}
.flying-heart {
  position: fixed;
  font-size: 24px;
  animation: flyUp 1s ease-out forwards;
  pointer-events: none;
}

@keyframes flyUp {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-80px) scale(1.5); opacity: 0; }
}

/* PHẦN HIỆN BẢNG NHẬP TT VĂN BẢN */
/* Nền mờ khi popup xuất hiện */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none; /* Ẩn mặc định */
  z-index: 999;
}

/* Bảng popup */
#nhapThongTin {
  position: fixed;
  left: 50%;
  bottom: -100%; /* Bắt đầu ở dưới màn hình */
  transform: translateX(-50%);
  width: 80%;       /* chiều ngang */
  max-height: 50%;  /* chiều cao */
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: bottom 0.5s ease; /* hiệu ứng trượt */
}

/* Khi popup bật */
#nhapThongTin.show {
  bottom: 10%; /* vị trí xuất hiện */
}

/* Nút tắt góc phải */
#closeBtn {
  position: absolute;
  top:10px;
  right:10px;
  background:red;
  color:#fff;
  border:none;
  border-radius:50%;
  width:30px;
  height:30px;
  font-weight:bold;
  cursor:pointer;
}

/* Table */
#nhapThongTin table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#nhapThongTin th, #nhapThongTin td {
  padding:5px;
  border:1px solid #333;
  text-align:center;
}

#nhapThongTin th {
  background:#2575fc;
  color:#fff;
}

/* Button hoàn thành đỏ */
.btn-complete {
  background:red;
  color:#fff;
}
.btn-complete:hover {
  background:#cc0000;
}
#danhSachVanBan {
    max-height: 300px; /* hoặc 20 hàng */
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 5px;
}

.vanBanRow {
    display: flex;
    flex-wrap: nowrap; /* hoặc flex-wrap: wrap; nếu muốn ô tự xuống dòng */
    margin-top: 4px;
    padding: 2px 4px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    background: #f9f9f9;
    font-size: 13px;
    color: #0033cc;
    word-break: break-word;
    height: auto;       /* bỏ chiều cao cố định */
    line-height: normal; /* hoặc 1.2-1.4 */
    align-items: flex-start; /* căn chữ trên đầu ô */
}
.vanBanRow a {
    text-decoration: none;  /* tắt gạch chân mặc định */
    color: #0033cc;         /* màu chữ link */
}

.vanBanRow a:hover {
    text-decoration: underline; /* chỉ gạch chân khi hover */
}


/* PHẦN HIỆN BẢNG NHẬP TT VĂN BẢN từ đây lên */
