
.boat-entity-context-inline .boat-entity-client-label {
  white-space: nowrap;
}

.boat-entity-context-inline select {
  width: auto !important;
  min-width: 118px !important;
  max-width: 220px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 22px 0 6px !important;
  border: 0 !important;
  background-color: transparent !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

#loginForm .field-help-button,
#loginPanel .field-help-button,
#authPanel .field-help-button {
  display: none !important;
}

.radio-line input {
  width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
}

.access-actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.file-like-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-height: 38px;
  width: 132px;
  min-width: 132px;
  margin: 0 !important;
}

.access-assignment-table-wrap {
  max-height: 430px;
  overflow: auto;
}

.access-assignment-table-wrap .data-table {
  min-width: 760px;
}

.access-assignment-table-wrap input[type="radio"] {
  width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
}

/* Final KPI filter row alignment: Entity | spacer | Procedure | Start | End | Load KPI */
#kpiFilterForm {
  display: grid !important;
  grid-template-columns: 190px 18px 230px 150px 150px 118px !important;
  column-gap: 8px !important;
  row-gap: 8px !important;
  align-items: end !important;
}

#kpiFilterForm > * {
  min-width: 0 !important;
}

#kpiFilterForm > label:nth-of-type(1) { grid-column: 1 !important; }
#kpiFilterForm > label:nth-of-type(2) { grid-column: 3 !important; }
#kpiFilterForm > label:nth-of-type(3) { grid-column: 4 !important; }
#kpiFilterForm > label:nth-of-type(4) { grid-column: 5 !important; }
#kpiFilterForm > button[type="submit"] { grid-column: 6 !important; }

#kpiFilterForm > label,
#kpiFilterForm select,
#kpiFilterForm input,
#kpiFilterForm .searchable-select,
#kpiFilterForm .searchable-select-trigger {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

#kpiFilterForm select,
#kpiFilterForm input,
#kpiFilterForm .searchable-select-trigger,
#kpiFilterForm button[type="submit"] {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
}

#kpiFilterForm button[type="submit"] {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  padding-inline: 12px !important;
  justify-self: start !important;
  white-space: nowrap !important;
}

#sopLibraryView .sop-table-wrap {
  max-height: min(430px, 54vh);
  overflow: auto;
}

#sopLibraryView .data-table {
  min-width: 920px;
}

#sopLibraryView .data-table th:nth-child(3),
#sopLibraryView .data-table td:nth-child(3) {
  min-width: 340px;
}

.entity-setup-panel,
.entity-update-panel {
  overflow-y: auto !important;
}

.entity-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.entity-list-panel .entity-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-table-wrap {
  max-height: none;
  height: calc(100vh - 255px);
}

#dashboardHome .dashboard-command-panel,
#dashboardHome .smart-insights-panel {
  min-height: 0;
}

.smart-insights-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
}

.smart-insights-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
