/* =====================================================================
   申請表單新外觀（2026-10-27，使用者從 A／B／C 三案選 A「精修現行」）
   只有請假、加班、補打卡三頁載入（body 上有 .f3）。效果圖與操作比對：docs/表單效果圖-1027/

   ・按鈕三種：主要＝實心藍（不加漸層與陰影）、次要＝白底細框、選項＝膠囊（選中實心藍）
   ・輸入框：白底細框（原本淡藍底，看不出哪裡能點）
   ・時間照舊可以直接打字——任意分鐘都打得出來（06:08–08:08），快捷鈕只是輔助
   ===================================================================== */
.f3 {
  --f3-pri: #2f74e3; --f3-pri-ink: #1f5fc4; --f3-pri-soft: #e8f1fe;
  --f3-ink: #0f1f40; --f3-ink2: #5f6f86; --f3-ink3: #93a1b5;
  --f3-line: #d6e2f1; --f3-tile: #f3f7fc;
}

/* ---- 卡片標題：左邊名稱、右邊一行小字（班制、剩幾小時） ---- */
.f3 .f3-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.f3 .f3-h b { font-size: 1rem; font-weight: 800; color: var(--f3-ink); }
.f3 .f3-h small { font-size: .8rem; color: var(--f3-ink2); text-align: right; }
.f3 .f3-h small a, .f3 .f3-link { color: var(--f3-pri-ink); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.f3 .f3-link { background: none; border: 0; padding: 0; margin: 0; width: auto; font-size: .8rem; box-shadow: none; }

/* ---- 主要按鈕：實心藍 ---- */
.f3 .btn-in { background: var(--f3-pri); box-shadow: none; border-radius: 14px; }
.f3 .btn-in:disabled { background: #a9c3ec; }
.f3 .btn-plain { background: #fff; border: 1.5px solid var(--f3-line); color: var(--f3-pri-ink); box-shadow: none; }

/* ---- 輸入框：白底細框 ---- */
.f3 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.f3 select, .f3 textarea { background: #fff; border: 1.5px solid var(--f3-line); border-radius: 12px; }
.f3 input:focus, .f3 select:focus, .f3 textarea:focus { border-color: var(--f3-pri); box-shadow: 0 0 0 3px rgba(47, 116, 227, .16); }

/* ---- 日期鈕：一行「10月28日（三） 明天 ▾」，年份收起來 ---- */
.f3 .dpick { background: #fff; border: 1.5px solid var(--f3-line); border-radius: 12px; min-height: 50px; }
.f3 .dpick .ymd { font-size: 1.12rem; font-weight: 700; color: var(--f3-ink); }
.f3 .dpick .rel { background: var(--f3-pri-soft); color: var(--f3-pri-ink); font-weight: 700; }
.f3 .dpick .yr { display: none; }
.f3 .dpick .ic { margin-left: auto; }
.f3 .dpick-wrap:focus-within .dpick { border-color: var(--f3-pri); }

/* ---- 時間：時、分兩格白底；上午／下午是一組分段鈕 ---- */
.f3 .tpick { gap: 6px; flex-wrap: nowrap; }
.f3 .tpick .num { background: #fff; border: 1.5px solid var(--f3-line); border-radius: 12px; width: 56px; height: 50px; font-size: 1.3rem; font-weight: 800; color: var(--f3-ink); }
.f3 .tpick .num:focus { border-color: var(--f3-pri); background: #fff; box-shadow: 0 0 0 3px rgba(47, 116, 227, .16); }
.f3 .tpick .colon { color: var(--f3-ink3); }
.f3 .tpick .ap { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-left: 8px; padding: 3px; border-radius: 12px; background: var(--f3-tile); }
.f3 .tpick .ap button {
  height: 42px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--f3-ink2);
  font-size: .92rem; font-weight: 700; box-shadow: none;
}
.f3 .tpick .ap button.on { background: #fff; color: var(--f3-pri-ink); border: 0; box-shadow: 0 1px 3px rgba(20, 50, 110, .16); }
.f3 .tpick.h24 .num { width: 3em; height: 44px; }

/* ---- 分段鈕（全天／上午／下午／自訂、提前申報／加班結束後） ---- */
.f3 .f3-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; margin: 0 0 12px; border-radius: 13px; background: var(--f3-tile); }
.f3 .f3-seg button {
  height: 42px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--f3-ink2);
  font-size: .92rem; font-weight: 700; box-shadow: none; display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.f3 .f3-seg button small { font-size: .7rem; font-weight: 500; color: var(--f3-ink3); }
.f3 .f3-seg button.on { background: #fff; color: var(--f3-pri-ink); box-shadow: 0 1px 3px rgba(20, 50, 110, .16); }
.f3 .lv-shift.ot-mode button { height: 48px; }

/* ---- 選項膠囊（假別、工程、原因、+1 小時…） ---- */
.f3 .f3-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.f3 .f3-chips button, .f3 .f3-chip {
  position: relative; display: inline-flex; align-items: center; gap: 4px; width: auto; height: 40px; margin: 0; padding: 0 13px;
  border-radius: 999px; border: 1.5px solid var(--f3-line); background: #fff; color: var(--f3-ink);
  font-size: .92rem; font-weight: 700; box-shadow: none; cursor: pointer; white-space: nowrap;
}
.f3 .f3-chips button.on, .f3 .f3-chip.on { background: var(--f3-pri); border-color: var(--f3-pri); color: #fff; }
.f3 .f3-chips button:active { transform: scale(.97); }
.f3 .f3-chips small { font-weight: 500; font-size: .74rem; opacity: .8; }
/* 「更多 ›」：透明的原生選單疊在膠囊上，點了直接開手機的選單（iOS 叫不出隱藏的 select，只能真的點到它） */
.f3 .f3-more select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; padding: 0; border: 0; cursor: pointer; font-size: 16px; }

/* ---- 小字與提示 ---- */
.f3 .f3-note { margin: 8px 0 0; font-size: .8rem; line-height: 1.55; color: var(--f3-ink2); }
.f3 .f3-has { margin: 6px 0 0; padding: 7px 10px; border-radius: 10px; background: #fff3e3; color: #9a5200; font-size: .82rem; line-height: 1.5; }
.f3 .f3-has[hidden] { display: none; }
.f3 .f3-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--f3-pri-soft); color: var(--f3-pri-ink); font-size: .72rem; font-weight: 700; vertical-align: 2px; }
.f3 .f3-sub { margin: 14px 0 6px; font-size: .8rem; font-weight: 700; color: var(--f3-ink2); }
.f3 .f3-sub:first-child { margin-top: 0; }

/* ---- 請假：時間卡 ---- */
.f3 .lv-quick.f3-seg { grid-template-columns: none; }
.f3 .f3-dt { background: none; border: 0; padding: 0; margin: 0; }
.f3 .f3-dt .h { margin: 12px 0 6px; font-size: .8rem; font-weight: 700; color: var(--f3-ink2); }
.f3 .f3-dt .f3-dh { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.f3 .lv-card:not(.multi) .edbox { display: none; }
.f3 .p-leave .durbox, .f3.p-leave .durbox { margin-top: 12px; background: var(--f3-tile); }
.f3 .seg { border-radius: 14px; }
.f3 [hidden] { display: none !important; }
