
:root{
  --navy:#17327f; --navy2:#0f2560; --blue:#2352b8; --red:#d9282f;
  --sky:#eaf3ff; --sky2:#dce9ff; --ink:#14224d; --muted:#5a6a91; --line:#dbe5f5;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; padding:16px; min-height:100vh;
  font-family:'Prompt','Noto Sans Thai','Sarabun',system-ui,sans-serif;
  color:var(--ink);
  background:linear-gradient(160deg,#d6e6fb 0%,#f3f8ff 50%,#d9e6fa 100%);
  background-attachment:fixed;
}
.app{
  max-width:1060px; margin:0 auto; background:#fff; border-radius:28px; overflow:hidden;
  box-shadow:0 20px 60px rgba(23,50,127,.18); min-height:calc(100vh - 32px);
  display:flex; flex-direction:column; position:relative;
}
/* ---------- header ---------- */
.top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 28px; background:rgba(255,255,255,.95); border-bottom:1px solid var(--line);
  position:relative; z-index:5;
}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit}
.brand .logo{width:56px; height:56px; flex:none}
.brand .logo img,.brand .logo svg{width:100%; height:100%; object-fit:contain; border-radius:50%}
.brand b{display:block; font-size:19px; color:var(--navy); line-height:1.2}
.brand small{display:block; font-size:13px; color:var(--navy); font-weight:500}
nav{display:flex; align-items:center}
nav a{
  display:inline-flex; align-items:center; gap:6px; margin-left:22px; padding:8px 2px;
  font-weight:600; font-size:15px; color:var(--navy); text-decoration:none;
  border-bottom:3px solid transparent;
}
nav a.active{border-bottom-color:var(--red)}
nav a svg{width:18px; height:18px}
.burger{display:none; background:none; border:0; padding:8px; color:var(--navy); cursor:pointer}
.burger svg{width:26px; height:26px}
/* ---------- view ---------- */
#view{flex:1; position:relative; background:linear-gradient(180deg,#e8f2ff 0%,#f6faff 55%,#fff 100%); overflow:hidden}
.wave{position:absolute; left:0; right:0; bottom:0; width:100%; height:96px; pointer-events:none}
.page{position:relative; z-index:2; padding:30px 36px 120px}
/* ---------- hero ---------- */
.hero{display:grid; grid-template-columns:42% 1fr; gap:8px; align-items:center; min-height:560px; padding:34px 36px 130px; position:relative; z-index:2}
.hero-art{position:relative; display:flex; justify-content:center; align-items:center}
.mascot{width:100%; max-width:310px; height:auto; filter:drop-shadow(0 12px 14px rgba(23,50,127,.25)); animation:bob 3.2s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.church{position:absolute; right:-10px; bottom:95px; width:46%; max-width:380px; opacity:.55; z-index:1; pointer-events:none}
.hero-body{position:relative; z-index:3; text-align:center}
.hero h1{margin:0; font-size:clamp(28px,4.4vw,46px); line-height:1.25; font-weight:800; color:var(--navy)}
.year-pill{display:inline-block; margin:12px 0 22px; position:relative}
.year-pill span{display:inline-block; background:var(--red); color:#fff; font-weight:800; font-size:clamp(22px,3vw,34px); padding:2px 30px 4px; border-radius:16px; box-shadow:0 6px 14px rgba(217,40,47,.3)}
.year-pill::before,.year-pill::after{content:""; position:absolute; top:50%; width:16px; height:3px; background:var(--red); border-radius:3px}
.year-pill::before{left:-26px; transform:rotate(-22deg)}
.year-pill::after{right:-26px; transform:rotate(22deg)}
.search-card{background:#fff; border-radius:22px; padding:22px 24px 20px; box-shadow:0 10px 30px rgba(23,50,127,.16); text-align:left; max-width:560px; margin:0 auto}
.fields{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.fld span{display:flex; align-items:center; gap:6px; font-weight:700; font-size:14px; color:var(--navy); margin-bottom:6px}
.fld svg{width:16px; height:16px}
.fld input{
  width:100%; font:inherit; font-size:15px; padding:11px 16px; color:var(--ink);
  border:1.5px solid var(--line); border-radius:999px; background:#f5f9ff; outline:none; transition:.15s;
}
.fld input:focus{border-color:var(--blue); background:#fff; box-shadow:0 0 0 4px rgba(35,82,184,.12)}
.fld input::placeholder{color:#9aa9c8}
.btn-main{
  margin-top:16px; width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
  font:inherit; font-weight:700; font-size:18px; color:#fff; background:var(--navy);
  border:0; border-radius:999px; padding:12px 20px; cursor:pointer; transition:.15s;
  box-shadow:0 8px 18px rgba(23,50,127,.3);
}
.btn-main:hover{background:var(--navy2); transform:translateY(-1px)}
.btn-main svg{width:22px; height:22px}
.hint{margin:12px 2px 0; font-size:12.5px; color:var(--muted); line-height:1.5}
.err{display:none; margin-top:12px; padding:9px 14px; border-radius:12px; background:#ffe9ea; color:#a3181e; font-size:13.5px; font-weight:500}
.err.show{display:block}
.venue{display:flex; justify-content:center; align-items:center; gap:6px; margin-top:18px; font-weight:700; font-size:14px; color:var(--navy)}
.venue svg{width:18px; height:18px; color:var(--red)}
/* ---------- shared ---------- */
.back{
  display:inline-flex; align-items:center; gap:6px; font:inherit; font-weight:700; font-size:15px;
  color:var(--navy); background:#fff; border:2px solid #b9cdf0; border-radius:999px; padding:8px 20px 8px 14px;
  text-decoration:none; cursor:pointer; box-shadow:0 3px 8px rgba(23,50,127,.08);
}
.back svg{width:18px; height:18px}
.back:hover{background:var(--sky)}
.title{display:flex; align-items:center; justify-content:center; gap:10px; margin:6px 0 14px; position:relative}
.title h2{margin:0; font-size:clamp(26px,3.4vw,36px); font-weight:800; color:var(--navy)}
.title svg.ic{width:38px; height:38px; color:var(--navy); flex:none}
.spark{display:inline-block; width:34px; height:30px; position:relative}
.spark i{position:absolute; width:5px; height:16px; background:var(--red); border-radius:4px; top:6px}
.spark i:nth-child(1){left:2px; transform:rotate(-35deg)}
.spark i:nth-child(2){left:14px; transform:rotate(8deg); top:0}
.spark i:nth-child(3){left:26px; transform:rotate(45deg); top:10px}
.pagehead{display:flex; align-items:center; margin-bottom:6px}
.pagehead .back{flex:none}
.pagehead .title{flex:1; margin:0; padding-right:100px}
.qpill{background:#dce9ff; color:var(--navy); text-align:center; border-radius:999px; padding:9px 18px; font-weight:700; margin:12px 0 16px}
/* ---------- results ---------- */
.tbl{background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 8px 24px rgba(23,50,127,.1); overflow:hidden}
.tr{display:grid; grid-template-columns:1.5fr 1.2fr .7fr 140px; gap:10px; align-items:center; padding:10px 22px; border-top:1px solid #edf2fb; font-size:16px}
.tr:hover:not(.th){background:#f7faff}
.th{background:#f1f6fe; border-top:0; font-weight:700; color:var(--navy); text-align:left}
.th div:nth-child(2){padding-left:0}
.lvl{display:inline-block; background:#dce9ff; color:var(--navy); border-radius:999px; padding:3px 18px; font-weight:700; justify-self:start}
.btn-check{
  display:inline-flex; align-items:center; justify-content:center; gap:4px; background:var(--red); color:#fff;
  border-radius:999px; padding:8px 18px; font-weight:700; font-size:15px; text-decoration:none;
  box-shadow:0 5px 12px rgba(217,40,47,.3); transition:.15s;
}
.btn-check:hover{background:#b81e24; transform:translateY(-1px)}
.btn-check svg{width:16px; height:16px}
.nm{font-weight:600}
.cnt{font-size:13.5px; color:var(--muted); margin:0 4px 10px; text-align:right}
.note{display:flex; align-items:center; gap:10px; background:#dce9ff; color:var(--navy); border-radius:16px; padding:12px 18px; margin-top:16px; font-weight:600; font-size:14.5px}
.note svg{width:24px; height:24px; flex:none; color:var(--blue)}
.empty{background:#fff; border:1px solid var(--line); border-radius:18px; padding:30px 22px; text-align:center; box-shadow:0 8px 24px rgba(23,50,127,.08)}
.empty h3{margin:0 0 6px; font-size:20px; color:var(--navy)}
.empty p{margin:0; color:var(--muted)}
/* ---------- detail ---------- */
.detail{display:grid; grid-template-columns:36% 1fr; gap:18px; align-items:center; margin-top:8px}
.detail .mascot{max-width:270px}
.info-card{background:#fff; border-radius:22px; padding:18px 24px 22px; box-shadow:0 10px 30px rgba(23,50,127,.14); border:1px solid #e6eefb}
.info-name{text-align:center; font-size:clamp(22px,3vw,30px); font-weight:800; color:var(--navy); padding:6px 0 14px; border-bottom:1.5px solid #e3ecfa; line-height:1.3}
.info-row{display:grid; grid-template-columns:34px 1fr auto; gap:12px; align-items:center; padding:13px 4px; border-bottom:1px solid #eef3fb}
.info-row:last-of-type{border-bottom:0}
.info-row svg{width:28px; height:28px; color:var(--navy)}
.info-row .lb{font-weight:700; font-size:17px; color:var(--navy)}
.pill{display:inline-block; min-width:150px; text-align:center; border-radius:999px; padding:6px 20px; font-weight:700; font-size:17px; background:#e4eeff; color:var(--navy)}
.pill.lv{background:var(--navy); color:#fff; min-width:96px; font-size:20px}
.pill.row{background:#ffdede; color:var(--red); font-size:30px; font-weight:800; line-height:1.15}
.pill.no{letter-spacing:.5px}
.btn-print{margin-top:12px; font-size:17px; max-width:300px; margin-left:auto; margin-right:auto}
.sub{text-align:center; font-size:12.5px; color:var(--muted); margin-top:10px}
/* ---------- about ---------- */
.about{display:grid; gap:16px; max-width:760px; margin:0 auto}
.card{background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px 24px; box-shadow:0 8px 24px rgba(23,50,127,.08)}
.card h3{margin:0 0 10px; color:var(--navy); font-size:19px}
.kv{display:grid; grid-template-columns:150px 1fr; gap:6px 14px; font-size:15.5px}
.kv dt{font-weight:700; color:var(--navy)} .kv dd{margin:0}
.stat{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.stat div{background:#eef5ff; border-radius:14px; padding:14px 8px; text-align:center}
.stat b{display:block; font-size:30px; color:var(--navy)}
.stat span{font-size:14px; color:var(--muted); font-weight:600}
.steps{margin:0; padding-left:20px; line-height:1.85}
footer{padding:14px 20px; text-align:center; font-size:12.5px; color:#fff; background:var(--navy); position:relative; z-index:3}
/* ---------- footer / banner ---------- */
footer .cr{display:block; font-weight:700; letter-spacing:.2px; font-size:13.5px}
footer .sm{display:block; opacity:.85; margin-top:3px}
footer a{color:#fff; opacity:.65; text-decoration:none; margin-left:12px; font-size:11.5px; border-bottom:1px dotted rgba(255,255,255,.7)}
footer a:hover{opacity:1}
.banner{display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; justify-content:center; background:#fff4d6; color:#7a5200; font-size:13.5px; font-weight:600; padding:8px 16px; border-bottom:1px solid #f0d58a; position:relative; z-index:6}
.banner button{font:inherit; font-weight:700; color:#7a5200; background:#fff; border:1.5px solid #e0b64f; border-radius:999px; padding:3px 14px; cursor:pointer}
/* ---------- admin ---------- */
.adm{max-width:880px; margin:10px auto 0; display:grid; gap:16px}
.adm .card h3{margin:0 0 12px}
.login{max-width:420px; margin:26px auto 0}
.login .btn-main{margin-top:18px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px 14px}
.grid2 .wide{grid-column:1/-1}
.fld.sq input{border-radius:12px}
.btn-sec{font:inherit; font-weight:700; font-size:15px; color:var(--navy); background:#fff; border:2px solid #b9cdf0; border-radius:999px; padding:9px 20px; cursor:pointer}
.btn-sec:hover{background:var(--sky)}
.btns{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:6px}
.btns .btn-main{width:auto; margin-top:0; font-size:16px; padding:10px 22px}
.drop{border:2px dashed #9db8ea; border-radius:16px; padding:18px; text-align:center; background:#f5f9ff; color:var(--muted); font-size:14.5px}
.drop input{margin-top:10px; max-width:100%}
.rep{border:1px solid var(--line); border-radius:12px; padding:10px 14px; margin-top:10px; background:#fbfdff; font-size:14.5px}
.rep b{color:var(--navy)}
.warn{color:#a3181e; font-size:13px; margin:6px 0 0; padding-left:18px}
.mini{width:100%; border-collapse:collapse; font-size:13px; margin-top:8px}
.mini th,.mini td{border-bottom:1px solid #edf2fb; padding:4px 8px; text-align:left}
.radio{display:flex; flex-wrap:wrap; gap:6px 18px; margin:12px 0 2px; font-size:14.5px}
.radio label{display:flex; gap:6px; align-items:center; cursor:pointer}
.msg{margin-top:12px; padding:10px 14px; border-radius:12px; background:#e6f6ec; color:#14753a; font-weight:600; font-size:14px; display:none}
.msg.show{display:block}
.msg.bad{background:#ffe9ea; color:#a3181e}
@media (max-width:760px){ .grid2{grid-template-columns:1fr} .btns .btn-main,.btns .btn-sec{width:100%} }

/* ---------- responsive ---------- */
@media (max-width:760px){
  body{padding:0}
  .app{border-radius:0; min-height:100vh}
  .top{padding:10px 16px}
  .brand .logo{width:44px; height:44px}
  .brand b{font-size:15px} .brand small{font-size:11.5px}
  .burger{display:block}
  nav{position:absolute; top:100%; left:0; right:0; background:#fff; flex-direction:column; align-items:stretch; padding:6px 16px 12px; border-bottom:1px solid var(--line); display:none; box-shadow:0 12px 20px rgba(23,50,127,.1)}
  nav.open{display:flex}
  nav a{margin:0; padding:12px 4px; border-bottom:1px solid #eef3fb}
  nav a.active{border-bottom-color:var(--red)}
  .hero{grid-template-columns:1fr; padding:18px 18px 120px; min-height:0}
  .hero-art{order:1} .hero-body{order:2}
  .hero .mascot{max-width:170px}
  .church{width:70%; right:-30px; bottom:auto; top:90px; opacity:.4}
  .fields{grid-template-columns:1fr}
  .search-card{padding:18px 16px}
  .page{padding:18px 16px 110px}
  .pagehead{flex-wrap:wrap; gap:8px}
  .pagehead .title{padding-right:0; flex-basis:100%; order:2; justify-content:flex-start}
  .th{display:none}
  .tr{grid-template-columns:1fr auto; grid-template-areas:"n l" "s b"; padding:12px 14px; row-gap:6px}
  .tr .c-n{grid-area:n} .tr .c-l{grid-area:l; justify-self:end} .tr .c-s{grid-area:s; color:var(--muted)} .tr .c-b{grid-area:b; justify-self:end}
  .btn-check{padding:7px 16px}
  .detail{grid-template-columns:1fr}
  .detail .mascot{max-width:150px; margin:0 auto; display:block}
  .info-card{padding:14px 14px 18px}
  .info-row{grid-template-columns:26px 1fr; row-gap:6px}
  .info-row svg{width:24px; height:24px}
  .info-row .pill{grid-column:2; justify-self:start; min-width:0; font-size:16px}
  .pill.row{font-size:26px}
  .kv{grid-template-columns:1fr}
  .kv dt{margin-top:6px}
  .wave{height:64px}
}
/* ---------- print ---------- */
@media print{
  body{background:#fff; padding:0}
  .app{box-shadow:none; border-radius:0; min-height:0}
  .top nav,.burger,.back,.btn-print,.wave,.church,footer,.spark,.detail>.hero-art,.banner{display:none !important}
  .detail{grid-template-columns:1fr}
  #view{background:#fff}
  .page{padding:10px}
  .info-card{box-shadow:none; border:2px solid var(--navy)}
}

/* ---------- ส่วนเพิ่มสำหรับเวอร์ชันออนไลน์ ---------- */
.fld.blk{display:block; margin-top:12px}
.spin{width:34px; height:34px; margin:0 auto 10px; border:4px solid #dce9ff; border-top-color:var(--navy); border-radius:50%; animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.okline{color:#14753a; font-weight:700; margin-top:6px}
.btn-main.danger{background:var(--red); box-shadow:0 8px 18px rgba(217,40,47,.3)}
.btn-main:disabled{opacity:.55; cursor:not-allowed; transform:none}
.btn-del{font:inherit; font-weight:700; font-size:14px; color:#fff; background:var(--red); border:0; border-radius:999px; padding:7px 16px; cursor:pointer; box-shadow:0 4px 10px rgba(217,40,47,.25)}
.btn-del:hover{background:#b81e24}
.btn-del.big{font-size:16px; padding:11px 22px}
.ftbl{border:1px solid var(--line); border-radius:14px; overflow:hidden; margin-bottom:14px}
.fr{display:grid; grid-template-columns:2.2fr .6fr .8fr .8fr 1.4fr auto; gap:10px; align-items:center; padding:10px 16px; border-top:1px solid #edf2fb; font-size:14.5px}
.fr.fh{background:#f1f6fe; border-top:0; font-weight:700; color:var(--navy)}
.fn{word-break:break-all; font-weight:600}
.fa{text-align:right}
/* กล่องยืนยัน */
dialog#dlg{border:0; border-radius:20px; padding:0; max-width:480px; width:calc(100% - 32px); box-shadow:0 24px 70px rgba(15,37,96,.35); color:var(--ink); font-family:inherit}
dialog#dlg::backdrop{background:rgba(15,37,96,.45)}
#dlg form{padding:22px 24px 20px}
#dlg h3{margin:0 0 10px; color:var(--navy); font-size:20px}
#dlg-b p{margin:0 0 10px; line-height:1.6; font-size:15px}
#dlg .chk{display:flex; gap:8px; align-items:center; margin:10px 0 4px; font-size:14.5px; font-weight:600; cursor:pointer}
#dlg-i{width:100%; font:inherit; padding:10px 14px; border:1.5px solid var(--line); border-radius:12px; margin-top:6px}
#dlg .btns{flex-direction:row-reverse; justify-content:flex-start; margin-top:16px}
#dlg .btns .btn-main{font-size:15px; padding:10px 20px}
#dlg [hidden]{display:none}
/* ข้อความแจ้งสั้น */
#toast{position:fixed; left:50%; bottom:22px; transform:translate(-50%,30px); opacity:0; pointer-events:none; max-width:min(92vw,520px); background:#14753a; color:#fff; font-weight:600; font-size:14.5px; padding:11px 20px; border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.25); transition:.25s; z-index:50; text-align:center}
#toast.show{opacity:1; transform:translate(-50%,0)}
#toast.bad{background:#a3181e}
@media (max-width:760px){
  .fr.fh{display:none}
  .fr{grid-template-columns:1fr 1fr; row-gap:4px}
  .fr>div::before{content:attr(data-l) ' : '; color:var(--muted); font-weight:600}
  .fr>.fn,.fr>.fa{grid-column:1/-1}
  .fr>.fn::before,.fr>.fa::before{content:''}
  .fr>.fn{font-size:15px}
}
@media print{ #toast,dialog{display:none !important} }

/* ---------- แท็บและเครื่องมือหน้า admin (รอบที่ 2) ---------- */
.tabs{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:2px}
.tabs button{font:inherit; font-weight:700; font-size:15px; color:var(--navy); background:#fff; border:2px solid #cddcf5; border-radius:999px; padding:8px 18px; cursor:pointer}
.tabs button.on{background:var(--navy); color:#fff; border-color:var(--navy)}
.adm-sum{background:#eaf3ff; color:var(--navy); border-radius:14px; padding:10px 16px; font-size:14px; line-height:1.6}
.muted{font-weight:500; font-size:14px; color:var(--muted)}
.fld select{width:100%; font:inherit; font-size:15px; padding:11px 14px; color:var(--ink); border:1.5px solid var(--line); border-radius:12px; background:#f5f9ff; outline:none}
.toolbar{display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin-bottom:12px}
.toolbar .grow{flex:1 1 240px}
.btn-main.sm,.btn-sec.sm{font-size:14px; padding:8px 16px; width:auto; margin-top:0}
.btn-sec.sm:disabled{opacity:.45; cursor:not-allowed}
.btn-main[href],.btn-sec[href]{text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; width:auto; margin-top:0}
.ptbl{border:1px solid var(--line); border-radius:14px; overflow:hidden}
.pr{display:grid; grid-template-columns:1.1fr 2.4fr .7fr .7fr auto; gap:10px; align-items:center; padding:9px 16px; border-top:1px solid #edf2fb; font-size:14.5px}
.pr.ph{background:#f1f6fe; border-top:0; font-weight:700; color:var(--navy)}
.pager{display:flex; gap:14px; align-items:center; justify-content:center; margin-top:12px; font-weight:600; color:var(--navy)}
.diff{margin:6px 0 2px; font-size:14px; color:var(--navy); background:#eef5ff; border-radius:10px; padding:6px 12px}
.ck{border-radius:12px; padding:10px 14px; margin-top:10px; font-size:14.5px; line-height:1.6}
.ck.ok{background:#e9f7ee; color:#14753a}
.ck.warn{background:#fff4d6; color:#7a5200}
.ck .ckd{font-size:13.5px; margin-top:4px; color:#4a3a10; word-break:break-word}
.ck.ok .ckd{color:#14753a}
.fm .fld input[readonly]{background:#eef1f6; color:#6b7898}
.faq details{border-top:1px solid #edf2fb; padding:10px 2px}
.faq details:first-child{border-top:0}
.faq summary{cursor:pointer; font-weight:700; color:var(--navy)}
.faq p{margin:8px 0 2px; line-height:1.7; color:var(--ink)}
footer a.fl{margin-right:4px}
/* ใบรายชื่อตามห้อง */
.rost{background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 20px; margin-bottom:16px}
.rost h3{margin:0 0 4px; color:var(--navy); font-size:17px}
.rost p{margin:0 0 10px; font-size:13.5px; color:var(--muted)}
.rost table{width:100%; border-collapse:collapse; font-size:14px}
.rost th,.rost td{border:1px solid #cfd9ee; padding:5px 8px; text-align:left}
.rost th:first-child,.rost td:first-child{width:36px; text-align:center}
.rost td:last-child{width:34%}
@media (max-width:760px){
  .pr.ph{display:none}
  .pr{grid-template-columns:1fr 1fr; row-gap:4px}
  .pr>div::before{content:attr(data-l) ' : '; color:var(--muted); font-weight:600}
  .pr>.fn,.pr>.fa{grid-column:1/-1}
  .pr>.fn::before,.pr>.fa::before{content:''}
  .pr>.fn{font-weight:700; font-size:15px}
  .rost{padding:12px}
  .rost table{font-size:12.5px}
}
@media print{
  body:has(.rostwrap) .top,body:has(.rostwrap) footer,body:has(.rostwrap) #foot{display:none !important}
  .no-print{display:none !important}
  .rostwrap{padding:0 !important}
  .rost{border:0; border-radius:0; padding:0; margin:0; page-break-after:always; break-after:page}
  .rost:last-child{page-break-after:auto; break-after:auto}
  .rost h3{font-size:15pt} .rost p{font-size:10.5pt; color:#000; margin-bottom:6px} .rost table{font-size:11pt}
  .rost th,.rost td{padding:2px 6px}
  .rost td{height:21px}
}

@media print{ @page{size:A4; margin:10mm} }
