/* 打刻の画面の見た目(ホームの打刻・勤怠確認・勤怠修正)。モック reference/mock/10-style.css の打刻の部分の写し */
/* 3段:状態と時刻/スワイプ/記録確認・月次締め。段は同じ高さに分ける */
.punch{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 16px;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:8px;max-width:520px;min-height:216px}
.p-row{display:flex;align-items:center;gap:10px;min-width:0}
.p-st{justify-content:space-between}
.punch .stw{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;min-width:0}
.punch .st{font-size:20px;font-weight:700} .punch .sub{font-size:15px;color:var(--muted);font-weight:700}
.punch .clock{font-size:28px;font-weight:600;line-height:1;flex:none}
.p-btns>.btn{flex:1 1 0;min-height:44px}
.p-done{margin:0;flex:1 1 auto;min-width:0;font-size:17px;font-weight:700;line-height:1.3;display:flex;flex-direction:column} /* 退勤したあとの今日の勤務。1回ごとに1行 */
.p-done.multi{font-size:15px;line-height:1.25}
.p-row>.btn.sm{flex:none}
/* スワイプ:つまみを右へ滑らせる。滑らせた分だけ地の色が濃くなる */
.slide{--p:0;position:relative;flex:1 1 auto;height:56px;border-radius:999px;display:flex;align-items:center;justify-content:center;user-select:none;
  background:color-mix(in srgb,var(--sc) calc(18% + var(--p) * 60%),var(--surface));border:2px solid var(--sc)}
.slide.in{--sc:var(--ok)} .slide.out{--sc:var(--accent)}
.slide-t{font-size:19px;font-weight:700;letter-spacing:.1em;color:var(--sc);padding-left:40px}
.knob{position:absolute;left:4px;top:4px;width:44px;height:44px;border-radius:50%;border:0;background:var(--sc);color:var(--surface);font-size:22px;font-weight:700;cursor:grab;touch-action:none;transition:transform .2s ease}
/* 休憩のスライドバー */
.brk-v{font-family:var(--f-num);font-size:28px;line-height:1} .brk-v small{font-size:15px;margin-left:2px}
.punch .p-row:has(.brk-range){flex-direction:column;align-items:stretch;justify-content:center;gap:2px}
.brk-range{width:100%;height:32px;accent-color:var(--accent)}
/* 目盛りの字は 0・30・60・90・120(135は書かない。2026-11-19 細野さん)。字はその値のときのつまみの中心の真下に置く
   (つまみの幅 --tw の半分ずつ内側を、0〜135分に割り当てる)。右端の135の所は字を置かず、端までスライダーだけが伸びる */
.brk-ticks{position:relative;height:16px;font-size:12px;color:var(--muted);--tw:20px}
.brk-ticks span{position:absolute;top:0;left:calc(var(--tw) / 2 + (100% - var(--tw)) * var(--v));transform:translateX(-50%);line-height:16px}
@media (max-width:820px){
  .punch{position:fixed;left:0;right:0;bottom:64px;z-index:24;max-width:none;min-height:0;border-radius:18px 18px 0 0;border-width:1px 0 0;box-shadow:0 -6px 20px rgb(0 0 0/.14);
    padding:10px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px))}
}

/* スマホ:カレンダーを広く見せるため、左右の余白を切り詰める。指標は上の帯に「遅延」だけ、見通しは「見通し」を押したときだけ出す */
.punch .out-t{font-size:20px;font-weight:700;display:flex;align-items:baseline;gap:6px}
.punch .out-t b{font-size:30px;line-height:1}
.punch .brk-l{font-size:15px;color:var(--muted);display:flex;align-items:baseline;gap:4px}
.kt-wrap{} /* 横に送る枠にすると、項目名の貼り付けが効かないため、枠は作らない(6列はスマホでも収まる) */
.kt-t{width:100%;border-collapse:collapse;font-size:14px}
.kt-t th{font-size:12px;color:var(--muted);font-weight:700;text-align:center;padding:6px 2px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--bg)}
.kt-t thead{position:sticky;top:0;z-index:2;background:var(--bg);box-shadow:0 -12px 0 0 var(--bg)} /* 出勤が多い月は下へ送るので、年月と項目名の行を上に貼り付ける(2026-11-19 細野さん)。中身の上の余白(12px)は影で地の色に埋め、すき間から下の行が透けないように。top を余白ぶん上げると送り始めに見出しがずれるので 0 にする(2026-11-19 細野さん) */
.kt-t tr.kt-ym th{text-align:left;padding:0 0 2px;border-bottom:0;color:var(--ink);font-weight:400;white-space:normal} /* 年月と表の項目名の間を詰める(2026-11-19 細野さん) */
.kt-t tr.kt-ym .sec-h{margin:0}
.kt-t thead tr:last-child th{box-shadow:inset 0 -1px 0 var(--line)} /* 貼り付いている間は表の線が消えるので、項目名の下の線を影で引く */
.kt-t td{text-align:center;padding:6px 2px;border-bottom:1px solid var(--line);white-space:nowrap;font-weight:400}
.kt-t td:first-child,.kt-t th:first-child{text-align:left}
.kt-t .btn.sm{min-height:32px;padding:0 8px;font-size:13px}
.kt-t tr.kt-fx td{font-weight:700} /* 修正済の行 */
.kt-t tr.kt-ng td{font-weight:700;color:var(--ng)} /* 出勤と退勤が対になっていない行 */
@media (min-width:821px){.kt-t thead{top:0;box-shadow:0 -16px 0 0 var(--bg)}} /* パソコンはドロワーの中の余白が16px */
.kt-ask-row{display:flex;gap:8px;align-items:center;justify-content:space-between;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:8px 12px}
.kt-ask{display:flex;flex-direction:column;gap:10px;border:1px solid var(--warn);background:var(--warn-soft);border-radius:12px;padding:12px}
.kt-mnav{display:flex;gap:8px;align-items:center;justify-content:space-between}
.punch .p-msg{margin:0;font-size:14px;color:var(--ng);font-weight:700}
.p-miss{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--ng)}
