/* SATIT UBRU QA Standards Targets v1.6.3-r8. Namespace avoids changes to student pages. */
.qst-page{max-width:1220px;margin:18px auto 60px;color:#433648}
.qst-page *{box-sizing:border-box}
.qst-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;flex-wrap:wrap;margin:10px 0 24px}
.qst-kicker{font-size:11px;letter-spacing:.09em;color:#b74b7c;font-weight:800}
.qst-heading h1{font-size:26px;line-height:1.45;color:#48354d;margin:8px 0}
.qst-heading p{font-size:13px;color:#8a7b8e;margin:0;line-height:1.8}
.qst-toplink{border:1px solid #e2d3df;border-radius:11px;background:#fff;color:#9e527b;padding:11px 14px;text-decoration:none;font-size:12px}
.qst-banner,.qst-process,.qst-panel{background:white;border:1px solid #eedfe8;border-radius:17px;padding:21px 23px;margin:18px 0;box-shadow:0 7px 20px #65465e07}
.qst-banner{background:linear-gradient(120deg,#fff5fa,#fff);border-color:#f2dce8}
.qst-banner strong{color:#a64779}.qst-banner p,.qst-panel p{font-size:12px;line-height:1.9;color:#827586}
.qst-page h2{font-size:18px;color:#573e5a;margin:13px 0}
.qst-cycle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:15px 0 24px}
.qst-cycle{display:block;padding:19px;background:white;border:1px solid #ebdbe6;border-radius:15px;color:#48334c;text-decoration:none;transition:box-shadow .2s}
.qst-cycle:hover{box-shadow:0 8px 25px #b95e8f20}.qst-cycle>div{display:flex;justify-content:space-between;align-items:center}
.qst-cycle h3{font-size:16px;line-height:1.5;margin:14px 0;color:#59405c}.qst-cycle small{color:#9a8998;font-size:11px}
.qst-chip{padding:5px 9px;border-radius:20px;background:#faeaf2;color:#ad547f;font-size:10px}
.qst-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:end}
.qst-field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#68556d;font-weight:700}
.qst-field input,.qst-field select,.qst-field textarea{width:100%;padding:10px 12px;border:1px solid #dcd0dd;border-radius:9px;font-family:inherit;font-size:13px;color:#433648;background:#fff}
.qst-field textarea{line-height:1.7;resize:vertical}.qst-field small{font-size:11px;font-weight:400;color:#998d9a}
.qst-full{grid-column:1/-1}.qst-btn{border:0;border-radius:10px;color:#fff;background:#b64f83;padding:12px 19px;font:700 12px inherit;font-family:inherit;font-size:12px;cursor:pointer;min-height:40px}
.qst-btn:hover{background:#97416b}.qst-btn-alt{background:#fff0f4;color:#994c70;border:1px solid #e7c7d8}.qst-btn-alt:hover{background:#ffe1ee}
.qst-summary-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}
.qst-summary-bar>div{padding:16px 20px;background:#fff;border:1px solid #eedee9;border-radius:13px;display:flex;flex-direction:column;gap:6px}
.qst-summary-bar strong{font-size:25px;color:#ae517e}.qst-summary-bar span{font-size:11px;color:#85778a}
.qst-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 20px}.qst-outline{display:inline-block;color:#9e4776;border:1px solid #ecd6e3;border-radius:9px;padding:10px 13px;text-decoration:none;font-size:12px;background:#fff;font-weight:700}
.qst-process h2{margin:0 0 14px}.qst-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.qst-steps span{position:relative;padding:11px 10px;border-radius:10px;background:#faf0f6;color:#a04d7b;text-align:center;font-size:11px;font-weight:700;line-height:1.6}
.qst-panel summary{cursor:pointer;font-weight:800;font-size:14px;color:#9d4a78;list-style:none}.qst-panel[open]>summary{padding-bottom:18px}.qst-panel>form{margin-top:8px}
.qst-tip{background:#fff8e9;border:1px solid #f5e0af;padding:14px 17px;border-radius:12px;font-size:12px;line-height:1.8}
.qst-standard{margin:26px 0 18px;border-radius:15px;overflow:hidden;background:#fff;border:1px solid #eadddf}
.qst-standard-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 19px;background:#fdf2f8;border-bottom:1px solid #f1dce8}
.qst-standard-header span{color:#a8567d;font-size:11px;font-weight:800}.qst-standard-header h2{margin:5px 0 0;font-size:16px}.qst-standard-header small{color:#987c92;font-size:11px}
.qst-row{border-bottom:1px solid #f1ebef}.qst-row:last-child{border-bottom:0}
.qst-row>summary{display:grid;grid-template-columns:105px minmax(0,1fr) 150px;align-items:center;gap:13px;padding:14px 19px;cursor:pointer;list-style:none}
.qst-row summary::-webkit-details-marker{display:none}.qst-row[open]>summary{background:#fffcfe}
.qst-row-code{font-size:11px;font-weight:800;color:#a9527f}.qst-row-title{font-size:12px;line-height:1.7;color:#584a5a;font-weight:700}.qst-value{font-size:11px;color:#9e8b9b;text-align:right}
.qst-row-inner{padding:18px 19px 20px;border-top:1px solid #f1ebef;background:#fff}
.qst-official{background:#fbf6fa;border-left:3px solid #d599b9;border-radius:7px;padding:13px;margin-bottom:17px}.qst-official strong{font-size:11px;color:#a05c83}.qst-official p{font-size:12px;margin:5px 0 0;line-height:1.7}
.qst-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.qst-summary div{border-bottom:1px solid #f0eaf0;padding:9px 0}.qst-summary dt{font-size:11px;color:#9e8d9d}.qst-summary dd{font-size:12px;color:#5a4c5d;margin:4px 0 0;line-height:1.7}
.qst-inline{display:inline-flex;gap:8px;align-items:center;margin:8px 10px 5px 0;flex-wrap:wrap}.qst-inline input{padding:10px;border:1px solid #e3d0db;border-radius:8px;font:inherit;font-size:12px}
.qst-alert{font-size:12px;color:#8b5d28;background:#fff7e6;border:1px solid #f4e4c5;border-radius:10px;padding:12px;margin:12px 0}
.qst-assignments{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}.qst-assignments span{font-size:11px;padding:8px 10px;border:1px solid #eedee8;border-radius:20px;color:#8c6484}
.qst-history{margin:10px 0 0;padding:0 0 0 18px;font-size:11px;color:#756777;line-height:2.1}
@media(max-width:960px){.qst-cycle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qst-steps{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.qst-cycle-grid,.qst-grid2{grid-template-columns:1fr}.qst-full{grid-column:auto}.qst-summary-bar{grid-template-columns:repeat(2,1fr)}.qst-steps{grid-template-columns:1fr}.qst-row>summary{grid-template-columns:67px 1fr}.qst-value{grid-column:2;text-align:left}.qst-summary{grid-template-columns:1fr}}
/* v1.6.3-r9: hierarchical editor additions */
.qst-subitems{margin-top:21px;border-top:1px solid #ebdce6;padding-top:14px}
.qst-subitems h3{font-size:14px;margin:0 0 12px;color:#744663}.qst-help{font-size:12px;color:#877984}
.qst-subitem{margin:9px 0;border:1px solid #e6d9e2;border-radius:10px;overflow:hidden}
.qst-subitem>summary{cursor:pointer;display:flex;align-items:center;gap:9px;padding:13px;background:#fdf9fc;font-size:12px;font-weight:700;line-height:1.6}
.qst-subitem>summary span{margin-left:auto;color:#a25f85;font-weight:500}
.qst-subitem>p{padding:0 15px;font-size:12px}.qst-subitem-form{padding:16px;background:#fff}
.qst-add-subitem{padding:12px 14px;margin-top:13px;border:1px dashed #ce8eae;border-radius:10px}
.qst-add-subitem>summary{cursor:pointer;color:#a14a7b;font-size:12px;font-weight:700}
/* Thai government-style A4 print: official font installed on printing device */
@font-face{font-family:'SATIT-Thai-Official';src:local('TH Sarabun New'),local('THSarabunNew'),local('TH SarabunPSK'),local('TH Sarabun PSK');font-style:normal;font-weight:100 900}
.qst-print-body{font-family:'SATIT-Thai-Official','TH Sarabun New','TH Sarabun PSK','Sarabun','Noto Sans Thai',sans-serif;font-size:16pt;color:#111;background:#e9eaee;line-height:1.18;margin:0}
.qst-print-actions{display:flex;align-items:center;justify-content:center;gap:15px;padding:13px;font-family:'Sarabun','Noto Sans Thai',sans-serif;font-size:12px;background:#fff}
.qst-print-actions button{font:700 13px 'Sarabun',sans-serif;color:white;background:#a14d78;border:0;border-radius:8px;padding:10px 17px;cursor:pointer}
.qst-document{box-sizing:border-box;width:210mm;min-height:297mm;margin:20px auto;padding:25mm 20mm 20mm 30mm;background:white;box-shadow:0 5px 25px #0002}
.qst-doc-header{text-align:center}.qst-seal-space{height:28mm;display:flex;justify-content:center;align-items:center}
.qst-seal-space img{width:auto;height:auto;max-height:25mm;max-width:25mm;object-fit:contain}
.qst-doc-header h1{font-weight:700;font-size:18pt;line-height:1.18;margin:0}
.qst-doc-header h2{font-weight:700;font-size:16pt;line-height:1.18;margin:3mm 0 0}
.qst-doc-header h3{font-size:16pt;font-weight:400;line-height:1.2;margin:2mm 0 0}
.qst-doc-rule{border-top:1px solid #222;width:32mm;margin:5mm auto 4mm}
.qst-doc-indent{margin:4mm 0 0;text-indent:12mm;text-align:justify;line-height:1.22;overflow-wrap:break-word}
.qst-sign{width:66%;margin:12mm 0 8mm auto;text-align:center;break-inside:avoid;page-break-inside:avoid}
.qst-sign p{margin:0 0 16mm}.qst-sign-line{margin-bottom:1.5mm}
.qst-attachment{break-before:page;page-break-before:always}
.qst-attachment h2{text-align:center;font-size:18pt;line-height:1.22;margin:0;font-weight:700}
.qst-attachment h3{text-align:center;font-size:16pt;font-weight:400;line-height:1.22;margin:1mm 0 6mm}
.qst-doc-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:16pt;line-height:1.16}
.qst-doc-table th,.qst-doc-table td{border:1px solid #333;padding:1.6mm 1.6mm;text-align:left;vertical-align:top;overflow-wrap:break-word;word-break:normal}
.qst-doc-table thead{display:table-header-group}.qst-doc-table tr{break-inside:avoid;page-break-inside:avoid}
.qst-doc-table th{font-weight:700;text-align:center}
.qst-doc-code{width:16%}.qst-doc-target{width:21%}.qst-doc-table small{display:block;margin-top:1.2mm;font-size:14pt;line-height:1.15}
.qst-std-row td{font-weight:700;background:#f1f1f1}.qst-group-row td{font-weight:700;background:#fafafa}
.qst-subdetail-row td{background:white}.qst-subcode{text-align:center}.qst-subtext{padding-left:2mm;display:block}
.qst-value-cell{text-align:center!important}.qst-doc-source{font-size:14pt;line-height:1.22;margin:4mm 0 0}
.qst-draft-stamp{font:700 14pt 'SATIT-Thai-Official','Sarabun',sans-serif;padding:3mm;text-align:center;border:2px solid #333;margin:0 0 6mm}
@page{size:A4 portrait;margin:25mm 20mm 20mm 30mm}
@media print{
  html,body.qst-print-body{background:white;margin:0;padding:0;font-size:16pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .qst-print-actions{display:none!important}.qst-document{width:auto;min-height:0;margin:0;padding:0;box-shadow:none}
  .qst-attachment{break-before:page;page-break-before:always}.qst-doc-table thead{display:table-header-group}
}

/* keep section captions attached to at least one item in print output */
.qst-section-subheading{padding:12px 18px;background:#f4eaf1;color:#70425e;font-size:13px;font-weight:700;border-bottom:1px solid #eadce6}
.qst-std-row,.qst-group-row{break-after:avoid-page;page-break-after:avoid}
.qst-doc-table .qst-detail-row strong{font-weight:400}

/* v1.6.3-r10: choice-based data entry for standards and targets */
.qst-preset-kit{display:grid;grid-template-columns:1fr minmax(230px,1fr);gap:12px;padding:14px 16px;background:#fff8ed;border:1px solid #efd9b2;border-radius:12px;align-items:center;margin-bottom:5px}
.qst-preset-kit strong{display:block;font-size:13px;color:#774d22;margin-bottom:3px}
.qst-preset-kit small{display:block;font-size:11px;color:#866b4d;line-height:1.65}
.qst-preset-kit label,.qst-quick-row label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#735872;font-weight:600}
.qst-preset-kit select,.qst-quick-row select{width:100%;min-width:0;padding:9px 10px;background:#fff;border:1px solid #d7c5d2;border-radius:8px;font:12px inherit;font-family:inherit;color:#694767}
.qst-quick-row{display:flex;flex-direction:column;gap:5px;justify-content:end;padding:3px 0 9px;align-self:end}
.qst-quick-row small{font-size:10px;color:#897a87}
.qst-compare-box{background:#f5f7fb;border:1px solid #d7e1f0;padding:13px 15px;border-radius:11px;font-size:12px;line-height:1.65}
.qst-compare-box strong{color:#3f567a}.qst-compare-box p{margin:3px 0 4px!important;font-size:12px!important;color:#4c5f79!important}
.qst-compare-box small{font-size:11px;color:#7889a0}
@media(max-width:680px){.qst-preset-kit{grid-template-columns:1fr}.qst-quick-row{align-self:stretch}}
@media print{.qst-preset-kit,.qst-quick-row,.qst-compare-box{display:none!important}}

/* r13: teacher-authored detailed indicator examples and two-annex government print */
.qst-detail-kit{padding:12px 16px;background:#f5f8ff;border:1px solid #c8d7ec;border-radius:10px;display:grid;gap:6px}
.qst-detail-kit strong{font-size:13px;color:#214b71}.qst-detail-kit p{margin:0!important;color:#50677e!important;font-size:12px!important}
.qst-detail-kit label{display:grid;gap:5px;font-size:12px}.qst-detail-kit select{width:100%;border:1px solid #aabed5;padding:9px 11px;border-radius:7px;font:inherit;color:#213d59;background:white}
.qst-detail-kit small{font-size:11px;color:#586e81}
.qst-summary-target{width:22%}.qst-summary-unit{width:20%}
.qst-detail-annex{break-before:page;page-break-before:always}
.qst-detail-annex h2{text-align:center;font-size:18pt;margin:0;font-weight:700}
.qst-detail-annex h3{text-align:center;font-size:16pt;font-weight:400;line-height:1.2;margin:1mm 0 4mm}
.qst-detail-criteria{width:36%}.qst-annex-intro{margin:0 0 4mm;text-indent:8mm;text-align:justify}
.qst-detail-annex-row td{font-weight:400;vertical-align:top}
.qst-detail-annex-row small{display:block;font-size:14pt;margin-top:1.5mm}
.qst-child-cont{font-size:14pt;color:#444}
.qst-detail-target{display:block;margin-top:1mm;font-weight:700}
.qst-draft-empty{font-style:italic;color:#666}
.qst-detail-annex-table td{padding:2mm 2.2mm}
@media print{.qst-detail-kit{display:none!important}.qst-detail-annex{break-before:page;page-break-before:always}}
