/* 配車共有専用。通常配車・乗り合わせへのスタイル波及を防ぐ */

.vehicle-sharing-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #b4d2e7;
  border-radius: 16px;
  background: linear-gradient(145deg, #eaf5fc, #ffffff);
  color: #183a52;
}

.vehicle-sharing-heading { margin-bottom: 18px; }

.vehicle-sharing-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #277fa9;
  letter-spacing: .13em;
  margin-bottom: 6px;
}

.vehicle-sharing-heading .form-section-title { margin: 0 0 6px; }
.vehicle-sharing-view-header { margin-top: 12px; }

.vehicle-sharing-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vehicle-sharing-fieldset {
  border: 1px solid #c4dce9;
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
  background: #fff;
}

.vehicle-sharing-fieldset legend {
  font-weight: 700;
  padding: 0 6px;
}

.vehicle-sharing-choices {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.vehicle-sharing-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f5fafd;
  cursor: pointer;
}

.vehicle-sharing-choice:focus-within {
  outline: 2px solid #2b8ab7;
  outline-offset: 1px;
}

.vehicle-sharing-segments {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.vehicle-sharing-segment-field {
  display: grid;
  gap: 5px;
  font-size: 12px;
}

.vehicle-sharing-segment-field select {
  min-height: 38px;
  border: 1px solid #b8d3e3;
  border-radius: 8px;
  padding: 7px;
}

.vehicle-sharing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.vehicle-sharing-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.vehicle-sharing-message {
  margin: 10px 0;
  min-height: 18px;
  font-size: 12px;
}

.vehicle-sharing-message[data-state="error"] {
  color: #a82634;
  font-weight: 700;
}

.vehicle-sharing-history {
  border-top: 1px solid #cedfea;
  margin-top: 20px;
  padding-top: 14px;
}

.vehicle-sharing-rows {
  display: grid;
  gap: 8px;
}

.vehicle-sharing-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d5e6ee;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 640px) {
  .vehicle-sharing-columns { grid-template-columns: 1fr; }
  .vehicle-sharing-panel { padding: 14px; }
}

/* 社員ごとの共有先選択 */
.vehicle-sharing-columns {
  grid-template-columns: minmax(0, 2fr) minmax(210px, 1fr);
}

.vehicle-sharing-employee-list {
  display: grid;
  gap: 12px;
  max-height: 350px;
  overflow-y: auto;
}

.vehicle-sharing-employee-card {
  padding: 12px;
  border: 1px solid #d1e3ef;
  border-radius: 12px;
  background: #f5fafd;
}

.vehicle-sharing-employee-card > strong {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
}

.vehicle-sharing-employee-targets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vehicle-sharing-employee-targets .vehicle-sharing-choice {
  width: auto;
  border: 1px solid #c4dce9;
  background: #fff;
}

.vehicle-sharing-employee-targets .vehicle-sharing-choice:has(input:checked) {
  border-color: #147ba9;
  background: #e0f2fc;
  color: #07577e;
  font-weight: 700;
}

.vehicle-sharing-employee-targets .vehicle-sharing-choice:has(input:disabled) {
  opacity: .55;
  cursor: not-allowed;
}

.vehicle-sharing-target-list {
  display: grid;
  gap: 8px;
  max-height: 350px;
  overflow-y: auto;
}

.vehicle-sharing-target-summary {
  padding: 10px;
  background: #f5fafd;
  border-radius: 9px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .vehicle-sharing-columns {
    grid-template-columns: 1fr;
  }
}