html,body{margin:0;min-height:100%;background:#f6f8fb;color:#0f172a}*{box-sizing:border-box}body.pa-standalone{font-family:system-ui,-apple-system,"Segoe UI","Noto Sans Thai",Arial,sans-serif}.pa-standalone-shell{width:100%;margin:0;padding:0}.pa-standalone-content{min-height:100vh}.pa-direct-trigger{display:none!important}.pa-standalone-loading{min-height:70vh;display:grid;place-items:center;align-content:center;gap:10px;color:#475569;text-align:center}.pa-standalone-loading strong{font-size:18px;color:#1e3a8a}.pa-standalone-loading span{font-size:12px}.pa-standalone-mark{display:grid;place-items:center;width:88px;height:88px;border-radius:50%;border:7px solid #dbeafe;background:#2563eb;color:#fff;font-weight:800;font-size:20px;letter-spacing:.08em;box-shadow:0 2px 8px rgba(37,99,235,.15)}
/* legacy topbar */
body.pa-standalone .pav7-top{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:56px;margin:0;padding:10px 12px;border-radius:0;background:linear-gradient(90deg,#2563eb,#1e40af);color:#fff;box-shadow:none;flex-wrap:nowrap}body.pa-standalone .pav7-top label{font-size:14px;font-weight:700;color:#fff;white-space:nowrap}body.pa-standalone .pav7-top select{min-width:280px;max-width:430px;height:38px;padding:0 34px 0 10px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#0f172a;font:inherit;font-size:13px;font-weight:500}body.pa-standalone .pav7-viewmode{display:none!important}body.pa-standalone .pav7-grow{flex:1}body.pa-standalone .pav7-file{order:20;display:inline-flex;align-items:center;height:38px;padding:0 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#1e3a8a;text-decoration:none;font-size:13px;font-weight:800;white-space:nowrap}
body.pa-standalone #pac8Auth,body.pa-standalone #pae9Auth{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.pa-standalone-auth{display:flex;align-items:center;gap:8px;min-width:0}.pa-standalone-auth input{width:150px;height:38px;padding:0 10px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#0f172a;font:inherit;font-size:13px}.pa-standalone-auth button{height:38px;padding:0 13px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#0f172a;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.pa-standalone-auth button:hover{background:#eff6ff}.pa-standalone-stat{max-width:260px;color:#fff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pa-standalone-stat.ok{color:#bbf7d0;font-weight:700}.pa-standalone-stat.bad{color:#fecaca}
/* exact 260px legacy two-column layout */
body.pa-standalone .pav7-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;padding:12px;align-items:start}body.pa-standalone .pav7-side{position:sticky;top:68px;align-self:start;display:flex;flex-direction:column;gap:10px;min-width:240px;padding:15px;border:0;border-right:1px solid #e5e7eb;border-radius:0;background:#f9fafb}body.pa-standalone .pav7-side button,body.pa-standalone .pav7-side a{display:flex;align-items:center;width:100%;min-height:auto;padding:12px 16px;border:0;border-radius:10px;background:#fff;color:#374151;text-align:left;text-decoration:none;font:inherit;font-size:12px;font-weight:400;line-height:1.35;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.08);transition:all .25s ease}body.pa-standalone .pav7-side button:hover,body.pa-standalone .pav7-side a:hover{background:#e0f2fe;color:#0c4a6e;transform:translateX(3px)}body.pa-standalone .pav7-side button.active{background:#2563eb;color:#fff;font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.08)}body.pa-standalone .pav7-side .pae9-side.green{background:#16a34a!important;color:#fff!important;font-weight:800;border:1px solid #15803d}body.pa-standalone .pav7-side .pae9-side.red{background:#ef4444!important;color:#fff!important;font-weight:800;border:1px solid #dc2626}body.pa-standalone .pav7-side .pav7-muted{display:none}body.pa-standalone .pav7-side .pav7-survey{margin-top:0}
body.pa-standalone .pav7-main{min-height:calc(100vh - 80px);padding:12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04)}
/* section title from original */
body.pa-standalone .pav7-header{display:grid;gap:10px;margin:0 0 6px}body.pa-standalone .pav7-crest{display:grid;place-items:center;width:120px;height:120px;margin:0 auto;padding:6px;border:1px solid #c7d2fe;border-radius:9999px;background:#fff;color:#1d4ed8;font-size:22px;font-weight:800;letter-spacing:.08em;box-shadow:0 2px 8px rgba(37,99,235,.15)}body.pa-standalone .pav7-crest::before{content:"BNW";display:grid;place-items:center;width:86px;height:86px;border-radius:50%;background:#2563eb;color:#fff}body.pa-standalone .pav7-crest{font-size:0}body.pa-standalone .pav7-crest::before{font-size:22px}body.pa-standalone .pav7-ribbon{width:100%;padding:12px;border-radius:8px;background:linear-gradient(90deg,#1d4ed8,#1e40af);color:#fff;text-align:center;font-size:20px;font-weight:800;line-height:1.35;box-shadow:0 2px 12px rgba(2,6,23,.15) inset,0 4px 10px rgba(2,6,23,.08)}
/* person ribbon */
body.pa-standalone .pav7-person{display:flex;align-items:center;margin:12px 0 14px}body.pa-standalone .pav7-avatar{z-index:2;display:grid;place-items:center;width:108px;height:108px;flex:0 0 108px;border:5px solid #2563eb;border-radius:50%;overflow:hidden;background:#dbeafe;color:#1d4ed8;font-size:22px;font-weight:800}body.pa-standalone .pav7-avatar img{width:100%;height:100%;object-fit:cover}body.pa-standalone .pav7-person>div:last-child{min-width:330px;max-width:620px;margin-left:-12px;padding:13px 22px 13px 32px;border:5px solid #2563eb;border-radius:0 999px 999px 0;background:#2f67e8;color:#fff;box-shadow:inset 0 0 0 3px #fff}body.pa-standalone .pav7-person strong{font-size:16px;font-weight:700}body.pa-standalone .pav7-person small{margin-top:2px;font-size:12px;font-weight:500;opacity:.92}
/* indicator / quote / iframe */
body.pa-standalone .pav7-select{display:flex;align-items:center;gap:10px;margin:8px 0 10px}body.pa-standalone .pav7-select label{min-width:160px;color:#475569;font-size:13px;font-weight:600}body.pa-standalone .pav7-select select{flex:1;min-height:42px;padding:8px 38px 8px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font:inherit;font-size:13px;font-weight:500}body.pa-standalone .pav7-quote{margin:10px 0 12px;padding:12px 14px;border-left:4px solid #2563eb;border-radius:9px;background:#eef3ff;color:#1e293b;font-size:14px;font-weight:500;line-height:1.65}body.pa-standalone .pav7-quote.green{border-left-color:#16a34a;background:#ecfdf5;color:#166534}body.pa-standalone .pav7-frame{overflow:hidden;margin:10px 0 14px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}body.pa-standalone .pav7-framebar{padding:8px 11px;border-bottom:1px solid #e5e7eb;background:#f8fafc;font-size:12px}body.pa-standalone .pav7-frame iframe{display:block;width:100%;height:max(620px,68vh);border:0;background:#fff}
/* tables / tabs */
body.pa-standalone .pav7-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}body.pa-standalone .pav7-tabs button{min-height:36px;padding:7px 14px;border:1px solid #dbe2ea;border-radius:999px;background:#fff;color:#334155;font:inherit;font-size:12px;font-weight:600;cursor:pointer}body.pa-standalone .pav7-tabs button.active{border-color:#2563eb;background:#2563eb;color:#fff}body.pa-standalone .pav7-tablewrap{overflow:auto;margin:10px 0 14px;border:1px solid #dbe2ea;border-radius:10px;background:#fff}body.pa-standalone .pav7-table{width:100%;min-width:920px;border-collapse:collapse}body.pa-standalone .pav7-table th,body.pa-standalone .pav7-table td{padding:9px 10px;border:1px solid #dbe2ea;vertical-align:top;font-size:12.5px;line-height:1.45}body.pa-standalone .pav7-table th{background:#eaf1ff;color:#172554;font-weight:700;text-align:center}body.pa-standalone .pav7-table img{display:block;width:112px;height:72px;border-radius:5px;object-fit:cover}
body.pa-standalone .pav7-footer{margin:18px 12px 24px;padding:14px 16px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;color:#334155;text-align:center;font-size:13px;line-height:1.55}body.pa-standalone .pac8-modal,body.pa-standalone .pae9-modal{z-index:12000}
@media(max-width:900px){body.pa-standalone .pav7-top{flex-wrap:wrap}body.pa-standalone .pav7-layout{grid-template-columns:1fr}.pa-standalone-auth{flex:1 1 100%}body.pa-standalone .pav7-side{position:static;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px}body.pa-standalone .pav7-side button,body.pa-standalone .pav7-side a{width:auto}body.pa-standalone .pav7-main{min-height:auto}}
@media(max-width:600px){body.pa-standalone .pav7-top label{width:100%}body.pa-standalone .pav7-top select{width:100%;max-width:none}.pa-standalone-auth{display:grid;grid-template-columns:1fr auto;width:100%}.pa-standalone-auth input{width:100%}.pa-standalone-stat{grid-column:1/-1;max-width:none}body.pa-standalone .pav7-ribbon{font-size:17px}body.pa-standalone .pav7-crest{width:90px;height:90px}body.pa-standalone .pav7-crest::before{width:62px;height:62px;font-size:18px}body.pa-standalone .pav7-avatar{width:76px;height:76px;flex-basis:76px;border-width:4px}body.pa-standalone .pav7-person>div:last-child{min-width:0;flex:1;padding:10px 13px 10px 24px;border-width:4px}body.pa-standalone .pav7-select{display:grid;gap:5px}}
/* smartphone navigation UX */
@media(max-width:700px){
body.pa-standalone{padding-bottom:env(safe-area-inset-bottom,0px)}
body.pa-standalone .pav7-top{position:relative;top:auto;display:flex;align-items:stretch;gap:8px;padding:12px 14px 14px;flex-wrap:wrap}
body.pa-standalone .pav7-top label{width:100%;font-size:13px}
body.pa-standalone .pav7-top select{width:100%;max-width:none;min-width:0;height:46px;border-radius:14px}
body.pa-standalone .pav7-top .patarget-wrap{width:100%;max-width:none}
body.pa-standalone .pav7-top .pav7-grow{display:none}
body.pa-standalone .pav7-file{margin-left:auto;height:42px;border-radius:12px;padding:0 14px}
.pa-standalone-auth{width:100%;gap:8px}
body.pa-standalone .pav7-layout{display:block;padding:10px 12px calc(84px + env(safe-area-inset-bottom,0px))}
body.pa-standalone .pav7-side{position:static;display:grid;grid-template-columns:minmax(0,1fr);gap:9px;width:100%;min-width:0;margin:0 0 12px;padding:12px;border:1px solid #e5e7eb;border-radius:18px;background:#f8fafc;box-shadow:0 5px 18px rgba(15,23,42,.05)}
body.pa-standalone .pav7-side .pa-side-logo{width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;margin:0 auto 4px!important;border-radius:16px!important}
body.pa-standalone .pav7-side button,body.pa-standalone .pav7-side a{width:100%!important;min-height:52px;padding:13px 16px;border:1px solid #e5e7eb;border-radius:14px;font-size:14px;font-weight:650;line-height:1.35;text-align:left;justify-content:flex-start;box-shadow:0 2px 8px rgba(15,23,42,.05);transform:none!important}
body.pa-standalone .pav7-side button.active{border-color:#2563eb;background:#2563eb;color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.18)}
body.pa-standalone .pav7-side .pae9-side.green,body.pa-standalone .pav7-side .pae9-side.red{width:100%!important;min-height:54px;justify-content:center;text-align:center;font-size:14px;border-radius:14px}
body.pa-standalone .pav7-side .pae9-side.green:first-of-type{margin-top:8px}
body.pa-standalone .pav7-main{width:100%;padding:10px;border-radius:16px}
body.pa-standalone .pav7-header{gap:8px}
body.pa-standalone .pav7-ribbon{padding:11px 12px;border-radius:12px;font-size:17px}
body.pa-standalone .pav7-person{margin:10px 0 12px}
body.pa-standalone .pav7-avatar{width:68px;height:68px;flex-basis:68px;border-width:3px}
body.pa-standalone .pav7-person>div:last-child{padding:9px 12px 9px 22px;border-width:3px}
body.pa-standalone .pav7-person strong{font-size:14px}
body.pa-standalone .pav7-person small{font-size:11px}
body.pa-standalone .pav7-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;padding:2px 1px 6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
body.pa-standalone .pav7-tabs::-webkit-scrollbar{display:none}
body.pa-standalone .pav7-tabs button{flex:0 0 auto;min-height:40px}
body.pa-standalone .pav7-tablewrap{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
body.pa-standalone .pav7-frame:has(iframe[src*="canva.com"]) {background:#fff}
body.pa-standalone .pav7-frame iframe[src*="canva.com"]{height:auto!important;aspect-ratio:16/9;background:#fff}
body.pa-standalone .pav7-footer{margin:14px 0 calc(22px + env(safe-area-inset-bottom,0px))}
}
/* tablet portrait: single-row toolbar + modern horizontal navigation */
@media (min-width:701px) and (max-width:1100px){
 body.pa-standalone .pav7-top{
   position:sticky;top:0;z-index:50;
   display:flex;align-items:center;flex-wrap:nowrap;
   gap:8px;min-height:58px;padding:9px 12px;
   overflow:visible
 }
 body.pa-standalone .pav7-top label{
   flex:0 0 auto;width:auto;max-width:none;
   font-size:12px;white-space:nowrap
 }
 body.pa-standalone .pav7-top select{
   flex:1 1 250px;min-width:190px;max-width:340px;
   width:auto;height:40px;padding-left:10px;
   border-radius:12px;font-size:12px
 }
 body.pa-standalone .pav7-top .patarget-wrap{
   flex:1 1 250px;min-width:190px;max-width:340px;width:auto
 }
 body.pa-standalone .pav7-top .patarget-wrap select{width:100%;max-width:none}
 body.pa-standalone .pav7-top .pav7-grow,
 body.pa-standalone .pav7-top .pav7-viewmode{display:none!important}
 body.pa-standalone .pa-standalone-auth{
   flex:0 1 auto;width:auto;min-width:0;
   display:flex;align-items:center;gap:6px;white-space:nowrap
 }
 body.pa-standalone .pa-code-field{
   flex:0 1 118px;width:118px;height:40px
 }
 body.pa-standalone .pa-code-field input{height:40px!important}
 body.pa-standalone .pa-standalone-auth button,
 body.pa-standalone .pa-standalone-logout{
   flex:0 0 auto;height:40px;padding:0 11px;font-size:12px;border-radius:11px
 }
 body.pa-standalone .pa-standalone-stat{
   flex:0 1 150px;max-width:150px;font-size:10.5px
 }
 body.pa-standalone .pav7-file{
   order:30;flex:0 0 auto;margin-left:auto;
   height:40px;padding:0 11px;border-radius:11px;font-size:12px
 }

 body.pa-standalone .pav7-layout{
   display:block;padding:0 14px 16px
 }
 body.pa-standalone .pav7-side{
   position:sticky;top:58px;z-index:35;
   display:flex;flex-direction:row;flex-wrap:nowrap;
   gap:8px;width:100%;min-width:0;
   margin:0 0 12px;padding:10px 2px 11px;
   overflow-x:auto;overflow-y:hidden;
   border:0;border-bottom:1px solid #e2e8f0;border-radius:0;
   background:rgba(246,248,251,.96);
   box-shadow:0 6px 16px rgba(15,23,42,.04);
   -webkit-overflow-scrolling:touch;scrollbar-width:none
 }
 body.pa-standalone .pav7-side::-webkit-scrollbar{display:none}
 body.pa-standalone .pav7-side .pa-side-logo{display:none!important}
 body.pa-standalone .pav7-side button,
 body.pa-standalone .pav7-side a{
   flex:0 0 auto;width:auto!important;min-width:max-content;min-height:44px;
   display:inline-flex;align-items:center;justify-content:center;
   padding:0 15px;border:1px solid #e2e8f0;border-radius:12px;
   background:#fff;color:#334155;
   font-size:12.5px;font-weight:650;line-height:1.2;text-align:center;
   box-shadow:0 2px 8px rgba(15,23,42,.05);
   transform:none!important
 }
 body.pa-standalone .pav7-side button:hover,
 body.pa-standalone .pav7-side a:hover{
   border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8;transform:none
 }
 body.pa-standalone .pav7-side button.active{
   border-color:#2563eb;background:linear-gradient(135deg,#2563eb,#1d4ed8);
   color:#fff;font-weight:800;
   box-shadow:0 7px 18px rgba(37,99,235,.20)
 }
 body.pa-standalone .pav7-side .pae9-side.green,
 body.pa-standalone .pav7-side .pae9-side.red{
   width:auto!important;min-height:44px;padding:0 15px;border-radius:12px
 }
 body.pa-standalone .pav7-main{
   width:100%;min-height:auto;padding:14px;border-radius:16px
 }
}

@media print{body.pa-standalone{background:#fff}.pa-standalone-shell{width:100%;padding:0}body.pa-standalone .pav7-top,body.pa-standalone .pav7-side,body.pa-standalone .pav7-footer{display:none!important}body.pa-standalone .pav7-layout{display:block;padding:0}body.pa-standalone .pav7-main{border:0;box-shadow:none}}

/* Satisfaction survey button — pastel yellow */
body.pa-standalone .pav7-side .pav7-survey{
  background:#fff7d6!important;
  border-color:#f6d98b!important;
  color:#7a5a12!important;
  font-weight:750!important;
  box-shadow:0 3px 10px rgba(180,135,35,.10)!important;
}
body.pa-standalone .pav7-side .pav7-survey:hover{
  background:#ffefb8!important;
  border-color:#efc963!important;
  color:#6b4b08!important;
}
