/* เอกสารทางการขนาด A4 */
@font-face { font-family: 'TH Sarabun New'; src: url(../vendor/fonts/THSarabunNew-Regular.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'TH Sarabun New'; src: url(../vendor/fonts/THSarabunNew-Bold.woff2) format('woff2'); font-weight: 700; font-display: block; }
body.docs { display: block; background: #dfe4ea; padding: 0 0 40px; }
.docs .bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 20px; } .docs .bar .pill { max-width: 320px; min-width: 0; }
.docs main { display: grid; justify-content: center; gap: 22px; padding: 0; margin: 0; max-width: none; }
.a4 { zoom: var(--z, 1); width: 210mm; height: 297mm; background: #fff; padding: 11mm 14mm 9mm 15mm; display: flex; flex-direction: column; gap: 7px; color: #15181d; font: 400 18px/1.14 'TH Sarabun New', 'Anuphan', sans-serif; box-shadow: 0 10px 34px -14px rgba(16, 26, 52, .45); position: relative; overflow: hidden; }
.a4 :is(h1, h3, h4, p, b, i, th, td, small, text, button, span) { font-family: inherit; letter-spacing: 0; } .a4 p { margin: 0; } .a4 i { font-style: normal; } .a4 b { font-weight: 700; }
.lh { display: flex; gap: 12px; align-items: flex-start; border-bottom: 2.5px double #15181d; padding-bottom: 8px; } .lh img { width: 60px; height: 60px; } .lh > div:nth-child(2) { flex: 1; } .lh b { display: block; font-size: 23px; line-height: 1; } .lh .en { font-size: 15px; margin: 2px 0 3px; } .lh p { font-size: 15.500px; line-height: 1.1; }
.lh .no { text-align: right; min-width: 176px; } .lh .no p { font-size: 17px; line-height: 1.15; } .lh .no b { display: inline; font-size: 17px; } .bc { width: 168px; height: 28px; display: block; margin: 0 0 4px auto; }
.lh2 { display: flex; justify-content: space-between; border-bottom: 1px solid #15181d; padding-bottom: 4px; font-size: 17px; }
.ti { text-align: center; position: relative; padding: 2px 0 3px; } .ti h1 { font-size: 28px; line-height: 1; font-weight: 700; color: inherit; margin: 0; } .ti p { font-size: 15px; letter-spacing: .6px; }
.stamp { position: absolute; right: 2px; top: 0; transform: rotate(-5deg); border: 2.5px solid #177a4c; color: #177a4c; border-radius: 6px; padding: 3px 12px 4px; font-size: 14.500px; line-height: 1; text-align: center; opacity: .86; mix-blend-mode: multiply; } .stamp b { display: block; font-size: 21px; line-height: 1; }
.bd1 { display: flex; flex-direction: column; gap: 7px; } .bd1 > p { font-size: 18px; } .bd1 .sm { font-size: 16px; } .bd1 .in { text-indent: 48px; text-align: justify; line-height: 1.22; font-size: 19px; } .d-contract .bd1 .in { font-size: 19px; } .rt2 { text-align: right; }
.sc { border: 1px solid #40464e; } .sc h3 { background: #e9ecf0; border-bottom: 1px solid #40464e; font-size: 17.500px; line-height: 1; padding: 3px 8px 4px; margin: 0; color: inherit; } .sc > div { padding: 4px 8px 6px; } .sc .pt { margin-top: 4px; }
.ro { display: flex; gap: 10px; align-items: baseline; } .f { display: flex; align-items: baseline; gap: 5px; min-width: 0; white-space: nowrap; padding-top: 2px; } .f b { flex: 1; border-bottom: 1px dotted #555c66; font-weight: 400; color: #14307c; padding: 0 4px; min-width: 24px; min-height: 20px; overflow: hidden; text-overflow: ellipsis; } .vl { display: inline-block; min-width: 70px; border-bottom: 1px dotted #555c66; text-align: center; }
.a4 [contenteditable] { background: #fff8dc; outline-offset: 1px; cursor: text; } .a4 [contenteditable]:focus { outline: 2px solid var(--brand); background: #fff; overflow: visible; }
.cks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px 12px; } .cks.c4 { grid-template-columns: repeat(4, auto); justify-content: start; gap: 1px 22px; } .cks.c2 { grid-template-columns: 1fr 1fr; } .cks.c1 { grid-template-columns: 1fr; }
.ck { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 1px 0; color: inherit; font: inherit; text-align: left; } button.ck, button.tk { cursor: pointer; } .ck u, .tk { width: 14px; height: 14px; border: 1.2px solid #15181d; flex: none; position: relative; display: inline-block; background: #fff; padding: 0; border-radius: 0; text-decoration: none; vertical-align: middle; } .on > u::after, .tk.on::after { content: ''; position: absolute; left: 2px; top: -5px; width: 7px; height: 13px; border: solid #14307c; border-width: 0 2.400px 2.400px 0; transform: rotate(40deg) skewY(6deg); }
.a4 .pt { width: 100%; border-collapse: collapse; border: 1px solid #40464e; font-size: 17.500px; } .a4 .pt :is(th, td) { border: 1px solid #40464e; padding: 1px 8px 2px; color: inherit; font-size: inherit; line-height: 1.12; background: none; height: auto; } .a4 .pt th { background: #e9ecf0; text-align: center; font-weight: 700; } .a4 .pt tr:hover td { background: none; } .a4 .pt .r { text-align: right; } .a4 .pt.c0 td:first-child, .a4 .pt.cc td, .a4 .pt.ho td:not(:first-child) { text-align: center; } .a4 .pt.c0 td:first-child { width: 62px; } .a4 .pt.c0 tfoot td:first-child { text-align: left; width: auto; } .a4 .pt tfoot td { font-weight: 700; } .a4 .pt td.r { white-space: nowrap; }
.ckt td:nth-child(2), .ckt td:nth-child(3) { text-align: center; width: 52px; } .a4 .pt.ckt { font-size: 16.500px; } .a4 .pt.ckt td { padding-block: 0 1px; } .a4 .pt .g td { background: #f3f5f7; font-weight: 700; text-align: left; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: stretch; } .two.dg { grid-template-columns: 1.5fr 1fr; } .cd { width: 100%; height: 118px; display: block; }
.tm { margin: 0; padding-left: 22px; list-style: decimal; } .tm li { padding-left: 4px; line-height: 1.16; } .tm b { color: #14307c; }
.sigs { display: flex; gap: 8px; margin-top: auto; } .sd { border: 1px solid #40464e; min-width: 0; } .sd h4 { display: flex; justify-content: space-between; background: #e9ecf0; border-bottom: 1px solid #40464e; font-size: 17px; line-height: 1; padding: 3px 8px 4px; margin: 0; color: inherit; } .sd h4 span { font-weight: 400; display: inline-flex; gap: 3px; align-items: center; } .sd > div { display: flex; }
.sg { flex: 1; min-width: 0; text-align: center; padding: 6px 8px 6px; position: relative; font-size: 17px; } .sg p { line-height: 1.1; white-space: nowrap; } .sg .dt { font-size: 15.500px; } .ln { height: 58px; border-bottom: 1px dotted #15181d; margin-bottom: 3px; display: flex; align-items: flex-end; justify-content: center; position: relative; } .ln > i { position: absolute; left: 0; bottom: 0; font-size: 15px; } .ln .ink { height: 60px; max-width: 78%; margin: 0 0 -7px 18px; overflow: visible; mix-blend-mode: multiply; }
.seal { position: absolute; left: -26px; top: -14px; width: 100px; height: 100px; color: #b3262d; opacity: .74; transform: rotate(-9deg); mix-blend-mode: multiply; pointer-events: none; overflow: visible; }
.dosign { align-self: center; margin-left: 24px; border: 1px dashed var(--brand); background: var(--brand-s); color: var(--brand-t); border-radius: 8px; padding: 6px 10px; font-size: 17px; cursor: pointer; white-space: nowrap; } .dosign:hover { background: var(--brand); color: #fff; }
.unsign { position: absolute; right: 4px; top: 3px; border: 0; background: #fff; color: #a3262c; font-size: 14px; cursor: pointer; opacity: 0; border-radius: 4px; } .sg:hover .unsign, .unsign:focus-visible { opacity: 1; }
.ini { margin-top: auto; display: flex; justify-content: flex-end; gap: 26px; font-size: 16px; } .ini span { display: inline-flex; align-items: flex-end; gap: 4px; } .ini .ink { height: 30px; width: 74px; border-bottom: 1px dotted #15181d; }
.ft { display: flex; justify-content: space-between; font-size: 14.500px; color: #555c66; border-top: 1px solid #b9bfc6; padding-top: 3px; } .bd1 + .ft { margin-top: auto; }
.ap { text-align: center; font-size: 21px; margin: 6px 0; color: inherit; } .fp { display: flex; flex-direction: column; gap: 12px; align-items: center; } .fp.row { flex-direction: row; align-items: flex-end; justify-content: center; gap: 14px; } .fp figure { margin: 0; text-align: center; } .fp svg { display: block; margin: auto; } .fp figcaption { font-weight: 700; }
#pad { width: 100%; height: auto; border: 1.500px dashed var(--mute); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; display: block; margin-top: 12px; }
@media (max-width: 700px) { .docs .bar { gap: 6px; padding: 8px; } .docs .bar .btn span { display: none; } .docs .bar .pill { flex: 1; } .a4 { box-shadow: none; } }
@media print { @page { size: A4; margin: 0; } body.docs { background: #fff; padding: 0; } .docs .bar, .dosign, .unsign, #toast, .docs dialog { display: none !important; } .docs main { display: block; } html, body.docs { height: auto; min-height: 0; } .a4 { zoom: 1; height: 296.8mm; box-shadow: none; break-after: page; } .a4:last-of-type { break-after: auto; } .a4 [contenteditable] { background: none; } * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.d-contract .bd1 { gap: 8px; } .d-contract .bd1 .in { font-size: 20.500px; line-height: 1.24; } .d-booking .bd1 { gap: 5px; } .d-booking .tm { font-size: 16px; } .d-booking .tm li { line-height: 1.08; } .two > .pt { height: 100%; } .a4 .pt .vl { border: 0; min-width: 60px; text-align: right; color: #14307c; font-weight: 400; }
.d-contract .sigs { margin-top: 26px; } .d-contract .sigs + .ft { margin-top: auto; } .d-loan .bd1 { gap: 9px; } .d-loan .f { padding-top: 4px; } .d-poa .sigs { margin-top: 40px; } .d-poa .sigs + .ft { margin-top: auto; } .d-poa .bd1, .d-receipt .bd1, .d-testdrive .bd1 { gap: 12px; } .d-poa .in { font-size: 20.500px; } .d-poa .tm { font-size: 20px; padding-left: 72px; }
body.docs.in { padding: 8px 0; } .in .bar { display: none; } .in main { gap: 10px; }
.d-receipt .seal { left: auto; right: 4px; }
.dosign::after { content: ''; position: absolute; inset: -8px 0 -62px; }
.vl { text-indent: 0; } .fp text { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
