/* A data da operação define o destaque, sem depender da data de digitação. */
.ops-shell .fixed-history-list .fixed-list-row.is-today { background: #f0f8f6; }

/* Resumo operacional dos contratos: piloto e franquia do mês. */
.ops-shell .fixed-card-pilot dd { font-weight: 600; }
.ops-shell .fixed-card-washes {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #d5e9e5;
  border-radius: 9px;
  background: #f2f9f7;
  color: #235d58;
}
.ops-shell .fixed-card-wash-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  font-size: 11px;
}
.ops-shell .fixed-card-washes small { font-size: 10px; line-height: 1.6; }
.ops-shell .fixed-card-washes > strong { font-size: 12px; font-weight: 600; line-height: 1.7; }
.ops-shell .fixed-card-washes > strong b { font-size: 22px; font-weight: 650; margin-right: 3px; }
.ops-shell .fixed-card-washes.is-exhausted { border-color: #efdfbb; background: #fffaf0; color: #87642a; }
.ops-shell .fixed-card-washes .fixed-card-wash-unknown { color: #607b87; }

/* A edição ocupa o cabeçalho existente; as duas ações principais ficam alinhadas. */
.ops-shell .fixed-cards .fixed-card-heading > div:first-child { min-width: 0; flex: 1; }
.ops-shell .fixed-cards .fixed-card-status-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
}
.ops-shell .fixed-cards .fixed-card-edit {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #15747a;
  cursor: pointer;
}
.ops-shell .fixed-cards .fixed-card-edit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ops-shell .fixed-cards .fixed-card-edit:hover { background: #edf7f5; border-color: #d3e9e4; }
.ops-shell .fixed-cards .fixed-card-edit:focus-visible { outline: 2px solid #168b88; outline-offset: 1px; }
.ops-shell .fixed-cards .fixed-card .fixed-card-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ops-shell .fixed-cards .fixed-card .fixed-card-actions > :is(.action, .secondary) { width: 100%; min-width: 0; min-height: 44px; margin: 0; font-size: 12px; }
.ops-shell .fixed-cards .fixed-card-ramp-cancel { align-self: flex-start; min-height: 44px; }

/* Horários consecutivos nos cards de movimentações fixas do celular. */
@media screen and (max-width: 760px) {
  .ops-shell .fixed-history-list .fixed-list-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "aircraft"
      "ramp"
      "takeoff"
      "landing"
      "status"
      "actions";
    gap: 14px;
  }

  .ops-shell .fixed-history-list .fixed-list-row > div:nth-child(1) { grid-area: aircraft; }
  .ops-shell .fixed-history-list .fixed-list-row > div:nth-child(2) { grid-area: ramp; }
  .ops-shell .fixed-history-list .fixed-list-row > div:nth-child(3) { grid-area: takeoff; }
  .ops-shell .fixed-history-list .fixed-list-row > div:nth-child(4) { grid-area: landing; }
  .ops-shell .fixed-history-list .fixed-list-row > div:nth-child(5) { grid-area: status; }
  .ops-shell .fixed-history-list .fixed-list-row > div:nth-child(6) { grid-area: actions; }

  .ops-shell .fixed-history-list .fixed-list-row > div:first-child {
    padding-bottom: 14px;
    border-bottom: 1px solid #e8eef2;
  }

  .ops-shell .fixed-history-list .fixed-list-row > div:nth-child(n+2):nth-child(-n+4) {
    display: grid;
    grid-template-columns: minmax(88px, .75fr) minmax(0, 1.25fr);
    column-gap: 12px;
    align-items: start;
  }

  .ops-shell .fixed-history-list .fixed-list-row > div:nth-child(n+2):nth-child(-n+4)::before {
    grid-column: 1;
    margin-bottom: 0;
  }
  .ops-shell .fixed-history-list .fixed-list-row > div:nth-child(n+2):nth-child(-n+4) > :is(.fixed-datetime, small) {
    grid-column: 2;
    min-width: 0;
  }
}
