/* Administrator-only, visual in-app guide. All selectors isolated from procurement forms. */
.kp-admin-guide{--ag-navy:#103c79;--ag-blue:#0d67da;--ag-orange:#ff870e;color:#173d72;font-family:"Sarabun",Tahoma,sans-serif;display:grid;grid-template-columns:minmax(190px,244px) minmax(0,1fr);gap:18px;align-items:start}
.kp-admin-guide *{box-sizing:border-box}
.kp-admin-guide button{font-family:inherit;cursor:pointer}
.kp-ag-subnav{position:sticky;top:13px;background:#fff;border:1px solid #dce8f8;border-radius:17px;padding:10px;box-shadow:0 6px 21px rgba(14,74,150,.055);display:flex;flex-direction:column;gap:5px;max-height:calc(100vh - 28px);overflow:auto}
.kp-ag-subnav button{text-align:left;display:flex;align-items:center;gap:8px;border:1px solid transparent;background:transparent;color:#43618b;border-radius:10px;min-height:43px;padding:9px 9px;font-size:12px;font-weight:800;line-height:1.6}
.kp-ag-subnav button:hover,.kp-ag-subnav button.is-active{background:#e9f3ff;color:#0b62c8;border-color:#c9e0fe}
.kp-ag-subnav button span{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:8px;background:#eaf2fe;color:#0c67d6;font-size:11px}
.kp-ag-body{min-width:0}
.kp-ag-welcome{border-radius:18px;padding:33px 31px;background:radial-gradient(circle at 82% 25%,#d9edff 1%,transparent 47%),linear-gradient(120deg,#eef6ff,#fff8ed);border:1px solid #d9eafa;position:relative;overflow:hidden}
.kp-ag-welcome::after{content:"▤";position:absolute;font-size:135px;right:34px;top:-18px;color:#9ac6fa;opacity:.22;transform:rotate(-17deg);pointer-events:none}
.kp-ag-welcome h2{color:#103a79;font-size:clamp(23px,2.5vw,34px);line-height:1.38;font-weight:900;margin:8px 0 12px}
.kp-ag-welcome h2 em{font-style:normal;color:#ed8016}
.kp-ag-welcome p{max-width:600px;color:#5d779c;font-size:14px;line-height:1.8}
.kp-ag-eyebrow{font-size:11px;color:#0c6adf;font-weight:900;background:#e5f1ff;border-radius:99px;padding:5px 11px;display:inline-flex;align-items:center;max-width:max-content}
.kp-ag-progress{display:flex;flex-wrap:wrap;gap:9px;margin-top:19px}
.kp-ag-progress span{background:white;border:1px solid #d8e9ff;border-radius:99px;padding:7px 12px;font-size:11px;color:#226ac1;font-weight:800}
.kp-ag-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:17px}
.kp-ag-topic-card{position:relative;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-height:178px;border:1px solid #dfe9f8!important;border-radius:15px!important;background:white!important;color:#1c497f!important;box-shadow:0 4px 17px rgba(32,82,155,.04);padding:20px!important;transition:transform .15s,box-shadow .15s}
.kp-ag-topic-card:hover{transform:translateY(-3px);box-shadow:0 12px 22px rgba(24,94,173,.12);border-color:#9ccafa!important}
.kp-ag-topic-count{position:absolute;top:17px;right:17px;font-size:11px;color:#0d65cc;background:#ecf4ff;padding:4px 9px;border-radius:30px;font-weight:900}
.kp-ag-topic-emoji{width:45px;height:45px;border-radius:15px;background:#e8f3ff;display:grid;place-items:center;font-size:24px}
.kp-ag-topic-card:nth-child(2n) .kp-ag-topic-emoji{background:#fff2e3}
.kp-ag-topic-card strong{font-size:16px;font-weight:900;line-height:1.55;color:#163e78}
.kp-ag-topic-card small{font-size:12px;color:#7188a8;line-height:1.7}
.kp-ag-topic-open{margin-top:auto;color:#0d6bd5;font-weight:900;font-size:12px}
.kp-ag-lesson{background:#fff;border-radius:17px;overflow:hidden;border:1px solid #dce9f8;box-shadow:0 5px 22px rgba(25,77,145,.045)}
.kp-ag-lesson-head{display:flex;gap:13px;align-items:center;background:linear-gradient(130deg,#eaf4ff,#fff);border-bottom:1px solid #dfeaf9;padding:22px}
.kp-ag-lesson-head>div{flex:1;min-width:0}
.kp-ag-lesson-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:#dcebff;font-size:27px;flex:none}
.kp-ag-lesson-head h2{font-size:clamp(20px,2.3vw,28px);font-weight:900;line-height:1.45;color:#103c7c;margin:9px 0 4px}
.kp-ag-lesson-head p{font-size:12px;color:#6b85a4;line-height:1.65}
.kp-ag-live-button{flex:none;border-radius:11px!important;background:#0969db!important;color:white!important;border:0!important;padding:11px 13px!important;font-size:12px!important;font-weight:900!important;white-space:nowrap}
.kp-ag-target{display:flex;gap:13px;flex-wrap:wrap;align-items:center;background:#fffaf0;border:1px solid #fce1b8;margin:16px 22px 0;border-radius:11px;padding:11px 15px}
.kp-ag-target span{font-size:11px;font-weight:700;color:#a26b2e}
.kp-ag-target strong{font-size:13px;color:#965916}
.kp-ag-step-list{padding:0 22px}
.kp-ag-step{padding:22px 0;border-bottom:1px solid #e9eff8}
.kp-ag-step:last-child{border-bottom:none}
.kp-ag-step-header{display:flex;gap:12px;align-items:flex-start;margin-bottom:13px}
.kp-ag-step-no{display:grid;place-items:center;background:linear-gradient(145deg,#ff9c1c,#f27807);border-radius:50%;width:36px;height:36px;flex:none;color:white;font-size:18px;font-weight:900;box-shadow:0 6px 12px rgba(247,130,18,.16)}
.kp-ag-step-header h3{font-size:17px;line-height:1.6;margin:0 0 4px;font-weight:900;color:#163e78}
.kp-ag-step-header p{font-size:13px;line-height:1.8;color:#56739a}
.kp-ag-important{margin:5px 22px 20px;padding:14px 17px;border-radius:12px;background:#fff8ea;border:1px solid #ffe0b0}
.kp-ag-important strong{color:#9a5e0a;font-size:13px}
.kp-ag-important p{font-size:12px;color:#876a3c;line-height:1.8;margin-top:5px}
.kp-ag-lesson-actions{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;padding:17px 22px;background:#f7faff}
.kp-ag-lesson-actions button{background:white!important;color:#0c65c9!important;border:1px solid #bcd6f8!important;border-radius:10px!important;padding:9px 13px!important;font-size:12px!important;font-weight:800!important}
.kp-ag-lesson-actions button:last-child{background:#0c67d7!important;color:#fff!important}
.kp-ag-lesson-actions button:hover{filter:brightness(.95)}
@media(max-width:1100px){.kp-admin-guide{grid-template-columns:1fr}.kp-ag-subnav{position:static;max-height:none;flex-direction:row;overflow:auto;gap:7px;padding:9px}.kp-ag-subnav button{white-space:nowrap;flex:none}}
@media(max-width:680px){.kp-ag-welcome{padding:21px 17px}.kp-ag-topic-grid{grid-template-columns:1fr}.kp-ag-topic-card{min-height:140px}.kp-ag-lesson-head{flex-wrap:wrap;padding:16px}.kp-ag-lesson-head>div{flex:1 1 180px}.kp-ag-live-button{width:100%}.kp-ag-target{margin:12px 12px 0}.kp-ag-step-list{padding:0 11px}.kp-ag-graphic{padding:7px}.kp-ag-mini-sidebar{padding:7px 4px}.kp-ag-mini-sidebar span{font-size:8px;padding:6px 3px}.kp-ag-mini-sidebar strong{font-size:11px}.kp-ag-mini-rows{grid-template-columns:1fr}.kp-ag-mini-row{min-height:45px}.kp-ag-window-body{grid-template-columns:89px minmax(0,1fr)}.kp-ag-important{margin-inline:12px}.kp-ag-lesson-actions{padding:12px}}
@media print{.kp-ag-subnav,.kp-ag-live-button,.kp-ag-lesson-actions,.sidebar,.topbar{display:none!important}.kp-admin-guide{display:block!important}.kp-ag-lesson,.kp-ag-graphic{break-inside:avoid;box-shadow:none!important}.kp-ag-window-body{min-height:190px}}

/* These guide chapters show the actual system school forms, not rendered UI mockups. */
.kp-ag-live-instructions{padding:0 22px}
.kp-ag-live-instructions>h3{color:#113e7c;font-weight:900;font-size:18px;padding-top:21px}
.kp-ag-live-instructions>p{font-size:13px;color:#657fa1;line-height:1.85;margin:5px 0 14px}
.kp-ag-real-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kp-ag-real-step{display:flex;align-items:flex-start;gap:10px;border:1px solid #dae8fa;background:#f7fbff;border-radius:14px;padding:13px}
.kp-ag-real-step h3{font-size:14px;color:#184c89;margin:0 0 5px;font-weight:900}
.kp-ag-real-step p{font-size:12px;color:#5a7499;line-height:1.85;margin:0 0 10px}
.kp-ag-real-step>div{flex:1;min-width:0}
.kp-ag-focus-button{background:#fff!important;border:1px solid #bdd8fa!important;color:#1265c5!important;font-size:11px!important;line-height:1.6;border-radius:9px!important;font-weight:900!important;padding:7px 10px!important;min-height:34px}
.kp-ag-focus-button:hover{background:#ebf5ff!important}
.kp-ag-real-form{margin:21px 22px 0;border:1px solid #c7ddf8;border-radius:16px;overflow:hidden;background:#fff}
.kp-ag-real-form-head{background:linear-gradient(90deg,#eaf4ff,#fbfdff);padding:12px 16px;display:flex;gap:12px;align-items:center;justify-content:space-between;color:#174d92;font-weight:900;font-size:13px}
.kp-ag-real-form-head strong{font-weight:900;background:#d7f7e5;color:#15784a;font-size:11px;border-radius:99px;padding:5px 9px}
.kp-ag-live-form{padding:17px}
.kp-ag-live-form .page-title{display:none}
.kp-ag-live-form>.card,.kp-ag-live-form>form.card{box-shadow:none;border:1px solid #e1eaf6;margin:0 0 16px}
.kp-ag-live-form>.card:last-child,.kp-ag-live-form>form.card:last-child{margin-bottom:0}
.kp-ag-field-focus{outline:3px solid #ff9717!important;outline-offset:4px;border-radius:9px;background:#fff9ef}
.kp-ag-field-focus .input{border-color:#ff9717!important}
.kp-ag-no-simulation{margin:22px 22px 0;border-radius:12px;border:1px solid #cce1fa;padding:14px 16px;background:#f3f9ff}
.kp-ag-no-simulation strong{font-size:13px;color:#0e4d9c}
.kp-ag-no-simulation p{font-size:12px;color:#53749d;line-height:1.8;margin:5px 0 0}
.kp-ag-text-guide .kp-ag-step{padding:14px 0}
@media(max-width:780px){
 .kp-ag-real-steps{grid-template-columns:1fr}
 .kp-ag-real-form{margin:15px 10px 0}
 .kp-ag-live-form{padding:9px}
 .kp-ag-live-instructions{padding:0 13px}
 .kp-ag-real-form-head{flex-wrap:wrap}
}
@media print{
 .kp-ag-real-steps{grid-template-columns:1fr 1fr}
 .kp-ag-real-form-head{background:#f4f6fb}
 .kp-ag-focus-button{display:none!important}
 .kp-ag-real-step{break-inside:avoid}
}


/* School settings chapter: user-approved infographic ONLY, not an editable form. */
.kp-ag-infographic-guide{margin:16px 22px 18px;max-width:100%}
.kp-ag-infographic-guide figure{margin:0}
.kp-ag-infographic-link{display:block;overflow:hidden;border-radius:15px;border:1px solid #d9e8fb;background:#fff;box-shadow:0 7px 22px rgba(25,78,143,.09);cursor:zoom-in}
.kp-ag-infographic-link:focus-visible{outline:3px solid #0c6cde;outline-offset:4px}
.kp-ag-infographic-link img{display:block;width:100%;height:auto;object-fit:contain}
.kp-ag-infographic-guide figcaption{padding:10px 12px;text-align:center;color:#607c9e;font-size:12px;line-height:1.65}
.kp-ag-infographic-hint{margin:12px 0 0;padding:12px 16px;border-radius:12px;background:#f1f7ff;border:1px solid #d9e8fb;color:#3a6495;font-size:13px;line-height:1.85}
@media(max-width:700px){
 .kp-ag-infographic-guide{margin:12px 10px 16px}
 .kp-ag-infographic-guide figcaption{font-size:11px}
 .kp-ag-infographic-hint{font-size:12px;padding:10px}
}
@media print{
 .kp-ag-infographic-guide{margin:0}
 .kp-ag-infographic-link{box-shadow:none;border:0}
 .kp-ag-infographic-link img{break-inside:avoid;max-height:240mm;object-fit:contain}
 .kp-ag-infographic-hint{display:none}
}

/* Multi-panel real-interface infographics for the template editor tutorial. */
.kp-ag-manual-figure+.kp-ag-manual-figure{margin-top:20px}
.kp-ag-manual-figure img{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:700px){.kp-ag-manual-figure+.kp-ag-manual-figure{margin-top:13px}}

/* User manual shell. Separate from admin-only guide and official forms. */
.kp-user-guide .kp-ag-subnav{border-color:#d8e5f7}
.kp-user-guide .kp-ag-lesson{min-height:430px}
.kp-user-guide .kp-ag-lesson-icon{background:#e9f2ff;color:#1164ca;font-size:26px}
.kp-ug-pending{margin:22px;padding:40px 24px;border:1px dashed #b8d2f4;border-radius:17px;background:linear-gradient(138deg,#f3f8ff,#ffffff 68%,#fff8f1);text-align:center}
.kp-ug-pending-icon{font-size:40px;display:block;margin-bottom:10px}
.kp-ug-pending h3{color:#143d79;font-size:19px;margin:0 0 8px;font-weight:800}
.kp-ug-pending p{font-size:14px;color:#54739a;line-height:1.8;margin:6px 0}
.kp-ug-pending .kp-ug-pending-note{font-size:12px;color:#798aa3}
.kp-ug-back{margin-top:15px}
@media(max-width:700px){.kp-ug-pending{margin:12px;padding:25px 12px}.kp-ug-pending h3{font-size:17px}.kp-user-guide .kp-ag-lesson{min-height:0}}

/* Four-step user guide: full-width infographics with click-to-enlarge access. */
.kp-user-guide .kp-ag-lesson{min-width:0;overflow:hidden}
.kp-ug-infographics{padding:0 17px 22px}
.kp-ug-intro{font-size:14px;line-height:1.85;color:#4c6e99;margin:15px 7px}
.kp-ug-figure{margin:14px 0 20px;width:100%}
.kp-ug-figure+.kp-ug-figure{margin-top:22px}
.kp-ug-figure a{display:block;width:100%;max-width:none}
.kp-ug-figure img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.kp-ug-figure figcaption{font-size:13px;color:#50759d;text-align:center;padding:12px 6px;line-height:1.75}
.kp-user-guide .kp-ug-infographics .kp-ag-infographic-hint{margin:16px 4px 0}
@media(max-width:700px){.kp-ug-infographics{padding:0 9px 16px}.kp-ug-intro{font-size:13px}.kp-ug-figure{margin:10px 0 14px}.kp-ug-figure figcaption{font-size:11px}}
@media print{.kp-ug-figure{break-inside:avoid}.kp-ug-figure a{border:none;box-shadow:none}.kp-ug-figure img{max-height:240mm}}
