/*
 * FILE: public/css/crew-assignment.css
 * PURPOSE:
 * - Styles corporate crew-list assignment and rank quick-edit pickers.
 * - Keeps desktop crew tables within the available viewport without horizontal scrolling.
 * LAYOUT:
 * - Corporate crew list and unit-scoped crew list.
 */

.crew-assignment-picker,
.crew-rank-picker {
  display: inline-block;
  max-width: 100%;
}

.crew-assignment-trigger,
.crew-rank-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 5px 9px;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.crew-assignment-trigger.assignment,
.crew-assignment-trigger.none {
  border-style: solid;
}

.crew-rank-picker {
  width: 100%;
}

.crew-rank-trigger {
  width: 100%;
  min-height: 44px;
  justify-content: space-between;
  border: 1px solid #dbe4ee;
  background: #f8fafc;
  color: #334155;
  font-weight: 500;
  text-align: left;
}

.crew-rank-trigger:hover,
.crew-rank-trigger:focus {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.crew-assignment-trigger .assignment-ellipsis {
  display: inline-block !important;
  min-width: 0;
  max-width: 176px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crew-rank-trigger .crew-rank-ellipsis {
  display: -webkit-box !important;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  color: inherit;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.crew-assignment-trigger [data-assignment-indicator],
.crew-rank-trigger [data-rank-indicator] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.crew-rank-trigger [data-rank-indicator] {
  margin-left: 4px;
  color: #64748b;
}

.crew-assignment-trigger:focus-visible,
.crew-rank-trigger:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.48);
  outline-offset: 2px;
}

.crew-assignment-picker.is-saving .crew-assignment-trigger,
.crew-rank-picker.is-saving .crew-rank-trigger {
  cursor: progress;
  opacity: 0.7;
}

.crew-assignment-menu.show,
.crew-rank-menu.show {
  position: fixed !important;
  z-index: 1090;
  max-height: 320px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transform: none !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
}

.crew-rank-menu.show {
  max-height: 360px;
}

.crew-assignment-menu .dropdown-header,
.crew-rank-menu .dropdown-header {
  padding: 8px 10px 6px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.crew-assignment-option,
.crew-rank-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: normal;
}

.crew-assignment-option__marker,
.crew-rank-option__marker {
  display: inline-flex;
  width: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.crew-assignment-option__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.crew-assignment-option__name,
.crew-rank-option__name {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.crew-assignment-option__meta {
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.25;
}

.crew-assignment-option.is-current .crew-assignment-option__marker,
.crew-rank-option.is-current .crew-rank-option__marker {
  color: #16a34a;
}

.crew-assignment-option:disabled,
.crew-rank-option:disabled {
  opacity: 0.58;
}

.crew-rank-option--other {
  background: #f8fafc;
}

.crew-rank-option--other:hover,
.crew-rank-option--other:focus {
  background: #eff6ff;
}

.crew-rank-option--other .crew-rank-option__marker {
  color: #2563eb;
}

.crew-rank-custom-current {
  padding: 8px 10px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.crew-rank-custom-editor {
  margin: 4px 2px 2px;
  padding: 12px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fafc;
}

.crew-rank-custom-editor__label {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
}

.crew-rank-custom-editor__input,
.crew-rank-custom-editor__select {
  min-height: 38px;
  border-color: #cbd5e1;
  font-size: 0.86rem;
}

.crew-rank-custom-editor__input:focus,
.crew-rank-custom-editor__select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.crew-rank-custom-editor__category {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.crew-rank-custom-editor__new-category {
  margin-top: 8px;
}

.crew-rank-custom-editor__help {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.35;
}

.crew-rank-custom-editor__error {
  margin-top: 6px;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 600;
}

.crew-rank-custom-editor__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.crew-rank-custom-editor__button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
}

.crew-rank-custom-editor__button--cancel {
  border-color: #dbe4ee;
  background: #ffffff;
  color: #475569;
}

.crew-rank-custom-editor__button--cancel:hover,
.crew-rank-custom-editor__button--cancel:focus {
  background: #f1f5f9;
}

.crew-rank-custom-editor__button--save {
  background: #2563eb;
  color: #ffffff;
}

.crew-rank-custom-editor__button--save:hover,
.crew-rank-custom-editor__button--save:focus {
  background: #1d4ed8;
}

.crew-assignment-row-leaving {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.crew-member-cell {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  overflow: visible;
}

.crew-table td.crew-col-member {
  overflow: visible;
}

.crew-station-bill-assignments {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  align-items: center;
}

.crew-station-bill-badges {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.crew-station-bill-badge {
  flex: 0 0 24px;
}

.crew-station-bill-more {
  display: inline-flex;
  width: auto;
  min-width: 26px;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.crew-station-bill-more:hover,
.crew-station-bill-more:focus-visible,
.crew-station-bill-more.show {
  border-color: #94a3b8;
  background: #eef2f7;
  color: #0f172a;
  outline: 0;
}

.crew-station-bill-more:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.crew-station-bill-menu {
  position: fixed;
  z-index: 1090;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.crew-station-bill-menu .dropdown-header {
  padding: 7px 8px 6px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.crew-station-bill-menu__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 7px 8px;
  border-radius: 7px;
}

.crew-station-bill-menu__item:hover,
.crew-station-bill-menu__item:focus {
  background: #f8fafc;
}

.crew-station-bill-menu__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.crew-station-bill-menu__copy strong,
.crew-station-bill-menu__copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crew-station-bill-menu__copy strong {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.crew-station-bill-menu__copy small {
  color: #64748b;
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.2;
}

.crew-member-name {
  display: block;
  min-width: 0;
  max-width: calc(100% - 34px);
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crew-member-name,
.equipment-page .equipment-record-link {
  color: #0f172a;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.16s ease;
}

.crew-member-name:hover,
.crew-member-name:focus,
.equipment-page .equipment-record-link:hover,
.equipment-page .equipment-record-link:focus {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crew-member-name:focus-visible,
.crew-contact-link:focus-visible,
.equipment-page .equipment-record-link:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.42);
  outline-offset: 2px;
  border-radius: 3px;
}

.crew-member-email {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.25;
}

.crew-public-profile-controls,
.crew-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  white-space: nowrap;
}

.crew-contact-cell {
  line-height: 1.3;
  overflow: visible;
  word-break: normal;
}

.crew-contact-link {
  display: inline-block;
  max-width: 100%;
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.16s ease;
}

.crew-contact-link:hover,
.crew-contact-link:focus {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crew-table-wrapper {
  overflow: visible !important;
}

#crewQuickEditToast {
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
}

#crewQuickEditToast.crew-quick-edit-toast--error {
  border-left: 3px solid #dc2626 !important;
}

.unit-crew-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.unit-crew-back-dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  white-space: nowrap;
}

.unit-crew-add-menu {
  flex: 0 0 auto;
}

.unit-crew-add-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  white-space: nowrap;
}

.unit-crew-add-menu__list {
  min-width: 230px;
  padding: 6px;
  border: 1px solid #cbd8dd;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(12, 34, 51, 0.16);
}

.unit-crew-add-menu__list .dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border-radius: 6px;
  color: #263746;
  font-size: 0.88rem;
  font-weight: 800;
}

.unit-crew-add-menu__list .dropdown-item:hover,
.unit-crew-add-menu__list .dropdown-item:focus {
  background: #effafa;
  color: #17545d;
}

.unit-crew-assign-modal[hidden] {
  display: none;
}

.unit-crew-assign-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 20, 30, 0.46);
}

.unit-crew-assign-modal__dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(780px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(7, 20, 30, 0.22);
  overflow: hidden;
}

.unit-crew-assign-modal__header,
.unit-crew-assign-modal__footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #dbe5e8;
}

.unit-crew-assign-modal__footer {
  border-top: 1px solid #dbe5e8;
  border-bottom: 0;
}

.unit-crew-assign-modal__header h2 {
  margin: 0;
  color: #10202f;
  font-size: 1.05rem;
  font-weight: 900;
}

.unit-crew-assign-modal__header p {
  margin: 4px 0 0;
  color: #536674;
  font-size: 0.86rem;
}

.unit-crew-assign-modal__icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #cbd8dd;
  border-radius: 8px;
  background: #fff;
  color: #10202f;
}

.unit-crew-assign-modal__icon:hover,
.unit-crew-assign-modal__icon:focus-visible {
  border-color: #91bbc1;
  background: #effafa;
  color: #17545d;
  outline: 0;
}

.unit-crew-assign-modal__body {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 16px 18px;
}

.unit-crew-assign-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #cbd8dd;
  border-radius: 8px;
  background: #fff;
  color: #617280;
}

.unit-crew-assign-search:focus-within {
  border-color: #91bbc1;
  box-shadow: 0 0 0 3px rgba(31, 109, 118, 0.1);
}

.unit-crew-assign-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #10202f;
  font: inherit;
}

.unit-crew-assign-status,
.unit-crew-assign-empty {
  padding: 10px 11px;
  border: 1px solid #dbe5e8;
  border-radius: 8px;
  background: #fbfdfe;
  color: #617280;
  font-size: 0.84rem;
  font-weight: 800;
}

.unit-crew-assign-status[data-tone="error"] {
  border-color: #efb4ae;
  background: #fff5f3;
  color: #9f2f23;
}

.unit-crew-assign-list {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow: auto;
}

.unit-crew-assign-group {
  display: grid;
  gap: 7px;
}

.unit-crew-assign-group__title {
  margin: 0;
  color: #617280;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.unit-crew-assign-group__list {
  display: grid;
  gap: 7px;
}

.unit-crew-assign-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(170px, auto);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #dbe5e8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.unit-crew-assign-row.is-disabled {
  background: #f8fafc;
  cursor: not-allowed;
  opacity: 0.68;
}

.unit-crew-assign-row:hover,
.unit-crew-assign-row:focus-within {
  border-color: #91bbc1;
  background: #f6fbfb;
}

.unit-crew-assign-row.is-disabled:hover,
.unit-crew-assign-row.is-disabled:focus-within {
  border-color: #dbe5e8;
  background: #f8fafc;
}

.unit-crew-assign-row:has(input:checked) {
  border-color: #8bbbc0;
  background: #effafa;
}

.unit-crew-assign-row__main,
.unit-crew-assign-row__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.unit-crew-assign-row__main strong {
  color: #10202f;
  font-size: 0.92rem;
  font-weight: 900;
}

.unit-crew-assign-row__main span,
.unit-crew-assign-row__main small,
.unit-crew-assign-row__meta span {
  color: #617280;
  font-size: 0.78rem;
  line-height: 1.25;
}

.unit-crew-assign-row__meta {
  justify-items: end;
  text-align: right;
}

.unit-crew-assign-row__meta b {
  color: #244d55;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.unit-crew-assign-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
}

.unit-crew-assign-button--primary {
  border-color: #17545d;
  background: #17545d;
  color: #fff;
}

.unit-crew-assign-button--secondary {
  border-color: #cbd8dd;
  background: #fff;
  color: #244d55;
}

.unit-crew-assign-button:hover:not(:disabled),
.unit-crew-assign-button:focus-visible:not(:disabled) {
  box-shadow: 0 0 0 3px rgba(31, 109, 118, 0.12);
  outline: 0;
}

.unit-crew-assign-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 767.98px) {
  .unit-crew-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .unit-crew-add-trigger,
  .unit-crew-back-dashboard-link,
  .unit-crew-station-bill-link {
    width: 100%;
    justify-content: center;
  }

  .unit-crew-assign-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .unit-crew-assign-row__meta {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .crew-table {
    width: 100%;
    table-layout: fixed;
  }

  .crew-table th,
  .crew-table td {
    min-width: 0 !important;
    max-width: none !important;
  }

  .crew-table th,
  .crew-table td {
    padding-left: 14px;
    padding-right: 14px;
  }

  .crew-table tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .crew-table .crew-col-member {
    width: 20%;
  }

  .crew-table .crew-col-rank {
    width: 20%;
  }

  .crew-table .crew-col-unit {
    width: 17%;
  }

  .crew-table .crew-col-certificates {
    width: 12%;
  }

  .crew-table .crew-col-contact {
    width: 13%;
  }

  .crew-table .crew-col-public-profile {
    width: 10%;
  }

  .crew-table .crew-col-actions {
    width: 8%;
  }

  .crew-table .cell-ellipsis-email {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .crew-table .crew-assignment-trigger {
    max-width: 100%;
  }

  .crew-table .crew-assignment-trigger .assignment-ellipsis {
    max-width: calc(100% - 22px);
  }

  .crew-table .crew-col-certificates,
  .crew-table .crew-col-public-profile,
  .crew-table .crew-col-actions {
    text-align: center;
  }

  .crew-table .crew-certificate-status,
  .crew-table .crew-public-profile-controls,
  .crew-table .crew-row-actions {
    width: 100%;
    justify-content: center;
  }

  .crew-table .crew-row-actions {
    gap: 4px;
  }

  .crew-table .crew-row-actions .linear-icon-btn,
  .crew-table .crew-public-profile-controls .linear-icon-btn {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .crew-table .crew-public-profile-toggle {
    width: 38px;
    height: 36px;
    flex: 0 0 38px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .crew-table thead {
    display: none;
  }

  .crew-table,
  .crew-table tbody,
  .crew-table tr,
  .crew-table td {
    display: block;
    width: 100%;
  }

  .crew-table tr {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    background: #ffffff;
  }

  .crew-table td {
    max-width: 100% !important;
    padding: 7px 0 !important;
    border: 0 !important;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .crew-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: #6c757d;
    font-size: 12px;
  }

  .crew-table td[data-label="Crew Member"] {
    padding-bottom: 12px !important;
    border-bottom: 1px solid #eef2f7 !important;
  }

  .crew-table td[data-label="Crew Member"]::before {
    content: none;
  }

  .crew-table .crew-member-name {
    font-size: 1rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .crew-table .cell-ellipsis,
  .crew-table .cell-ellipsis-email {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .crew-table .crew-rank-picker,
  .crew-table .crew-assignment-picker {
    width: min(100%, 360px);
    max-width: 100%;
  }

  .crew-table td[data-label="Public Profile"],
  .crew-table td[data-label="Actions"] {
    padding-top: 12px !important;
  }

  .crew-table .crew-public-profile-controls,
  .crew-table .crew-row-actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 767.98px) {
  .crew-assignment-picker,
  .crew-assignment-trigger,
  .crew-rank-picker,
  .crew-rank-trigger {
    max-width: 100%;
  }

  .crew-assignment-trigger,
  .crew-rank-trigger {
    min-height: 44px;
  }

  .crew-assignment-trigger .assignment-ellipsis {
    max-width: min(70vw, 260px);
  }

  .crew-rank-trigger .crew-rank-ellipsis {
    -webkit-line-clamp: 3;
  }

  .crew-assignment-menu.show,
  .crew-rank-menu.show {
    max-height: 55vh;
  }

  .crew-assignment-option,
  .crew-rank-option {
    min-height: 44px;
  }

  .crew-rank-custom-editor {
    padding: 12px;
  }

  .crew-rank-custom-editor__input,
  .crew-rank-custom-editor__select,
  .crew-rank-custom-editor__button {
    min-height: 40px;
  }

  .crew-table td[data-label="Crew Member"]::before {
    content: none;
  }

  .crew-table .crew-member-name {
    max-width: 100%;
    flex-basis: 100%;
    font-size: 1rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .crew-table .crew-station-bill-assignments {
    width: 100%;
    flex-basis: 100%;
  }

  .crew-table .crew-station-bill-badges {
    flex-wrap: wrap;
  }

  .crew-table .crew-public-profile-controls,
  .crew-table .crew-row-actions {
    gap: 8px;
  }

  .crew-table .crew-public-profile-controls .linear-icon-btn,
  .crew-table .crew-row-actions .linear-icon-btn,
  .crew-table .crew-public-profile-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 1199.98px) {
  .crew-directory-page .crew-table td {
    max-width: 100% !important;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .crew-directory-page .crew-table td[data-label="Crew Member"]::before {
    content: none;
  }

  .crew-directory-page .crew-table .crew-member-name {
    font-size: 1rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .crew-directory-page .crew-table .crew-rank-picker,
  .crew-directory-page .crew-table .crew-assignment-picker {
    width: min(100%, 360px);
    max-width: 100%;
  }

  .crew-directory-page .crew-table .crew-public-profile-controls .linear-icon-btn,
  .crew-directory-page .crew-table .crew-row-actions .linear-icon-btn,
  .crew-directory-page .crew-table .crew-public-profile-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 767.98px) {
  .crew-directory-page .linear-filter-bar > .d-flex {
    gap: 10px !important;
  }

  .crew-directory-page .linear-filter-bar .linear-filter-btn {
    min-height: 44px;
    padding: 0 10px;
  }
}
