@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap";:root{font-family:DM Sans,sans-serif;color:#17213b;background:#f3f7fb;--ink: #17213b;--muted: #70809a;--line: #dce6f0;--paper: #ffffff;--cyan: #08b9e6;--cyan-dark: #008db9;--blue: #3d5bb0;--blue-dark: #263b83;--lavender: #eef0ff;--success: #168b68;--warning: #bd7114;line-height:1.5;font-weight:400}*{box-sizing:border-box}html,body,#root{margin:0;min-width:320px;min-height:100%}body{min-height:100vh;background:radial-gradient(circle at 100% 0%,#e5f8fc 0,transparent 34rem),#f3f7fb}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:var(--blue);text-decoration:none}a:hover{color:var(--cyan-dark)}h1,h2,h3,p{margin-top:0}h1,h2,h3,strong{font-family:Space Grotesk,sans-serif}h1{font-size:clamp(2rem,4vw,3.3rem);line-height:1.04;letter-spacing:-.02em;margin-bottom:.55rem}h2{font-size:1.35rem}.admin-shell{display:flex;min-height:100vh}.admin-sidebar{position:fixed;z-index:5;display:flex;flex-direction:column;width:260px;height:100vh;padding:1.35rem 1rem;color:#fff;background:linear-gradient(160deg,#263b83,#344f9e 62%,#2d9bc1);box-shadow:12px 0 36px #263b831f}.brand-lockup{display:flex;align-items:center;gap:.7rem;min-width:0}.brand-lockup img{width:47px;height:47px;object-fit:contain;border-radius:50%;background:#fff}.brand-lockup strong{display:block;font-size:1rem;letter-spacing:.04em}.brand-lockup span{display:block;color:#cbd8ff;font-size:.72rem}.admin-nav{display:grid;gap:.28rem;margin-top:2.4rem}.admin-nav a{display:flex;align-items:center;min-height:44px;padding:0 .9rem;color:#dce6ff;border-radius:9px;font-size:.91rem;transition:background .16s ease,color .16s ease,transform .16s ease}.admin-nav a:before{content:"";width:7px;height:7px;margin-right:.7rem;border:1px solid currentColor;border-radius:50%;opacity:.7}.admin-nav a:hover,.admin-nav a.active{color:#fff;background:#ffffff26;transform:translate(3px)}.admin-nav a.active:before{background:var(--cyan);border-color:var(--cyan);box-shadow:0 0 0 4px #08b9e626}.sidebar-footer{margin-top:auto}.user-chip{display:flex;align-items:center;gap:.6rem;padding:.75rem;border-top:1px solid rgba(255,255,255,.17)}.avatar{display:grid;flex:0 0 31px;width:31px;height:31px;place-items:center;color:var(--blue-dark);background:#fff;border-radius:50%;font-weight:700}.user-chip strong{display:block;max-width:170px;overflow:hidden;color:#fff;font:500 .75rem DM Sans,sans-serif;text-overflow:ellipsis;white-space:nowrap}.user-chip small{color:#bdccef;font-size:.7rem}.logout-button,.mobile-logout{width:100%;padding:.65rem .8rem;color:#fff;background:transparent;border:1px solid rgba(255,255,255,.28);border-radius:7px}.logout-button:hover,.mobile-logout:hover{background:#ffffff1f}.admin-main{flex:1;min-width:0;margin-left:260px}.mobile-topbar{display:none}.admin-page,.dashboard-page,.followup-page,.students-page,.catalog-page,.visits-page{width:min(100% - 4rem,1180px);margin:0 auto;padding:3.4rem 0}.admin-page{max-width:820px}.admin-page>p{color:var(--muted)}.admin-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:2.4rem 0}.admin-links a{display:flex;align-items:center;min-height:76px;padding:1rem 1.15rem;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #2a4a6f0d;font-weight:600}.admin-links a:after{content:"→";margin-left:auto;color:var(--cyan-dark);font-size:1.2rem}.admin-links a:hover{border-color:#a7dce9;box-shadow:0 12px 28px #2a4a6f17;transform:translateY(-2px)}.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem}.eyebrow{margin-bottom:.45rem;color:var(--cyan-dark);font-size:.72rem;font-weight:700;letter-spacing:.12em}.dashboard-header>a{padding:.65rem .9rem;color:var(--blue-dark);background:#fff;border:1px solid var(--line);border-radius:7px}.period-tabs{display:flex;gap:.35rem;margin:2rem 0 .85rem;border-bottom:1px solid var(--line)}.period-tabs button{padding:.75rem 1rem;color:var(--muted);background:transparent;border:0;border-bottom:2px solid transparent}.period-tabs button.selected{color:var(--blue-dark);border-color:var(--cyan);font-weight:700}.custom-period{display:flex;align-items:end;gap:.6rem;margin-bottom:1.6rem}.custom-period label,.catalog-form label{display:grid;gap:.3rem;color:var(--muted);font-size:.78rem;font-weight:600}.custom-period input,.custom-period button,.student-toolbar input,.student-toolbar select,.student-toolbar button,.catalog-form input,.catalog-form select,.catalog-form button{min-height:40px;padding:0 .75rem;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:6px}.custom-period button,.student-toolbar button,.catalog-form button,.auth-form button{color:#fff;background:var(--blue);border-color:var(--blue);font-weight:700}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:1.3rem 0 2rem}.metric-card{min-height:116px;padding:1rem;background:#fff;border:1px solid var(--line);border-radius:9px}.metric-card span{color:var(--muted);font-size:.78rem}.metric-card strong{display:block;margin-top:.9rem;color:var(--blue-dark);font-size:2rem}.dashboard-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.dashboard-columns article,.level-card,.comfort-section{padding:1.15rem;background:#fff;border:1px solid var(--line);border-radius:9px}.dashboard-columns table{font-size:.82rem}.student-toolbar{display:flex;flex-wrap:wrap;gap:.55rem;margin:1.5rem 0}.student-toolbar input{flex:1 1 220px}table{width:100%;overflow:hidden;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--line);border-radius:9px}th,td{padding:.82rem .9rem;text-align:left;border-bottom:1px solid #edf1f5}th{color:var(--muted);background:#f8fafc;font-size:.72rem;letter-spacing:.04em;text-transform:uppercase}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdff}.catalog-form{display:grid;grid-template-columns:2fr 2fr 1fr 1fr 1fr auto;gap:.55rem;align-items:end;margin:1.5rem 0}.settings-page{width:min(100% - 2rem,760px);padding:2rem 0;margin:0 auto}.orders-admin-page{width:min(100% - 2rem,1000px);padding:2rem 0;margin:0 auto}.orders-admin-page>header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.orders-admin-page h1{margin:0}.order-settings-link{padding:.55rem .75rem;color:var(--blue);border:1px solid var(--line);border-radius:6px;font-weight:700}.orders-admin-list{display:grid;gap:1rem;margin-top:1.5rem}.admin-order{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.admin-order>header,.admin-order>footer{display:flex;justify-content:space-between;gap:1rem;padding:1rem;background:#f8fbfd}.admin-order>header strong,.admin-order>header span{display:block}.admin-order>header span{color:var(--muted);font-size:.84rem}.order-badges{display:flex;align-items:flex-start;gap:.45rem}.order-badges>span{padding:.2rem .45rem;color:var(--blue);background:#e6f4f8;border-radius:4px;font-weight:700}.order-badges .late-badge{color:#7a4b00;background:#fff1ce}.admin-order dl{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin:0;padding:1rem}.admin-order dt{color:var(--muted);font-size:.75rem}.admin-order dd{margin:.2rem 0 0;font-weight:600}.admin-order ul{margin:0;padding:0 1rem;list-style:none}.admin-order li{display:flex;justify-content:space-between;gap:1rem;padding:.6rem 0;border-top:1px solid var(--line)}.admin-order>footer{justify-content:flex-end}.settings-page>p{color:var(--muted)}.settings-form{display:grid;gap:1.2rem;max-width:560px;margin-top:1.5rem}.settings-form fieldset{display:grid;gap:.75rem;padding:1rem;border:1px solid var(--line);border-radius:8px}.settings-form fieldset label{display:flex;gap:.55rem;align-items:center}.form-success{color:var(--success);font-weight:600}.catalog-form h2{grid-column:1 / -1;margin-bottom:.2rem}.catalog-toggle{display:inline-flex;align-items:center;gap:.45rem;margin-bottom:1rem;color:var(--muted);font-size:.84rem}.auth-page{display:grid;min-height:100vh;place-items:center;padding:1.5rem;background:radial-gradient(circle at 15% 10%,#cdf5fb 0,transparent 28rem),linear-gradient(135deg,#f8fdff,#eef0ff)}.auth-form{display:grid;width:min(100%,430px);gap:1rem;padding:2rem;background:#ffffffeb;border:1px solid #d8e7f0;border-radius:14px;box-shadow:0 20px 60px #28497c1f}.auth-form:before{content:"";width:72px;height:72px;margin:-.6rem auto 0;background:url(/assets/logo-rond-makhome-D31rrp1Y.png) center / contain no-repeat}.auth-form h1{text-align:center;font-size:2rem}.auth-form label{display:grid;gap:.35rem;color:var(--ink);font-size:.82rem;font-weight:700}.auth-form input{min-height:44px;padding:0 .8rem;border:1px solid var(--line);border-radius:7px;outline:0}.auth-form input:focus{border-color:var(--cyan);box-shadow:0 0 0 3px #08b9e621}.auth-form button{min-height:45px;border-radius:7px}.order-page{width:min(100% - 2rem,760px);margin:0 auto;padding:2rem 0 7rem}.order-page header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.product-grid{display:grid;gap:.8rem}.product-card,.cart-list li{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;background:#fff;border:1px solid var(--line);border-radius:9px}.product-card button,.cart-bar button,.order-page>button,.comfort-section button,.scan-result button{padding:.65rem .85rem;color:#fff;background:var(--blue);border:0;border-radius:6px;font-weight:700}.product-card h3{margin-bottom:.25rem}.product-card p{margin-bottom:.3rem;color:var(--muted);font-size:.84rem}.product-card label{display:grid;gap:.25rem;margin-top:.5rem;color:var(--muted);font-size:.78rem}.product-card select{min-height:34px;padding:0 .5rem;border:1px solid var(--line);border-radius:5px}.cart-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem max(1rem,calc((100% - 760px)/2));color:#fff;background:var(--blue-dark);box-shadow:0 -8px 28px #263b8329}.cart-list{display:grid;gap:.55rem;padding:0;list-style:none}.level-card{max-width:420px;margin:1rem 0 1.5rem}.points-total{display:block;color:var(--cyan-dark);font-size:2.6rem}.level-card progress{width:100%;accent-color:var(--cyan)}.qr-page{display:grid;min-height:100vh;place-items:center;padding:1rem}.student-card{width:min(100%,360px);padding:1.6rem;text-align:center;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 40px #27476f17}.student-card img{display:block;width:min(100%,250px);margin:1.2rem auto}.scanner-page{width:min(100% - 2rem,540px);margin:auto;padding:2rem 0;text-align:center}#makhome-qr-reader{width:min(100%,480px);margin:1rem auto;overflow:hidden;border:1px solid var(--line);border-radius:12px}.scan-result{padding:2rem 1rem;background:#fff;border:1px solid var(--line);border-radius:12px}.scan-result img{width:7rem;height:7rem;object-fit:cover;border-radius:50%}@media (max-width: 900px){.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-columns{grid-template-columns:1fr}.catalog-form{grid-template-columns:repeat(2,1fr)}}@media (max-width: 680px){.admin-order dl{grid-template-columns:repeat(2,1fr)}.admin-order>header{flex-direction:column}}@media (max-width: 680px){.admin-sidebar{display:none}.admin-main{margin-left:0;padding-bottom:1rem}.mobile-topbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#fff;border-bottom:1px solid var(--line)}.mobile-topbar .brand-lockup img{width:35px;height:35px}.mobile-topbar .brand-lockup strong{color:var(--blue-dark)}.mobile-logout{width:auto;color:var(--blue-dark);border-color:var(--line)}.admin-page,.dashboard-page,.followup-page,.students-page,.catalog-page,.visits-page{width:min(100% - 2rem,1180px);padding:2rem 0}.admin-links{grid-template-columns:1fr;margin:1.5rem 0}.dashboard-header{flex-direction:column}.period-tabs{overflow-x:auto}.period-tabs button{flex:0 0 auto}.custom-period{align-items:stretch;flex-direction:column}.custom-period label,.custom-period input,.custom-period button{width:100%}.catalog-form{grid-template-columns:1fr}.catalog-form h2{grid-column:auto}.student-toolbar>*{flex:1 1 100%}.student-toolbar input{flex-basis:100%}table{display:block;overflow-x:auto;white-space:nowrap}.order-page header{align-items:flex-start;flex-direction:column}.cart-bar{align-items:stretch;flex-direction:column}}
