.td-portal,.td-admin{font-family:inherit;direction:rtl;line-height:1.7;color:#1d2939;max-width:1150px;margin:24px auto}
.td-portal *,.td-admin *{box-sizing:border-box}
.td-portal h2,.td-admin h1{font-size:clamp(22px,2.7vw,32px);font-weight:750;line-height:1.4}
.td-panel,.td-review-card,.td-gate{background:#fff;border:1px solid #dde3eb;border-radius:14px;padding:20px;margin:20px 0;box-shadow:0 4px 18px rgba(18,32,55,.04)}
.td-panel h3,.td-review-card h3{font-size:20px;margin:0 0 14px;color:#17345b}
.td-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:15px 0}
.td-field,.td-registration label,.td-review-card label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.td-field input,.td-field select,.td-field textarea,.td-registration select,.td-registration input,.td-review-card input,.td-review-card select,.td-review-card textarea{font-family:inherit;font-size:15px;max-width:100%;width:100%;min-height:42px;border:1px solid #bbc7d6;border-radius:9px;background:#fff;padding:9px 11px;color:#243449}
.td-review-card label{margin:8px 0}
.td-registration .td-consent,.td-review-card label:has(input[type="checkbox"]),.td-capture label{display:flex;flex-direction:row;align-items:flex-start;gap:9px;font-weight:400}
.td-consent input[type="checkbox"],.td-capture input[type="checkbox"],.td-review-card input[type="checkbox"]{width:auto;min-height:0;flex:none;margin-top:7px}
.td-button,.td-location,.td-camera,.td-scan,.td-link-button{border:0;border-radius:9px;background:#133e73;color:white!important;padding:11px 18px;font:600 14px inherit;cursor:pointer;min-height:43px}
.td-button:hover,.td-location:hover,.td-camera:hover,.td-scan:hover{background:#245990}
.td-link-button{background:transparent;color:#15558c!important;text-decoration:underline;padding:5px}
.td-status,.td-notice{background:#edf4ff;border-right:4px solid #2672be;padding:13px 17px;border-radius:7px;margin:14px 0}
.td-error{color:#b42318}.td-help{color:#596579;font-size:13px}
.td-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:18px 0}
.td-stats>div{background:#f2f5f9;border:1px solid #dde3eb;border-radius:12px;padding:17px;display:flex;flex-direction:column;gap:4px}
.td-stats small{color:#66758a}.td-stats strong{font-size:25px;color:#194677;font-weight:750}
.td-event{padding:16px 0;border-top:1px solid #e4e9f1}.td-event p{margin:8px 0;color:#5b687a}
.td-event summary{cursor:pointer;color:#14528a;font-weight:700}
.td-checkin{padding:16px;background:#f8fafc;border-radius:12px;display:flex;flex-direction:column;gap:16px}
.td-capture{display:flex;flex-wrap:wrap;align-items:center;gap:13px}.td-capture video,.td-scan-video{max-width:100%;width:320px;border-radius:10px}
.td-preview{max-width:260px;max-height:220px;border:1px solid #d5dce5;border-radius:10px}
.td-table-wrap{overflow:auto}.td-portal table{width:100%;border-collapse:collapse}.td-portal th,.td-portal td{border-bottom:1px solid #dbe2ea;text-align:right;padding:10px 8px}
.td-review-card{margin:18px 0}.td-review-card .large-text{width:100%}
.td-admin .td-stats{max-width:1050px}.td-gate{text-align:center;max-width:580px}
.td-gate img{display:block;margin:15px auto;width:min(320px,100%);height:auto;aspect-ratio:1}
.td-gate-code{font:bold 50px ui-monospace,monospace;letter-spacing:8px;color:#164c7c;direction:ltr}
.td-admin .notice{margin-right:0}
@media(max-width:650px){.td-grid{grid-template-columns:1fr}.td-panel,.td-review-card{padding:14px}.td-gate-code{font-size:32px}.td-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.1.1: make native dropdowns usable even under aggressive theme styles. */
.td-portal .td-registration select,.td-portal .td-registration input {
 background:#fff!important;color:#172a42!important;border:1px solid #b9c6d5!important;
 border-radius:9px!important;opacity:1!important;min-height:44px!important;
 -webkit-appearance:menulist!important;appearance:auto!important;
}
.td-portal .td-registration select option {background:#fff!important;color:#172a42!important;}
.td-portal .td-registration select:focus {outline:2px solid #1766a1!important;outline-offset:2px;}
.td-portal .td-catalog-status {font-weight:500;font-size:13px;color:#a33d21;}

/* v0.1.2 theme-proof custom dropdown widgets. No native select is used by registration. */
.td-portal .td-registration .td-pick-field {position:relative!important;display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;}
.td-portal .td-registration .td-pick-label {display:block!important;color:#17345b!important;font-weight:700!important;font-size:14px!important;}
.td-portal .td-registration button.td-picker-toggle {
 all:unset;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
 flex-direction:row!important;gap:12px!important;width:100%!important;min-height:46px!important;max-width:100%!important;
 background:#fff!important;color:#243449!important;border:1px solid #b5c3d5!important;border-radius:9px!important;
 padding:10px 13px!important;font-family:inherit!important;font-size:15px!important;font-weight:600!important;line-height:1.5!important;cursor:pointer!important;text-align:right!important;
 box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;opacity:1!important;
}
.td-portal .td-registration button.td-picker-toggle:focus-visible {outline:3px solid #448bd0!important;outline-offset:2px!important;}
.td-portal .td-registration button.td-picker-toggle:disabled {cursor:not-allowed!important;background:#f2f5f8!important;color:#66758a!important;}
.td-portal .td-registration .td-picker-arrow {flex:none!important;color:#243449!important;font-size:18px!important;}
.td-portal .td-registration .td-picker-options {
 position:absolute!important;inset-inline:0!important;top:calc(100% + 3px)!important;z-index:99999!important;
 display:flex!important;flex-direction:column!important;gap:0!important;padding:4px!important;margin:0!important;
 background:#fff!important;border:1px solid #b5c3d5!important;border-radius:10px!important;
 box-shadow:0 12px 26px rgba(16,35,60,.19)!important;max-height:260px!important;overflow-y:auto!important;overscroll-behavior:contain!important;
}
.td-portal .td-registration .td-picker-options[hidden] {display:none!important;}
.td-portal .td-registration .td-picker-options button.td-picker-option {
 all:unset;box-sizing:border-box!important;display:block!important;flex:none!important;max-width:100%!important;
 background:#fff!important;color:#243449!important;padding:10px 11px!important;border:0!important;
 border-radius:6px!important;font-family:inherit!important;font-size:14px!important;font-weight:500!important;line-height:1.5!important;cursor:pointer!important;
 text-align:right!important;white-space:normal!important;box-shadow:none!important;text-transform:none!important;
}
.td-portal .td-registration .td-picker-options button.td-picker-option:hover,
.td-portal .td-registration .td-picker-options button.td-picker-option:focus-visible {background:#e9f3ff!important;color:#103c69!important;outline:none!important;}
.td-portal .td-registration .td-picker-options button.td-picker-option[aria-selected="true"] {background:#dcecfb!important;color:#0c3c69!important;font-weight:700!important;}
.td-portal .td-registration .td-catalog-status {display:block!important;margin:8px 0 0!important;}

/* v0.1.3: independent per-branch institute count (does not modify theme select styles). */
.td-portal .td-registration .td-branch-count {display:block!important;color:#225a77!important;font-size:13px!important;font-weight:600!important;margin-top:6px!important;}

/* v0.2.0: keep consent and submit controls INSIDE the white registration card. */
.td-portal .td-registration .td-form-footer {
 display:flex!important;flex-direction:column!important;gap:14px!important;
 margin-top:22px!important;padding:18px!important;background:#f6f9fd!important;
 border:1px solid #dbe5f1!important;border-radius:12px!important;color:#223b5e!important;
 clear:both!important;width:100%!important;
}
.td-portal .td-registration .td-form-footer .td-consent {
 display:flex!important;flex-direction:row!important;align-items:flex-start!important;
 gap:12px!important;color:#1a3554!important;font-size:16px!important;line-height:1.8!important;
 width:100%!important;margin:0!important;
}
.td-portal .td-registration .td-consent input[type="checkbox"] {
 -webkit-appearance:checkbox!important;appearance:checkbox!important;display:inline-block!important;
 width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
 max-width:22px!important;max-height:22px!important;margin:4px 0 0!important;padding:0!important;
 opacity:1!important;visibility:visible!important;position:static!important;
 border:2px solid #3b658e!important;background:#fff!important;border-radius:4px!important;
 accent-color:#164f8c!important;cursor:pointer!important;flex:none!important;
}
.td-portal .td-registration .td-consent input[type="checkbox"]:focus-visible {outline:3px solid #5b91d0!important;outline-offset:3px!important;}
.td-portal .td-registration .td-form-footer .td-button {align-self:flex-start!important;min-height:46px!important;font-size:16px!important;}
.td-portal .td-registration .td-form-footer .td-help {color:#435a73!important;font-size:14px!important;line-height:1.8!important;margin:0!important;}
.td-portal .td-document-upload {display:flex;flex-direction:column;gap:8px;margin:20px 0;padding:16px;background:#f8fafc;border:1px solid #dbe5f1;border-radius:10px;}
.td-portal .td-document-upload label {font-size:16px;font-weight:700;color:#223b5e}
.td-portal .td-document-upload input[type="file"] {width:100%;padding:10px;font-size:15px;min-height:46px;appearance:auto!important;}
.td-portal .td-document-upload small {font-size:13px;color:#52657b}

/* Clear large Arabic text and group controls in admin student review UI. */
.td-admin {font-size:16px;line-height:1.85}
.td-admin .td-admin-lead,.td-admin .td-crumb {font-size:16px;line-height:1.9}
.td-admin .td-crumb {margin:15px 0;color:#28446b}
.td-admin .td-admin-tiles {display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:16px;margin:20px 0}
.td-admin a.td-admin-tile {display:flex;flex-direction:column;gap:11px;padding:22px;text-decoration:none!important;
 background:#fff;border:1px solid #c7d7e9;border-radius:14px;color:#183d6b;box-shadow:0 2px 12px rgba(16,35,64,.045)}
.td-admin .td-admin-tile strong {font-size:20px;line-height:1.6;color:#163d6d}
.td-admin .td-admin-tile span {font-size:15px;color:#4d627e}
.td-admin .td-admin-tile:hover,.td-admin .td-admin-tile:focus-visible {border-color:#2874c1;box-shadow:0 5px 20px rgba(12,68,125,.12)}
.td-admin .td-student-filters {display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;align-items:end;padding:18px;
 border:1px solid #d6e2ef;background:#f7f9fc;border-radius:12px;margin:15px 0}
.td-admin .td-student-filters label {display:flex;flex-direction:column;gap:6px;font-size:15px;font-weight:600}
.td-admin .td-student-filters :is(input,select) {width:100%;max-width:100%;font-size:16px;min-height:44px;border:1px solid #b8cadc;border-radius:7px;padding:7px 10px;background:white;color:#16314e}
.td-admin .td-student-filters .button {min-height:44px;font-size:15px}
.td-admin .td-student-card {padding:23px;margin:20px 0;font-size:16px}
.td-admin .td-student-card h3 {font-size:22px!important;line-height:1.7!important;margin:0 0 14px!important}
.td-admin .td-student-card h3 small {font-size:15px;font-weight:400}
.td-admin .td-student-info {display:grid;grid-template-columns:repeat(auto-fit,minmax(295px,1fr));gap:3px 16px;
 background:#f7fafe;border:1px solid #e1e9f2;border-radius:10px;padding:14px 16px;margin:12px 0}
.td-admin .td-student-info p {margin:5px 0;font-size:16px;line-height:1.85;overflow-wrap:anywhere}
.td-admin .td-review-form {margin-top:18px;display:flex;flex-direction:column;gap:13px}
.td-admin .td-review-form label {font-size:16px!important;line-height:1.7!important;font-weight:700!important;display:flex;flex-direction:column;gap:8px}
.td-admin .td-review-form select,.td-admin .td-review-form textarea {
 font-size:17px!important;font-family:inherit!important;line-height:1.7!important;width:100%!important;max-width:100%!important;
 min-height:48px!important;color:#173451!important;background:#fff!important;border:1px solid #b6c9dc!important;
 border-radius:9px!important;padding:10px 13px!important;appearance:auto!important;
}
.td-admin .td-review-form textarea {min-height:105px!important}
.td-admin .td-review-form .td-review-extra {padding:16px;background:#f5f9fe;border:1px solid #d7e4f2;border-radius:10px}
.td-admin .td-review-form .td-review-extra[hidden] {display:none!important}
.td-admin .td-review-form .button {align-self:flex-start;min-height:46px;font-size:16px!important;padding:5px 19px!important}
.td-admin .td-review-docs {margin:12px 0;background:#f4f7fb;padding:13px 17px;border-radius:9px;font-size:16px}
.td-admin .td-review-docs ul {margin:8px 20px}
.td-admin .td-existing-note {font-size:16px;background:#fff7e5;padding:12px;border-radius:8px;white-space:normal}
.td-admin .td-pagination {display:flex;gap:7px;flex-wrap:wrap;margin:20px 0}
@media(max-width:650px){.td-admin .td-student-info{grid-template-columns:1fr}.td-admin .td-student-card{padding:14px}}

/* v0.3.0 – Student profile, messages, attendance ledger and private photo. */
.td-portal .td-profile{font-size:16px;line-height:1.85}
.td-portal .td-profile h3{font-size:21px!important;line-height:1.6!important}
.td-portal .td-profile h4{font-size:18px!important;margin:22px 0 10px!important;color:#17345b!important}
.td-portal .td-profile .td-profile-hero{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-bottom:20px}
.td-portal .td-profile .td-avatar{width:116px;height:116px;flex:0 0 116px;border-radius:50%;background:#eaf2fc;border:4px solid #dce9f7;display:grid;place-items:center;overflow:hidden;font-size:56px;color:#24517f}
.td-portal .td-profile .td-avatar img{width:100%;height:100%;object-fit:cover;border:0;display:block}
.td-portal .td-profile .td-profile-intro{flex:1;min-width:220px}
.td-portal .td-profile .td-profile-intro h3{font-size:26px!important;margin:4px 0 6px!important;color:#173b6a!important}
.td-portal .td-profile .td-profile-intro p{margin:0 0 8px!important;color:#475b75!important}
.td-portal .td-profile .td-eyebrow{font-size:13px;color:#507198;font-weight:700}
.td-portal .td-profile .td-pill{display:inline-block;background:#e8f1fb;border:1px solid #cadcf0;color:#194876;padding:3px 12px;border-radius:24px;font-size:14px;font-weight:700;white-space:normal}
.td-portal .td-profile .td-avatar-form{background:#f6f9fe;border:1px solid #dbe5f2;border-radius:11px;padding:16px;margin:18px 0;display:flex;flex-direction:column;gap:8px}
.td-portal .td-profile .td-avatar-form>label{font-size:16px;font-weight:700;color:#243e60}
.td-portal .td-profile .td-avatar-form small{font-size:13px;color:#536987}
.td-portal .td-profile .td-avatar-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.td-portal .td-profile .td-avatar-controls input[type=file]{flex:1;min-width:220px;background:white;border:1px solid #b8cbdc;border-radius:8px;padding:9px;color:#1e3859;font-size:15px;max-width:100%}
.td-portal .td-profile .td-small-consent{display:flex;gap:9px;align-items:flex-start;font-size:14px!important}
.td-portal .td-profile .td-small-consent input{width:19px;height:19px;flex:none;appearance:checkbox!important}
.td-portal .td-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.td-portal .td-profile-attribute{border:1px solid #e1e9f3;border-radius:10px;background:#fbfcff;padding:10px 14px;display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere;gap:3px}
.td-portal .td-profile-attribute span{font-size:13px!important;color:#61768f!important;font-weight:500}
.td-portal .td-profile-attribute b{font-size:16px!important;color:#163b62!important;line-height:1.7}
.td-portal .td-profile-nav{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:18px 0}
.td-portal .td-profile-nav a{display:inline-flex;padding:8px 13px;border:1px solid #cbdced;background:#fff;color:#185083!important;border-radius:25px;font-size:14px!important;font-weight:700;text-decoration:none!important}
.td-portal .td-profile-nav a:hover,.td-portal .td-profile-nav a:focus-visible{border-color:#3675b2;background:#eaf3fe;text-decoration:underline!important}
.td-portal .td-profile .td-progress-track{height:14px;background:#e6edf6;border-radius:50px;overflow:hidden;border:1px solid #d6e2ee;margin:14px 0}
.td-portal .td-profile .td-progress-track>div{height:100%;background:#238967;border-radius:50px}
.td-portal .td-profile .td-muted{display:block;color:#61738a;font-size:13px;line-height:1.7;margin-top:4px}
.td-portal .td-profile .td-upcoming-item{display:flex;flex-direction:column;gap:3px;padding:13px 0;border-bottom:1px solid #e4ebf3}
.td-portal .td-profile .td-upcoming-item:last-of-type{border:0}
.td-portal .td-profile .td-upcoming-item>b{color:#173e6c;font-size:17px}
.td-portal .td-profile .td-upcoming-item>span{font-size:14px;color:#546981}
.td-portal .td-profile .td-message{padding:17px 18px;margin:13px 0;background:#fbfdff;border:1px solid #e0e8f3;border-radius:12px}
.td-portal .td-profile .td-message-new{border-right:4px solid #2c76bb;background:#f1f7ff}
.td-portal .td-profile .td-message-heading{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.td-portal .td-profile .td-message-heading>b{font-size:17px;color:#163e68}
.td-portal .td-profile .td-message>small{color:#637b92;font-size:13px}
.td-portal .td-profile .td-message-body{font-size:15px;color:#314761;padding:9px 0;white-space:normal;overflow-wrap:anywhere}
.td-portal .td-profile .td-admin-response,.td-admin .td-admin-response{background:#ecf6ef;border-right:3px solid #30926a;padding:12px 14px;border-radius:8px;color:#1d5543;margin-top:10px;line-height:1.9;overflow-wrap:anywhere}
.td-portal .td-profile .td-ticket-form{display:flex;flex-direction:column;gap:15px;padding:18px;border:1px solid #dae5f2;background:#f8faff;border-radius:12px}
.td-portal .td-profile .td-ticket-form .td-field{font-size:16px!important;font-weight:700!important}
.td-portal .td-profile .td-ticket-form :is(input,select,textarea){background:#fff!important;color:#213c59!important;border:1px solid #b6c8dc!important;min-height:46px;font-size:16px!important;border-radius:9px!important;appearance:auto!important}
.td-portal .td-profile .td-ticket-form .td-button{align-self:flex-start;font-size:16px!important}
.td-admin .td-panel label{display:block;margin:11px 0;font-size:16px}
.td-admin .td-panel textarea{font-size:16px;line-height:1.75;max-width:100%;width:100%;min-height:92px;border:1px solid #b6c9dc;background:#fff;color:#173451;border-radius:9px}
.td-portal .td-profile [id^="td-"]{scroll-margin-top:90px}
@media(max-width:720px){
 .td-portal .td-profile-fields{grid-template-columns:1fr}
 .td-portal .td-profile .td-profile-hero{gap:12px}
 .td-portal .td-profile .td-avatar{width:90px;height:90px;flex-basis:90px}
 .td-portal .td-profile .td-profile-intro h3{font-size:22px!important}
 .td-portal .td-profile .td-avatar-controls{flex-direction:column;align-items:stretch}
 .td-portal .td-profile .td-avatar-controls input[type=file]{width:100%;min-width:0}
}
.td-portal .td-profile .td-pages{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:14px;margin-top:16px;padding:10px}
.td-portal .td-profile .td-pages a{padding:7px 14px;border:1px solid #c1d4e7;border-radius:8px;color:#184e82;background:#f5f9fd;text-decoration:none}
.td-portal .td-profile .td-pages span{font-size:14px;color:#556a83}

/* Cross-institute event selector: honor filtered hidden state even with theme display overrides. */
.td-portal .td-event[hidden]{display:none!important}

.td-portal select[data-td-event-filter] {
 background:#ffffff!important;color:#172a42!important;border:1px solid #b9c6d5!important;
 border-radius:9px!important;opacity:1!important;min-height:46px!important;
 width:100%!important;padding:10px!important;appearance:auto!important;-webkit-appearance:menulist!important;
 font-family:inherit!important;font-size:16px!important;font-weight:600!important;
}
.td-portal select[data-td-event-filter] option{background:#ffffff!important;color:#172a42!important;}

/* v0.3.2 – direct attendance action from student profile. */
.td-portal .td-upcoming-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 4px}
.td-portal .td-upcoming-actions small{font-size:13px;color:#61738a}
.td-portal .td-upcoming-actions .td-event-link{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;min-height:44px;background:#17477b!important;border:1px solid #17477b!important;color:white!important;text-decoration:none!important;border-radius:9px;font-size:16px!important;font-weight:700!important;line-height:1.5}
.td-portal .td-upcoming-actions .td-event-link:hover,.td-portal .td-upcoming-actions .td-event-link:focus-visible{background:#21609d!important;color:#fff!important}
.td-portal .td-event[id^="td-event-"]{scroll-margin-top:105px}
.td-portal .td-event:target{border-color:#356b9b!important;box-shadow:0 0 0 3px #d6e8fb}
.td-portal .td-event-state{background:#eff5fc;border:1px solid #d3e1f0;border-radius:9px;padding:10px 13px;font-size:15px;color:#254c73}
.td-portal .td-checkin-details summary{cursor:pointer;font-size:17px;font-weight:700;color:#164579;padding:8px 0}
.td-portal #td-events-register{scroll-margin-top:95px}

/* v0.3.3: visibility of site-independent Cairo event clock. */
.td-portal .td-event-clock{margin:12px 0;padding:10px 14px;border:1px solid #d9e6f4;border-radius:9px;background:#eef5fe;color:#173b67;font-size:16px}
.td-portal .td-event-state a{display:inline-block;margin-inline-start:8px;text-decoration:underline;font-weight:700}

/* Student experience and management center – v0.4.0 */
.td-bookmark{display:inline-flex;align-items:center;margin:0}.td-bookmark button{font-size:15px!important;padding:8px!important}
.td-enhanced .td-panel{padding:20px;margin:18px 0;border:1px solid #dee8f3;background:white;border-radius:12px}
.td-enhanced .td-stats{margin:18px 0}.td-enhanced .td-stats>div{min-width:140px}
.td-enhanced input,.td-enhanced textarea,.td-enhanced select{font-size:16px;max-width:100%;min-height:35px}
.td-enhanced td,.td-enhanced th{font-size:15px;padding:12px 8px}.td-enhanced .td-table-wrap{overflow-x:auto}
@media(max-width:650px){.td-enhanced .td-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.td-enhanced .td-stats>div{min-width:0}}


/* v0.4.1 – compact, on-demand portrait editing in the profile hero. */
.td-portal .td-profile .td-profile-quick-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.td-portal .td-profile .td-avatar-popover{display:inline-block;position:relative;z-index:15;margin:0}
.td-portal .td-profile .td-avatar-popover>summary{
  display:inline-flex!important;align-items:center;gap:5px;cursor:pointer;
  list-style:none!important;border:1px solid #bdd4eb!important;border-radius:9px!important;
  background:#f4f8fd!important;color:#17477b!important;padding:6px 11px!important;
  font-size:14px!important;font-weight:700!important;line-height:1.5!important;
}
.td-portal .td-profile .td-avatar-popover>summary::-webkit-details-marker{display:none}
.td-portal .td-profile .td-avatar-popover>summary::marker{content:''}
.td-portal .td-profile .td-avatar-popover>summary:focus-visible{outline:3px solid #438ed0;outline-offset:3px}
.td-portal .td-profile .td-avatar-popup{
  position:absolute;z-index:50;inset-inline-start:0;top:calc(100% + 8px);
  width:min(320px,calc(100vw - 48px));max-width:calc(100vw - 48px);
  border:1px solid #c8d7e7;border-radius:12px;background:#fff;
  box-shadow:0 12px 36px rgba(20,42,75,.20);padding:14px;
}
.td-portal .td-profile .td-avatar-popup .td-avatar-form{
  background:transparent;border:0;border-radius:0;padding:0;margin:0;
  display:flex;flex-direction:column;gap:10px;
}
.td-portal .td-profile .td-avatar-popup .td-avatar-form>label{font-size:14px!important}
.td-portal .td-profile .td-avatar-popup .td-avatar-controls{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.td-portal .td-profile .td-avatar-popup .td-avatar-controls input[type=file]{
  width:100%;min-width:0;font-size:13px!important;min-height:42px;color:#173451!important;
  background:#fff!important;border:1px solid #b8cbdc!important;
}
.td-portal .td-profile .td-avatar-popup .td-avatar-controls .td-button{width:100%;font-size:15px!important}
.td-portal .td-profile .td-avatar-popup .td-small-consent input[type=checkbox]{appearance:checkbox!important;width:19px;height:19px;flex:none}
.td-portal .td-profile .td-avatar-popup small{font-size:12px;color:#536987;line-height:1.6}

/* Remove a personal bookmark only: does not cancel attendance or delete events. */
.td-portal .td-profile .td-agenda-remove-form{display:inline-flex;margin:0!important;padding:0!important}
.td-portal .td-profile .td-agenda-remove{
  display:inline-flex!important;align-items:center;gap:7px;justify-content:center;
  min-height:44px;padding:9px 13px!important;border-radius:9px!important;
  border:1px solid #cc7773!important;background:#fff!important;color:#962b2b!important;
  font:600 15px inherit!important;cursor:pointer!important;line-height:1.5!important;
}
.td-portal .td-profile .td-agenda-remove:hover,.td-portal .td-profile .td-agenda-remove:focus-visible{background:#fff1f1!important;border-color:#a42a2a!important;outline-offset:2px}
.td-portal .td-profile .td-agenda-remove span{font-size:20px;line-height:1}

/* v0.5.0 Compact student communication panels */
.td-portal .td-compact-details>summary{cursor:pointer;list-style:none;font-size:18px;font-weight:700;color:#173d68;padding:12px 10px;border-radius:9px;background:#f1f6fc}
.td-portal .td-compact-details>summary::-webkit-details-marker{display:none}
.td-portal .td-compact-details>summary::before{content:"▸";margin-inline-end:9px}
.td-portal .td-compact-details[open]>summary::before{content:"▾"}
.td-portal .td-compact-content{padding:12px 4px 4px}
.td-portal .td-unread-dot{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border-radius:20px;background:#d92828;color:#fff;font-size:12px;vertical-align:middle;margin-inline-start:7px}
.td-portal .td-guardian-ok{color:#16633f;background:#e9f6ed;padding:12px;border-radius:7px}
.td-admin .td-event-action-form{display:inline-block;margin:3px}
.td-admin .td-event-action-form button{margin:3px}
.td-admin .td-event-edit-wrap{background:#f5f8fe;padding:15px;border:1px solid #d1deef;border-radius:10px;margin:18px 0}

/* v0.6.0 — Accessible event accordions, compact attendance workflow and executive UI */
.td-portal .td-event-accordion {border:1px solid #d8e5f3!important;border-radius:14px!important;background:#fff!important;margin:12px 0!important;padding:0!important;overflow:visible;box-shadow:0 4px 15px rgba(20,49,83,.055)}
.td-portal .td-event-accordion[hidden]{display:none!important}
.td-portal .td-event-summary{display:flex!important;align-items:center;gap:12px;cursor:pointer!important;padding:16px 18px;list-style:none!important;min-height:72px;color:#15375e!important;border-radius:14px;transition:background .15s}
.td-portal .td-event-summary::-webkit-details-marker{display:none}
.td-portal .td-event-summary::marker{content:''}
.td-portal .td-event-summary:hover,.td-portal .td-event-summary:focus-visible{background:#eff6ff!important;outline:2px solid transparent}
.td-portal .td-event-summary:focus-visible{outline:3px solid #348ad0;outline-offset:2px}
.td-portal .td-event-summary-text{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.td-portal .td-event-summary-text strong{font-size:18px;line-height:1.5;color:#15375e}
.td-portal .td-event-summary-text small{font-size:13px;color:#64748b;line-height:1.7;font-weight:500}
.td-portal .td-event-summary-badge{font-size:12px;font-weight:750;white-space:nowrap;border-radius:99px;padding:5px 11px;background:#edf2fa;color:#32557f}
.td-portal .td-event-summary-badge.td-event-live{background:#e6f7ed;color:#126947}
.td-portal .td-event-chevron{font-size:22px;color:#6c8197;transition:transform .15s}
.td-portal .td-event-accordion[open] .td-event-chevron{transform:rotate(180deg)}
.td-portal .td-event-accordion[open] .td-event-summary{border-bottom:1px solid #e5ecf4;border-radius:14px 14px 0 0;background:#f7faff}
.td-portal .td-event-accordion-body{padding:16px 18px 20px}
.td-portal .td-event-description{border-inline-start:3px solid #b1cee8;padding-inline-start:12px;color:#354963;line-height:1.9}
.td-portal .td-attended-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:14px}
.td-portal .td-attended-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;border-radius:14px;background:#f6f9fd;border:1px solid #d9e5f3;min-width:0}
.td-portal .td-attended-copy{display:flex;flex-direction:column;gap:7px;flex:1;min-width:0}
.td-portal .td-attended-copy h4{margin:0!important;font-size:18px!important;line-height:1.55!important;color:#193d69!important}
.td-portal .td-attended-copy .td-muted{font-size:13px;color:#60728b}
.td-portal .td-attended-score{background:#e7f1ff;color:#124b86;min-width:112px;min-height:86px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;border-radius:12px;gap:2px;text-align:center}
.td-portal .td-attended-score strong{font-size:25px;font-weight:800;font-variant-numeric:tabular-nums}
.td-portal .td-attended-score small{font-size:12px;font-weight:600}
.td-portal .td-simple-ledger .td-table-wrap{border:1px solid #dce6f2;border-radius:12px;overflow-x:auto}
.td-portal .td-simple-ledger th{background:#edf4fc;color:#153b69;font-size:15px}
.td-portal .td-simple-ledger td{font-size:15px}
.td-admin .td-attendance-event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:16px;margin:22px 0}
.td-admin .td-admin-event-card{padding:20px;border-radius:15px;border:1px solid #d8e2ef;background:#fff;display:flex;flex-direction:column;gap:12px;box-shadow:0 6px 20px rgba(17,48,84,.055)}
.td-admin .td-admin-event-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.td-admin .td-admin-event-top h2{font-size:19px!important;color:#183d6c!important;line-height:1.5;margin:0!important}
.td-admin .td-admin-event-state{font-size:12px;border-radius:99px;background:#e8f5ec;color:#176646;padding:4px 9px;white-space:nowrap;font-weight:700}
.td-admin .td-admin-event-card .td-muted{font-size:14px;color:#64748b;line-height:1.7;margin:0}
.td-admin .td-admin-event-counts{display:flex;flex-wrap:wrap;gap:10px}
.td-admin .td-admin-event-counts>span{background:#f0f6fe;border-radius:9px;padding:9px 11px;color:#314f73;font-size:13px}
.td-admin .td-admin-event-counts strong{color:#114a82;font-size:18px;margin-inline-start:4px}
.td-admin .td-admin-event-open{text-align:center;margin-top:auto;padding:7px 14px!important;font-size:15px!important}
.td-admin .td-attendance-event-head{background:linear-gradient(110deg,#f2f7ff,#fff);border-color:#c8dcee}
.td-admin .td-attendance-event-head h2{font-size:23px;color:#143d6f}
.td-admin .td-attendance-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;border:1px solid #dae5f0;border-radius:13px;padding:16px;background:#fff;margin:16px 0}
.td-admin .td-attendance-filters label{display:flex;flex-direction:column;gap:7px;font-size:15px;font-weight:650}
.td-admin .td-attendance-filters input,.td-admin .td-attendance-filters select{min-height:42px;min-width:185px;font-size:15px!important}
.td-admin .td-attendance-filters button{min-height:40px}
.td-admin .td-attendance-person h3{font-size:19px}
.td-admin .td-attendance-person h3 small{font-size:13px;font-weight:500;color:#5d708b}
.td-admin .td-attendance-pages{display:flex;justify-content:center;align-items:center;gap:12px;padding:14px 0 22px}

/* Executive reporting page: no WordPress dashboard UI required. Strictly scoped. */
.td-executive{direction:rtl;box-sizing:border-box;font-family:inherit;color:#18314f;max-width:1380px;margin:28px auto;padding:0 18px 36px;line-height:1.7}
.td-executive *{box-sizing:border-box}
.td-executive-head{background:linear-gradient(116deg,#10294a,#164b79 68%,#226ca4);border-radius:20px;color:#fff;padding:36px 36px;display:flex;align-items:center;justify-content:space-between;gap:22px;box-shadow:0 18px 35px rgba(13,48,88,.19)}
.td-executive-kicker{display:block;font-weight:700;font-size:13px;letter-spacing:.02em;opacity:.84}
.td-executive-head h1{font-size:clamp(24px,3vw,34px)!important;font-weight:800!important;color:#fff!important;margin:8px 0 8px!important;line-height:1.35}
.td-executive-head p{font-size:15px;color:#e1efff;margin:0}
.td-executive-mark{font-family:Arial,sans-serif;font-weight:900;font-size:42px;line-height:1;text-align:center;border:1px solid rgba(255,255,255,.3);border-radius:16px;padding:17px 23px;white-space:nowrap}
.td-executive-mark span{display:block;font-size:10px;letter-spacing:3px;margin-top:8px}
.td-executive-filters{display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:16px;margin:20px 0;background:#fff;padding:16px;border:1px solid #dbe5f1;border-radius:14px}
.td-executive-filters form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:0!important}
.td-executive-filters label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700;color:#334e70}
.td-executive-filters select{background:#fff!important;color:#213f61!important;min-height:44px!important;border:1px solid #c7d4e4!important;border-radius:9px;padding:7px 12px;min-width:180px;font-size:14px}
.td-executive-filters button,.td-executive-export{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:#164e86!important;color:#fff!important;border:0;border-radius:9px;padding:10px 16px!important;text-decoration:none!important;font-weight:700;font-size:14px;cursor:pointer}
.td-executive-export{background:#edf5fc!important;color:#174c7f!important;border:1px solid #c8dced}
.td-executive-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}
.td-executive-kpi{background:#fff;border:1px solid #dce6f1;border-radius:15px;padding:20px 17px;display:flex;flex-direction:column;gap:7px;box-shadow:0 6px 17px rgba(25,65,113,.035)}
.td-executive-kpi span{font-size:14px;color:#61748d;font-weight:700}
.td-executive-kpi strong{font-size:32px;font-weight:850;color:#124778;font-variant-numeric:tabular-nums;line-height:1.25}
.td-executive-kpi small{font-size:11px;color:#8595a6}
.td-executive-overview{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px;margin:22px 0;border-radius:18px;background:#fff;border:1px solid #dce6f1}
.td-executive-overview>div:first-child{flex:1}
.td-executive-overview h2,.td-executive-institutes h2,.td-executive-stages h2{font-size:22px!important;font-weight:800!important;color:#173b66!important;line-height:1.45;margin:7px 0!important}
.td-executive-overview p{font-size:14px;color:#5b708b;max-width:640px;line-height:1.8}
.td-executive-overview p strong{color:#12568f;font-size:19px}
.td-executive-track{height:12px;background:#e6edf5;border-radius:20px;max-width:650px;overflow:hidden}
.td-executive-track span{display:block;background:#158869;height:100%;border-radius:20px}
.td-executive-ring{flex:none;display:grid;place-items:center;width:162px;height:162px;border-radius:50%;background:conic-gradient(#178a6e var(--td-completion),#e7eef7 0);position:relative}
.td-executive-ring:before{content:'';position:absolute;inset:16px;border-radius:50%;background:white}
.td-executive-ring span{position:relative;z-index:2;font-size:26px;font-weight:850;color:#11624f}
.td-executive-institutes,.td-executive-stages{padding:24px;margin:22px 0;background:#fff;border:1px solid #dce6f1;border-radius:18px}
.td-executive-section-title{margin-bottom:16px}
.td-executive-section-title p{color:#6a7a8e;font-size:13px;margin:5px 0}
.td-executive-table-scroll{overflow-x:auto;border:1px solid #dce6f1;border-radius:13px}
.td-executive table{border-collapse:collapse;width:100%;min-width:850px;margin:0!important;font-size:13px}
.td-executive th{background:#edf4fb;color:#23496f;font-weight:800;white-space:nowrap}
.td-executive td,.td-executive th{border-bottom:1px solid #e7edf5;padding:12px 13px;text-align:right}
.td-executive tr:last-child td{border-bottom:none}
.td-executive td strong{font-size:14px;color:#173e6e}
.td-executive td small{display:block;color:#7a8ba0;font-size:12px}
.td-executive-percent{display:flex;align-items:center;gap:7px;min-width:110px}
.td-executive-percent span{font-weight:750;min-width:44px;color:#185b8b}
.td-executive-percent>div{flex:1;background:#e8edf5;border-radius:9px;overflow:hidden;height:8px}
.td-executive-percent i{display:block;background:#118d73;height:100%;border-radius:9px}
.td-executive-stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.td-executive-stage{display:flex;flex-direction:column;gap:4px;background:#f3f7fc;border:1px solid #dae7f4;border-radius:12px;padding:16px}
.td-executive-stage span{color:#536d8a;font-weight:700;font-size:14px}
.td-executive-stage strong{color:#164b7c;font-size:26px}
.td-executive-stage small{color:#617b92;font-size:12px}
.td-executive-footer{margin:18px 0;color:#73849b;font-size:12px;text-align:center}
.td-executive-note{padding:14px;background:#fff5e6;color:#765019;border-radius:9px}
@media(max-width:950px){.td-executive-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.td-executive-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.td-portal .td-event-summary{padding:13px 11px;gap:8px}.td-portal .td-event-summary-text strong{font-size:16px}.td-portal .td-attended-card{padding:13px}.td-portal .td-attended-score{min-width:90px}.td-executive{padding:0 10px}.td-executive-head{padding:24px 18px}.td-executive-mark{display:none}.td-executive-kpis{gap:9px}.td-executive-kpi{padding:15px 11px}.td-executive-kpi strong{font-size:25px}.td-executive-overview{padding:20px;flex-direction:column;align-items:stretch}.td-executive-ring{align-self:center}.td-executive-stage-grid{grid-template-columns:1fr}.td-executive-institutes,.td-executive-stages{padding:14px}.td-executive-filters{padding:12px}}
@media print{.td-executive-filters,.td-executive-export{display:none!important}.td-executive{max-width:none;margin:0}.td-executive-head{box-shadow:none!important;color:#123e66!important;background:#edf4fc!important}.td-executive-head h1,.td-executive-head p{color:#143a64!important}}

/* v0.6.1 – Arabic desktop typography, exclusive to the executive dashboard.
   Elementor/theme desktop fonts were inherited (v0.6.0: font-family:inherit).
   The webfont is requested only for the private dashboard; readable OS fonts
   are retained when Google Fonts is blocked or the device is offline. */
@media (min-width: 768px) {
  .td-executive.td-executive,
  .td-executive.td-executive :is(h1,h2,h3,h4,h5,h6,p,span,small,strong,b,em,label,a,button,select,option,th,td,div,footer,header) {
    font-family: "Cairo", "Noto Sans Arabic", Tahoma, "Segoe UI", Arial, sans-serif !important;
    font-style: normal;
    letter-spacing: normal !important;
    text-transform: none !important;
  }
  .td-executive.td-executive {font-size: 15px !important; line-height: 1.85 !important;}
  .td-executive.td-executive .td-executive-head h1 {font-size: clamp(25px,2.65vw,36px) !important; font-weight: 800 !important; line-height: 1.6 !important;}
  .td-executive.td-executive :is(h2,h3) {font-weight: 700 !important; line-height: 1.65 !important;}
  .td-executive.td-executive :is(.td-executive-kicker,.td-executive-kpi span,.td-executive-stage span) {font-size: 14px !important; line-height: 1.8 !important;}
  .td-executive.td-executive :is(.td-executive-head p,.td-executive-overview p,.td-executive-section-title p) {font-size: 15px !important; line-height: 1.9 !important;}
  .td-executive.td-executive .td-executive-table-scroll table {font-size: 14px !important; line-height: 1.85 !important;}
  .td-executive.td-executive :is(th,td) {vertical-align: middle !important;}
  .td-executive.td-executive .td-executive-filters :is(label,select,button) {font-size: 14px !important;}
  .td-executive.td-executive .td-executive-mark,
  .td-executive.td-executive .td-executive-mark span {font-family: Arial, sans-serif !important;}
}


/* v0.6.2 – Executive filters: correctly sized mobile controls and dropdowns.
   Strongly scoped to avoid interfering with public/event/student pages. */
.td-executive.td-executive {
    width: 100% !important;
    max-width: 1380px !important;
    min-width: 0 !important;
    margin-inline: auto !important;
}
.td-executive.td-executive .td-executive-filters {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 14px !important;
    min-width: 0 !important;
    overflow: visible !important;
}
.td-executive.td-executive .td-executive-filters form {
    display: grid !important;
    grid-template-columns: minmax(225px, 2fr) minmax(170px, 1fr) auto !important;
    align-items: end !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
}
.td-executive.td-executive .td-executive-filter-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.td-executive.td-executive .td-executive-filter-field > label {
    display: block !important;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    line-height: 1.8 !important;
    color: #274968 !important;
}
.td-executive.td-executive .td-executive-picker {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.td-executive.td-executive .td-executive-picker select:not(.td-executive-native-hidden) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    background: #fff !important;
    color: #153b60 !important;
}
.td-executive.td-executive .td-executive-picker select.td-executive-native-hidden {
    display: none !important;
}
.td-executive.td-executive .td-executive-picker .td-executive-picker-toggle {
    all: unset !important;
    box-sizing: border-box !important;
    appearance: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: right !important;
    direction: rtl !important;
    gap: 12px !important;
    cursor: pointer !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 52px !important;
    border: 1px solid #bdcee1 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #123e67 !important;
    padding: 10px 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    white-space: normal !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.td-executive.td-executive .td-executive-picker .td-executive-picker-toggle:focus-visible {
    outline: 3px solid #78b8e7 !important;
    outline-offset: 2px !important;
}
.td-executive.td-executive .td-executive-picker .td-executive-picker-toggle[aria-expanded="true"] {
    border-color: #2376b1 !important;
    box-shadow: 0 0 0 3px rgba(35,118,177,.13) !important;
}
.td-executive.td-executive .td-executive-picker .td-executive-picker-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: block !important;
    overflow-wrap: anywhere !important;
}
.td-executive.td-executive .td-executive-picker .td-executive-picker-chevron {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: 9px !important;
    height: 9px !important;
    border-left: 2px solid #1c5985 !important;
    border-bottom: 2px solid #1c5985 !important;
    transform: rotate(-45deg) translate(2px,-2px) !important;
}
.td-executive.td-executive .td-executive-picker .td-executive-picker-menu {
    position: absolute !important;
    top: calc(100% + 7px) !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: min(320px, 45vh) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 999 !important;
    background: #fff !important;
    border: 1px solid #c1d3e6 !important;
    border-radius: 12px !important;
    padding: 6px !important;
    box-shadow: 0 14px 35px rgba(13,50,87,.18) !important;
    direction: rtl !important;
    scrollbar-width: thin !important;
}
.td-executive.td-executive .td-executive-picker .td-executive-picker-menu[hidden] {display: none !important;}
.td-executive.td-executive .td-executive-picker .td-executive-picker-option {
    all: unset !important;
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #153b60 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    font-weight: 600 !important;
    text-align: right !important;
    direction: rtl !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    cursor: pointer !important;
}
.td-executive.td-executive .td-executive-picker .td-executive-picker-option[aria-selected="true"] {
    background: #e7f2fc !important;
    color: #123d67 !important;
    font-weight: 800 !important;
}
.td-executive.td-executive .td-executive-picker .td-executive-picker-option:is(:hover,:focus-visible) {
    background: #d5eafb !important;
    color: #0d3e6a !important;
    outline: 2px solid transparent !important;
}
@media (max-width: 980px) {
    .td-executive.td-executive .td-executive-filters {grid-template-columns: minmax(0,1fr) !important;}
    .td-executive.td-executive .td-executive-filters form {grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;}
    .td-executive.td-executive .td-executive-filters form > button[type="submit"] {grid-column: 1/-1; width: 100% !important;}
    .td-executive.td-executive .td-executive-filters .td-executive-export {width:100% !important;}
}
@media (max-width: 650px) {
    .td-executive.td-executive .td-executive-filters form {grid-template-columns: minmax(0, 1fr) !important;}
    .td-executive.td-executive .td-executive-filters form > button[type="submit"] {grid-column: 1 !important;}
    .td-executive.td-executive .td-executive-picker-menu {max-height: min(310px, 43vh) !important;}
    .td-executive.td-executive .td-executive-filters {margin-inline: 0 !important;}
    .td-executive.td-executive .td-executive-head {min-width:0 !important;}
    .td-executive.td-executive .td-executive-kpi {min-width:0 !important;}
}


/* v0.6.3 – Student profile mobile: prevent site header from covering scrolling
   content. Limit overrides to pages that actually display a student profile;
   do not affect the public site, executive dashboard, or WordPress admin. */
@media (max-width: 767px) {
  body.sia-td-student-view :is(
    #masthead, #main-header, #header,
    .site-header, .iq-header, .iqonic-header, .main-header,
    .header-sticky, .sticky-header, .elementor-location-header,
    header.sticky, header.elementor-sticky--active
  ) {
    position: relative !important;
    top: auto !important;
    inset-block-start: auto !important;
    transform: none !important;
  }
  body.sia-td-student-view .td-portal {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body.sia-td-student-view .td-portal .td-profile-intro {
    min-width: 0 !important;
    overflow-wrap: anywhere;
  }
  body.sia-td-student-view .td-portal .td-profile-fields,
  body.sia-td-student-view .td-portal .td-profile .td-panel,
  body.sia-td-student-view .td-portal .td-simple-ledger {
    min-width: 0;
    max-width: 100%;
  }
  body.sia-td-student-view .td-portal .td-simple-ledger .td-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* v0.7.4 – profile-only mobile sticky-header resilience.
   Some WP Rocket/Elementor optimizations delay portal.js: :has() targets the
   actual rendered profile immediately, without relying on a JS body class.
   Normalize theme headers so the student name never scrolls under a fixed bar.
   Do not touch the executive, operations, event admin or non-profile pages. */
@media screen and (max-width: 767px) {
  body:has(.td-portal .td-profile) :is(
    #masthead, #main-header, #header, .site-header,
    .iq-header, .iqonic-header, .main-header, .header-area,
    .header-wrapper, .main-header-wrapper, .header-sticky,
    .sticky-header, .sticky-wrapper, .sticky-active, .is-sticky,
    .elementor-location-header, .elementor-sticky--active,
    .ekit-sticky, .ekit-sticky--active, .ast-sticky-active,
    header.sticky, header.elementor-sticky--active,
    .sia-td-mobile-header-flow
  ) {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    inset-block-start: auto !important;
    transform: none !important;
  }
  body:has(.td-portal .td-profile) .td-portal {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  body:has(.td-portal .td-profile) .td-profile :is(h2,h3,h4,[id^="td-"]) {
    scroll-margin-top: 20px;
  }
}


/* v0.7.5: resilient native portrait form.  Mobile upload is inline in the
   document flow, never a floating popup underneath the theme's overlays. */
.td-portal .td-profile .td-avatar-popover:not([open])>.td-avatar-popup{display:none!important}
@media(max-width:767px){
 .td-portal .td-profile .td-avatar-popover{position:static!important;display:block!important;z-index:auto!important;max-width:100%!important;width:100%!important}
 .td-portal .td-profile .td-avatar-popover>summary{min-height:46px!important;justify-content:center!important;padding:10px 14px!important;touch-action:manipulation!important}
 .td-portal .td-profile .td-avatar-popover[open]>.td-avatar-popup{
   position:static!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;
   width:100%!important;max-width:100%!important;z-index:auto!important;margin:12px 0!important;
   box-shadow:none!important;background:#f7faff!important;border:1px solid #c4d9eb!important;
 }
 .td-portal .td-profile .td-avatar-popup .td-avatar-controls input[type=file]{font-size:16px!important;min-height:48px!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
 .td-portal .td-profile .td-avatar-popup .td-avatar-controls .td-button{min-height:48px!important}
}
/* Standalone student pages: no WordPress theme header/footer/navigation. */
body.td-student-shell{margin:0!important;padding:0!important;min-width:0!important;overflow-x:hidden!important;background:#eef3fa!important;color:#173557!important;direction:rtl!important;font-family:Tahoma,Arial,sans-serif!important}
body.td-student-shell .td-student-shell-header{background:#fff!important;border-bottom:1px solid #d4e0ed!important;box-shadow:0 3px 13px rgba(12,40,78,.045)!important;position:relative!important;z-index:1!important}
body.td-student-shell .td-student-shell-inner{max-width:1120px;margin:0 auto;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
body.td-student-shell .td-student-brand{color:#123b69!important;font-size:18px!important;font-weight:800!important;text-decoration:none!important;line-height:1.6!important}
body.td-student-shell .td-student-shell-links{display:flex;gap:8px;flex-wrap:wrap}
body.td-student-shell .td-student-shell-links a{display:inline-flex;align-items:center;min-height:42px;border:1px solid #d0e0ef;background:#f4f8ff;color:#1d568b!important;border-radius:9px;padding:7px 12px;font-size:14px!important;font-weight:700!important;text-decoration:none!important}
body.td-student-shell .td-student-shell-main{max-width:1120px;margin:0 auto;padding:12px 16px 48px;min-width:0}
body.td-student-shell .td-student-shell-main .td-portal{width:100%!important;max-width:100%!important;margin:0 auto!important;min-width:0!important}
body.td-student-shell .td-student-shell-footer{text-align:center;font-size:12px;color:#62768f;padding:16px}
@media(max-width:767px){
 body.td-student-shell .td-student-shell-inner{padding:10px 13px;gap:8px}
 body.td-student-shell .td-student-brand{font-size:15px!important}
 body.td-student-shell .td-student-shell-links a{min-height:40px;padding:6px 9px;font-size:12px!important}
 body.td-student-shell .td-student-shell-main{padding:10px 12px 32px!important}
 body.td-student-shell .td-portal>h2{font-size:21px!important;color:#123a65!important;line-height:1.6!important;padding:4px 0!important}
 body.td-student-shell .td-portal .td-panel{border-radius:17px!important;box-shadow:0 5px 17px rgba(16,49,89,.05)!important}
}

@media(max-width:767px){
 body.td-student-shell .td-portal .td-profile .td-profile-hero{flex-direction:column!important;align-items:center!important;gap:13px!important}
 body.td-student-shell .td-portal .td-profile .td-profile-intro{width:100%!important;min-width:0!important;text-align:center!important}
 body.td-student-shell .td-portal .td-profile .td-profile-quick-actions{justify-content:center!important}
 body.td-student-shell .td-portal .td-profile .td-avatar-popover[open]>.td-avatar-popup{text-align:right!important}
}

/* v0.7.7: student account activation + matching RTL section navigation/disclosures. */
.td-portal .td-profile-nav{direction:rtl!important;justify-content:flex-start!important;align-items:stretch!important;gap:9px!important;flex-wrap:wrap!important}
.td-portal .td-profile-nav a{direction:rtl!important;display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:44px!important;white-space:normal!important;text-align:center!important;justify-content:center!important}
.td-portal .td-profile-nav a:focus-visible{outline:3px solid #2d78c6!important;outline-offset:2px}
.td-portal .td-profile-sections{display:flex;flex-direction:column;gap:12px;direction:rtl}
.td-portal .td-profile-fold{display:block;min-width:0;border:1px solid #d7e2f1!important;border-radius:14px!important;background:#fff!important;box-shadow:0 3px 12px rgba(17,49,85,.04)!important;overflow:hidden;margin:0!important}
.td-portal .td-profile-fold>summary{list-style:none!important;cursor:pointer!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;padding:16px 19px!important;min-height:66px!important;color:#123e6e!important;font-size:18px!important;line-height:1.55!important;font-weight:750!important;background:#f3f7fd!important;touch-action:manipulation}
.td-portal .td-profile-fold>summary::-webkit-details-marker{display:none}
.td-portal .td-profile-fold>summary::marker{content:''}
.td-portal .td-profile-fold>summary:hover{background:#e7f1fc!important}
.td-portal .td-profile-fold>summary:focus-visible{outline:3px solid #347ec6!important;outline-offset:-3px!important}
.td-portal .td-profile-fold[open]>summary{border-bottom:1px solid #d9e5f3!important;background:#eaf3fe!important}
.td-portal .td-profile-fold .td-profile-fold-arrow{font-size:23px!important;color:#426d9c!important;transition:transform .18s;flex:none}
.td-portal .td-profile-fold[open] .td-profile-fold-arrow{transform:rotate(180deg)}
.td-portal .td-profile-fold-content{padding:14px!important}
.td-portal .td-profile-fold-content>.td-panel{margin:0!important;border:0!important;box-shadow:none!important;padding:6px!important;background:#fff!important}
.td-portal .td-profile-fold-content .td-compact-content{padding:0!important}
.td-portal .td-profile-fold-content #td-events-register{margin:0!important}
.td-portal [data-td-profile-fold],.td-portal #td-email-confirmation{scroll-margin-top:90px}
.td-portal .td-profile-quick-actions .td-email-activation-link{display:inline-flex!important;align-items:center!important;min-height:40px!important;padding:6px 12px!important;border-radius:9px!important;border:1px solid #f2b7bb!important;background:#fff0f1!important;color:#bd172a!important;font-size:15px!important;font-weight:800!important;text-decoration:underline!important;text-underline-offset:3px!important;line-height:1.6!important}
.td-portal .td-profile-quick-actions .td-email-activation-link:hover,.td-portal .td-profile-quick-actions .td-email-activation-link:focus-visible{background:#ffe1e5!important;color:#a31020!important;outline-color:#b7192d!important}
.td-portal .td-email-confirmation{border:1px solid #efb1b9!important;border-right:4px solid #bf2036!important;background:#fffafa!important;scroll-margin-top:25px!important}
.td-portal .td-email-confirmation :is(input,button){max-width:100%!important}
@media(max-width:650px){
 .td-portal .td-profile-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .td-portal .td-profile-nav a{font-size:13px!important;padding:9px!important;min-height:48px!important}
 .td-portal .td-profile-fold>summary{font-size:17px!important;padding:14px!important;min-height:60px!important}
 .td-portal .td-profile-fold-content{padding:9px!important}
 .td-portal .td-profile-quick-actions .td-email-activation-link{font-size:14px!important}
}
@media(max-width:370px){.td-portal .td-profile-nav{grid-template-columns:1fr!important}}

/* v0.8.0: the honeypot must never extend the document width; registration stays responsive. */
body:has(.td-registration){overflow-x:clip}
.td-portal:has(.td-registration),.td-registration-panel,.td-registration,.td-registration .td-grid,.td-registration .td-field{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.td-portal:has(.td-registration){width:100%;margin-inline:auto}
.td-registration-panel{overflow:visible;contain:layout}
.td-registration .td-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.td-registration .td-field input{min-width:0}
.td-registration .td-field-error{color:#ac2828!important;font-weight:650;line-height:1.7}
.td-registration .td-field input[aria-invalid=true]{border:2px solid #c73535!important;box-shadow:0 0 0 2px #ffe6e6!important}
.td-registration .td-reg-errors{padding:12px 16px;background:#fff0f0;border-inline-start:4px solid #bc2828;color:#8c1f1f;border-radius:9px}
#td-registration-form{scroll-margin-top:90px}
@media(max-width:760px){.td-registration .td-grid{grid-template-columns:minmax(0,1fr)!important}.td-portal:has(.td-registration){padding-inline:12px!important}.td-registration-panel{margin-inline:0!important}}

.td-admin .td-student-review-head{display:flex;align-items:flex-start;gap:22px;flex-wrap:wrap;padding:12px;background:#f8fbff;border:1px solid #e2ebf5;border-radius:12px;margin:10px 0 14px}
.td-admin .td-student-review-head .td-student-info{flex:1;min-width:220px}
.td-admin .td-staff-avatar{width:116px;height:116px;object-fit:cover;border-radius:15px;border:3px solid #d3e3f2}
.td-admin .td-staff-avatar-placeholder{padding:17px;border:1px dashed #9bafc3;border-radius:10px;color:#5b6c7e}

/* v0.8.0: searchable complaint inbox with native accessible disclosures. */
.td-admin.td-ticket-admin{max-width:1180px}
.td-ticket-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}
.td-ticket-tabs a{background:white;border:1px solid #c9d7ea;border-radius:999px;padding:10px 17px;min-height:42px;color:#1e4c78;text-decoration:none;font-weight:700}
.td-ticket-tabs a.is-selected{background:#224d88;color:white;border-color:#224d88}
.td-ticket-search{display:grid;gap:8px;padding:16px;background:#f5f8fe;border:1px solid #d5e0ed;border-radius:12px;margin-bottom:16px}
.td-ticket-search label{font-weight:700}
.td-ticket-search>div{display:flex;gap:9px;flex-wrap:wrap}
.td-ticket-search input{flex:1;min-width:160px;min-height:43px;padding:8px 12px;border:1px solid #b9cada;border-radius:9px}
.td-ticket-total{color:#4a6178}
.td-ticket-card{background:#fff;border:1px solid #dbe5f0;border-radius:14px;margin:11px 0;box-shadow:0 3px 14px #1034500a;overflow:hidden}
.td-ticket-card>summary{display:flex;align-items:center;gap:13px;cursor:pointer;padding:16px;list-style:none}
.td-ticket-card>summary::-webkit-details-marker{display:none}
.td-ticket-main{flex:1;display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}
.td-ticket-main b{font-size:17px;color:#163c6c}.td-ticket-main small{color:#617489}
.td-ticket-state{font-size:13px;font-weight:700;padding:5px 11px;border-radius:999px;white-space:nowrap}
.td-ticket-state.is-answered{background:#e3f6ec;color:#216d48}.td-ticket-state.is-unanswered{background:#fff1d9;color:#8c510f}
.td-ticket-card[open] .td-ticket-chevron{transform:rotate(180deg)}
.td-ticket-body{padding:19px;border-top:1px solid #e6eef6;display:grid;gap:12px}
.td-ticket-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 20px}
.td-ticket-facts p{margin:0;color:#38536c}.td-ticket-description{white-space:normal;overflow-wrap:anywhere;background:#f7faff;border-radius:10px;padding:14px}
.td-ticket-body .large-text{display:block;width:100%;min-height:115px;margin-top:8px}
.td-ticket-empty{padding:20px;background:white;border:1px dashed #aec4dd;border-radius:12px}
.td-ticket-pagination{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0}
@media(max-width:650px){.td-ticket-card>summary{align-items:flex-start;flex-wrap:wrap}.td-ticket-facts{grid-template-columns:minmax(0,1fr)}.td-ticket-body{padding:12px}}

/* v0.8.4 complaint archival UI */
.td-ticket-delete-form{border:1px solid #e3adad;background:#fff8f8;border-radius:11px;padding:12px;margin:16px 0 10px;display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.td-ticket-delete-form label{display:flex;flex-direction:column;gap:5px;font-weight:600;flex:1 1 250px}
.td-ticket-delete-form input{max-width:400px;min-height:35px;border:1px solid #b4bac4;border-radius:5px;padding:5px 8px}
.td-ticket-delete-button{border-color:#a52e35!important;color:#a52e35!important;min-height:36px}

/* v0.8.5: shared BuddyBoss / WordPress avatar, edited once in the member profile. */
.td-portal .td-profile .td-avatar img.avatar,
.td-portal .td-profile .td-avatar img.td-unified-profile-avatar { width:100%; height:100%; object-fit:cover; border:0; display:block; border-radius:50%; }
.td-portal .td-avatar-change-link { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:8px 13px; border-radius:10px; border:1px solid #b4cae4; background:#f5f9ff; color:#16416f; font-weight:700; text-decoration:none; }
.td-portal .td-avatar-change-link:hover, .td-portal .td-avatar-change-link:focus-visible { color:#0b2850; background:#e7f1ff; }

/* v0.8.8 — Pending students by institute and QR lifetime controls */
.td-pending-institutes h2{margin:0 0 14px;font-size:20px;color:#17345b}
.td-pending-institutes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.td-pending-institute{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 14px;background:#f1f5fb;color:#163f72;border:1px solid #d9e4f2;border-radius:11px;text-decoration:none;font-weight:700}
.td-pending-institute strong{font-size:20px;color:#174b80}
.td-pending-institute:hover{background:#e7effc;border-color:#8db2e8;color:#0f3470}
.td-pending-institute-disabled{opacity:.75;cursor:default}
.td-gate [data-td-qr-start]{margin-top:16px}

[data-td-qr-start][hidden],[data-td-ops-qr-start][hidden]{display:none!important}
