/* file: /app/TL/css/eventModal.css
------------------------------------------------------ */

.tlModalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.tlModal{
  width: min(760px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.tlModalHeader{
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #EEF2FF, #FFFFFF);
  border-bottom: 1px solid #E5E7EB;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tlModalTitle{
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

.tlModalClose{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  background: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.tlModalBody{
  padding: 14px 16px 6px 16px;
}

.tlModalFooter{
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #ffffff;
  border-top: 1px solid #E5E7EB;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.tlLabel{
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.tlFormRow{
  display: block;
}

.tlFormRow2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 560px){
  .tlFormRow2{ grid-template-columns: 1fr; }
}

.tlInput,
.tlSelect,
.tlTextarea{
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
}

.tlTextarea{
  min-height: 86px;
  resize: vertical;
}

.tlChipRow{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tlChip{
  border-radius: 999px;
  border: 1px solid #E5E7EB;
  background: #fff;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.tlChip.isActive{
  border-color: #4f46e5;
  background: #EEF2FF;
  color: #1d4ed8;
}

.tlFormRowInline{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #F9FAFB;
  margin-top: 10px;
}

.tlLabelInline{
  font-size: 13px;
  font-weight: 900;
  color: #111827;
}

.tlRepeatBox{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
}

.tlHint{
  margin-top: 8px;
  font-size: 12px;
  color: #6B7280;
  font-weight: 700;
}

.tlRadioLabel{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

/* フッターボタン（既存 .btn がある想定。なければ最低限効くように） */
.btn{
  cursor: pointer;
}

.tlModalBtnPrimary{
  background: #4f46e5;
  border: 1px solid #4f46e5;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
}

.tlModalBtnGhost{
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #111827;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
}

.tlModalBtnDanger{
  background: #fff;
  border: 1px solid #FCA5A5;
  color: #b91c1c;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
}

/* scope sheet（保存範囲/削除範囲） */
.tlSheet{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  border: 1px solid #E5E7EB;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.tlSheetTitle{
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 10px;
}

.tlSheetBtn{
  width: 100%;
  margin-top: 10px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
  background: #fff;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
}

.tlSheetBtn.isDanger{
  border-color: #FCA5A5;
  color: #b91c1c;
}

.tlSheetBtn.isCancel{
  background: #F3F4F6;
  border-color: #E5E7EB;
  color: #111827;
}
