.ot-page {
  padding: 20px;
  background: #f4f7f8;
  min-height: calc(100vh - 58px);
}

.ot-header,
.ot-panel,
.ot-kpis > div {
  background: #fff;
  border: 1px solid #dfe8ec;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(28, 45, 56, .05);
}

.ot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.ot-header h2 {
  margin: 0;
  color: #1f2933;
  font-size: 24px;
  font-weight: 850;
}

.ot-header p,
.ot-panel p {
  margin: 4px 0 0;
  color: #6b7c86;
  font-size: 13px;
}

.ot-header .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ot-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ot-kpis > div,
.ot-panel {
  padding: 14px;
}

.ot-kpis span {
  display: block;
  color: #647681;
  font-size: 13px;
}

.ot-kpis strong {
  display: block;
  color: #22313f;
  font-size: 25px;
  margin-top: 5px;
}

.ot-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.ot-panel h3 {
  margin: 0;
  color: #26333b;
  font-size: 17px;
  font-weight: 850;
}

#otSearch {
  max-width: 260px;
}

.ot-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 8px;
  background: #e7f5f2;
  color: #197465;
  font-size: 12px;
}

.ot-chip.submitted {
  background: #fff3d6;
  color: #9a6700;
}

.ot-chip.rejected {
  background: #fdecec;
  color: #b42318;
}

.ot-chip.draft {
  background: #eef2f7;
  color: #52616b;
}

.ot-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.ot-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.ot-form-grid label span {
  display: block;
  margin-bottom: 6px;
  color: #40545e;
  font-weight: 750;
  font-size: 13px;
}

.ot-span-2 {
  grid-column: span 2;
}

@media (max-width: 800px) {
  .ot-header,
  .ot-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  #otSearch {
    max-width: none;
  }

  .ot-form-grid {
    grid-template-columns: 1fr;
  }

  .ot-span-2 {
    grid-column: span 1;
  }
}
