/*
 * Filament theme (v3.2.82) に欠落している Tailwind ユーティリティを補完する。
 * app.css を直接編集せず、このファイルを後から読み込む。
 *
 * 既存（追加不要）: grid-cols-1, grid-cols-7, sm:grid-cols-3,
 * md:grid-cols-1/2/3, xl:grid-cols-4, および CSS 変数版 (--cols-*)
 */

/* base: grid-cols-2〜6 */
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* sm (640px): 欠落分 */
@media (min-width: 640px) {
  .sm\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sm\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .sm\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* md (768px): 欠落分（md:grid-cols-4 など） */
@media (min-width: 768px) {
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .md\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* lg (1024px): 数値版がすべて欠落 */
@media (min-width: 1024px) {
  .lg\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* xl (1280px): xl:grid-cols-4 以外が欠落 */
@media (min-width: 1280px) {
  .xl\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .xl\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xl\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .xl\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .xl\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Vue で使用中・Filament に無い gap */
.gap-5 {
  gap: 1.25rem;
}

/* Vue で使用中・Filament に無い whitespace（メールプレビュー本文の改行表示など） */
.whitespace-pre-wrap {
  white-space: pre-wrap;
}

/* Vue で使用中・Filament に無い余白 */
.mt-4 {
  margin-top: 1rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.pt-8 {
  padding-top: 2rem;
}
.ps-5 {
  padding-inline-start: 1.25rem;
}
.ps-6 {
  padding-inline-start: 1.5rem;
}
.pl-6 {
  padding-left: 1.5rem;
}
.space-y-5 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.25rem;
}

/* Vue で使用中・Filament に無い border / 幅 / disabled / input */
.border-gray-400 {
  --tw-border-opacity: 1;
  border-color: rgba(var(--gray-400), var(--tw-border-opacity));
}
.dark\:border-white\/20:is(.dark *) {
  border-color: hsla(0, 0%, 100%, 0.2);
}
.min-w-32 {
  min-width: 8rem;
}
.border-0 {
  border-width: 0;
}
.focus\:ring-inset:focus {
  --tw-ring-inset: inset;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

/* Vue で使用中・Filament に無い danger アラート色 */
.bg-danger-50 {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--danger-50), var(--tw-bg-opacity));
}
.border-danger-200 {
  --tw-border-opacity: 1;
  border-color: rgba(var(--danger-200), var(--tw-border-opacity));
}
.text-danger-700 {
  --tw-text-opacity: 1;
  color: rgba(var(--danger-700), var(--tw-text-opacity));
}
.dark\:bg-danger-500\/10:is(.dark *) {
  background-color: rgba(var(--danger-500), 0.1);
}
.dark\:border-danger-500\/30:is(.dark *) {
  border-color: rgba(var(--danger-500), 0.3);
}
