/* スタッフ用 稼働報告ページ(スマホ前提・片手で完結) */
:root {
  --navy: #1f3a5f;
  --navy-dark: #162a45;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1c2433;
  --muted: #6b7684;
  --line: #dfe4ea;
  --ok: #1e7f4f;
  --ok-bg: #e6f4ec;
  --warn: #9a3412;
  --warn-bg: #fdecdf;
  --todo: #b45309;
  --todo-bg: #fef3c7;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom);
}
.site-header {
  background: var(--navy);
  color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.brand { font-weight: 700; letter-spacing: 0.04em; }
.who { font-size: 14px; opacity: 0.9; }
main { max-width: 560px; margin: 0 auto; padding: 12px 12px 40px; }
.center { text-align: center; padding: 40px 12px; color: var(--muted); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin: 10px 0;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.06);
}
.card-title { font-weight: 700; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 14px; margin: 0; }

/* 日付 */
.date-card { display: flex; align-items: center; gap: 6px; padding: 8px; }
.date-nav {
  width: 44px; height: 56px; border: 0; background: transparent; font-size: 28px; color: var(--navy); border-radius: 10px;
}
.date-nav:disabled { opacity: 0.25; }
.date-center { flex: 1; text-align: center; position: relative; }
.date-input {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
}
.date-label { font-size: 20px; font-weight: 700; }
.date-status { font-size: 13px; color: var(--muted); }
.date-status.ok { color: var(--ok); }
.date-status.todo { color: var(--todo); }

/* 業務行 */
.entry {
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px;
  margin: 8px 0;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.06);
}
.entry-top { display: flex; gap: 6px; }
select, input[type="text"] {
  font: inherit;
  font-size: 16px; /* iOSの自動ズーム防止 */
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: var(--text);
  min-height: 44px;
}
.entry-category { flex: 1.3; }
.entry-minutes { flex: 1; }
.entry-desc { width: 100%; margin-top: 6px; }
.entry-del {
  width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-size: 20px;
}

/* ボタン */
.btn-primary, .btn-secondary, .btn-ghost {
  display: block; width: 100%; font: inherit; font-size: 17px; font-weight: 700;
  border-radius: 12px; padding: 14px; margin: 10px 0; min-height: 52px; cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; border: 0; }
.btn-primary:active { background: var(--navy-dark); }
.btn-secondary { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px dashed var(--navy); font-weight: 600; }
.btn-ghost.small { font-size: 14px; padding: 8px; min-height: 40px; width: auto; display: inline-block; }
button:disabled { opacity: 0.5; cursor: default; }

/* 合計 */
.total-card { display: flex; justify-content: space-between; align-items: baseline; }
.total-label { color: var(--muted); }
.total-value { font-size: 24px; font-weight: 700; }

/* バナー */
.banner { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 8px 0; }
.banner-warn { background: var(--warn-bg); color: var(--warn); }
.banner-ok { background: var(--ok-bg); color: var(--ok); font-weight: 700; }

/* 月の累計 */
.month-card { background: var(--navy); color: #fff; }
.month-title { font-weight: 700; margin-bottom: 8px; }
.month-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.month-grid .k { font-size: 12px; opacity: 0.8; }
.month-grid .v { font-size: 22px; font-weight: 700; }

/* 直近7日 */
.recent { list-style: none; margin: 0; padding: 0; }
.recent li + li { border-top: 1px solid var(--line); }
.recent-row {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: 0; font: inherit; padding: 10px 2px; min-height: 44px; color: var(--text); cursor: pointer;
}
.tag { font-size: 13px; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.todo { background: var(--todo-bg); color: var(--todo); }

/* LINE連携 */
.steps { padding-left: 20px; margin: 6px 0; font-size: 15px; }
.link-code {
  font-size: 34px; font-weight: 800; letter-spacing: 0.25em; text-align: center; padding: 10px;
  background: var(--bg); border-radius: 10px; margin: 8px 0; font-variant-numeric: tabular-nums;
}

/* display 指定のある要素にも hidden 属性を効かせる(確定/解除ボタンが両方見えた) */
[hidden] { display: none !important; }
