/* PD2 Liner design system: industrial clarity, shared tablet, local assets only. */
:root { --bg:#f3f6fa; --card:#fff; --ink:#172b43; --muted:#607186; --line:#dce5ee; --navy:#10283f; --navy2:#203e58; --pri:#096b68; --pick:#096b68; --info-bg:#e9f6f4; --ok:#16704c; --ok-bg:#eaf6ef; --bad:#b72b3c; --bad-bg:#fff0f1; --r:18px; --shadow:0 3px 18px rgba(27,50,73,.045); }
body { line-height:1.55; letter-spacing:0; }
main { max-width:1280px; padding:28px 32px 150px; --gut:32px; }
.top { background:#fff; color:var(--ink); border-bottom:1px solid var(--line); padding:12px 28px; gap:20px; box-shadow:0 2px 12px #142b4305; }
.brand { color:var(--ink); gap:14px; }
.brand img { height:34px; padding:0; border-radius:0; }
.brand b { font-size:22px; letter-spacing:-.5px; }
.brandaccent { color:var(--pri); }
.brand small { color:var(--muted); opacity:1; }
.cls { background:#f0f4f8; color:#506176; border:1px solid var(--line); font-size:10px; }
.who { padding-right:16px; border-right:1px solid var(--line); }
.who small { color:var(--muted); opacity:1; font-size:11px; }
.tb { color:var(--muted); background:transparent; border:1px solid transparent; min-height:48px; font-weight:600; }
.tb[data-act=home] { color:var(--pri); background:var(--info-bg); }
.tb.out { color:var(--ink); background:#f1f4f8; border-color:var(--line); }
.homeintro { display:flex; justify-content:space-between; align-items:center; margin:6px 0 30px; gap:20px; }
.eyebrow { color:var(--pri); font-size:12px; font-weight:700; letter-spacing:2px; }
.homeintro h1 { font-size:32px; line-height:1.3; margin:8px 0; letter-spacing:-.5px; }
.homeintro p { font-size:16px; margin:0; color:var(--muted); }
.todaypill { border-left:1px solid var(--line); padding:4px 0 4px 22px; text-align:right; }
.todaypill span { display:block; color:var(--muted); font-size:13px; }.todaypill b { font-size:18px; }
.sectionheading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.sectionheading h2 { font-size:21px; margin:0; }.sectionheading p { font-size:14px; color:var(--muted); margin:3px 0 0; }
.sectionmeta { color:var(--muted); font-size:13px; border:1px solid var(--line); padding:5px 12px; border-radius:30px; }
.startsection { margin-bottom:32px; }
.newgrid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.newcard { display:flex; flex-direction:column; align-items:stretch; gap:0; border:1px solid var(--line); border-radius:20px; min-height:260px; padding:22px; position:relative; overflow:hidden; box-shadow:var(--shadow); transition:transform .15s,border-color .15s,box-shadow .15s; }
.newcard:hover { transform:translateY(-3px); border-color:var(--pri); box-shadow:0 8px 24px #17384912; }
.newcard:active { transform:translateY(0); }
.cardtop { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.formicon { height:48px; width:48px; display:grid; place-items:center; border-radius:14px; background:#e6f3f0; color:#096b68; }
.formicon svg { width:27px; height:27px; }
.formcard-1 .formicon { background:#eaf0ff; color:#3f60b3; }.formcard-2 .formicon { background:#fff3e2; color:#9d6012; }
.revision { color:var(--muted); font-size:12px; }
.newcard .nt { flex:1; }.newcard .nt small { font-size:14px; color:var(--muted); letter-spacing:.4px; }
.newcard .nt b { font-size:20px; line-height:1.5; margin:5px 0 6px; }.newcard .nt em { font-size:14px; }
.cardfooter { border-top:1px solid #edf1f5; margin-top:22px; padding-top:14px; color:var(--pri); font-size:15px; font-weight:700; display:flex; justify-content:space-between; }
.cardfooter > span { font-size:22px; line-height:1; }
.worksection { margin-bottom:26px; }.workcolumns { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.workpanel { background:white; border:1px solid var(--line); border-radius:18px; padding:20px; min-width:0; }
.workpanel h3 { display:flex; align-items:center; gap:9px; font-size:17px; margin:0 0 14px; }
.workdot { width:8px; height:8px; background:var(--pri); border-radius:50%; }.workdot.amber { background:#b47d25; }
.count { margin-left:auto; border-radius:8px; color:var(--muted); background:#f0f4f8; padding:2px 9px; font-size:13px; }
.workcard { display:grid; grid-template-columns:1fr auto; padding:14px 0; margin:0; border:0; border-radius:0; border-top:1px solid #edf1f5; gap:8px 12px; box-shadow:none; }
.workcard > span:first-child { grid-column:1/-1; }.workcard .workinfo { font-size:14px; }.workcard strong { font-size:14px; align-self:end; }.workcard small { font-size:12px; }
.queueempty { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:118px; border-radius:12px; background:#f7f9fc; gap:5px; text-align:center; padding:18px; }
.queueempty b { font-size:16px; color:#506176; }.queueempty span { font-size:13px; color:var(--muted); }
.homeextra { box-shadow:none; padding:10px 18px; margin:14px 0; }.homeextra summary { color:#40546a; font-size:15px; }.summaryhint { float:right; color:var(--muted); font-weight:400; font-size:13px; }
.kpi { border:1px solid var(--line); border-left:3px solid var(--pri); box-shadow:none; border-radius:12px; padding:18px; }.kpi b { font-size:28px; }
.h2 { font-size:21px; }.h2row { margin-top:28px; }.h2row .btn { font-size:14px; }
.btn { border-radius:12px; font-size:16px; min-height:48px; box-shadow:0 1px 2px #172b4304; }
.btn.pri { box-shadow:0 3px 8px #096b6820; }.btn.sm { font-size:14px; }.btn.ghost { box-shadow:none; }
.filters { background:white; padding:16px; border:1px solid var(--line); border-radius:16px; gap:10px; margin-bottom:14px; }
input[type=text],input[type=password],input[type=number],input[type=date],input[type=time],input[type=search],select,textarea { border-width:1px; min-height:50px; border-radius:10px; background:#fff; }
input:focus,select:focus,textarea:focus { outline:3px solid #096b6825; border-color:var(--pri); }
.tablewrap { border:1px solid var(--line); box-shadow:none; border-radius:16px; }
table.list th { background:#f8fafc; padding:14px; color:var(--muted); font-size:12px; font-weight:600; }table.list td { padding:14px; font-size:14px; }table.list tbody tr:hover { background:#f2f9f8; }
.st { padding:4px 9px; font-size:12px; border-radius:7px; }.empty { border:1px dashed var(--line); background:transparent; padding:36px; }
.banner { font-size:14px; border-radius:14px; }.banner.warn { background:#fff8e9; border-color:#edddbb; }.banner.danger { font-size:18px; }
.fhead { padding:22px; border:1px solid var(--line); box-shadow:none; border-radius:18px; }.fhead h1 { font-size:23px; margin:5px 0; }.fdoc { color:var(--pri); }.fmeta { font-size:13px; }
.card { border:1px solid var(--line); box-shadow:none; border-radius:18px; padding:20px; margin:18px 0; }.card.safety { border-top:4px solid var(--bad); }
.formhelp { font-size:14px; margin:16px 4px; }.secnav { background:#f3f6faf7; padding:12px 32px; }.prog { height:7px; }.prog > div { background:var(--pri); }.sumtxt { font-size:13px; }
.chips { gap:8px; padding-top:12px; }.chip { border-radius:10px; min-height:44px; font-size:13px; }.seg.vm button { min-height:44px; }
.sech { padding-bottom:10px; border-bottom:1px solid #edf1f5; }.sect { font-size:18px; }.fld { padding-top:16px; padding-bottom:16px; }.fld .no { background:#f1f5f9; color:var(--muted); border-radius:9px; }.fld .lbl { line-height:1.6; }.seg { border-width:1px; }.seg button { min-height:50px; }
.actbar { padding:14px 24px calc(14px + env(safe-area-inset-bottom)); background:#fffffff5; box-shadow:0 -3px 22px #19354b08; }.savestate { font-size:13px; }.btn.next { background:#fff8e9; border-color:#e6d2aa; }
.auth { background:radial-gradient(ellipse at 15% 20%,#21516a 0,transparent 50%),linear-gradient(135deg,#11283e,#123f48); padding:32px 18px; }.acard { max-width:470px; padding:36px; border-radius:24px; box-shadow:0 24px 80px #061b3c40; }.alogo { width:180px; margin-bottom:28px; }.authbadge { display:block; text-align:center; font-size:11px; letter-spacing:1.4px; color:var(--pri); font-weight:700; }.acard h1 { font-size:28px; margin:10px 0; }.acard label { font-size:15px; margin:18px 0; }.clsbox { background:#f2f5f8; color:var(--muted); font-size:11px; border-radius:8px; padding:9px; margin:18px 0; }.acard .fine { font-size:11px; margin-top:16px; }.acard .btn.big { margin-top:22px; min-height:54px; }
@media(max-width:1100px) { .top { gap:12px; padding:12px 20px; }.top .cls { display:none; }.newgrid { grid-template-columns:repeat(3,minmax(0,1fr)); }.newcard { padding:18px; }.newcard .nt b { font-size:18px; }.filters { grid-template-columns:1fr 1fr; }.filters input[type=search] { grid-column:1/-1; }.who { border:0; padding-right:0; } }
@media(max-width:860px) { main { padding:24px 20px 180px; --gut:20px; }.top { align-items:center; }.brand { flex:1; }.who { display:block; text-align:right; }.top nav { width:100%; gap:8px; }.tb { flex:1; padding:6px 10px; font-size:13px; }.newgrid { grid-template-columns:1fr; gap:12px; }.newcard { display:grid; grid-template-columns:auto 1fr auto; gap:16px; align-items:center; min-height:130px; padding:20px; }.cardtop { margin:0; }.revision { display:none; }.newcard .nt b { font-size:20px; }.cardfooter { margin:0; padding:0; border:0; font-size:0; }.cardfooter > span { font-size:25px; }.workcolumns { gap:12px; }.workpanel { padding:16px; }.secnav { padding:12px 20px; }.fhead { padding:18px; }.summaryhint { display:none; } }
@media(max-width:560px) { main { padding:20px 14px 240px; --gut:14px; }.top { padding:10px 14px; }.brand img { height:26px; }.brand b { font-size:19px; }.brand small { display:none; }.who b { font-size:13px; }.who small { display:none; }.top nav { gap:5px; }.tb { font-size:12px; padding:4px 7px; }.homeintro { flex-direction:row; align-items:flex-start; margin-bottom:26px; }.homeintro h1 { font-size:27px; }.homeintro p { font-size:13px; }.todaypill { display:none; }.sectionmeta { display:none; }.sectionheading h2 { font-size:19px; }.workcolumns { grid-template-columns:1fr; }.newcard { padding:16px; gap:12px; }.newcard .nt b { font-size:17px; }.newcard .nt em { font-size:12px; }.formicon { width:42px; height:42px; }.filters { padding:12px; }.actbar { padding:10px 14px calc(10px + env(safe-area-inset-bottom)); gap:8px; }.actbar .btn { font-size:14px; padding:8px 12px; }.navtop .sumtxt { display:block; }.savestate { flex-basis:100%; }.acard { padding:28px 24px; }.secnav { padding:10px 14px; }.fhead h1 { font-size:20px; }.card { padding:16px; }.homeextra summary { font-size:14px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* Compact wording and larger type for the shared tablet */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
body { font-size:20px; }
.homeintro { margin:8px 0 24px; }.homeintro h1 { font-size:34px; margin:0; }
.newgrid { grid-template-columns:1fr; gap:14px; }
.newcard { display:grid; grid-template-columns:60px 1fr auto; align-items:center; gap:20px; padding:22px 26px; min-height:128px; }
.formicon { width:60px; height:60px; }.formicon svg { width:32px; height:32px; }
.newcard .nt small { font-size:22px; letter-spacing:0; }.newcard .nt b { font-size:28px; margin:2px 0 0; }.cardarrow { font-size:32px; color:var(--pri); }
.sectionheading h2,.h2 { font-size:26px; }.workpanel h3 { font-size:22px; }.count { font-size:18px; }.queueempty { min-height:80px; }.queueempty b { font-size:20px; }
.workcard > span:first-child { font-size:20px; }.workcard .workinfo,.workcard strong { font-size:20px; }.workcard small { font-size:17px; }.st { font-size:17px; white-space:normal; }
.homeextra > summary { font-size:22px; min-height:56px; }.btn,.btn.sm,.tb { font-size:20px; min-height:56px; }.h2row .btn { font-size:20px; }
input[type=text],input[type=password],input[type=number],input[type=date],input[type=time],input[type=search],select,textarea { font-size:20px; min-height:56px; }
.who b { font-size:20px; }.brand b { font-size:26px; }.recordlink,table.list td,table.list th { font-size:18px; }
.fhead h1 { font-size:27px; }.fdoc { font-size:20px; }.fmeta { font-size:17px; }.card h2,.sect { font-size:23px; }.fld .lbl { font-size:22px; }.fld .std,.fld .hint,.fld .by { font-size:18px; }.fld .no { font-size:18px; min-width:36px; height:36px; }.seg button { font-size:20px; min-height:56px; }.seg.vm button,.chip { font-size:18px; min-height:50px; }.sumtxt,.scount,.savestate { font-size:18px; }.num input { font-size:24px; }
.acard { max-width:500px; }.acard h1 { font-size:32px; }.acard label { font-size:22px; }.acard .fine { font-size:16px; }.acard .btn.big { font-size:22px; }.banner { font-size:18px; }
.recordbrowser .h2row { margin-top:10px; }.actbar .btn { font-size:20px; }.workcard .workinfo { overflow-wrap:anywhere; }
@media(max-width:860px) { .newcard .nt b { font-size:27px; }.newcard .nt small { font-size:22px; }.tb { font-size:18px; }.who b { font-size:18px; }.workcolumns { grid-template-columns:1fr; } }
@media(max-width:560px) { body { font-size:20px; }.homeintro h1 { font-size:30px; }.newcard { grid-template-columns:48px 1fr auto; padding:18px 16px; gap:12px; min-height:116px; }.formicon { width:48px; height:48px; }.newcard .nt b { font-size:24px; }.newcard .nt small { font-size:20px; }.brand b { font-size:23px; }.tb { font-size:17px; padding:6px 8px; }.top nav { flex-wrap:wrap; }.top nav .tb { flex:1 1 40%; }.who b { font-size:18px; }.sectionheading h2 { font-size:24px; }.homeextra summary { font-size:22px; }.actbar .btn { font-size:19px; min-height:54px; }.fhead h1 { font-size:24px; }.sect { font-size:22px; }.fld .lbl { font-size:22px; }.workcard strong { font-size:18px; }main { padding-bottom:260px; } }

/* A mold change owns exactly three controlled documents. */
.jobrule { color:var(--muted); font-size:20px; margin:0 0 22px; }
.jobcard { padding:22px; margin:16px 0; border:1px solid var(--line); background:white; border-radius:18px; }
.jobheading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }.jobheading b { font-size:24px; }.jobheading small { display:block; color:var(--muted); font-size:16px; overflow-wrap:anywhere; }
.jobdocs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }.jobdoc { border:1px solid var(--line); background:#f7f9fc; border-radius:12px; padding:18px 12px; min-height:110px; cursor:pointer; text-align:left; }.jobdoc b { display:block; font-size:24px; margin-bottom:8px; }.jobdoc:hover { border-color:var(--pri); }.jobdoc.absent { color:var(--bad); cursor:default; }
.jobcontext { border:1px solid var(--line); background:white; padding:18px; border-radius:16px; margin-bottom:16px; }.jobcontext nav { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }.jobcontext b { font-size:22px; }
@media(max-width:640px) { .homeintro { flex-wrap:wrap; }.jobheading { flex-wrap:wrap; }.jobdocs { grid-template-columns:1fr; }.jobdoc { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:78px; }.jobdoc b { font-size:22px; margin:0; }.jobcard { padding:16px; }.jobheading b { font-size:22px; } }

/* =============================================================================
 * Visual polish (v1.5) - icons, job cards, document stepper, status badges
 * ========================================================================== */
.i { display:inline-block; width:1.05em; height:1.05em; flex:none; vertical-align:-.17em; background:currentColor; -webkit-mask:var(--ic) center/contain no-repeat; mask:var(--ic) center/contain no-repeat; }
.btn .i, .tb .i { margin-right:2px; }
.ico { display:inline-grid; place-items:center; color:var(--muted); transition:color .15s, border-color .15s; }
.ico .i { width:22px; height:22px; }
.ico:hover { color:var(--pri); border-color:var(--pri); }
.cls .i, .clsbox .i { width:12px; height:12px; vertical-align:-1px; }
.fld .by .i { width:14px; height:14px; vertical-align:-2px; opacity:.7; }
/* Line icons (inline SVG masks - no external files, CSP-safe) */
.i-camera { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%208h3l2-3h6l2%203h3v11H4z'/%3E%3Ccircle%20cx='12'%20cy='13'%20r='3.5'/%3E%3C/svg%3E"); }
.i-doc { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7%203h7l5%205v13H7z'/%3E%3Cpath%20d='M14%203v5h5M10%2013h6M10%2017h6'/%3E%3C/svg%3E"); }
.i-down { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%204v15M6%2013l6%206%206-6'/%3E%3C/svg%3E"); }
.i-edit { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2020h4L19%209l-4-4L4%2016z'/%3E%3Cpath%20d='M13.5%206.5l4%204'/%3E%3C/svg%3E"); }
.i-export { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2015V3M7%208l5-5%205%205'/%3E%3Cpath%20d='M5%2014v6h14v-6'/%3E%3C/svg%3E"); }
.i-lock { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='5'%20y='11'%20width='14'%20height='10'%20rx='2'/%3E%3Cpath%20d='M8%2011V8a4%204%200%200%201%208%200v3'/%3E%3C/svg%3E"); }
.i-note { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2020h4L19%209l-4-4L4%2016z'/%3E%3Cpath%20d='M13.5%206.5l4%204'/%3E%3C/svg%3E"); }
.i-plus { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14M5%2012h14'/%3E%3C/svg%3E"); }
.i-print { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7%209V3h10v6'/%3E%3Crect%20x='4'%20y='9'%20width='16'%20height='8'%20rx='2'/%3E%3Cpath%20d='M7%2014h10v7H7z'/%3E%3C/svg%3E"); }
.i-save { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%204h11l3%203v13H5z'/%3E%3Cpath%20d='M8%204v5h7V4M8%2020v-6h8v6'/%3E%3C/svg%3E"); }
.i-sign { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%2020c2-1%203-4%205-4s2%203%204%203%203-2%205-2'/%3E%3Cpath%20d='M15%203l4%204-8%208H7v-4z'/%3E%3C/svg%3E"); }
.i-undo { --ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%206L4%2011l5%205'/%3E%3Cpath%20d='M4%2011h10a5%205%200%200%201%200%2010h-3'/%3E%3C/svg%3E"); }

/* สถานะ: จุดสี + ข้อความ */
.st { display:inline-flex; align-items:center; gap:7px; font-weight:700; line-height:1.35; }
.st::before { content:''; width:8px; height:8px; border-radius:50%; background:currentColor; flex:none; }
.st-draft { background:#eef2f6; color:#55677b; }
.st-pending { background:#fff3d9; color:#8a5a00; }
.st-ok { background:#e5f4ec; color:#15704b; }
.st-rej { background:#fdecee; color:#b72b3c; }
.st-me::before, .st-bad::before { display:none; }

/* หน้าแรก — การ์ดงานเปลี่ยนแม่พิมพ์ */
.jobcard { position:relative; overflow:hidden; padding:22px 24px 22px 28px; border-radius:20px; box-shadow:0 2px 14px rgba(23,43,67,.05); }
.jobcard::before { content:''; position:absolute; left:0; top:0; bottom:0; width:6px; background:#e0a93e; }
.jobcard.complete::before { background:var(--ok); }
.jobheading { align-items:flex-start; }
.jobtitle { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; min-width:0; }
.jobtitle b { font-size:26px; line-height:1.3; }
.jobtitle small { flex-basis:100%; color:var(--muted); font-size:16px; overflow-wrap:anywhere; }
.jobmc { font-size:15px; font-weight:800; color:var(--pri); background:var(--info-bg); padding:3px 10px; border-radius:8px; letter-spacing:.3px; white-space:nowrap; }
.jobprog { display:flex; flex-direction:column; align-items:flex-end; gap:8px; font-size:16px; font-weight:700; color:#8a5a00; white-space:nowrap; }
.jobcard.complete .jobprog { color:var(--ok); }
.jp-bar { display:flex; gap:5px; }
.jp-bar i { width:34px; height:8px; border-radius:4px; background:#e3e9ef; }
.jp-bar i.on { background:var(--ok); }
.jobdocs { gap:14px; }
.jobdoc { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-height:140px; padding:16px; background:#fff; border:1.5px solid var(--line); border-radius:16px; color:var(--ink); transition:border-color .15s, box-shadow .15s, transform .15s; }
.jobdoc:hover { border-color:var(--pri); box-shadow:0 6px 18px rgba(9,107,104,.10); transform:translateY(-2px); }
.jobdoc .jd-no { font-size:22px; font-weight:800; line-height:1.2; }
.jobdoc .jd-name { font-size:16px; color:var(--muted); margin-bottom:4px; }
.jobdoc .st { font-size:15px; }
.jd-prog { width:100%; height:6px; margin-top:auto; border-radius:3px; background:#e8edf2; overflow:hidden; }
.jd-prog i { display:block; height:100%; border-radius:3px; background:var(--pri); }
.jobdoc .jd-meta { font-size:15px; color:var(--muted); }
.jobdoc .jd-meta b { display:inline; font-size:inherit; margin:0; }
.jobdoc.s-approved { background:#f5fbf7; border-color:#bfe2cf; }
.jobdoc.s-approved::after { content:'✓'; position:absolute; top:14px; right:14px; width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:var(--ok); color:#fff; font-size:17px; font-weight:800; }
.jobdoc.s-pending { background:#fffbf2; border-color:#efd9a8; }
.jobdoc.s-rejected { background:#fff7f8; border-color:#f1b9c0; }
.jobdoc.absent { border-style:dashed; background:#fff; color:var(--bad); }
.jobdoc.absent .jd-name, .jobdoc.absent .jd-meta { color:var(--bad); }

/* หน้าแรก — กล่องพับเก็บ: ลูกศรด้านขวา */
.homeextra > summary { list-style:none; display:flex; align-items:center; gap:12px; }
.homeextra > summary::-webkit-details-marker { display:none; }
.homeextra > summary::after { content:''; margin-left:auto; flex:none; width:11px; height:11px; border-right:2.5px solid var(--muted); border-bottom:2.5px solid var(--muted); transform:translateY(-3px) rotate(45deg); transition:transform .2s; }
.homeextra[open] > summary::after { transform:translateY(2px) rotate(-135deg); }
.homeextra[open] > summary { margin-bottom:12px; }

/* หน้ากรอก — แถบสลับเอกสารในงาน (1 → 2 → 3) */
.jobcontext { padding:16px 18px; border-radius:18px; }
.jc-head { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; margin-bottom:12px; }
.jc-head b { font-size:22px; }
.jc-head small { color:var(--muted); font-size:16px; }
.jobcontext nav.jc-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0; }
.jc-step { display:flex; align-items:center; gap:12px; min-height:66px; padding:10px 12px; text-align:left; border:1.5px solid var(--line); border-radius:14px; background:#f8fafc; color:var(--ink); cursor:pointer; }
.jc-step:hover { border-color:var(--pri); }
.jc-step b { display:block; font-size:18px; line-height:1.25; }
.jc-step small { display:block; font-size:14px; color:var(--muted); line-height:1.3; }
.jc-n { flex:none; width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:#e3e9ef; color:var(--muted); font-size:16px; font-weight:800; }
.jc-step.cur { background:#fff; border-color:var(--pri); box-shadow:0 0 0 3px rgba(9,107,104,.14); }
.jc-step.cur .jc-n { background:var(--pri); color:#fff; }
.jc-step.s-pending .jc-n { background:#f2c66d; color:#5c3d00; }
.jc-step.s-rejected .jc-n { background:var(--bad); color:#fff; }
.jc-step.s-approved .jc-n { background:var(--ok); color:#fff; }
.jc-step.absent { border-style:dashed; color:var(--bad); cursor:default; }
.jc-step.absent .jc-n { background:var(--bad-bg); color:var(--bad); }

/* หน้ากรอก — หัวฟอร์ม: ปุ่มกลับอยู่บรรทัดบน ไม่เบียดชื่อฟอร์ม */
.fhead { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"back back" "title act"; gap:4px 16px; align-items:start; }
.fhead > .btn.ghost { grid-area:back; justify-self:start; min-height:40px; padding:2px 8px 2px 2px; border:0; box-shadow:none; color:var(--pri); font-size:18px; }
.fhead .ft { grid-area:title; min-width:0; }
.fhead .fhact { grid-area:act; }

/* หน้ากรอก — ข้อที่กรอกแล้วไม่ต้องมีแถบเขียวทุกข้อ (คงแถบแดง/เหลืองสำหรับข้อที่ต้องดู) */
.fld.done { border-left-color:transparent; }
.flds.two .fld { border-bottom:0; padding-top:10px; padding-bottom:10px; }
.card.sec { box-shadow:0 1px 8px rgba(23,43,67,.03); }

@media (min-width:641px) and (max-width:860px) {
  .flds.two { grid-template-columns:1fr 1fr; column-gap:16px; }
}
@media (max-width:860px) {
  .fhead { grid-template-columns:1fr; grid-template-areas:"back" "title" "act"; }
  .fhead .fhact { flex-direction:row; flex-wrap:wrap; justify-content:flex-start; align-items:center; }
}
@media (max-width:640px) {
  .jobheading { flex-direction:column; align-items:stretch; }
  .jobprog { flex-direction:row; align-items:center; justify-content:space-between; }
  .jobdoc { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:4px 12px; min-height:0; }
  .jobdoc .jd-no { grid-row:1; }
  .jobdoc .jd-name { grid-row:2; grid-column:1; margin:0; }
  .jobdoc .st { grid-row:1 / 3; grid-column:2; justify-self:end; }
  .jd-prog, .jobdoc .jd-meta { grid-column:1 / -1; }
  .jobdoc.s-approved::after { display:none; }
  .jobcontext nav.jc-steps { grid-template-columns:1fr; }
}
.filters > * { min-width:0; }
@media (max-width:560px) {
  .filters { grid-template-columns:1fr; }
  .filters input[type=search] { grid-column:auto; }
}
.brand b { white-space:nowrap; }

/* ===== v1.6 — UX สำหรับพนักงานหน้างาน ===== */
:root { --warn:#9a5b00; --warn-line:#d97706; --warn-bg:#fff5e1; }

/* หน้าเข้าสู่ระบบ: แตะชื่อ แล้วใส่ PIN ด้วยแป้นตัวเลขขนาดใหญ่ (ใช้ได้ขณะสวมถุงมือ) */
.acard.login { max-width:560px; }
.acard.login .alogo { margin-bottom:10px; }
.acard.login h1 { margin:4px 0; }
.pinlabel { font-size:20px; font-weight:700; text-align:center; margin:18px 0 10px; color:var(--ink); }
.acard h2.ugroup { font-size:15px; color:var(--muted); font-weight:600; margin:14px 2px 8px; }
.ugrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-height:50vh; overflow:auto; padding:2px; }
.utile, .pickedu { display:flex; align-items:center; gap:12px; text-align:left; min-height:68px; padding:10px 14px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--ink); font:inherit; cursor:pointer; }
.utile:active, .pickedu:active { background:var(--info-bg); border-color:var(--pri); }
.utile > span:last-child, .pickedu > span:last-child { min-width:0; }
.utile b, .pickedu b { display:block; font-size:19px; line-height:1.25; overflow-wrap:break-word; }
.utile small, .pickedu small { display:block; font-size:14px; color:var(--muted); }
.utile[hidden] { display:none; }
.avatar { flex:0 0 auto; display:inline-grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--info-bg); color:var(--pri); font-weight:700; font-size:20px; }
.pickedu { width:100%; margin-top:14px; border-color:var(--pri); background:var(--info-bg); }
#lg-find { width:100%; font-size:18px; min-height:52px; margin-bottom:6px; }
.pindots { text-align:center; font-size:30px; letter-spacing:10px; min-height:44px; line-height:44px; color:var(--ink); }
.pindots .ph { font-size:16px; letter-spacing:0; color:var(--muted); }
.keypad { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:10px; }
.keypad button { min-height:68px; font-size:28px; font-weight:600; border:1px solid var(--line); border-radius:14px; background:#f7f9fb; color:var(--ink); cursor:pointer; font-family:inherit; touch-action:manipulation; }
.keypad button:active { background:var(--info-bg); border-color:var(--pri); }
.keypad .go { background:var(--pri); border-color:var(--pri); color:#fff; }
.keypad .go:active { background:#075553; }

/* แถบด้านบน: แถวเดียว · แตะชื่อเพื่อเปลี่ยน PIN */
.top nav { display:flex; align-items:center; gap:8px; width:auto; flex-wrap:nowrap; }
.top nav .tb { flex:0 0 auto; }
.tb.who { display:flex; align-items:center; gap:8px; text-align:left; border:1px solid var(--line); border-radius:999px; padding:4px 14px 4px 4px; background:#fff; color:var(--ink); }
.tb.who .avatar { width:34px; height:34px; font-size:16px; }
.tb.who b { display:block; font-size:15px; line-height:1.2; white-space:nowrap; }
.tb.who small { display:block; font-size:12px; color:var(--muted); line-height:1.2; white-space:nowrap; }
@media (max-width:860px) {
  .top { flex-wrap:nowrap; }
  .top nav { width:auto; }
  .top nav .tb { flex:0 0 auto; font-size:16px; }
}
@media (max-width:640px) {
  .top { flex-wrap:wrap; }
  .top nav { width:100%; }
  .top nav .tb { flex:1 1 auto; }
  .tb.who small { display:none; }
}

/* หน้าแรก: ต้องทำตอนนี้ (ฉบับที่ถูกส่งกลับ · AM ที่ถึงกำหนด) */
.todo { margin:0 0 26px; }
.todo h2 { font-size:24px; margin:0 0 12px; display:flex; align-items:center; gap:10px; }
.todo h2 .count { margin-left:0; background:var(--bad); color:#fff; }
.todogrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(400px,1fr)); gap:12px; }
.todocard { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; text-align:left; min-height:92px; padding:14px 16px; border-radius:16px; border:1px solid var(--line); border-left-width:6px; background:#fff; color:var(--ink); font:inherit; cursor:pointer; }
.todocard.bad { border-color:#f0c2c8; border-left-color:var(--bad); background:var(--bad-bg); }
.todocard.warn { border-color:#f1d9a8; border-left-color:var(--warn-line); background:var(--warn-bg); }
.todocard.soon { border-left-color:var(--warn-line); }
.todocard:active { filter:brightness(.97); }
.tdi { display:grid; place-items:center; width:46px; height:46px; border-radius:12px; background:#fff; font-weight:800; font-size:16px; border:1px solid var(--line); }
.todocard.bad .tdi, .todocard.bad .tdt em { color:var(--bad); }
.todocard.warn .tdi, .todocard.soon .tdi, .todocard.warn .tdt em, .todocard.soon .tdt em { color:var(--warn); }
.tdt em { display:block; font-style:normal; font-size:14px; font-weight:700; }
.tdt b { display:block; font-size:19px; line-height:1.3; overflow-wrap:break-word; }
.tdt small { font-size:15px; color:var(--muted); overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.tdgo { font-weight:700; color:var(--pri); white-space:nowrap; font-size:16px; }
@media (max-width:560px) { .todogrid { grid-template-columns:1fr; } .tdgo { display:none; } }

/* หน้ากรอก: เกณฑ์ตรวจอ่านง่ายขึ้น · ปุ่มยกเลิกเอกสารย้ายลงล่าง ห่างจากปุ่มที่ใช้บ่อย */
.fld .std { color:#3d4f63; }
.formfoot { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:12px; margin:18px 0 0; font-size:15px; }

@media (max-width:480px) { .ugrid { grid-template-columns:1fr; } }
@media (max-width:480px) {
  .top nav { gap:4px; }
  .top nav .tb { padding:4px 8px; font-size:15px; white-space:nowrap; }
  .tb.who { padding:4px 12px; gap:6px; }
  .tb.who .avatar { display:none; }
  .tb.who b { font-size:14px; max-width:96px; overflow:hidden; text-overflow:ellipsis; }
}
