/* Base layout */
#pace-form {
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* preset row */
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-item {
  flex: 1;
  min-width: 150px;
}

label {
  display: block;
  font-size: 0.7rem;
  margin-bottom: 0.15rem;
  color: #666;
}

input,
select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.3rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fefefe;
}

input:disabled {
  background-color: #f4f4f4;
  color: #888;
  border-style: dashed;
}

/* split sections */
.split-section h3 {
  margin: 0 0 0.5rem 0;
  text-transform: lowercase;
}

.split-section {
  padding-top: 0.5rem;
  border-top: 1px solid #ccc;
}


.split-content {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.split-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* pace sliders positioned under pace/speed field */
.pace-field input[type=range] {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0;
  border: none;
  background: transparent;
}

.split-table {
  flex: 1;
}

.single-input {
  max-width: 8rem;
}

.single-input input {
  width: 100%;
}

.total-row {
  display: flex;
  gap: 0.5rem;
}

.total-row .field {
  flex: 1;
}

/* pace tables */
.pace-table {
  font-size: 0.9rem;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
}

.mini-table th,
.mini-table td {
  border: 1px solid #ccc;
  padding: 4px 6px;
  text-align: center;
}

.clickable {
  cursor: pointer;
}
.clickable:hover {
  background-color: #eef;
}

/* highlight total time */
#totalTime {
  font-weight: bold;
  font-size: 1.2rem;
  background-color: #fffae6;
  border: 2px solid #ccc;
}

/* discipline colors */
.swim-column {
  background-color: rgba(173, 216, 230, 0.2);
}

.bike-column {
  background-color: rgba(144, 238, 144, 0.2);
}

.run-column {
  background-color: rgba(255, 182, 193, 0.2);
}

