* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #333;
  font-size: 15px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2c5f8a;
  color: #2c5f8a;
}

h2 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #444;
}

/* フォーム */
.form-section {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2c5f8a;
  background: #fff;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 10px;
  background: #2c5f8a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 4px;
}

.btn-primary:hover {
  background: #24507a;
}

/* フィルター */
.filter-section {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.filter-group label {
  font-size: 0.85rem;
  color: #666;
}

.filter-btn {
  padding: 5px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  color: #555;
}

.filter-btn:hover {
  border-color: #2c5f8a;
  color: #2c5f8a;
}

.filter-btn.active {
  background: #2c5f8a;
  color: #fff;
  border-color: #2c5f8a;
}

.summary {
  font-size: 0.85rem;
  color: #888;
}

/* テーブル */
.table-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

thead th {
  background: #2c5f8a;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-size: 0.85rem;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid #eee;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: #f7f9fc;
}

tbody td {
  padding: 10px 12px;
  font-size: 0.9rem;
  vertical-align: middle;
}

/* ステータスバッジ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  white-space: nowrap;
}

.badge-申請中 {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.badge-承認済み {
  background: #d4edda;
  color: #155724;
  border: 1px solid #28a745;
}

.badge-却下 {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #dc3545;
}

/* ステータス変更セレクト */
.status-select {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.82rem;
  cursor: pointer;
}

/* 削除ボタン */
.btn-delete {
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #dc3545;
  color: #dc3545;
  border-radius: 4px;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-delete:hover {
  background: #dc3545;
  color: #fff;
}

.empty-msg {
  text-align: center;
  color: #aaa;
  padding: 24px;
  font-size: 0.9rem;
}

/* 金額セル */
.amount-cell {
  text-align: right;
  white-space: nowrap;
}

/* レスポンシブ */
@media (max-width: 600px) {
  h1 {
    font-size: 1.2rem;
  }

  .filter-group {
    gap: 6px;
  }

  .filter-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
  }
}
