/* mv-cards.css — Minhas Viagens redesign */

/* === HEADER DA PÁGINA === */
.mv-page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 14px;
}
.mv-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #005C28;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -1px;
  user-select: none;
}
.mv-page-header-txt h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #242021;
  line-height: 1.2;
}
.mv-page-header-txt p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #6b7280;
}

/* === ABAS PÍLULA === */
.mv-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.mv-tab {
  flex: 1;
  padding: 10px 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #C7E59B;
  cursor: pointer;
  background: #fff;
  color: #005C28;
  text-align: center;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1.3;
}
.mv-tab.ativo {
  background: #005C28;
  color: #fff;
  border-color: #005C28;
}

/* === CARD === */
.mv-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 5px rgba(0,0,0,.09);
  overflow: hidden;
  display: flex;
}
.mv-card-accent {
  width: 5px;
  flex-shrink: 0;
}
.mv-card-body {
  flex: 1;
  padding: 14px 14px 14px 12px;
  min-width: 0;
}

/* cabeçalho do card */
.mv-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}
.mv-card-destino {
  font-size: 15px;
  font-weight: 700;
  color: #242021;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.mv-badge-status {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  align-self: flex-start;
}
.mv-card-sub {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
}

/* linha de info */
.mv-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  font-size: 13px;
  color: #374151;
  margin-bottom: 10px;
  align-items: center;
}
.mv-info-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mv-info-item svg {
  color: #005C28;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* box KM único */
.mv-km-box {
  background: #EEF5E6;
  border: 1px solid #C7E59B;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  display: inline-block;
}
.mv-km-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #005C28;
  text-transform: uppercase;
  line-height: 1;
}
.mv-km-value {
  font-size: 18px;
  font-weight: 700;
  color: #242021;
  line-height: 1.3;
}

/* box KM 3 colunas (histórico) */
.mv-km-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.mv-km-col {
  background: #EEF5E6;
  border: 1px solid #C7E59B;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}
.mv-km-col .mv-km-label {
  font-size: 9px;
}
.mv-km-col .mv-km-value {
  font-size: 14px;
}

/* box valor da viagem (terceirizado) */
.mv-valor-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mv-valor-label {
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.mv-valor-value {
  font-size: 22px;
  font-weight: 800;
  color: #15803d;
  flex: 1;
  text-align: right;
}
.mv-valor-est {
  width: 100%;
  font-size: 10px;
  color: #6b7280;
  text-align: right;
  margin-top: 2px;
}

/* observação */
.mv-obs {
  font-size: 12px;
  color: #6b7280;
  background: #f9fafb;
  border-left: 3px solid #C7E59B;
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* seção gastos — mantida, só borda */
.mv-gastos-secao {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
}

/* botões de ação */
.mv-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.mv-btn-entregas {
  position: relative;
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid #005C28;
  background: #fff;
  color: #005C28;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.mv-btn-entregas svg {
  flex-shrink: 0;
}
.mv-btn-badge {
  margin-left: auto;
  background: #d4831a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.5;
  white-space: nowrap;
}
.mv-btn-primario {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: none;
  background: #4a8c1c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}
.mv-btn-primario:active {
  opacity: .85;
}
.mv-btn-primario svg {
  flex-shrink: 0;
}

/* estado vazio */
.mv-empty {
  text-align: center;
  padding: 52px 20px;
  color: #9ca3af;
}
.mv-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  opacity: .5;
}
.mv-empty-icon svg {
  width: 44px;
  height: 44px;
  color: #005C28;
}
.mv-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

/* === MODAL KM (Iniciar / Finalizar) === */
.mv-modal-hd {
  background: #005C28;
  color: #fff;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.mv-modal-hd svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.mv-modal-bd {
  padding: 20px;
}
.mv-modal-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px;
  line-height: 1.5;
}
.mv-modal-km-ref {
  display: inline-block;
  background: #EEF5E6;
  border: 1px solid #C7E59B;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #005C28;
  margin-bottom: 16px;
}
.mv-km-input {
  font-size: 26px !important;
  padding: 16px !important;
  text-align: center !important;
  font-weight: 700 !important;
  border: 2px solid #C7E59B !important;
  border-radius: 8px !important;
  width: 100%;
  box-sizing: border-box;
  color: #242021;
}
.mv-km-input:focus {
  border-color: #005C28 !important;
  outline: none;
}
.mv-modal-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}
.mv-modal-btns {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.mv-modal-btn-cancel {
  flex: 1;
  padding: 13px;
  border-radius: 8px;
  border: 2px solid #005C28;
  background: #fff;
  color: #005C28;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
}
.mv-modal-btn-cancel:hover {
  background: #EEF5E6;
}
.mv-modal-btn-ok {
  flex: 1;
  padding: 13px;
  border-radius: 8px;
  border: none;
  background: #005C28;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .12s;
}
.mv-modal-btn-ok:active {
  opacity: .82;
}
