/* Layout container width */
.sectionBlockLayout .container {
  max-width: 1140px;
}

/* Card feel for forms */
.entity-form,
.bpf-container,
.sectionBlockLayout .columnBlockLayout > form {
  background: #fff;
  border-radius: 12px;
  padding: 20px 20px 12px;
  box-shadow: 0 4px 18px rgba(16,24,40,.08);
}

/* Spacing between the form and list */
.sectionBlockLayout + .sectionBlockLayout {
  margin-top: 16px;
}

/* Headings */
.sectionBlockLayout h2 {
  margin: 0 0 12px 0;
  font-weight: 650;
}

/* Make the submit row sticky */
.entity-form .actions,
form .actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0, #fff 40%);
  padding: 12px 0 14px;
  margin-top: 8px;
  border-top: 1px solid #eef2f6;
  z-index: 5;
}

/* Buttons */
.entity-form .btn,
form .btn {
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
}

/* Primary (Submit) */
.entity-form .btn-primary,
form .btn-primary {
  background: #ff8a00;
  border-color: #ff8a00;
}
.entity-form .btn-primary:hover,
form .btn-primary:hover {
  filter: brightness(0.95);
}

/* Modern list: compact + sticky header */
div[data-lcw*="entity-list"] table thead th {
  position: sticky;
  top: 64px; /* below the site header */
  background: #0f2d55;
  color: #fff;
  z-index: 3;
}
div[data-lcw*="entity-list"] table {
  border-radius: 12px;
  overflow: hidden;
}
div[data-lcw*="entity-list"] table tbody tr {
  height: 48px;
}

/* Bold the values in the grid */
div[data-lcw*="entity-list"] table tbody td,
div[data-lcw*="entity-list"] table tbody td a {
  font-weight: 600;              /* semi-bold looks clean */
  color: #0f172a;                /* slightly darker for contrast */
}

/* (Optional) If you only want the first 3 columns bold, use this instead) */
/*
div[data-lcw*="entity-list"] table tbody td:nth-child(-n+3),
div[data-lcw*="entity-list"] table tbody td:nth-child(-n+3) a {
  font-weight: 600;
}
*/

/* Keep row height comfortable */
div[data-lcw*="entity-list"] table tbody tr {
  height: 44px;
}

/* Flatten the lookup input */
.entity-form .control .lookup input[type="text"],
.entity-form input.form-control[role="combobox"] {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #cbd5e1 !important;  /* subtle underline */
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 4px;
}

/* Make the surrounding control neutral */
.entity-form .control .form-control {
  box-shadow: none;
}

/* Style the little clear/search buttons to be icon-only (no white box) */
.entity-form .control .lookup .btn,
.entity-form .control .lookup button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #0f2d55;                 /* brand-ish icon color */
  padding: 6px 8px;
}
.entity-form .control .lookup .btn:hover,
.entity-form .control .lookup button:hover {
  background: rgba(15,45,85,.06) !important;
  border-radius: 6px;
}

/* Keep the lookup layout tidy */
.entity-form .control .lookup {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Slightly dim read-only values, if any */
.entity-form .control .lookup input[readonly] {
  opacity: .9;
}
