:root{--ink:#101f2f;--ink2:#35465b;--muted:#778597;--white:#fff;--bg:#f4f7fa;--line:#e1e9f0;--primary:#117a91;--primary-dark:#0a576e;--accent:#10b8bc;--navy:#091827;--red:#b84044;--redbg:#fff1ee;--amber:#98611a;--amberbg:#fff8e8;--green:#18775f;--greenbg:#ecf9f4;--shadow:0 16px 36px rgba(18,40,60,.055);font-family:system-ui,-apple-system,'Noto Sans TC','Microsoft JhengHei',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.55}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit}.shell,.top-shell{width:min(1200px,calc(100% - 40px));margin:auto}.site-header{background:#091825;color:#fff}.top-shell{min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{color:#fff;text-decoration:none;font-size:19px;font-weight:900;display:flex;align-items:center;gap:10px;line-height:1.15}.brand small{display:block;font-size:9px;font-weight:700;letter-spacing:2px;margin-top:6px;color:#9bb6c3}.brand-badge{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#1ed0c7,#0b6888);display:grid;place-items:center;font-size:22px}.top-actions{display:flex;gap:18px;align-items:center}.demo-tag{border:1px solid #416372;padding:6px 12px;border-radius:99px;color:#b2d6e0;font-size:12px}.back-link{font-size:13px;text-decoration:none;color:#e2f4f7}.notice{background:#fff8e8;border-bottom:1px solid #f5e8cd;text-align:center;padding:10px 18px;color:#74551e;font-size:12px}.notice strong{color:#82511e}.hero{margin:30px 0 19px;border-radius:24px;background:radial-gradient(ellipse at 86% 5%,#19536a,transparent 40%),linear-gradient(115deg,#0b1727,#102d42);min-height:275px;color:#fff;padding:38px 44px;display:grid;grid-template-columns:1.5fr 1fr;gap:32px;overflow:hidden}.eyebrow{display:inline-flex;align-items:center;gap:9px;color:#7ae6e6;font-size:12px;font-weight:750;letter-spacing:.7px}.eyebrow i{width:7px;height:7px;border-radius:50%;background:#32e4d6;box-shadow:0 0 12px #0fb}.hero h1{font-size:clamp(29px,4vw,47px);line-height:1.21;margin:12px 0 12px;letter-spacing:.3px}.hero h1 span{color:#65e6e4}.hero p{max-width:630px;color:#c3d5df;line-height:1.8;margin:0}.hero-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:19px}.hero-pills span{border:1px solid #466274;border-radius:8px;color:#e3f7f7;font-size:12px;padding:6px 10px}.hero-graphic{display:flex;justify-content:center;flex-direction:column;align-items:center}.glass-tag{font-size:10px;letter-spacing:2px;color:#85b3c5;align-self:flex-end}.salary-illustration{width:min(100%,330px);border:1px solid #517687;background:rgba(255,255,255,.065);padding:22px 24px;border-radius:17px;backdrop-filter:blur(9px);transform:rotate(1deg)}.salary-illustration span{font-size:12px;color:#aec6d3}.salary-illustration b{display:block;font-size:30px;letter-spacing:.5px;margin-top:7px}.salary-illustration small{color:#9cb7c5;font-size:10px}.mini-bars{height:35px;display:flex;align-items:end;gap:8px;margin:15px 0}.mini-bars i{flex:1;border-radius:4px 4px 0 0;background:linear-gradient(#4ce9d7,#1883a1);height:45%}.mini-bars i:nth-child(2){height:72%}.mini-bars i:nth-child(3){height:59%}.mini-bars i:nth-child(4){height:90%}.mini-bars i:nth-child(5){height:65%}.mini-bars i:nth-child(6){height:85%}.mini-bars i:nth-child(7){height:100%}.overview{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:16px}.metric{padding:18px 19px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow);min-width:0}.metric span{font-size:12px;color:var(--ink2)}.metric strong{display:block;font-size:clamp(20px,2.5vw,28px);margin:5px 0 3px;line-height:1.25;white-space:nowrap;font-variant-numeric:tabular-nums}.metric small{font-size:11px;color:var(--muted)}.metric.primary{background:#0c5266;border-color:#0c5266;color:#fff}.metric.primary span,.metric.primary small{color:#c4e6e9}.metric.status-metric strong{font-size:21px}.steps{position:sticky;top:0;z-index:20;background:#f4f7faee;display:flex;justify-content:space-between;gap:7px;padding:9px 0 15px;backdrop-filter:blur(9px);margin-bottom:5px}.steps a{text-decoration:none;border:1px solid var(--line);background:#fff;padding:10px 11px;border-radius:10px;display:flex;justify-content:center;align-items:center;gap:8px;flex:1;font-size:12px;font-weight:760}.steps a:hover,.steps a:focus-visible{border-color:#22a3b0;color:#08687f}.steps b{color:var(--primary);font-size:11px}.panel{scroll-margin-top:75px;background:#fff;border:1px solid var(--line);border-radius:19px;padding:28px 32px;margin-bottom:18px;box-shadow:var(--shadow)}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.section-kicker{color:#0b8294;font-weight:850;font-size:11px;letter-spacing:1.3px}.section-head h2{font-size:24px;letter-spacing:-.2px;margin:4px 0 4px}.section-head p{color:#738294;margin:0;font-size:13px}.head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.primary-btn,.secondary-btn,.quiet-btn,.import-btn{display:inline-flex;gap:5px;justify-content:center;align-items:center;font-size:13px;font-weight:760;line-height:1.3;border-radius:10px;padding:11px 16px;text-decoration:none;white-space:nowrap}.primary-btn{color:#fff;background:#0d8294;border:1px solid #0d8294}.primary-btn:hover{background:#09697a}.secondary-btn{background:#e5f7f7;border:1px solid #bde7e8;color:#085e74}.secondary-btn:hover{background:#d3f2f1}.quiet-btn,.import-btn{background:#fff;border:1px solid #dfe8ee;color:#44576b}.quiet-btn:hover,.import-btn:hover{background:#f3f8fa}.danger-text{color:var(--red)}.fields{display:grid;gap:15px;margin:15px 0}.fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}.fields label{min-width:0;font-size:12px;color:#35465a;font-weight:750;display:flex;flex-direction:column;gap:8px}.fields label small{font-size:10px;line-height:1.5;color:#7e8793;font-weight:450}.fields input,.fields select{width:100%;min-width:0;border:1px solid #d9e4ec;background:#fcfdff;border-radius:10px;padding:12px 13px;color:#1a3042;font-weight:600;outline:none}.fields input:focus,.fields select:focus{border-color:#1b9eac;box-shadow:0 0 0 3px #16b4bd16}.fields input::placeholder{color:#a9b5bf;font-weight:400}.subheading{font-weight:850;font-size:15px;margin:26px 0 8px;padding-left:10px;border-left:3px solid #11a1a9}.rate-row{background:#f0fbfc;border:1px solid #d1eef0;border-radius:11px;padding:15px 17px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:14px}.rate-row span:first-child{font-size:12px;color:#446171;font-weight:800}.rate-row strong{font-size:19px;color:#106f86}.rate-helper{font-size:11px;color:#6c8899;flex:1;text-align:right}.advanced{margin-top:14px;border:1px solid #e3eaf0;border-radius:10px;padding:13px 16px;background:#fafbfd}.advanced summary{font-size:13px;font-weight:760;cursor:pointer;color:#38536a}.checkline{flex-direction:row!important;align-items:flex-start;gap:9px!important;line-height:1.8}.checkline input{width:auto!important;min-width:16px!important;margin-top:4px}.checkline span{font-weight:550}.help{font-size:11px;color:#7b8795;line-height:1.8;margin:9px 0 0}.soft-info{padding:13px 16px;border-radius:10px;background:#f2f8fb;border:1px solid #e0eff5;font-size:12px;color:#466276;line-height:1.85}.soft-info b{color:#146b83}.soft-info a{color:#06758c}.attendance-fields{grid-template-columns:1.1fr 1fr .7fr .9fr auto;align-items:end}.entry-submit{display:flex}.entry-submit button{min-height:45px}.table-container{overflow:auto;max-width:100%;border:1px solid #e2e9f0;border-radius:12px;margin-top:18px}.data-table{width:100%;border-collapse:collapse;min-width:650px;text-align:left;font-size:12px}.data-table thead{background:#f3f7f9;color:#435569}.data-table th{font-weight:800}.data-table th,.data-table td{padding:13px 14px;border-bottom:1px solid #e9eef2}.data-table tbody tr:last-child td{border-bottom:0}.data-table td strong{color:#0f536b}.td-notes{font-size:11px;color:#7b8793;max-width:240px}.table-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:11px;color:#65788b;font-size:12px}.row-delete{border:0;background:none;color:#b24b52;font-size:12px;padding:5px;cursor:pointer}.pill-day{background:#eaf3f7;border-radius:7px;padding:3px 7px;color:#285975;white-space:nowrap;font-weight:750}.pill-day.rest{background:#e4f7f5;color:#127364}.pill-day.national{background:#fff5e5;color:#945b12}.pill-day.regular{background:#ffece8;color:#bd4343}.checks{display:grid;gap:12px}.check-item{display:grid;grid-template-columns:30px 1fr;gap:12px;padding:16px 18px;border:1px solid #d9e9e5;border-radius:12px;background:#f6fbf8}.check-item.warn{border-color:#f1dbb7;background:var(--amberbg)}.check-item.error{border-color:#efcecb;background:var(--redbg)}.check-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-weight:900;color:#fff;background:#268069}.check-item.warn .check-icon{background:#be832d}.check-item.error .check-icon{background:#d04e4e}.check-item h3{font-size:14px;margin:0 0 5px}.check-item p{margin:3px 0;color:#586b7b;font-size:12px;line-height:1.85}.check-item .fix{color:#1b6370;font-weight:650}.rules-note{background:#f5f7fa;border-radius:12px;padding:17px 20px;margin-top:17px;color:#526476;font-size:12px}.rules-note b{color:#24445a}.rules-note p{margin:6px 0 10px;line-height:1.75}.law-links{display:flex;gap:15px;flex-wrap:wrap}.law-links a{color:#0d7791;font-weight:750;text-decoration:none}.check-chip{border-radius:20px;padding:7px 12px;font-size:12px;background:#e5f5ee;color:#1f755e;white-space:nowrap;font-weight:850}.check-chip.warn{background:#fff1db;color:#99641b}.check-chip.error{background:#ffebe8;color:#b44344}.slip-preview{border:1px solid #d9e4eb;background:#fff;border-radius:15px;padding:25px;margin:8px 0 20px;max-width:850px;margin-inline:auto}.payslip{color:#1d2b38}.slip-header{display:flex;justify-content:space-between;gap:20px;align-items:start;padding-bottom:18px;border-bottom:2px solid #0b7891}.slip-header h3{font-size:24px;letter-spacing:2px;margin:3px 0 3px}.slip-header strong{font-size:18px}.slip-header p{font-size:12px;color:#7d8b95;margin:3px 0}.slip-brand{text-align:right;font-size:11px;color:#20768a;font-weight:850;letter-spacing:1px}.slip-details{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 18px;font-size:12px;padding:17px 0}.slip-details div{display:flex;flex-direction:column}.slip-details span{color:#8a97a2;font-size:11px}.slip-details b{font-weight:700;margin-top:2px}.slip-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.slip-block{border:1px solid #e2eaf0;border-radius:9px;overflow:hidden}.slip-block h4{margin:0;padding:11px 15px;background:#eff7f8;color:#1c6779;font-size:13px}.slip-block.deduct h4{background:#fff7f0;color:#966220}.slip-line{display:flex;justify-content:space-between;gap:15px;margin:0;padding:8px 15px;border-bottom:1px solid #eef2f5;font-size:12px}.slip-line small{font-size:10px;color:#8e9ba8}.slip-line b{font-variant-numeric:tabular-nums}.slip-line.total{background:#f9fbfc;font-weight:800}.slip-net{margin-top:16px;background:#0d3f52;color:#fff;border-radius:10px;padding:18px 22px;display:flex;justify-content:space-between;align-items:center}.slip-net strong{font-size:28px;font-variant-numeric:tabular-nums}.slip-net span{font-size:14px}.slip-footnote{font-size:10px;line-height:1.7;color:#6f7f8c;margin-top:15px}.slip-footnote strong{color:#36495b}.export-bar{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#f5f9fb;border:1px solid #e5edf2;border-radius:12px;padding:14px 15px;color:#6b7c89;font-size:12px}.export-bar>div{display:flex;gap:9px;flex-wrap:wrap}.export-bar button,.export-bar label{font-size:12px}.record-list{display:grid;gap:9px}.record-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:10px;background:#f6f9fb;border:1px solid #e5edf0;padding:10px 14px}.record-row span{font-weight:730;font-size:13px}.record-row small{font-size:11px;color:#82919d}.record-row button{border:1px solid #a9d8df;border-radius:8px;background:white;color:#0a7890;padding:8px 12px;font-weight:700}.empty{padding:35px;text-align:center;color:#81909b;font-size:13px}.message{border-radius:10px;padding:12px 16px;margin-bottom:14px;color:#14625b;background:#e9f7f2;border:1px solid #cde7e0;font-weight:650}.message.error{color:#a54141;background:#fff1f0;border-color:#f1d1cf}.site-footer{text-align:center;padding:34px 0 50px;color:#718294;font-size:11px}.site-footer b{color:#374e60}.site-footer a{color:#177d90}.print-only{display:none}
@media(max-width:900px){.hero{grid-template-columns:1fr;padding:30px 28px;gap:22px}.hero-graphic{display:none}.overview{grid-template-columns:repeat(2,1fr)}.attendance-fields{grid-template-columns:repeat(2,1fr)}.entry-submit{grid-column:1/-1}.fields.three{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:23px 20px}.steps a{font-size:11px;padding:10px 4px}}
@media(max-width:590px){.shell,.top-shell{width:min(100% - 24px,1200px)}.top-shell{min-height:66px}.brand{font-size:17px}.brand-badge{width:38px;height:38px}.back-link{font-size:11px}.demo-tag{display:none}.hero{margin-top:12px;padding:26px 21px;border-radius:16px;min-height:auto}.hero h1{font-size:32px}.hero p{font-size:13px}.overview{gap:8px;margin-bottom:8px}.metric{padding:14px 12px;border-radius:12px}.metric strong{font-size:20px;white-space:normal}.metric.status-metric strong{font-size:18px}.metric span,.metric small{font-size:11px}.steps{overflow:auto;justify-content:flex-start;gap:7px;padding-bottom:9px}.steps a{flex:0 0 auto;padding:10px 11px;font-size:11px}.panel{padding:20px 14px;border-radius:14px;margin-bottom:12px}.section-head{display:block}.section-head h2{font-size:21px}.section-head p{font-size:12px}.head-actions{justify-content:flex-start;margin-top:12px}.fields.two,.fields.three{grid-template-columns:1fr;gap:12px}.attendance-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.fields.attendance-fields label:nth-child(1),.fields.attendance-fields label:nth-child(2){grid-column:span 1}.fields.attendance-fields label:nth-child(3),.fields.attendance-fields label:nth-child(4){grid-column:span 1}.rate-helper{text-align:left;flex-basis:100%}.slip-preview{padding:13px 10px}.slip-header h3{font-size:20px}.slip-header strong{font-size:14px}.slip-details{grid-template-columns:repeat(2,1fr)}.slip-grid{grid-template-columns:1fr}.slip-net{padding:14px 13px}.slip-net strong{font-size:22px}.export-bar{display:block}.export-bar>div{margin-top:12px}.table-foot{align-items:start}.record-row{align-items:flex-start}.record-row span{font-size:12px}}
@page{size:A4;margin:12mm}
@media print{body{background:#fff;color:#151f28}.app-body{display:none!important}.print-only{display:block!important;max-width:188mm;margin:0 auto}.print-only .slip-preview{border:0;box-shadow:none;margin:0;padding:0;max-width:none}.print-only .slip-net{background:#eef5f7;color:#101f2f;print-color-adjust:exact;-webkit-print-color-adjust:exact}.print-only .slip-header,.print-only .slip-block,.print-only .slip-net{break-inside:avoid}.print-only .slip-grid{grid-template-columns:1fr 1fr}.print-only .slip-header h3{font-size:25px}.print-only .slip-footnote{font-size:9px}.print-only .slip-preview{padding:0}}

/* v1.1 超時照算：警示與薪資分開、手機可讀、列印可保存 */
.overtime-assurance{border:1px solid #9ad0cc;border-radius:15px;background:#ecf8f7;color:#163b43;padding:17px;margin:18px 0}
.overtime-assurance.has-excess{border-color:#e2b18d;background:#fff6ee;color:#603d24}
.overtime-assurance-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.overtime-assurance-title strong{font-size:17px}
.overtime-assurance-title span{font-size:12px;opacity:.75}
.overtime-assurance-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}
.overtime-assurance-metrics>div{border:1px solid #d4e5e6;background:#fff;border-radius:10px;padding:12px}
.overtime-assurance-metrics small{display:block;font-size:12px;line-height:1.45;opacity:.8}
.overtime-assurance-metrics b{display:block;font-size:22px;margin-top:6px}
.overtime-assurance p{margin:10px 0 0;font-size:13px;line-height:1.7}
.overtime-days ul{margin:6px 0 0;padding-left:18px}
.slip-overflow{border:1px solid #e1b992;border-radius:8px;background:#fff9f0;color:#563b23;padding:12px;margin:12px 0;font-size:12px;line-height:1.6;display:grid;gap:3px}
@media(max-width:700px){.overtime-assurance-metrics{grid-template-columns:1fr}.overtime-assurance-metrics b{font-size:19px}}
@media print{.slip-overflow{break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}}
