.loi-taxforms-category table,
.loi-taxforms-category table th,
.loi-taxforms-category table td {
  border: none !important;
  font-size: 17px;
}

.loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top-color: #0078d7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Grid layout: max 3 columns, responsive down to 1 */
.loi-taxforms-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

@media (min-width: 1024px) {
  .loi-taxforms-grid-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .loi-taxforms-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .loi-taxforms-grid-wrapper {
    grid-template-columns: 1fr;
  }
}

.loi-taxforms-category {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.loi-taxforms-category + .loi-taxforms-category {
  margin-top: 0;
}

.loi-taxforms-category table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  border-left: 1px solid #ccc !important;
  border-right: 1px solid #ccc !important;
  border-top: 1px solid #ccc !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tax-forms-header {
  display:none;
  font-size: 14px;
  vertical-align: middle;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  padding: 4px 6px !important;
  line-height: 1.1;
  background-color: rgb(214 231 225);
}

.tax-forms-checkbox {
  width: 100px;
}

/* .table-hover tbody tr:hover {
  background-color: inherit !important;
} */

.form-check {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  height: 100%;
  padding: 0;
}

.form-check-input {
  margin: 0 !important;
  display: block;
}

.group-header td:first-child {
  text-align: left !important;
}

.textbox {
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
  min-height: 33px;
  font-size: 12px;
}

.child-form {
  margin-left: 25px;
}

.child-form .form-label {
  font-size: 12px !important;
}

.parent-form .form-label {
  font-size: 15px !important;
  padding-left: 5px;
  font-weight: bold;
}

.loi-taxforms-category table td {
  vertical-align: middle !important;
  padding: 4px 6px !important;
  line-height: 1.1;
  border-bottom: 1px solid #ddd !important;
}

.loi-taxforms-category table thead tr {
  border-bottom: 1px solid #ccc !important;
  display:none;
}

.character-count {
  font-size: 9px;
  color: #666;
  text-align: right;
  padding-right: 15px;
}

.text-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  border: none !important;
}

.category-label-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
}

.hidden-row,
.hidden-category,
.hidden-group {
  display: none !important;
}

.category-toggle {
  cursor: pointer;
  user-select: none;
}

.category-arrow {
  font-size: 15px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.category-arrow.rotated {
  transform: rotate(180deg);
}

.group-header {
  background-color: rgb(230, 241, 238);
}

.group-header:hover {
  background-color: rgb(230, 241, 238) !important;
}
