/* company document styles, scoped from _source/aim-documents.src.html */
.docx .page{width: 210mm; height: 297mm; margin: 0 auto 24px; background: #fff; padding: 14mm 16mm 12mm 18mm; position: relative; display: flex; flex-direction: column; box-shadow: 0 4px 24px rgba(0,0,0,.08); overflow: hidden;}
.docx .serif{font-family: 'Playfair Display', serif;}
.docx .top{display: flex; justify-content: space-between; align-items: flex-start;}
.docx .logo{width: 34mm; display: block;}
.docx .doc-title{text-align: right;}
.docx .doc-title h1{margin: 0; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 20pt; line-height: 1.1;}
.docx .doc-title h1 span{font-family: 'Sarabun', sans-serif; font-weight: 400;}
.docx .doc-title .th{font-size: 10pt; margin-top: 2px;}
.docx .meta{display: grid; grid-template-columns: auto auto; justify-content: end; column-gap: 8px; font-size: 9.5pt; margin-top: 4px; text-align: left;}
.docx .meta b{font-weight: 600;}
.docx .kv{display: grid; grid-template-columns: 50mm 1fr; column-gap: 4px; font-size: 9.5pt;}
.docx .kv div:nth-child(odd){color: #111;}
.docx .kv.en{grid-template-columns: 22mm 1fr;}
.docx .co{margin-top: 7mm;}
.docx .co .name{font-weight: 600; font-size: 10pt;}
.docx .co .en{font-size: 9.5pt; margin-bottom: 4mm;}
.docx .b{font-weight: 600;}
.docx .client{margin-top: 5mm;}
.docx .project{margin-top: 5mm;}
.docx .project h2{margin: 0; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 12.5pt;}
.docx .project h2 span{font-family: 'Sarabun', sans-serif; font-weight: 600;}
.docx .project p{margin: 1px 0 0; font-size: 9.5pt;}
.docx table.items{width: 100%; border-collapse: collapse; margin-top: 4mm; font-size: 9.5pt;}
.docx table.items th{background: #3A3A3A; color: #fff; font-weight: 500; padding: 6px 6px; border: 1px solid #3A3A3A; line-height: 1.25;}
.docx table.items td{border: 1px solid #222; padding: 6px 8px; vertical-align: top;}
.docx table.items td.num{text-align: right; font-variant-numeric: tabular-nums;}
.docx table.items td.c{text-align: center;}
.docx table.items tr.body td{height: 15mm;}
.docx table.items tr.sum td{padding: 5px 8px;}
.docx table.items tr.sum td.label{text-align: right; border-right: 1px solid #222;}
.docx table.items tr.grand td{font-weight: 600;}
.docx .scope{margin-top: 5mm; font-size: 9.5pt;}
.docx .scope h3{margin: 0 0 2mm; font-size: 10pt; font-weight: 600;}
.docx .scope ul{margin: 0; padding-left: 9mm; list-style: '-   ';}
.docx .scope li{margin: 0 0 1px;}
.docx .scope ol{margin: 1mm 0 0; padding-left: 14mm;}
.docx .note{margin-top: 3mm; font-size: 9.5pt;}
.docx .u{text-decoration: underline; font-weight: 600;}
.docx .terms{display: grid; grid-template-columns: 10mm 1fr 18mm 26mm; row-gap: 1px; font-size: 9.5pt; margin-top: 2mm;}
.docx .terms .amt{text-align: right; font-variant-numeric: tabular-nums;}
.docx .spacer{flex: 1;}
.docx .sign{display: flex; justify-content: space-between; align-items: flex-end; font-size: 9pt;}
.docx .sign .who{text-align: center;}
.docx .sign .line{border-bottom: 1px dotted #333; width: 44mm; height: 14mm; margin: 0 auto 2px;}
.docx .sign .line{position: relative;}
.docx .sig{position: absolute; left: 50%; transform: translateX(-50%); bottom: -1.3mm; mix-blend-mode: multiply;}
.docx .sig.s1{width: 31mm;}
.docx .sig.s2{width: 47.6mm;}
.docx .toggle{position: absolute; top: 4mm; right: 6mm; font-size: 8pt; display: flex; align-items: center; gap: 6px; background: #F3F4F7; padding: 2px 4px 2px 10px; border-radius: 99px;}
.docx .toggle button{font: inherit; border: 0; border-radius: 99px; padding: 2px 10px; cursor: pointer; background: #1D2433; color: #fff;}
.docx .doc[data-wht="0"] .toggle button{background: #fff; color: #1D2433;}
.docx .doc[data-wht="0"] .wht-row{display: none;}
.docx .sign .role{font-weight: 600; font-size: 8.5pt;}
.docx .sign .pair{display: flex; gap: 4mm;}
.docx .bank{margin-top: 7mm; font-size: 9.5pt;}
.docx .bank .kv{grid-template-columns: 24mm 1fr;}
.docx .pay{margin-top: 6mm; font-size: 9.5pt;}
.docx .pay .row{display: grid; grid-template-columns: 8mm 28mm 34mm 16mm 1fr; align-items: baseline; margin-bottom: 1.5mm;}
.docx .box{display: inline-block; width: 3.2mm; height: 3.2mm; border: 1px solid #222; border-radius: 50%; position: relative; top: .5mm;}
.docx .box.on::after{content: ''; position: absolute; inset: .6mm; background: #222; border-radius: 50%;}
.docx .sample{position: absolute; top: 4mm; left: 50%; transform: translateX(-50%); font-size: 8pt; color: #9A5A12; background: #FBF1E4; padding: 1px 10px; border-radius: 99px;}
.docx{font-family:'Sarabun',sans-serif;font-size:10.5pt;line-height:1.45;color:#111}
.docx .page{margin:0 auto 16px}
.docx .toggle,.docx .sample{display:none}
@page{size:A4;margin:0}
@media print{.docx .page{margin:0;box-shadow:none;break-after:page}.docx .page:last-child{break-after:auto}}
