/* =====================================================================
   だれくるオフィス: 画面固有のスタイル
   共通部品（変数・カード・ボタン・ナビ・フォーム）は libe/css/theme.css にある。
   ===================================================================== */

/* ---------- トップ: サービスカード ---------- */
body.office .of-service {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}
body.office .of-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rc-primary-soft);
  color: var(--rc-primary);
  margin-bottom: 0.75rem;
}
body.office .of-service-icon svg {
  width: 22px;
  height: 22px;
}
body.office .of-service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rc-primary);
  margin-bottom: 0.3rem;
}
body.office .of-service-text {
  color: var(--rc-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
body.office .of-service-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- 月間カレンダー ---------- */
body.office .of-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
body.office .of-month-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rc-primary);
}
body.office .of-calendar {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
  margin-bottom: 0.5rem;
}
body.office .of-calendar th {
  padding: 0.3rem 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rc-muted);
  background: transparent;
}
body.office .of-calendar th.of-sat {
  color: #3b6fd1;
}
body.office .of-calendar th.of-sun {
  color: var(--rc-accent);
}
body.office .of-calendar td {
  padding: 0;
  height: 64px;
  vertical-align: top;
  border-radius: var(--rc-radius-sm);
  background: var(--rc-bg);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
body.office .of-calendar td.of-other-month {
  background: transparent;
  color: #c3c9d6;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
}
body.office .of-calendar td a {
  display: block;
  height: 100%;
  min-height: 62px;
  padding: 0.4rem 0.5rem;
  text-decoration: none;
  color: var(--rc-text);
  font-weight: 600;
  font-size: 0.95rem;
}
body.office .of-calendar td.of-sat a {
  color: #3b6fd1;
}
body.office .of-calendar td.of-sun a {
  color: var(--rc-accent);
}
body.office .of-calendar td:not(.of-other-month):hover {
  background: var(--rc-primary-soft);
  border-color: var(--rc-primary-line);
}
body.office .of-calendar td.of-today {
  background: #fff;
  border-color: var(--rc-primary);
  box-shadow: 0 0 0 1px var(--rc-primary) inset;
}
body.office .of-calendar td.of-today a::after {
  content: "今日";
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: var(--rc-primary);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  vertical-align: middle;
}
@media (max-width: 575.98px) {
  body.office .of-calendar {
    border-spacing: 2px;
  }
  body.office .of-calendar td {
    height: 52px;
  }
  body.office .of-calendar td a {
    min-height: 50px;
    padding: 0.3rem 0.35rem;
    font-size: 0.85rem;
  }
  body.office .of-calendar td.of-today a::after {
    display: block;
    margin: 0.1rem 0 0;
    width: max-content;
  }
}
body.office .of-month-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
body.office .of-month-links .btn svg,
body.office .of-month-links .of-link-disabled svg {
  width: 16px;
  height: 16px;
  margin-right: 0.35rem;
  vertical-align: -3px;
}
body.office .of-link-disabled {
  display: inline-flex;
  align-items: center;
  color: var(--rc-muted);
  font-size: 0.9rem;
  padding: 0.45rem 0.6rem;
}

/* ---------- 日別訪問者 ---------- */
body.office .of-day-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
body.office .of-day-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rc-primary);
}
body.office .of-office-name {
  color: var(--rc-muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.25rem;
}
body.office .of-slot {
  margin-bottom: 1rem;
}
body.office .of-slot .rc-card-header {
  margin-bottom: 0.75rem;
}
body.office .of-slot-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
body.office .of-slot-empty {
  color: var(--rc-muted);
  font-size: 0.88rem;
}
body.office .of-go-btn svg {
  width: 15px;
  height: 15px;
  margin-right: 0.35rem;
  vertical-align: -2px;
}
body.office .btn.of-going {
  background: var(--rc-success-soft);
  border-color: var(--rc-success);
  color: #1d6d49;
}
body.office .btn.of-going:hover,
body.office .btn.of-going:focus {
  background: #d7efe2;
  border-color: var(--rc-success);
  color: #1d6d49;
}

/* ---------- ログイン / ユーザー検索 ---------- */
body.office .of-auth-card {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
body.office .of-user-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
}
body.office .of-user-hero img,
body.office .of-avatar-lg {
  width: 96px;
  height: 96px;
  min-width: 96px;
  max-width: 96px;
  max-height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--rc-primary-soft);
}
body.office .of-user-hero-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rc-primary);
}
body.office .of-copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
body.office .of-copy-row .form-control {
  font-family: monospace;
}
body.office .of-copied {
  color: var(--rc-success);
  font-size: 0.85rem;
  font-weight: 700;
}
body.office .of-notes {
  color: var(--rc-muted);
  font-size: 0.85rem;
}
body.office .of-notes a {
  color: var(--rc-primary);
  font-weight: 600;
}

/* ---------- テーブル内のユーザー ---------- */
body.office .rc-table .rc-user-chip {
  margin: 0;
}

/* ---------- 非公式バッジ（フッター） ---------- */
body.office .of-unofficial {
  display: inline-block;
  background: #fdecee;
  color: var(--rc-accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
