/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* タブナビゲーションスタイル */
.tab-link {
  padding-bottom: 1rem;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
}

.tab-active {
  border-color: #3b82f6;
  color: #3b82f6;
}

.tab-inactive {
  border-color: transparent;
  color: #6b7280;
}

.tab-inactive:hover {
  border-color: #d1d5db;
  color: #374151;
}

/* ボタン共通スタイル */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #2563eb;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background-color: #ffffff;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #f9fafb;
}

/* AIチャット タイピングカーソル */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: #6b7280;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Excel 互換月別シート v2 の表示密度切替 (issue#804 PR C) */
.excel-grid-density-compact table { font-size: 11px; }
.excel-grid-density-compact td,
.excel-grid-density-compact th { padding: 2px 4px; }
.excel-grid-density-compact input,
.excel-grid-density-compact select { font-size: 11px; padding: 1px 2px; }

.excel-grid-density-default table { font-size: 13px; }
.excel-grid-density-default td,
.excel-grid-density-default th { padding: 4px 6px; }
.excel-grid-density-default input,
.excel-grid-density-default select { font-size: 13px; padding: 2px 4px; }

.excel-grid-density-comfortable table { font-size: 14px; }
.excel-grid-density-comfortable td,
.excel-grid-density-comfortable th { padding: 6px 10px; }
.excel-grid-density-comfortable input,
.excel-grid-density-comfortable select { font-size: 14px; padding: 4px 6px; }

/* 数値セルの最小幅を密度別に確保 */
.excel-grid-density-default input[type="number"] { min-width: 5rem; }
.excel-grid-density-comfortable input[type="number"] { min-width: 6rem; }
