/* 出差報銷 App 樣式　v5.1.0　設計者：Dr. Jungo */
:root{
  /* Layout: one phone-sized column; white cards on a cool grey ground. The blue of the AP PLASMA mark is kept for primary actions and progress only; status colours are separate. */
  --brand:#396BA8; --brand-deep:#27507F; --brand-tint:#E9F0F8;
  --ink:#172133; --ink-2:#536079; --ink-3:#8793A8;
  --ground:#F2F5F9; --card:#FFFFFF; --line:#DDE4EE; --stage:#D5DEEA;
  --ok:#1E8A5A; --ok-tint:#E4F4EB; --warn:#A8690A; --warn-tint:#FCF1DC; --bad:#BF3A2B; --bad-tint:#FBE9E6;
  --font-body:"Noto Sans TC","PingFang TC","Microsoft JhengHei","Noto Sans CJK TC",system-ui,sans-serif;
  --font-hand:"Caveat","Segoe Print","Bradley Hand",cursive;
  --font-mono:"IBM Plex Mono","Noto Sans Thai",ui-monospace,Menlo,Consolas,monospace;
  --r:14px;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--stage);color:var(--ink);font-family:var(--font-body);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
h1,h2,h3,p{margin:0}
h1,h2,h3{text-wrap:balance}
.num{font-variant-numeric:tabular-nums}

/* ---------- stage: guide + phone ---------- */
.stage{height:100%;display:flex;align-items:center;justify-content:center;gap:44px;padding:24px}
.guide{width:330px;max-height:100%;overflow:auto;display:flex;flex-direction:column;gap:16px}
.guide .g-logo{height:34px;width:auto;align-self:flex-start}
.guide h1{font-size:24px;line-height:1.25;font-weight:700}
.guide .lead{color:var(--ink-2);font-size:14px}
.guide-box{background:rgba(255,255,255,.72);border:1px solid #C4CFDE;border-radius:var(--r);padding:14px;display:flex;flex-direction:column;gap:10px}
.guide-box h2{font-size:13px;font-weight:700;color:var(--ink-2);letter-spacing:.04em}
.walk{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;counter-reset:w}
.walk li{counter-increment:w;display:grid;grid-template-columns:22px 1fr;gap:8px;font-size:13.5px;color:var(--ink)}
.walk li::before{content:counter(w);width:22px;height:22px;border-radius:50%;background:var(--brand);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;margin-top:1px}
.fine{font-size:12px;color:var(--ink-2)}

.phone{position:relative;width:392px;height:min(850px,100%);flex:none;background:var(--ground);border-radius:40px;border:10px solid #111927;box-shadow:0 30px 60px -20px rgba(17,25,39,.45);overflow:hidden;display:flex;flex-direction:column}
@media (max-width:780px){
  .stage{padding:0;gap:0}
  .guide{display:none}
  .phone{width:100%;height:100%;border:0;border-radius:0;box-shadow:none}
}

/* ---------- app chrome ---------- */
.demo-bar{flex:none;background:var(--brand-deep);color:#fff;display:flex}
.demo-bar button{flex:1;background:none;border:0;color:#fff;font-size:12.5px;padding:7px 12px;display:flex;align-items:center;justify-content:center;gap:6px}
.demo-bar b{font-weight:700}
.demo-bar svg{width:14px;height:14px}
.app-head{flex:none;background:var(--card);border-bottom:1px solid var(--line);padding:10px 14px;display:flex;align-items:center;gap:10px;min-height:54px}
.app-head .logo{height:24px;width:auto;display:block}
.app-head .ttl{font-weight:700;font-size:16px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-head .sub{font-size:12px;color:var(--ink-2);font-weight:400;display:block;line-height:1.2}
.icon-btn{width:38px;height:38px;border-radius:10px;border:0;background:none;display:grid;place-items:center;color:var(--ink);flex:none;margin-left:-8px}
.icon-btn:hover{background:var(--ground)}
svg.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.chip{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:5px 10px;font-size:12.5px;font-weight:600;border:0;white-space:nowrap}
.chip svg.i{width:15px;height:15px}
.chip.ok{background:var(--ok-tint);color:var(--ok)}
.chip.warn{background:var(--warn-tint);color:var(--warn)}
.chip.mute{background:#E7ECF3;color:var(--ink-2)}
.app-main{flex:1;overflow-y:auto;overflow-x:hidden;padding:16px;display:flex;flex-direction:column;gap:14px;-webkit-overflow-scrolling:touch}
.app-main>*{flex:none}
.app-nav{flex:none;background:var(--card);border-top:1px solid var(--line);display:flex;align-items:flex-end;justify-content:space-around;padding:6px 8px calc(8px + env(safe-area-inset-bottom,0px))}
.nav-b{flex:1;background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11.5px;color:var(--ink-2);padding:6px 0;position:relative;font-weight:500}
.nav-b.on{color:var(--brand);font-weight:700}
.nav-b .badge{position:absolute;top:0;left:calc(50% + 6px)}
.nav-fab{flex:none;width:62px;height:62px;border-radius:50%;border:4px solid var(--card);background:var(--brand);color:#fff;display:grid;place-items:center;margin-top:-26px;box-shadow:0 6px 14px -4px rgba(57,107,168,.7)}
.nav-fab svg.i{width:26px;height:26px}
.nav-fab-wrap{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11.5px;color:var(--ink-2);font-weight:500}
.badge{min-width:18px;height:18px;border-radius:99px;background:var(--bad);color:#fff;font-size:11px;font-weight:700;display:inline-grid;place-items:center;padding:0 5px}

/* ---------- building blocks ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:14px;display:flex;flex-direction:column;gap:10px}
.card.tint{background:var(--brand-tint);border-color:#C9D9EC}
.card.warn{background:var(--warn-tint);border-color:#EBD29B}
.card.bad{background:var(--bad-tint);border-color:#EDC1BA}
.card.ok{background:var(--ok-tint);border-color:#B9DFC9}
.row{display:flex;align-items:center;gap:10px}
.row.top{align-items:flex-start}
.grow{flex:1;min-width:0}
.sec{font-size:13px;font-weight:700;color:var(--ink-2);letter-spacing:.04em;margin-top:4px}
.h2{font-size:18px;font-weight:700;line-height:1.3}
.muted{color:var(--ink-2)}
.small{font-size:13px}
.tiny{font-size:12px}
.pill{display:inline-flex;align-items:center;gap:4px;border-radius:99px;padding:2px 9px;font-size:12px;font-weight:700;white-space:nowrap}
.pill.brand{background:var(--brand-tint);color:var(--brand-deep)}
.pill.ok{background:var(--ok-tint);color:var(--ok)}
.pill.warn{background:var(--warn-tint);color:var(--warn)}
.pill.bad{background:var(--bad-tint);color:var(--bad)}
.pill.mute{background:#E7ECF3;color:var(--ink-2)}
.btn{min-height:46px;border-radius:12px;border:1px solid transparent;font-weight:700;font-size:15px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-deep)}
.btn-ghost{background:var(--card);border-color:#C3CEDD;color:var(--ink)}
.btn-ghost:hover{background:var(--ground)}
.btn-warn{background:var(--card);border-color:#D9A65A;color:var(--warn)}
.btn-bad{background:var(--card);border-color:#E0A9A1;color:var(--bad)}
.btn-block{width:100%}
.btn-sm{min-height:36px;font-size:13.5px;padding:6px 12px;border-radius:10px}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.btns{display:flex;gap:10px}
.btns>.btn{flex:1}
.link{background:none;border:0;padding:0;color:var(--brand);font-weight:700;font-size:13.5px;text-decoration:underline;text-underline-offset:3px}

/* trip card */
.trip-id{font-size:12px;color:var(--ink-2);font-variant-numeric:tabular-nums;letter-spacing:.02em}
.kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:13.5px}
.kv dt{color:var(--ink-2)}
.kv dd{margin:0;min-width:0;overflow-wrap:anywhere}
.bar{height:8px;background:#E3E9F1;border-radius:99px;overflow:hidden}
.bar>i{display:block;height:100%;background:var(--brand);border-radius:99px}
.bar.over>i{background:var(--warn)}
.budget-line{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:10px;font-size:13px}
.budget-line .num{color:var(--ink-2);font-size:12.5px}

/* stepper */
.steps{display:grid;grid-template-columns:repeat(5,1fr);position:relative}
.steps::before{content:"";position:absolute;left:10%;right:10%;top:11px;height:2px;background:#D6DEE9}
.step{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11.5px;color:var(--ink-3);position:relative;font-weight:500}
.step i{width:24px;height:24px;border-radius:50%;background:var(--card);border:2px solid #C9D3E0;display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:700;color:var(--ink-3)}
.step.done i{background:var(--brand);border-color:var(--brand);color:#fff}
.step.done{color:var(--ink-2)}
.step.cur i{border-color:var(--brand);color:var(--brand);box-shadow:0 0 0 4px var(--brand-tint)}
.step.cur{color:var(--brand-deep);font-weight:700}
.step svg.i{width:14px;height:14px;stroke-width:2.6}

/* action tiles */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:12px;display:flex;flex-direction:column;gap:6px;text-align:left;align-items:flex-start}
.tile:hover{border-color:var(--brand)}
.tile .ic{width:38px;height:38px;border-radius:11px;background:var(--brand-tint);color:var(--brand-deep);display:grid;place-items:center}
.tile b{font-size:15px}
.tile small{font-size:12.5px;color:var(--ink-2);line-height:1.35}
.tile.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.tile.primary .ic{background:rgba(255,255,255,.18);color:#fff}
.tile.primary small{color:rgba(255,255,255,.85)}
.tile small.warn-t{color:var(--warn);font-weight:700}
.tile small.ok-t{color:var(--ok);font-weight:700}

/* receipt rows */
.list{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.rc{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;padding:11px 12px;background:none;border:0;border-bottom:1px solid var(--line);text-align:left;width:100%}
.list>.rc:last-child{border-bottom:0}
button.rc:hover{background:#F8FAFC}
.no{width:42px;height:42px;border-radius:11px;background:var(--brand-tint);color:var(--brand-deep);font-weight:700;font-size:17px;display:grid;place-items:center;font-variant-numeric:tabular-nums}
.rc .t{font-weight:600;font-size:14.5px;line-height:1.3;overflow-wrap:anywhere}
.rc .s{font-size:12.5px;color:var(--ink-2);display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:2px}
.rc .s svg.i{width:14px;height:14px}
.rc .a{text-align:right;font-variant-numeric:tabular-nums}
.rc .a b{display:block;font-size:14.5px}
.rc .a span{font-size:12px;color:var(--ink-2)}
.rc.void .no{background:#ECEFF4;color:var(--ink-3);text-decoration:line-through}
.rc.void .t,.rc.void .a b{color:var(--ink-3);text-decoration:line-through}
.st-ok{color:var(--ok);display:inline-flex;align-items:center;gap:3px}
.st-wait{color:var(--warn);display:inline-flex;align-items:center;gap:3px}
.st-bad{color:var(--bad);display:inline-flex;align-items:center;gap:3px}

/* forms */
.field{display:flex;flex-direction:column;gap:5px}
.field>label,.field>.lab{font-size:13px;font-weight:700;color:var(--ink-2)}
.inp{width:100%;min-height:44px;border:1px solid #C3CEDD;border-radius:11px;background:#fff;padding:9px 12px;font-size:15px}
textarea.inp{min-height:84px;resize:vertical}
.inp:focus{outline:2px solid var(--brand);outline-offset:0;border-color:var(--brand)}
.inp.err{border-color:var(--bad);background:var(--bad-tint)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:#E3E9F1;border-radius:12px;padding:3px;gap:3px}
.seg button{border:0;background:none;border-radius:10px;min-height:38px;font-weight:700;color:var(--ink-2);font-size:14px}
.seg button.on{background:#fff;color:var(--brand-deep);box-shadow:0 1px 3px rgba(23,33,51,.15)}
.cats{display:flex;flex-wrap:wrap;gap:8px}
.cat{border:1px solid #C3CEDD;background:#fff;border-radius:99px;padding:6px 12px;font-size:13.5px;font-weight:600;display:inline-flex;align-items:center;gap:5px;color:var(--ink-2)}
.cat svg.i{width:16px;height:16px}
.cat.on{background:var(--brand);border-color:var(--brand);color:#fff}
.money{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:10px}
.money label{font-size:14px;font-weight:600}
.money .inp{text-align:right;font-variant-numeric:tabular-nums}
.checks{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:7px}
.checks li{display:grid;grid-template-columns:20px 1fr;gap:8px;font-size:13.5px;line-height:1.45}
.checks li svg.i{width:18px;height:18px;margin-top:1px}
.checks li.ok svg.i{color:var(--ok)}
.checks li.note svg.i{color:var(--warn)}
.checks li.block svg.i{color:var(--bad)}
.checks li.block{font-weight:600}
.tick{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:flex-start;background:none;border:0;text-align:left;padding:0;width:100%;font-size:14px}
.box{width:24px;height:24px;border-radius:7px;border:2px solid #B4C0D1;background:#fff;display:grid;place-items:center;color:#fff;flex:none}
.box svg.i{width:16px;height:16px;stroke-width:3}
.box.on{background:var(--ok);border-color:var(--ok)}
.switch{display:flex;align-items:center;gap:10px;background:none;border:0;padding:0;font-size:14px;text-align:left}
.switch i{width:44px;height:26px;border-radius:99px;background:#B9C4D4;position:relative;flex:none;transition:background .15s}
.switch i::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .15s}
.switch.on i{background:var(--warn)}
.switch.on i::after{transform:translateX(18px)}

/* capture */
.bigno{font-family:var(--font-hand);font-size:104px;line-height:1;color:#1F3FA8;font-weight:700;letter-spacing:.02em}
.cap-steps{display:flex;gap:6px}
.cap-steps span{flex:1;height:4px;border-radius:99px;background:#D6DEE9}
.cap-steps span.on{background:var(--brand)}
.cam{background:#0C111B;border-radius:20px;padding:30px 14px 18px;display:flex;flex-direction:column;align-items:center;gap:22px;position:relative;overflow:hidden}
.cam .hint{color:#C9D3E2;font-size:13px;text-align:center}
.cam .frame{position:relative;padding:14px}
.cam .frame::before,.cam .frame::after{content:"";position:absolute;width:26px;height:26px;border:3px solid #7FB0EA}
.cam .frame::before{top:0;left:0;border-right:0;border-bottom:0;border-radius:8px 0 0 0}
.cam .frame::after{bottom:0;right:0;border-left:0;border-top:0;border-radius:0 0 8px 0}
.shutter{width:70px;height:70px;border-radius:50%;border:4px solid #fff;background:none;padding:4px;display:grid}
.shutter i{border-radius:50%;background:#fff}
.shutter:active i{background:#C9D3E2}
.scan{position:absolute;inset:0;background:rgba(12,17,27,.72);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff;font-weight:700}
.scan .beam{width:70%;height:3px;background:#7FB0EA;border-radius:99px;box-shadow:0 0 16px 4px rgba(127,176,234,.7);animation:beam 1.1s ease-in-out infinite alternate}
@keyframes beam{from{transform:translateY(-70px)}to{transform:translateY(70px)}}
@media (prefers-reduced-motion:reduce){.scan .beam{animation:none}.switch i,.switch i::after{transition:none}}
.paper{position:relative;background:#FFFEF8;color:#23262B;font-family:var(--font-mono);font-size:10.5px;line-height:1.5;padding:16px 13px 14px;width:236px;box-shadow:0 8px 22px -8px rgba(0,0,0,.55);transform:rotate(-1.2deg)}
.paper .p-t{font-weight:700;font-size:12.5px;text-align:center;padding-right:40px;padding-left:40px}
.paper .p-s{text-align:center;font-size:9.5px;color:#555}
.paper .p-h{text-align:center;font-weight:700;margin:8px 0 2px;border-top:1px dashed #999;border-bottom:1px dashed #999;padding:3px 0}
.paper .p-m{font-size:9.5px;color:#555;margin-bottom:6px}
.paper .p-l{display:flex;justify-content:space-between;gap:8px}
.paper .p-l span:last-child{white-space:nowrap}
.paper .p-tot{display:flex;justify-content:space-between;font-weight:700;font-size:12.5px;border-top:1px dashed #999;margin-top:6px;padding-top:5px}
.paper .p-f{text-align:center;font-size:9px;color:#666;margin-top:6px}
.paper .hand{position:absolute;top:5px;right:8px;font-family:var(--font-hand);font-size:30px;font-weight:700;color:#1F3FA8;transform:rotate(-7deg);border:2.5px solid #1F3FA8;border-radius:50%;padding:0 8px;line-height:1.15}
.paper-wrap{display:grid;place-items:center;padding:14px 0 10px;background:#E3E9F1;border-radius:var(--r)}
.photo{width:100%;max-height:300px;object-fit:contain;border-radius:var(--r);background:#0C111B;display:block}
.ai-tag{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;color:var(--brand-deep);background:var(--brand-tint);border-radius:6px;padding:1px 6px}
.ai-tag svg.i{width:13px;height:13px}
.trans{margin:0;padding-left:18px;font-size:13px;color:var(--ink-2)}
.path{font-family:var(--font-mono);font-size:11.5px;color:var(--ink-2);background:#EEF2F7;border-radius:8px;padding:8px 10px;overflow-wrap:anywhere;line-height:1.5}
.spin{width:18px;height:18px;border-radius:50%;border:2.5px solid #C9D3E0;border-top-color:var(--brand);animation:spin .8s linear infinite;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2.4s}}

/* overlay: modal + sheet + toast */
.overlay{position:absolute;inset:0;background:rgba(17,25,39,.5);display:none;align-items:flex-end;z-index:20}
.overlay.on{display:flex}
.sheet{background:var(--card);border-radius:22px 22px 0 0;width:100%;max-height:88%;overflow:auto;padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px}
.sheet>h2{font-size:17px;font-weight:700}
.sheet .x{position:absolute;right:10px;top:8px}
.roles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.role{border:1.5px solid #C3CEDD;background:#fff;border-radius:12px;padding:10px 6px;display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:700;font-size:14px}
.role small{font-weight:400;font-size:11.5px;color:var(--ink-2);text-align:center;line-height:1.3}
.role.on{border-color:var(--brand);background:var(--brand-tint);color:var(--brand-deep)}
.toast{position:absolute;left:16px;right:16px;bottom:92px;background:#172133;color:#fff;border-radius:12px;padding:11px 14px;font-size:14px;font-weight:600;z-index:30;display:none;box-shadow:0 10px 24px -8px rgba(0,0,0,.5);text-align:center}
.toast.on{display:block}
.empty{text-align:center;color:var(--ink-2);font-size:14px;padding:26px 10px}

.amt3{display:grid;grid-template-columns:84px 1fr 104px;gap:8px}
.amt3 .inp{padding-left:9px;padding-right:9px}
.vh{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;left:0;bottom:0}

.log{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.log li{display:grid;grid-template-columns:78px 1fr;gap:10px;font-size:13px;line-height:1.45}
.log .ts{color:var(--ink-2);font-size:12px;padding-top:1px}
.log b{font-weight:700}

.ref-line{display:grid;grid-template-columns:44px 1fr 1fr;gap:8px;font-size:13.5px;align-items:baseline}
.ref-line>span:nth-child(n+2){text-align:right}
.ref-line.head{font-size:12px;color:var(--ink-2);font-weight:700}
.ref-line small{font-size:11px;margin-left:3px}
.inp[disabled]{background:#EEF2F7;color:var(--ink-2)}

.card.tap{width:100%;text-align:left;cursor:pointer;font:inherit;color:inherit}
.card.tap:hover{border-color:var(--brand)}
.card.tap .row{width:100%}
.card.tap b{text-align:left}
.prep-row{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;font-weight:600}
.prep-row span{display:inline-flex;align-items:center;gap:3px}
.prep-row svg.i{width:15px;height:15px}
.wx{font-size:22px;font-weight:700;white-space:nowrap}
.tick[disabled],.seg button[disabled]{opacity:.75;cursor:default}
.guide .switch{font-size:13.5px}
.sheet .switch{font-size:14px}

/* v4: companions compare, version */
.mate{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-top:1px solid var(--line)}
.mate:first-of-type{border-top:0;padding-top:0}
.cmp{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}
.cmp th,.cmp td{padding:7px 6px;border-top:1px solid var(--line);vertical-align:top;text-align:left;word-break:break-word;overflow-wrap:anywhere}
.cmp thead th{border-top:0;font-size:13.5px;font-weight:700;padding-top:0}
.cmp thead th small{display:block;font-size:11px;font-weight:500;color:var(--ink-2)}
.cmp tbody th{width:46px;font-weight:500;color:var(--ink-2);font-size:12.5px;white-space:nowrap}
.cmp tr.df td{background:var(--warn-tint);font-weight:600}
.cmp tr.df th{color:var(--warn);font-weight:700}
.cmp tr.df th::after{content:"不同";display:block;font-size:10.5px}
.ver-foot{text-align:center;padding:6px 0 2px}
.ver{font-size:13.5px}
.ver b{font-size:15px;color:var(--brand)}
.vn{font-size:12.5px;line-height:1.55}
.vn ul{margin:2px 0 0;padding-left:18px;color:var(--ink-2)}
.sheet .field textarea.inp{min-height:64px}
.g-ver{font-size:13px;font-weight:700;color:var(--brand-deep);letter-spacing:.02em;margin-top:-6px}

/* ---------- 報表 ---------- */
.rp-wrap{background:#C6D0DD;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:10px}
.rp-wrap.zoom{overflow-x:auto}
.rp-wrap.zoom .rp-page{width:700px;flex:none}
.rp-page{background:#fff;color:#111;container-type:inline-size;box-shadow:0 2px 8px rgba(17,25,39,.25)}
.rp-in{font-size:1.62cqw;line-height:1.45;padding:6cqw 6.2cqw;min-height:141.4cqw;display:flex;flex-direction:column;gap:1.3em;font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei","Noto Sans CJK TC",sans-serif}
.rp-head{display:flex;align-items:center;gap:1.6em;border-bottom:.22em solid #396BA8;padding-bottom:1em}
.rp-head img{height:5.2em;width:auto}
.rp-head h1{font-size:1.95em;margin:0;font-weight:700;letter-spacing:.06em}
.rp-head p{margin:.2em 0 0;color:#444}
.rp-head .rp-co{font-weight:700;color:#111}
.rp table{border-collapse:collapse;width:100%}
.rp table.rp-items{table-layout:fixed}
.rp th,.rp td{border:.07em solid #7A8698;padding:.38em .55em;text-align:left;vertical-align:top}
.rp th{background:#EEF2F7;font-weight:700;white-space:nowrap}
.rp td.r,.rp th.r{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.rp td.c,.rp th.c{text-align:center;white-space:nowrap}
.rp .rp-no{font-weight:700;font-size:1.15em}
.rp tr.void td{color:#888;text-decoration:line-through}
.rp tr.sum td{font-weight:700;background:#F6F8FB}
.rp tr.total td{font-weight:700;font-size:1.2em;background:#E9F0F8}
.rp-h2{font-size:1.15em;font-weight:700;margin:0 0 .4em;border-left:.3em solid #396BA8;padding-left:.5em}
.rp-note{margin:0;padding-left:1.4em}
.rp-note li{margin:.15em 0}
.rp-sign{display:grid;gap:0;break-inside:avoid}
.rp-sign div{border:.07em solid #7A8698;margin-left:-.07em;min-height:6.4em;padding:.4em .55em;display:flex;flex-direction:column;justify-content:space-between}
.rp-sign div:first-child{margin-left:0}
.rp-sign b{font-size:.95em}
.rp-sign span{color:#666;font-size:.85em}
.rp-foot{margin-top:auto;color:#555;font-size:.88em;border-top:.07em solid #B8C2D0;padding-top:.6em;overflow-wrap:anywhere}
.rp-slots{display:grid;grid-template-columns:1fr 1fr;gap:1em}
.rp-slot{border:.1em dashed #7A8698;min-height:15.5em;padding:.6em .8em;display:flex;flex-direction:column;gap:.3em;break-inside:avoid}
.rp-slot .n{font-size:2.3em;font-weight:700;line-height:1;color:#27507F}
.rp-slot .d{font-weight:700}
.rp-slot .h{margin-top:auto;color:#888;text-align:center;font-size:.9em}
.rp-att{margin:0;padding:0;list-style:none}
.rp-att li{margin:.25em 0;display:flex;gap:.6em;align-items:flex-start}
.rp-att li::before{content:"";width:1em;height:1em;border:.1em solid #333;flex:none;margin-top:.2em}

/* ---------- v5：正式版 ---------- */
@media (min-width:781px){
  .stage{align-items:stretch;padding:0 24px}
  .guide{padding:24px 0}
  .phone{width:480px;height:100%;border:0;border-radius:0;box-shadow:0 0 0 1px var(--line),0 24px 60px -34px rgba(17,25,39,.5)}
}
.demo-bar #demo-role{opacity:.85}
.demo-bar #demo-role:not(:empty)::before{content:"・"}
.login{display:flex;flex-direction:column;gap:14px;padding:26px 2px}
.login .l-logo{height:38px;width:auto;align-self:center;margin-bottom:4px}
.fine a,.tiny a{color:var(--brand-deep);font-weight:700}
a.card{text-decoration:none;color:inherit}
a>img.photo{display:block}
.bigno{letter-spacing:.01em}
#print-root{display:none}
/* ---------- v5.1.0：報銷步驟、每日任務、出差報告、送出前檢查 ---------- */
.stp-n{width:26px;height:26px;border-radius:50%;background:#E3E9F1;color:var(--ink-2);font-weight:700;font-size:13px;display:grid;place-items:center;flex:none;font-variant-numeric:tabular-nums}
.stp-n.on{background:var(--ok);color:#fff}
.stp>.row>svg.i{color:var(--brand-deep);flex:none}
.stp-btns{display:flex;flex-wrap:wrap;gap:8px}
.nos{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.nos i{font-style:normal;font-family:var(--font-mono);font-size:12px;font-weight:600;background:var(--brand-tint);color:var(--brand-deep);border-radius:6px;padding:1px 7px}
.plan-row{display:grid;grid-template-columns:84px 1fr;gap:10px;align-items:center}
.plan-row label{font-size:13px;font-weight:700;color:var(--ink-2);display:flex;flex-direction:column;line-height:1.3}
.plan-row label small{font-weight:500;color:var(--ink-3);font-size:12px}
.plan-line{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;padding:7px 0;border-top:1px solid var(--line);line-height:1.45}
.plan-line:first-of-type{border-top:0}
.plan-line .num{flex:none;width:78px;color:var(--ink-2);font-size:12.5px;padding-top:1px}
.plan-box{background:#F3F6FA;border-radius:11px;padding:10px;display:flex;flex-direction:column;gap:8px}
textarea.inp.jr-ta{min-height:140px;line-height:1.6}
textarea.inp.jr-ta.big{min-height:280px}
.jr-text{white-space:pre-wrap;font-size:14.5px;line-height:1.7;overflow-wrap:anywhere;margin:0}
.jr-cmp{white-space:pre-wrap;font-size:14px;line-height:1.65;background:#F3F6FA;border:1px solid var(--line);border-radius:11px;padding:10px;max-height:190px;overflow:auto;overflow-wrap:anywhere}
.jr-cmp.new{background:#fff;border-color:var(--brand)}
.jp{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.jp figure{margin:0;display:flex;flex-direction:column;gap:5px;min-width:0}
.jp img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;background:#0C111B;display:block}
.jp figcaption{font-size:12.5px;color:var(--ink-2);overflow-wrap:anywhere}
.jp .row{gap:4px}
.jp .inp{min-height:36px;padding:5px 9px;font-size:13px;min-width:0}
.seg.seg4 button{font-size:12.5px;padding:0 2px}
a.btn{text-decoration:none}
.tiny svg.i{width:13px;height:13px;vertical-align:-2px}

@page{size:A4;margin:0}
@media print{
  html,body{height:auto;background:#fff}
  .stage{display:none!important}
  #print-root{display:block}
  #print-root .rp-wrap{display:block;padding:0;background:none;border-radius:0}
  #print-root .rp-page{box-shadow:none;width:210mm}
  #print-root .rp-page:not(:last-child){break-after:page}
  #print-root .rp-in{display:block;min-height:0;padding:10mm 13mm 8mm}
  #print-root .rp-in>*{margin-bottom:1.15em}
  #print-root .rp-foot{margin-top:.8em;margin-bottom:0}
}
