/* Light, framework-free styling. System fonts only (no web-font download) so it
   loads fast on old phones. Shared by the employee page and the admin panel. */
:root {
  --green: #0a7d4b;
  --green-d: #086a40;
  --red: #c0392b;
  --ink: #1c2128;
  --muted: #6b7280;
  --line: #e2e6ea;
  --bg: #f4f6f8;
  --card: #ffffff;
  /* === 品牌綠 #3CB371（後台用，作用域 .admin；女工端維持原 --green） === */
  --brand: #3CB371;
  --brand-2: #57CC93;
  --brand-d: #2E9A62;
  --brand-soft: #E9F7EF;
  --focus-ring: rgba(60,179,113,.18);
  --cta-shadow: 0 4px 14px rgba(60,179,113,.30);
  --cta-shadow-hover: 0 6px 18px rgba(60,179,113,.42);
  --ok: #0a7d4b;  --ok-soft: #e6f6ee;
  --warn: #9a6700; --warn-soft: #fff4e5;
  --info: #1a5fb4; --info-soft: #e8f0fe;
  --sh-1: 0 1px 3px rgba(16,24,40,.06);
  --sh-2: 0 4px 16px rgba(16,24,40,.08);
  --sh-3: 0 12px 32px rgba(16,24,40,.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  line-height: 1.4;
}
.wrap { max-width: 480px; margin: 0 auto; padding: 12px 14px 28px; }
.admin .wrap { max-width: 1280px; }
.iconbtn { border: none; background: none; cursor: pointer; font-size: 1.05rem; padding: 2px 4px; }

.top { display: flex; align-items: center; gap: 8px; padding: 6px 2px 12px; }
.top h1 { font-size: 1.25rem; margin: 0; }
.spacer { flex: 1; }
.lang-btn, .link-btn {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font-size: .85rem; cursor: pointer;
}
.link-btn { border: none; text-decoration: underline; padding: 4px 6px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin: 12px 0;
}
.card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.hint { color: var(--muted); font-size: .85rem; margin: -4px 0 12px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
input, select {
  width: 100%; padding: 12px; font-size: 1rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--green); border-color: var(--green); }

.big-btn {
  display: block; width: 100%; border: none; border-radius: 14px;
  padding: 18px; font-size: 1.15rem; font-weight: 700; color: #fff;
  cursor: pointer; margin: 10px 0; -webkit-tap-highlight-color: transparent;
}
.big-btn.sm { padding: 14px; font-size: 1rem; }
.big-btn.primary { background: var(--green); }
.big-btn.enter { background: var(--green); }
.big-btn.leave { background: #34516b; }
.big-btn:active { transform: translateY(1px); }
.big-btn:disabled { opacity: .45; cursor: default; }

.hello { display: flex; align-items: center; gap: 8px; margin: 4px 2px 10px; }
.who { font-size: 1.05rem; font-weight: 600; flex: 1; }

.clock-card {
  background: var(--green); color: #fff; border-radius: 16px;
  padding: 20px; text-align: center; margin-bottom: 14px;
}
.clock { font-size: 3rem; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.clock-date { opacity: .9; margin-top: 4px; text-transform: capitalize; }

.status-row { display: flex; gap: 10px; }
.status-row > * { flex: 1; }
.status-pill {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; text-align: center;
}
.status-label { display: block; font-size: .78rem; color: var(--muted); }
.status-val { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.proxy { margin-top: 18px; border-style: dashed; }
.rc-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.rc-item:first-child { border-top: none; }
.rc-name { flex: 1; font-size: .92rem; }
.rc-acts { display: flex; gap: 6px; flex-shrink: 0; }
.big-need { font-size: 2.1rem; font-weight: 800; color: var(--green); margin: 6px 0 2px; }
.inv-row { display: flex; align-items: center; gap: 8px; padding: 12px 8px; border-top: 1px solid var(--line); }
.inv-row:first-child { border-top: none; }
.inv-row.ok { background: #e6f6ee; }
.inv-row.abn { background: #fdecea; }
.inv-info { flex: 1; font-size: 1.05rem; line-height: 1.6; }
.inv-info b { font-size: 1.12rem; }
.inv-code { font-size: 1.12rem; }
.inv-china { margin: 1px 0 3px; }
.btn.orange { background: #e8841a; border-color: #e8841a; color: #fff; }
.od-row { display: block; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.od-row input { width: auto; margin-right: 6px; transform: scale(1.2); }
.inv-btns { display: flex; gap: 6px; flex-shrink: 0; }
.inv-btns .btn.mini { padding: 10px 12px; font-size: .98rem; border-radius: 9px; }
#invSearch { font-size: 1.15rem; padding: 14px; }
#invCurrent .tally-head { font-size: 1.02rem; }
#curTallyN { font-size: 1.2rem; padding: 14px; }
#curTallyAdd { font-size: 1.08rem; padding: 14px 16px; }
#invCurrent .field label { font-size: 1rem; }
#curFound { font-size: 1.2rem; padding: 14px; }
.tally-chip { font-size: 1rem; padding: 5px 8px 5px 12px; }
.tally-chip button { width: 22px; height: 22px; font-size: .8rem; }

/* leave list */
.lv-item { border-top: 1px solid var(--line); padding: 9px 0; font-size: .9rem; }
.lv-item:first-child { border-top: none; }
.lv-st { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; margin-left: 4px; }
.lv-pending { background: #fff4e0; color: #9a6700; }
.lv-approved { background: #e6f6ee; color: var(--green-d); }
.lv-rejected { background: #fdecea; color: var(--red); }
.lv-cancelled { background: #eef1f4; color: var(--muted); }

.msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
.msg.ok { background: #e6f6ee; color: var(--green-d); }
.msg.err { background: #fdecea; color: var(--red); }

.foot { text-align: center; margin-top: 18px; }
.dev-note { color: var(--muted); font-size: .78rem; }

/* ===================== admin ===================== */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.tab {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: .9rem;
}
.tab.active { background: var(--green); color: #fff; border-color: var(--green); }

/* two-level admin nav */
.groupbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.grp { position: relative; flex: 1 1 auto; min-width: 84px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 10px; cursor: pointer; font-size: 1.02rem; font-weight: 600; text-align: center; }
.grp.active { background: var(--green); color: #fff; border-color: var(--green); }
.grp .badge { position: absolute; top: 4px; right: 6px; }
.subbar { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.subtab { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .92rem; }
.subtab.active { background: #e6f6ee; color: var(--green-d); border-color: var(--green); font-weight: 600; }
.rangelbl { font-size: .82rem; color: var(--muted); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input, .toolbar select { width: auto; flex: 0 1 auto; }
.btn {
  border: 1px solid var(--green); background: var(--green); color: #fff;
  border-radius: 10px; padding: 10px 16px; cursor: pointer; font-size: .92rem; font-weight: 600;
}
.btn.ghost { background: #fff; color: var(--green); }
.btn.danger { background: #fff; color: #d4304a; border-color: #e6b3b3; }
.btn.danger:hover { background: #fdecec; }
.btn.mini { padding: 5px 10px; font-size: .82rem; border-radius: 8px; }
.btn:disabled { opacity: .5; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: .9rem; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #f0f3f5; font-weight: 600; font-size: .82rem; color: #44505c; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.tag.warn { background: #fdecea; color: var(--red); }
.tag.info { background: #e8f0fe; color: #1a5fb4; }
.tag.muted { background: #eef1f4; color: var(--muted); }
.tag.ok { background: #e6f6ee; color: var(--green-d); }
.tag.danger { background: #fde2e1; color: #b3261e; }
.tag.pending { background: #fff4e5; color: #9a6700; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 今日總覽 cards */
.home-cards { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.home-card { flex: 1 1 92px; min-width: 92px; background: var(--card, #fff); border: 1px solid #e3e7ec; border-radius: 12px; padding: 12px 10px; text-align: center; }
.home-card .hc-n { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.home-card .hc-l { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.home-card.ok { border-color: #bfe6cf; }
.home-card.warn { border-color: #f4d27a; background: #fffbf2; }
.home-card.pending { border-color: #f4d27a; background: #fffbf2; }
.home-card.danger { border-color: #f3b4af; background: #fff6f5; }
.home-card.info { border-color: #b9d2f5; }
/* 數字卡可點：點開看名單 */
.home-card.clickable { cursor: pointer; transition: box-shadow .12s, transform .05s; }
.home-card.clickable:active { transform: scale(.97); }
.home-card.sel { outline: 2px solid var(--green); outline-offset: -1px; }

/* 通知 / avisos */
.badge { display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--red, #d11); color: #fff; font-size: .68rem; font-weight: 700; line-height: 16px; text-align: center; }
.notif-item { border: 1px solid #e3e7ec; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.notif-item.unread { border-color: #0a7d4b; background: #f3fbf6; }
.notif-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: .92rem; }
.notif-time { color: var(--muted); font-weight: 400; font-size: .76rem; white-space: nowrap; }
.notif-body { margin-top: 3px; font-size: .86rem; color: #333; }

/* confirmar ingreso */
.card.onboard { border: 2px solid #0a7d4b; background: #f3fbf6; }
.onboard-text { font-size: .9rem; color: #333; margin: 6px 0 10px; }

/* employee tab bar + larger, cleaner typography */
.etabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 5px; margin: 4px 0 16px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.etab { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; border: none; background: none; color: var(--muted); padding: 9px 2px; border-radius: 10px; font-size: .76rem; cursor: pointer; }
.etab .ei { font-size: 1.35rem; line-height: 1; }
.etab.active { background: #e6f6ee; color: var(--green-d); font-weight: 700; }
.etab .badge { position: absolute; top: 2px; right: calc(50% - 22px); }
.pane-title { font-size: 1.25rem; margin: 2px 0 16px; }
.sub { font-size: 1.05rem; margin: 20px 0 10px; }
.who { font-size: 1.15rem; font-weight: 600; margin: 2px 0 14px; }
.etabpane .field label { font-size: 1rem; }
.etabpane .field input, .etabpane .field select { font-size: 1.05rem; padding: 13px; }
.status-row { display: flex; gap: 10px; margin: 6px 0 14px; }
.status-pill { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.status-label { display: block; font-size: .9rem; color: var(--muted); }
.status-val { font-size: 1.5rem; font-weight: 700; }
.big-btn { font-size: 1.18rem; padding: 18px; }

/* 盤點小記 tally */
.tally-box { border: 1px dashed var(--green); background: #f3fbf6; border-radius: 10px; padding: 10px; margin-top: 10px; }
/* 盤點貨號卡：整張依狀態變色（正確=綠、異常=紅），一眼看出已核對。
   區塊不用虛線框，改「小灰標題＋留白」分段（老闆嫌虛線+粗黑太亂）。 */
#invCurrent.st-ok { background: #e6f6ee; border: 2px solid #2E9A62; }
#invCurrent.st-abn { background: #fdecea; border: 2px solid #d4304a; }
.cur-state { display: inline-block; border-radius: 999px; padding: 7px 16px; font-weight: 800; font-size: 1.05rem; margin-left: 10px; vertical-align: 6px; }
.cur-state.ok { background: #2E9A62; color: #fff; }
.cur-state.abn { background: #d4304a; color: #fff; }
.cur-state.pend { background: #eef1f4; color: #6b7280; }
.inv-sec { margin-top: 16px; }
.inv-lbl { font-size: .88rem; font-weight: 700; color: #6b7280; margin-bottom: 7px; }
.tally-big { font-size: 1.45rem; font-weight: 800; color: #b45309; margin: 2px 0 4px; }
#invCurrent .row2 .btn { white-space: nowrap; padding-left: 18px; padding-right: 18px; }
/* ② 大鈕改扁平純色，跟 ①③ 區塊同語言（不要漸層大陰影自成一格） */
.admin #curOk { background: var(--brand); box-shadow: none; border-radius: 12px; padding: 15px; font-size: 1.05rem; }
.admin #curOk:active { transform: translateY(1px); }
.tally-head { font-size: .9rem; margin-bottom: 6px; }
.tally-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tally-chip { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px 3px 10px; font-weight: 600; font-size: .9rem; }
.tally-chip button { border: none; background: #eee; color: #555; border-radius: 999px; width: 18px; height: 18px; line-height: 1; cursor: pointer; font-size: .7rem; }

/* modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: none; align-items: flex-start; justify-content: center; padding: 20px; z-index: 50;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 460px;
  max-height: 90vh; overflow: auto; padding: 18px;
}
.modal h3 { margin: 0 0 14px; }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* 官網管理 */
.wp-thumb { object-fit: cover; border-radius: 8px; display: inline-block; vertical-align: middle; background: #f0f0f0; }
.wp-noimg { display: inline-flex; align-items: center; justify-content: center; color: #aaa; font-size: .8rem; border: 1px dashed var(--line); }

/* 倉庫上架 任務列 */
.wu-del { background:#fff; border:1px solid #e7c3c3; color:#d4304a; width:30px; height:30px; border-radius:8px; cursor:pointer; font-size:13px; line-height:1; transition:background .15s; }
.wu-del:hover { background:#fdecec; }
.wu-in { padding:7px 9px; border:1px solid #dcdcdc; border-radius:8px; font-size:.9rem; }
.wu-in:focus { outline:none; border-color:#16a34a; }
#wuRows table td { padding:8px 10px; vertical-align:middle; }

/* ===== 後台左側選單 ===== */
.adminlayout { display: flex; gap: 18px; align-items: flex-start; }
.sidenav { flex: 0 0 196px; position: sticky; top: 12px; display: flex; flex-direction: column; gap: 3px; background: var(--card,#fff); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.panes { flex: 1; min-width: 0; }
.snav-item { display: block; width: 100%; text-align: left; padding: 9px 12px; border: none; background: transparent; border-radius: 9px; font-size: .95rem; color: #374151; cursor: pointer; font-family: inherit; }
.snav-item:hover { background: #f1f3f5; }
.snav-item.on { background: var(--green); color: #fff; font-weight: 700; }
.snav-solo { font-weight: 700; }
.snav-group { margin-top: 8px; }
.snav-head { font-size: .7rem; letter-spacing: .5px; color: #9ca3af; font-weight: 800; padding: 6px 12px 2px; text-transform: uppercase; }
.snav-group .snav-item { padding-left: 18px; }
@media (max-width: 720px) {
  /* 直排時 align-items:flex-start 會讓內容縮成 fit-content（盤點變窄、寬表撐爆頁面）
     → 改 stretch + 強制 .panes 滿寬 */
  .adminlayout { flex-direction: column; gap: 10px; align-items: stretch; }
  .panes { width: 100%; }
  /* 手機：側欄整個收起來，改用「目前頁名 ▾」按鈕開蓋版選單（見 .nav-trigger / .navsheet） */
  .sidenav { display: none; }
}

.wh-row { display:flex; align-items:center; gap:8px; padding:6px 4px; border-bottom:1px solid #f1f1f1; cursor:pointer; font-size:.92rem; }

/* 修正：核取方塊/選項鈕不要被全域 width:100% 撐滿；表格內下拉自適應 */
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; margin: 0; vertical-align: middle; }
.inv-row select, table select, #wuRows select { width: auto; }
.wh-row { text-align: left; }

/* ===== 家事：排任務 行事曆 ===== */
.hc-layout { display: flex; gap: 14px; align-items: flex-start; }
.hc-side { flex: 0 0 200px; display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.hc-chip { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: .86rem; cursor: grab; background: #fafafa; }
.hc-chip:active { cursor: grabbing; }
.hc-board { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hc-lane { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 10px; }
.hc-laneh { font-weight: 800; font-size: .85rem; color: #6b7280; margin-bottom: 6px; }
.hc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.hc-day { border: 1px solid var(--line); border-radius: 12px; background: #fff; min-height: 90px; display: flex; flex-direction: column; }
.hc-dayh { text-align: center; font-weight: 800; font-size: .82rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hc-drop { padding: 6px; display: flex; flex-direction: column; gap: 5px; min-height: 40px; flex: 1; }
.hc-drop.hc-over { background: #eafaf0; outline: 2px dashed var(--green); border-radius: 8px; }
.hc-ph { color: #c0c0c0; font-size: .78rem; }
.hc-task { display: flex; align-items: center; gap: 5px; background: #eef7f1; border: 1px solid #cfe9da; border-radius: 8px; padding: 4px 6px; font-size: .8rem; }
.hc-task > span { flex: 1; min-width: 0; }
.hc-2x { background: #fff; border: 1px solid var(--green); color: var(--green); border-radius: 6px; font-size: .68rem; padding: 1px 5px; cursor: pointer; }
.hc-x { background: none; border: none; color: #d4304a; cursor: pointer; font-size: 1rem; line-height: 1; }
@media (max-width: 760px) { .hc-layout { flex-direction: column; } .hc-side { flex: none; width: 100%; max-height: none; flex-direction: row; flex-wrap: wrap; } .hc-week { grid-template-columns: repeat(2, 1fr); } }

.hc-rec { font-size:.7rem; padding:1px 4px; border:1px solid var(--line); border-radius:6px; max-width:78px; }

/* ===== 排任務 行事曆 v2（放大、日期、已排變灰） ===== */
.hc-side { flex: 0 0 190px; }
.hc-week { gap: 10px; }
.hc-day { min-height: 150px; }
.hc-dayh { font-size: .9rem; }
.hc-task { flex-direction: column; align-items: stretch; gap: 4px; }
.hc-tname { font-size: .82rem; line-height: 1.3; }
.hc-tctl { display: flex; align-items: center; gap: 5px; }
.hc-tctl .hc-rec { flex: 1; max-width: none; }
.hc-today { outline: 2px solid var(--green); border-radius: 12px; }
.hc-today .hc-dayh { background: #e6f6ee; color: var(--green-d); }
.hc-chip.hc-used { opacity: .45; }
.hc-usedtag { display: inline-block; background: #e6f6ee; color: var(--green-d); font-size: .64rem; font-weight: 800; padding: 0 6px; border-radius: 50px; margin-right: 4px; }

/* ===== 排任務 Google風行事曆 ===== */
.hc-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.hc-label { font-size: 1rem; margin: 0 6px; }
.hc-cal { flex: 1; min-width: 0; }
.hc-grid { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.hc-hdr { display: grid; grid-template-columns: repeat(7, 1fr); background: #f7f8fa; }
.hc-hdr > div { padding: 6px; text-align: center; font-weight: 800; font-size: .8rem; color: #6b7280; border-left: 1px solid var(--line); }
.hc-hdr > div:first-child { border-left: none; }
.hc-rowweek, .hc-month { display: grid; grid-template-columns: repeat(7, 1fr); }
.hc-cell { border-left: 1px solid var(--line); border-top: 1px solid var(--line); min-height: 112px; min-width: 0; padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.hc-rowweek .hc-cell:nth-child(7n+1), .hc-month .hc-cell:nth-child(7n+1) { border-left: none; }
.hc-cell.hc-dim { background: #fafafa; }
.hc-cell.hc-dim .hc-cd { color: #c4c4c4; }
.hc-cell.hc-today { background: #eaf7f0; }
.hc-cell.hc-over { outline: 2px dashed var(--green); outline-offset: -2px; }
.hc-cd { font-size: .78rem; font-weight: 700; color: #6b7280; }
.hc-cell.hc-today .hc-cd { color: var(--green-d); }
.hc-cbody { display: flex; flex-direction: column; gap: 3px; }
.hc-task { background: #e6f6ee; border: 1px solid #cfe9da; border-radius: 7px; padding: 2px 5px; font-size: .74rem; cursor: pointer; display: flex; justify-content: space-between; gap: 4px; align-items: center; min-width: 0; }
.hc-task .hc-tn { flex: 1 1 auto; min-width: 0; }
.hc-task:hover { background: #d7efe2; }
.hc-tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-rb { color: #15803d; font-size: .62rem; flex-shrink: 0; }
@media (max-width: 760px) { .hc-cell { min-height: 72px; } .hc-rb { display: none; } }

/* 週檢視：欄位高度適中，不再需要長距離捲動 */
.hc-rowweek .hc-cell { min-height: 150px; }
.hc-cbody { overflow-y: auto; max-height: 240px; }
@media (max-width: 760px) { .hc-rowweek .hc-cell { min-height: 110px; } }

/* 完成紀錄：截止/逾期狀態 */
.hd-date { margin: 2px 0 8px; font-size: 1.05rem; font-weight: 800; }
.hd-sum { background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin-bottom: 8px; }
.hd-alert { background: #fdecee; border: 1px solid #f3b9c2; color: #b21f3a; border-radius: 10px; padding: 8px 12px; font-weight: 700; margin-bottom: 10px; }
.hd-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.hd-tag.ok { background: #e6f6ee; color: #0a7d4b; }
.hd-tag.late { background: #fff4e5; color: #b9690a; margin-left: 4px; }
.hd-tag.over { background: #fdecee; color: #c0392b; }
.hd-tag.wait { background: #eef1f4; color: #6b7280; }
.hd-rowover { background: #fff7f8; }
.badge-red { background: var(--red) !important; color: #fff; }

/* 完成紀錄：週彙總(以員工為維度) */
.hw-label { font-size: .95rem; }
.hd-chip { display: inline-block; background: #eef1f4; color: var(--ink); font-size: .8rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.hd-chip.due { background: var(--brand-soft); color: var(--brand-d); }
.hd-chip.ok { background: var(--ok-soft); color: var(--ok); }
.hd-chip.over { background: #fdecee; color: var(--red); }
.hw-emp { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-1); margin-bottom: 10px; overflow: hidden; }
.hw-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; }
.hw-name { font-size: 1.05rem; margin-right: 4px; }
.hw-toggle { margin-left: auto; }
.hw-detail { border-top: 1px solid var(--line); padding: 10px 14px; background: #fafbfc; }
.hw-dayblock { margin-bottom: 10px; }
.hw-day { font-weight: 800; font-size: .85rem; color: var(--ink-2, #44505c); margin: 4px 0; }
.hw-item { display: flex; align-items: center; gap: 8px; padding: 5px 0 5px 10px; border-top: 1px solid #eef0f3; }
.hw-item:first-of-type { border-top: none; }
.hw-it-name { flex: 1; min-width: 0; }
.hw-it-st { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* 女工端任務卡 */
.tarea { display: flex; flex-direction: column; gap: 8px; }
.tarea-done { opacity: .7; }
.tarea-ok { color: var(--green); font-weight: 700; }
.tarea-over { border: 1px solid #f3b9c2; background: #fff7f8; }
.tarea-vtag { display: inline-block; background: #fdecee; color: #c0392b; font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.tar-head { margin: 2px 0 12px; }
.tar-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: .98rem; margin-bottom: 6px; }
.tar-bar { height: 10px; background: #e8edf0; border-radius: 999px; overflow: hidden; }
.tar-fill { height: 100%; background: var(--green); border-radius: 999px; transition: width .35s ease; }
.tarea-rest { text-align: center; font-size: 2.4rem; color: var(--green); padding: 36px 12px; }
.tarea-rest div { font-size: 1.2rem; font-weight: 800; margin-top: 6px; }
.tarea-rest .hint { font-size: .9rem; font-weight: 400; }

/* 員工端 Depósito */
.dep-h { margin: 18px 0 8px; font-size: 1rem; }
.dep-btns { display: flex; flex-direction: column; gap: 0; }
.dep-row { cursor: pointer; }
.dep-row:active { transform: scale(.99); }
.dep-line { padding: 12px 14px; }
.dep-recv-in { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dep-recv-in input[type=number] { width: 110px; font-size: 1.1rem; font-weight: 700; text-align: center; }
.dep-tail { display: flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); }
.dep-tail input { width: auto; }
.dep-res { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; cursor: pointer; font-family: inherit; font-size: .92rem; }
.dep-res:active { background: #eef6f1; }
.dep-res.dep-new { border-style: dashed; color: var(--green); font-weight: 700; }
.dep-del { color: #c0392b; }
.dep-ck { margin-top: 10px; font-size: 1rem; }
.dep-ck.sel { border: 1px solid var(--green); background: #f3fbf6; }
.dep-note { background: #fff8e6; border: 1px dashed #e8c97a; border-radius: 8px; padding: 5px 9px; font-size: .82rem; margin-top: 6px; white-space: pre-wrap; }
.rc-okbtn, .rc-badbtn { width: 42px; height: 42px; border-radius: 10px; font-size: 1.15rem; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.rc-okbtn { border: 2px solid #0a7d4b; background: #fff; color: #0a7d4b; }
.rc-badbtn { border: 2px solid #c0392b; background: #fff; color: #c0392b; }
.rc-good { border: 2px solid #0a7d4b; background: #f3fbf6; }
.rc-good .rc-okbtn { background: #0a7d4b; color: #fff; }
.rc-bad { border: 2px solid #c0392b; background: #fff6f5; }
.rc-bad .rc-badbtn { background: #c0392b; color: #fff; }
.dep-ck.ok { border: 1px solid #bfe6cf; background: #f3fbf6; }
.dep-ck.part { border: 1px solid #f4d27a; background: #fffbf2; }
.dep-ck.none { border: 1px solid #f3b4af; background: #fff6f5; }
.dep-picked { opacity: .55; border: 1px solid #bfe6cf; }
.dep-loadck { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; font-size: .98rem; }
.dep-loadck input { width: 22px; height: 22px; }
/* 後台頁內藥丸 */
.pillbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pillbtn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 700; cursor: pointer; transition: all .12s; font-family: inherit; }
.pillbtn:hover { border-color: var(--brand); color: var(--brand-d); }
.pillbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.admin .pane-header { display: block; }
.admin .pane-header .ph-top { display: flex; align-items: baseline; gap: 10px; }
.alf-wh { margin: 16px 0 6px; font-size: 1rem; }
.alf-wh:first-child { margin-top: 4px; }

/* ============================================================
   SOUND 後台品牌綠改造（作用域 .admin；女工端打卡 App 不受影響）
   ============================================================ */
.admin { font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
.admin h1, .admin h2, .admin h3, .admin .snav-item, .admin .btn, .admin .home-card .hc-n { font-family: 'Nunito', 'Nunito Sans', sans-serif; }
.admin .home-card .hc-n, .admin .status-val, .admin td.num, .admin th.num { font-variant-numeric: tabular-nums; }

/* 頂部品牌帶（sticky） */
.admin .top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); box-shadow: var(--sh-1); padding: 10px 14px; margin: -12px -14px 16px; }
.admin .top h1 { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.3rem; letter-spacing: -.01em; background: linear-gradient(135deg, #2E9A62, #57CC93); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 按鈕：品牌綠漸層 + 微互動（深→亮確保白字可讀） */
.admin .btn { background: linear-gradient(135deg, var(--brand-d), var(--brand)); border-color: var(--brand-d); box-shadow: var(--cta-shadow); transition: filter .15s, box-shadow .15s, transform .05s; }
.admin .btn:hover { filter: brightness(1.05); box-shadow: var(--cta-shadow-hover); transform: translateY(-1px); }
.admin .btn:active { transform: translateY(1px); }
.admin .btn.ghost { background: #fff; color: var(--brand-d); border: 1px solid var(--brand); box-shadow: none; }
.admin .btn.ghost:hover { background: var(--brand-soft); filter: none; transform: none; }
.admin .btn.mini { box-shadow: none; }
.admin .btn.danger { background: #fff; color: #d4304a; border-color: #e6b3b3; box-shadow: none; }
.admin .btn.danger:hover { background: #fdecec; filter: none; transform: none; }
.admin .btn.orange { background: #e8841a; border-color: #e8841a; box-shadow: none; }
.admin .btn:disabled { opacity: .5; box-shadow: none; transform: none; filter: none; }
.admin .big-btn.primary, .admin .big-btn.enter { background: linear-gradient(135deg, var(--brand-d), var(--brand)); box-shadow: var(--cta-shadow); }

/* 輸入框 focus：圓角貼合品牌綠光環 */
.admin input:focus, .admin select:focus, .admin textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }

/* 卡片：補微陰影 */
.admin .card { box-shadow: var(--sh-1); }
.admin .card h2 { font-weight: 800; }

/* 表格三件套：斑馬紋 + 列 hover + 表頭加深 */
.admin table { box-shadow: var(--sh-1); }
.admin th { background: #f3f5f7; color: var(--ink); letter-spacing: .3px; }
.admin tbody tr:nth-child(even) td { background: #fafbfc; }
.admin tbody tr:hover td { background: var(--brand-soft); }

/* modal：陰影 + 遮罩模糊 + 開場動畫 */
.admin .modal { box-shadow: var(--sh-3); animation: admPop .18s cubic-bezier(.34,1.4,.64,1); }
.admin .modal-backdrop { backdrop-filter: blur(3px); }
@keyframes admPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* 側邊欄：分組分隔線 + 克制選中態（淺底+左綠條）+ hover 帶品牌味 */
.admin .sidenav { box-shadow: var(--sh-1); }
.admin .snav-item { transition: background .12s; }
.admin .snav-item:hover { background: var(--brand-soft); }
.admin .snav-item.on { background: var(--brand-soft); color: var(--brand-d); font-weight: 800; box-shadow: inset 3px 0 0 var(--brand); }
.admin .snav-group { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }

/* 儀表板：等寬 grid + 大數字 + 微陰影 */
.admin .home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 12px; }
.admin .home-card { box-shadow: var(--sh-1); }
.admin .home-card .hc-n { font-size: 1.9rem; font-weight: 800; }

/* 頁面標題列（由 activateTab 動態插入） */
.admin .pane-header { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin .pane-header h2 { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.25rem; margin: 0; }
.admin .pane-header .crumb { font-size: .8rem; color: var(--muted); }
/* ===== 後台手機版優化（≤720px，僅 .admin 範圍） ===== */
/* 手機選單：大分組藥丸直接露出（換行不橫滑），點分組浮出小藥丸 */
.mnav { display: none; }

@media (max-width: 720px) {
  /* 頂欄維持原本大小；手機只顯示 Grupo Sound（隱藏「· 員工系統」尾巴） */
  .admin .top { flex-wrap: nowrap; }
  .admin .top h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin .top .btn, .admin .top .link-btn { flex: none; white-space: nowrap; }
  .admin .t-tail { display: none; }
  .admin .top .spacer { display: none; }  /* spacer 會跟標題平分寬度害它被截斷 */
  .admin .rl-txt { display: none; }   /* 🔄 只留圖示 */

  .mnav { display: flex; flex-wrap: wrap; gap: 6px; }
  .mnav-g { position: relative; border: 1px solid #dde2df; background: #fff; color: var(--ink);
    border-radius: 999px; padding: 9px 14px; font-size: .9rem; font-weight: 700;
    font-family: inherit; cursor: pointer; }
  .mnav-g.on { background: var(--brand); border-color: var(--brand); color: #fff; }
  .mnav-g .badge { position: absolute; top: -5px; right: -3px; }
  .mnav-sub { width: 100%; display: flex; flex-wrap: wrap; gap: 6px;
    background: #fff; border-radius: 14px; padding: 9px;
    box-shadow: 0 1px 2px rgba(18,38,30,.05), 0 4px 16px rgba(18,38,30,.06); }
  .mnav-i { border: 1px solid #e4e8e5; background: #fff; color: var(--ink); border-radius: 999px;
    padding: 8px 13px; font-size: .86rem; font-family: inherit; cursor: pointer; }
  .mnav-i.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-d); font-weight: 700; }

  /* 輸入 16px：iOS 對焦不再自動放大 */
  .admin input, .admin select, .admin textarea { font-size: 16px; }

  /* 工具列：控制項加大好點、自動填滿一列 */
  .admin .toolbar { gap: 8px; }
  .admin .toolbar input, .admin .toolbar select { flex: 1 1 130px; min-height: 40px; }
  .admin .toolbar .btn { flex: 1 1 auto; min-height: 40px; }
  .admin .btn.mini { padding: 7px 12px; font-size: .85rem; }

  /* 表格：滿版橫滑、縮 padding */
  .admin .scroll { margin: 0 -14px; padding: 0 14px; }
  .admin table { font-size: .85rem; }
  .admin th, .admin td { padding: 8px 8px; }

  /* 彈窗：改底部抽屜，儲存鈕固定在底 */
  .admin .modal-backdrop { padding: 0; align-items: flex-end; }
  .admin .modal { max-width: none; border-radius: 16px 16px 0 0;
    max-height: 92vh; max-height: 92dvh;
    padding: 16px 14px calc(14px + env(safe-area-inset-bottom)); }
  .admin .modal-actions { position: sticky; bottom: 0; background: #fff;
    padding: 10px 0 2px; margin-top: 12px; border-top: 1px solid var(--line); }
  .admin .modal-actions .btn { flex: 1; min-height: 42px; }

  /* 儀表板卡片縮一點 */
  .admin .home-cards { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .admin .home-card .hc-n { font-size: 1.55rem; }
}

/* 後台全域 toast（成功訊息浮動提示） */
.adm-toast { position: fixed; right: 20px; bottom: 20px; z-index: 999; display: flex; align-items: center; gap: 9px; background: #fff; color: var(--ink); border-left: 4px solid var(--ok); border-radius: 12px; padding: 11px 16px 11px 13px; box-shadow: var(--sh-3); font-weight: 700; font-size: .9rem; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; max-width: min(360px, 80vw); }
.adm-toast.show { opacity: 1; transform: none; }
.adm-toast-ic { width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

/* 員工表單：姓名三欄 */
.erow3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .erow3 { grid-template-columns: 1fr; } }
/* 員工文件 */
.emp-docs { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 10px; }
.emp-docs h4 { font-size: 1rem; }
/* 儲存空間 */
.sto-bar { height: 14px; background: #e8edf0; border-radius: 999px; overflow: hidden; margin: 6px 0 10px; }
.sto-fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.sto-fill.warn { background: #e0a83a; }
.sto-fill.danger { background: var(--red); }
.sto-cat { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sto-cat:first-child { border-top: none; }
.sto-info { flex: 1; min-width: 0; }
.sto-cat select { width: auto; flex-shrink: 0; }

/* 首頁設定：三區塊摘要 */
.wh-summary { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.wh-chip { background: var(--brand-soft); color: var(--brand-d); border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 700; }
.wh-chip b { font-size: 1rem; }

/* 排任務：清單式指派 */
.ha-add { display: flex; gap: 8px; margin-bottom: 14px; }
.ha-add select { flex: 1; }
.ha-list { display: flex; flex-direction: column; gap: 8px; }
.ha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--sh-1); }
.ha-name { flex: 1 1 220px; min-width: 0; }
.ha-name b { font-size: 1rem; }
.ha-area { display: inline-block; margin-left: 6px; font-size: .72rem; background: var(--brand-soft); color: var(--brand-d); border-radius: 999px; padding: 1px 8px; }
.ha-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ha-ctl select { width: auto; padding: 8px 10px; }
.ha-h { margin: 20px 0 10px; font-size: 1.05rem; }
.ha-prev { display: flex; flex-direction: column; gap: 6px; }
.ha-pday { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; }
.ha-ptoday { border-color: var(--brand); background: var(--brand-soft); }
.ha-pd { flex: 0 0 100px; font-weight: 700; font-size: .9rem; }
.ha-pl { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.ha-pt { background: #eef6f1; color: #14613c; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; }
@media (max-width: 640px) { .ha-pday { flex-direction: column; gap: 4px; } .ha-pd { flex: none; } }

/* 家事合併頁：星期勾選、任務列、休息日 */
.ht-dow { display: flex; gap: 6px; flex-wrap: wrap; }
.ht-d { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 11px; font-size: .85rem; font-weight: 700; cursor: pointer; transition: all .12s; }
.ht-d:hover { border-color: var(--brand); }
.ht-d.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ht-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--sh-1); margin-bottom: 8px; }
.ht-sched { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 320px; }
.ht-sched select { width: auto; padding: 8px 10px; }
.ht-days { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.ht-days .ht-d { padding: 5px 9px; font-size: .8rem; }
.ht-every { border: 1px dashed var(--brand); background: var(--brand-soft); color: var(--brand-d); border-radius: 999px; padding: 5px 11px; font-size: .8rem; font-weight: 700; cursor: pointer; }
.ht-acts { display: flex; gap: 6px; flex-shrink: 0; }
.ht-rest { color: #b9690a; font-weight: 700; }
.ht-cnt { display: inline-block; background: var(--brand-soft); color: var(--brand-d); font-size: .76rem; font-weight: 800; padding: 1px 9px; border-radius: 999px; }
.ht-cnt.rest { background: #fff4e5; color: #b9690a; }
.ht-resttog { margin-left: auto; flex-shrink: 0; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: .76rem; cursor: pointer; }
.ht-resttog:hover { border-color: var(--brand); color: var(--brand-d); }

/* ============================================================
   2026-06 後台視覺改造（參考老闆挑的 UI）：淺灰底 + 白卡分層 +
   圓角加大 + 邊框減量 + 狀態圓點 + 縮寫頭像。僅 .admin 範圍。
   ============================================================ */
html.admin body { background: #f2f4f3; }

/* 卡片/表格：去邊框、圓角 16、極柔陰影 */
.admin .card { border: none; border-radius: 16px; box-shadow: 0 1px 2px rgba(18,38,30,.05), 0 4px 16px rgba(18,38,30,.05); }
.admin table { border-radius: 16px; box-shadow: 0 1px 2px rgba(18,38,30,.05), 0 4px 16px rgba(18,38,30,.05); }
.admin th { background: #fff; color: #8a8f98; font-size: .76rem; font-weight: 700; letter-spacing: .4px; border-bottom: 1px solid var(--line); }
.admin tbody tr:nth-child(even) td { background: transparent; }
.admin .sidenav { border: none; border-radius: 16px; box-shadow: 0 1px 2px rgba(18,38,30,.05), 0 4px 16px rgba(18,38,30,.05); }
.admin .modal { border-radius: 18px; }

/* 綠色收斂：ghost 鈕改中性灰框，綠只留給主要動作/選中態 */
.admin .btn.ghost { border: 1px solid #dde2df; color: #41514a; background: #fff; }
.admin .btn.ghost:hover { background: #f2f5f3; border-color: #c8d0cc; }

/* 狀態改「● 圓點＋文字」（取代滿底色塊） */
.admin .tag { background: none; border: none; padding: 0; border-radius: 0; font-size: .84rem; font-weight: 700; }
.admin .tag::before { content: '●'; font-size: .66em; margin-right: 4px; vertical-align: 1.5px; }
.admin .tag.ok { background: none; color: #2E9A62; }
.admin .tag.warn { background: none; color: #BA7517; }
.admin .tag.danger { background: none; color: #d4304a; }
.admin .tag.info { background: none; color: #185FA5; }
.admin .tag.muted { background: none; color: #8a8f98; }
.admin .tag.pending { background: none; color: #BA7517; }

/* 姓名縮寫頭像（每人依編號固定一色） */
.av { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; flex: none; letter-spacing: .3px; }

/* 兩行卡片列（申請/名單用）：左 icon/頭像 + 標題/小字 + 右側狀態 */
.prow { display: flex; align-items: center; gap: 11px; padding: 12px 14px; background: #fff; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(18,38,30,.04); }
.prow-card { display: block; padding: 12px 14px; background: #fff; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(18,38,30,.04); }
.prow-head { display: flex; align-items: center; gap: 11px; }
.prow-ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.prow-main { flex: 1; min-width: 0; }
.prow-t { font-weight: 700; font-size: .95rem; }
.prow-s { font-size: .8rem; color: #8a8f98; margin-top: 1px; }
.prow-r { text-align: right; flex: none; }
.prow-acts { display: flex; gap: 8px; margin-top: 10px; }
.prow-acts .btn { flex: 1; min-height: 38px; }

/* 今日總覽：問候列 + KPI 大數字 + 趨勢小字 */
.admin .greet { font-size: 1.3rem; font-weight: 800; margin: 4px 0 0; }
.admin .greet-sub { color: #8a8f98; font-size: .85rem; margin: 2px 0 12px; }
.admin .home-card { border: none; border-radius: 16px; padding: 14px 12px; box-shadow: 0 1px 2px rgba(18,38,30,.05), 0 4px 16px rgba(18,38,30,.05); }
.admin .home-card .hc-n { font-size: 2rem; }
.hc-trend { font-size: .72rem; margin-top: 2px; font-weight: 700; }
.hc-trend.up { color: #2E9A62; }
.hc-trend.down { color: #d4304a; }
.hc-trend.flat { color: #8a8f98; }
