:root{--navy:#172238;--navy-light:#253148;--orange:#1361e4;--orange-dark:#0c48b8;--peach:#e9f1fe;--ink:#243047;--muted:#87909e;--line:#eaecef;--bg:#f6f7f9;--green:#219778;--purple:#8573c9;/* เข้มกว่าแดงของ .btn.danger (#c5504c) เพราะตัวนี้ใช้เป็นพื้นหลังของตัวหนังสือสีขาวตัวเล็ก ต้องมีคอนทราสต์พอ */--red:#b03430;/* ชุดขนาดตัวอักษรกลาง · แก้ที่นี่ที่เดียวแล้วเปลี่ยนทั้งเว็บ ตัวเลขเดิมเริ่มที่ 13px และมีหลายจุดอยู่ที่ 9-11px ซึ่งเล็กเกินกว่าจะอ่านสบายบนมือถือ */--fs-micro:9px;--fs-eyebrow:10px;--fs-2xs:11px;--fs-xs:12px;--fs-sm:13px;--fs-md:14px;--fs-base:15px;--fs-lg:16px;--fs-h3:17px;--fs-h2:19px;/* ขนาดพื้นที่กดขั้นต่ำ ตามข้อกำหนดในเอกสารโครงการ (อย่างน้อย 44px) */--tap:44px;--tap-compact:38px;--font:'Inter','IBM Plex Sans Thai',sans-serif;--thai:'IBM Plex Sans Thai','Inter',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--thai);font-size:var(--fs-base);line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #1361e466;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:3px solid #1361e421;border-color:var(--orange)}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{width:246px;background:var(--navy);color:#b9c1d0;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:29px 18px 0;z-index:40;overflow-y:auto}.brand{display:flex;align-items:center;gap:10px;padding:0 11px;color:#fff}.brand-mark{width:44px;height:44px}.brand strong{display:block;font-family:Inter,sans-serif;font-weight:750;font-size:26px;letter-spacing:1px;line-height:1.15}.brand span{font-family:Inter,sans-serif;font-size:var(--fs-eyebrow);letter-spacing:4.2px;color:#b9c1d0;display:block;margin-top:7px}.workspace-label{margin:28px 11px 23px;font-size:var(--fs-md);color:#e0e3eb}.workspace-label span{display:block;letter-spacing:1.7px;font-family:Inter,sans-serif;font-size:var(--fs-eyebrow);color:#718099;margin-top:3px}.nav-label{display:flex;align-items:center;justify-content:space-between;font-size:var(--fs-xs);color:#7c8aa2;margin:20px 13px 9px}.nav-label:first-child{margin-top:0}/* 12px เพราะวัดแล้วว่าเป็นขนาดที่หัวข้อยาวสุดอยู่บรรทัดเดียวได้ทุกหัวข้อ
   ที่ 13px และ 14px "โอนเงินและตรวจเคลียร์" ตัดเป็นสองบรรทัดเมื่อมีป้ายตัวเลขอยู่ด้วย
   ป้ายตัวเลขคือตัวแย่งที่ หัวข้อที่ไม่มีป้ายจึงไม่เคยตัดบรรทัดแม้ที่ 14px
   พื้นที่จริงในลิงก์คือ 210px (sidebar 246 ลบ padding) วัดที่ 1440px */
.sidebar nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;min-height:var(--tap);margin:3px 0;border-radius:7px;font-size:var(--fs-xs);transition:background .15s,color .15s}.sidebar nav a .icon{width:18px;height:18px;color:#9da9bd}.sidebar nav a:hover{background:#ffffff09;color:white}.sidebar nav a.active{background:#1361e4;color:white;box-shadow:0 4px 14px #090d1720}.sidebar nav a.active .icon{color:white}.nav-counter{font-family:Inter,sans-serif;margin-left:auto;font-size:var(--fs-xs);padding:1px 6px;background:#2d394f;border-radius:4px}.nav-counter.orange{color:#96c0ff;background:#1361e428}.demo-role{font-family:Inter;font-size:var(--fs-micro);letter-spacing:1px;border:1px solid #3a475d;padding:0 4px;border-radius:3px}.sidebar-bottom{margin-top:auto;padding-top:28px;position:relative}
/* แถบผู้ใช้กลายเป็นปุ่มเปิดเมนู จึงต้องล้างสไตล์ปุ่มของเบราว์เซอร์ออกให้เหมือนเดิมทุกประการ */
button.sidebar-user{width:100%;background:none;border:0;border-top:1px solid #2b354a;font:inherit;color:inherit;cursor:pointer;text-align:left;border-radius:0}
button.sidebar-user:hover,button.sidebar-user:focus-visible{background:#ffffff0d}
button.sidebar-user .chevron{width:14px;height:14px;margin-left:auto;color:#7f8ba3;flex-shrink:0}
button.sidebar-user[aria-expanded="true"] .chevron{transform:rotate(180deg)}
/* เมนูลอยขึ้นด้านบน เพราะแถบผู้ใช้อยู่ล่างสุดของ sidebar อยู่แล้ว เปิดลงล่างจะตกขอบจอ */
/* กว้างเท่า sidebar พอดี ไม่ยื่นออกไปทับเนื้อหา เพราะบนจอแคบ sidebar ถูกพับออกนอกจอ
   เมนูที่กว้างกว่าจะโผล่ขอบมาให้เห็นหรือดันให้หน้าเลื่อนข้างได้ */
.user-menu{position:absolute;bottom:calc(100% - 18px);left:0;right:0;z-index:60;padding:6px;border-radius:12px;
  background:var(--surface,#fff);border:1px solid var(--line,#e3e6ec);box-shadow:0 18px 40px rgba(10,16,30,.28)}
.user-menu-head{display:flex;gap:11px;align-items:center;padding:11px 10px;border-bottom:1px solid var(--line,#e3e6ec)}
.user-menu-head .avatar{height:38px;width:38px;font-size:var(--fs-h3);border:0;flex-shrink:0}
.user-menu-head strong{display:block;font-size:var(--fs-md);font-weight:600;color:var(--ink,#1a2332);overflow-wrap:anywhere}
.user-menu-head small{display:block;font-size:var(--fs-xs);color:var(--muted,#8e99a9);overflow-wrap:anywhere}
.user-menu-list{padding:5px 0;border-bottom:1px solid var(--line,#e3e6ec)}
.user-menu-list:last-child{border-bottom:0}
.user-menu-item{display:flex;gap:11px;align-items:center;width:100%;padding:9px 10px;border:0;border-radius:8px;
  background:none;font:inherit;color:var(--ink,#1a2332);cursor:pointer;text-align:left}
.user-menu-item:hover,.user-menu-item:focus-visible{background:var(--surface-2,#f4f6f9)}
.user-menu-item .soft-icon{height:30px;width:30px;flex-shrink:0}
.user-menu-item .icon{width:15px;height:15px}
.user-menu-item strong{display:block;font-size:var(--fs-sm);font-weight:500}
.user-menu-item small{display:block;font-size:var(--fs-xs);color:var(--muted,#8e99a9);margin-top:1px}
/* ปุ่มธีมใช้โครงเดิมของมัน คือไอคอนกับคำสั้น ๆ ไม่มี soft-icon ครอบ จึงจัดระยะให้ตรงกับรายการอื่น */
.user-menu-item.theme-toggle{gap:16px;padding-left:17px;font-size:var(--fs-sm)}
.user-menu-item.theme-toggle .icon{width:17px;height:17px;color:var(--muted,#8e99a9)}.help-link{display:flex;gap:9px;align-items:center;font-size:var(--fs-sm);padding:12px 10px 20px;color:#92a0b6}.help-link .icon{width:16px}.help-link span{margin-left:auto}.sidebar-user{border-top:1px solid #2b354a;display:flex;align-items:center;gap:10px;padding:18px 1px}.avatar{height:36px;width:36px;background:#dbe8fd;color:#2a5fae;border:3px solid #fff;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:var(--fs-h3);font-weight:600;flex-shrink:0}.sidebar-user .avatar{border-color:#344057;width:33px;height:33px}.sidebar-user strong{font-size:var(--fs-xs);color:#e9edf5;font-weight:500}.sidebar-user small{display:block;font-size:var(--fs-2xs);color:#7f8ba3}.sidebar-user .icon-btn{color:#91a0b7;margin-left:auto;padding:4px}.sidebar-user .icon{width:16px}.app-shell{margin-left:246px}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px}.breadcrumb{display:flex;align-items:center;gap:16px;font-size:var(--fs-sm)}.breadcrumb-root,.slash{color:#9aa1ad}.breadcrumb strong{font-weight:500;color:#5b6475}.topbar-actions{display:flex;align-items:center;gap:20px}.demo-pill{color:#748070;font-size:var(--fs-xs);display:flex;align-items:center;gap:6px}.demo-pill>span{width:6px;height:6px;border-radius:50%;background:#86a97b}.topbar-divider{height:23px;width:1px;background:var(--line)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;background:none;border:0;color:#818999;padding:6px;border-radius:6px;min-width:var(--tap-compact);min-height:var(--tap-compact)}.icon-btn:hover{background:#f1f3f5}.notification-btn{position:relative}/* จำนวนที่ยังไม่ได้อ่าน ไม่ใช่จุดเปล่า ๆ เพื่อให้รู้ได้ทันทีว่าค้างอยู่กี่เรื่อง
   min-width กับ padding ทำให้เลขหลักเดียวเป็นวงกลม ส่วนสองหลักขึ้นไปยืดเป็นแคปซูลเอง */
.notification-btn i{position:absolute;right:0;top:0;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--red);border:1px solid white;color:white;font-size:var(--fs-xs);font-weight:700;font-style:normal;line-height:14px;text-align:center;box-sizing:border-box}
.notification-btn i[hidden]{display:none}/* One control, two jobs: on a wide screen it folds the sidebar away to give the page more room,
   on a narrow one it slides the sidebar in as a drawer. */
.mobile-menu{display:flex}main{max-width:1550px;margin:0 auto;padding:31px 36px 24px;min-height:calc(100vh - 128px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.eyebrow{color:var(--orange);letter-spacing:1.4px;font-size:var(--fs-2xs);font-weight:600;font-family:Inter,sans-serif;margin:0 0 6px}.page-heading h1{font-size:25px;letter-spacing:-.5px;line-height:1.5;margin:0 0 3px;font-weight:600}.page-heading p{color:var(--muted);font-size:var(--fs-sm);margin:0}.heading-actions{display:flex;gap:10px;align-items:center}.btn{border:1px solid var(--line);border-radius:7px;padding:10px 16px;display:inline-flex;justify-content:center;align-items:center;gap:8px;color:#566173;font-size:var(--fs-sm);font-weight:500;background:#fff;transition:all .15s;min-height:var(--tap);white-space:nowrap}.btn:hover{border-color:#bec6d0;background:#fbfcfd}.btn .icon{width:16px;height:16px}.btn.primary{background:var(--orange);border-color:var(--orange);color:white;box-shadow:0 3px 6px #1361e417}.btn.primary:hover{background:var(--orange-dark)}.btn.dark{background:var(--navy);border-color:var(--navy);color:#fff}.btn.soft{background:var(--peach);border-color:var(--peach);color:var(--orange)}.btn.green{background:#06b963;border-color:#06b963;color:white}.btn.small{font-size:var(--fs-xs);padding:8px 12px;min-height:var(--tap-compact);min-width:32px}.btn.text{padding:6px 4px;min-height:32px;border:0;background:transparent;color:var(--orange);box-shadow:none}.btn.danger{color:#c5504c;background:#fff5f5}.notice{display:flex;align-items:center;gap:12px;background:#eef7fe;border:1px solid #c7e2f7;padding:12px 16px;border-radius:8px;margin-bottom:23px;color:#175b8d;font-size:var(--fs-sm)}.notice .notice-icon{color:#0f7cc0;background:#dcf0fc;border-radius:50%;height:26px;width:26px;display:flex;align-items:center;justify-content:center}.notice .icon{width:15px;height:15px}.notice strong{color:#11486f;font-weight:600}.notice .btn{margin-left:auto;color:#106da8}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.stat-card{padding:20px 20px 16px;border:1px solid var(--line);background:#fff;border-radius:10px;position:relative;overflow:hidden}.stat-card.featured{background:var(--orange);border-color:var(--orange);color:#fff}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#808a99;font-size:var(--fs-sm);gap:5px}.stat-top>.icon{width:18px;height:18px;color:#a2acb9}.featured .stat-top,.featured .stat-top>.icon{color:#d5e5ff}.stat-number{font-family:Inter,var(--thai);font-size:29px;font-weight:600;letter-spacing:-1px;line-height:1.45;margin:13px 0 13px}.stat-number .currency{font-size:20px;font-weight:400;margin-right:4px;opacity:.9}.stat-number .unit{font-family:var(--thai);font-size:var(--fs-md);letter-spacing:0;color:#9aa3b1;font-weight:400;margin-left:6px}.stat-bottom{font-size:var(--fs-2xs);color:#97a0ad;display:flex;align-items:center;gap:5px}.featured .stat-bottom{color:#d5e5ff}.stat-bottom .mini-dot{height:5px;width:5px;border-radius:50%;background:#3ba2f7;margin-right:2px}.stat-bottom .green-text{color:var(--green)}.budget-bar{height:3px;background:#ffffff45;margin:1px 0 10px;border-radius:5px}.budget-bar>span{display:block;background:white;width:83%;height:100%;border-radius:5px}.stat-mini{margin-top:10px;height:13px;display:flex;gap:3px;align-items:flex-end}.stat-mini span{width:7px;background:#ece8f8;border-radius:2px 2px 0 0}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-header{padding:20px 22px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-title{font-size:var(--fs-base);font-weight:600;margin:0}.panel-subtitle{font-size:var(--fs-xs);color:#a0a6b2;margin:3px 0 0}.dashboard-middle{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(295px,1fr);gap:22px;margin-bottom:24px}.segment{display:inline-flex;gap:3px;padding:3px;background:#f5f6f8;border-radius:6px}.segment button{font-size:var(--fs-2xs);padding:8px 12px;min-height:34px;border:0;border-radius:4px;background:none;color:#929aaa}.segment button.active{background:#fff;color:#4f596b;box-shadow:0 1px 4px #1722380e}.chart-summary{padding:13px 22px 0;display:flex;align-items:baseline;gap:10px}.chart-total{font-family:Inter;font-size:24px;letter-spacing:-.8px;font-weight:600}.chart-comparison{font-size:var(--fs-2xs);color:var(--green);background:#eef8f3;padding:2px 6px;border-radius:4px}.chart-wrap{padding:5px 18px 0 12px;height:163px}.chart-wrap svg{width:100%;height:100%;overflow:visible}.chart-label{font-family:Inter,var(--thai);font-size:var(--fs-xs);fill:#a0a8b4}.chart-grid{stroke:#eff1f4;stroke-dasharray:4 5}.chart-legend{display:flex;justify-content:center;gap:19px;padding:3px 20px 17px;font-size:var(--fs-2xs);color:#939ba8}.legend-dot{display:inline-block;width:6px;height:6px;border-radius:2px;margin-right:6px;background:var(--orange)}.legend-dot.pale{background:#b9dbf9}.pending-list{padding:5px 21px 4px}.pending-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #f0f2f4}.pending-item:last-child{border:0}.soft-icon{height:36px;width:36px;display:flex;align-items:center;justify-content:center;border-radius:9px;color:#2f7ae0;background:#e9f1fe;flex-shrink:0}.soft-icon .icon{width:18px;height:18px}.soft-icon.purple{background:#f2effc;color:#9582ce}.soft-icon.blue{background:#edf3fd;color:#7499c9}.soft-icon.green{background:#e9f6f0;color:var(--green)}.soft-icon.coral{background:var(--peach);color:var(--orange)}.pending-item strong{font-size:var(--fs-sm);font-weight:500;display:block}.pending-item small{font-size:var(--fs-2xs);color:#9ba3af}.pending-item .count{font-size:var(--fs-h3);font-family:Inter;font-weight:600;margin-left:auto}.pending-item>.icon{width:14px;color:#a7afba}.panel-bottom-link{border-top:1px solid var(--line);padding:12px 20px;display:flex;justify-content:center;font-size:var(--fs-xs);gap:6px;color:#737e90;align-items:center}.panel-bottom-link .icon{width:13px;height:13px}.dashboard-bottom{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px}.table-panel .panel-header{padding-bottom:15px}.tabs{display:flex;gap:22px;padding:0 22px;border-bottom:1px solid var(--line);overflow-x:auto;white-space:nowrap}.tabs button{font-size:var(--fs-xs);color:#969eac;background:none;padding:14px 0;min-height:var(--tap);border:0;border-bottom:2px solid transparent}.tabs button.active{color:var(--orange);border-bottom-color:var(--orange);font-weight:500}.tabs button span{font-family:Inter;font-size:var(--fs-2xs);background:#f1f3f6;color:#8c97a6;margin-left:6px;padding:2px 6px;border-radius:4px}.tabs button.active span{background:var(--peach);color:var(--orange)}.tabs button span.alert,.tabs button.active span.alert{background:#dcf0fc;color:#0a6399;font-weight:600}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{color:#98a0ac;font-size:var(--fs-2xs);font-weight:400;background:#fcfcfd;border-bottom:1px solid #f0f1f4;padding:12px 18px}td{padding:14px 18px;border-bottom:1px solid #f0f1f4;font-size:var(--fs-xs);color:#657184}tr:last-child td{border-bottom:0}.doc-number{font-family:Inter;font-size:var(--fs-2xs);color:#5c687c;font-weight:500}.doc-name{font-size:var(--fs-xs);color:#485369;display:block;margin-bottom:2px}.doc-date{font-size:var(--fs-2xs);color:#a3aab5}.amount{font-family:Inter;font-weight:550;color:#35435a;font-size:var(--fs-sm);text-align:right}.badge{font-size:var(--fs-2xs);padding:4px 8px;border-radius:5px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.badge:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.badge.amber{color:#0a6ba6;background:#e0f3fd}.badge.blue{color:#668fc6;background:#eff5fd}.badge.purple{color:#9677c2;background:#f3effb}.badge.green{color:#399984;background:#eaf7f1}.badge.gray{color:#8b95a3;background:#f0f2f5}.badge.red{color:#cb6462;background:#fff1f1}
/* Whether an account can be reached on LINE, read at a glance down a column of people. The colour
   carries the meaning on screen; the label under it is what a screen reader and a hover both get. */
.line-state{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#f0f2f5;color:#b3bac4}
.line-state .icon{width:15px;height:15px}
.line-state.on{background:#eaf7f1;color:#399984}
.line-state.quiet{background:#fdf2e3;color:#c08a2e}
/* left:0 สำคัญ ไม่ใช่เรื่องความสวยงาม: ถ้าไม่กำหนด ตัวนี้จะไปตกตรงตำแหน่งตามลำดับเนื้อหา
   ซึ่งอาจอยู่นอกจอ แล้วทำให้ documentElement.scrollWidth โตเกินจริงทั้งที่หน้าไม่ได้ล้น
   เครื่องมือตรวจการล้นกรอบจะรายงานผลบวกลวงจากจุดนี้ จนไล่หาสาเหตุผิดทาง */
.sr-only{position:absolute;left:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.table-foot{padding:11px 18px;border-top:1px solid var(--line);font-size:var(--fs-2xs);color:#a2a9b4;display:flex;align-items:center;justify-content:space-between}.quick-actions{padding:18px}.quick-actions .panel-title{margin-bottom:14px}.quick-action{display:flex;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #f0f1f4}.quick-action:last-child{border-bottom:0}.quick-action .soft-icon{height:32px;width:32px;border-radius:7px}.quick-action strong{display:block;font-size:var(--fs-xs);font-weight:500}.quick-action small{font-size:var(--fs-eyebrow);color:#a0a8b3}.quick-action>.icon{width:12px;margin-left:auto;color:#9da7b5}.line-card{margin-top:17px;padding:17px;background:#eff7f3;border:1px solid #ddebe3;border-radius:10px;position:relative}.line-card .line-logo{font-family:Inter;font-size:var(--fs-2xs);font-weight:750;border-radius:7px;background:#06bd67;color:white;display:inline-flex;padding:7px 6px;margin-bottom:10px}.line-card strong{font-size:var(--fs-sm);display:block;color:#3b6653}.line-card p{font-size:var(--fs-2xs);color:#7d9b8b;margin:4px 0 12px}.line-card .btn{color:#478065;background:#fff;border-color:#dae8df;font-size:var(--fs-2xs);padding:8px 9px;width:100%;min-height:var(--tap-compact)}.app-footer{margin:0 36px;padding:16px 0;border-top:1px solid #e9ecf0;display:flex;justify-content:space-between;align-items:center;font-size:var(--fs-2xs);color:#a0a8b3;gap:10px}.app-footer>span{display:flex;align-items:center;gap:5px}.app-footer .icon{width:12px;height:12px}.app-footer a{color:#7e8999}
/* เลขรุ่น อ่านง่ายเมื่อต้องการอ้างอิงตอนแจ้งปัญหา แต่ไม่แย่งความสนใจจากเนื้อหา */
.app-version{font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;padding:1px 6px;border-radius:4px;background:#f0f2f5;color:#8b95a3;letter-spacing:.02em}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:17px 21px;border-bottom:1px solid var(--line)}.search-field{position:relative;flex:1;min-width:180px}.search-field .icon{position:absolute;left:11px;top:11px;width:15px;height:15px;color:#a5aeba}.search-field input{padding-left:34px;width:100%}input,select,textarea{border:1px solid #e1e5eb;border-radius:6px;padding:11px 12px;background:#fff;color:#4d5a70;font-size:var(--fs-md);min-width:0;min-height:var(--tap)}
textarea{min-height:88px}input::placeholder,textarea::placeholder{color:#a6aebc}input[type=checkbox],input[type=radio]{accent-color:var(--orange);width:20px;height:20px;min-height:0;cursor:pointer}input[type=file]{width:100%;padding:12px;background:#fafbfc;font-size:var(--fs-sm)}
/* ช่องตัวเลขไม่มีปุ่มลูกศรขึ้นลง (เจ้าของระบบสั่งเมื่อ 12 พ.ย. 2569)
   ทุกช่องตัวเลขในระบบนี้เป็นค่าที่พิมพ์เอง เช่น จำนวนเงิน อัตรา ระยะทาง ไม่ใช่ตัวนับทีละขั้น
   ปุ่มลูกศรจึงกินที่ด้านขวาของช่องโดยไม่มีใครใช้ และกดพลาดทำให้ยอดเงินเปลี่ยนโดยไม่ตั้งใจได้
   ยังเป็น type=number เหมือนเดิม แป้นตัวเลขบนมือถือและการตรวจค่ายังทำงานครบ
   ตารางเคลียร์ทำแบบนี้อยู่แล้วที่ clearance.css:43-44 ตรงนี้คือขยายให้ทั้งระบบใช้กติกาเดียวกัน */
input[type=number]{appearance:textfield;-moz-appearance:textfield}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
label{display:block;font-size:var(--fs-sm);font-weight:500;color:#657085;margin-bottom:7px}label .required{color:var(--orange);margin-left:3px}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.form-panel{padding:27px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-field input:not([type=checkbox]):not([type=radio]),.form-field select,.form-field textarea{width:100%}.form-field.full{grid-column:1/-1}.field-note{font-size:var(--fs-xs);color:#9ba4b2;margin:6px 0 0}.form-section-title{font-size:var(--fs-h3);font-weight:500;margin:0 0 5px}.form-description{font-size:var(--fs-sm);color:#97a0ac;margin:0 0 23px}.stepper{display:flex;margin:0 0 26px;padding:0;list-style:none;gap:0}.stepper li{flex:1;position:relative;font-size:var(--fs-xs);color:#a0a8b4;display:flex;gap:9px;align-items:center}.stepper li:after{content:'';height:1px;flex:1;background:#e0e5eb;margin:0 14px 0 5px}.stepper li:last-child:after{display:none}.step-number{display:flex;align-items:center;justify-content:center;width:27px;height:27px;border:1px solid #dfe4eb;background:#fff;border-radius:50%;font-family:Inter;font-size:var(--fs-xs);flex-shrink:0}.stepper li.active{color:var(--orange)}.stepper li.active .step-number{color:white;background:var(--orange);border-color:var(--orange)}.stepper li.complete .step-number{color:var(--green);background:#e9f7ef;border-color:#e9f7ef}.stepper .icon{width:14px;height:14px}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.form-error{color:#c95041;font-size:var(--fs-sm);display:none;background:#fdf0ef;padding:10px 13px;border-radius:5px;margin-top:18px}.form-error.visible{display:block}.summary-panel{padding:22px;height:max-content}.summary-panel h3{font-size:var(--fs-md);font-weight:500;margin:0 0 20px}.summary-row{display:flex;justify-content:space-between;font-size:var(--fs-sm);margin:13px 0;gap:10px}.summary-row span:first-child{color:#909aaa}.summary-row.total{border-top:1px solid var(--line);padding-top:17px;font-size:var(--fs-lg);color:var(--orange);font-weight:600}.summary-note{background:#f7f8fa;border-radius:6px;padding:12px;font-size:var(--fs-xs);color:#919cab;margin-top:20px}.summary-note .icon{width:14px;height:14px;vertical-align:middle;margin-right:4px}.expense-item{border:1px solid var(--line);border-radius:8px;padding:20px;margin-bottom:15px}
/* แถวค่าใช้จ่ายตอนเคลียร์ · หนึ่งรายการต่อหนึ่งแถว ให้เอกสารที่มีสิบห้ายี่สิบรายการยังกวาดตาดูได้
   เส้นคั่นบางกว่ากรอบการ์ด เพราะสิ่งที่ต้องเห็นคือลำดับของรายการ ไม่ใช่ขอบของแต่ละอัน */
.expense-rows{border:1px solid var(--line);border-radius:8px;overflow:hidden}
.expense-row{padding:13px 16px;border-top:1px solid var(--line)}
.expense-row:first-child{border-top:0}
.expense-row:nth-child(even){background:#fbfcfd}
.expense-row-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:4px;font-size:var(--fs-sm)}
.expense-row-no{flex:none;width:21px;height:21px;border-radius:50%;background:var(--peach);color:var(--orange);font-size:var(--fs-xs);font-weight:700;display:grid;place-items:center}
/* ชื่อรายการยอมหดและตัดด้วย … เพื่อให้หัวแถวอยู่บรรทัดเดียว หลังเพิ่มช่อง "ไม่ได้ใช้เงิน"
   เข้ามาอีกหนึ่งชิ้น หัวแถวเคยตกบรรทัดจนรายการสูงเกินเกณฑ์ความหนาแน่น */
.expense-row-name{font-weight:600;font-size:var(--fs-md);margin-right:auto;flex:1 1 auto;min-width:6ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* line-height ของ .inline-check (1.6) ทำให้บรรทัดหัวรายการสูงขึ้นจนความหนาแน่นเกินเกณฑ์
   บีบเฉพาะกล่องนี้ ช่องกดยังสูงตามเกณฑ์สัมผัสในจอเล็กด้วยกฎ min-width/min-height ข้างล่าง */
.expense-row-cancel{margin:0;font-size:var(--fs-xs);white-space:nowrap;min-width:32px;line-height:1.2}
/* ป้าย "ขอเบิก …" เป็นชิ้นที่สูงที่สุดในหัวแถว จึงเป็นตัวกำหนดความสูงของทั้งบรรทัด
   บีบ padding ลงเล็กน้อยเพื่อชดเชยช่อง "ไม่ได้ใช้เงิน" ที่เพิ่มเข้ามา โดยยังอ่านออกเท่าเดิม */
.expense-row-head .badge{padding:2px 9px;line-height:1.45}
/* ที่ว่างสำหรับผลตรวจสลิปยังไม่มีข้อความ แต่ยังกินแถวของ grid พร้อม gap อีกหนึ่งแถว
   ทุกรายการจึงสูงขึ้นโดยไม่มีอะไรให้อ่าน ซ่อนไว้จนกว่าจะมีผลตรวจจริง */
.expense-row-body>.form-field.full:empty{display:none}
.expense-row-route{margin:0 0 9px 30px;font-size:var(--fs-xs);color:var(--muted);display:flex;align-items:center;gap:5px}
.expense-row-route .icon{width:13px;height:13px;flex:none}
/* รายละเอียดกว้างสุด เพราะเป็นช่องเดียวที่ข้อความยาวจริง อีกสองช่องกว้างคงที่พอให้ตัวเลขและปุ่มอยู่ได้ */
.expense-row-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,242px) minmax(104px,120px);gap:11px;align-items:end;margin-left:30px}
.expense-row-body .form-field{margin:0}
.expense-row-body label{font-size:var(--fs-xs);margin-bottom:4px}
.expense-row-body input{padding:7px 10px;font-size:var(--fs-sm)}
.expense-row-body .field-note{margin-top:3px;font-size:var(--fs-2xs)}
/* รายการที่ไม่ได้ใช้เงินต้องสะดุดตาตั้งแต่กวาดสายตา ไม่ใช่ต้องอ่านทีละบรรทัด
   ใช้สีเตือนเดียวกับที่อื่นในระบบ และมีข้อความกำกับด้วย เพราะพิมพ์ขาวดำแล้วสีหายไป */
.expense-row.is-cancelled{background:#fdf2f0;border-left:3px solid var(--bad)}
.expense-row.is-cancelled .expense-row-name{text-decoration:line-through;color:var(--bad)}
.expense-row.is-cancelled .expense-row-cancel{color:var(--bad);font-weight:600}
.expense-row.is-cancelled input[readonly]{color:var(--bad);font-weight:600}
/* ปุ่มกับชื่อไฟล์อยู่บรรทัดเดียวกัน ชื่อไฟล์ยาวถูกตัดด้วย ellipsis แทนที่จะดันแถวให้สูงขึ้น */
.evidence-controls{display:flex;gap:5px;align-items:center;min-width:0}
/* ปุ่มต้องไม่ยอมหด ไม่งั้นมันจะหดจนตัวหนังสือบนปุ่มขาด ซึ่งอ่านไม่รู้เรื่องเลย
   ของที่ยอมหดได้คือชื่อไฟล์ เพราะมันมีจุดไข่ปลาและมีชื่อเต็มอยู่ใน title อยู่แล้ว */
.evidence-cell .btn.small{flex:0 0 auto;padding:6px 9px;font-size:var(--fs-xs);white-space:nowrap}
.btn.small.icon-only{padding:6px}
.btn.small.icon-only .icon{margin:0}
.evidence-cell .file-name{margin:0;font-size:var(--fs-2xs);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* ผู้ร่วมเดินทางไม่ได้กรอกทุกครั้ง พับไว้ไม่ให้กินที่ของรายการที่เหลือ */
.expense-row-more{margin:10px 0 0 30px}
.expense-row-more>summary{cursor:pointer;font-size:var(--fs-xs);color:var(--orange);width:fit-content;min-height:32px;display:flex;align-items:center}
.expense-row-more .passenger-box{margin-top:10px}.expense-item-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;font-size:var(--fs-sm)}.expense-item-header strong{font-weight:500}.route-box{grid-column:1/-1;padding:17px;background:#f8fafc;border:1px solid #e8edf4;border-radius:7px}.route-box .form-grid{gap:14px}.passenger-box{margin-top:15px;padding-top:15px;border-top:1px dashed #dbe3ee}.passenger-box .form-grid{gap:14px}.passenger-box .form-grid+.form-grid{margin-top:16px}.passenger-box .field-note strong{font-weight:600;color:#334155}/* กล่องตัดภาพ · ปุ่มจับมุมต้องไม่เล็กกว่า 32px เพื่อให้ใช้นิ้วบนจอโทรศัพท์ได้จริง
   touch-action:none กันเบราว์เซอร์แย่งเอาการลากไปเลื่อนหน้าจอแทนการลากกรอบ */
/* ภาพเข้ามาที่ด้านยาวได้ถึง 2000px (forms.js MAX_IMAGE_EDGE) และกล่องนี้เปิดแบบ wide = 1020px
   ถ้าจำกัดแค่ max-width ภาพแนวตั้งจะสูงราว 1360px กล่องเกิน max-height:90vh แล้วมี scrollbar
   ของตัวเอง คนลากกรอบจึงเห็นภาพไม่ครบและต้องเลื่อนลงไปหาปุ่ม "ใช้ส่วนที่เลือก"
   เพดานเป็น vh จึงคุมทั้งจอ 1440x900 และ 393x852 ด้วยค่าเดียว ไม่ต้องมี media query
   width:fit-content ทำให้กรอบ stage หดเท่าภาพจริง เพราะ .crop-frame วางด้วย position:absolute
   โดยคิดว่าขอบซ้ายบนของ stage คือขอบซ้ายบนของ canvas ถ้า stage กว้างกว่าภาพ กรอบจะเพี้ยน */
.crop-stage{position:relative;display:block;width:fit-content;max-width:100%;margin:0 auto;line-height:0;touch-action:none;background:#1f2937;border-radius:8px;overflow:hidden}
.crop-stage canvas{display:block;width:auto;height:auto;max-width:100%;max-height:56vh;opacity:.45}
.crop-frame{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(15,23,42,.35);cursor:move;touch-action:none}
.crop-frame i{position:absolute;width:32px;height:32px;display:block}
.crop-frame i::after{content:'';position:absolute;width:14px;height:14px;background:#fff;border:2px solid var(--orange);border-radius:3px}
.crop-frame i[data-corner="nw"]{left:-16px;top:-16px;cursor:nwse-resize}
.crop-frame i[data-corner="nw"]::after{right:2px;bottom:2px}
.crop-frame i[data-corner="ne"]{right:-16px;top:-16px;cursor:nesw-resize}
.crop-frame i[data-corner="ne"]::after{left:2px;bottom:2px}
.crop-frame i[data-corner="sw"]{left:-16px;bottom:-16px;cursor:nesw-resize}
.crop-frame i[data-corner="sw"]::after{right:2px;top:2px}
.crop-frame i[data-corner="se"]{right:-16px;bottom:-16px;cursor:nwse-resize}
.crop-frame i[data-corner="se"]::after{left:2px;top:2px}

/* แผนที่ในกล่องรายละเอียด พับไว้ ให้กล่องสั้นพอที่จะเห็นปุ่มโดยไม่ต้องเลื่อนผ่านภาพทุกใบ */
.map-details{margin-top:7px}
.map-details>summary{display:inline-flex;align-items:center;gap:5px;cursor:pointer;font-size:var(--fs-xs);color:var(--orange);width:fit-content;min-height:32px}
.map-details>summary .icon{width:13px;height:13px}
.map-details .route-map{margin-top:9px;max-width:420px}

/* บัญชีปลายทางในกล่องบันทึกการโอน · เน้นให้เห็นก่อนช่องกรอกอื่น
   เลขบัญชีใช้ฟอนต์ความกว้างเท่ากันทุกตัว เพราะคนต้องอ่านทีละหลักไปพิมพ์ในแอปธนาคาร
   ฟอนต์สัดส่วนทำให้ 1 กับ 7 กว้างไม่เท่ากัน ตาจึงหลงหลักได้ง่ายเวลาไล่ตัวเลขยาว ๆ */
.payee-box{background:var(--peach);border:1px solid #cfe0fb;border-radius:9px;padding:15px 17px;margin-bottom:18px}
.payee-head{display:flex;align-items:center;gap:7px;font-size:var(--fs-sm);font-weight:600;color:var(--orange-dark);margin-bottom:12px}
.payee-box .detail-meta{margin:0}
.payee-account{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:13px;padding-top:13px;border-top:1px solid #cfe0fb}
.payee-account label{display:block;font-size:var(--fs-xs);color:var(--muted);margin-bottom:3px}
.payee-number{font-family:ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;font-size:var(--fs-h3);letter-spacing:.06em;color:var(--ink)}
.notice.warn{background:#fff8ec;border-color:#f3dcb4;color:#8a5a12}
.notice.warn .icon{color:#c07c15}
.notice.warn p{margin:3px 0 0;font-size:var(--fs-xs)}
/* ช่องเตือนรหัสศูนย์ต้นทุนซ้ำว่างอยู่เกือบตลอดเวลา ถ้าไม่ซ่อนจะเหลือช่องว่างคั่นกลางฟอร์ม */
[data-cost-center-shared]:empty{display:none}
.cost-center-shared{margin:0}
/* ป้าย "ใช้ร่วมกับ" อยู่หลัง <code> ในช่องเดียวกัน ไม่ขึ้นบรรทัดใหม่เองเหมือนใต้ชื่อเอกสาร */
.shared-count{display:block;margin-top:3px}

/* ── กล่องยืนยันการพิจารณา ───────────────────────────────────────────────────
   ย้ำว่ากำลังยืนยันเอกสารใบไหน เป็นเงินเท่าไร ใช้ทั้งสองขนาดจอ เพราะเป็นเนื้อหา ไม่ใช่โครง */
.decision-recap{background:var(--peach,#fbf7f1);border:1px solid var(--line);border-radius:11px;padding:12px 14px;margin-bottom:12px;display:flex;flex-direction:column;gap:2px}
.decision-recap strong{font-size:var(--fs-base)}
.decision-amount{font-family:Inter,system-ui,sans-serif;font-weight:600;font-size:var(--fs-h3);margin-top:4px}
.decision-effect{margin:0 0 12px}

/* ── สรุปหัวเอกสาร · ขึ้นเฉพาะจอแคบ ──────────────────────────────────────────
   จอกว้างเห็นยอดรวมได้โดยไม่ต้องเลื่อนอยู่แล้ว จึงไม่ต้องกินที่ซ้ำ */
.detail-summary{display:none}

/* คำเตือนสลิปที่เคยถูกใช้แล้ว · ขึ้นก่อนกดบันทึก ไม่ใช่หลังจากนั้น
   วางเหนือกล่องข้อความผิดพลาดของฟอร์ม จึงต้องมีระยะห่างของตัวเองเมื่อมีคำเตือนขึ้นจริง */
[data-slip-duplicate]:empty,[data-refund-check]:empty,[data-item-check]:empty{display:none}
.slip-reuse{margin:14px 0 0}
.notice.slip-reuse[data-slip-state="duplicate"]{background:#fff0f0;border-color:#e39ca1;color:#9f1d24;box-shadow:inset 3px 0 0 #c9313d}
.notice.slip-reuse[data-slip-state="duplicate"] strong,.notice.slip-reuse[data-slip-state="duplicate"] p,.notice.slip-reuse[data-slip-state="duplicate"] .icon{color:inherit}
[data-theme='dark'] .notice.slip-reuse[data-slip-state="duplicate"]{background:#3a161c;border-color:#a74955;color:#ffb9bd;box-shadow:inset 3px 0 0 #f16b76}
/* ชนิดหลักฐานอยู่ในบรรทัดเดียวกับปุ่มแนบไฟล์ · ห้ามขึ้นบรรทัดใหม่
   แถวรายการมีเกณฑ์ความสูงของมันอยู่ เพราะเอกสารที่มีสิบห้ายี่สิบรายการต้องยังกวาดตาได้
   ช่องนี้จึงต้องเล็กและคงที่ ไม่ยืดตามช่อง และไม่ดันคอลัมน์อื่นให้แคบลง */
.evidence-kind{flex:0 0 auto;width:auto;max-width:80px;min-width:0;font-size:var(--fs-2xs);padding:5px 4px}
/* คำเตือนของรายการอยู่ในแถวของรายการนั้นเอง ไม่ใช่กองรวมท้ายฟอร์ม
   เอกสารสิบห้ารายการที่เตือนรวมไว้ท้ายฟอร์ม แปลว่าต้องเลื่อนหาเองว่าเป็นรายการไหน */
[data-item-check] .slip-reuse{margin:10px 0 0;font-size:var(--fs-xs)}
/* คำเตือนกินเต็มบรรทัด จึงต้องอยู่ท้ายแถวเสมอ ไม่งั้นมันจะไปคั่นกลางจนยอดเงินตกไปอยู่บรรทัดถัดไป */
[data-item-check]{order:9}

/* คิวอนุมัติ · แถบค้นหาและผลการพิจารณาใบล่าสุด */
.queue-toolbar{margin-bottom:16px}
.notice.queue-done{align-items:center}
.notice.queue-done p{margin:2px 0 0;font-size:var(--fs-xs)}

/* ความสูงตามภาพ ไม่ใช่ค่าคงที่
   เดิมกล่องนี้สูง 145px ตายตัวพร้อม overflow:hidden ซึ่งมาจากตอนที่ข้างในเป็นภาพร่าง SVG
   พอเปลี่ยนมาใส่ภาพแผนที่จริงขนาด 640×360 ภาพจึงถูกตัดเหลือแค่แถบบน มองไม่เห็นเส้นทาง
   กรอบและพื้นหลังย้ายไปอยู่ที่ img แทน จะได้ไม่เห็นเป็นกรอบซ้อนกันสองชั้น */
.route-map{position:relative;margin-top:15px}.route-map-label{position:absolute;bottom:8px;left:9px;background:#fbfdffed;padding:4px 7px;border-radius:4px;color:#80877e;font-size:var(--fs-2xs)}.route-calc{display:flex;justify-content:space-between;align-items:center;font-size:var(--fs-sm);padding:10px 0 0;color:#8191a6;gap:10px}.route-calc strong{color:var(--orange);font-family:Inter}.empty-state{text-align:center;padding:45px 20px;color:#8f9bad}.empty-state>.icon{width:35px;height:35px;color:#c0c9d3;margin-bottom:10px}.empty-state h3{font-size:var(--fs-lg);color:#63738a;font-weight:500;margin:5px}.empty-state p{font-size:var(--fs-sm)}.route-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.route-card{padding:22px}.route-card h3{font-size:var(--fs-base);font-weight:500;margin:12px 0 15px}.route-points{border-left:1px dashed #c9d2df;padding-left:18px;margin:15px 0 20px 6px;font-size:var(--fs-sm)}.route-points>div{position:relative;margin:15px 0}.route-points>div:before{content:'';width:6px;height:6px;position:absolute;left:-22px;top:6px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 3px white}.route-points>div:last-child:before{background:var(--navy)}.route-card-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:15px}.route-card-footer strong{font-family:Inter;font-weight:500;font-size:var(--fs-h3)}.route-card-footer small{font-family:var(--thai);font-size:var(--fs-xs);color:#9da6b2}.audit-list{padding:5px 25px}.audit-item{display:flex;gap:17px;padding:21px 0;border-bottom:1px solid var(--line)}.audit-item:last-child{border:0}.audit-content{flex:1}.audit-content strong{font-size:var(--fs-md);font-weight:500}.audit-content p{font-size:var(--fs-sm);color:#8e99a9;margin:3px 0 0}.audit-time{font-size:var(--fs-xs);color:#a2aab7;white-space:nowrap}.info-banner{background:#edf3fc;border:1px solid #dde7f8;border-radius:7px;padding:13px 17px;font-size:var(--fs-sm);color:#7088ad;margin-bottom:20px;display:flex;gap:10px;align-items:flex-start}.info-banner .icon{width:16px;height:16px;margin-top:2px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-panel{padding:25px}.settings-panel h3{font-size:var(--fs-lg);font-weight:500;margin:0 0 18px}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);gap:15px}.setting-row:last-child{border:0}.setting-row strong{font-size:var(--fs-sm);font-weight:500}.setting-row small{display:block;color:#9da6b3;font-size:var(--fs-xs)}.modal-overlay{position:fixed;inset:0;background:#10203677;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:25px;z-index:100}.modal{background:#fff;border-radius:14px;padding:27px;width:620px;max-width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 80px #07162c40}.modal.wide{width:1020px}
/* ตารางในกล่องเนื้อหายาวต้องตัดบรรทัดได้
   ตารางทั่วไปตั้ง white-space:nowrap ไว้เพื่อให้คอลัมน์ตัวเลขและสถานะอ่านง่าย
   แต่รายการค่าเดินทางมีชื่อสถานที่เต็ม ๆ สองแห่งอยู่ในช่องเดียว พอห้ามตัดบรรทัด
   ตารางจะกว้างเกินกล่องจนต้องเลื่อนซ้ายขวาหาคอลัมน์จำนวนเงิน ซึ่งเป็นคอลัมน์ที่คนมาดู */
.modal .doc-wrap{white-space:normal}
.modal table td:first-child{white-space:normal;min-width:220px}
.modal table td.amount,.modal table th:last-child{white-space:nowrap}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:10px}.modal-head h2{font-size:var(--fs-h2);font-weight:500;margin:0}.modal p{font-size:var(--fs-md);color:#919dad}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.detail-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;background:#f8f9fb;border-radius:7px;padding:17px;margin:15px 0 22px}.detail-meta label{color:#9da6b5;font-size:var(--fs-xs);margin-bottom:3px}.detail-meta strong{font-size:var(--fs-sm);font-weight:500}.detail-flow{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.detail-flow span{font-size:var(--fs-2xs);background:#f2f4f7;padding:5px 9px;border-radius:5px;color:#929cac}.detail-flow span.done{background:#eaf7ef;color:#4b9c7e}.success-panel{text-align:center;padding:50px 25px}.success-circle{width:65px;height:65px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#eaf7f0;color:#38a17f;margin:0 auto 18px}.success-circle .icon{width:31px;height:31px}
.alert-panel{text-align:center;padding:34px 22px 8px}
.alert-circle{width:62px;height:62px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fdeceb;color:#c95041;margin:0 auto 18px}
.alert-circle .icon{width:28px;height:28px;stroke-width:2.4}
/* A message may carry an address or a reference with nothing to break on; it must still stay inside. */
.alert-panel h2{font-size:var(--fs-h3);font-weight:600;color:var(--ink);margin:0;line-height:1.6;overflow-wrap:anywhere}
.alert-panel .alert-hint{margin:18px auto 0;max-width:430px;background:#fdf0ef;color:#a8443a;border-radius:8px;padding:13px 16px;font-size:var(--fs-sm);line-height:1.95;text-align:left;overflow-wrap:anywhere}.success-panel h2{font-size:23px;font-weight:500;margin:0 0 8px}.success-panel p{color:#96a0ae;font-size:var(--fs-md);max-width:520px;margin:8px auto}.success-panel .heading-actions{justify-content:center;margin-top:24px;flex-wrap:wrap}.toast{position:fixed;bottom:28px;left:calc(50% + 100px);transform:translate(-50%,15px);background:var(--navy);color:#fff;box-shadow:0 6px 30px #18243720;font-size:var(--fs-md);padding:13px 21px;border-radius:8px;max-width:90vw;z-index:150;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.login-layout{text-align:center;padding:20px 12px}.login-layout .brand{color:var(--navy);justify-content:center;margin-bottom:28px}.login-layout .brand span{color:#9da8b7}.login-layout h2{font-weight:500;font-size:22px}.login-layout .form-grid{text-align:left;grid-template-columns:1fr;margin-top:20px}.login-layout .btn{width:100%;margin-top:15px}.login-separator{color:#aab1bb;font-size:var(--fs-xs);margin-top:15px}.inline-check{display:flex;align-items:center;gap:8px;font-size:var(--fs-sm);font-weight:400;margin-top:14px}.inline-check input{flex-shrink:0}.print-preview{border:1px solid var(--line);padding:25px;margin-top:20px}.print-preview h2{font-size:var(--fs-h3)}.sidebar-scrim{display:none}#print-root{display:none}.stack{display:flex;flex-direction:column;gap:20px}.finance-subnav{margin-bottom:22px}.category-row{padding:12px 0;border-bottom:1px solid var(--line);font-size:var(--fs-sm);display:flex;align-items:center;gap:15px}.category-row span:first-child{flex:1}.category-row code{font-family:Inter;font-size:var(--fs-xs);color:#7f8ba0}.integration-status{font-size:var(--fs-2xs);padding:3px 7px;border-radius:4px;background:#f2f4f7;color:#94a0af}.gl-input{width:115px;font-family:Inter;font-size:var(--fs-sm)}.disclaimer{font-size:var(--fs-xs);color:#9ba5b3;margin:17px 0}.money-emphasis{font-family:Inter;font-weight:600;color:var(--orange);font-size:27px;margin:10px 0}.dialog-form{display:flex;flex-direction:column;gap:15px}.file-name{font-size:var(--fs-xs);color:var(--green);margin-top:6px;word-break:break-all}.badge-count{font-family:Inter;font-size:var(--fs-2xs);background:#f4f5f8;padding:3px 7px;border-radius:5px;color:#a0a8b4}.input-with-unit{display:flex;align-items:center;gap:8px}.input-with-unit input{width:100%}.input-with-unit span{color:#a1aab7;font-size:var(--fs-xs);white-space:nowrap}
@media(min-width:1600px){main{padding-top:40px}.dashboard-middle{grid-template-columns:1.9fr 1fr}.chart-wrap{height:190px}.stat-card{padding:24px}.stat-number{font-size:34px}td{padding-top:17px;padding-bottom:17px}.dashboard-bottom{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:1250px){.sidebar{width:216px;padding-left:13px;padding-right:13px}.app-shell{margin-left:216px}.sidebar nav a{font-size:var(--fs-sm)}.brand strong{font-size:23px}.brand-mark{width:38px}.topbar{padding:0 25px}main{padding:25px}.app-footer{margin:0 25px}.dashboard-bottom{grid-template-columns:minmax(0,1fr) 225px}.stats-grid{gap:12px}.stat-card{padding:17px}.stat-number{font-size:25px}.stat-top{font-size:var(--fs-xs)}.content-grid{grid-template-columns:minmax(0,1fr) 250px}.dashboard-middle{gap:18px;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)}.dashboard-bottom{gap:18px}.page-heading h1{font-size:23px}.route-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1050px){.sidebar{width:200px}.app-shell{margin-left:200px}.workspace-label{font-size:var(--fs-sm)}.sidebar nav a{padding:10px 9px;gap:9px}.brand{padding:0 6px}.brand strong{font-size:22px}.dashboard-bottom{grid-template-columns:1fr}.dashboard-bottom>aside{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.line-card{margin-top:0}.stat-number{font-size:22px}.stat-top .icon{width:15px}.heading-actions .btn{font-size:var(--fs-xs);padding:9px 11px}.content-grid{grid-template-columns:1fr}.summary-panel{display:none}.topbar{height:66px}.stats-grid{gap:10px}.stat-card{padding:15px}.stat-top{font-size:var(--fs-2xs)}.dashboard-middle{grid-template-columns:1.4fr 1fr}.segment button{padding:4px 5px}.panel-header{padding-left:18px;padding-right:18px}.app-footer>span:nth-child(2){display:none}.form-grid{gap:16px}.sidebar-user strong{font-size:var(--fs-2xs)}.sidebar-user{gap:7px}.sidebar-user .icon-btn{display:none}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);width:240px;transition:transform .2s}.sidebar.open{transform:translateX(0)}.sidebar-scrim.show{display:block;position:fixed;inset:0;background:#17223866;z-index:35}.app-shell{margin-left:0}.mobile-menu{display:flex}.topbar{padding:0 20px}.breadcrumb{gap:10px}.topbar-actions{gap:12px}main{padding:23px 20px}.page-heading{align-items:flex-start}.page-heading h1{font-size:22px}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.heading-actions .period-btn{display:none}.stats-grid{gap:12px}.stat-top{font-size:var(--fs-xs)}.stat-number{font-size:25px}.dashboard-middle{grid-template-columns:1.3fr 1fr}.dashboard-bottom>aside{grid-template-columns:1fr 1fr}.toast{left:50%}.app-footer{margin:0 20px}.form-panel{padding:22px}.stepper li{font-size:var(--fs-2xs)}.stepper li:after{margin-right:8px;margin-left:3px}.stepper{gap:3px}.settings-grid{grid-template-columns:1fr}.sidebar-user .icon-btn{display:flex}.route-grid{gap:15px}}
@media(max-width:600px){/* เคยย่อตัวอักษรลงบนจอเล็ก ซึ่งกลับด้านกับความจริง: จอเล็กคือที่ที่ต้องอ่านง่ายที่สุด */
body{font-size:var(--fs-base)}
/* Text buttons are the way into a document from a list. At their desktop size they are a 14px
   target, which a thumb cannot hit; the padding grows the tap area without moving the text. */
.btn.text{padding:9px 2px}.table-scroll .btn.text{padding:10px 2px}
.topbar{height:62px;padding:0 15px}.breadcrumb-root,.slash,.topbar-divider{display:none}.topbar-actions{gap:10px}.demo-pill{font-size:var(--fs-2xs)}.page-heading{display:block;margin-bottom:20px}.page-heading h1{font-size:23px}.page-heading .heading-actions{justify-content:flex-start;margin-top:16px}.page-heading .heading-actions .btn{font-size:var(--fs-sm)}main{padding:23px 16px}.stats-grid{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.stat-card{padding:17px 15px;min-height:143px}.stat-number{font-size:26px;margin:9px 0}.stat-bottom{font-size:var(--fs-eyebrow)}.stat-top{font-size:var(--fs-xs)}.notice{align-items:flex-start;font-size:var(--fs-xs);padding:12px;gap:8px}.notice .notice-icon{flex-shrink:0}.notice .btn{font-size:var(--fs-2xs);white-space:nowrap;margin-top:3px}.dashboard-middle{grid-template-columns:1fr;gap:18px;margin-bottom:18px}.chart-wrap{height:180px}.dashboard-bottom>aside{grid-template-columns:1fr;gap:16px}.dashboard-bottom{gap:18px}.pending-list{padding-top:0;padding-bottom:0}.pending-item{padding:12px 0}.pending-item .soft-icon{height:32px;width:32px}.tabs{gap:20px;padding:0 17px}.panel-header{padding-left:17px;padding-right:17px}.table-panel th,.table-panel td{padding-left:15px;padding-right:15px}.table-panel td{padding-top:13px;padding-bottom:13px}.app-footer{margin:0 16px;font-size:var(--fs-2xs);flex-wrap:wrap}.stepper li{flex-direction:column;align-items:center;gap:6px;text-align:center}.stepper li:after{display:none}.form-panel{padding:20px 17px}.form-grid{grid-template-columns:1fr;gap:17px}.expense-item{padding:16px 12px}
/* จอแคบวางสามช่องเรียงกันไม่ได้ แต่วางสองช่องได้ รายละเอียดกินเต็มบรรทัดเพราะข้อความยาวที่สุด
   ส่วนยอดเงินกับหลักฐานแบ่งครึ่งบรรทัดถัดไป เรียงลงมาทีละช่องจะทำให้แถวสูงเกินจำเป็น
   เลิกเยื้องซ้ายด้วย เพื่อเอาความกว้างคืนมาให้ช่องกรอก */
.expense-row{padding:12px}
.expense-row-body{grid-template-columns:1fr 1fr;gap:9px 10px;margin-left:0}
.expense-row-body>.form-field:first-child{grid-column:1/-1}
.expense-row-route,.expense-row-more{margin-left:0}
.expense-row-name{margin-right:0}
.expense-row-cancel{width:100%}.form-field.full{grid-column:auto}.stepper{margin-bottom:23px}.route-box{padding:12px;grid-column:auto}.route-grid{grid-template-columns:1fr}.toolbar{padding:14px;gap:8px}.toolbar select{max-width:100%}.search-field{flex-basis:100%}.modal-overlay{padding:14px}.modal{padding:22px 18px}.modal-head h2{font-size:var(--fs-h3)}.detail-meta{grid-template-columns:1fr 1fr;gap:15px}.modal-footer{flex-wrap:wrap}.audit-list{padding:0 17px}.audit-time{font-size:var(--fs-2xs);white-space:normal;max-width:65px}.audit-item{gap:11px}.audit-content strong{font-size:var(--fs-sm)}.audit-content p{font-size:var(--fs-xs)}.success-panel{padding:36px 17px}.success-panel h2{font-size:20px}.success-panel p{font-size:var(--fs-sm)}.route-calc{font-size:var(--fs-xs)}.info-banner{font-size:var(--fs-xs)}.quick-actions{padding:18px}.quick-action{padding:12px 0}.quick-action strong{font-size:var(--fs-sm)}.line-card{padding:20px}.line-card strong{font-size:var(--fs-base)}.line-card p{font-size:var(--fs-sm)}.line-card .btn{font-size:var(--fs-sm)}.gl-input{width:95px}
/* ── ตรวจเอกสารบนโทรศัพท์ ────────────────────────────────────────────────────
   สรุปอยู่บน ปุ่มอยู่ล่าง ทั้งคู่ไม่เลื่อนหนี ตรงกลางเลื่อนอ่านได้อิสระ
   เดิมยอดรวมอยู่ท้ายรายการและปุ่มตัดสินใจอยู่ท้ายกล่อง เอกสารสิบรายการจึงต้องเลื่อนสองรอบ
   กว่าจะรู้ว่ากำลังอนุมัติกี่บาท แล้วเลื่อนอีกรอบกว่าจะถึงปุ่ม
   โครงนี้ใช้เฉพาะจอแคบ จอคอมพิวเตอร์คงของเดิมไว้ตามที่ตกลง */
.detail-summary{display:flex;position:sticky;top:0;z-index:3;gap:12px;align-items:flex-start;justify-content:space-between;
    background:var(--card,#fff);border-bottom:1px solid var(--line);margin:0 -18px 14px;padding:10px 18px 11px}
.detail-summary-who{display:flex;flex-direction:column;min-width:0}
.detail-summary-who strong{font-size:var(--fs-base);line-height:1.4}
.detail-summary-total{text-align:right;display:flex;flex-direction:column;flex-shrink:0}
.detail-summary-total strong{font-family:Inter,system-ui,sans-serif;font-size:var(--fs-h3);line-height:1.3}
.detail-summary-total span{font-size:var(--fs-2xs);color:var(--muted)}
/* สามปุ่มน้ำหนักเท่ากัน · ไม่อนุมัติกับส่งกลับแบ่งแถวบน อนุมัติเต็มความกว้างแถวล่าง
   พิมพ์ถูกลดเป็นปุ่มรอง เพราะไม่ใช่สิ่งที่คนถือโทรศัพท์มาทำ */
.request-detail-footer{position:sticky;bottom:0;z-index:3;background:var(--card,#fff);border-top:1px solid var(--line);
    margin:14px -18px 0;padding:11px 18px calc(11px + env(safe-area-inset-bottom,0px));
    display:grid;grid-template-columns:1fr 1fr;gap:8px}
.request-detail-footer .btn{margin:0;min-height:46px;justify-content:center}
.request-detail-footer .btn.primary{grid-column:1/-1;order:2}
.request-detail-footer .detail-print{grid-column:1/-1;order:3;min-height:40px;font-size:var(--fs-xs);background:none;border:0;color:var(--muted)}
}
@media print{body{background:white;font-size:11pt;color:#111}.sidebar,.app-shell,#modal-root,.toast,.sidebar-scrim{display:none!important}#print-root{display:block!important;padding:15px}
/* Printing a stack: each document starts its own page, and none is split across a page break. */
#print-root .print-sheet{break-after:page;page-break-after:always;break-inside:avoid-page}
#print-root .print-sheet:last-child{break-after:auto;page-break-after:auto}#print-root h1{font-size:19pt}#print-root h2{font-size:14pt;margin-top:25px}#print-root table{white-space:normal;margin:20px 0}#print-root th,#print-root td{font-size:10pt;border:1px solid #ddd;padding:10px}#print-root .print-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px}#print-root p{font-size:10pt}#print-root .print-signatures{display:flex;justify-content:space-around;margin-top:60px}#print-root .page-break{break-before:page}
/* ภาพเส้นทางในเอกสารที่พิมพ์ · จำกัดความสูงไว้เพื่อให้หลายรายการอยู่ในหน้าเดียวกันได้
   และห้ามถูกตัดกลางหน้า เพราะครึ่งแผนที่ใช้ตรวจสอบอะไรไม่ได้ */
#print-root .print-map{margin:8px 0 2px;break-inside:avoid;page-break-inside:avoid}
#print-root .print-map img{display:block;width:100%;max-width:88mm;max-height:50mm;object-fit:contain;border:1px solid #ddd}
#print-root tr{break-inside:avoid;page-break-inside:avoid}.badge{border:1px solid #ddd}.no-print{display:none!important}
/* หน้าหลักฐานประกอบ · สองภาพต่อหน้า ตามที่เจ้าของระบบเลือกเมื่อ 9 พ.ย. 2569
   ความสูงภาพถูกจำกัดไว้ให้สองใบลงหนึ่งหน้า A4 พอดีรวมหัวกำกับ ไม่ใช่ปล่อยตามขนาดไฟล์
   ห้ามถูกตัดกลางหน้า เพราะสลิปครึ่งใบใช้ตรวจสอบอะไรไม่ได้ หลักเดียวกับภาพแผนที่ */
#print-root .evidence-sheet h1{font-size:14pt;margin:0 0 6mm}
#print-root .print-evidence{margin:0 0 6mm;break-inside:avoid;page-break-inside:avoid}
#print-root .print-evidence figcaption{font-size:10pt;font-weight:600;margin-bottom:2mm}
#print-root .print-evidence img{display:block;width:100%;max-height:105mm;object-fit:contain;border:1px solid #ddd}
#print-root .print-evidence-missing{font-size:10pt;color:#555;border:1px dashed #999;padding:6mm;margin:0}
/* รายการที่ไม่ได้ใช้เงินบนกระดาษ สีแดงช่วยเฉพาะเครื่องพิมพ์สี จึงมีข้อความ "(ไม่ได้ใช้เงิน)" กำกับเสมอ */
#print-root .print-row-cancelled td{color:#b03025}
/* Compact request/clearance sheets only. Shared print rules stay intact for receipts. */
#print-root .print-sheet:not(.receipt-sheet){font-size:9pt;line-height:1.45}
#print-root .print-sheet:not(.receipt-sheet) h1{font-size:13pt;margin:0 0 6px}
#print-root .print-sheet:not(.receipt-sheet) h2{font-size:10.5pt;margin:10px 0 4px}
#print-root .print-sheet:not(.receipt-sheet) p{font-size:9pt;margin:4px 0}
#print-root .print-sheet:not(.receipt-sheet) table{margin:8px 0}
#print-root .print-sheet:not(.receipt-sheet) th,#print-root .print-sheet:not(.receipt-sheet) td{font-size:9pt;padding:4px 6px}
#print-root .print-sheet:not(.receipt-sheet) .print-meta{gap:3px 12px}
#print-root .print-sheet:not(.receipt-sheet) .print-signatures{margin-top:24px}
#print-root .print-sheet:not(.receipt-sheet) .print-map img{max-height:38mm}
/* ใบเสร็จรับเงิน · ต้องจบในหน้าเดียวเสมอ เพราะเป็นแบบฟอร์มที่คนเซ็นชื่อบนกระดาษแผ่นเดียว
   บรรทัดถี่กว่าเอกสารอื่นโดยตั้งใจ เพื่อให้ทุกช่องลงในหน้าเดียวโดยไม่ต้องย่อตัวอักษรจนอ่านยาก
   ช่องที่ระบบไม่รู้พิมพ์เป็นจุดไข่ปลาตามฟอร์มเดิม ไม่ใช่เว้นว่างเปล่า คนจะได้รู้ว่าต้องเขียนตรงไหน */
#print-root .receipt-sheet{font-size:10.5pt;line-height:2.1}
#print-root .receipt-sheet h1{text-align:center;font-size:16pt;margin:0 0 6mm}
#print-root .receipt-sheet p{margin:0 0 1.5mm;overflow-wrap:anywhere}
#print-root .receipt-date{text-align:right}
#print-root .receipt-right{text-align:right;margin-top:5mm}
#print-root .receipt-indent{padding-left:22mm}
/* ค่าที่ระบบเติมให้เคยเป็นสีแดงเพื่อให้เห็นว่าต่างจากเส้นที่เขียนมือ
   ผู้ใช้สั่งเปลี่ยนเป็นดำเมื่อ 6 พ.ย. 2569 · ยังหนากว่าตัวอื่นอยู่ จึงยังแยกออกจากพื้นฟอร์มได้ */
#print-root .receipt-sheet .fill{color:#000;font-weight:600}
#print-root .receipt-notes{margin-top:4mm;font-size:9pt;line-height:1.8}
#print-root .receipt-notes p{padding-left:16mm;margin:0}
#print-root .receipt-notes p:first-child{padding-left:0}
/* กรอบสำหรับแปะสำเนาบัตร · มีกรอบเสมอแม้ยังไม่ได้แนบ คนจะได้รู้ว่าต้องแปะตรงไหน */
#print-root .receipt-card{margin:4mm 0;height:52mm;border:1px dashed #999;display:flex;align-items:center;justify-content:center;color:#888;font-size:9pt;break-inside:avoid}
#print-root .receipt-card img{max-width:100%;max-height:52mm;object-fit:contain}
/* ลายน้ำบนสำเนาบัตร · ตามธรรมเนียมที่เขียนคร่อมสำเนาด้วยมือเพื่อกันเอาไปใช้อย่างอื่น
   พิมพ์ไปพร้อมภาพ จะได้ไม่มีใบไหนลืมเขียน และข้อความอยู่ตำแหน่งเดียวกันทุกใบ

   ตัวอักษรอย่างเดียว ไม่มีแถบพื้นและไม่มีเส้นคาด
   แบบแรกเป็นแถบทึบพาดกลางภาพ ซึ่งบังเนื้อหาบนบัตรจนอ่านไม่ออก
   ลายน้ำมีไว้กำกับว่าสำเนานี้ใช้ทำอะไร ไม่ใช่มีไว้ปิดเอกสาร ตัวสำเนาต้องยังอ่านได้ครบ

   เอียง 45 องศาไล่จากซ้ายล่างขึ้นขวาบน ตามแบบลายน้ำบนเอกสารทั่วไป
   สีจางพอให้เห็นบัตรทะลุผ่าน แต่ยังเข้มพอให้อ่านออกและติดไปกับกระดาษที่พิมพ์ */
#print-root .receipt-card-copy{position:relative;display:inline-block;max-width:100%;line-height:0}
#print-root .receipt-card-stamp{position:absolute;left:50%;top:50%;
    transform:translate(-50%,-50%) rotate(-45deg);transform-origin:center;white-space:nowrap;
    text-align:center;font-size:9.5pt;font-weight:700;line-height:1.3;letter-spacing:.04em;
    color:rgba(192,57,43,.42);-webkit-print-color-adjust:exact;print-color-adjust:exact}
#print-root .receipt-bank{margin-top:3mm}
@page{size:A4;margin:15mm}}
[hidden]{display:none!important}.audit-json{background:#f7f8fa;padding:15px;border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--fs-xs);max-height:280px;overflow:auto}.logged-out .sidebar,.logged-out .topbar,.logged-out .app-footer{display:none}.logged-out .app-shell{margin-left:0}.logged-out main{max-width:none;min-height:100vh;padding:0}.logged-out .toast{left:50%}.login-page{display:grid;grid-template-columns:1.05fr 1fr;min-height:100vh;background:#fff}.login-story{background:#172238;color:white;padding:50px 65px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story:before{content:'';position:absolute;width:560px;height:560px;border:1px solid #ffffff09;border-radius:50%;bottom:-270px;right:-250px;box-shadow:0 0 0 70px #ffffff03,0 0 0 140px #ffffff02;pointer-events:none}.login-story .brand{padding:0;align-self:flex-start}.login-story .eyebrow{font-size:var(--fs-xs);color:#78adf6;letter-spacing:2px;margin-bottom:25px}.login-story h1{font-size:43px;line-height:1.55;font-weight:500;letter-spacing:-1px;margin:0 0 24px}.login-story h1 span{color:#4a95f5}.login-story p{font-size:var(--fs-lg);line-height:2;color:#97a4b9}.login-story>small{font-family:Inter;font-size:var(--fs-2xs);letter-spacing:2px;color:#697a94}.login-features{display:flex;flex-direction:column;gap:16px;margin-top:40px;color:#b6c1d1;font-size:var(--fs-md)}.login-features span{display:flex;align-items:center;gap:11px}.login-features .icon{width:18px;height:18px;color:#8fb9f7}.login-form-side{display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;padding:65px 40px}.login-box{width:100%;max-width:360px}.login-box h2{font-size:28px;font-weight:500;margin:10px 0 7px;letter-spacing:-.5px}.login-box>p{color:#969fab;font-size:var(--fs-md)}.login-box form{margin-top:33px}.login-box .form-field{margin-bottom:19px}.login-box input{padding:13px 15px;font-size:var(--fs-md);background:#fdfdfd}.login-box .btn{width:100%;padding:12px 18px;font-size:var(--fs-md)}.login-box .primary{margin-top:8px}.login-box .primary .icon{margin-left:auto}.login-or{display:flex;align-items:center;gap:15px;margin:25px 0;color:#adb3be;font-size:var(--fs-xs)}.login-or:before,.login-or:after{content:'';height:1px;background:#eceef1;flex:1}.login-box .line-login{border-color:#dbece2;color:#3f8663;background:#f7fcf9}.line-login strong{font-family:Inter;font-size:var(--fs-sm);margin-right:6px;color:#07ae60}.login-box .login-note{text-align:center;font-size:var(--fs-xs);line-height:1.9;margin-top:24px;color:#a7aeba}.login-form-side>small{position:absolute;bottom:30px;color:#b0b7c0;font-size:var(--fs-2xs)}.account-controls{display:flex;align-items:center;gap:6px}.readiness-row{font-size:var(--fs-xs);color:#8c97a6;margin-bottom:12px}@media(max-width:1050px){.login-story{padding:45px}.login-story h1{font-size:35px}.login-story p{font-size:var(--fs-md)}}@media(max-width:800px){.login-page{grid-template-columns:.9fr 1fr}.login-story{padding:35px}.login-story h1{font-size:29px}.login-form-side{padding:45px 30px}.login-box h2{font-size:24px}.login-features{font-size:var(--fs-xs)}}@media(max-width:600px){.login-page{grid-template-columns:1fr}.login-story{padding:25px 27px;min-height:260px}.login-story .brand-mark{width:32px;height:32px}.login-story .brand strong{font-size:21px}.login-story .brand span{font-size:var(--fs-micro);margin-top:4px}.login-story>div{margin-top:30px}.login-story .eyebrow{font-size:var(--fs-micro);margin-bottom:7px}.login-story h1{font-size:28px;line-height:1.5;margin:0}.login-story p,.login-features,.login-story>small{display:none}.login-form-side{padding:32px 27px 75px;min-height:570px}.login-box{max-width:400px}.login-box h2{font-size:24px}.login-box form{margin-top:25px}.login-box .form-field{margin-bottom:16px}.login-form-side>small{bottom:25px}.login-box .login-note{font-size:var(--fs-2xs)}}
/* A long archive is read by scanning it, so its rows are a single line each and stay tight. */
.compact-table{table-layout:fixed;width:100%}
.compact-table th,.compact-table td{padding:6px 10px;font-size:var(--fs-xs);line-height:1.5;white-space:nowrap}
.compact-table td{border-bottom:1px solid #f4f5f7;color:var(--ink)}
.compact-table tbody tr:hover{background:#fbfcfe}
.compact-table tr.picked{background:#f3f7fe}
.compact-table .ellipsis{overflow:hidden;text-overflow:ellipsis}
.compact-table .tick{width:34px;text-align:center}
.compact-table .doc-number{white-space:nowrap;font-size:var(--fs-xs)}
.compact-table .icon-btn{width:32px;height:32px;min-width:0;min-height:0}
.compact-table .icon-btn .icon{width:13px;height:13px}
.compact-table input[type=checkbox]{margin:0;vertical-align:middle}
.compact-table th:nth-child(3){width:26%}
.compact-table th:nth-child(4),.compact-table th:nth-child(5){width:14%}
.pick-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:9px 15px;border-radius:8px;margin-bottom:12px;background:#fafbfc;border:1px solid var(--line);font-size:var(--fs-sm);color:var(--ink)}
.pick-bar.active{background:#eef4fe;border-color:#cadcfb}
.pick-bar .field-note{margin:0}
[data-theme='dark'] .compact-table td{border-bottom-color:var(--edge)}
[data-theme='dark'] .compact-table tbody tr:hover{background:var(--surface-2)}
[data-theme='dark'] .compact-table tr.picked{background:#14263f}
[data-theme='dark'] .pick-bar{background:var(--surface-2);border-color:var(--edge);color:var(--text)}
[data-theme='dark'] .pick-bar.active{background:#122943;border-color:#1d4470}
/* Says where the work in progress stands, beside the buttons that move on from it. */
.form-footer .draft-state{display:flex;align-items:center;gap:8px;font-size:var(--fs-xs);color:var(--muted);flex:1;min-width:0}
.form-footer .draft-state span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.form-footer .draft-state .btn.text{flex-shrink:0;font-size:var(--fs-xs)}
@media(max-width:600px){.form-footer .draft-state{order:2;flex-basis:100%}}
/* The list of expense lines. Two lines of text per row, each clipped to its column so a long
   journey cannot run across the amount beside it. */
.line-table{table-layout:fixed}
.line-table th:nth-child(2){width:18%}
.line-table th:nth-child(3){width:auto}
.line-table th:nth-child(4){width:15%}
.line-table th:nth-child(5){width:11%}
.line-table th:nth-child(6){width:72px}
.line-table td:nth-child(3){white-space:normal;overflow:hidden}
.line-table .line-name,.line-table .doc-date{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.line-table .doc-date{margin-top:2px}
.line-table tfoot td{font-weight:600;color:var(--ink);border-bottom:0;background:#fafbfc}
.line-table tr.line-incomplete td{background:#fffaf2}
[data-theme='dark'] .line-table tfoot td{background:var(--surface-2);color:var(--text)}
[data-theme='dark'] .line-table tr.line-incomplete td{background:#33291a}
/* When the distance could not be worked out, the line says why in place of the figure. */
.route-calc [data-route-status].is-failed{color:#c95041}
[data-theme='dark'] .route-calc [data-route-status].is-failed{color:#ef8a82}
/* แถวที่กดได้ ต้องดูออกว่ากดได้ก่อนจะลองกด ไม่ใช่ให้เดาเอา
   ปุ่มหลักในแถวยังเป็นปุ่มจริง การคลิกแถวเป็นทางลัดเพิ่มให้เท่านั้น */
tr[data-row-click]{cursor:pointer}
tr[data-row-click]:hover{background:var(--surface-2,#f4f6f9)}
tr[data-row-click]:has([data-row-primary]:focus-visible){background:var(--surface-2,#f4f6f9)}
/* ชื่อในแถวทำหน้าที่เป็นปุ่มเปิดรายการ แต่ต้องอ่านเหมือนข้อความปกติ ไม่ใช่ลิงก์สีฟ้าเต็มตาราง */
.btn.text.row-name{padding:0;font:inherit;color:inherit;text-align:left;font-weight:500}
.btn.text.row-name:hover{text-decoration:underline}

/* ภาพเส้นทางที่ใช้คำนวณ ย่อตามความกว้างที่มี เพื่อให้อ่านได้ตั้งแต่จอมือถือ 390px */
/* aspect-ratio จองที่ไว้ตั้งแต่ก่อนภาพโหลดเสร็จ กล่องจะได้ไม่กระโดดตอนภาพมาถึง
   ตรงกับขนาดที่ขอจาก Google คือ 640×360 */
.route-map img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px;border:1px solid var(--edge,#e3e6ec);background:var(--surface-2,#f4f6f9)}
.route-map .field-note{margin-top:8px}
.route-map-slot{min-width:0}
.route-map-slot:empty{display:none}
.route-map-slot.is-reserved{position:relative;aspect-ratio:640/360;min-height:0;overflow:hidden;border-radius:10px;background:var(--surface-2,#f4f6f9)}
.route-map-slot.is-reserved>.route-map{position:absolute;inset:0;margin:0}
.route-map-slot.is-reserved .route-map img{height:100%;aspect-ratio:auto}
.route-map-slot.is-reserved .route-map>.field-note{position:absolute;bottom:8px;left:8px;right:8px;margin:0;padding:4px 8px;border-radius:6px;background:var(--surface-2,#fff);color:var(--text-2,#657085)}
.route-map-slot .route-map.is-updating img{opacity:.22}
.route-map-status{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin:0;padding:12px;text-align:center;overflow:auto;color:var(--text-2,#657085)}
.route-map-status>p{margin:0}
.route-map-slot[data-map-state=working]>.route-map-status{background:color-mix(in srgb,var(--surface-2,#f4f6f9) 65%,transparent)}
.route-card-map{display:block;width:100%;height:auto;border-radius:10px;border:1px solid var(--edge,#e3e6ec);margin:10px 0}
/* ปุ่มแก้ไข/ลบ อยู่ใต้ปุ่มหลัก เพื่อไม่ให้แย่งความสนใจจาก "ใช้เส้นทางนี้" ซึ่งเป็นงานประจำวัน */
.route-card-manage{display:flex;gap:8px;justify-content:flex-end;margin-top:10px;padding-top:10px;border-top:1px solid var(--edge,#e3e6ec);flex-wrap:wrap}
/* บอกว่าระยะทางนี้คำนวณไว้เมื่อไร เพราะเส้นทางที่บันทึกไว้ไม่ถูกคำนวณใหม่เอง
   คนดูจึงควรรู้ว่าตัวเลขเก่าแค่ไหน ก่อนตัดสินใจว่าจะกดทบทวนหรือไม่ */
.route-card-age{margin-top:8px}
/* แถวแจ้งเตือนที่กดเปิดเอกสารได้ เป็น <button> เพื่อให้กดด้วยคีย์บอร์ดและโปรแกรมอ่านหน้าจอได้
   แต่หน้าตาต้องเหมือนแถวข้างเคียงทุกประการ จึงล้างสไตล์ปุ่มของเบราว์เซอร์ออกให้หมด */
button.audit-item{width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);font:inherit;color:inherit;cursor:pointer;align-items:center}
button.audit-item:hover,button.audit-item:focus-visible{background:var(--surface-2,#f4f6f9)}
button.audit-item .icon{flex:none;width:16px;height:16px;color:var(--muted,#8e99a9)}
/* ผลการอ่านคิวอาร์บนสลิป · สีบอกสถานะแต่ข้อความต้องอ่านรู้เรื่องโดยไม่ต้องพึ่งสี */
/* ช่องที่ถูกล็อกเพราะอ่านค่าได้จากหลักฐานแล้ว ต้องดูออกว่าแก้ไม่ได้ตั้งแต่แรกเห็น
   แต่ยังต้องอ่านออกชัด เพราะคนทำบัญชีต้องคัดลอกเลขนี้ไปใช้ต่อ */
input.is-locked{background:var(--surface-2,#f4f6f9);cursor:default}
input.is-locked:focus{outline-color:var(--muted,#8e99a9)}
.slip-warnings{display:flex;gap:12px;align-items:flex-start;margin-top:16px}
.slip-warnings .icon{flex:none;width:17px;height:17px;margin-top:2px}
.slip-warnings strong{display:block;font-size:var(--fs-md);margin-bottom:6px}
.slip-warnings p{margin:0 0 6px;font-size:var(--fs-sm);line-height:1.6}
.slip-warnings .doc-date{display:block}
.slip-note[data-tone="ok"]{color:#1f7a4d}
.slip-note[data-tone="warn"]{color:#9a6700}
[data-theme='dark'] .slip-note[data-tone="ok"]{color:#5fd39a}
[data-theme='dark'] .slip-note[data-tone="warn"]{color:#e3b341}

/* ตารางข้อมูลบนจอโทรศัพท์
   ตารางหกคอลัมน์กว้างกว่า 1000px ถูกบีบลงจอ 393px แล้วเหลือให้เห็นสองคอลัมน์แรก
   ยอดเงิน สถานะ และปุ่มหลุดออกนอกจอ ต้องปัดข้างในถึงจะเจอ ซึ่งบนหน้างานการเงิน
   คือการซ่อนข้อมูลที่สำคัญที่สุดไว้ จึงเปลี่ยนเป็นการ์ดหนึ่งแถวหนึ่งใบ เห็นครบโดยไม่ต้องปัด
   ชื่อคอลัมน์มาจาก data-label ที่ PC.labelTables ติดไว้ให้หลังวาดเสร็จ */
@media(max-width:600px){
  .table-scroll{overflow-x:visible}
  .table-scroll table{width:100%;white-space:normal;border-collapse:separate;border-spacing:0}
  .table-scroll thead{position:absolute;left:0;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .table-scroll tbody,.table-scroll tr,.table-scroll td,.table-scroll tbody th{display:block}
  .table-scroll tr{border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:0 0 10px;background:var(--surface,#fff)}
  .table-scroll tr:last-child{margin-bottom:0}
  .table-scroll td,.table-scroll tbody th{border:0;padding:6px 0;text-align:left;overflow-wrap:anywhere}
  /* ชื่อคอลัมน์อยู่บรรทัดบน ค่าอยู่บรรทัดล่าง
     เคยลองวางชื่อซ้ายค่าขวาในบรรทัดเดียว แต่ช่องที่มีหลายชิ้นข้างใน เช่น ชื่อคนกับรายละเอียด
     จะถูก flex นับเป็นคนละช่องแล้วเบียดกันจนชื่อไทยยาว ๆ แตกเป็นสามบรรทัด วางบนล่างจึงนิ่งกว่า
     เพราะไม่ขึ้นกับว่าข้างในช่องมีกี่ชิ้น */
  .table-scroll td[data-label]{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:7px 0}
  .table-scroll td[data-label]::before{content:attr(data-label);flex:0 0 100%;color:#98a0ac;font-size:var(--fs-xs);line-height:1.6}
  /* ช่องที่หัวตารางเว้นว่างไว้ ปกติเป็นช่องเลือกหรือปุ่มจัดการ ไม่มีชื่อให้แสดงอยู่แล้ว */
  .table-scroll td[data-label=""]::before{display:none}
  .table-scroll td[data-label=""]:last-child{padding-top:11px;margin-top:5px;border-top:1px solid var(--line)}
  .table-scroll td[data-label=""]:last-child>*{width:100%;justify-content:center}
  .table-scroll td:empty{display:none}
  .table-scroll .amount{font-weight:600}
}
/* รายชื่อสถานที่ที่ลอยใต้ช่องกรอก ต้องอยู่เหนือทุกอย่างในหน้าต่าง ไม่งั้นถูกขอบกล่องบัง */
.form-field{position:relative}
.place-list{position:absolute;z-index:40;top:100%;left:0;right:0;margin:4px 0 0;padding:4px;list-style:none;max-height:260px;overflow-y:auto;
  background:var(--surface,#fff);border:1px solid var(--edge,#e3e6ec);border-radius:10px;box-shadow:0 12px 28px rgba(16,24,40,.14)}
.place-list button{display:block;width:100%;text-align:left;padding:8px 10px;border:0;border-radius:8px;background:none;cursor:pointer;font:inherit;color:var(--ink,#1a2332)}
.place-list button:hover,.place-list button:focus-visible{background:var(--surface-2,#f4f6f9)}
.place-list strong{display:block;font-weight:600;font-size:var(--fs-lg)}
.place-list span{display:block;font-size:var(--fs-md);color:var(--muted,#6b7585);margin-top:2px}
/* Folding the sidebar away. Only above the drawer breakpoint, because below it the sidebar is
   already off-canvas and its own .open rule decides whether it shows. */
@media(min-width:801px){
.sidebar{transition:transform .18s ease}
.app-shell{transition:margin-left .18s ease}
body.sidebar-collapsed .sidebar{transform:translateX(-100%)}
body.sidebar-collapsed .app-shell{margin-left:0}
}
/* The theme switch sits beside the signed-in name. It carries its own label, because a lone icon
   in a corner never said what it did. */
.sidebar-user .theme-toggle{display:flex;align-items:center;gap:6px;width:auto;height:auto;min-height:0;margin-left:auto;padding:5px 9px;border-radius:999px;border:1px solid #33405a;background:#222d42;color:#aab7cc;font-family:var(--thai);font-size:var(--fs-2xs);white-space:nowrap}
.sidebar-user .theme-toggle:hover{background:#2b3950;border-color:#41506d;color:#e4eaf4}
.sidebar-user .theme-toggle .icon{width:13px;height:13px;flex-shrink:0}
.sidebar-user .theme-toggle+.icon-btn{margin-left:0;flex-shrink:0}
/* The name gives way to an ellipsis rather than pushing the row onto a second line. */
.sidebar-user>div{min-width:0;flex:1}
.sidebar-user strong,.sidebar-user small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user .avatar{flex-shrink:0}
@media(max-width:600px){.sidebar-user .theme-toggle span{display:none}.sidebar-user .theme-toggle{padding:7px}}
/* On a phone the thumb matters more than the extra rows a tight table would fit on screen.
   This sits after the rules above so that it is the one that wins at small widths. */
@media(max-width:600px){
.compact-table th,.compact-table td{padding:9px 10px}
.compact-table .icon-btn{width:40px;height:40px;min-width:0;min-height:0}
.compact-table .icon-btn .icon{width:15px;height:15px}
.compact-table .tick{width:40px}
}

/* ---------- พื้นที่กดบนจอเล็ก ----------
   ข้อกำหนดในเอกสารโครงการระบุว่าพื้นที่กดต้องไม่ต่ำกว่า 44px
   บนเดสก์ท็อปที่ชี้ด้วยเมาส์ ปุ่มรองขนาด 38px ยังกดแม่น แต่บนมือถือไม่พอ
   บล็อกนี้จึงอยู่ท้ายสุดเพื่อให้ชนะกฎย่อขนาดของจอเล็กที่ประกาศไว้ก่อนหน้า */
@media(max-width:800px){
.btn,.btn.small,.line-card .btn,.segment button,.tabs button,.user-menu-item,
select,textarea,input:not([type=checkbox]):not([type=radio]){min-height:var(--tap)}
.icon-btn{min-width:var(--tap);min-height:var(--tap)}
.compact-table .icon-btn{width:var(--tap);height:var(--tap);min-width:var(--tap);min-height:var(--tap)}
.btn.text{min-height:var(--tap)}
input[type=checkbox],input[type=radio]{width:22px;height:22px}
}
/* ---------- พื้นที่กดที่เหลือบนจอเล็ก ----------
   กลุ่มนี้ไม่ได้ถูกกฎก่อนหน้าครอบ เพราะเป็นปุ่มพับ/ปุ่มไอคอนที่กว้างตามเนื้อหา */
@media(max-width:800px){
.expense-row-more>summary,.map-details>summary{min-height:var(--tap);display:inline-flex;align-items:center}
.expense-row-cancel,.evidence-cell .btn.small{min-width:var(--tap)}
/* บนจอแคบ ช่องหลักฐานกินเต็มบรรทัดของตัวเอง
   แบ่งครึ่งบรรทัดกับยอดเงินแล้วไม่มีใครพอ ชื่อไฟล์เหลือ 17px และยอดเงินเหลือ 77px
   ซึ่งเป็นสองอย่างที่คนต้องอ่านจริง */
.expense-row-body>.evidence-cell{grid-column:1/-1}
.date-input-button{width:var(--tap)}
}
/* ---------- งานที่ต้องทำของฉัน (หน้าแรก) ----------
   แผงนี้อยู่บนสุดของหน้าแรกแทนตัวเลขสรุป เพราะเป็นสิ่งที่คนเปิดหน้าจอต้องการก่อน
   เมื่อมีงานหลายชนิดพร้อมกัน จัดเป็นหลายคอลัมน์บนจอกว้าง ไม่ให้กลายเป็นรายการยาว
   ที่ต้องเลื่อนผ่านก่อนจะเห็นอย่างอื่น */
.worklist{margin-bottom:24px}
.worklist .pending-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));column-gap:26px}
/* เส้นคั่นของแถวสุดท้ายในแต่ละคอลัมน์ไม่ได้ช่วยอะไร เมื่อจัดเป็นกริดจึงตัดทิ้งทั้งแถวล่าง */
.worklist .pending-item:last-child{border-bottom:1px solid #f0f2f4}
.worklist .pending-item{min-height:var(--tap)}
.worklist .empty-state{padding:30px 20px}
.badge-count.alert{background:#fdeceb;color:#9e2f2b;font-weight:600}
/* หัวข้อคั่นระหว่างงานที่ต้องทำกับตัวเลขภาพรวม บอกว่ากำลังเปลี่ยนเรื่อง */
.section-title{font-size:var(--fs-lg);font-weight:600;color:#5c6779;margin:0 0 13px}
@media(max-width:600px){
.worklist .pending-list{grid-template-columns:1fr}
}
/* ---------- ตัวกรองสำเร็จรูปและสรุปตัวกรองที่ใช้อยู่ ---------- */
.preset-bar{margin:16px 22px 0;width:fit-content;max-width:calc(100% - 44px);flex-wrap:wrap}
.filter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  margin:0 22px 14px;padding:10px 13px;border-radius:8px;background:#f4f7fc;color:#5a6577;font-size:var(--fs-xs)}
.filter-summary strong{color:var(--ink);font-weight:600}
@media(max-width:600px){
.preset-bar{margin:14px 16px 0;max-width:calc(100% - 32px)}
.filter-summary{margin:0 16px 12px}
}
/* ---------- แถบนำหน้าเอกสาร: สถานะ ใครต้องทำต่อ ต้องทำอะไร ---------- */
.status-lead{display:flex;gap:13px;align-items:flex-start;padding:14px 15px;border-radius:10px;
  background:#f4f7fc;border:1px solid #e3eaf5;margin-bottom:16px}
/* ใบที่รอตัวเราเองใช้พื้นหลังอุ่นกว่า แต่ความหมายอยู่ที่ข้อความ "ขั้นตอนนี้รอคุณ" ไม่ใช่ที่สี */
.status-lead.mine{background:#fff6f3;border-color:#f6ddd4}
.status-lead>div{flex:1;min-width:0}
.status-lead-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:4px}
.status-lead-who{font-size:var(--fs-sm);font-weight:600;color:var(--ink)}
.status-lead p{margin:0;font-size:var(--fs-xs);color:#5d6778;line-height:1.65}
.detail-purpose{margin-bottom:14px;font-size:var(--fs-base)}
.skip-link{position:fixed;z-index:1000;top:8px;left:8px;padding:10px 14px;border-radius:7px;background:#fff;color:#172238;box-shadow:0 3px 12px #0003;transform:translateY(-150%)}
.skip-link:focus{transform:translateY(0)}
#main:focus{outline:none}
.modal:focus{outline:none}
/* ---------- ข้อความผิดพลาดใต้ช่องที่ผิด ----------
   อยู่ติดกับช่องนั้นและมีสัญลักษณ์นำหน้า ไม่ได้อาศัยสีแดงอย่างเดียวในการสื่อความหมาย */
.field-error{margin:5px 0 0;font-size:var(--fs-xs);color:var(--red);line-height:1.55;display:flex;gap:6px;align-items:flex-start}
.field-error::before{content:'!';flex-shrink:0;width:16px;height:16px;border-radius:50%;background:var(--red);color:#fff;
  font-size:var(--fs-micro);font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:2px}
input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--red);background:#fffafa}
.form-guide{margin-bottom:18px;align-items:flex-start}
.form-guide strong{color:var(--ink)}
.notification-summary{padding:10px 14px;margin-bottom:12px;border-radius:8px;background:var(--surface-3);color:var(--text-2);font-size:var(--fs-sm)}
.notification-summary strong{color:var(--text)}
.notification-group-title{margin:16px 0 6px;font-size:var(--fs-xs);font-weight:600;color:var(--text-2)}
.notification-item{display:flex;align-items:flex-start;gap:12px;width:100%;padding:14px 10px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--edge);border-radius:6px;color:var(--text);font:inherit}
.notification-item:hover,.notification-item:focus-visible{background:var(--surface-2)}
.notification-item.unread{background:color-mix(in srgb,var(--accent) 7%,var(--surface))}
.notification-item.unread:hover,.notification-item.unread:focus-visible{background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
.notification-item .notification-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.notification-item strong{font-size:var(--fs-sm);font-weight:600;line-height:1.5}
.notification-item .notification-copy>span{font-size:var(--fs-xs);color:var(--text-2);overflow-wrap:anywhere}
.notification-item small{font-size:var(--fs-2xs);color:var(--text-3)}
.notification-item>.icon{width:16px;height:16px;margin-top:12px;color:var(--text-3)}
@media(max-width:600px){.notification-item{min-height:64px;padding:14px 8px}.notification-group-title{margin-top:14px}}
.clearance-review{margin:22px 0}
.clearance-review>.form-section-title{margin:20px 0 10px}
.clearance-review-line{padding:14px 0;border-bottom:1px solid var(--edge)}
.clearance-review-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:9px}
.clearance-review-head strong{font-size:var(--fs-sm);font-weight:600;overflow-wrap:anywhere}
.clearance-review-head span{font-weight:600;white-space:nowrap}
.evidence-preview{margin:8px 0;border:1px solid var(--edge);border-radius:8px;background:var(--surface-2);overflow:hidden}
.evidence-preview summary{display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 12px;cursor:pointer;list-style:none}
.evidence-preview summary::-webkit-details-marker{display:none}
.evidence-preview summary .icon{width:17px;height:17px;flex-shrink:0;color:var(--accent)}
.evidence-preview summary span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:var(--fs-xs)}
.evidence-preview summary strong{font-size:var(--fs-xs);font-weight:600;color:var(--accent);white-space:nowrap}
.evidence-preview-body{padding:12px;border-top:1px solid var(--edge);text-align:center}
.evidence-preview-body img{display:block;max-width:100%;max-height:70vh;width:auto;height:auto;margin:0 auto 12px;object-fit:contain}
.evidence-preview-body iframe{display:block;width:100%;height:min(68vh,650px);border:0;background:#fff;margin-bottom:12px}
@media(max-width:600px){.clearance-review-head{align-items:flex-start}.clearance-review-head span{font-size:var(--fs-xs)}.evidence-preview-body iframe{height:60vh}}
.sidebar nav a[hidden]{display:none}
/* แท็บ "เคลียร์ส่งบัญชี" · รายงานสรุปอยู่ใต้ตารางรายชุด ไม่ใช่กล่องลอย เพราะต้องอ่านคู่กับแถวที่เลือก
   และต้องพิมพ์ต่อได้ทันที ใช้ class เดิมของ .panel/.table-scroll/.amount ทั้งหมด เพิ่มเฉพาะส่วนที่ไม่มีของเดิมรองรับ */
.rb-summary{margin-top:22px}
.rb-summary-header{align-items:flex-start;flex-wrap:wrap;gap:12px}
.rb-summary-meta{display:flex;flex-wrap:wrap;gap:10px 26px;margin:14px 0 0;padding:14px 22px;background:var(--surface-3,#f5f6f8);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.rb-summary-meta div{min-width:0}
.rb-summary-meta dt{font-size:var(--fs-2xs);color:var(--muted);margin:0}
.rb-summary-meta dd{font-size:var(--fs-sm);color:var(--ink);margin:2px 0 0}
.rb-summary-loading{padding:20px 22px;margin:0}
.rb-seq{font-family:Inter,var(--thai);color:var(--muted);font-variant-numeric:tabular-nums}
.rb-summary th.amount{font-weight:400;font-size:var(--fs-2xs);color:var(--muted);font-family:var(--thai)}
.rb-summary td.amount{font-variant-numeric:tabular-nums}
.rb-summary tfoot td{background:var(--surface-3,#fcfcfd);border-top:1px solid var(--line);border-bottom:0;font-weight:600;color:var(--ink)}
tr.rb-row-open td{background:var(--peach)}
/* ลายเซ็นในหน้าข้อมูลส่วนตัว · กรอบตัวอย่างกว้างใกล้เคียงช่องลงนามบนกระดาษจริง (ราว 45mm)
   จะได้รู้ตั้งแต่ตอนอัปโหลดว่าภาพเล็กหรือจางเกินกว่าจะอ่านออกบนใบพิมพ์ */
.signature-box{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2,#fcfcfd)}
.signature-preview{display:flex;align-items:center;justify-content:center;min-width:180px;width:180px;height:62px;border:1px dashed var(--edge-2,#e1e5eb);border-radius:6px;background:#fff;overflow:hidden}
.signature-preview img{max-width:100%;max-height:100%;object-fit:contain}
.signature-preview .field-note{margin:0;text-align:center}
.signature-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.signature-actions label.btn{margin:0}
[data-signature-status].is-bad{color:#c5504c}
/* ช่องลงนามบนใบพิมพ์ · ภาพต้องไม่สูงเกินช่อง ไม่งั้นดันลายเซ็นอีกช่องเลื่อนลงไปคนละระดับ */
.print-signed{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.print-signature-image{max-height:15mm;max-width:45mm;object-fit:contain}
.print-signature-name{border-top:1px solid #333;padding-top:2px;white-space:nowrap}
.print-signature-warning{color:#b03430;font-weight:600}
.print-signed-stale .print-signature-image{opacity:.5}
/* ช่องลงชื่อบนใบเสร็จ · วางสองช่องชิดขวาเหมือนต้นฉบับที่มีช่องเดียว แต่ไม่ให้ชนกัน */
.receipt-signatures{display:flex;justify-content:flex-end;gap:14mm;margin-top:6mm;text-align:center}
.receipt-signatures>span{min-width:0}
