/* MEKUN PLUS — shared styles */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
img{max-width:100%}
[hidden]{display:none!important}
.hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #12C08A;outline-offset:2px}

.card{background:#FFFFFF;border:1px solid #E3E8EE;border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:20px;box-sizing:border-box}
.ch{display:flex;align-items:center;gap:12px}
.ch h2{margin:0;font-size:21px;font-weight:700}
.num{width:34px;height:34px;border-radius:10px;background:#0B1F3A;color:#FFFFFF;font-family:'Sora',sans-serif;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.col{display:flex;flex-direction:column;gap:10px}
.row-sb{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.lbt{font-size:14px;font-weight:600}
.small{font-size:13px;color:#5B6B7F;line-height:1.5}
.bigout{font-family:'Sora',sans-serif;font-size:26px;font-weight:700;color:#087A57}
.note{font-size:13px;color:#4A5A6E;background:#F7F9FA;border-radius:10px;padding:10px 14px}
.pills{display:flex;flex-wrap:wrap;gap:10px}
.tg{min-height:44px;padding:0 20px;border-radius:999px;font-family:inherit;font-size:15px;font-weight:600;cursor:pointer;border:2px solid #C9D2DC;background:#FFFFFF;color:#0B1F3A}
.optgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.optcard{text-align:left;border-radius:14px;padding:16px 18px;font-family:inherit;cursor:pointer;display:flex;flex-direction:column;gap:6px;min-height:44px;border:2px solid #C9D2DC;background:#FFFFFF;color:#0B1F3A}
.optcard .ot{font-size:16px;font-weight:700}
.optcard .od{font-size:13px;opacity:.8;line-height:1.5}
.tg[aria-pressed="true"],.optcard[aria-pressed="true"]{border-color:#0B1F3A;background:#0B1F3A;color:#FFFFFF}
.fgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.in{height:46px;border:1px solid #C9D2DC;border-radius:10px;padding:0 14px;font-size:15px;background:#F7F9FA;font-family:inherit;color:#0B1F3A;box-sizing:border-box;width:100%}
textarea.in{height:auto;padding:12px 14px;resize:vertical}
.lb{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500}
input[type=range]{width:100%;accent-color:#12C08A;height:28px}
input[type=checkbox]{width:20px;height:20px;accent-color:#087A57;flex-shrink:0}
.btn-main{height:54px;border:none;border-radius:12px;background:#12C08A;color:#0B1F3A;font-family:inherit;font-size:17px;font-weight:700;cursor:pointer}
.btn-main[disabled],button[disabled]{opacity:.6;cursor:progress}
.form-err{background:#FDECEC;color:#A61B1B;border-radius:10px;padding:12px 16px;font-size:14px;font-weight:500}
.form-ok{background:#E8F8F1;color:#0B1F3A;border:2px solid #12C08A;border-radius:14px;padding:22px;font-size:15px;line-height:1.7}
.form-ok b{color:#087A57}
.filelist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.filelist li{display:flex;align-items:center;gap:12px;border:1px solid #E3E8EE;border-radius:12px;padding:8px 10px}
.filelist .th{width:44px;height:44px;object-fit:cover;border-radius:8px;display:block;flex-shrink:0}
.filelist .pdf{width:44px;height:44px;border-radius:8px;background:#E8F8F1;color:#087A57;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.filelist .fn{flex:1;min-width:0;display:flex;flex-direction:column}
.filelist .fn span:first-child{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filelist .fn span:last-child{font-size:12px;color:#5B6B7F}
.filelist button{width:44px;height:44px;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.legal{max-width:860px;margin:0 auto;padding:56px 24px 88px;font-size:16px;line-height:1.85}
.legal h2{font-size:22px;margin:36px 0 10px}
.legal li{margin-bottom:6px}

/* phone: menu scrolls sideways on its own row */
@media (max-width:820px){
  header nav{order:3;width:100%;flex-wrap:nowrap!important;overflow-x:auto;white-space:nowrap;gap:22px!important;padding-bottom:6px;-webkit-overflow-scrolling:touch}
}
@media (max-width:560px){
  .card{padding:20px}
  header img{height:44px!important}
  aside[aria-label]{position:static!important}
}

/* การ์ดตำแหน่งงาน: แตะการ์ดเพื่อเลือก กรอบสีเขียวย้ายตาม */
.job{border:1px solid #E3E8EE;background:#FFFFFF;box-shadow:inset 0 0 0 1px transparent;cursor:pointer;transition:background .2s,border-color .2s,box-shadow .2s}
.job:hover{border-color:#12C08A}
.job.is-active{border-color:#12C08A;background:#F3FBF7;box-shadow:inset 0 0 0 1px #12C08A}
.job .job-btn{margin-top:auto;border:1.5px solid #0B1F3A;background:transparent;color:#0B1F3A;text-decoration:none;font-weight:600;font-size:15px;padding:12px 20px;border-radius:10px;text-align:center;min-height:44px;box-sizing:border-box;transition:background .2s,color .2s}
.job.is-active .job-btn{background:#0B1F3A;color:#FFFFFF}

/* iPad / จอกลาง: ซ่อนปุ่มมุมขวาบนเพื่อให้เมนู 9 รายการอยู่บรรทัดเดียว (เมนูมี "ประเมินราคา" อยู่แล้ว) */
@media (min-width: 901px) and (max-width: 1340px){
  header > div > a:last-child{display:none!important}
  header nav{gap:6px 14px!important}
}

/* ===== หัวกระดาษ (Letterhead) สำหรับเอกสารที่ส่งให้ลูกค้า ===== */
.lh{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px 24px;padding-bottom:12px;border-bottom:2px solid #1E9E6A;color:#6B7280;font-family:'IBM Plex Sans Thai',Tahoma,sans-serif}
.lh-mark{font-family:Arial,'Helvetica Neue',sans-serif;font-size:30px;line-height:1.05;letter-spacing:-.01em}
.lh-mark b{color:#1F2A44;font-weight:700}
.lh-mark span{color:#1E9E6A}
.lh-name{font-size:12px;margin-top:4px}
.lh-r{display:flex;gap:12px;align-items:flex-start}
.lh-c{text-align:right;font-size:12px;line-height:1.65}
.lh-qr{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:10px}
.lh-qr img{width:64px;height:64px;display:block;image-rendering:pixelated}
.lh-foot{border-top:1px solid #D0D4DA;padding-top:8px;text-align:center;font-size:11px;color:#6B7280;font-family:'IBM Plex Sans Thai',Tahoma,sans-serif}
.doc-title{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 16px;margin:16px 0 14px}
.doc-title h1{margin:0;font-size:24px;color:#1F2A44;font-weight:700}
.doc-title h1 small{font-family:Arial,sans-serif;font-size:13px;color:#1E9E6A;margin-left:10px;letter-spacing:.04em}
.doc-meta{font-size:13px;color:#4A5A6E;text-align:right}
.doc-tbl{width:100%;border-collapse:collapse;font-size:13.5px;margin:6px 0 14px}
.doc-tbl th,.doc-tbl td{padding:7px 10px;border-bottom:1px solid #E3E8EE;text-align:left;vertical-align:top}
.doc-tbl th{background:#F3F6F8;font-weight:600;color:#1F2A44}
.doc-tbl td.n{text-align:right;white-space:nowrap}
.doc-tbl tr.tot td{border-top:2px solid #1F2A44;font-weight:700;color:#1F2A44}
.doc-h{font-size:14px;font-weight:700;color:#087A57;margin:14px 0 4px}
.doc-note{font-size:12px;line-height:1.6;color:#4A5A6E;background:#F7F9FA;border-radius:8px;padding:10px 12px;margin-top:10px}
.btn-print{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border:1.5px solid #0B1F3A;background:#FFFFFF;color:#0B1F3A;font-family:inherit;font-weight:600;font-size:15px;padding:0 18px;border-radius:10px;cursor:pointer}
.btn-print:hover{background:#F7F9FA}
#print-doc{display:none}
@media (max-width:560px){.lh-mark{font-size:24px}.lh-r{width:100%;justify-content:flex-end}}
@media print{
  @page{size:A4;margin:12mm 14mm 16mm}
  html,body{background:#FFFFFF!important}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.printing > *{display:none!important}
  body.printing > #print-doc{display:block!important;font-family:'IBM Plex Sans Thai',Tahoma,sans-serif;color:#0B1F3A;padding-bottom:40px}
  #print-doc .lh-foot{position:fixed;left:0;right:0;bottom:0;background:#FFFFFF}
  #print-doc .no-print{display:none!important}
  .doc-tbl tr{break-inside:avoid}
}
button[data-print]{border:none;cursor:pointer;font-family:inherit}
@media print{
  body.printing > #print-doc{font-size:12.5px;padding-bottom:0}
  #print-doc .lh-foot{position:static;margin-top:18px}
  #print-doc .doc-tbl{font-size:12px;margin:4px 0 10px}
  #print-doc .doc-tbl th,#print-doc .doc-tbl td{padding:4px 8px}
  #print-doc .doc-h{margin:10px 0 2px;font-size:13px}
  #print-doc .doc-title{margin:12px 0 8px}
  #print-doc .lh-c{font-size:11px}
}
