/* PDF pages are drawn off screen; a printed document is always light */
#pdf-root { position: fixed; left: -12000px; top: 0; }
.pp { position: relative; width: 793.6px; height: 1122.24px; background: #fff; overflow: hidden; color: #15232c; }
.pp-cell { position: absolute; box-sizing: border-box; display: flex; overflow: hidden; padding: 0 3px 1px; }
.pp-text { white-space: nowrap; line-height: 1.15; }
.pp-num, .pp-date { position: absolute; top: 9px; font-family: Calibri, Carlito, MingLiU, PMingLiU, "Noto Serif TC", serif; font-size: 11.5px; white-space: pre; }
.pp-num { right: 24px; }
.pp-date { left: 24px; }
.pp-foot-c, .pp-foot-r { position: absolute; bottom: 14px; font-family: Calibri, Carlito, MingLiU, PMingLiU, "Noto Serif TC", serif; white-space: nowrap; }
.pp-foot-c { left: 0; right: 0; text-align: center; font-size: 12px; }
.pp-foot-r { right: 24px; font-size: 10.67px; }
.pp-changed { outline: 2px solid #2563EB; outline-offset: -2px; z-index: 1; }
.ntp { font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, Arimo, sans-serif; }
.nt-body { position: absolute; left: 24px; right: 24px; top: 34px; bottom: 50px; overflow: hidden; }
.nt-co { font-size: 22px; font-weight: 700; color: #1F4E78; text-align: center; }
.nt-title { font-size: 19px; font-weight: 700; text-align: center; margin-top: 6px; }
.nt-meta { display: flex; justify-content: space-between; font-size: 14px; margin: 14px 2px 10px; }
.nt-intro { font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; margin-bottom: 14px; overflow-wrap: anywhere; }
.nt-mini { font-size: 12px; color: #5b6b75; margin-bottom: 8px; }
.nt-sign { text-align: right; font-size: 14px; margin-top: 16px; }
.qp-period { font-size: 14px; font-weight: 700; text-align: center; margin: 4px 0 6px; }
.qp-notice { background: #FFFF00; color: #0000FF; font-size: 13px; text-align: center; padding: 3px 6px; margin-bottom: 6px; }
.qp-tr { display: grid; grid-template-columns: 1fr 200px 130px; font-family: Arial, Arimo, "Microsoft JhengHei", "Noto Sans TC", sans-serif; font-size: 13px; color: #000; border: 0.5px solid #BFBFBF; border-top: 0; min-height: 24px; align-items: stretch; }
.qp-tr > div { padding: 2px 6px; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.qp-tr > .c { justify-content: center; }
.qp-th { background: #1F4E78; color: #fff; font-weight: 700; border-top: 0.5px solid #BFBFBF; font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif; }
.qp-tr.qp-cat { display: flex; align-items: center; background: #D9EAD3; color: #375623; font-weight: 700; padding: 2px 6px; }
.qp-tr.alt { background: #EAEAEA; }
/* screens */
.modal { position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / .45); display: grid; place-items: center; padding: 16px; }
.modalbox { width: min(860px, 100%); max-height: 100%; overflow-y: auto; background: #fff; border-radius: 12px; padding: 18px 20px; display: grid; gap: 10px; }
.previewpages { display: grid; gap: 10px; justify-content: center; background: #eef2f3; padding: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.opts label.chk { display: flex; align-items: center; gap: 6px; }
.ser { border-top: 1px dashed #d9e1e5; }
.serrow { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 8px 14px; }
.serrow.item { padding-left: 38px; border-top: 1px dotted #d9e1e5; }
.serrow label.chk { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; color: #15232c; font-size: 15px; }
.amt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4c5c66; }
.amt input { width: 90px; height: 40px; }
.amt select { width: auto; height: 40px; padding: 0 6px; }
#nt-preview { overflow: hidden; background: #eef2f3; padding: 12px; border-radius: 12px; }
.ntzoom { display: grid; gap: 10px; justify-content: center; }
.summary-lines { display: grid; gap: 4px; margin-top: 8px; }
textarea { font: inherit; padding: 8px 12px; border: 1px solid #b9c5cb; border-radius: 8px; width: 100%; resize: vertical; }
.pendrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; }
.pendrow p { margin: 0; font-size: 14px; flex: 1 1 280px; }
.pendrow .actions { flex-wrap: nowrap; margin: 0; }
.pendrow select { width: auto; height: 40px; padding: 0 6px; }
.pendrow .msg { flex-basis: 100%; }
.pendrow .msg:empty { display: none; }
.stepper { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.stepper li { flex: 1 1 110px; }
.stepper button { width: 100%; min-height: 40px; border-radius: 8px; border: 1px solid #d9e1e5; background: #fff; color: #4c5c66; font: inherit; font-size: 14px; }
.stepper button:disabled { cursor: default; }
.stepper .on button { background: #0e6a70; border-color: #0e6a70; color: #fff; font-weight: 700; opacity: 1; }
.stepper .done button { color: #0e6a70; border-color: #0e6a70; cursor: pointer; }
.stepnav { justify-content: flex-end; margin-top: 12px; }
#v-sim details summary { cursor: pointer; padding: 8px 2px; color: #4c5c66; }
.custrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px dotted #d9e1e5; }
.custrow > small:first-child { width: 50px; }
.custrow input { flex: 1 1 200px; width: auto; }
.custrow select { flex: 0 1 170px; width: auto; }
.custrow .msg { flex-basis: 100%; }

.homegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.homecard { display: grid; gap: 2px; text-align: left; padding: 14px 16px; height: auto; background: #fff; border: 1px solid #d9e1e5; border-radius: 12px; cursor: pointer; }
.homecard b { font-size: 24px; color: #0e6a70; }
.homecard small { color: #4c5c66; }
.homecard small:first-child { color: #15232c; font-size: 14px; font-weight: 700; }
.mq-tr { display: grid; grid-template-columns: 1fr 70px 140px 160px 110px; font-size: 14px; border: 0.5px solid #BFBFBF; border-top: 0; min-height: 30px; }
.mq-tr > div { padding: 5px 8px; display: flex; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.mq-tr .num { justify-content: flex-end; font-weight: 700; }
.mq-tr.qp-th { border-top: 0.5px solid #BFBFBF; }
.mq-total { background: #EAEAEA; font-weight: 700; }
.mq-term { font-size: 14.5px; margin-top: 12px; white-space: pre-wrap; }

.stack > * { min-width: 0; }
.card { min-width: 0; }

.mq-company { text-align: center; font-size: 12.5px; color: #4c5c66; margin-top: 4px; overflow-wrap: anywhere; }
.mq-sign { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 48px; font-size: 14.5px; }
.mq-sign > div { border-bottom: 1px solid #15232c; padding-bottom: 40px; }

.noticepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; max-height: 300px; overflow-y: auto; border: 1px solid #d9e1e5; border-radius: 8px; padding: 8px; }
.noticepick label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.latecell { color: #a12a22; font-weight: 700; }
