@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=LXGW+WenKai+TC:wght@400;700&display=swap");
:root{color-scheme:light}   /* Joe msg3317：iPhone 深色模式不要把按鈕／輸入框字改成白色（全站固定淺色） */
/* 版面丙・簡化版（Joe msg2265「字體太多、很亂」）：一種字型、黑＋磚紅兩色、少框線、拿掉裝飾小字。疊在 inkgold.css 之後。 */
:root{
  --paper:#f7f7f5; --sheet:#ffffff; --sheet2:#ffffff;
  --ink:#1f1f1f; --ink2:#555555; --ink3:#8a8a8a;
  --rule:#e6e6e3; --rule-soft:#efefec;
  --gold:#b4472f; --gold-soft:#c96a50; --gold-deep:#b4472f;
  --slate:#555555; --slate-soft:#8a8a8a;
  --sans:"PingFang TC","Noto Sans TC","Noto Sans CJK TC","Microsoft JhengHei",-apple-system,sans-serif;
  --serif:var(--sans);
}
html,body,button,input,select,textarea{font-family:var(--sans) !important}
*{letter-spacing:normal !important; text-transform:none !important; font-style:normal}
body{font-size:16px; line-height:1.6; background:var(--paper) !important; color:var(--ink)}
.wm,.pos{display:none !important}
h1,h2,h3{font-family:var(--sans) !important; font-weight:700 !important; color:var(--ink) !important}
/* ── 字級規則（Joe msg2357）：六級，全站一致 ──
   ① 頁面大標 h1 24 粗 ② 區塊標題 h2 20 粗 ③ 小標題 h3/.subh 17 粗
   ④ 內文 16 ／表格 15 ⑤ 標籤・說明 14 灰 ⑥ 頁尾 13 淡灰
   數字：主數字 32 粗、卡片數字 22 粗 */
h1{font-size:24px !important} h2{font-size:20px !important}
h3,.subh{font-size:17px !important; font-weight:700 !important; color:var(--ink) !important; margin:24px 0 8px !important}
/* 大數字：同字型、粗體 */
.num,.v,.big,.hero-fig,.r-amt{font-family:var(--sans) !important; font-weight:700 !important}
/* 小字一律至少 13px，避免一堆極小灰字 */
small,.note,.hint,.k,.lab,.sub,.kicker,.hero-label,.hero-break,label,.chip,.dept,.stat,summary,.e-nav-who,.e-role,.cat,.st,.wow,.badge,.allclear,.meta,.when,.aud,.tag,.empty,.lock,.l,.who,.bh,.warn,.statusbox,
[style*="font-size:10px"],[style*="font-size:10.5px"],[style*="font-size:11px"],[style*="font-size:11.5px"],[style*="font-size:12px"],[style*="font-size:12.5px"],[style*="font-size:13px"]{font-size:14px !important}
.k,.lab,.sub,label,.hint,.note{color:var(--ink2)}
p,li,.body{font-size:16px !important}
.big,.hero-fig{font-size:32px !important}
div.v,span.v,div.n,span.n,.cnt,.num{font-size:22px !important}
td.n,td.n *{font-size:15px !important}
footer,footer span{font-size:13px !important; color:var(--ink3) !important}
/* 框線：只留細淡線；卡片改留白＋白底 */
.cell,.cells,.card,.box,.today,.panel{border-color:var(--rule) !important; box-shadow:none !important}
hr{border-color:var(--rule)}
/* 觸控：按鈕、輸入至少 44px */
button,.btn,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select{min-height:44px; font-size:16px !important; border-radius:8px !important}
textarea{font-size:16px !important; border-radius:8px !important}
td input:not([type=checkbox]):not([type=radio]),td select{min-height:38px}
.btn.primary,button.primary,.btn[type=submit],.login-form .btn{background:var(--gold) !important; color:#fff !important; border-color:var(--gold) !important}
.e-nav-items a.here,.e-role{color:var(--gold) !important}
.e-badge{background:var(--gold) !important}
.e-top,.e-nav-items summary,.e-nav-items a{font-size:14px !important}
td{font-size:15px !important} th{font-size:14px !important; color:var(--ink2)}
.hint{line-height:1.7}
/* 手機：KPI 卡換行、寬表格區內橫捲、帳號管理卡片化 */
@media(max-width:640px){
  .cmp,.hero2{flex-wrap:wrap}
  .cmp .cell,.hero2 .cell{flex:1 1 45%; min-width:150px}
  table{display:block; max-width:100%; overflow-x:auto}
  th:first-child,td:first-child{white-space:nowrap}
  .utable{display:block; overflow:visible; white-space:normal}
  .utable thead{display:none}
  .utable tbody,.utable tr,.utable td{display:block; width:100%}
  .utable tr{border-bottom:1px solid var(--rule); padding:10px 0}
  .utable td,.utable td:first-child{border:0; padding:4px 12px; white-space:normal}
  .utable .uact{display:flex; flex-wrap:wrap; gap:6px}
  .utable .uact form{display:inline; margin:0}
  .mini{min-height:40px !important; padding:0 14px}
  .uact a.mini{display:inline-flex; align-items:center}
}
.r-rev{font-size:22px !important}
/* Joe msg2364：所有標題前面不要兩槓 */
.sec-h h2::before,h2::before{content:none !important; display:none !important}
@media(max-width:640px){ .cells .cell .v{font-size:18px !important} .cells .cell{padding-left:8px !important; padding-right:8px !important} }
.duo .v small{display:block; font-size:14px !important; font-weight:400}
.cells .cell .v small,.duo .v small{display:block; font-size:14px !important; font-weight:400; color:var(--ink2)}
.lycmp{display:grid; grid-template-columns:1fr 1fr auto; gap:8px; margin:10px 0 4px; padding:10px 12px; border:1px solid var(--rule); border-radius:8px; background:#fff}
.lycmp .k{display:block}.lycmp b{font-size:17px}
.lycmp .up{color:var(--jade)}.lycmp .dn{color:var(--rust)}
.sec-h .note,.note{color:var(--ink3) !important}
/* Joe msg2392：戰績卡數字統一兩欄 */
.kv{display:grid; grid-template-columns:repeat(3,1fr); column-gap:10px; margin-top:12px}
.kv>div{display:flex; flex-direction:column; padding:10px 0; border-top:1px solid var(--rule)}
.kv span{font-size:14px; color:var(--ink2)}
.kv b{font-size:20px; font-weight:700; color:var(--ink); white-space:nowrap}
@media(max-width:640px){.kv b{font-size:16px !important} .kv span{font-size:13px !important} .kv{column-gap:6px}}
.kv b.up,.kv b.good{color:var(--jade)} .kv b.dn,.kv b.crit{color:var(--rust)} .kv b.warn{color:var(--amber)}
/* Joe msg2418：右上角「未完成」符號 */
.e-todo{position:relative}
.e-todo>summary{list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 14px; border-radius:20px; border:1px solid var(--rule); background:#fff; color:var(--ink3); font-size:16px}
.e-todo>summary::-webkit-details-marker{display:none}
.e-todo>summary.on{background:var(--gold); border-color:var(--gold); color:#fff; font-weight:700; box-shadow:0 0 0 3px rgba(180,71,47,.18)}
.e-todo>summary b{font-size:18px}
.e-todo-panel{position:absolute; right:0; top:calc(100% + 8px); z-index:60; width:270px; background:#fff; border:1px solid var(--rule); border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.16); padding:8px}
.e-todo-h{font-size:14px; color:var(--ink2); padding:6px 10px}
.e-todo-panel a{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 10px; border-radius:8px; color:var(--ink); text-decoration:none; font-size:16px; border-top:1px solid var(--rule)}
.e-todo-panel a b{background:var(--gold); color:#fff; border-radius:12px; padding:2px 9px; font-size:14px}
.e-todo-panel a small{color:var(--rust); font-size:13px}
.e-todo-none{padding:12px 10px; color:var(--jade); font-size:15px}
/* Joe msg2427：名字後面不顯示角色（店長·自店／總經理·全權存取），職稱由帳號名稱帶 */
.e-nav-who .e-role{display:none !important}

/* Joe msg2520：登入頁「營運中心」與英文副標同寬 */
.login-card .lockup{display:inline-block;margin:0 auto 26px}
.login-card .lockup h1{letter-spacing:0;text-align:justify;text-align-last:justify;margin-bottom:6px}
.login-card .lockup .en{margin:0;white-space:nowrap}

/* Joe msg2570：每日確認＋登入待確認視窗 */
.ackbar{display:flex;align-items:center;gap:12px;margin:12px 0 4px;flex-wrap:wrap}
.ackbtn{background:var(--rust,#b3472f);color:#fff;border:0;border-radius:8px;padding:10px 22px;font-size:16px;font-weight:600;cursor:pointer}
.ackhint{font-size:13px;color:var(--ink3)}
.acked{color:var(--jade,#2f6b4f);font-weight:600;font-size:15px}
.ackmodal{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:999;display:flex;align-items:center;justify-content:center;padding:16px}
.ackmodal[hidden]{display:none}
.ackcard{background:#fff;border-radius:12px;max-width:380px;width:100%;padding:20px 20px 16px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.ackh{font-size:20px;font-weight:700;margin-bottom:12px}
.ackitem{display:flex;justify-content:space-between;align-items:center;padding:13px 4px;border-bottom:1px solid #eee;font-size:17px;color:inherit;text-decoration:none}
.ackitem span{color:var(--ink3)}
.acknote{font-size:13px;color:var(--ink3);margin:12px 0}
.acklater{margin-top:16px;width:100%;background:#f1efe9;border:0;border-radius:8px;padding:11px;font-size:15px;cursor:pointer}

/* Joe msg2744/2781：內頁標題下英文副標不放（登入頁保留） */
.mast .en{display:none !important}

/* Joe msg2797/2830：全站內容用 A 思源黑體（各裝置一致）；登入頁「營運中心」用 C 霞鶩文楷 */
:root{--sans:"Noto Sans TC",-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif !important}
html,body,button,input,select,textarea,h1,h2,h3,.num,.v,.big,.hero-fig,.r-amt{font-family:"Noto Sans TC",-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif !important}
.login-card .lockup h1{font-family:"LXGW WenKai TC","Noto Sans TC",serif !important}
