/* AppSheet風カスタムスタイル */
.nav-tab {
  color: #cfe2ff;
}
.nav-tab.active {
  color: white;
  border-bottom-color: white !important;
  background-color: rgba(255,255,255,0.08);
}

/* AppSheetライクなカード */
.as-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb;
}
.as-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ステータスバッジ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.status-見込     { background:#fef3c7; color:#92400e; }
.status-面談予定 { background:#dbeafe; color:#1e40af; }
.status-契約     { background:#dcfce7; color:#166534; }
.status-納品     { background:#e0e7ff; color:#3730a3; }
.status-完了     { background:#f3f4f6; color:#374151; }
.status-失注     { background:#fee2e2; color:#991b1b; }

/* カテゴリバッジ */
.cat-badge {
  display: inline-flex;
  align-items:center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background:#eef2ff;
  color:#4338ca;
}

/* テーブル */
.as-table th {
  background:#f8fafc;
  font-weight: 600;
  font-size: 12px;
  color:#475569;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}
.as-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color:#1e293b;
}
.as-table tbody tr:hover {
  background:#f8fafc;
  cursor: pointer;
}

/* フォーム */
.field-label {
  display:block;
  font-size: 12px;
  font-weight: 600;
  color:#475569;
  margin-bottom: 4px;
}
.field-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  background: white;
}
.field-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.field-section {
  border-left: 3px solid #2563eb;
  padding-left: 10px;
  margin: 16px 0 8px;
  font-weight: 700;
  color:#1e293b;
  font-size: 13px;
}

/* モーダル */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 50;
  display:flex; align-items:flex-start; justify-content:center;
  overflow-y: auto;
  padding: 24px 16px;
}
.modal-card {
  background: white; border-radius: 10px;
  width: 100%; max-width: 1000px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

/* スクロールバー */
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:#94a3b8; }
