form, .field_group, .field {
    display: flex;
}

form {
    flex-direction: column;
}

input {
    font-size: 0.9em;
}

form > div {
    margin-bottom: 0.3em;
}

.field {
    flex-direction: column;
}

.field_group {
    flex-direction: row;
    justify-content: space-between;
}

textarea {
    resize: none;
}

table {
  border-collapse: collapse;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  
  /* 1. FORCE the table to respect cell dimensions */
  table-layout: fixed; 
}

th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 0;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

td {
  width: 100px;
  height: 30px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.95rem;
  color: #1e293b;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.2s ease;
  
  /* 2. Prevent line-height from expanding the cell */
  padding: 0;
  line-height: 0; 
}

td:hover {
  background-color: #f1f5f9;
}

table td > input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 30px;
    margin: 0;
    cursor: pointer;
    vertical-align: top; /* Prevents inline alignment gaps */
}

td:has(input[type="checkbox"]:checked) {
    background-color: #c5c83f;
}