.taf-portal{--taf-primary:#126b50;--taf-accent:#f3b63f;--taf-ink:#17372e;--taf-muted:#6b7d76;--taf-border:#dce7e2;--taf-soft:#f4f8f6;width:min(1240px,calc(100% - 48px));max-width:none;margin:32px auto 56px;color:var(--taf-ink);font:15px/1.55 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.taf-portal *,.taf-portal *:before,.taf-portal *:after{box-sizing:border-box}
.taf-portal-header{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:126px;margin-bottom:20px;padding:25px 30px;border-radius:22px;background:linear-gradient(120deg,#0b4938,var(--taf-primary) 70%,#17805f);box-shadow:0 18px 42px rgba(16,79,59,.16);color:#fff}
.taf-brand-lockup{display:flex;align-items:center;gap:18px;min-width:0}.taf-brand-logo{display:grid;place-items:center;flex:0 0 102px;width:102px;height:78px;overflow:hidden;border:1px solid rgba(255,255,255,.55);border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(5,42,30,.16)}.taf-brand-logo img{width:100%;height:100%;object-fit:contain}.taf-logo-fallback{background:rgba(255,255,255,.14);color:#fff;font-size:22px;font-weight:900}
.taf-portal-header small,.taf-section-head small,.taf-eyebrow,.taf-guardian-settings summary small{font-size:10px;font-weight:850;letter-spacing:.15em}.taf-portal-header h1{margin:3px 0 1px;color:#fff;font-size:clamp(25px,3vw,34px);line-height:1.15;letter-spacing:-.025em}.taf-portal-header p{margin:3px 0 0;color:rgba(255,255,255,.76);font-size:13px}
.taf-parent-menu{flex:0 0 auto;min-width:240px;padding:14px 17px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(4,44,32,.24);text-align:right}.taf-parent-menu>small{display:block;opacity:.72}.taf-parent-menu>span{display:block;margin:2px 0 6px;font-size:16px;font-weight:800}.taf-parent-menu a{display:inline-flex;align-items:center;gap:6px;color:#fff!important;font-size:12px;text-decoration:none!important;opacity:.88}.taf-parent-menu svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
.taf-portal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.taf-portal-stats>div,.taf-portal-card{border:1px solid var(--taf-border);background:#fff;box-shadow:0 9px 28px rgba(20,60,47,.055)}.taf-portal-stats>div{display:flex;align-items:center;gap:15px;min-height:102px;padding:18px 20px;border-radius:16px}.taf-stat-icon{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:13px;background:#e5f4ee;color:var(--taf-primary);font-size:13px;font-weight:900}.taf-stat-paid .taf-stat-icon{background:#e2f7e9;color:#197348;font-size:19px}.taf-stat-overdue .taf-stat-icon{background:#fff1d9;color:#9b6117;font-size:19px}.taf-portal-stats small{display:block;margin-bottom:2px;color:var(--taf-muted);font-size:12px}.taf-portal-stats strong{display:block;color:var(--taf-primary);font-size:clamp(22px,2.6vw,30px);line-height:1.18;letter-spacing:-.025em}
.taf-portal-card{margin-bottom:20px;padding:26px 28px;border-radius:18px}.taf-section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:18px}.taf-section-head small{color:var(--taf-primary)}.taf-section-head h2{margin:3px 0 0;color:var(--taf-ink);font-size:22px}.taf-section-head>p{max-width:390px;margin:0;color:var(--taf-muted);font-size:12px;text-align:right}
.taf-family-payment{overflow:hidden;padding:0;border-top:5px solid var(--taf-accent)}.taf-family-payment-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:23px 26px 18px}.taf-family-payment-head small{color:var(--taf-primary);font-size:10px;font-weight:850;letter-spacing:.15em}.taf-family-payment-head h2{margin:3px 0 1px;font-size:22px}.taf-family-payment-head p{margin:0;color:var(--taf-muted);font-size:13px}.taf-family-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:13px;background:#e7f4ef;color:var(--taf-primary)}.taf-family-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.taf-family-invoices{border-top:1px solid var(--taf-border)}.taf-family-invoice{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:13px;margin:0;padding:15px 26px;border-bottom:1px solid var(--taf-border);cursor:pointer}.taf-family-invoice:hover{background:#f8fbf9}.taf-family-invoice input{position:absolute;opacity:0;pointer-events:none}.taf-check-box{display:grid;place-items:center;width:20px;height:20px;border:2px solid #b9cdc4;border-radius:6px;background:#fff}.taf-family-invoice input:checked+.taf-check-box{border-color:var(--taf-primary);background:var(--taf-primary)}.taf-family-invoice input:checked+.taf-check-box:after{content:"✓";color:#fff;font-size:13px;font-weight:900}.taf-family-child strong,.taf-family-child small{display:block}.taf-family-child small{margin-top:2px;color:var(--taf-muted);font-size:12px}.taf-family-amount{white-space:nowrap}.taf-family-total{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 26px;background:#f5f9f7}.taf-family-total small{display:block;color:var(--taf-muted);font-size:9px;font-weight:850;letter-spacing:.1em}.taf-family-total strong{display:block;color:var(--taf-primary);font-size:24px}.taf-family-pay-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:11px 18px;border:0;border-radius:10px;background:var(--taf-primary);color:#fff;font-weight:850;cursor:pointer}.taf-family-pay-button:disabled{opacity:.45;cursor:not-allowed}.taf-family-pay-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.taf-responsive-table{width:100%;overflow-x:auto}.taf-portal-table{width:100%;border:0;border-collapse:collapse}.taf-portal-table th,.taf-portal-table td{padding:15px 12px;border:0;border-bottom:1px solid var(--taf-border);text-align:left;vertical-align:middle}.taf-portal-table th{color:var(--taf-muted);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}.taf-portal-table th:last-child,.taf-portal-table td:last-child{text-align:right}.taf-portal-table tbody tr:hover{background:#f8fbf9}.taf-portal-table tbody tr:last-child td{border-bottom:0}.taf-portal-table td{color:#29473e;font-size:14px}.taf-portal-table td small{display:block;margin-top:2px;color:var(--taf-muted);font-size:12px}.taf-portal-table tfoot th{padding-top:19px;border-top:2px solid var(--taf-primary);color:var(--taf-ink);font-size:16px;text-transform:none}
.taf-invoice-table th:nth-child(1){width:18%}.taf-invoice-table th:nth-child(2){width:27%}.taf-invoice-table th:nth-child(3){width:15%}.taf-invoice-table th:nth-child(4){width:14%}.taf-invoice-table th:nth-child(5){width:16%}.taf-payment-table th:nth-child(1){width:21%}.taf-payment-table th:nth-child(2){width:25%}.taf-payment-table th:nth-child(3){width:14%}.taf-payment-table th:nth-child(4){width:13%}
.taf-portal-badge{display:inline-block;padding:5px 10px;border-radius:999px;background:#edf1ef;color:#52615b;font-size:11px;font-weight:750;white-space:nowrap}.taf-portal-badge.paid{background:#daf5e6;color:#176746}.taf-portal-badge.unpaid{background:#e6eff8;color:#315e89}.taf-portal-badge.partial{background:#ece7f9;color:#5f46a4}.taf-portal-badge.overdue,.taf-portal-badge.failed,.taf-portal-badge.rejected{background:#fde5e2;color:#a62f27}.taf-portal-badge.pending{background:#fff0d4;color:#945810}.taf-portal-badge.cancelled{background:#eceeed;color:#69736f}
.taf-action-group{display:inline-flex;align-items:center;justify-content:flex-end;gap:7px}.taf-icon-button{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid #d5e5de;border-radius:10px;background:#edf6f2;color:var(--taf-primary)!important;text-decoration:none!important;transition:.15s}.taf-icon-button.pdf{border-color:#f0d3d0;background:#fff2f1;color:#ad3c34!important}.taf-icon-button:hover{transform:translateY(-1px);box-shadow:0 6px 15px rgba(20,60,47,.12)}.taf-icon-button svg,.taf-summary-icon svg,.taf-save-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.taf-guardian-settings{padding:0;overflow:hidden}.taf-guardian-settings summary{display:grid;grid-template-columns:46px minmax(0,1fr) 24px;align-items:center;gap:14px;padding:18px 22px;cursor:pointer;list-style:none}.taf-guardian-settings summary::-webkit-details-marker{display:none}.taf-summary-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#e7f4ef;color:var(--taf-primary)}.taf-guardian-settings summary small{display:block;color:var(--taf-primary)}.taf-guardian-settings summary strong{display:block;font-size:16px}.taf-guardian-settings summary em{display:block;margin-top:1px;color:var(--taf-muted);font-size:12px;font-style:normal}.taf-summary-arrow{color:var(--taf-muted);font-size:22px;transition:.2s}.taf-guardian-settings[open] .taf-summary-arrow{transform:rotate(180deg)}.taf-guardian-form{padding:22px;border-top:1px solid var(--taf-border);background:#fbfdfc}.taf-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.taf-guardian-form label,.taf-bank-form label{display:block;color:var(--taf-ink);font-size:13px;font-weight:700}.taf-guardian-form input,.taf-guardian-form select,.taf-bank-form input{display:block;width:100%;min-height:45px;margin-top:6px;padding:10px 12px;border:1px solid #cadbd4;border-radius:9px;background:#fff;color:var(--taf-ink)}.taf-choice-label{max-width:620px;margin-top:16px}.taf-save-button{display:inline-flex;align-items:center;gap:8px;min-height:43px;margin-top:17px;padding:10px 16px;border:0;border-radius:9px;background:var(--taf-primary);color:#fff;font-weight:800;cursor:pointer}
.taf-card-head,.taf-detail-meta{display:flex;align-items:center;justify-content:space-between;gap:15px}.taf-card-head{margin-bottom:18px}.taf-card-head small{color:var(--taf-muted)}.taf-card-head h2{margin:3px 0 0;font-size:27px}.taf-invoice-detail{padding:28px 30px;border-top:5px solid var(--taf-primary)}.taf-detail-meta{justify-content:flex-start;margin-bottom:18px}.taf-detail-meta span{min-width:190px;padding:13px 15px;border:1px solid #e3ece8;border-radius:10px;background:var(--taf-soft)}.taf-detail-meta small{display:block;color:var(--taf-muted)}.taf-portal-note{margin-top:17px;padding:13px;border-radius:8px;background:var(--taf-soft)}.taf-back{display:inline-flex;margin:2px 0 8px;color:var(--taf-primary)!important;font-weight:700;text-decoration:none!important}
.taf-payment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.taf-payment-option{position:relative;overflow:hidden;padding:25px;border-top:5px solid var(--taf-primary)}.taf-payment-option:last-child{border-top-color:#294239}.taf-payment-option h3{margin:14px 0 6px;font-size:21px}.taf-payment-option>p{margin:0;color:var(--taf-muted);font-size:14px}.taf-payment-icon{display:inline-grid;place-items:center;min-width:58px;height:41px;padding:0 10px;border-radius:10px;background:var(--taf-primary);color:#fff;font-size:12px;font-weight:900}.taf-payment-icon.bank{background:#294239}.taf-bank-details{margin:14px 0;padding:16px;border:1px solid #dfe9e4;border-radius:11px;background:var(--taf-soft)}.taf-bank-details span,.taf-bank-details small,.taf-bank-form>small{display:block;color:var(--taf-muted)}.taf-bank-details strong{display:block;margin:3px 0;font-size:23px}.taf-bank-form label{margin:11px 0}.taf-primary-button,.taf-secondary-button{width:100%;min-height:47px;margin-top:14px;padding:12px 18px;border:0;border-radius:10px;color:#fff;font-weight:800;cursor:pointer}.taf-primary-button{background:var(--taf-primary)}.taf-secondary-button{background:#294239}.taf-primary-button:disabled,.taf-secondary-button:disabled{opacity:.45;cursor:not-allowed}.taf-mini-warning{margin-top:15px;padding:12px;border-radius:8px;background:#fff2d8;color:#825117}
.taf-portal-notice{margin-bottom:18px;padding:14px 17px;border:1px solid transparent;border-radius:11px;font-weight:550}.taf-portal-notice.success{border-color:#b8e5cc;background:#e6f7ed;color:#175d40}.taf-portal-notice.error{border-color:#efc2bd;background:#fff0ee;color:#962f27}.taf-portal-notice.info{border-color:#c8dcf0;background:#edf5fc;color:#315e84}.taf-portal-empty{padding:32px;color:var(--taf-muted);text-align:center}
.taf-login{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);min-height:590px;overflow:hidden;border:1px solid #d9e5df;border-radius:24px;background:#fff;box-shadow:0 24px 65px rgba(18,63,48,.15)}.taf-login-brand{position:relative;display:flex;flex-direction:column;justify-content:center;overflow:hidden;padding:58px;background:linear-gradient(145deg,#0b4c38,var(--taf-primary) 60%,#16805e);color:#fff}.taf-login-brand .taf-brand-logo{flex-basis:124px;width:124px;height:96px}.taf-login-brand .taf-brand-lockup span{font-size:10px;font-weight:900;letter-spacing:.14em}.taf-login-brand h2{margin:4px 0 0;color:#fff;font-size:clamp(30px,4vw,43px)}.taf-login-brand>p{margin:28px 0 0;font-size:17px;line-height:1.7;opacity:.88}.taf-login-points{display:grid;gap:9px;margin-top:28px;font-size:14px;font-weight:650}.taf-login-form{display:flex;flex-direction:column;justify-content:center;padding:58px}.taf-eyebrow{color:var(--taf-primary)}.taf-login-form h3{margin:6px 0 4px;color:var(--taf-ink);font-size:29px}.taf-login-intro{margin:0 0 24px;color:var(--taf-muted)}.taf-login-form label{color:var(--taf-ink);font-weight:700}.taf-login-form input[type=text],.taf-login-form input[type=password]{width:100%;min-height:48px;margin:6px 0 14px;padding:11px;border:1px solid #cadbd4;border-radius:10px;background:#fbfcfb}.taf-login-form input[type=submit]{width:100%;min-height:48px;border:0;border-radius:10px;background:var(--taf-primary);color:#fff;font-weight:800;cursor:pointer}.taf-login-form a{color:var(--taf-primary)}.taf-login-help{text-align:center}
@media(max-width:820px){.taf-portal{width:min(100% - 24px,1240px);margin:12px auto 32px}.taf-portal-header{align-items:flex-start;padding:22px}.taf-brand-logo{flex-basis:80px;width:80px;height:64px}.taf-parent-menu{min-width:190px}.taf-portal-stats{grid-template-columns:1fr 1fr}.taf-stat-overdue{grid-column:span 2}.taf-payment-options,.taf-login{grid-template-columns:1fr}.taf-login{min-height:0}.taf-login-brand,.taf-login-form{padding:36px 30px}.taf-responsive-table{overflow:visible}.taf-responsive-table thead{display:none}.taf-responsive-table table,.taf-responsive-table tbody,.taf-responsive-table tr,.taf-responsive-table td{display:block;width:100%}.taf-responsive-table tr{margin-bottom:12px;padding:13px 15px;border:1px solid var(--taf-border);border-radius:11px}.taf-responsive-table td{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 0;border:0;text-align:right!important}.taf-responsive-table td:before{content:attr(data-label);color:var(--taf-muted);font-size:11px;font-weight:750;text-align:left;text-transform:uppercase}.taf-responsive-table td small{text-align:right}.taf-responsive-table .taf-action-group{margin-left:auto}}
@media(max-width:560px){.taf-portal-header{flex-direction:column}.taf-parent-menu{width:100%;text-align:left}.taf-portal-header h1{font-size:25px}.taf-portal-stats{grid-template-columns:1fr}.taf-stat-overdue{grid-column:auto}.taf-portal-card{padding:20px}.taf-section-head{align-items:flex-start;flex-direction:column;gap:5px}.taf-section-head>p{text-align:left}.taf-family-payment,.taf-guardian-settings{padding:0}.taf-family-payment-head{padding:19px}.taf-family-invoice{grid-template-columns:22px minmax(0,1fr);padding:14px 19px}.taf-family-amount{grid-column:2}.taf-family-total{align-items:stretch;flex-direction:column;padding:18px 19px}.taf-family-pay-button{width:100%}.taf-form-grid{grid-template-columns:1fr}.taf-guardian-settings summary{padding:16px}.taf-guardian-form{padding:18px}.taf-detail-meta{align-items:stretch;flex-direction:column}.taf-detail-meta span{width:100%}.taf-card-head{align-items:flex-start}.taf-invoice-detail{padding:20px}.taf-login-brand,.taf-login-form{padding:28px 21px}}

/* v1.0.18 full-width responsive portal */
.taf-portal {
	width: min(calc(100% - 56px), 1440px);
	max-width: 1440px;
	margin: 28px auto 56px;
}

/* v1.0.20 — TASKA AMILAH glass UI and fully responsive parent portal. */
.taf-portal{
	position:relative;left:50%;transform:translateX(-50%);
	width:min(1440px,calc(100vw - 64px));max-width:none;margin:32px 0 64px;
	font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
.taf-portal:before{content:"";position:fixed;z-index:-2;inset:0;background:radial-gradient(circle at 7% 8%,rgba(243,182,63,.18),transparent 28%),radial-gradient(circle at 92% 16%,rgba(44,178,190,.14),transparent 32%),linear-gradient(145deg,#f8fbf9 0%,#eaf5f0 58%,#fff9ec 100%)}
.taf-portal-header{border:1px solid rgba(255,255,255,.25);border-top:5px solid var(--taf-accent);border-radius:25px;background:linear-gradient(135deg,#064631,var(--taf-primary) 58%,#198562);box-shadow:0 22px 48px rgba(9,69,50,.16)}
.taf-portal-stats{gap:18px}.taf-portal-stats>div,.taf-portal-card{border:1px solid rgba(194,216,206,.78);background:rgba(255,255,255,.9);box-shadow:0 15px 38px rgba(13,67,49,.075);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.taf-portal-stats>div{min-height:105px;border-radius:20px}.taf-portal-card{border-radius:22px}
.taf-family-payment{border-top-color:var(--taf-accent)}.taf-family-invoice{min-height:80px;transition:background .18s ease}.taf-family-invoice:hover{background:#f0f8f4}.taf-family-child strong{font-size:15px;line-height:1.35}.taf-family-amount{color:var(--taf-primary);font-size:16px;font-weight:850}
.taf-family-total{background:linear-gradient(90deg,#f2f8f5,#fffaf0)}
.taf-primary-button,.taf-secondary-button,.taf-family-pay-button,.taf-save-button,.taf-login-form input[type=submit]{transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.taf-primary-button:hover,.taf-secondary-button:hover,.taf-family-pay-button:hover,.taf-save-button:hover,.taf-login-form input[type=submit]:hover{transform:translateY(-1px);box-shadow:0 11px 24px rgba(10,75,54,.2);filter:brightness(1.03)}
.taf-responsive-table{border-radius:14px}.taf-portal-table tbody tr{transition:background .16s ease}.taf-icon-button{border-radius:12px}

/* Login based on the supplied overlapping glass-card reference. */
.taf-login{
	isolation:isolate;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
	width:min(1180px,calc(100vw - 64px));min-height:680px;margin:clamp(24px,6vh,72px) 0;
	overflow:visible;border:1px solid rgba(255,255,255,.82);border-radius:34px;
	background:linear-gradient(125deg,rgba(255,255,255,.35),rgba(255,255,255,.72));
	box-shadow:0 32px 85px rgba(9,65,47,.18);backdrop-filter:blur(27px);-webkit-backdrop-filter:blur(27px)
}
.taf-login:after{content:"";position:absolute;z-index:-1;inset:0;border-radius:inherit;background:radial-gradient(circle at 16% 20%,rgba(243,182,63,.26),transparent 28%),radial-gradient(circle at 72% 22%,rgba(71,180,209,.2),transparent 36%)}
.taf-login-brand{margin:52px 0 52px 52px;padding:clamp(38px,5vw,68px);overflow:hidden;border:1px solid rgba(255,255,255,.24);border-radius:28px 0 0 28px;background:linear-gradient(145deg,rgba(5,71,51,.97),rgba(18,129,92,.91));box-shadow:0 24px 52px rgba(7,67,48,.23)}
.taf-login-brand:after{content:"";position:absolute;width:390px;height:390px;right:-185px;bottom:-220px;border-radius:50%;background:rgba(255,255,255,.08)}
.taf-login-brand .taf-brand-logo{width:132px;height:104px;flex-basis:132px;border-radius:21px}.taf-login-brand h2{font-size:clamp(34px,4.2vw,52px);line-height:1.03}
.taf-login-welcome{position:relative;z-index:1;margin-top:54px}.taf-login-welcome>span{font-size:10px;font-weight:900;letter-spacing:.18em;opacity:.72}.taf-login-welcome h3{margin:8px 0 9px;color:#fff;font-size:clamp(27px,3.3vw,40px);line-height:1.1}.taf-login-welcome p{max-width:430px;margin:0;color:rgba(255,255,255,.82);font-size:15px;line-height:1.65}
.taf-login-points{position:relative;z-index:1;margin-top:32px}
.taf-login-form{z-index:3;align-self:center;width:auto;margin:52px 52px 52px -28px;padding:clamp(38px,5vw,66px);border:1px solid rgba(255,255,255,.86);border-radius:28px;background:rgba(255,255,255,.78);box-shadow:0 23px 58px rgba(15,72,54,.2);backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px)}
.taf-login-form h3{margin-top:8px;font-size:clamp(31px,3vw,39px);letter-spacing:-.035em}.taf-login-intro{font-size:14px}
.taf-login-form input[type=text],.taf-login-form input[type=password]{min-height:56px;padding:13px 16px;border-color:rgba(157,190,177,.78);border-radius:15px;background:rgba(255,255,255,.8);font-size:15px;box-shadow:inset 0 1px 2px rgba(23,55,46,.03)}
.taf-login-form input[type=text]:focus,.taf-login-form input[type=password]:focus{border-color:var(--taf-primary);outline:3px solid rgba(18,107,80,.12)}
.taf-login-form input[type=submit]{min-height:55px;border-radius:15px;background:linear-gradient(100deg,var(--taf-primary),#1b8e68);box-shadow:0 9px 21px rgba(18,107,80,.21);font-size:15px}

@media(max-width:1024px){
	.taf-portal{width:min(960px,calc(100vw - 32px));margin:16px 0 42px}
	.taf-login{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);width:min(900px,calc(100vw - 32px));min-height:620px;margin:28px 0}
	.taf-login-brand{margin:34px 0 34px 34px;padding:39px 31px}.taf-login-form{margin:34px 34px 34px -20px;padding:42px 34px}
	.taf-login-brand .taf-brand-lockup{align-items:flex-start;flex-direction:column}.taf-login-welcome{margin-top:34px}
}
@media(max-width:760px){
	.taf-portal{width:calc(100vw - 24px);margin:12px 0 36px}
	.taf-login{display:flex;flex-direction:column;width:calc(100vw - 24px);min-height:0;margin:12px 0;border-radius:27px}
	.taf-login-brand{margin:12px 12px 0;padding:28px 24px 40px;border-radius:21px;background:linear-gradient(145deg,#074a36,var(--taf-primary))}
	.taf-login-brand .taf-brand-lockup{flex-direction:row;align-items:center}.taf-login-brand .taf-brand-logo{width:92px;height:72px;flex-basis:92px;border-radius:16px}.taf-login-brand h2{font-size:30px}
	.taf-login-welcome{margin-top:24px}.taf-login-welcome h3{font-size:27px}.taf-login-welcome p{font-size:13px}.taf-login-points{display:none}
	.taf-login-form{width:auto;margin:-22px 23px 23px;padding:30px 24px;border-radius:21px;background:rgba(255,255,255,.95)}
	.taf-portal-header{padding:22px}.taf-portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.taf-stat-overdue{grid-column:1/-1}
}
@media(max-width:560px){
	.taf-portal{width:calc(100vw - 16px);margin:8px 0 28px}.taf-login{width:calc(100vw - 16px);margin:8px 0;border-radius:22px}
	.taf-login-brand{margin:8px 8px 0;padding:24px 18px 36px}.taf-login-form{margin:-19px 15px 15px;padding:26px 18px}
	.taf-login-brand .taf-brand-lockup{gap:12px}.taf-login-brand .taf-brand-logo{width:78px;height:62px;flex-basis:78px}.taf-login-brand h2{font-size:25px}.taf-login-welcome h3{font-size:24px}
	.taf-portal-header{padding:20px 18px;border-radius:19px}.taf-parent-menu{min-width:0}.taf-portal-stats{grid-template-columns:1fr}.taf-stat-overdue{grid-column:auto}.taf-portal-card{padding:18px;border-radius:17px}.taf-family-invoice{grid-template-columns:22px minmax(0,1fr)}.taf-family-amount{grid-column:2}.taf-portal-stats>div{min-height:88px}
}

.taf-portal-header { width: 100%; }
.taf-portal-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.taf-portal-stats > div { min-height: 84px; padding: 15px 18px; }
.taf-portal-stats strong { white-space: nowrap; }
.taf-stat-balance .taf-stat-icon { display: none; }

.taf-invoice-table { table-layout: fixed; }
.taf-invoice-table th:nth-child(1){width:17%}
.taf-invoice-table th:nth-child(2){width:35%}
.taf-invoice-table th:nth-child(3){width:14%}
.taf-invoice-table th:nth-child(4){width:13%}
.taf-invoice-table th:nth-child(5){width:12%}
.taf-invoice-table th:nth-child(6){width:9%}
.taf-invoice-table td:nth-child(2){font-weight:700;overflow-wrap:anywhere}

.taf-login {
	width: min(calc(100% - 48px), 1500px);
	max-width: 1500px;
	min-height: calc(100vh - 56px);
	margin: 28px auto;
	grid-template-columns: minmax(440px, 46%) minmax(420px, 54%);
	border-radius: 26px;
}
.taf-login-brand { padding: clamp(44px,6vw,88px); }
.taf-login-brand .taf-brand-lockup { align-items: center; flex-wrap: nowrap; }
.taf-login-brand .taf-brand-lockup > div:last-child { min-width: 0; }
.taf-login-brand h2 { max-width: 100%; font-size: clamp(34px,4vw,58px); line-height: 1.06; overflow-wrap: normal; word-break: normal; }
.taf-login-form { width: min(100%, 650px); margin: auto; padding: clamp(44px,7vw,96px); }

@media(max-width:1024px){
	.taf-portal{width:calc(100% - 32px);margin:16px auto 40px}
	.taf-login{width:calc(100% - 32px);min-height:calc(100vh - 32px);margin:16px auto;grid-template-columns:minmax(330px,42%) minmax(390px,58%)}
	.taf-login-brand,.taf-login-form{padding:38px 32px}
	.taf-login-brand h2{font-size:clamp(30px,4.8vw,44px)}
	.taf-invoice-table th:nth-child(2){width:32%}
}

@media(max-width:820px){
	.taf-portal{width:calc(100% - 24px);margin:12px auto 32px}
	.taf-login{width:calc(100% - 24px);min-height:0;margin:12px auto;grid-template-columns:1fr}
	.taf-login-brand{min-height:300px;padding:38px 34px}
	.taf-login-brand>p{max-width:620px;margin-top:20px}
	.taf-login-points{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;font-size:12px}
	.taf-login-form{width:100%;padding:44px 34px}
	.taf-portal-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
	.taf-portal-stats>div{display:block;min-height:82px;padding:14px}
	.taf-portal-stats .taf-stat-icon{display:none}
	.taf-responsive-table tr{padding:16px}
	.taf-responsive-table td[data-label="Child"]{display:block;text-align:left!important;font-size:15px}
	.taf-responsive-table td[data-label="Child"]:before{display:block;margin-bottom:5px}
}

@media(max-width:560px){
	.taf-portal{width:calc(100% - 16px);margin:8px auto 24px}
	.taf-login{width:calc(100% - 16px);margin:8px auto;border-radius:18px}
	.taf-login-brand{min-height:0;padding:26px 22px}
	.taf-login-brand .taf-brand-logo{flex-basis:84px;width:84px;height:70px}
	.taf-login-brand h2{font-size:30px}
	.taf-login-brand>p{margin-top:16px;font-size:14px;line-height:1.55}
	.taf-login-points{display:none}
	.taf-login-form{padding:30px 22px 36px}
	.taf-portal-stats{grid-template-columns:1fr}
	.taf-portal-stats>div{min-height:70px}
	.taf-portal-stats strong{font-size:24px}
	.taf-portal-card{border-radius:14px}
}

/* Final cascade for v1.0.20: keep the new responsive composition above v1.0.18 rules. */
.taf-portal{position:relative;left:50%;transform:translateX(-50%);width:min(1440px,calc(100vw - 64px));max-width:none;margin:32px 0 64px}
.taf-login{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);width:min(1180px,calc(100vw - 64px));max-width:none;min-height:680px;margin:clamp(24px,6vh,72px) 0;overflow:visible;border-radius:34px}
.taf-login-brand{margin:52px 0 52px 52px;padding:clamp(38px,5vw,68px);border-radius:28px 0 0 28px}
.taf-login-form{z-index:3;align-self:center;width:auto;margin:52px 52px 52px -28px;padding:clamp(38px,5vw,66px);border-radius:28px}
.taf-login-brand>p{display:none}
.taf-portal-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.taf-portal-stats>div{min-height:105px;padding:18px 20px}
@media(max-width:1024px){
	.taf-portal{width:min(960px,calc(100vw - 32px));margin:16px 0 42px}
	.taf-login{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);width:min(900px,calc(100vw - 32px));min-height:620px;margin:28px 0}
	.taf-login-brand{margin:34px 0 34px 34px;padding:39px 31px}.taf-login-form{margin:34px 34px 34px -20px;padding:42px 34px}
}
@media(max-width:760px){
	.taf-portal{width:calc(100vw - 24px);margin:12px 0 36px}
	.taf-login{display:flex;width:calc(100vw - 24px);min-height:0;margin:12px 0;border-radius:27px}
	.taf-login-brand{min-height:0;margin:12px 12px 0;padding:28px 24px 40px;border-radius:21px}
	.taf-login-brand .taf-brand-lockup{flex-direction:row;align-items:center}.taf-login-brand .taf-brand-logo{width:92px;height:72px;flex-basis:92px}.taf-login-welcome{margin-top:24px}.taf-login-points{display:none}
	.taf-login-form{width:auto;margin:-22px 23px 23px;padding:30px 24px;border-radius:21px}
	.taf-portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.taf-stat-overdue{grid-column:1/-1}
}
@media(max-width:560px){
	.taf-portal{width:calc(100vw - 16px);margin:8px 0 28px}.taf-login{width:calc(100vw - 16px);margin:8px 0;border-radius:22px}
	.taf-login-brand{margin:8px 8px 0;padding:24px 18px 36px}.taf-login-form{margin:-19px 15px 15px;padding:26px 18px}
	.taf-login-brand .taf-brand-logo{width:78px;height:62px;flex-basis:78px}.taf-login-brand h2{font-size:25px}
	.taf-portal-stats{grid-template-columns:1fr}.taf-stat-overdue{grid-column:auto}.taf-portal-stats>div{min-height:88px;padding:16px 18px}
}


/* v1.0.33 centered Parent Portal visual refresh */
.taf-portal-stats > div{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.taf-portal-stats .taf-stat-icon{margin:0 0 8px}
.taf-section-head{text-align:center;justify-content:center}
.taf-section-head>div{width:100%;text-align:center}
.taf-section-head>p{width:100%;text-align:center}
.taf-portal-empty{text-align:center!important}
@media(max-width:820px){
  .taf-portal-header{display:flex;flex-direction:column;align-items:center;text-align:center;padding:28px 24px 34px}
  .taf-portal-header .taf-brand-lockup{flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}
  .taf-portal-header .taf-brand-lockup>div:last-child{text-align:center}
  .taf-portal-header .taf-brand-logo{margin:0 auto}
  .taf-parent-menu{width:100%;margin-top:22px;align-items:center;text-align:center;justify-content:center}
  .taf-parent-menu a{justify-content:center}
  .taf-portal-stats{grid-template-columns:1fr;gap:14px}
  .taf-portal-stats>div{min-height:124px;border-radius:22px;text-align:center}
  .taf-portal-stats small{font-size:16px}
  .taf-portal-stats strong{font-size:32px}
  .taf-section-head{display:block;text-align:center}
  .taf-section-head h2,.taf-section-head small,.taf-section-head p{text-align:center}
}


/* v1.0.35 desktop summary-card consistency */
@media(min-width:821px){
  .taf-portal-stats>div{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-height:118px!important;padding:18px 20px!important}
  .taf-portal-stats .taf-stat-icon{display:inline-flex!important;align-items:center;justify-content:center;width:34px;height:34px;margin:0 0 9px!important;border-radius:50%;background:#edf7f2;color:#126b50;font-size:13px;font-weight:900;line-height:1}
  .taf-portal-stats .taf-stat-paid .taf-stat-icon{background:#e9f7ef;color:#17724e}
  .taf-portal-stats .taf-stat-overdue .taf-stat-icon{background:#fff1ef;color:#c3453b}
  .taf-portal-stats small{display:block;margin:0 0 5px;line-height:1.25}
  .taf-portal-stats strong{display:block;line-height:1.15}
}

/* v1.0.39: preserve the approved mobile composition; compact tablet/desktop. */
.taf-stat-support,.taf-desktop-empty{display:none}
.taf-portal-badge.void{background:#edf0f2;color:#53616a}
@media(min-width:768px){
 .taf-portal:not(.taf-login){width:min(1320px,calc(100vw - 48px));margin:24px 0 48px}
 .taf-portal-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:24px 28px;text-align:left;border-radius:18px;gap:24px}
 .taf-portal-header .taf-brand-lockup{flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:16px}
 .taf-portal-header .taf-brand-lockup>div:last-child{text-align:left}
 .taf-portal-header .taf-brand-logo{width:78px;height:62px;flex-basis:78px;margin:0}
 .taf-portal-header h1{font-size:25px;margin:3px 0 5px}
 .taf-portal-header p{font-size:13px;margin:0}
 .taf-parent-menu{width:auto;margin:0 0 0 auto;align-items:flex-end;text-align:right;justify-content:center}
 .taf-parent-menu span{font-size:14px}.taf-parent-menu a{justify-content:center;padding:7px 12px}
 .taf-portal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
 .taf-portal-stats>div{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;gap:14px;min-height:112px!important;padding:20px!important;border-radius:14px}
 .taf-stat-overdue{grid-column:auto}
 .taf-portal-stats .taf-stat-icon{display:inline-flex!important;flex-shrink:0;align-items:center;justify-content:center;width:38px;height:38px;margin:0!important;border-radius:10px;background:#edf7f2;color:#126b50;font-size:14px}
 .taf-portal-stats small{display:block;font-size:12px;margin:0 0 6px;line-height:1.3}
 .taf-portal-stats strong{display:block;font-size:27px;line-height:1.15}
 .taf-stat-support{display:block;font-size:11px;color:#718079;margin-top:7px;line-height:1.4}
 .taf-portal-card{border-radius:16px;margin-bottom:20px}
 .taf-section-head{display:flex;justify-content:space-between;align-items:center;text-align:left;padding:20px 24px;gap:20px}
 .taf-section-head>div,.taf-section-head>p{width:auto;text-align:left}
 .taf-section-head h2,.taf-section-head small,.taf-section-head p{text-align:left}
 .taf-section-head h2{font-size:20px;margin:4px 0 0}.taf-section-head p{font-size:12px}
 .taf-desktop-empty{display:flex;align-items:center;gap:16px;padding:26px 24px 32px;color:#183c32}
 .taf-desktop-empty>span{display:grid;place-items:center;width:44px;height:44px;background:#f0f7f3;border-radius:12px;color:#17724e;font-size:22px}
 .taf-desktop-empty strong{font-size:15px}.taf-desktop-empty p{font-size:13px;margin:5px 0 0;color:#718079}
 .taf-empty-table{display:none}
}
@media(min-width:768px){
 .taf-portal-header{padding:18px 24px}
 .taf-parent-menu{padding:10px 14px;min-width:180px}
 .taf-section-head{padding:0;margin-bottom:16px}
 .taf-desktop-empty{padding:14px 0 4px}
 .taf-portal-stats .taf-stat-overdue .taf-stat-icon{background:#fff1ef;color:#c3453b}
}

.taf-payment-table .taf-portal-badge{white-space:normal;max-width:230px;line-height:1.45;text-align:center}

/* Consistent financial record typography on desktop, tablet and mobile. */
.taf-portal-table td[data-label="Child"] strong,
.taf-portal-table td[data-label="Amount"] strong,
.taf-portal-table td[data-label="Balance"] strong { font-weight:700; }

.taf-payment-table td[data-label="Child"]{overflow-wrap:anywhere}
.taf-payment-table td[data-label="Method"]{overflow-wrap:anywhere}

/* Centered summary cards across every viewport. */
.taf-portal-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.taf-portal-stats>div{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:12px!important;min-height:188px!important;padding:24px 18px!important;border-radius:18px;border:1px solid #d9e9e2;background:linear-gradient(180deg,#fff,#f7fbf9);box-shadow:0 6px 20px rgba(20,60,47,.055)}
.taf-portal-stats>div>div{text-align:center!important;width:100%}
.taf-portal-stats .taf-stat-icon{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;margin:0 auto!important;border-radius:14px!important;font-size:17px!important}
.taf-portal-stats small{display:block!important;text-align:center!important;font-size:13px!important;line-height:1.4;margin:0 0 6px!important}
.taf-portal-stats strong{display:block!important;text-align:center!important;font-size:clamp(26px,3vw,34px)!important;line-height:1.2!important;overflow-wrap:anywhere}
.taf-portal-stats .taf-stat-support{display:block;text-align:center!important;margin:8px 0 0!important;font-size:12px;line-height:1.5}
@media(max-width:600px){.taf-portal-stats{grid-template-columns:1fr!important;gap:12px}.taf-portal-stats>div{min-height:170px!important;padding:20px 16px!important}}

/* Clean Finance Portal visual refresh: restrained surfaces, compact header, clear hierarchy. */
.taf-portal{background:transparent!important}
.taf-portal-header{min-height:88px!important;margin-bottom:18px!important;padding:18px 22px!important;border-top:3px solid var(--taf-accent)!important;border-radius:14px!important;background:var(--taf-primary)!important;box-shadow:0 8px 24px rgba(16,79,59,.12)!important}
.taf-portal-header h1{font-size:clamp(22px,2.5vw,29px)!important}.taf-portal-header p{font-size:12px!important}
.taf-parent-menu{border:1px solid rgba(255,255,255,.22)!important;border-radius:10px!important;background:rgba(0,0,0,.08)!important;padding:8px 12px!important;min-width:165px!important}
.taf-portal-stats{gap:12px!important;margin-bottom:18px!important}.taf-portal-stats>div{min-height:150px!important;padding:19px 15px!important;border-radius:12px!important;background:#fff!important;box-shadow:0 5px 16px rgba(20,60,47,.06)!important}
.taf-portal-stats .taf-stat-icon{width:38px!important;height:38px!important;flex-basis:38px!important;border-radius:10px!important;font-size:15px!important}
.taf-portal-stats small{font-size:11px!important}.taf-portal-stats strong{font-size:clamp(24px,2.7vw,31px)!important}.taf-portal-stats .taf-stat-support{font-size:11px!important;margin-top:5px!important}
.taf-portal-card{margin-bottom:16px!important;padding:21px 22px!important;border-radius:13px!important;background:#fff!important;box-shadow:0 5px 18px rgba(20,60,47,.055)!important}
.taf-section-head{margin-bottom:12px!important}.taf-section-head h2{font-size:20px!important}.taf-section-head small{font-size:9px!important}
.taf-portal-table th,.taf-portal-table td{padding:12px 10px!important}.taf-portal-table td{font-size:13px!important}.taf-portal-table th{font-size:10px!important}
.taf-portal-badge{border-radius:7px!important;padding:5px 9px!important;font-size:11px!important}
@media(max-width:820px){.taf-portal-header{padding:17px 19px!important}.taf-portal-card{padding:19px!important}}
@media(max-width:560px){.taf-portal-header{padding:17px!important;border-radius:13px!important}.taf-parent-menu{min-width:0!important}.taf-portal-card{padding:17px!important}.taf-section-head h2{font-size:19px!important}.taf-responsive-table tr{border-radius:9px!important;padding:11px 13px!important}.taf-responsive-table td{padding:7px 0!important;font-size:13px!important}}

.taf-language-form{display:grid;gap:8px;margin:14px 0 10px}.taf-language-form label{display:grid;gap:5px;font-size:12px}.taf-language-form select,.taf-language-form button{width:100%;border:1px solid rgba(43,108,82,.28);border-radius:9px;padding:8px 10px;background:#fff;color:inherit;font:inherit}.taf-language-form button{cursor:pointer;background:var(--taf-accent);color:#fff;font-weight:700}
