/* OR FICHA — CSS exclusivo (para não interferir com outros módulos) */

.or-ficha .or-fixed-header {
  flex: 0 0 auto;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.or-ficha .or-header-grid {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.or-ficha .or-header-left {
  flex: 1 1 auto;
  min-width: 0;
}

.or-ficha .or-header-right {
  flex: 0 0 340px;
  display: flex;
  justify-content: flex-end;
}

.or-ficha .or-header-right .or-resumo-header {
  width: 340px;
  margin-right: 0;
  position: static;
  background: #fafafa;
}

.or-ficha .or-left-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.or-ficha .or-left-top {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.or-ficha .or-left-top select {
  min-width: 220px;
}

.or-ficha .or-left-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.or-ficha .or-left-grid label {
  display: block;
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

.or-ficha .or-left-grid .or-value {
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.or-ficha .or-state-row{
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 6px;
}
.or-ficha #or_estado{
  width: 130px;
  max-width: 130px;
  padding: 3px 6px;
  line-height: 1.1;
}

.or-ficha .or-section{
  margin-top: 6px;
}
.or-ficha .or-section:first-of-type{
  margin-top: 0;
}

.or-ficha .or-section-title{
  font-size: 12px;
  font-weight: 700;
  color: #222;
  margin-bottom: 3px;
}

.or-ficha .or-mini-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.or-ficha .or-mini-table th{
  font-size: 11px;
  color: #666;
  font-weight: 700;
  text-align: left;
  padding: 1px 3px 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.05;
}

.or-ficha .or-mini-table td{
  font-size: 12.5px;
  font-weight: 600;
  color: #111;
  padding: 1px 3px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.05;
}

/* LARGURAS ESPECIFICAS */
.or-ficha table.or-mini-table--or th:nth-child(1),
.or-ficha table.or-mini-table--or td:nth-child(1) { width: 8%; }   /* Nº */
.or-ficha table.or-mini-table--or th:nth-child(2),
.or-ficha table.or-mini-table--or td:nth-child(2) { width: 28%; }  /* Intervenção */
.or-ficha table.or-mini-table--or th:nth-child(3),
.or-ficha table.or-mini-table--or td:nth-child(3) { width: 18%; }  /* Data entrada */
.or-ficha table.or-mini-table--or th:nth-child(4),
.or-ficha table.or-mini-table--or td:nth-child(4) { width: 10%; }  /* KM */
.or-ficha table.or-mini-table--or th:nth-child(5),
.or-ficha table.or-mini-table--or td:nth-child(5) { width: 10%; }  /* É revisão */
.or-ficha table.or-mini-table--or th:nth-child(6),
.or-ficha table.or-mini-table--or td:nth-child(6) { width: 26%; }  /* Data prevista */

.or-ficha table.or-mini-table--veiculo th:nth-child(1),
.or-ficha table.or-mini-table--veiculo td:nth-child(1) { width: 12%; } /* Matrícula */
.or-ficha table.or-mini-table--veiculo th:nth-child(2),
.or-ficha table.or-mini-table--veiculo td:nth-child(2) { width: 18%; } /* Marca */
.or-ficha table.or-mini-table--veiculo th:nth-child(3),
.or-ficha table.or-mini-table--veiculo td:nth-child(3) { width: 34%; } /* Modelo */
.or-ficha table.or-mini-table--veiculo th:nth-child(4),
.or-ficha table.or-mini-table--veiculo td:nth-child(4) { width: 18%; } /* Data matrícula */
.or-ficha table.or-mini-table--veiculo th:nth-child(5),
.or-ficha table.or-mini-table--veiculo td:nth-child(5) { width: 18%; } /* Tecdoc */

/* Blocos por linha: estado / OR / veículo / cliente / informações */
.or-ficha .or-block{
  margin-top: 8px;
}

.or-ficha .or-block:first-child{
  margin-top: 0;
}

.or-ficha .or-block-title{
  font-size: 12px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.or-ficha .or-block > label{
  display: block;
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

.or-ficha .or-block select{
  width: 100%;
  min-width: 220px;
}

.or-ficha .or-block-empty{
  height: 26px;
  color: transparent;
}

