
@media print {
    html, body {
		width: auto !important;
		max-width: 219mm !important;
        height: 297mm;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #222 !important;
        font-size: 11pt !important;   /* Thu nhỏ font */
        line-height: 1.3 !important;
    }
    form {
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 8mm 10mm 6mm 10mm !important; /* Thu nhỏ padding */
        background: #fff !important;
        margin: 0 !important;
    }
    /* Ẩn nút bấm và input không cần thiết khi in */
    button, input[type="submit"], input[type="button"] {
        display: none !important;
    }
    /* Thu nhỏ các khoảng cách */
    h3, p, div, label, table, input, ul, ol, li {
        margin-top: 2px !important;
        margin-bottom: 2px !important;
        padding: 0 !important;
    }
    /* Table và input cho gọn */
    table {
        margin-bottom: 4px !important;
    }
    input, select {
        height: 18px !important;
        font-size: 10pt !important;
    }
    /* Giới hạn phần form hiển thị */
    body > *:not(form) {
        display: none !important;
    }
    /* Ngắt trang cuối form, tránh giữa form */
    form {
        page-break-after: avoid !important;
    }
	ul, ol {
    padding-left: 28px !important;
    list-style-position: outside !important;
}
ul ul, ol ol, ul ol, ol ul {
    padding-left: 22px !important;
}
}
@media print {
    input, textarea, select {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        background: transparent !important;
    }
}

.square-radio {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-right: 18px;
  font-size: 1em;
  user-select: none;
}

.square-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin: 0 8px 0 0;
  border: 1px solid #222;
  border-radius: 0;
  background: #fff;
  position: relative;
  cursor: pointer;
  outline: none;
  vertical-align: middle;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

@media print {
  body {
    /* Đảm bảo không tràn lề khi in */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .container, .content, .main-content {
    /* Giới hạn chiều rộng phù hợp với A4 */
    width: 100% !important;
    max-width: 190mm !important;
    overflow: visible !important;
  }

  /* Nếu dùng table */
  table {
    width: 100% !important;
    table-layout: fixed !important;
    word-break: break-word;
  }

  /* Ẩn các thành phần không cần thiết khi in */
  .no-print, nav, .sidebar {
    display: none !important;
  }

  /* Tùy chỉnh lề giấy */
  @page {
    size: A4 portrait;
    margin: 10mm;
  }
}

/* Viền dày hơn khi chọn */
.square-radio input[type="radio"]:checked {
  border: 2px solid #222;
  background: #fff;
}

/* Dấu X nằm chính giữa ô vuông */
.square-radio input[type="radio"]:checked::before, 
.square-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 0.6px;   /* Căn sát lề trái một chút */
  top: 4px;    /* Giữa ô chiều dọc */
  width: 10px;
  height: 1px;  /* Nét mảnh hơn */
  background: #555; /* Nét vừa, không đậm */
  border-radius: 0.5px;
  pointer-events: none;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.square-radio input[type="radio"]:checked::before {
  transform: rotate(45deg);
}

.square-radio input[type="radio"]:checked::after {
  transform: rotate(-45deg);
}


@media print {
  input[type="text"],
  input[type="number"],
  input[type="date"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
      border: none !important;
      border-bottom: none !important;
      box-shadow: none !important;
      background: #fff !important;
  }
}

.input-groups {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 28px 0 32px 0;
    gap: 8px;
}

.person-search-title {
    font-size: 1.05em;
    color: #283B5E;
    font-weight: 500;
    margin-bottom: 6px;
}

.input-group {
    width: 320px;
    display: flex;
    justify-content: center;
}

.input-text {
    width: 100%;
    padding: 8px 14px;
    font-size: 1em;
    border: 1px solid #bbb;
    border-radius: 7px;
    background: #fafbfc;
    transition: border 0.2s;
}

.input-text:focus {
    border-color: #283B5E;
    outline: none;
    background: #fff;
}

.btn-groups {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.btn.btn-primary {
    background: #283B5E;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 22px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px #283b5e22;
    transition: background 0.2s;
}
.btn.btn-primary:hover {
    background: #4160b0;
}
.input-bold {
    font-weight: bold;
}
.input-normal {
    width: 100%;
    min-width: 80px;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 2px 8px;
    font-size: 1em;
    font-family: inherit; /* Giống font ngoài */
    font-weight: normal;
    line-height: 1.4;
    transition: border 0.2s;
    /* Đảm bảo không bị overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
    display: inline-block;
    vertical-align: middle;
}
.input-normal:focus {
    border-color: #283b5e;
    outline: none;
}

.btn-menu {
    display: flex;
    gap: 12px; /* Khoảng cách giữa các nút */
    align-items: center;
}