/* Manage Fleet — Locates-style board table + detail drawer */

.mp-main--fleet {
  position: relative;
}

.mf-toolbar {
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
}

.mf-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0 0.35rem 0 0.75rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--text, #111);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.mf-filter:hover {
  border-color: var(--border-hover, #d1d5db);
}

.mf-filter:focus-within {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.22);
}

.mf-filter.is-active {
  border-color: #93c5fd;
  background: rgba(59, 130, 246, 0.05);
}

.mf-filter__label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  user-select: none;
}

.mf-filter.is-active .mf-filter__label {
  color: #1d4ed8;
}

.mf-toolbar .mf-filter select,
.mf-filter select {
  min-width: 7.5rem;
  max-width: 12rem;
  min-height: 40px;
  margin: 0;
  padding: 0 1.7rem 0 0.2rem;
  border: 0;
  border-radius: 10px;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 0.55rem center;
  background-size: 12px 8px;
  color: var(--text, #111);
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.mf-filter select:focus {
  outline: none;
}

.mf-board {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.mf-board[hidden] {
  display: none !important;
}

.mf-board.is-refreshing::after {
  content: none;
}

.mf-board.is-refreshing::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(15, 23, 42, 0.15);
  border-top-color: rgba(15, 23, 42, 0.7);
  border-radius: 50%;
  animation: mf-spin 0.7s linear infinite;
}

@keyframes mf-spin {
  to {
    transform: rotate(360deg);
  }
}

.mp-refresh.is-busy {
  cursor: wait;
}

.mf-panel[hidden] {
  display: none !important;
}

.mf-inventory {
  min-height: 40vh;
}

/* Fleet sidebar: only the active item gets the pill — hover must not look “half-active”. */
.mp-nav__group[aria-labelledby="mp-fleet-label"] .mp-nav__link:hover:not(.is-active) {
  background: transparent;
}

.mf-group__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.mf-group__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}

.mf-group__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
}

.mf-table-wrap {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  overflow: auto;
  background: var(--surface, #fff);
}

.mf-table {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.mf-col-name { width: 14%; }
.mf-col-status { width: 12%; }
.mf-col-dept { width: 12%; }
.mf-col-plate { width: 11%; }
.mf-col-assigned { width: 14%; }
.mf-col-make { width: 12%; }
.mf-col-holder { width: 13%; }
.mf-col-vin { width: 14%; }
.mf-col-sticker { width: 12%; }
.mf-col-spare { width: 10%; }
.mf-col-miles { width: 10%; }

.mf-page--repairs .mf-table {
  min-width: 1180px;
}

.mf-page--small-expenses .mf-table {
  min-width: 860px;
}

.mf-page--small-expenses td.mf-td-status {
  white-space: normal;
}

.mf-page--small-expenses .mf-status-btn {
  max-width: 12rem;
  white-space: normal;
  line-height: 1.25;
  text-align: left;
}

.mf-page--repairs .mf-repairs-status {
  width: 8.25rem;
}

.mf-page--repairs .mf-repairs-cost {
  width: 4.75rem;
}

.mf-page--repairs .mf-repairs-date {
  width: 6.5rem;
}

.mf-page--repairs .mf-repairs-files {
  width: 13rem;
}

.mf-page--repairs td.mf-repairs-files {
  white-space: normal;
  overflow: visible;
}

.mf-board-files {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.mf-board-file {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent, #ff5a00);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mf-board-file.is-plain {
  color: var(--text, #1c1917);
  font-weight: 600;
  cursor: default;
}

.mf-table th,
.mf-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--border, #e5e7eb);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted, #6b7280);
  background: var(--surface-2, #f8fafc);
  font-weight: 600;
}

.mf-table tr:last-child td {
  border-bottom: none;
}

.mf-table tbody tr {
  cursor: pointer;
}

.mf-table tbody tr:hover {
  background: var(--surface-2, #f8fafc);
}

.mf-table tbody tr.is-selected {
  background: var(--accent-soft, #fff4ed);
}

.mf-table__name {
  font-weight: 500;
}

.mf-drive-link {
  font-weight: 600;
  color: var(--accent, #ea580c);
  text-decoration: none;
  white-space: nowrap;
}

.mf-drive-link:hover {
  text-decoration: underline;
}

.mf-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--surface-2, #f1f5f9);
  color: var(--text, #111827);
  border: 1px solid transparent;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-empty-row td {
  color: var(--muted, #6b7280);
  font-style: italic;
  white-space: normal;
}

.mf-drawer[hidden] {
  display: none !important;
}

.mf-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.mf-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.mf-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  background: var(--surface, #fff);
  border-left: 1px solid var(--border, #e5e7eb);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mf-drawer__head {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mf-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f2f3f4;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.mf-drawer__close:hover {
  background: #e8eaec;
  color: var(--text, #111);
}

.mf-drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem 1rem;
  border-top: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
}

.mf-drawer__status {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.06);
}

.mf-drawer__status.is-ok {
  color: #166534;
  background: rgba(22, 101, 52, 0.08);
}

.mf-drawer__status.is-busy {
  color: var(--text-muted, #64748b);
  background: #f2f3f4;
}

/* Legacy alias used by older selectors */
.mf-drawer__error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.8125rem;
}

.mf-drawer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mf-drawer__bar-start {
  position: relative;
  flex-shrink: 0;
}

.mf-drawer__bar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.mf-drawer__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.mf-drawer__more:hover,
.mf-drawer__more[aria-expanded="true"] {
  background: #f2f3f4;
  color: var(--text, #111);
  border-color: #d1d5db;
}

.mf-drawer__menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 10.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  z-index: 5;
}

.mf-drawer__menu-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text, #111);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.mf-drawer__menu-item:hover {
  background: #f2f3f4;
}

.mf-drawer__menu-item--danger {
  color: #b91c1c;
}

.mf-drawer__menu-item--danger:hover {
  background: rgba(185, 28, 28, 0.08);
}

.mf-drawer__title {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.3;
  word-break: break-word;
}

.mf-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.1rem 1.5rem;
}

.mf-section--mark-ready {
  border: 1px solid rgba(36, 99, 235, 0.22);
  background: rgba(36, 99, 235, 0.04);
  border-radius: 10px;
  padding: 12px 14px;
}

.mf-mark-ready-actions {
  margin-top: 10px;
}

.mf-approve-lines {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.35rem 0 0.65rem;
  min-width: 0;
}

.mf-approve-line {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.4rem;
  min-width: 0;
}

.mf-approve-line__name {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.mf-approve-check {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
}

.mf-approve-check input {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  margin: 0;
  padding: 0;
}

.mf-approve-line__pick {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.mf-approve-line--custom .mf-approve-line__name [data-approve-project],
.mf-approve-line__pick [data-approve-product] {
  flex: 1 1 auto;
  width: auto;
}

.mf-approve-line__pick [data-approve-amount] {
  flex: 0 0 4.75rem;
  width: 4.75rem;
}

.mf-approve-line [data-approve-name],
.mf-approve-line [data-approve-amount],
.mf-approve-line [data-approve-project],
.mf-approve-line [data-approve-product] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  margin: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  background: var(--surface, #fff);
  color: var(--text, #111827);
  font: inherit;
  font-size: 0.8125rem;
}

.mf-approve-line__name [data-approve-name] {
  flex: 1 1 auto;
}

.mf-approve-line [data-approve-product]:disabled {
  color: var(--muted, #6b7280);
  background: #f9fafb;
}

.mf-approve-stock {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted, #6b7280);
}

.mf-approve-stock.is-neg {
  color: #b42318;
}

.mf-approve-remove {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted, #6b7280);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.mf-approve-add {
  margin: 0 0 0.7rem;
}

.mf-page--warehouse-requests .mf-approve-btn {
  margin-top: 0.35rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
}

.mf-approve-error {
  color: #b42318;
  margin: 0.35rem 0 0;
}

.mf-section {
  margin-bottom: 1.15rem;
}

.mf-section__title {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6b7280);
  font-weight: 600;
}

.mf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  overflow: visible;
}

.mf-field:has(.mf-link.is-open),
.mf-field:has(.mf-ac.is-open) {
  z-index: 2;
}

.mf-ac__results {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  max-height: 180px;
  overflow: auto;
  background: var(--surface, #fff);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.mf-ac__results[hidden] {
  display: none;
}

.mf-ac__results button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  color: inherit;
}

.mf-ac__results button:hover,
.mf-ac__results button.is-active {
  background: var(--surface-2, #f8fafc);
}

.mf-ac__empty {
  padding: 0.45rem 0.6rem;
  color: var(--muted, #6b7280);
  font-size: 0.78rem;
}

.mf-field--full {
  grid-column: 1 / -1;
}

.mf-field label,
.mf-field > span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted, #6b7280);
  margin-bottom: 0.25rem;
}

.mf-field label.mf-file-add {
  display: flex;
  margin-bottom: 0;
  font-size: inherit;
  color: var(--text, #1c1917);
}

.mf-field > .mf-files {
  margin-top: 0.45rem;
}

.mf-field p,
.mf-field input,
.mf-field select,
.mf-field textarea {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  min-height: 34px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  background: var(--surface, #fff);
  color: var(--text, #111827);
  font: inherit;
  font-size: 0.8125rem;
}

.mf-field p {
  padding: 0.45rem 0.55rem;
  background: var(--surface-2, #f8fafc);
  word-break: break-word;
  white-space: pre-wrap;
}

.mf-field a {
  color: var(--accent, #2563eb);
}

.mf-td-inline,
.mf-td-assign {
  overflow: visible;
}

.mf-assign {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0.1rem 0.35rem 0.1rem 0.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.mf-assign:hover,
.mf-assign:focus-visible {
  background: var(--surface-2, #f1f5f9);
}

.mf-assign.is-empty {
  color: var(--muted, #6b7280);
  padding-left: 0.45rem;
}

.mf-assign__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-assign--drawer {
  position: relative;
  width: 100%;
  min-height: 34px;
  padding: 0.35rem 1.6rem 0.35rem 0.55rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: var(--surface, #fff);
  box-sizing: border-box;
  font-size: 0.8125rem;
  font-weight: 500;
}

.mf-assign--drawer:hover,
.mf-assign--drawer:focus-visible {
  background: var(--surface, #fff);
  border-color: #cbd5e1;
}

.mf-assign--drawer::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.7rem;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1.5px solid var(--muted, #6b7280);
  border-bottom: 1.5px solid var(--muted, #6b7280);
  transform: rotate(45deg);
}

.mf-popover {
  position: fixed;
  z-index: 200;
  min-width: 220px;
  max-width: 280px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--surface, #fff);
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.2);
}

.mf-popover--drawer {
  min-width: 0;
  max-width: none;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.mf-popover__input {
  width: 100%;
  min-height: 32px;
  margin: 0 0 6px;
  padding: 4px 8px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: var(--surface, #fff);
  font: inherit;
  box-sizing: border-box;
}

.mf-popover__option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.mf-popover__option:hover {
  background: var(--surface-2, #f1f5f9);
}

.mf-popover__option--muted {
  color: var(--muted, #6b7280);
}

.mf-popover__empty {
  margin: 0;
  padding: 8px;
  color: var(--muted, #6b7280);
  font-size: 0.8rem;
}

.mf-people-ac {
  position: relative;
}

.mf-people-ac__list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: var(--surface, #fff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.mf-people-ac__list[hidden] {
  display: none;
}

.mf-people-ac__option,
.mf-people-ac__empty {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  text-align: left;
}

.mf-people-ac__option {
  cursor: pointer;
}

.mf-people-ac__option:hover,
.mf-people-ac__option.is-active {
  background: var(--surface-2, #f1f5f9);
}

.mf-people-ac__empty {
  color: var(--muted, #6b7280);
}

.mf-status-btn {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 0.15rem 1.4rem 0.15rem 0.6rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 999px;
  background: var(--surface-2, #f1f5f9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2378716c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.4rem center;
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.mf-status-btn:hover,
.mf-status-btn:focus-visible {
  filter: brightness(0.98);
}

.mf-status-btn[data-status="requested"],
.mf-status-menu__option[data-status="requested"],
.mf-status-select[data-status="requested"] {
  background-color: #e7eef6;
  border-color: #d3dfec;
  color: #3e5674;
}

.mf-status-btn[data-status="submitted"],
.mf-status-menu__option[data-status="submitted"],
.mf-status-select[data-status="submitted"] {
  background-color: #e6f0e8;
  border-color: #cfe0d3;
  color: #3d6348;
}

.mf-status-btn[data-status="rejected"],
.mf-status-menu__option[data-status="rejected"],
.mf-status-select[data-status="rejected"] {
  background-color: #f6ecec;
  border-color: #ead6d6;
  color: #7a4a4a;
}

.mf-status-btn[data-status="fixed"],
.mf-status-menu__option[data-status="fixed"],
.mf-status-select[data-status="fixed"] {
  background-color: #e6f0e8;
  border-color: #cfe0d3;
  color: #3d6348;
}

.mf-status-btn[data-status="foreman informed"],
.mf-status-menu__option[data-status="foreman informed"],
.mf-status-select[data-status="foreman informed"] {
  background-color: #f3eee4;
  border-color: #e4d8c4;
  color: #6b5430;
}

.mf-status-btn[data-status="need to check in shop"],
.mf-status-menu__option[data-status="need to check in shop"],
.mf-status-select[data-status="need to check in shop"] {
  background-color: #f7efe4;
  border-color: #ead9c0;
  color: #7a5228;
}

.mf-status-btn[data-status="not confirmed"],
.mf-status-menu__option[data-status="not confirmed"],
.mf-status-select[data-status="not confirmed"] {
  background-color: #f6ecec;
  border-color: #ead6d6;
  color: #7a4a4a;
}

.mf-status-select {
  font-weight: 600;
}

.mf-status-menu {
  position: fixed;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface, #fff);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.mf-status-menu__option {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.mf-status-menu__option:hover,
.mf-status-menu__option:focus-visible {
  background: var(--surface-2, #f1f5f9);
}

.mf-status-menu__option.is-current {
  box-shadow: inset 0 0 0 1px currentColor;
}

.mf-inline-status {
  appearance: auto;
  width: 100%;
  max-width: 100%;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid var(--mf-status-border, var(--border, #e5e7eb));
  background: var(--mf-status-bg, var(--surface-2, #f1f5f9));
  padding: 0.15rem 0.45rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  box-sizing: border-box;
}

.mp-main--fleet .mf-inline-status {
  appearance: none;
  border-color: color-mix(in srgb, var(--mf-status-border, #d6d3d1) 32%, #e7e5e4);
  background-color: color-mix(in srgb, var(--mf-status-bg, #e7e5e4) 18%, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2378716c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 0.7rem;
  padding-right: 1.35rem;
  color: #44403c;
}

.mf-people {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mf-people__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 1.5rem;
}

.mf-people__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: var(--surface-2, #f1f5f9);
  border: 1px solid var(--border, #e5e7eb);
  font-size: 0.75rem;
}

.mf-people__chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--muted, #6b7280);
  font-size: 0.85rem;
  line-height: 1;
}

.mf-people__results {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  max-height: 140px;
  overflow: auto;
}

.mf-people__results[hidden] {
  display: none;
}

.mf-people__results button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font: inherit;
}

.mf-people__results button:hover {
  background: var(--surface-2, #f8fafc);
}

.mf-modal[hidden] {
  display: none !important;
}

.mf-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.mf-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--surface, #fff);
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.mf-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.mf-modal__hint {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--muted, #6b7280);
}

.mf-req {
  color: #b91c1c;
}

.mf-field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted, #6b7280);
  line-height: 1.35;
}

.mf-field-hint.is-error {
  color: #b91c1c;
}

.mf-field-hint[hidden] {
  display: none;
}

.mf-modal__error {
  margin: 0.75rem 0 0;
  color: #b91c1c;
  font-size: 0.8125rem;
}

.mf-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.mf-page--warehouse-requests .mf-modal__panel {
  width: min(720px, 100%);
}

.mf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mf-materials-wrap {
  margin-top: 0.35rem;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
}

.mf-materials-wrap[hidden] {
  display: none;
}

.mf-materials-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.mf-materials-table th,
.mf-materials-table td {
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  text-align: left;
  vertical-align: middle;
}

.mf-materials-table th {
  position: sticky;
  top: 0;
  background: var(--surface, #fff);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}

.mf-materials-table tr:last-child td {
  border-bottom: none;
}

.mf-materials-table tr.is-checked {
  background: rgba(255, 130, 0, 0.06);
}

.mf-materials-table__check {
  width: 2.25rem;
}

.mf-materials-table__num {
  width: 5.5rem;
  text-align: right;
  white-space: nowrap;
}

.mf-field .mf-materials-table input[type="checkbox"] {
  width: 1.05rem;
  min-width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: #ff8200;
  cursor: pointer;
}

.mf-field .mf-materials-amount {
  width: 4.75rem;
  min-height: 32px;
  margin-left: auto;
  text-align: right;
}

.mf-field .mf-materials-amount:disabled {
  opacity: 0.45;
  background: var(--surface2, #f3f4f6);
}

.mf-link {
  position: relative;
}

.mf-link__cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
}

.mf-link__chip {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.2rem 0.35rem;
  margin: 0;
  margin-left: -0.35rem;
  color: var(--accent, #2563eb);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
  word-break: break-word;
  max-width: calc(100% - 2rem);
  border-radius: 4px;
}

.mf-link.is-open .mf-link__chip {
  background: var(--accent-soft, #fff4ed);
  color: var(--accent-strong, #1d4ed8);
}

.mf-link__chip.is-plain {
  color: var(--text, #111827);
  font-weight: 500;
  text-decoration: none;
}

.mf-link__chip.is-empty {
  color: var(--muted, #6b7280);
  font-weight: 500;
  text-decoration: none;
}

.mf-link__chip.is-plain:hover,
.mf-link.is-open .mf-link__chip.is-plain {
  color: var(--text, #111827);
}

.mf-link__chip:hover {
  color: var(--accent-strong, #1d4ed8);
}

.mf-link__go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted, #6b7280);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1;
}

.mf-link__go:hover {
  background: var(--surface-2, #f1f5f9);
  color: var(--accent, #2563eb);
}

.mf-link__pop {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface, #fff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.mf-link.is-open .mf-link__pop {
  display: block;
}

.mf-link__pop-title {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #111827);
}

.mf-link__pop-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0 0 0.7rem;
}

.mf-link__pop-field:last-child {
  margin-bottom: 0;
}

.mf-link__pop-field span {
  font-size: 0.72rem;
  color: var(--muted, #6b7280);
}

.mf-link__pop-field input {
  min-height: 36px;
}

.mf-cell-link {
  color: var(--accent, #2563eb);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mf-cell-link:hover {
  color: var(--accent-strong, #1d4ed8);
}

.mf-file-drop {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mf-files {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mf-file-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.2rem 0.35rem 0.2rem 0.65rem;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 10px;
  background: var(--surface, #fff);
}

.mf-file-link,
.mf-file-link__name {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  color: var(--text, #1c1917);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.mf-file-link__name {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.mf-file-row:hover {
  border-color: var(--accent, #ff5a00);
  background: var(--accent-soft, #fff4ed);
}

.mf-file-thumb-btn {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.mf-file-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-2, #f5f5f4);
}

.mf-file-open {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent, #ff5a00);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.45rem;
  text-decoration: none;
  cursor: pointer;
}

.mf-file-open:hover {
  background: #fff;
}

.mf-file-preview {
  position: fixed;
  inset: 0;
  z-index: 140;
}

.mf-file-preview[hidden] {
  display: none !important;
}

.mf-file-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.mf-file-preview__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.mf-file-preview__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border, #e7e5e4);
}

.mf-file-preview__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.mf-file-preview__close {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #78716c);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
}

.mf-file-preview__body {
  min-height: 240px;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  background: #0f172a;
}

.mf-file-preview__media {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  margin: 0 auto;
}

.mf-file-preview__frame {
  display: block;
  width: 100%;
  height: min(75vh, 820px);
  border: 0;
  background: #fff;
}

.mf-file-remove {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #78716c);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
}

.mf-file-remove:hover {
  background: #fff;
  color: var(--accent, #ff5a00);
}

.mf-file-remove:disabled {
  opacity: 0.55;
  cursor: default;
}

.mf-file-add {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.7rem 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--accent, #ff5a00) 48%, #e7e5e4);
  border-radius: 12px;
  background: var(--accent-soft, #fff4ed);
  color: var(--text, #1c1917);
  cursor: pointer;
}

.mf-file-add:hover,
.mf-file-add.is-drag {
  border-color: var(--accent, #ff5a00);
  background: color-mix(in srgb, var(--accent, #ff5a00) 16%, #fff);
}

.mf-file-add.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.mf-file-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mf-file-add__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--accent, #ff5a00);
  color: #fff;
}

.mf-file-add__copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.mf-file-add__copy strong {
  font-size: 0.875rem;
  font-weight: 700;
}

.mf-file-add__copy span {
  color: var(--muted, #78716c);
  font-size: 0.75rem;
  line-height: 1.35;
}

.mf-field label.mf-file-add--zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 7.25rem;
  padding: 1rem 1.15rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent, #ff5a00) 14%, transparent), transparent 62%),
    #fffaf7;
}

.mf-field label.mf-file-add--zone .mf-file-add__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.mf-field label.mf-file-add--zone .mf-file-add__copy {
  align-items: center;
}

.mf-field label.mf-file-add--zone .mf-file-add__copy strong {
  font-size: 0.95rem;
}

.mf-field label.mf-file-add--zone.has-files {
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  padding: 0.55rem 0.8rem 0.55rem 0.55rem;
}

.mf-field label.mf-file-add--zone.has-files .mf-file-add__copy {
  align-items: flex-start;
}

.mf-field label.mf-file-add--zone.has-files .mf-file-add__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.mf-field label.mf-file-add--zone:hover,
.mf-field label.mf-file-add--zone:focus-within,
.mf-field label.mf-file-add--zone.is-drag {
  border-style: solid;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #ff5a00) 18%, transparent);
}

.mf-field label.mf-file-add--zone.is-drag {
  background: color-mix(in srgb, var(--accent, #ff5a00) 12%, #fff);
}

.mf-file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.mf-file-chips[hidden] {
  display: none;
}

.mf-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  min-height: 32px;
  padding: 0.15rem 0.2rem 0.15rem 0.35rem;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 999px;
  background: #fff;
}

.mf-file-chip__thumb,
.mf-file-chip__kind {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

.mf-file-chip__thumb {
  object-fit: cover;
  background: var(--surface-2, #f5f5f4);
}

.mf-file-chip__kind {
  display: grid;
  place-items: center;
  background: #fff4ed;
  color: var(--accent, #ff5a00);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mf-file-chip__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
}

.mf-file-chip__size {
  flex: 0 0 auto;
  color: var(--muted, #78716c);
  font-size: 0.68rem;
  font-weight: 600;
}

.mf-file-chip__remove {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #78716c);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.mf-file-chip__remove:hover,
.mf-file-chip__remove:focus-visible {
  background: #fff4ed;
  color: var(--accent, #ff5a00);
}

.mf-file-link--pending {
  color: var(--text, #1c1917);
}

.mf-file-status {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  color: var(--muted, #6b7280);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mf-file-status[hidden] {
  display: none;
}

.mf-file-status.is-ok {
  background: #f3f7ee;
  color: #3f6212;
}

.mf-file-status.is-error {
  background: #fff1f2;
  color: #9f1239;
}

.mf-file-muted,
.mf-people__empty {
  color: var(--muted, #6b7280);
  font-size: 0.8125rem;
}

.mf-updates {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mf-updates__count {
  font-weight: 600;
  color: var(--muted, #78716c);
}

.mf-updates__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mf-updates__empty,
.mf-updates__status {
  margin: 0;
  color: var(--muted, #78716c);
  font-size: 0.8125rem;
}

.mf-updates__status.is-error {
  color: var(--danger, #b42318);
}

.mf-update {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.65rem 0;
}

.mf-update + .mf-update {
  border-top: 1px solid var(--border, #e7e5e4);
}

.mf-update--reply {
  margin-left: 1.6rem;
}

.mf-update__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.mf-update__avatar--initials {
  display: grid;
  place-items: center;
  background: var(--accent-soft, #fff4ed);
  color: var(--accent, #ff5a00);
  font-size: 0.65rem;
  font-weight: 700;
}

.mf-update__body {
  min-width: 0;
  flex: 1;
}

.mf-update__top {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.mf-update__meta {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  min-width: 0;
  font-size: 0.75rem;
  color: var(--muted, #78716c);
}

.mf-update__meta strong {
  color: var(--text, #1c1917);
  font-weight: 700;
}

.mf-update__product {
  display: inline-block;
  max-width: 100%;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--accent, #ea580c) 12%, transparent);
  color: var(--accent, #ea580c);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-update__text {
  margin-top: 0.2rem;
  white-space: pre-wrap;
  font-size: 0.875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mf-update__text.is-html {
  white-space: normal;
}

.mf-update__text a {
  color: var(--accent, #ea580c);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.mf-update__text a:hover {
  opacity: 0.85;
}

.mf-update__replies {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.mf-update:has(.mf-update__menu.is-open) {
  position: relative;
  z-index: 4;
}

.mf-updates__composer {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 14px;
  background: var(--surface, #fff);
  padding: 0.2rem 0.2rem 0.35rem;
}

.mf-updates__composer:focus-within {
  border-color: var(--accent, #ff5a00);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #ff5a00) 22%, transparent);
}

.mf-updates__form textarea,
.mf-updates__composer textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 0;
  border-radius: 10px;
  padding: 0.5rem 0.6rem 0.25rem;
  font: inherit;
  background: transparent;
  box-sizing: border-box;
}

.mf-updates__form textarea:focus,
.mf-updates__composer textarea:focus {
  outline: none;
}

.mf-updates__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.15rem 0.25rem 0.1rem;
}

.mf-updates__attach {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 999px;
  color: var(--text, #1c1917);
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
}

.mf-updates__attach:hover {
  background: var(--surface-2, #fafaf9);
}

.mf-updates__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.45rem 0.2rem;
}

.mf-updates__chips:empty {
  display: none;
}

.mf-updates__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.12rem 0.2rem 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2, #f5f5f4);
  color: var(--text, #1c1917);
  font-size: 0.75rem;
}

.mf-updates__chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-updates__chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #78716c);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.mf-updates__chip button:hover {
  background: #fff;
  color: var(--text, #1c1917);
}

.mf-update__menu {
  position: relative;
  flex: 0 0 auto;
}

.mf-update__menu-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #78716c);
  cursor: pointer;
}

.mf-update__menu-btn:hover,
.mf-update__menu.is-open .mf-update__menu-btn {
  background: var(--surface-2, #f5f5f4);
  color: var(--text, #1c1917);
}

.mf-update__menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 6;
  min-width: 132px;
  padding: 0.25rem;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 12px;
  background: var(--surface, #fff);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.12);
}

.mf-update__menu-panel[hidden] {
  display: none;
}

.mf-update__menu-panel > button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--danger, #b42318);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: left;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.mf-update__menu-panel > button:hover {
  background: #fff1f2;
}

.mf-update__confirm {
  width: 220px;
  padding: 0.65rem 0.7rem 0.6rem;
}

.mf-update__confirm p {
  margin: 0 0 0.55rem;
  color: var(--text, #1c1917);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.35;
}

.mf-update__confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.mf-update__confirm-actions button {
  min-height: 30px;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--text, #1c1917);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.mf-update__confirm-actions button.is-danger {
  border-color: var(--danger, #b42318);
  background: var(--danger, #b42318);
  color: #fff;
}

.mf-updates__attach input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mf-update__assets {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.35rem;
}

.mf-update__assets a,
.mf-update__assets span {
  color: var(--accent, #ff5a00);
  font-size: 0.8125rem;
  font-weight: 650;
}

@media (max-width: 720px) {
  .mf-page .mp-title {
    font-size: 1.55rem;
  }

  .mf-page .mp-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .mf-page .mp-page__actions {
    width: 100%;
  }

  .mf-page .mp-page__actions .mp-btn,
  .mf-page .mp-page__actions .mp-refresh {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
  }

  .mf-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.5rem;
    align-items: stretch;
  }

  .mf-toolbar .mp-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .mf-toolbar .mp-search input,
  .mf-toolbar .mf-filter select,
  .mf-toolbar select {
    min-height: 44px;
    width: 100%;
    font-size: 16px; /* avoid iOS zoom on focus */
  }

  .mf-toolbar .mf-filter {
    min-width: 0;
    width: 100%;
  }

  .mf-toolbar .mf-filter select {
    max-width: none;
    flex: 1 1 auto;
  }

  .mf-toolbar .mp-count {
    grid-column: 1 / -1;
    margin: 0;
  }

  .mf-table-wrap {
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .mf-table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
  }

  .mf-table thead {
    display: none;
  }

  .mf-table tbody,
  .mf-table tr,
  .mf-table td {
    display: block;
    width: 100%;
  }

  .mf-table tbody tr {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border, #e5e7eb);
  }

  .mf-table tbody tr:last-child {
    border-bottom: none;
  }

  .mf-table tbody tr.is-selected {
    background: color-mix(in srgb, var(--accent, #2563eb) 8%, #fff);
  }

  .mf-table td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 38%) minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    padding: 0.35rem 0;
    border-bottom: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    min-height: 2rem;
  }

  .mf-table td::before {
    content: attr(data-label);
    color: var(--muted, #6b7280);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.35;
    padding-top: 0.2rem;
  }

  .mf-table td:not([data-label])::before,
  .mf-table td[data-label=""]::before {
    display: none;
  }

  .mf-table td.mf-table__name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: normal;
    padding-bottom: 0.55rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--border, #e5e7eb);
  }

  .mf-table td.mf-table__name::before {
    display: none;
  }

  .mf-table td.mf-td-inline .mf-inline-status,
  .mf-table td.mf-td-assign .mf-assign {
    width: 100%;
    max-width: 100%;
  }

  .mf-empty-row td {
    display: block;
    text-align: center;
    color: var(--muted, #6b7280);
  }

  .mf-empty-row td::before {
    display: none !important;
  }

  .mf-inline-status,
  .mf-assign {
    min-height: 40px;
  }

  .mf-assign {
    max-width: 100%;
  }

  .mf-fields {
    grid-template-columns: 1fr;
  }

  .mf-link__pop {
    position: static;
    margin-top: 0.45rem;
    box-shadow: none;
  }

  .mf-drawer__panel {
    width: 100%;
    border-left: none;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mf-drawer__head {
    padding-top: calc(0.85rem + env(safe-area-inset-top, 0));
    align-items: center;
  }

  .mf-drawer__close {
    width: 2.5rem;
    height: 2.5rem;
  }

  .mf-drawer__body {
    padding: 0.85rem 1rem 1.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .mf-drawer__foot {
    padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0));
  }

  .mf-drawer__bar-end .mp-btn {
    min-height: 44px;
  }

  .mf-drawer__more {
    width: 2.5rem;
    height: 2.5rem;
  }

  .mf-modal {
    align-items: flex-end;
    padding: 0;
  }

  .mf-modal__panel {
    width: 100%;
    max-height: min(92vh, 100dvh);
    max-height: min(92dvh, 100%);
    border-radius: 16px 16px 0 0;
    padding: 1.1rem 1rem calc(1.1rem + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.18);
  }

  .mf-modal__actions {
    flex-wrap: wrap;
  }

  .mf-modal__actions .mp-btn {
    flex: 1 1 calc(50% - 0.3rem);
    min-height: 44px;
  }

  .mf-popover {
    max-width: min(280px, calc(100vw - 1.5rem));
  }

  .mf-popover--drawer {
    max-width: none;
  }

  .mf-field input,
  .mf-field select,
  .mf-field textarea,
  .mf-link__pop-field input {
    font-size: 16px;
    min-height: 44px;
  }

  .mf-field .mf-materials-amount {
    min-height: 44px;
  }
}

html.mf-overlay-open,
html.mf-overlay-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.mf-view-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 11px;
  background: var(--surface, #fff);
}

.mf-view-switch__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #78716c);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.mf-view-switch__button:hover {
  color: var(--text, #1c1917);
}

.mf-view-switch__button.is-active {
  background: var(--accent-soft, #fff1e8);
  color: var(--accent, #ff5a00);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.07);
}

.mf-view-switch__button:focus-visible {
  outline: 2px solid var(--accent, #ff5a00);
  outline-offset: 2px;
}

.mf-managers__frame {
  display: block;
  width: 100%;
  height: calc(100dvh - 210px);
  min-height: 520px;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 16px;
  background: #f2f2f7;
}

.mf-page--warehouse-techcom .mp-page__head {
  align-items: flex-start;
}

.mf-page--warehouse-techcom .mf-wt-actions {
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.mf-wt-actions__tools {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.mf-page--warehouse-techcom.is-managers-view .mf-toolbar,
.mf-page--warehouse-techcom.is-managers-view [data-mf="state"],
.mf-page--warehouse-techcom.is-managers-view [data-mf="board"],
.mf-page--warehouse-techcom.is-managers-view [data-mf="subtitle"],
.mf-page--warehouse-techcom.is-managers-view .mf-wt-actions__tools {
  display: none !important;
}

.mf-table--wt {
  min-width: 920px;
}

.mf-table--wt .mf-wt-num,
.mf-wt-products__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mf-wt-project-row .mf-table__name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mf-wt-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  color: var(--text, #111);
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.mf-wt-expand__icon {
  display: block;
  width: 14px;
  height: 14px;
  transition: transform 140ms ease;
}

.mf-wt-expand.is-open .mf-wt-expand__icon {
  transform: rotate(90deg);
}

.mf-wt-expand:hover {
  background: #f2f3f4;
  border-color: #cbd5e1;
  color: var(--text, #111);
}

.mf-wt-products-row > td {
  padding: 0 0.7rem 0.75rem !important;
  background: #f8fafc;
  border-bottom: 1px solid var(--border, #e5e7eb);
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.mf-wt-products {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  overflow: auto;
}

.mf-wt-products--loading,
.mf-wt-products--empty {
  padding: 0.65rem 0.8rem;
  color: var(--muted, #6b7280);
  font-size: 0.8125rem;
  border: 0;
  background: transparent;
}

.mf-wt-products__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.mf-wt-products__table th,
.mf-wt-products__table td {
  padding: 0.4rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border, #e5e7eb);
  vertical-align: middle;
}

.mf-wt-products__table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted, #6b7280);
  background: #f8fafc;
  font-weight: 600;
}

.mf-wt-products__table tr:last-child td {
  border-bottom: none;
}

.mf-wt-products__name {
  font-weight: 600;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-wt-products--drawer {
  margin-top: 0.25rem;
}

.mf-wt-products--cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem;
  overflow: visible;
}

.mf-wt-product {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  padding: 0.7rem 0.8rem 0.55rem;
}

.mf-wt-product__head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mf-wt-product__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text, #111);
}

.mf-wt-product__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
}

.mf-wt-product__metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 4.75rem;
}

.mf-wt-product__metric span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}

.mf-wt-product__updates {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border, #e5e7eb);
}

.mf-wt-product__updates.is-updates-empty {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: 0;
}

.mf-wt-product--project.is-updates-empty {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.mf-wt-product--project .mf-wt-product__updates {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mf-updates--compact {
  margin: 0;
  padding: 0;
}

.mf-updates__add {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted, #6b7280);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.mf-updates__add:hover {
  color: var(--text, #111);
}

.mf-updates--compact.is-empty .mf-updates__toggle,
.mf-updates--compact.is-empty .mf-updates__body {
  display: none;
}

.mf-updates--compact.is-empty .mf-updates__add {
  display: inline;
}

.mf-updates__toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mf-updates__toggle:hover .mf-section__title {
  color: var(--text, #111);
}

.mf-updates__chevron {
  flex: 0 0 auto;
  color: var(--muted, #6b7280);
  transition: transform 0.15s ease;
}

.mf-updates--compact.is-open .mf-updates__chevron {
  transform: rotate(90deg);
}

.mf-updates--compact .mf-section__title {
  margin: 0;
  font-size: 0.75rem;
}

.mf-updates--compact .mf-updates__body {
  margin-top: 0.4rem;
}

.mf-updates--compact .mf-updates__list {
  max-height: 14rem;
  overflow: auto;
}

.mf-updates--compact .mf-updates__composer textarea {
  min-height: 2.75rem;
}

.mf-wt-num-input {
  width: 4.75rem;
  max-width: 100%;
  min-height: 2rem;
  margin: 0;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 7px;
  background: #fff;
  color: var(--text, #111);
  font: inherit;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.mf-wt-num-input:hover {
  border-color: #cbd5e1;
}

.mf-wt-num-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

.mf-wt-num-input.is-saving {
  opacity: 0.65;
}

.mf-wt-num-input.is-invalid {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

.mf-page--warehouse-requests .mp-page__actions {
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.mf-activity {
  margin: 0 0 0.9rem;
  padding: 0.85rem 1rem 0.35rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
}

.mf-activity__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.55rem;
}

.mf-activity__title {
  margin: 0;
  font-size: 0.95rem;
}

.mf-activity__hint,
.mf-activity__state {
  margin: 0;
  color: var(--muted, #6b7280);
  font-size: 0.82rem;
}

.mf-activity__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 22rem;
  overflow: auto;
}

.mf-activity__item {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.35rem 0.8rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 0.84rem;
}

.mf-activity__when {
  color: var(--muted, #6b7280);
  font-variant-numeric: tabular-nums;
}

.mf-activity__user {
  font-weight: 650;
}

.mf-activity__item button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mf-activity__item button:hover {
  text-decoration: underline;
}

.mf-page--warehouse-requests.is-inventory-view > .mf-toolbar,
.mf-page--warehouse-requests.is-inventory-view > [data-mf="state"],
.mf-page--warehouse-requests.is-inventory-view > [data-mf="board"],
.mf-page--warehouse-requests.is-inventory-view [data-mf="new-btn"] {
  display: none !important;
}

.mf-inv-lead {
  margin: 0 0 0.85rem;
  color: var(--muted, #78716c);
  font-size: 0.9rem;
  line-height: 1.45;
}

.mf-inv-person + .mf-inv-person {
  margin-top: 1.35rem;
}

.mf-inv-person__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 0.45rem;
  flex-wrap: wrap;
}

.mf-inv-person__head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.mf-inv-person__head p {
  margin: 0;
  color: var(--muted, #78716c);
  font-size: 0.85rem;
}

.mf-inv-person__head strong {
  color: var(--text, #1c1917);
  font-size: 1.05rem;
}

.mf-inv-person__pending {
  margin-left: 0.75rem;
}

.mf-table--inventory {
  min-width: 760px;
}

.mf-table--inventory .mf-inv-num,
.mf-inv-move .mf-inv-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.mf-inv-expand-cell {
  width: 2.6rem;
}

.mf-inv-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 7px;
  background: #fff;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.mf-inv-expand:hover {
  background: rgba(15, 23, 42, 0.04);
}

.mf-inv-num--neg,
.mf-inv-person__head strong.mf-inv-num--neg {
  color: var(--danger, #b42318);
}

.mf-inv-num--muted {
  color: var(--muted, #78716c);
  font-weight: 600;
}

.mf-inv-detail td {
  background: rgba(15, 23, 42, 0.025);
  padding-top: 0.35rem;
  padding-bottom: 0.55rem;
}

.mf-inv-moves {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mf-inv-move {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}

.mf-inv-move:hover {
  background: rgba(15, 23, 42, 0.05);
}

.mf-inv-move__name {
  font-weight: 650;
}

.mf-inv-move__meta {
  flex: 1;
  color: var(--muted, #78716c);
}

.mf-inv-board.is-refreshing {
  opacity: 0.6;
}

.mf-inv-empty {
  margin: 0.25rem 0.55rem;
  color: var(--muted, #78716c);
}

@media (max-width: 720px) {
  .mf-table--inventory {
    min-width: 0;
  }

  .mf-inv-move {
    flex-wrap: wrap;
  }

  .mf-inv-move .mf-inv-num {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .mf-wt-num-input {
    width: 100%;
    min-height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .mf-page--warehouse-techcom .mf-wt-actions {
    align-items: stretch;
    width: 100%;
  }

  .mf-wt-actions__tools .mp-btn,
  .mf-wt-actions__tools .mp-refresh {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
  }
}

/* Fleet / Inventory — one card per crew */

.mf-crew-toolbar {
  align-items: center;
}

.mf-crew-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mf-crew-cat {
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
  color: var(--text, #111);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 0.8rem;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.mf-crew-cat.is-on {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.mf-crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.mf-crew-card {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  background: var(--surface, #fff);
  padding: 0.85rem 0.9rem 1rem;
  min-width: 0;
}

.mf-crew-card.is-unassigned {
  background: #fafafa;
}

.mf-crew-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.mf-crew-card__head h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.mf-crew-card__meta {
  margin: 0;
  color: #6b7280;
  font-size: 0.8rem;
}

.mf-crew-section + .mf-crew-section {
  margin-top: 0.7rem;
}

.mf-crew-section__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.mf-crew-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mf-crew-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 0.15rem 0.55rem;
  border-radius: 8px;
  background: #f3f4f6;
  color: inherit;
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

a.mf-crew-pill:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.mf-crew-others {
  margin-top: 1.25rem;
}

.mf-crew-others__toggle {
  margin-bottom: 0.75rem;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 720px) {
  .mf-crew-grid {
    grid-template-columns: 1fr;
  }
}

