/* calendar.css - J-Calendar Plugin Style */

.tintcal-calendar-container {
  max-width: 500px;
  margin: 20px auto;
  font-family: sans-serif;
}

.tintcal-calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tintcal-calendar {
  width: 100%;
  border-collapse: collapse;
}

.tintcal-calendar th,
.tintcal-calendar td {
  border: 1px solid #ccc;
  width: 14.28%;
  height: 50px;
  text-align: center;
  vertical-align: middle;
}

.tintcal-calendar td {
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.tintcal-calendar td:hover {
  background-color: #f0f0f0;
}

.tintcal-calendar td[title] {
  font-weight: bold;
  color: #333;
}

/* ------------------------------
 * 管理画面タブUI用スタイル
 * ------------------------------ */
.tintcal-tab-content {
  display: none;
}
.tintcal-tab-content.active {
  display: block;
}

/* ------------------------------
 * 基本設定タブのレイアウト
 * ------------------------------ */
.tintcal-settings-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.tintcal-settings-form {
  flex: 2;
  min-width: 350px;
}
.tintcal-settings-demo {
  flex: 1;
  min-width: 280px;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* ------------------------------
 * デモカレンダーのスタイル
 * ------------------------------ */
.tintcal-demo-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid #ccc;
  border-top: 1px solid #ccc;
  font-size: 12px;
}
.tintcal-demo-header, .tintcal-demo-cell {
  padding: 8px 4px;
  text-align: center;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  background: #fff;
}
.tintcal-demo-header {
  font-weight: bold;
  background-color: #eeeeee;
}
.tintcal-demo-saturday {
  background-color: #ecf5ff;
}
.tintcal-demo-sunday {
  background-color: #ffecec;
}
.tintcal-demo-holiday {
  background-color: #ffdddd;
}

/* ------------------------------
 * カテゴリ追加フォームのスタイル
 * ------------------------------ */
.tintcal-category-add-form {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

/* ------------------------------
 * デモカレンダーの曜日順序変更用
 * ------------------------------ */
.tintcal-demo-calendar.tintcal-start-on-monday .tintcal-demo-header[data-day="sun"] {
  order: 7; /* 月曜始まりのとき、日曜の表示順を7番目にする */
}

/* 月送りコントロールの中央部分を寄せるためのスタイル */
.tintcal-calendar-controls .tintcal-month-year {
  margin-left: auto;
}

/* =============================
 * カテゴリ割り当てポップアップのスタイル
 * ============================= */
.tintcal-assign-modal {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 15px;
  min-width: 150px;
}

/* ポップアップ内の各カテゴリ行（ラベル） */
.tintcal-assign-modal label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

/* 最後のラベルの下には余白をつけない */
.tintcal-assign-modal label:last-child {
  margin-bottom: 0;
}

/* ボタンを囲むラッパー要素のスタイル */
.tintcal-assign-modal .button-wrapper {
  margin-top: 15px;
  display: flex;
  gap: 8px;
}

/* =============================
 * 権限設定テーブルのスタイル
 * ============================= */
.tintcal-permissions-table {
  border-collapse: collapse;
  margin-top: 1em;
}
.tintcal-permissions-table th,
.tintcal-permissions-table td {
  border: 1px solid #c8c8c8;
  padding: 12px;
}
.tintcal-permissions-table th[scope="col"] {
  background-color: #f5f5f5;
}

.tintcal-pro-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* =============================
 * 個別カレンダーへのショートカット
 * ============================= */
.tintcal-shortcuts-section {
  margin-top: 40px;
  padding: 1px 20px 10px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background-color: #fff;
  margin-right: 20px;
}
.tintcal-shortcuts-section h3 {
  font-size: 16px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.tintcal-shortcuts-section ul {
  margin: 0;
  list-style-type: disc;
  padding-left: 25px;
}
.tintcal-shortcuts-section li {
  margin-bottom: 8px;
}

