@import"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Mitr:wght@400;500;600&display=swap";*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:#f5f7fa;color:#173042;font-family:IBM Plex Sans Thai,sans-serif;font-size:16px;line-height:1.55}button,input{font-family:inherit}.app{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:100vh}aside{background:#0c2940;color:#d9e7ee;padding:28px 20px}.brand{display:flex;gap:13px;align-items:center;margin-bottom:38px}.brand b{display:block;font-family:Mitr,sans-serif;font-size:18px;font-weight:500;color:#fff}.brand small{display:block;margin-top:2px;font-size:14px;opacity:.75}.mark{width:52px;height:52px;flex:0 0 52px;border-radius:14px;background:#16a6a1;display:grid;place-items:center;font-family:Mitr,sans-serif;font-size:17px;font-weight:600;color:#fff}nav{display:grid;gap:8px}nav span{padding:13px 15px;border-radius:9px;font-size:17px;cursor:default}nav .active{background:#123d58;color:#fff;border-left:3px solid #28c4bd}main{padding:32px 34px;min-width:0}header{display:flex;justify-content:space-between;align-items:center;gap:20px}header p{margin:0;color:#168a88;font-size:17px;font-weight:700}h1{font-family:Mitr,sans-serif;font-weight:500;margin:4px 0;font-size:30px;line-height:1.35}header small{font-size:15px;color:#657985}header button,.print{border:1px solid #d6e0e5;background:#fff;border-radius:10px;padding:10px 15px;display:flex;gap:7px;align-items:center;font-size:15px;cursor:pointer}.cards{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:16px;margin:26px 0}.cards article{background:#fff;border:1px solid #e3e9ed;border-radius:15px;padding:21px 22px;display:flex;gap:15px;align-items:center}.cards article svg{color:#168a88}.cards b{display:block;font-size:29px;line-height:1.2}.cards span{display:block;margin-top:4px;color:#647785;font-size:16px}.cards .warn{background:#fffaf0}.cards .warn svg{color:#c58a16}.panel{background:#fff;border:1px solid #e1e8ec;border-radius:15px;overflow:hidden}.toolbar,.tablehead{padding:19px 21px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #edf1f3}.toolbar h2{font-family:Mitr,sans-serif;font-size:23px;font-weight:500;margin:0}.toolbar p{margin:3px 0 0;color:#70818d;font-size:15px}.search{display:flex;align-items:center;gap:8px;border:1px solid #dce4e8;border-radius:10px;padding:9px 12px;background:#fff}.search input{border:0;outline:0;width:280px;font-size:15px;color:#173042}.groups{display:flex;flex-wrap:wrap;gap:9px;padding:16px 20px;border-bottom:1px solid #edf1f3}.groups button{white-space:nowrap;border:1px solid #dce4e8;background:#fff;border-radius:24px;padding:8px 14px;display:flex;gap:9px;align-items:center;font-size:15px;cursor:pointer}.groups button b{font-size:15px}.groups button:hover{border-color:#16a6a1}.groups button.selected{background:#e6f7f6;border-color:#16a6a1;color:#08736f}.groups button.waiting{background:#fff8e8}.tablehead>div{display:flex;align-items:baseline;gap:10px}.tablehead b{font-family:Mitr,sans-serif;font-size:19px;font-weight:500}.tablehead span{color:#71818d;font-size:15px}.print{background:#0f7f7c;color:#fff;border:0;font-weight:600}.print:hover{background:#0c706d}.print:disabled{opacity:.35;cursor:not-allowed}.tablewrap{overflow:auto;max-height:65vh}table{border-collapse:collapse;width:100%;font-size:15px}th,td{padding:12px 11px;border-bottom:1px solid #e6ecef;text-align:left;vertical-align:top}th{position:sticky;top:0;background:#f4f8fa;z-index:1;color:#102e42;font-weight:700;white-space:nowrap}tbody tr:hover{background:#f9fcfd}td:nth-child(1){text-align:center;width:55px}td:nth-child(2){white-space:nowrap;font-weight:600;color:#123d58}td:nth-child(3){white-space:nowrap}td:nth-child(5){text-align:center;white-space:nowrap}.check{white-space:nowrap;line-height:1.8}.loading,.error{padding:26px;font-size:16px}.error{background:#fff1f1;color:#9b2c2c;margin-bottom:15px}@media(max-width:1000px){.app{grid-template-columns:230px minmax(0,1fr)}main{padding:24px}}@media(max-width:900px){.app{grid-template-columns:1fr}aside{display:none}main{padding:16px}.cards{grid-template-columns:1fr}.toolbar{align-items:flex-start;gap:12px;flex-direction:column}.search,.search input{width:100%}}@media print{@page{size:A4 landscape;margin:8mm 7mm 9mm}html,body{margin:0!important;padding:0!important;background:#fff!important;color:#000!important}body{font-family:TH Sarabun New,TH SarabunPSK,Sarabun,IBM Plex Sans Thai,sans-serif!important;font-size:14pt!important;line-height:1.15!important}.app{display:block!important;min-height:0!important}aside,header,.cards,.toolbar,.groups,.tablehead .print{display:none!important}main{padding:0!important;margin:0!important;width:100%!important}.panel{border:0!important;border-radius:0!important;overflow:visible!important;background:#fff!important}.tablehead{display:block!important;padding:0 0 5mm!important;margin:0!important;border:0!important;text-align:center!important}.tablehead>div{display:block!important;text-align:center!important}.tablehead>div:before{content:"แบบตรวจสอบครุภัณฑ์ประจำปีงบประมาณ พ.ศ. 2569";display:block;font-size:20pt;line-height:1.15;font-weight:700;margin:0 0 1mm}.tablehead>div:after{content:"โรงเรียนหล่มเก่าพิทยาคม";display:block;font-size:18pt;line-height:1.15;font-weight:700;margin:0 0 2mm}.tablehead b{display:inline!important;font-family:TH Sarabun New,TH SarabunPSK,sans-serif!important;font-size:16pt!important;font-weight:700!important}.tablehead b:before{content:"กลุ่มสาระ/กลุ่มงาน : "}.tablehead span{display:inline!important;margin-left:8mm!important;color:#000!important;font-size:15pt!important}.tablewrap{max-height:none!important;height:auto!important;overflow:visible!important;width:100%!important}table{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;font-family:TH Sarabun New,TH SarabunPSK,Sarabun,sans-serif!important;font-size:12.5pt!important;line-height:1.12!important}thead{display:table-header-group!important}tbody{display:table-row-group!important}tr{page-break-inside:avoid!important;break-inside:avoid!important}th,td{position:static!important;border:.7pt solid #000!important;padding:2.2mm 1.5mm!important;vertical-align:middle!important;color:#000!important;background:#fff!important;overflow-wrap:anywhere}th{text-align:center!important;font-weight:700!important;font-size:12.5pt!important;white-space:normal!important}th:nth-child(1),td:nth-child(1){width:4.5%!important;text-align:center!important}th:nth-child(2),td:nth-child(2){width:9.5%!important;white-space:nowrap!important;text-align:center!important}th:nth-child(3),td:nth-child(3){width:10.5%!important;white-space:normal!important}th:nth-child(4),td:nth-child(4){width:21%!important}th:nth-child(5),td:nth-child(5){width:5%!important;text-align:center!important}th:nth-child(6),td:nth-child(6){width:12%!important}th:nth-child(7),td:nth-child(7){width:13.5%!important}th:nth-child(8),td:nth-child(8){width:7%!important;white-space:nowrap!important}th:nth-child(9),td:nth-child(9){width:7.5%!important;white-space:nowrap!important}th:nth-child(10),td:nth-child(10){width:9.5%!important;min-height:12mm!important}td:nth-child(1),td:nth-child(5){text-align:center!important}td:nth-child(2){font-weight:600!important}.check{font-size:11.5pt!important;line-height:1.45!important;white-space:nowrap!important}*,*:before,*:after{box-shadow:none!important;text-shadow:none!important}}@media print{th:nth-child(3),td:nth-child(3){text-align:center!important;vertical-align:middle!important}th:nth-child(8),td:nth-child(8){text-align:center!important;vertical-align:middle!important}th:nth-child(9),td:nth-child(9){text-align:center!important;vertical-align:middle!important}.check{font-size:16pt!important;line-height:1.2!important;text-align:center!important;vertical-align:middle!important;white-space:nowrap!important}}@media print{th:nth-child(3){text-align:center!important;vertical-align:middle!important}td:nth-child(3){font-size:14pt!important;line-height:1.15!important;text-align:center!important;vertical-align:middle!important}}.inspection-footer{margin-top:28px;padding:24px 28px;border:1px solid #d7dde5;border-radius:12px;background:#fff}.inspection-footer h3{margin:0 0 14px;text-align:center;font-size:20px}.footer-group{margin:0 0 18px}.summary-lines p{margin:9px 0}.summary-lines span:not(.blank){display:inline-block;min-width:55px;margin:0 8px;text-align:center;font-weight:700}.blank{display:inline-block;width:80px;height:20px;margin:0 6px;border-bottom:1px dotted #000;vertical-align:bottom}.inspection-note{margin-top:22px}.write-line{height:28px;border-bottom:1px dotted #555}.certification{margin-top:22px;text-align:center}.signature-block{width:430px;margin:28px 0 0 auto;text-align:center}.signature-block p{margin:5px 0}@media print{.inspection-footer{margin-top:5mm;padding:4mm 5mm;border:1px solid #000;border-radius:0;background:#fff;font-size:13pt;line-height:1.3;break-inside:avoid;page-break-inside:avoid}.inspection-footer h3{margin:0 0 3mm;font-size:16pt;font-weight:700;text-align:center}.footer-group{margin:0 0 3mm;font-size:13pt}.summary-lines p{margin:1.5mm 0}.summary-lines span:not(.blank){min-width:12mm;margin:0 2mm;text-align:center;font-weight:700}.blank{width:20mm;height:5mm;margin:0 2mm;border-bottom:1px dotted #000}.inspection-note{margin-top:4mm}.write-line{height:7mm;border-bottom:1px dotted #000}.certification{margin-top:4mm;text-align:center}.signature-block{width:85mm;margin:6mm 8mm 0 auto;text-align:center;break-inside:avoid;page-break-inside:avoid}.signature-block p{margin:1mm 0}}@media print{.inspection-footer{break-inside:auto!important;page-break-inside:auto!important;margin-top:4mm!important;padding:5mm 6mm!important;font-size:14pt!important;line-height:1.35!important}.inspection-footer h3{font-size:17pt!important;margin-bottom:3mm!important}.footer-group{font-size:14pt!important;margin-bottom:3mm!important}.summary-lines{break-inside:avoid!important;page-break-inside:avoid!important}.summary-lines p{margin:2mm 0!important}.blank{width:23mm!important;height:5mm!important}.inspection-note{margin-top:4mm!important}.write-line{height:8mm!important}.certification{margin-top:5mm!important;break-after:avoid!important;page-break-after:avoid!important}.signature-block{width:90mm!important;margin:7mm 10mm 0 auto!important;font-size:14pt!important;break-inside:avoid!important;page-break-inside:avoid!important}.signature-block p{margin:1.5mm 0!important}}.auth-page,.login-page,.auth-screen{min-height:100vh;display:grid;place-items:center;padding:32px 20px;background:linear-gradient(135deg,#eef6f7,#f7f9fb 52%,#edf3f6)}.auth-card,.login-card{width:min(100%,460px);padding:34px;background:#fff;border:1px solid #dce6ea;border-radius:22px;box-shadow:0 18px 50px #0c29401f}.auth-card h1,.login-card h1{margin:0 0 6px;text-align:center;font-family:Mitr,sans-serif;font-size:27px;font-weight:500;color:#0c2940}.auth-card p,.login-card p{text-align:center;color:#6c7f8b}.auth-form,.login-form{display:grid;gap:16px}.auth-form label,.login-form label{display:grid;gap:7px;font-weight:600}.auth-form input,.login-form input,.auth-card input,.login-card input{width:100%;border:1px solid #cfdae0;border-radius:11px;padding:11px 13px;outline:none;background:#fff;font-size:16px}.auth-form input:focus,.login-form input:focus,.auth-card input:focus,.login-card input:focus{border-color:#16a6a1;box-shadow:0 0 0 3px #16a6a11f}.auth-form button,.login-form button,.auth-card button,.login-card button{min-height:45px;border:0;border-radius:11px;padding:10px 16px;background:#0f7f7c;color:#fff;font-size:16px;font-weight:700;cursor:pointer}.auth-error,.login-error{padding:10px 12px;border:1px solid #f0caca;border-radius:9px;background:#fff3f3;color:#9b2c2c;font-size:14px}.header-actions,.user-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.user-email{color:#657985;font-size:14px}.logout,.logout-button{border:1px solid #d6e0e5;border-radius:10px;padding:9px 13px;background:#fff;color:#173042;cursor:pointer}.mode-tabs,.inspection-tabs,.view-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.mode-tabs button,.inspection-tabs button,.view-tabs button{border:1px solid #d8e3e7;border-radius:10px;padding:9px 15px;background:#fff;color:#29485a;font-size:15px;font-weight:600;cursor:pointer}.mode-tabs button.active,.inspection-tabs button.active,.view-tabs button.active{border-color:#16a6a1;background:#e6f7f6;color:#08736f}.result-panel,.result-entry,.inspection-entry{background:#fff;border:1px solid #e1e8ec;border-radius:15px;overflow:hidden}.result-row,.inspection-result-row{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(150px,.8fr) minmax(170px,.9fr) minmax(220px,1.2fr) auto;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid #edf1f3}.result-row select,.result-row input,.result-row textarea,.inspection-result-row select,.inspection-result-row input,.inspection-result-row textarea,.result-entry select,.result-entry input,.result-entry textarea,.inspection-entry select,.inspection-entry input,.inspection-entry textarea{width:100%;border:1px solid #d6e0e5;border-radius:9px;padding:9px 10px;background:#fff;color:#173042;font:inherit;outline:none}.save-result,.save-button,.result-save{border:0;border-radius:9px;padding:9px 14px;background:#0f7f7c;color:#fff;font-weight:700;white-space:nowrap;cursor:pointer}@media(max-width:1100px){.result-row,.inspection-result-row{grid-template-columns:1fr 1fr}}@media(max-width:700px){.auth-card,.login-card{padding:26px 20px}.result-row,.inspection-result-row{grid-template-columns:1fr}}@media print{.auth-page,.login-page,.auth-screen,.mode-tabs,.inspection-tabs,.view-tabs,.header-actions,.user-actions,.result-panel,.result-entry,.inspection-entry{display:none!important}}.login-page{position:relative;overflow:hidden;background:linear-gradient(#eef6f7e0,#eef6f7ed),url(/lkp-school.jpg) center center / cover no-repeat fixed!important}.login-page:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#0c29401a,#16a6a114);pointer-events:none}.login-card{position:relative;z-index:1;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.login-school-logo{display:flex;justify-content:center;margin:0 auto 14px}.login-school-logo img{display:block;width:104px;height:104px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 6px 12px rgba(12,41,64,.15))}.sidebar-school-logo{width:58px;height:58px;flex:0 0 58px;display:grid;place-items:center}.sidebar-school-logo img{display:block;width:58px;height:58px;object-fit:contain;border-radius:50%;background:#fff}@media(max-width:700px){.login-school-logo img{width:88px;height:88px}}@media print{.login-school-logo,.sidebar-school-logo{display:none!important}}.login-page{min-height:100vh!important;padding:24px 18px!important;place-items:center!important;overflow:auto!important}.login-card{width:min(100%,460px)!important;padding:28px 36px 30px!important;border-radius:22px!important}.login-school-logo{width:96px!important;height:96px!important;margin:0 auto 12px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}.login-school-logo img{width:96px!important;height:96px!important;max-width:96px!important;max-height:96px!important;object-fit:contain!important;border-radius:50%!important}.login-card h1{margin:0 0 4px!important;font-size:27px!important;line-height:1.25!important}.login-card>p{margin:4px 0 20px!important}.login-form{gap:13px!important}.login-form label{gap:5px!important}.login-form input{min-height:48px!important;padding:10px 13px!important}.login-form button{min-height:46px!important;margin-top:2px!important}.sidebar-school-logo,.sidebar-school-logo img{width:52px!important;height:52px!important;max-width:52px!important;max-height:52px!important}@media(max-height:700px){.login-page{padding:14px!important}.login-card{padding:20px 30px 22px!important}.login-school-logo,.login-school-logo img{width:78px!important;height:78px!important;max-width:78px!important;max-height:78px!important}.login-card>p{margin-bottom:12px!important}}
