:root{--primary: #4f63a6;--primary-dark: #344477;--primary-soft: #e9ecff;--bg: #fbf9ff;--card: #ffffff;--text: #1f2230;--muted: #6d7080;--border: #e8e6ef;--green: #45ad52;--green-soft: #e8f8ea;--red: #e74c4c;--red-soft: #feecec;--orange: #f5a623;--orange-soft: #fff4dc;--shadow: 0 18px 40px rgba(31, 34, 48, .07);--radius: 22px}*{box-sizing:border-box;font-family:Segoe UI,Arial,sans-serif}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button{border:none;cursor:pointer}.hidden{display:none!important}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:22px;background:radial-gradient(circle at 20% 20%,#eef2ff 0,transparent 30%),radial-gradient(circle at 80% 10%,#e8fff7 0,transparent 28%),var(--bg)}.login-card{width:430px;max-width:100%;background:var(--card);padding:30px 42px 34px;border-radius:32px;box-shadow:var(--shadow)}.logo-badge{width:100%;height:auto;background:transparent;display:flex;align-items:center;justify-content:center;margin:0 auto 22px}.logo-badge img{display:block;width:100%;max-width:330px;height:auto;object-fit:contain}.login-card h1{margin:0;font-size:42px;line-height:1.05;letter-spacing:.5px}.login-card p{color:var(--muted);font-size:18px;margin:14px 0 28px}.field{width:100%;border:none;outline:none;background:#f0eff5;border-radius:16px;padding:15px 17px;margin-bottom:14px;font-size:16px}.primary-btn{width:100%;background:var(--primary);color:#fff;padding:17px 22px;border-radius:17px;font-weight:700;font-size:16px;box-shadow:0 10px 22px #4f63a638}.primary-btn:hover{background:var(--primary-dark)}.error{color:var(--red);font-weight:600;margin-top:16px;line-height:1.35}.app{min-height:100vh;display:none}.sidebar{width:260px;height:100vh;position:fixed;left:0;top:0;background:#fff;border-right:1px solid var(--border);padding:22px 18px;z-index:10;overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;color:var(--primary);font-weight:800;font-size:21px;margin-bottom:26px}.brand-icon{width:44px;height:44px;border-radius:14px;background:var(--primary-soft);display:flex;align-items:center;justify-content:center}.nav-title{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:1px;font-weight:800;margin:22px 12px 8px}.nav-btn{width:100%;display:flex;align-items:center;gap:12px;color:var(--text);background:transparent;text-align:left;padding:13px 14px;border-radius:14px;margin-bottom:6px;font-size:15px}.nav-btn .nav-icon{width:20px;height:20px;min-width:20px;color:#c7d2e5;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.nav-btn.active .nav-icon,.nav-btn:hover .nav-icon{color:#fff}.nav-btn.active,.nav-btn:hover{background:var(--primary-soft);color:var(--primary);font-weight:750}.content{margin-left:260px;min-height:100vh;padding:26px 34px 80px}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:26px}.greeting{color:var(--muted);font-weight:650;margin-bottom:4px}.page-title{font-size:34px;margin:0;letter-spacing:.5px}.date-text{color:var(--muted);margin-top:16px;font-size:16px}.top-actions{display:flex;align-items:center;gap:12px}.admin-chip{background:#fff;border:1px solid var(--border);border-radius:999px;padding:12px 16px;color:var(--muted);font-weight:700}.logout{background:var(--red);color:#fff;padding:13px 22px;border-radius:16px;font-weight:700}.page{display:none}.page.active{display:block}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat-card,.card,.data-card,.scan-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.stat-card{padding:20px;min-height:132px}.stat-icon{width:34px;height:34px;border-radius:12px;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;margin-bottom:12px;font-size:18px}.stat-number{font-size:38px;line-height:1;color:var(--primary);font-weight:850;margin-bottom:8px}.stat-label{color:var(--text);font-weight:650}.card{padding:24px;margin-bottom:22px}.section-title{font-size:24px;margin:0 0 18px}.subtle{color:var(--muted)}.attendance-rate-row{display:flex;justify-content:space-between;gap:12px;font-size:22px;font-weight:750;margin-bottom:18px}.progress-track{height:15px;border-radius:999px;background:var(--primary-soft);overflow:hidden}.progress-fill{height:100%;width:0%;background:var(--primary);border-radius:999px;transition:width .25s ease}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}.quick-card{background:#fff;border:1px solid var(--border);border-radius:20px;padding:20px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow);font-size:17px;font-weight:750}.quick-card:hover{background:#f6f7ff}.quick-icon,.status-icon,.card-icon{width:52px;height:52px;border-radius:17px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--primary);background:var(--primary-soft);font-size:23px}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px;flex-wrap:wrap}.search{flex:1;min-width:260px;background:#f0eff5;border:none;border-radius:16px;padding:15px 17px;outline:none;font-size:16px}.add-btn,.outline-btn,.danger-btn,.small-btn{background:var(--primary);color:#fff;padding:13px 18px;border-radius:15px;font-weight:750;white-space:nowrap}.outline-btn{background:transparent;border:1px solid var(--primary);color:var(--primary)}.danger-btn{background:var(--red)}.small-btn{padding:9px 12px;border-radius:11px;font-size:13px}.table-wrap{background:#fff;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:15px 16px;border-bottom:1px solid var(--border);vertical-align:middle}th{background:#f4f3fa;color:var(--text);font-size:14px;letter-spacing:.3px}tr:last-child td{border-bottom:none}.avatar{width:44px;height:44px;border-radius:15px;background:var(--primary-soft);color:var(--primary);display:inline-flex;align-items:center;justify-content:center;font-weight:850;margin-right:10px}.name-cell{display:flex;align-items:center;gap:4px;font-weight:750}.actions{display:flex;gap:8px;flex-wrap:wrap}.edit{background:var(--orange-soft);color:#a66600}.delete{background:var(--red-soft);color:#b91c1c}.qr{background:var(--primary-soft);color:var(--primary)}.pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 13px;font-size:13px;font-weight:750;background:var(--green-soft);color:#168a32}.pill.unknown,.pill.logout{background:var(--red-soft);color:#b91c1c}.status-icon.logout{background:var(--red-soft);color:var(--red)}.list{display:grid;gap:14px}.scan-card{padding:18px 20px;display:flex;align-items:center;gap:16px;animation:fadeIn .25s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.status-icon{background:var(--green-soft);color:var(--green);font-size:24px}.status-icon.unknown{background:var(--red-soft);color:var(--red)}.scan-main{flex:1;min-width:0}.scan-name{font-weight:800;font-size:18px;margin-bottom:4px}.scan-uid{color:var(--muted);font-family:Consolas,monospace;overflow-wrap:anywhere}.scan-right{text-align:right;min-width:120px}.bar-chart{height:220px;display:flex;align-items:end;gap:14px;padding:16px 6px 2px}.bar-wrap{flex:1;text-align:center;color:var(--muted);font-weight:600;font-size:13px}.bar{width:100%;max-width:46px;margin:0 auto 10px;border-radius:10px 10px 0 0;background:var(--primary);min-height:22px}.profile-header{display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:28px;box-shadow:var(--shadow);padding:24px;margin-bottom:22px}.profile-avatar{width:96px;height:96px;border-radius:28px;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900}.profile-name{font-size:30px;font-weight:900;margin-bottom:6px}.profile-meta{color:var(--muted);line-height:1.6}.profile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.detail-item{background:#f7f7fb;border-radius:16px;padding:14px 16px}.detail-label{color:var(--muted);font-size:13px;font-weight:700;margin-bottom:5px;text-transform:uppercase;letter-spacing:.4px}.detail-value{font-weight:800;overflow-wrap:anywhere}@media(max-width:900px){.profile-header{grid-template-columns:1fr}.profile-grid{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr}}.qr-box{text-align:center;padding:16px;background:#fff}.qr-preview{width:230px;height:230px;border-radius:18px;border:1px solid var(--border);padding:14px;background:#fff;margin:10px auto 16px}.qr-student-name{font-size:22px;font-weight:900;margin-bottom:6px}.qr-uid{font-family:Consolas,monospace;color:var(--muted);overflow-wrap:anywhere}@media print{body *{visibility:hidden}#studentProfileContent,#studentProfileContent *{visibility:visible}#studentProfileContent{position:absolute;left:0;top:0;width:100%}.sidebar,.topbar,.bottom-nav,.toolbar,.actions{display:none!important}}.reader-note{margin-top:-8px;margin-bottom:12px;padding:12px 14px;border-radius:14px;background:var(--primary-soft);color:var(--primary);font-size:13px;font-weight:800;line-height:1.5}.scanner-status{position:fixed;right:24px;bottom:24px;z-index:9999;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);padding:16px 18px;border-radius:18px;font-weight:800;color:var(--dark);max-width:380px;display:none}.scanner-status.show{display:block}.scanner-status.success{border-left:6px solid var(--green)}.scanner-status.error{border-left:6px solid var(--red)}.account-grid{display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:14px;margin-bottom:20px}.account-card{background:#fff;border:1px solid var(--border);border-radius:20px;padding:18px;box-shadow:var(--shadow);display:flex;align-items:center;gap:12px;font-weight:900;color:var(--text)}.account-card span{width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:var(--primary-soft);color:var(--primary);font-size:21px;flex:0 0 auto}.role-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:900;background:var(--primary-soft);color:var(--primary);white-space:nowrap}.status-active{background:var(--green-soft);color:#168a32}.status-inactive{background:var(--red-soft);color:#b91c1c}.password-note{font-size:12px;color:var(--muted);font-weight:750;margin:-6px 0 12px;line-height:1.35}@media(max-width:1100px){.account-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.account-grid{grid-template-columns:1fr}}.printable-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.filter-group{display:flex;align-items:center;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}.filter-label{padding:12px 13px;background:var(--green);color:#fff;font-weight:850;font-size:13px}.filter-control{border:0;outline:0;padding:11px 13px;min-width:145px;background:#fff}.print-btn{background:#1ba4b8;color:#fff;padding:12px 17px;border-radius:10px;font-weight:800}.export-btn{background:var(--green);color:#fff;padding:12px 17px;border-radius:10px;font-weight:800}.attendance-sheet{overflow-x:auto;border:1px solid var(--border);border-radius:16px;background:#fff}.attendance-sheet table{min-width:1320px;font-size:13px}.attendance-sheet th,.attendance-sheet td{padding:10px 7px;text-align:center;white-space:nowrap}.attendance-sheet th:first-child,.attendance-sheet td:first-child{text-align:left;min-width:210px;position:sticky;left:0;background:inherit;z-index:1}.attendance-sheet thead th:first-child{background:#f4f3fa;z-index:2}.attendance-mark-present{color:#15803d;font-weight:900}.attendance-mark-absent{color:#b91c1c;font-weight:900}.print-heading{display:none;margin-bottom:18px}@media print{body.print-student-attendance *{visibility:hidden}body.print-student-attendance #studentAttendanceReport,body.print-student-attendance #studentAttendanceReport *{visibility:visible}body.print-student-attendance #studentAttendanceReport{display:block!important;position:absolute;inset:0;width:100%;background:#fff}body.print-staff-attendance *{visibility:hidden}body.print-staff-attendance #staffAttendanceReport,body.print-staff-attendance #staffAttendanceReport *{visibility:visible}body.print-staff-attendance #staffAttendanceReport{display:block!important;position:absolute;inset:0;width:100%;background:#fff}body.print-student-attendance .printable-toolbar,body.print-staff-attendance .printable-toolbar,body.print-student-attendance .topbar,body.print-staff-attendance .topbar{display:none!important}body.print-student-attendance .print-heading,body.print-staff-attendance .print-heading{display:block}.attendance-sheet{overflow:visible;border:0}.attendance-sheet table{min-width:0;width:100%;font-size:9px}.attendance-sheet th,.attendance-sheet td{padding:5px 3px}.attendance-sheet th:first-child,.attendance-sheet td:first-child{position:static;min-width:130px}@page{size:landscape;margin:8mm}}.student-photo-upload{display:grid;grid-template-columns:140px 1fr;gap:18px;align-items:center;margin-bottom:16px}.student-photo-preview{width:140px;height:140px;border-radius:20px;object-fit:cover;background:#f0eff5;border:1px solid var(--border)}.student-photo-actions{display:grid;gap:10px}.student-photo-actions input[type=file]{padding:12px;background:#f7f7fb;border-radius:14px;border:1px solid var(--border)}.student-thumb{width:44px;height:44px;border-radius:14px;object-fit:cover;margin-right:10px}.scan-photo{width:52px;height:52px;border-radius:17px;object-fit:cover;flex-shrink:0}.profile-photo{width:96px;height:96px;border-radius:28px;object-fit:cover}.otp-note{font-size:12px;color:var(--muted);font-weight:700;margin:-4px 0 12px}@media(max-width:600px){.student-photo-upload{grid-template-columns:1fr}.student-photo-preview{margin:auto}}.face-status{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap;border:1px solid transparent}.face-status:before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}.face-synced{color:#15803d;background:#ecfdf3;border-color:#bbf7d0}.face-pending{color:#a16207;background:#fffbeb;border-color:#fde68a}.face-failed{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.face-not-enabled{color:#64748b;background:#f8fafc;border-color:#e2e8f0}.modal-backdrop{position:fixed;inset:0;background:#00000073;display:none;align-items:center;justify-content:center;z-index:50;padding:20px}.modal{width:560px;max-width:100%;background:#fff;border-radius:30px;padding:28px;box-shadow:0 28px 80px #0000002e;max-height:90vh;overflow-y:auto}.modal h2{margin:0 0 18px;font-size:28px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.helper-box{background:#eef6ff;border:1px solid #c7ddff;color:#1e3a8a;padding:12px 14px;border-radius:14px;font-size:13px;font-weight:800;margin-bottom:12px;line-height:1.45}.mini-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.mini-info{font-size:13px;color:var(--muted);font-weight:800}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:10px}.cancel-btn{background:transparent;color:var(--primary);padding:14px 18px;font-weight:700}.save-btn{background:var(--primary);color:#fff;padding:14px 26px;border-radius:16px;font-weight:750}.empty{color:var(--muted);padding:26px;text-align:center;background:#fff;border:1px dashed var(--border);border-radius:20px}.bottom-nav{display:none}@media(max-width:1100px){.stats,.quick-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.sidebar{display:none}.content{margin-left:0;padding:22px 16px 96px}.page-title{font-size:28px}.topbar{align-items:center}.admin-chip{display:none}.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:76px;background:#fffffff2;border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(5,1fr);z-index:30;backdrop-filter:blur(10px)}.bottom-nav button{background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px}.bottom-nav button.active{color:var(--primary);font-weight:800}.bottom-nav span{font-size:21px}.table-wrap{overflow-x:auto}table{min-width:760px}}@media(max-width:600px){.stats{grid-template-columns:repeat(2,1fr)}.quick-grid,.grid-2{grid-template-columns:1fr}.scan-card{align-items:flex-start}.scan-right{min-width:80px}}.money{font-variant-numeric:tabular-nums;font-weight:800}.billing-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.billing-summary .stat-card{min-height:auto}.payment-history{max-height:320px;overflow:auto;border:1px solid var(--border);border-radius:16px}.payment-history table{min-width:680px}@media(max-width:800px){.billing-summary{grid-template-columns:1fr}}.danger-nav-title{color:#ef4444!important}.system-settings-card{max-width:980px;padding:0;overflow:hidden}.system-settings-grid{display:grid;grid-template-columns:minmax(300px,1fr) minmax(320px,1fr);gap:28px;padding:26px;align-items:start}.settings-media-panel{display:flex;flex-direction:column;gap:18px}.settings-upload-box{position:relative;border:1px solid var(--border);background:#f8fafc;border-radius:8px;overflow:hidden;min-height:190px;display:flex;align-items:center;justify-content:center}.settings-upload-box.logo-box{min-height:210px}.settings-upload-box.background-box{min-height:230px}.settings-upload-box img{width:100%;height:100%;min-height:inherit;object-fit:contain;display:block}.settings-upload-box.background-box img{object-fit:cover}.settings-upload-overlay{position:absolute;inset:auto 10px 10px auto;display:flex;gap:8px}.settings-upload-overlay label,.settings-upload-overlay button{border:0;border-radius:5px;background:#0f172ae0;color:#fff;padding:8px 11px;font-size:13px;cursor:pointer}.settings-form-panel label{display:block;font-weight:700;margin:0 0 8px}.settings-form-panel .field{margin-bottom:20px}.color-row{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:center;margin-bottom:20px}.color-row input[type=color]{width:64px;height:42px;padding:3px;border:1px solid #cdd6df;border-radius:4px;background:#fff}.settings-footer{padding:18px 26px;border-top:1px solid var(--border);background:#f8f9fa;display:flex;justify-content:flex-end}.settings-footer .primary-btn{width:220px;background:#0d6efd}.settings-helper{color:var(--muted);font-size:13px;margin-top:-12px;margin-bottom:18px}@media(max-width:850px){.system-settings-grid{grid-template-columns:1fr}}.account-photo-editor{display:grid;grid-template-columns:128px 1fr;gap:18px;align-items:center;margin-bottom:16px;padding:14px;border:1px solid var(--border);border-radius:10px;background:#f8fafc}.account-photo-preview{width:112px;height:112px;border-radius:12px;border:1px solid #cbd5e1;background:#e8eef6;object-fit:cover}.account-photo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.account-photo-actions label,.account-photo-actions button{border:0;border-radius:6px;padding:9px 13px;cursor:pointer;font-weight:700}.account-photo-actions label{background:#0d6efd;color:#fff}.account-photo-actions button{background:#e2e8f0;color:#0f172a}.account-list-photo{width:42px;height:42px;border-radius:50%;object-fit:cover;border:1px solid #cbd5e1;background:#e8eef6;vertical-align:middle;margin-right:10px}@media(max-width:650px){.account-photo-editor{grid-template-columns:1fr}}PROFESSIONAL ADMIN THEME OVERRIDES --> <style> :root{--primary: #1185f7;--primary-dark: #086acb;--primary-soft: #eaf4ff;--bg: #f2f5f9;--card: #ffffff;--text: #243143;--muted: #6f7d8f;--border: #d9e0e7;--green: #28a745;--green-soft: #eaf7ee;--red: #dc3545;--red-soft: #fdecef;--orange: #f0ad00;--orange-soft: #fff6d8;--shadow: 0 2px 8px rgba(25, 42, 70, .08);--radius: 6px}*{font-family:Segoe UI,Arial,sans-serif}body{background:var(--bg);color:var(--text)}.sidebar{width:295px;background:#03122f;border-right:0;padding:14px 8px 28px;box-shadow:3px 0 12px #00000024}.brand{min-height:188px;margin:0 -8px 10px;padding:14px 18px 18px;color:#fff;flex-direction:column;justify-content:center;text-align:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.2);font-size:22px;font-weight:600}.brand-icon{width:120px;height:120px;border-radius:4px;background:#fff;color:#1387dc;font-size:50px;box-shadow:none}.brand-icon img{width:100%;height:100%;object-fit:contain;padding:8px;display:block}#sidebarBrandName{max-width:245px;overflow-wrap:anywhere;line-height:1.15}.nav-title{margin:26px 16px 8px;color:#c5cfde;font-size:13px;font-weight:500;letter-spacing:.4px}.nav-btn{color:#cdd6e5;padding:13px 18px;margin-bottom:4px;border-radius:4px;font-size:16px}.nav-btn.active,.nav-btn:hover{background:#1388f5;color:#fff;font-weight:600}.content{margin-left:295px;padding:0 14px 70px}.topbar{background:#fff;min-height:72px;margin:0 -14px 24px;padding:18px 20px;border-bottom:1px solid var(--border);align-items:center;box-shadow:0 1px 3px #00000008}.greeting,.date-text{display:none}.page-title{font-size:31px;font-weight:400;color:#29394c}.admin-chip{border:0;background:transparent;color:#111;font-weight:500}.logout{border-radius:4px;padding:10px 16px}.card,.table-wrap,.stat-card,.scan-card,.quick-card,.account-card{border-radius:6px;box-shadow:var(--shadow);border:1px solid var(--border)}.card{padding:20px 24px}.section-title{font-size:25px;font-weight:500}.stats{gap:14px}.stat-card{min-height:112px;padding:18px}.stat-number{font-size:32px}.toolbar{background:#fff;border:1px solid var(--border);border-radius:6px;padding:14px;margin-bottom:14px;box-shadow:var(--shadow)}.search,.field,select.field{border:1px solid #cdd6df;background:#fff;border-radius:4px;padding:10px 12px}.add-btn,.outline-btn,.danger-btn,.small-btn,.save-btn,.primary-btn{border-radius:4px;box-shadow:none;font-weight:600}.add-btn,.save-btn{background:#28a745}.add-btn:hover,.save-btn:hover{background:#218838}.outline-btn{border-color:#17a2b8;color:#17a2b8}table{font-size:14px}th{background:#fff;color:#111;font-weight:700}th,td{padding:12px 10px;border-color:#dfe4ea}tbody tr:nth-child(odd){background:#f8f9fa}tbody tr:hover{background:#eef6ff}.pill,.role-badge{border-radius:4px;padding:4px 8px}.avatar{border-radius:4px}.modal-backdrop{background:#0000007a}.modal{width:min(960px,95vw);border-radius:6px;padding:0;border:1px solid #cfd7df;box-shadow:0 10px 30px #00000047}.modal h2{margin:0 0 18px;padding:18px 22px;border-bottom:1px solid var(--border);font-size:23px;font-weight:500}.modal>.field,.modal>.grid-2,.modal>.password-note,.modal>.helper-box,.modal>.mini-row,.modal>select.field{margin-left:22px;margin-right:22px;width:calc(100% - 44px)}.modal-actions{border-top:1px solid var(--border);padding:16px 22px;margin-top:18px;background:#f8f9fa}.login-page{background:#eef2f6}.login-card{border-radius:6px;box-shadow:0 8px 28px #00000021}.logo-badge{border-radius:0}.quick-grid{gap:14px}.quick-card{border-radius:6px;font-weight:600}.quick-icon,.status-icon,.card-icon{border-radius:4px}@media(max-width:850px){.content{margin-left:0}.sidebar{display:none}.topbar{margin-left:-14px;margin-right:-14px}}.area-kiosk-photo-editor{display:grid;grid-template-columns:minmax(320px,1.5fr) minmax(220px,.8fr);gap:18px;margin:0 22px 18px;align-items:start}.area-kiosk-media-card{border:1px solid var(--border);background:#f8fafc;border-radius:6px;padding:12px}.area-kiosk-media-card b{display:block;margin-bottom:8px;font-size:15px}.area-kiosk-photo-large,.area-kiosk-photo-small{width:100%;border:1px solid var(--border);background:#eef3f8;border-radius:6px;display:block}.area-kiosk-photo-large{height:250px;object-fit:cover}.area-kiosk-photo-small{height:180px;object-fit:contain;padding:10px}.area-kiosk-upload-actions{margin:-6px 22px 16px;display:flex;gap:10px;flex-wrap:wrap}.area-kiosk-upload-actions label,.area-kiosk-upload-actions button{padding:10px 14px;border-radius:4px;font-weight:700;cursor:pointer}.area-kiosk-upload-actions label{background:#0d6efd;color:#fff}.area-kiosk-upload-actions button{background:#e2e8f0;color:#0f172a}.kiosk-name-cell{display:flex;align-items:center;gap:12px}.kiosk-table-photo{width:58px;height:48px;border-radius:5px;object-fit:cover;border:1px solid #ccd5df;background:#e8eef5;flex:0 0 auto}.area-kiosk-tool{padding:8px 10px;font-size:12px;border-radius:3px;font-weight:700;color:#fff}.area-kiosk-tool.cards{background:#17a2b8}.area-kiosk-tool.logbook{background:#e0a800;color:#111}.area-kiosk-tool.edit{background:#28a745}.area-kiosk-tool.delete{background:#dc3545}.area-kiosk-modal-wide{width:min(1040px,96vw)!important}.area-kiosk-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 22px 16px}.area-kiosk-summary>div{border:1px solid var(--border);background:#f8fafc;border-radius:5px;padding:12px}.area-kiosk-summary strong{display:block;margin-top:4px;overflow-wrap:anywhere}@media(max-width:760px){.area-kiosk-photo-editor,.area-kiosk-summary{grid-template-columns:1fr}}.image-editor-backdrop{position:fixed;inset:0;z-index:20000;display:none;align-items:center;justify-content:center;padding:20px;background:#020a1cc7;backdrop-filter:blur(5px)}.image-editor-backdrop.open{display:flex}.image-editor-dialog{width:min(920px,96vw);max-height:94vh;overflow-y:auto;background:#fff;border-radius:10px;box-shadow:0 28px 90px #00000061;border:1px solid #cfd8e3}.image-editor-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid var(--border)}.image-editor-header h2{margin:0;padding:0;border:0;font-size:22px;font-weight:700}.image-editor-close{width:38px;height:38px;border-radius:50%;background:#edf2f7;color:#172033;font-size:22px}.image-editor-body{display:grid;grid-template-columns:minmax(320px,1fr) 250px;gap:22px;padding:22px}.image-editor-stage-shell{min-width:0}.image-editor-stage{position:relative;width:100%;height:min(58vh,520px);min-height:340px;overflow:hidden;background:linear-gradient(45deg,#dde4ec 25%,transparent 25%),linear-gradient(-45deg,#dde4ec 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dde4ec 75%),linear-gradient(-45deg,transparent 75%,#dde4ec 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0;border-radius:8px;border:1px solid #c8d2de;touch-action:none;user-select:none;cursor:grab}.image-editor-stage.dragging{cursor:grabbing}.image-editor-canvas{width:100%;height:100%;display:block}.image-editor-help{margin-top:10px;color:var(--muted);font-size:13px;font-weight:650;text-align:center}.image-editor-controls{display:flex;flex-direction:column;gap:16px}.image-editor-control{padding:14px;border:1px solid var(--border);border-radius:7px;background:#f8fafc}.image-editor-control label{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px;font-weight:750;font-size:14px}.image-editor-control input[type=range]{width:100%}.image-editor-button-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.image-editor-button-grid button,.image-editor-reset{padding:11px 10px;border-radius:5px;background:#e5ebf2;color:#152238;font-weight:750}.image-editor-reset{width:100%}.image-editor-footer{display:flex;justify-content:flex-end;gap:11px;padding:16px 20px;border-top:1px solid var(--border);background:#f8fafc}.image-editor-cancel,.image-editor-apply{padding:12px 22px;border-radius:5px;font-weight:750}.image-editor-cancel{background:#e5eaf0;color:#172033}.image-editor-apply{background:#0d6efd;color:#fff}@media(max-width:760px){.image-editor-body{grid-template-columns:1fr}.image-editor-stage{height:430px;min-height:300px}}.web-profile-trigger{display:inline-flex;align-items:center;gap:10px;padding:5px 10px 5px 6px;border:1px solid var(--border);border-radius:999px;background:#fff;color:#1f2937;font-weight:700;cursor:pointer;box-shadow:0 1px 3px #0f172a0d}.web-profile-trigger:hover{background:#f4f8fc}.web-profile-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#e6edf5;border:1px solid #cbd5e1;display:block}.web-profile-avatar-fallback{width:38px;height:38px;border-radius:50%;background:#e6edf5;color:#718096;display:inline-flex;align-items:center;justify-content:center;font-size:21px}.web-profile-trigger-text{display:grid;line-height:1.05;text-align:left}.web-profile-trigger-name{font-size:13px;color:#182235;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.web-profile-trigger-role{margin-top:4px;font-size:11px;color:var(--muted);font-weight:650;text-transform:capitalize}.web-profile-gear{font-size:17px;color:#637083}.web-profile-card{margin:0 22px 18px;border:1px solid var(--border);border-radius:8px;background:#f8fafc;padding:18px}.web-profile-photo-row{display:grid;grid-template-columns:150px 1fr;gap:22px;align-items:center}.web-profile-photo{width:138px;height:138px;border-radius:50%;object-fit:cover;background:#e6edf5;border:4px solid #fff;box-shadow:0 3px 12px #0f172a24}.web-profile-photo-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.web-profile-photo-actions label,.web-profile-photo-actions button{padding:9px 13px;border-radius:5px;font-weight:700;cursor:pointer}.web-profile-photo-actions label{background:#0d6efd;color:#fff}.web-profile-photo-actions button{background:#e2e8f0;color:#172033}.web-profile-readonly{background:#eef2f6!important;color:#6b7280}@media(max-width:680px){.web-profile-trigger-text{display:none}.web-profile-photo-row{grid-template-columns:1fr;text-align:center}.web-profile-photo{margin:auto}.web-profile-photo-actions{justify-content:center}}.initial-school-setup-page{min-height:100vh;display:none;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 15% 15%,rgba(19,136,245,.15),transparent 32%),radial-gradient(circle at 90% 80%,rgba(40,167,69,.1),transparent 26%),#eef3f8}.initial-school-setup-card{width:min(980px,96vw);max-height:94vh;overflow:auto;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 22px 70px #0f23412e}.initial-school-setup-header{padding:22px 26px;border-bottom:1px solid var(--border);background:#f8fafc}.initial-school-setup-header h1{margin:0;font-size:28px;color:#172033}.initial-school-setup-header p{margin:7px 0 0;color:var(--muted);line-height:1.5}.initial-school-setup-body{padding:24px 26px}.initial-school-setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.setup-image-box{border:1px solid var(--border);border-radius:7px;padding:14px;background:#f8fafc;margin-bottom:14px}.setup-image-preview{width:100%;height:180px;object-fit:contain;border:1px solid #d5dde6;border-radius:6px;background:#eef3f8;display:block;margin-bottom:10px}.setup-image-actions{display:flex;gap:9px;flex-wrap:wrap}.setup-image-actions label,.setup-image-actions button{padding:9px 13px;border-radius:5px;font-weight:700;cursor:pointer}.setup-image-actions label{background:#0d6efd;color:#fff}.setup-image-actions button{background:#e2e8f0;color:#172033}.setup-footer{padding:17px 26px;border-top:1px solid var(--border);background:#f8fafc;display:flex;justify-content:flex-end;gap:10px}.setup-save-btn{background:#28a745;color:#fff;padding:12px 22px;border-radius:5px;font-weight:800}.setup-logout-btn{background:#e2e8f0;color:#172033;padding:12px 18px;border-radius:5px;font-weight:750}.tenant-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#eaf4ff;color:#1768ad;font-size:12px;font-weight:800;margin-top:10px}@media(max-width:700px){.initial-school-setup-grid{grid-template-columns:1fr}}#loginPage.login-page{min-height:100vh;padding:24px;background:#eef2f6;display:flex;align-items:center;justify-content:center}#loginPage .login-card{width:430px;max-width:100%;min-height:0;margin:0;padding:32px 42px 38px;border:0;border-radius:7px;background:#fff;box-shadow:0 10px 30px #0f172a24}#loginPage .logo-badge{width:100%;margin:0 auto 22px;padding:0;background:transparent;border-radius:0;display:flex;justify-content:center}#loginPage .logo-badge img{width:100%;max-width:330px;height:auto;display:block;object-fit:contain;margin:0 auto}#loginPage .login-card h1{margin:0 0 12px;font-size:31.5px;line-height:1.08;font-weight:800;letter-spacing:-.5px;color:#1f2638}#loginPage .login-card p{margin:18px 0 10px;font-size:18px;line-height:1.35;color:#6f7d8f}#loginPage .field{width:100%;height:44px;margin:0 0 14px;padding:0 13px;border:1px solid #cbd5e1;border-radius:4px;background:#fff;font-size:16px;color:#243143}#loginPage .primary-btn{width:100%;min-height:55px;margin-top:0;border-radius:4px;background:#5269ae;box-shadow:none;font-size:16px;font-weight:700}#loginPage .primary-btn:hover{background:#435a9c}@media(max-width:520px){#loginPage.login-page{padding:14px}#loginPage .login-card{padding:26px 24px 30px}#loginPage .logo-badge img{max-width:300px}#loginPage .login-card h1{font-size:27px}}
