:root{--blue:#0878ea;--navy:#103467;--muted:#758399;--line:#e9eef6;--bg:#f5f8fd;--green:#11aa80;--shadow:0 4px 24px #254c7710}*{box-sizing:border-box}body{margin:0;color:var(--navy);font:14px/1.6 'Segoe UI',Arial,sans-serif;background:var(--bg)}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--blue);text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #69bbff;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-.7px}h2{font-size:18px;letter-spacing:-.3px}h3{font-size:14px}small,.muted{color:var(--muted)}small{font-size:12px}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{width:248px;background:white;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);padding:35px 23px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;line-height:1.3}.brand img{width:49px;height:49px}.brand strong{font-size:17px;letter-spacing:1px}.brand small{display:block;font-size:10px;letter-spacing:.3px;margin-top:4px}.school{margin:28px 0 23px;border-bottom:1px solid var(--line);padding-bottom:23px;font-size:12px;color:#64768f}.school strong{display:block;color:var(--navy);font-size:13px}.nav-label{font-size:10px;color:#9ba8ba;font-weight:700;letter-spacing:1.8px;margin:0 14px 10px}.nav-item{display:flex;align-items:center;gap:13px;padding:12px 15px;margin:3px 0;border-radius:10px;color:#6a7a92;font-weight:500}.nav-item.active{color:var(--blue);background:#eaf4ff;font-weight:650}.nav-item.active:after{content:'';width:5px;height:5px;border-radius:50%;background:var(--blue);margin-left:auto}.nav-item:hover{background:#f1f7ff}.sidebar-bottom{margin-top:auto}.sidebar-quote{background:#f0f7ff;text-align:center;padding:19px 10px;border-radius:12px;font-size:11px;font-style:italic;color:#4071ac;margin:20px 0}.topbar{height:83px;margin-left:248px;background:#ffffffd9;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 43px}.breadcrumbs{font-size:12px;color:#8a98aa}.breadcrumbs b{color:#355074;margin-left:12px}.top-actions{display:flex;align-items:center;gap:21px}.circle-button{border:1px solid var(--line);background:white;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;position:relative}.dot{position:absolute;right:8px;top:8px;width:6px;height:6px;border:1px solid white;border-radius:50%;background:#f69c3d}.avatar{height:44px;width:44px;background:#deedff;color:#287ad4;border-radius:13px;display:grid;place-items:center;font-weight:700;font-size:16px;flex-shrink:0}.top-person{display:flex;gap:10px;align-items:center;font-size:12px;line-height:1.45}.top-person small{display:block;font-size:10px}.content{max-width:1250px;margin:0 auto;padding:34px 43px 28px}.main{margin-left:248px}.greeting{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.greeting p{color:var(--muted);font-size:13px;margin-top:5px}.eyebrow{color:#6d88aa;font-size:11px;letter-spacing:1.4px;font-weight:600;margin-bottom:5px}.date-chip{font-size:12px;background:white;border:1px solid var(--line);padding:9px 15px;border-radius:8px;color:#7b8ba1}.columns{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(290px,1fr);gap:23px}.card{background:white;border:1px solid #edf1f7;border-radius:15px;box-shadow:var(--shadow);padding:23px;margin-bottom:22px}.student-card{display:flex;gap:16px;align-items:center;padding:20px 23px}.student-avatar{width:61px;height:67px;background:linear-gradient(145deg,#e4f1ff,#c8e0f7);border-radius:12px;display:grid;place-items:center;font-size:29px}.student-info{flex:1}.student-info strong{font-size:15px}.student-info small{display:block;margin-top:3px}.student-tag{background:#eef6ff;padding:3px 8px;border-radius:5px;color:#4e80b9;font-size:10px;margin-left:6px}.select-student{border:0;background:#eaf4ff;color:var(--blue);font-size:11px;border-radius:7px;padding:7px;max-width:125px}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:24px 0 26px;text-align:center}.quick-actions a{color:var(--navy);font-size:12px}.quick-icon{width:49px;height:49px;margin:0 auto 8px;border-radius:14px;background:linear-gradient(145deg,#3997ff,#0878e8);color:white;display:grid;place-items:center;box-shadow:0 6px 12px #1984ee21}.quick-actions a:nth-child(1) .quick-icon,.quick-actions a:nth-child(4) .quick-icon{background:linear-gradient(145deg,#20c2dc,#0298c2)}.quote-banner{border:1px solid #d8eaff;border-radius:14px;background:linear-gradient(110deg,#e2f1ff,#eff9ff);min-height:118px;padding:24px;position:relative;overflow:hidden;margin-bottom:25px}.quote-banner p{font-family:Georgia,serif;font-style:italic;line-height:1.8;font-size:14px;position:relative;z-index:1;max-width:75%}.quote-banner small{color:#7297bd;font-size:10px}.mosque{position:absolute;right:18px;bottom:-4px;width:126px;height:106px;color:#93c5d8;opacity:.8}.section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}.section-title a{font-size:11px;font-weight:600}.bill-row{display:flex;align-items:center;gap:13px;padding:17px 0;border-top:1px solid var(--line)}.bill-row:first-child{border-top:0;padding-top:0}.bill-row:last-child{padding-bottom:0}.file-icon{width:42px;height:46px;display:grid;place-items:center;border-radius:11px;background:#eaf4ff;color:#2088ef;flex-shrink:0}.file-icon.orange{background:#fff2e2;color:#ff9a20}.row-info{flex:1;min-width:0}.row-info strong{display:block;font-size:12px}.row-info b{font-size:14px}.row-info small{display:block;font-size:10px;margin-top:2px}.badge{padding:4px 10px;border-radius:20px;font-size:9px;white-space:nowrap;background:#fff0ee;color:#ee6a67;font-weight:600}.badge.green{background:#dcf9e9;color:#1aa471}.badge.amber{background:#fff3dc;color:#bd882e}.balance{background:linear-gradient(120deg,#0873df,#188ef2);color:white;border:0;position:relative;overflow:hidden;padding:24px}.balance:after{content:'';position:absolute;width:220px;height:220px;border:35px solid #ffffff0c;border-radius:50%;right:-95px;top:-90px;pointer-events:none}.balance small{color:#c6e3ff}.balance .section-title{margin-bottom:16px}.balance h1{font-size:30px;margin:2px 0 3px}.balance-footer{border-top:1px solid #ffffff30;margin-top:23px;padding-top:17px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#cee6ff}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--blue);color:white;border:1px solid var(--blue);border-radius:8px;padding:11px 19px;font-size:12px;font-weight:600;min-height:40px}.btn:hover{filter:brightness(.96)}.btn:disabled{opacity:.55;cursor:wait}.btn.white{background:white;color:var(--blue);border-color:white}.btn.outline{color:var(--blue);background:white;border-color:#b8d8ff}.btn.small{padding:5px 12px;font-size:10px;min-height:29px}.btn.full{width:100%}.summary-item{display:flex;justify-content:space-between;padding:11px 0;font-size:12px}.summary-item+.summary-item{border-top:1px solid var(--line)}.summary-item span{color:var(--muted)}.notice{padding:15px;border-radius:10px;background:#f2f8ff;margin-top:14px;font-size:10px;color:#6681a4;display:flex;gap:9px}.news-date{font-size:10px;color:#8ca0b6;display:block;margin:9px 0 5px}.news h3{font-size:13px}.news p{font-size:11px;color:var(--muted);margin-top:6px}.footer{display:flex;justify-content:space-between;font-size:10px;color:#98a6b8;margin-top:15px}.footer span:last-child{display:flex;align-items:center;gap:5px}.footer .icon{width:12px;height:12px}.tabs{display:flex;gap:5px;background:#edf2f8;padding:4px;border-radius:10px;margin-bottom:23px;width:fit-content}.tabs button{border:0;background:transparent;padding:9px 18px;border-radius:8px;font-size:12px;color:#78889d}.tabs button.active{background:var(--blue);color:white}.page-narrow{max-width:730px;margin:auto}.back-title{display:flex;gap:13px;align-items:center;margin-bottom:23px}.back-title a{display:flex}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:19px;border-top:1px solid var(--line);padding-top:20px}.detail-grid small{display:block}.detail-grid b{font-size:13px}.field{display:block;margin:17px 0}.field span{display:block;font-size:12px;margin-bottom:7px;font-weight:600}.field input,.field select{width:100%;border:1px solid #dbe4f0;background:white;color:var(--navy);border-radius:8px;padding:12px 13px;outline:none}.field input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #0878ea10}.method{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:10px;margin:9px 0;cursor:pointer}.method:has(input:checked){border-color:#79baff;background:#f4faff}.method input{margin-left:auto;accent-color:var(--blue)}.method strong{font-size:12px}.method small{display:block;font-size:10px}.method-logo{color:var(--blue);font-weight:800;min-width:42px;font-size:13px}.empty{padding:35px 15px;text-align:center;color:#8a99ac}.success-mark{margin:10px auto 22px;width:77px;height:77px;background:#13ac84;border:9px solid #d6f7e9;border-radius:50%;display:grid;place-items:center;color:white;font-size:38px}.center{text-align:center}.demo-bar{font-size:11px;color:#8c6e22;background:#fff7df;padding:8px 15px;text-align:center}.demo-bar button{border:0;background:transparent;text-decoration:underline;color:inherit;font-size:11px}.mobile-header,.bottom-nav,.menu-toggle{display:none}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#14385d;color:white;padding:12px 22px;border-radius:10px;z-index:100;font-size:13px;max-width:90%;box-shadow:0 5px 30px #16335030;display:none}#toast.visible{display:block}dialog{border:0;border-radius:18px;padding:28px;width:min(420px,90vw);color:var(--navy);box-shadow:0 25px 100px #183d6240}dialog::backdrop{background:#102c5b66;backdrop-filter:blur(4px)}.dialog-actions{display:flex;gap:10px;margin-top:20px}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-art{background:linear-gradient(150deg,#094780,#087ce7);padding:70px;color:white;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-art:after{content:'';position:absolute;width:600px;height:600px;border:80px solid #ffffff08;border-radius:50%;bottom:-320px;right:-180px}.login-art img{width:85px;margin-bottom:32px}.login-art h1{font-size:42px;line-height:1.25;max-width:440px}.login-art p{margin-top:25px;color:#c5e1fc;max-width:340px}.login-art small{color:#d8eaff;margin-top:60px}.login-panel{align-self:center;width:100%;max-width:460px;padding:45px;margin:auto}.login-panel .brand{margin-bottom:43px}.login-panel h1{font-size:23px}.login-panel p{font-size:12px;color:var(--muted);margin:8px 0 24px}.login-panel .btn{margin-top:13px}.login-help{font-size:11px;text-align:center;margin-top:24px;color:#8592a7}.loading,.offline{padding:70px 25px;text-align:center;max-width:500px;margin:auto}.offline p{margin:20px 0}.profile-line{display:flex;gap:14px;padding:12px 0}.profile-line small{display:block}.profile-line b{font-size:12px}.plain-button{border:0;background:none;padding:0;display:flex;align-items:center;gap:10px}.history-filters{display:flex;gap:10px;margin-bottom:20px}.history-filters select{border:1px solid var(--line);border-radius:8px;padding:9px;background:white;color:var(--navy)}
@media(min-width:1450px){.content{padding-top:45px}.columns{gap:28px}}
@media(max-width:1100px){.sidebar{width:214px;padding:30px 17px}.main,.topbar{margin-left:214px}.content{padding:28px 24px}.topbar{padding:0 24px}.columns{grid-template-columns:1.4fr 1fr;gap:18px}.card{padding:18px}.student-card{flex-wrap:wrap}.select-student{margin-left:auto}.date-chip{display:none}}
@media(max-width:760px){body{background:linear-gradient(150deg,#eaf5ff 0,#fff 370px)}.sidebar{transform:translateX(-100%);transition:transform .2s;width:265px}.sidebar.open{transform:translateX(0);box-shadow:20px 0 100px #12356355}.main{margin-left:0}.topbar{display:none}.content{padding:21px 19px 95px;max-width:500px}.mobile-header{display:flex;justify-content:space-between;align-items:center;padding:15px 20px 0;max-width:500px;margin:auto}.mobile-header .brand img{width:31px;height:31px}.mobile-header .brand strong{font-size:12px}.mobile-header .brand small{font-size:8px}.menu-toggle{display:grid;place-items:center;background:transparent;border:0;padding:5px}.mobile-header-right{display:flex;align-items:center;gap:12px}.columns{display:flex;flex-direction:column;gap:0}.greeting{margin-bottom:20px}.greeting h1{font-size:22px}.greeting p{font-size:12px;max-width:290px}.eyebrow{font-size:10px}.card{padding:18px;border-radius:14px;margin-bottom:18px}.student-card{flex-wrap:nowrap;padding:16px;gap:12px}.student-info strong{font-size:13px}.student-info small{font-size:10px}.student-avatar{width:49px;height:57px;font-size:24px}.select-student{max-width:83px;font-size:9px}.quick-actions{margin:22px 0}.quick-actions a{font-size:10px}.quick-icon{width:45px;height:45px;border-radius:12px}.quote-banner{min-height:106px;padding:20px;margin-bottom:22px}.quote-banner p{font-size:12px}.quote-banner .mosque{width:100px}.section-title h2{font-size:15px}.balance h1{font-size:28px}.columns>.side-column{display:contents}.columns>.main-column{display:contents}.balance{order:0}.home-bills{order:1}.summary-card{order:2}.news{order:3}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:75px;padding-bottom:env(safe-area-inset-bottom,8px);background:#fffffff5;border-radius:18px 18px 0 0;box-shadow:0 -5px 24px #234a7510;z-index:20;justify-content:space-around;backdrop-filter:blur(12px)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#8793a5;font-size:9px;min-width:55px}.bottom-nav a.active{color:var(--blue);font-weight:700}.bottom-nav .icon{width:21px;height:21px}.footer{font-size:8px;gap:12px;order:5;margin-bottom:0}.badge{font-size:8px;padding:4px 8px}.bill-row{gap:10px}.bill-row .row-info strong{font-size:11px}.bill-row .row-info b{font-size:13px}.login-page{display:block;background:linear-gradient(160deg,#eaf4ff,white 40%)}.login-art{display:none}.login-panel{padding:50px 27px;min-height:100vh;max-width:420px}.login-panel .brand{display:flex;flex-direction:column;text-align:center;margin-bottom:45px}.login-panel .brand img{width:80px;height:80px}.login-panel .brand small{font-size:11px}.login-panel h1{font-size:22px}.back-title h1{font-size:19px}.tabs{width:100%}.tabs button{flex:1;padding:8px 10px;font-size:11px}#toast{bottom:87px}.demo-bar{font-size:9px}.detail-grid{gap:20px}.history-filters select{max-width:100%;font-size:12px}}

.profile-settings h2{margin-bottom:14px}.settings-list{display:flex;flex-direction:column}.settings-row{display:grid;grid-template-columns:20px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;min-height:54px;margin:0;padding:14px 4px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--navy);text-align:left;font:inherit;text-decoration:none}.settings-row:last-child{border-bottom:0}.settings-row>.icon{width:20px;height:20px;color:var(--muted)}.settings-row>.icon:last-child{width:16px;height:16px;justify-self:end}.settings-row:hover{background:#f5f9ff}.settings-logout,.settings-logout>.icon{color:#d44848}

.payment-panel p{margin:16px 0}.payment-ref{overflow-wrap:anywhere;font-size:12px}.payment-qr{text-align:center;margin:24px auto}.payment-qr img{width:260px;max-width:100%;height:auto;background:white;padding:12px}.payment-instructions summary{cursor:pointer;font-weight:600}.payment-instructions ol{padding-left:22px}.payment-instructions li{margin:12px 0;line-height:1.7}

.bill-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}.bill-actions .plain-button{font-size:11px}.cart-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.cart-summary p{font-size:22px;font-weight:700;margin-top:5px}.cart-item{padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:16px}.cart-item .section-title strong{overflow-wrap:anywhere}.cart-item .section-title button{flex-shrink:0}.cart-item .field{margin-bottom:0}

.method .method-logo{width:76px;min-width:76px;height:46px;padding:7px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;border-radius:8px}.method-logo img{max-width:100%;max-height:100%;object-fit:contain}.method-logo [hidden]{display:none}.method-info{flex:1;min-width:0}.method-info strong,.method-info small{display:block}.method:has(input:checked){border-color:var(--blue);background:#f0f7ff}.method input[type=radio]{accent-color:var(--blue);flex-shrink:0}

.bill-group summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}.bill-group summary::-webkit-details-marker{display:none}.bill-group summary:focus-visible{outline:2px solid var(--blue);outline-offset:6px}.bill-group summary strong{font-size:16px}.group-total{display:flex;align-items:center;gap:10px;text-align:right}.group-total .icon{width:18px;min-width:18px;transition:transform .2s}.bill-group[open] .group-total .icon{transform:rotate(90deg)}.bill-group-rows{margin-top:16px;border-top:1px solid var(--line)}.transaction-balance b{display:inline;font-size:inherit;color:var(--navy)}

.password-input{position:relative}.password-input input{padding-right:54px;width:100%}.password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:var(--navy);cursor:pointer}.password-toggle:focus-visible{outline:2px solid var(--blue)}.information-body{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:16px}

.password-input input{padding-right:54px}.field>label{display:block;font-size:12px;margin-bottom:7px;font-weight:600}

.information-image{display:block;width:100%;height:auto;border-radius:12px;margin-top:16px}.information-card a{display:block}

.login-home-link{display:inline-block;margin-bottom:24px;color:#0878ea;font-size:14px;text-decoration:none}.login-home-link:hover{text-decoration:underline}

.bill-actions .bill-method{font-size:11px;color:var(--muted,#728197);text-align:right;max-width:150px;overflow-wrap:anywhere;line-height:1.5}

.payment-history-scroll{overflow-x:auto}.payment-history-table{width:100%;border-collapse:collapse;font-size:13px}.payment-history-table th,.payment-history-table td{padding:12px 10px;text-align:left;border-bottom:1px solid #e8edf3}.payment-history-table th{color:var(--muted,#728197);font-weight:600}.payment-history-table td:nth-child(2),.payment-history-table td:nth-child(3){white-space:nowrap}.payment-history-table td:nth-child(3){font-weight:600}

/* Give bill details and installment history room to breathe. */
.bill-detail-page{max-width:900px}
.bill-detail-page>.card{padding:30px;margin-bottom:28px}
.bill-detail-page .detail-grid{gap:26px 40px;padding-top:26px;margin-top:24px}
.bill-detail-page .detail-grid small{margin-bottom:6px}
.bill-detail-page .detail-grid b{display:block;overflow-wrap:anywhere}
.payment-history-heading{margin-bottom:24px}
.payment-history-heading p{margin-top:6px;font-size:13px}
.payment-history-table{font-size:14px}
.payment-history-table th,.payment-history-table td{padding:18px 16px;vertical-align:middle}
.payment-history-table thead{background:#f5f8fc}
.payment-history-table thead th{font-size:12px;white-space:nowrap}
.payment-history-table th:first-child,.payment-history-table tbody td:first-child{width:54px;text-align:center}
.payment-history-table tbody td:nth-child(3),.payment-history-table thead th:nth-child(3){text-align:right;font-variant-numeric:tabular-nums}
.payment-history-table tbody td:last-child{line-height:1.6;overflow-wrap:anywhere}
.payment-history-table tfoot{background:#f0f7ff}
.payment-history-table tfoot th{width:auto;text-align:left;color:var(--navy)}
.payment-history-table tfoot td{font-weight:700;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.bill-detail-page #payment-form .field{margin:24px 0}
.bill-detail-page #payment-form .method{padding:16px;margin:12px 0}
@media(max-width:600px){
 .bill-detail-page>.card{padding:22px 18px;margin-bottom:24px}
 .bill-detail-page .detail-grid{gap:24px 18px}
 .payment-history-heading{margin-bottom:20px}
 .payment-history-table,.payment-history-table tbody,.payment-history-table tfoot{display:block;width:100%}
 .payment-history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .payment-history-table tbody tr{display:block;padding:12px 0;border-top:1px solid var(--line)}
 .payment-history-table tbody td{display:flex;justify-content:space-between;gap:18px;padding:8px 0;border:0;text-align:right;white-space:normal}
 .payment-history-table tbody td::before{content:attr(data-label);color:var(--muted);font-size:12px;font-weight:400;text-align:left;flex-shrink:0}
 .payment-history-table tbody td:first-child{width:auto;text-align:right;font-weight:600}
 .payment-history-table tbody td.empty{display:block;text-align:center;padding:24px 0}
 .payment-history-table tbody td.empty::before{display:none}
 .payment-history-table tfoot{margin-top:12px;padding:16px;border-radius:10px}
 .payment-history-table tfoot tr{display:flex;justify-content:space-between;align-items:center;gap:12px}
 .payment-history-table tfoot th,.payment-history-table tfoot td{display:block;border:0;padding:0}
 .payment-history-table tfoot td:last-child{display:none}
}
