/* ============================================================
   common/components.css — 汎用UIパーツ
   ============================================================ */

/* ---- メニューアイテム ---- */
.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background .1s;
  gap: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--gray-50); }
a.menu-item { text-decoration: none; color: inherit; }

.menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flex-item { flex: 1; min-width: 0; }
.menu-label { flex: 1; font-size: 14px; font-weight: 500; color: var(--gray-800); }
.menu-sub { font-size: 12px; color: var(--text-sub); margin-top: 1px; }
.menu-arrow { color: var(--gray-300); }

/* ---- タグ ---- */
.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.tag-working  { background: var(--green-light);   color: var(--green-dark); }
.tag-break    { background: var(--orange-light);   color: var(--orange); }
.tag-missing  { background: var(--warning-light);  color: var(--warning); }
.tag-off      { background: var(--gray-100);       color: var(--gray-500); }
.tag-done     { background: var(--blue-light);     color: var(--blue); }
.tag-locked   { background: var(--purple-light);   color: var(--purple); }

/* ---- 詳細フィールド（日別詳細画面） ---- */
.detail-field {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.detail-field:last-child { border-bottom: none; }
.detail-label { font-size: 11px; font-weight: 700; color: var(--gray-400); margin-bottom: 4px; }
.detail-value { font-size: 14px; color: var(--gray-800); font-weight: 500; }
.detail-value.big { font-size: 18px; font-weight: 700; }

/* ---- インフォ / 警告バナー ---- */
.info-banner {
  background: var(--blue-light);
  color: var(--blue);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.warning-banner {
  background: var(--warning-light);
  color: var(--warning);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ---- アバター（イニシャルアイコン） ---- */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ---- アプリロゴ（初回同意画面など） ---- */
.app-logo {
  background: var(--green);
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 16px rgba(6,199,85,.4);
}
