body.tnpq-fullscreen{margin:0;background:#fff;font-family:-apple-system,BlinkMacSystemFont,'Prompt','Segoe UI',sans-serif}
.tnpq-app{max-width:520px;margin:0 auto;padding:6px 14px 100px;font-size:15px}
.tnpq-h{font-family:'Prompt',sans-serif;font-weight:600;font-size:21px;margin:4px 0 2px}
.tnpq-h-form{margin-bottom:24px}
.tnpq-h3{font-family:'Prompt',sans-serif;font-weight:600;font-size:16px;margin:18px 0 6px}
.tnpq-user{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #e5e5e5;border-radius:12px;margin:0 0 22px;background:#fafafa}
.tnpq-ava{width:42px;height:42px;border-radius:50%;object-fit:cover;flex:0 0 42px}
.tnpq-ava-ph{display:flex;align-items:center;justify-content:center;background:#e6f1fb;color:#0c447c;font-weight:600;font-size:18px}
.tnpq-user-info{flex:1;min-width:0}
.tnpq-user-name{font-weight:500;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tnpq-user-role{font-size:12px;color:#777}
.tnpq-logout{font-size:13px;color:#a32d2d;text-decoration:none;white-space:nowrap}
.tnpq-fld{margin-bottom:24px}
.tnpq-lbl{display:flex;align-items:center;gap:7px;font-size:13px;color:#555;margin-bottom:8px}
.tnpq-ic{width:17px;height:17px;flex:0 0 17px;color:#378add}
.tnpq-two .tnpq-fld{margin-bottom:0}
.tnpq-seg{display:flex;gap:6px}
.tnpq-sb{flex:1;min-height:50px;border:1px solid #ccc;border-radius:8px;background:#fff;color:#222;font-size:15px;cursor:pointer}
.tnpq-sb.on{background:#e6f1fb;border-color:#378add;color:#0c447c;font-weight:500}
.tnpq-form select,.tnpq-form input[type=number],.tnpq-form input[type=text]{width:100%;height:50px;border:1px solid #ccc;border-radius:8px;padding:0 12px;font-size:16px;line-height:normal;box-sizing:border-box;background:#fff}
.tnpq-form select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:40px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8 0 0h12z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.tnpq-two{display:flex;gap:8px;margin-bottom:24px}
.tnpq-two .tnpq-fld{flex:1}
.tnpq-area{margin-top:8px;font-size:14px;color:#555}
.tnpq-area span{color:#111;font-weight:500}
.tnpq-err{color:#a32d2d;margin:8px 0}
.tnpq-bar{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #e5e5e5;padding:10px 16px;z-index:9999}
.tnpq-hint{font-size:12px;color:#999;text-align:center;margin-bottom:8px}
.tnpq-calc{width:100%;min-height:50px;border-radius:10px;border:1px solid #ccc;background:#f1f1f1;color:#999;font-size:17px;font-weight:500;cursor:not-allowed}
.tnpq-calc.ready{background:#378add;border-color:#185fa5;color:#fff;cursor:pointer}
.tnpq-total{background:#e6f1fb;border-radius:12px;padding:18px;text-align:center;margin:8px 0 16px}
.tnpq-total-lbl{font-size:13px;color:#185fa5}
.tnpq-total-val{font-family:'Prompt',sans-serif;font-size:30px;font-weight:600;color:#0c447c}
.tnpq-tbl{width:100%;border-collapse:collapse;font-size:14px}
.tnpq-tbl td{padding:8px 4px;border-bottom:1px solid #eee}
.tnpq-tbl td:last-child{text-align:right;white-space:nowrap}
.tnpq-bar2{display:flex;gap:8px;margin:18px 0}
.tnpq-back{display:inline-flex;align-items:center;min-height:48px;border-radius:10px;border:1px solid #ccc;background:#fff;padding:0 16px;font-size:15px;text-decoration:none;color:#222;cursor:pointer}
.tnpq-next{flex:1;min-height:48px;border-radius:10px;border:1px solid #ccc;background:#f1f1f1;color:#999;font-size:15px;cursor:not-allowed}
.tnpq-next.ready{background:#378add;border-color:#185fa5;color:#fff;font-weight:500;cursor:pointer}
.tnpq-suffix{position:relative}
.tnpq-suffix>input{padding-right:34px}
.tnpq-suffix::after{content:attr(data-suffix);position:absolute;right:14px;top:0;height:50px;display:flex;align-items:center;color:#999;font-size:15px;pointer-events:none}
.tnpq-login-wrap{min-height:78vh;display:flex;align-items:center;justify-content:center;padding:16px}
.tnpq-login-card{width:100%;max-width:360px;text-align:center}
.tnpq-login-msg{color:#555;font-size:15px;margin:10px 0 24px;line-height:1.6}
.tnpq-line-btn{position:relative;display:flex;align-items:center;justify-content:center;width:300px;max-width:100%;box-sizing:border-box;height:40px;margin:0 auto;background:#fff;color:#1f1f1f;border:1px solid #dadce0;border-radius:20px;font-size:14px;font-weight:500;text-decoration:none}
.tnpq-line-btn svg{position:absolute;left:12px;top:50%;transform:translateY(-50%)}
.tnpq-line-btn:hover{background:#f7f8f8;color:#1f1f1f}
@media(min-width:560px){.tnpq-bar{max-width:520px;left:50%;transform:translateX(-50%);border-radius:12px 12px 0 0}}
.tnpq-doc{position:relative;overflow:hidden;border:1px solid #333;padding:14px;font-size:13px;color:#000;background:#fff}
.tnpq-doc-watermark{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-30deg);font-family:'Prompt',sans-serif;font-size:90px;font-weight:700;color:rgba(200,0,0,.10);white-space:nowrap;pointer-events:none;z-index:0}
.tnpq-doc>*:not(.tnpq-doc-watermark){position:relative;z-index:1}
.tnpq-sign-img{height:46px;width:auto;display:block;margin:0 auto 2px}
.tnpq-doc-head{display:flex;justify-content:space-between;border-bottom:2px solid #333;padding-bottom:8px;margin-bottom:8px}
.tnpq-doc-seller{display:flex;gap:10px;align-items:flex-start}
.tnpq-doc-logo{width:60px;height:auto}
.tnpq-doc-title{text-align:right}
.tnpq-doc-t1{font-weight:700;font-size:18px}
.tnpq-doc-t2{font-size:12px;color:#444;margin-bottom:4px}
.tnpq-doc-cust{display:flex;justify-content:space-between;gap:12px;border:1px solid #333;padding:8px;margin-bottom:8px}
.tnpq-doc-meta{white-space:nowrap}
.tnpq-doc-tbl,.tnpq-doc-tot{width:100%;border-collapse:collapse;margin-bottom:8px}
.tnpq-doc-tbl th,.tnpq-doc-tbl td,.tnpq-doc-tot td{border:1px solid #333;padding:5px 6px;vertical-align:top}
.tnpq-doc-tbl th{background:#f0f0f0;text-align:center}
.tnpq-doc-desc{white-space:normal;line-height:1.5}
.tnpq-r{text-align:right;white-space:nowrap}
.tnpq-doc-baht{text-align:center;font-weight:600}
.tnpq-doc-sign{display:flex;justify-content:space-around;gap:24px;margin-top:28px;text-align:center}
.tnpq-sign-line{border-bottom:1px dotted #333;height:40px;margin-bottom:4px}
.tnpq-doc-seller a{text-decoration:none!important;color:inherit!important}
@media print{
	@page{margin:0}
	body.tnpq-fullscreen .tnpq-noprint,.tnpq-noprint{display:none!important}
	.tnpq-app{max-width:none;padding:8mm}
	.tnpq-user{display:none}
	.tnpq-doc{border:none}
	.tnpq-doc-watermark{display:none!important}
}
.tnpq-histbtn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:#185fa5;text-decoration:none}
.tnpq-histbtn svg{width:23px;height:23px}
.tnpq-tbl td a{color:#185fa5;text-decoration:none;font-weight:500}
.tnpq-or{margin:14px 0;color:#999;font-size:13px}
.g_id_signin{display:flex;justify-content:center}
.tnpq-iab{max-width:300px;margin:0 auto 18px;padding:12px 14px;background:#fff8e1;border:1px solid #f0d27a;border-radius:12px}
.tnpq-iab-txt{margin:0 0 10px;color:#7a5b00;font-size:13px;line-height:1.55;text-align:left}
.tnpq-iab-btn{display:block;width:100%;box-sizing:border-box;height:40px;line-height:40px;background:#185fa5;color:#fff;border-radius:20px;font-size:14px;font-weight:500;text-decoration:none}
.tnpq-iab-btn:hover{background:#134e88;color:#fff}
