:root{--ink:#172033;--muted:#657089;--line:#e8ebf1;--bg:#f6f8fb;--card:#fff;--primary:#4361ee;--primary-dark:#3149c7;--accent:#12b886;--danger:#dc3545;--shadow:0 18px 50px rgba(24,35,62,.08);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}*[hidden]{display:none!important}body{margin:0;color:var(--ink);background:var(--bg)}button,input{font:inherit}button{cursor:pointer;border:0}.app-shell{min-height:100vh}.login-layout{min-height:100vh;display:grid;place-items:center;position:relative;overflow:hidden;background:linear-gradient(145deg,#20395e 0%,#4f78ad 48%,#d9b18d 100%)}.login-layout:before,.login-layout:after{content:"";position:absolute;inset:auto;pointer-events:none}.login-layout:before{width:62vw;height:38vh;left:-8vw;bottom:-9vh;background:linear-gradient(155deg,rgba(22,49,80,.88),rgba(22,49,80,0));transform:rotate(-6deg);filter:blur(2px)}.login-layout:after{width:56vw;height:35vh;right:-10vw;top:-8vh;background:radial-gradient(ellipse,rgba(255,255,255,.32),rgba(255,255,255,0) 68%);transform:rotate(-9deg)}.login-card{position:relative;z-index:1;width:min(360px,calc(100vw - 36px));padding:34px 30px 29px;display:flex;flex-direction:column;justify-content:center;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.72);border-radius:8px;box-shadow:0 18px 45px rgba(14,32,57,.24)}.login-aside{position:absolute;inset:0;color:#fff;display:flex;align-items:flex-end;padding:28px;overflow:hidden;font-size:clamp(15px,1.5vw,22px);font-weight:650;line-height:1.18}.login-aside p{position:relative;z-index:1;max-width:260px;margin:0;text-shadow:0 1px 10px rgba(0,0,0,.22)}.orb{position:absolute;width:48vw;height:48vw;border-radius:50%;right:-18vw;top:-18vw;background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.42),rgba(255,255,255,0) 62%);border:1px solid rgba(255,255,255,.2)}.brand-mark{font-size:20px;letter-spacing:.12em;font-weight:800;color:var(--ink)}.brand-mark span{color:var(--primary);font-weight:500}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:750;color:var(--primary);margin:26px 0 10px}.login-card h1{font-size:clamp(32px,4vw,50px);line-height:1.04;letter-spacing:-.04em;margin:0 0 16px}.muted{color:var(--muted);line-height:1.6}.stack{display:grid;gap:15px;margin-top:24px}label{display:grid;gap:7px;font-size:13px;font-weight:650}input{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px 13px;background:#fff;color:var(--ink);outline:0}input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(67,97,238,.12)}button.primary{background:var(--primary);color:#fff;border-radius:10px;padding:13px 18px;font-weight:700}button.primary:hover{background:var(--primary-dark)}.hint{font-size:12px;color:var(--muted);margin-top:22px}.hint code{color:var(--ink)}.error{color:var(--danger);font-size:13px;min-height:18px;margin:0}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px}.topbar-right{display:flex;align-items:center;gap:18px;font-size:13px}.ghost{background:transparent;color:var(--muted);padding:8px}.body-layout{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - 72px)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:26px 15px;display:flex;flex-direction:column;gap:5px}.sidebar .eyebrow{margin:0 12px 10px}.nav-item{background:transparent;text-align:left;color:var(--muted);padding:11px 13px;border-radius:9px;font-size:14px}.nav-item:hover,.nav-item.active{background:#eef1ff;color:var(--primary);font-weight:700}.sidebar-bottom{margin-top:auto;padding:14px 12px;color:var(--muted);font-size:12px}.status-dot{display:inline-block;width:7px;height:7px;background:var(--accent);border-radius:50%;margin-right:6px}.content{padding:34px;max-width:1500px;width:100%;margin:0 auto}.screen-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.screen-head h1{font-size:30px;letter-spacing:-.035em;margin:3px 0 7px}.screen-head p{margin:0;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.card,.table-card{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.metric{padding:21px}.metric-label{font-size:12px;color:var(--muted)}.metric-value{font-size:32px;font-weight:780;margin-top:10px}.section{margin-top:22px}.section h2{font-size:17px;margin:0 0 13px}.table-card{overflow:hidden}.table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line);gap:12px}.table-toolbar h2{margin:0;font-size:16px}.table-toolbar input{max-width:260px;padding:9px 11px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:14px 18px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);background:#fbfcfe}tr:last-child td{border-bottom:0}.badge{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:700;background:#eef1ff;color:var(--primary)}.badge.green{background:#e7f8f1;color:#087f5b}.badge.red{background:#fff0f1;color:var(--danger)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid .wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.modal-backdrop{position:fixed;inset:0;background:rgba(12,18,36,.42);display:grid;place-items:center;padding:20px;z-index:5}.modal{background:#fff;border-radius:14px;width:min(620px,100%);padding:24px;box-shadow:0 24px 80px rgba(12,18,36,.25)}.modal h2{margin:0 0 18px}.toast{position:fixed;right:25px;top:85px;background:#172033;color:#fff;border-radius:8px;padding:11px 15px;font-size:13px;opacity:0;transform:translateY(-8px);transition:.18s;z-index:10}.toast.show{opacity:1;transform:none}.empty{padding:35px;text-align:center;color:var(--muted)}.activity{display:grid;gap:0}.activity-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.activity-row:last-child{border-bottom:0}.activity-row small{color:var(--muted)}@media(max-width:900px){.login-layout{grid-template-columns:1fr}.login-aside{display:none}.body-layout{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:2;flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid var(--line);padding:10px}.sidebar .eyebrow,.sidebar-bottom{display:none}.nav-item{white-space:nowrap}.content{padding:20px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.screen-head{display:block}.screen-head .primary{margin-top:15px}.form-grid{grid-template-columns:1fr}}@media(max-width:480px){.cards{grid-template-columns:1fr}.topbar{padding:0 16px}.topbar-right{gap:4px}.topbar-right #user-chip{display:none}}
.link-button{padding:0;background:transparent;color:var(--primary);font-weight:700;text-align:left}.small-action{background:#f2f4fa;color:var(--primary);border-radius:7px;padding:6px 8px;margin-right:5px;font-size:11px;font-weight:700}.small-action.danger{color:#b42318}.slot-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:11px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.table-footer button:disabled{opacity:.45;cursor:not-allowed}.toolbar-spacer{flex:1}.filter-strip{display:flex;gap:12px;align-items:flex-end;margin:-12px 0 16px}.filter-strip label{min-width:180px}.filter-strip select{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink)}.detail-grid{display:grid;grid-template-columns:120px 1fr;gap:10px 15px;color:var(--muted);font-size:13px}.detail-grid b{color:var(--ink);font-weight:650}.week-panel{margin-bottom:22px}.week-controls{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}.week-control-actions{display:flex;gap:5px;flex-wrap:wrap}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));gap:10px;overflow:auto}.week-day{min-width:145px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.week-day-head{display:grid;gap:3px;padding:12px;background:#fbfcfe;border-bottom:1px solid var(--line);font-size:11px;color:var(--primary);font-weight:750}.week-day-head b{font-size:11px;color:var(--muted);font-weight:600}.week-day-body{display:grid;gap:8px;padding:8px;min-height:150px;align-content:start}.week-slot{padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff;display:flex;flex-direction:column;gap:6px}.week-slot strong{font-size:14px}.week-slot span:not(.badge){font-size:12px;color:var(--muted)}.week-empty{padding:18px 7px;text-align:center;color:var(--muted);font-size:12px}@media(max-width:900px){.week-grid{grid-template-columns:repeat(2,minmax(165px,1fr))}.screen-head .ghost{margin-top:10px}}
.modal-wide{width:min(860px,100%);max-height:calc(100vh - 40px);overflow:auto}.tab-strip{display:flex;gap:6px;overflow:auto;border-bottom:1px solid var(--line);margin:-4px -4px 18px;padding:0 4px}.tab-strip .ghost{white-space:nowrap;border-radius:8px 8px 0 0}.tab-strip .ghost.active{background:#eef1ff;color:var(--primary);font-weight:700}.course-tab-panel{min-height:160px}.filter-strip{flex-wrap:wrap}.filter-strip label{flex:1 1 180px}.remember-login{display:flex;align-items:center;gap:8px;font-weight:500;color:var(--muted)}.remember-login input{width:16px;height:16px;margin:0;accent-color:var(--primary)}
.wizard-steps{display:flex;gap:8px;align-items:center;margin:-4px 0 20px;padding-bottom:12px;border-bottom:1px solid var(--line)}.wizard-step{padding:8px 12px;border-radius:8px;background:#f3f5fa;color:var(--muted);font-size:12px;font-weight:700}.wizard-step.active{background:#eef1ff;color:var(--primary)}.wizard-step.complete{background:#e7f8f1;color:#087f5b}.wizard-session{padding:14px;border:1px solid var(--line);border-radius:10px;margin:10px 0}.wizard-session-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.wizard-session-head .ghost{padding:4px 8px;color:var(--danger)}.wizard-students{display:grid;gap:8px;margin-top:12px;max-height:240px;overflow:auto}.wizard-student{display:flex;grid-template-columns:none;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:8px;font-weight:400}.wizard-student input{width:16px;min-height:16px}.wizard-student span{display:grid;gap:3px}.wizard-student small{color:var(--muted)}
.result-row{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(120px,.5fr) minmax(180px,1fr);gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid var(--line)}.result-row>div{display:grid;gap:4px}.result-row small{color:var(--muted);font-size:12px}.result-row label{font-size:12px}.result-row input:disabled{background:#f7f8fb;color:var(--ink)}

/* Reference-informed public login shell: independent brand/assets, compact translucent card. */
.login-layout{isolation:isolate;background:linear-gradient(160deg,#dce8f2 0%,#eee2d4 48%,#d6e2ea 100%)}
.login-layout:before{z-index:-2;inset:0;width:auto;height:auto;left:0;bottom:0;filter:none;transform:none;background:radial-gradient(ellipse at 18% 60%,rgba(244,177,120,.85) 0 9%,transparent 10%),radial-gradient(ellipse at 24% 52%,rgba(87,122,152,.8) 0 14%,transparent 15%),radial-gradient(ellipse at 81% 70%,rgba(245,212,181,.9) 0 17%,transparent 18%),radial-gradient(ellipse at 70% 83%,rgba(94,136,165,.72) 0 20%,transparent 21%),linear-gradient(150deg,transparent 38%,rgba(255,255,255,.52) 39% 56%,transparent 57%),linear-gradient(180deg,#b8cbd9,#f2d9c1 54%,#8098aa)}
.login-layout:after{z-index:-1;inset:0;width:auto;height:auto;right:0;top:0;transform:none;border:0;background:linear-gradient(115deg,rgba(28,47,66,.13),transparent 28% 70%,rgba(255,255,255,.18)),radial-gradient(ellipse at 48% 38%,rgba(255,255,255,.15),transparent 48%)}
.login-card{min-height:449px;padding:20px 30px 15px;justify-content:flex-start;background:rgba(255,255,255,.74);backdrop-filter:blur(9px);border:1px solid rgba(255,255,255,.55);border-radius:7px;box-shadow:0 16px 42px rgba(33,48,63,.12)}
.login-logo{width:140px;height:140px;margin:18px auto 20px;display:grid;place-content:center;text-align:center;background:#fff;border:1px solid rgba(23,32,51,.08);border-radius:4px;color:#2467a9;line-height:.9;font-size:22px;font-weight:800;letter-spacing:-.06em}
.login-logo span{display:block}.login-logo span+span{font-size:25px;letter-spacing:-.1em}
.login-aside p{display:none}.stack{gap:15px;margin-top:0}.login-card label:not(.remember-login){display:block;position:relative;font-size:0}.login-card label:not(.remember-login) input{font-size:14px}.login-card label:not(.remember-login) input[name="login"],.login-card label:not(.remember-login) input[name="password"]{padding-left:32px}.login-card label:not(.remember-login):has(input[name="login"]):after,.login-card label:not(.remember-login):has(input[name="password"]):after{content:"";position:absolute;left:12px;top:9px;width:12px;height:15px;background-repeat:no-repeat;background-position:center}.login-card label:not(.remember-login):has(input[name="login"]):after{background-image:radial-gradient(circle at 50% 28%,#8b96a2 0 2px,transparent 2.5px),radial-gradient(ellipse at 50% 92%,#8b96a2 0 4px,transparent 4.5px)}.login-card label:not(.remember-login):has(input[name="password"]):after{background-image:radial-gradient(ellipse at 50% 70%,transparent 0 3px,#8b96a2 3.5px 4px,transparent 4.5px),linear-gradient(#8b96a2,#8b96a2);background-size:10px 10px,9px 7px;background-position:center 0,center 7px}label{font-size:14px;font-weight:400}input{border-color:#cdd6e4;border-radius:3px;padding:6px 12px;min-height:34px;font-size:14px}
.login-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:1px}.remember-login{display:flex;align-items:center;gap:8px;font-weight:400;color:#4d78a1;white-space:nowrap}.remember-login input{width:13px;min-height:13px;height:13px;margin:0;accent-color:#4d8dbd}
.login-actions button.primary{background:#4d8dbd;border-radius:2px;padding:9px 14px;font-size:12px;font-weight:600;text-transform:uppercase}.login-actions button.primary:hover{background:#3c7199}.login-support{margin:28px 0 0;text-align:center;color:#4d8dbd;font-size:14px;border-top:1px dotted #4d8dbd;padding-top:28px}

.table-subline{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-top:2px}
/* Reference shell overrides: evidence-derived from the read-only 1440x900 capture. */
.topbar{height:68px;background:#fff;border-bottom:1px solid #e5e9f1;display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:3}
.topbar-left,.topbar-actions{display:flex;align-items:center;gap:18px}.icon-button,.topbar-icon,.language-button{background:transparent;color:#168fcd;font-size:21px;padding:7px;position:relative}.icon-button{display:none}.topbar-icon sup{font-size:9px;position:absolute;top:0;right:0;background:#13b5d6;color:#fff;border-radius:9px;padding:1px 4px}.center-selector{border:1px solid #379ee0;border-radius:18px;background:#fff;color:#238ccc;padding:8px 18px;font-size:13px}.language-button{font-size:12px;border-radius:50%;background:#ff5362;color:#fff;width:27px;height:27px;padding:0}.avatar-menu{position:relative}.avatar-menu summary{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;font-size:12px;color:var(--muted)}.avatar-menu summary::-webkit-details-marker{display:none}.avatar-circle{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid #86cff2;background:#ecf9ff;color:#86cff2}.avatar-dropdown{position:absolute;right:0;top:46px;min-width:170px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);padding:8px;z-index:5}.avatar-dropdown button{display:block;width:100%;text-align:left;background:#fff;padding:9px;border-radius:5px;color:var(--ink)}.avatar-dropdown button:hover{background:#f3f6fb}
.body-layout{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 68px)}.sidebar{background:#292c3f;border-right:1px solid #222538;padding:17px 0;display:flex;flex-direction:column;overflow:auto}.sidebar.collapsed{width:64px}.sidebar-bottom{margin-top:auto;padding:14px 17px;color:#afb4c9;font-size:12px}.nav-group{padding:0 9px 13px}.nav-group-title{padding:10px 12px 7px;color:#8c92ad;text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:700}.nav-item{width:100%;display:flex;align-items:center;gap:11px;background:transparent;text-align:left;color:#d6d8e3;padding:10px 13px;border-radius:6px;font-size:13px}.nav-item:hover,.nav-item.active{background:#3a3e55;color:#fff;font-weight:700}.nav-item.active{box-shadow:inset 3px 0 #32b9ec}.nav-item-icon{width:19px;color:#70cbea;text-align:center}.content{padding:0 34px 34px;max-width:1500px;width:100%;margin:0 auto}.breadcrumb{height:48px;display:flex;align-items:center;color:#5976e8;font-size:13px}.card,.table-card{border-radius:8px;box-shadow:0 3px 15px rgba(27,43,79,.05)}.filter-strip select{border-radius:4px}.reference-placeholder{padding:48px;max-width:760px}.reference-placeholder-icon{font-size:50px;color:#36aedb}.reference-placeholder dl{display:grid;grid-template-columns:160px 1fr;gap:10px;margin-top:25px}.reference-placeholder dt{color:var(--muted)}.reference-placeholder dd{margin:0}.reference-placeholder code{background:#f3f5fa;padding:3px 6px;border-radius:4px}
@media(max-width:900px){.icon-button{display:block}.topbar-left{gap:8px}.center-selector{display:none}.body-layout{grid-template-columns:1fr}.sidebar{position:sticky;top:68px;z-index:2;flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid #222538;padding:10px}.nav-group{display:flex;gap:4px;padding:0}.nav-group-title,.sidebar-bottom{display:none}.nav-item{white-space:nowrap}}

/* Shared reference template: compact rail, white work card, quiet controls. */
:root{--rail:#2c2e3e;--rail-ink:#d7dae5;--rail-muted:#868aa8;--reference-blue:#2f9ed8;--reference-teal:#2abfa1;--reference-purple:#7867dc;--reference-bg:#f2f3f8;--reference-font:Montserrat,Poppins,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html,body{font-family:var(--reference-font);font-size:13px;font-weight:300;line-height:1.5;background:var(--reference-bg)}
.topbar{height:70px;padding:0 28px;box-shadow:0 1px 0 rgba(23,32,51,.03)}
.topbar-left,.topbar-actions{gap:14px}.brand-mark{font-size:18px;letter-spacing:.1em}.center-selector{display:inline-flex;align-items:center;gap:9px;padding:8px 15px;border-color:#b8dff2;color:#278dca;background:#fff;font-size:12px;font-weight:600}.center-selector-icon{font-size:15px}.topbar-icon{width:30px;height:30px;display:grid;place-items:center;padding:0;color:#6c7f9b;font-size:19px;border-radius:50%}.topbar-icon:hover{background:#f0f7fc;color:#168fcd}.topbar-icon sup{top:-2px;right:-2px;background:#ff5e6c}.language-button{background:#ff5967;width:29px;height:29px;font-weight:700}.avatar-menu summary{font-size:0}.avatar-circle{width:36px;height:36px}
.branch-manager-scope{position:relative;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:400;color:#53627c;white-space:nowrap}.branch-manager-scope select{height:30px;min-width:130px;padding:4px 8px;border:1px solid #b8dff2;border-radius:4px;background:#fff;color:#53627c;font-size:11px}.branch-manager-scope>.ghost{height:30px;padding:0 8px;border:1px solid #dfe5ee;border-radius:4px;color:#53627c;font-size:11px}.branch-manager-scope>.branch-manager-export{color:#fff;background:#4959bd;border-color:#4959bd}.branch-manager-scope small{color:#8b95a8;font-size:10px}.branch-manager-records-panel{position:absolute;top:38px;left:0;z-index:8;width:330px;padding:10px;background:#fff;border:1px solid #e2e7f0;border-radius:6px;box-shadow:0 14px 38px rgba(22,31,59,.18)}.branch-manager-record-search{display:grid;gap:4px;font-size:11px;color:#53627c}.branch-manager-record-search input{height:30px;padding:5px 8px;border-radius:4px;font-size:11px}.branch-manager-records-panel [data-branch-manager-records]{max-height:220px;overflow:auto;margin-top:8px}.branch-manager-record{display:grid;gap:2px;padding:7px 4px;border-top:1px solid #edf0f5;font-size:11px}.branch-manager-record small{font-size:10px;color:#8b95a8}.branch-manager-records-panel .empty,.branch-manager-records-panel .error{padding:8px 4px;font-size:11px;text-align:left}
.body-layout{grid-template-columns:112px 1fr;min-height:calc(100vh - 70px)}
.sidebar{position:relative;z-index:4;overflow:visible;background:var(--rail);border-right:0;padding:12px 6px 14px;gap:3px;box-shadow:2px 0 12px rgba(20,27,48,.08)}
#reference-nav{display:flex;flex-direction:column;gap:2px;min-height:100%}.nav-group{position:relative;padding:0}.nav-group-title{display:none}.nav-rail-group{position:relative}.nav-rail-item{position:relative;width:100%;min-height:88.4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:15.6px 2.6px;border-radius:0;background:transparent;color:var(--rail-muted);font-size:12px;line-height:18px;font-weight:400;text-align:center}.nav-rail-item:hover,.nav-rail-group.open>.nav-rail-item,.nav-rail-item.active{background:#3a3e55;color:#fff}.nav-rail-item.active:after{content:"";position:absolute;right:-6px;top:25px;border-width:7px 6px 7px 0;border-style:solid;border-color:transparent #fff transparent transparent}.nav-rail-icon{font-size:22px;line-height:1;color:#83cdec;font-weight:400}.nav-rail-item.active .nav-rail-icon{color:#fff}.nav-rail-label{max-width:102px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-badge{position:absolute;right:9px;top:6px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:#ef526a;color:#fff;font-size:10px;line-height:16px}.nav-flyout{position:absolute;left:106px;top:0;display:none;min-width:230px;max-height:calc(100vh - 98px);overflow:auto;padding:8px;background:#fff;border:1px solid #e2e7f0;border-radius:0 8px 8px 8px;box-shadow:0 14px 38px rgba(22,31,59,.18)}.nav-rail-group:hover>.nav-flyout,.nav-rail-group.open>.nav-flyout{display:grid;gap:2px}.nav-flyout .nav-item{display:block;width:100%;padding:9px 11px;border-radius:5px;color:#53627c;font-size:12px;line-height:1.25;white-space:normal}.nav-flyout .nav-item:hover,.nav-flyout .nav-item.active{background:#edf7fc;color:#168fcd;font-weight:700;box-shadow:none}.sidebar-bottom{display:none}
.content{padding:0 28px 32px;max-width:none;background:var(--reference-bg)}.breadcrumb{height:48px;padding-left:2px;color:#7384a1;font-size:12px}.breadcrumb:before{content:"⌂";margin-right:7px;color:#8795ab;font-size:14px}
#screen{background:#fff;border:1px solid #e6eaf1;border-radius:7px;box-shadow:0 3px 15px rgba(27,43,79,.045);padding:20px 22px 24px;min-height:calc(100vh - 142px);overflow:hidden}.screen-head{display:flex;align-items:center;justify-content:flex-end;min-height:34px;margin:0 0 16px;padding:0;border-bottom:1px solid #edf0f5}.screen-title{display:none}.screen-head>div:empty{display:none}.screen-head button{margin-bottom:10px}
.cards{gap:10px}.card,.table-card{border-radius:6px;box-shadow:none;border-color:#e7ebf2}.metric{padding:15px}.metric-value{font-size:23px}.section{margin-top:16px}
.filter-strip{display:grid;grid-template-columns:repeat(6,minmax(115px,1fr));gap:9px;align-items:center;margin:0 0 15px;padding:0}.filter-strip>label{min-width:0;display:block;font-size:0}.filter-strip>label input,.filter-strip>label select{width:100%;height:36px;font-size:12px;color:#56657d;border:1px solid #dfe5ee;border-radius:4px;background:#fff;padding:7px 10px}.filter-strip>label input::placeholder{color:#98a3b6}.filter-strip .filter-apply,.filter-strip .filter-clear{height:36px;justify-self:start;border-radius:4px;padding:0 13px;font-size:12px;font-weight:600;white-space:nowrap}.filter-apply{background:var(--reference-teal);color:#fff}.filter-apply:hover{background:#1eab8d}.filter-clear{background:#7867dc!important;color:#fff!important}.filter-strip .filter-apply span,.filter-strip .filter-clear span{font-size:14px;margin-right:4px}.filter-strip>button.ghost:not(.filter-clear):not(.filter-apply){height:36px;padding:0 12px;background:#f1f3f8;color:#6d7890;border-radius:4px;font-size:12px}
.table-card{overflow:hidden}.table-toolbar{padding:11px 13px;border-bottom:1px solid #edf0f5}.table-toolbar h2{font-size:14px;color:#35445d;font-weight:700}.table-toolbar input{height:32px;max-width:230px;padding:7px 10px;border-radius:4px;font-size:12px}.table-wrap{overflow-x:auto}table{width:100%;font-size:12px;table-layout:auto}th,td{padding:10px 11px;border-bottom:1px solid #edf0f5;white-space:normal;vertical-align:middle;line-height:1.35}th{font-size:11px;text-transform:none;letter-spacing:0;color:#4c5b73;font-weight:700;background:#fafbfd;white-space:nowrap}th:first-child,td:first-child{width:48px;text-align:center}.table-footer{padding:9px 12px;font-size:11px}.badge{padding:3px 8px;font-size:10px}.small-action{padding:5px 7px;margin:0 3px 3px 0;border-radius:4px;font-size:10px;background:#eff5fb}.screen-head .primary{height:32px;padding:0 12px;border-radius:4px;background:var(--reference-teal);font-size:12px}.screen-head .primary:before{content:"+";font-size:15px;margin-right:4px}.screen-head .ghost{height:32px;padding:0 11px;border-radius:4px;background:#eef1f8;color:#53627c;font-size:12px}.screen-head button[id*="export"],.screen-head button[id*="Excel"]{background:#4959bd;color:#fff}.screen-head button[id*="export"]:before{content:"▣";margin-right:5px}.screen-head button[id*="import"]:before{content:"↥";margin-right:5px}.form-grid{gap:12px}.modal{border-radius:8px}.ref-tabs{display:flex;gap:0;overflow:auto;border-bottom:1px solid #e4e9f1;margin:0 0 15px}.ref-tab{position:relative;padding:9px 14px;background:transparent;color:#78869e;font-size:12px;white-space:nowrap}.ref-tab.active{color:#1a9bcf;font-weight:700}.ref-tab.active:after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;background:#1a9bcf}.ref-tab-count{display:inline-block;margin-left:3px;color:#fff;background:#8a9ab5;border-radius:10px;padding:1px 5px;font-size:10px}.ref-tab.active .ref-tab-count{background:#1a9bcf}
.reference-placeholder{max-width:none;padding:34px;text-align:center}.reference-placeholder h2{font-size:17px}.reference-placeholder-icon{font-size:34px}.reference-placeholder dl{display:none}
.finance-summary{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0 0 16px;padding:13px 14px;background:#fff;border:1px solid #e7ebf2;border-radius:6px;box-shadow:0 4px 14px rgba(27,43,79,.06);font-size:11px;text-align:center}.finance-summary div:nth-child(1),.finance-summary div:nth-child(2),.finance-summary div:nth-child(3){color:#318fe0}.finance-summary div:nth-child(5),.finance-summary div:nth-child(6){color:#f0a600}.finance-summary b{display:block;font-weight:600;margin-bottom:4px}.ref-tabs{min-height:39px}.ref-tabs+.filter-strip{margin-top:2px}
.contract-customer,.contract-dates,.contract-course,.contract-money,.contract-person,.contract-note{display:inline-flex;flex-direction:column;gap:2px;line-height:1.35;white-space:normal}.contract-customer small,.contract-course small{color:#748099;font-size:11px}.contract-money .paid{color:#178b66}.contract-money .debt{color:#d06b2c}.contract-note{max-width:180px;word-break:break-word}.upload-action{height:32px;padding:0 12px;border-radius:4px;font-size:12px;font-weight:600}
.report-attendance-note{margin:0 0 12px;color:#748099;font-size:11px}
.class-multiline{display:inline-flex;flex-direction:column;gap:2px;line-height:1.25}.class-multiline small{font-size:10px;color:#8490a6;font-weight:500}.class-progress-cell{min-width:92px;display:grid;gap:4px;font-size:11px;color:#4d5b72}.class-progress-track{display:block;height:5px;min-width:72px;overflow:hidden;border-radius:4px;background:#e9edf4}.class-progress-track i{display:block;height:100%;border-radius:inherit;background:var(--reference-teal)}.class-status-progress{display:grid;gap:6px;margin:-5px 0 15px;padding:8px 10px;background:#f8fafc;border:1px solid #e7ebf2;border-radius:5px;color:#59677e;font-size:11px}.class-status-progress>div{display:flex;justify-content:space-between}.class-status-progress b{color:#35445d}.class-status-progress .class-progress-track{height:6px;width:100%}
@media(max-width:1150px){.filter-strip{grid-template-columns:repeat(4,minmax(120px,1fr))}}
@media(max-width:1150px){.finance-summary{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.body-layout{grid-template-columns:1fr}.icon-button{display:grid}.sidebar{position:fixed;left:0;top:70px;bottom:0;width:112px;transform:translateX(-100%);transition:transform .18s}.sidebar.collapsed{width:112px;transform:none}.nav-flyout{position:fixed;left:112px;top:70px;max-height:calc(100vh - 70px)}.content{padding:0 12px 18px}#screen{padding:16px 12px}.filter-strip{grid-template-columns:repeat(2,minmax(120px,1fr))}.topbar{padding:0 14px}.center-selector{display:none}}

/* Demo header identity: stacked CENTER ONLINE wordmark. */
.brand-mark{display:grid;line-height:.86;font-size:20px;letter-spacing:-.06em;font-weight:800;color:#1473b8}.brand-mark span{display:block;color:#1473b8;font-weight:800}
/* Shared shell controls: line icons, Vietnamese date entry, compact pagination. */
.topbar-icon svg,.center-selector-icon svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.center-selector-icon{display:inline-flex;align-items:center}.center-selector-icon svg{width:16px;height:16px}
.topbar-icon sup{line-height:12px}
[data-date-input],input[placeholder="dd/mm/yyyy"]{font-variant-numeric:tabular-nums;letter-spacing:.01em}
.table-pagination{display:inline-flex;align-items:center;gap:3px}.table-pagination .table-page{min-width:28px;padding:5px 7px}.table-pagination .table-page.active{background:var(--reference-teal);color:#fff}.table-pagination .table-prev,.table-pagination .table-next{font-size:18px;line-height:1;padding:3px 8px}

/* Rail and shared form controls. Keep icon geometry independent of inherited text styles. */
.nav-rail-icon{display:grid;place-items:center;width:26px;height:26px;font-size:0;line-height:0}
.nav-rail-icon svg.nav-svg-icon{display:block!important;visibility:visible!important;opacity:1!important;width:26px;height:26px;flex:0 0 26px;overflow:visible;fill:none!important;stroke:#83cdec!important;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:#83cdec!important}
.nav-rail-item.active .nav-rail-icon svg.nav-svg-icon,.nav-rail-group.open>.nav-rail-item .nav-rail-icon svg.nav-svg-icon{stroke:#fff!important;color:#fff!important}
.nav-rail-icon svg.nav-svg-icon path,.nav-rail-icon svg.nav-svg-icon circle,.nav-rail-icon svg.nav-svg-icon line,.nav-rail-icon svg.nav-svg-icon rect{vector-effect:non-scaling-stroke}
.home-training-link{margin-left:auto;margin-bottom:10px}
.home-attendance{margin-top:0}
.home-attendance-table .table-card{box-shadow:none}
.home-trends{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.15fr) minmax(220px,.7fr);gap:18px;margin-top:22px}
.home-chart,.home-signups{padding:20px;min-height:170px}
.home-chart h2{font-size:15px;font-weight:650;margin:0 0 24px}
.home-chart-grid{height:108px;display:flex;align-items:end;justify-content:space-around;gap:8px;border-bottom:1px solid var(--line);padding:0 6px}
.home-chart-col{display:flex;align-items:center;flex:1;min-width:0;height:100%;flex-direction:column;justify-content:end;gap:7px}
.home-bars{display:flex;align-items:end;justify-content:center;gap:3px;height:82px;width:100%}
.home-bar{display:block;width:7px;border-radius:3px 3px 0 0;min-height:4px}
.home-bar.blue{background:#3e6bf4}.home-bar.teal{background:#2bc0a0}.home-bar.amber{background:#f6a623}
.home-chart-col small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.home-signups{display:grid;align-content:center;gap:15px}
.home-signups p{display:flex;align-items:center;gap:8px;margin:0;color:#2bc0a0;font-size:12px}.home-signups p:first-child{color:#3e8ff4}.home-signups b{font-weight:600;margin-right:auto}.home-signups strong{font-size:25px;font-weight:650}
.home-activity{padding:20px}
@media(max-width:900px){.home-trends{grid-template-columns:1fr}.home-training-link{width:100%;margin:0 0 12px}.home-chart-grid{height:120px}}
.screen-head button[id*="import"],.screen-head button[id*="upload"],.upload-action{background:#2f9ed8;color:#fff}
.screen-head button[id*="import"]:hover,.screen-head button[id*="upload"]:hover,.upload-action:hover{background:#238ac1}
select[multiple]{min-height:96px;padding:6px 8px}
select[multiple] option:checked{background:linear-gradient(0deg,#e8f6fc,#e8f6fc);color:#168fcd}
.select2-container{display:block;position:relative;width:100%;min-height:36px}
.select2-container .select2-selection--multiple{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-height:36px;padding:5px 8px;border:1px solid #dfe5ee;border-radius:4px;background:#fff;color:#56657d}
.select2-container .select2-selection__rendered{display:flex;flex-wrap:wrap;gap:5px;margin:0;padding:0;list-style:none}
.select2-container .select2-selection__choice{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border:1px solid #b8dff2;border-radius:12px;background:#edf8fd;color:#168fcd;font-size:11px;line-height:1.2}
.select2-container .select2-selection__choice__remove{border:0;background:transparent;color:#168fcd;font-size:14px;line-height:1;padding:0;cursor:pointer}
.potential-status-summary{display:flex;gap:18px;align-items:center;margin:0 0 8px;color:#5d6b82;font-size:12px}.potential-status-summary span.is-new{color:#36a9e1}.potential-status-summary span.is-contacted{color:#e89a2e}.potential-status-summary span.is-success{color:#21a889}.potential-status-summary span.is-lost{color:#d66676}.potential-status-strip{display:none}.potential-status-card{display:none}.potential-total{display:flex;align-items:center;gap:6px;margin:12px 0 8px;color:#59677e;font-size:13px}.potential-total b{color:#2d405d;font-size:16px}.potential-customer-cell{display:inline-flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;line-height:1.25}.potential-customer-cell small{color:#8490a6;font-size:10px;font-weight:500}.potential-tag{color:#f0a22e;font-size:18px;line-height:1}.care-progress{display:grid;gap:4px;min-width:78px;color:#52627a;font-size:11px}.care-progress i{display:block;height:5px;overflow:hidden;border-radius:4px;background:#edf0f5}.care-progress i b{display:block;height:100%;border-radius:inherit;background:var(--reference-teal)}
.potential-insights{background:#fff;color:#56627a}.potential-insights-head{display:flex;align-items:center;justify-content:space-between;min-height:54px;padding:0 22px;border-bottom:1px solid #edf0f6}.potential-insights-summary{display:flex;align-items:center;gap:14px;font-size:13px}.potential-insights-icon{width:32px;height:26px;flex:0 0 32px;color:#292e32}.potential-insights-summary span{font-weight:400}.potential-insights-toggle{width:30px;height:30px;padding:0;border:0;background:transparent;color:#a0a1b4;font-size:21px;font-weight:300;cursor:pointer}.potential-insights-body{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:24px;align-items:start;padding:20px 70px 36px 0;min-height:538px}.potential-insights-body[hidden]{display:none}.potential-donut-panel,.potential-trend-panel{min-width:0}.potential-donut-panel svg{display:block;width:100%;max-width:628px;height:auto}.potential-trend-panel svg{display:block;width:100%;max-width:450px;height:auto;margin:0 auto}.potential-insights-body svg text{font:11px "Lucida Grande","Lucida Sans Unicode",Arial,Helvetica,sans-serif}.potential-donut-panel svg text{font-weight:bold;fill:#000}.potential-chart-legend text{font-size:13px!important;font-weight:bold!important;fill:#333}.potential-axis-title{font-size:12px!important}.potential-chart-slice:focus{outline:none}.potential-chart-slice:focus>path:first-of-type,.potential-chart-slice:hover>path:first-of-type{filter:brightness(1.08)}.potential-chart-slice:focus>rect,.potential-chart-slice:hover>rect{fill:#527dff}.potential-chart-empty{font-weight:400!important;fill:#8490a6!important}
@media(max-width:800px){.potential-insights-body{grid-template-columns:minmax(0,1fr);padding:16px 10px;min-height:0}.potential-insights-head{padding:12px 14px}.potential-insights-summary{font-size:12px;gap:8px;align-items:flex-start}.potential-insights-summary>div{line-height:1.8}.potential-insights-toggle{flex:0 0 30px}.potential-trend-panel svg{max-width:450px}}

@media(max-width:900px){.potential-status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Route-owned visual parity: the observed contract filter uses compact
   collapsed controls. Keep the native options available while clipping the
   multi-select list to the same single-row affordance as the reference. */
#screen .filter-strip:has([data-finance-contract-filter]) select[multiple][data-finance-contract-filter]{height:36px;min-height:36px;max-height:36px;overflow:hidden;padding:7px 10px}
#screen .filter-strip:has([data-finance-contract-filter]){align-items:center;row-gap:9px}
#screen .filter-strip:has([data-finance-contract-filter]) label{min-width:0}

/* U06/U07 route parity: the observed test/homework screens use a compact
   card. Keep this styling route-owned; other training screens have different
   card, title, and filter contracts. */
#screen[data-training-observed-route="/training/test"],
#screen[data-training-observed-route="/training/homework"]{min-height:0}
#screen[data-training-observed-route="/training/test"]>h1,
#screen[data-training-observed-route="/training/homework"]>h1{display:block;margin:-20px -22px 20px;padding:13px 22px;font-size:18px;line-height:22px;font-weight:600;color:#35445d;border-bottom:1px solid #edf0f5}
#screen[data-training-observed-route="/training/test"] .training-observed-heading-icon,
#screen[data-training-observed-route="/training/homework"] .training-observed-heading-icon{display:inline-flex;width:20px;height:20px;margin-right:12px;vertical-align:-4px;color:#aeb4c9}
#screen[data-training-observed-route="/training/test"] .training-observed-heading-icon svg,
#screen[data-training-observed-route="/training/homework"] .training-observed-heading-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#screen[data-training-observed-route="/training/test"] .training-observed-actions,
#screen[data-training-observed-route="/training/homework"] .training-observed-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;min-height:43px;margin:0 0 16px;padding:0 0 10px;border-bottom:1px solid #edf0f5}
#screen[data-training-observed-route="/training/test"] .training-observed-actions button,
#screen[data-training-observed-route="/training/homework"] .training-observed-actions button{height:32px;padding:0 12px;border-radius:4px;font-size:12px}
#screen[data-training-observed-route="/training/test"] .training-observed-filters,
#screen[data-training-observed-route="/training/homework"] .training-observed-filters{margin:0 0 15px}
#screen[data-training-observed-route="/training/test"] .training-observed-filters label,
#screen[data-training-observed-route="/training/homework"] .training-observed-filters label{min-width:0}
@media(min-width:1151px){
  #screen[data-training-observed-route="/training/test"] .training-observed-filters,
  #screen[data-training-observed-route="/training/homework"] .training-observed-filters{grid-template-columns:110px 182px 251px 182px}
}

.training-teacher-timetable-screen{background:#fff;padding:20px 24px}
.training-teacher-timetable-screen h1{margin:0 0 18px;font-size:20px}
.training-teacher-timetable-screen .training-observed-filters{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:16px;margin-bottom:16px}
.training-teacher-timetable-screen .training-observed-filters label{display:grid;gap:6px}
.training-teacher-timetable-screen .training-observed-filters select{width:100%;min-width:0;height:36px}
.training-teacher-timetable-screen .training-route-status{margin:0 0 10px}
.training-teacher-timetable-screen .table-card{margin-top:16px}
.training-teacher-timetable-screen .timetable-grid{min-width:980px;width:100%;border-collapse:collapse}
.training-teacher-timetable-screen .timetable-grid thead th{background:#4a9ed6;color:#fff;text-align:center;min-width:125px;white-space:pre-line}
.training-teacher-timetable-screen .timetable-grid tbody th{background:#c7cada;white-space:nowrap}
.training-teacher-timetable-screen .timetable-grid tbody tr{height:88px}
.training-teacher-timetable-screen .timetable-grid td{vertical-align:top;padding:12px;font-size:12px}
.training-teacher-timetable-screen .timetable-matrix-session{display:grid;gap:4px;border:1px solid #dce1ef;border-radius:4px;padding:8px;margin:2px 0}
@media(max-width:900px){.training-teacher-timetable-screen{padding:14px}.training-teacher-timetable-screen .training-observed-filters{grid-template-columns:1fr}}

.teacher-row-actions{display:flex;align-items:flex-start;gap:6px}
.teacher-row-menu{position:relative}
.teacher-row-menu summary{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:#4a62d8;cursor:pointer;list-style:none}
.teacher-row-menu summary::-webkit-details-marker{display:none}
.teacher-row-menu summary:hover,.teacher-row-menu summary:focus-visible{background:#eef3ff}
.teacher-row-menu-list{position:absolute;top:calc(100% + 4px);right:0;z-index:5;display:grid;min-width:158px;padding:4px;border:1px solid #dce1ef;border-radius:4px;background:#fff;box-shadow:0 6px 20px rgba(24,35,62,.12)}
.teacher-row-menu:not([open]) .teacher-row-menu-list{display:none}
tr:last-child .teacher-row-menu-list{top:auto;bottom:calc(100% + 4px)}
#branch-first-setup{padding:6px 10px;border:1px solid #2bbbad;border-radius:4px;background:#ecfbf7;color:#168f7d;font-size:11px;white-space:nowrap}
#branch-first-setup:hover,#branch-first-setup:focus-visible{background:#d9f8f0}
.teacher-row-menu-list button{padding:8px 10px;text-align:left;background:transparent;color:#36405b;font-size:12px}
.teacher-row-menu-list button:hover,.teacher-row-menu-list button:focus-visible{background:#eef3ff}

/* Keep narrow viewports bounded by the shell. Wide data tables retain their
   horizontal scroll inside `.table-wrap`, while filters and cards stay within
   the viewport instead of widening the document. */
@media(max-width:900px){
  .body-layout,.content,#screen{min-width:0}
  .content{overflow:hidden}
  .topbar{min-width:0;overflow:hidden}
  .topbar-left{min-width:0;flex:1 1 auto;overflow:hidden}
  .topbar-actions{min-width:0;max-width:55vw;flex:0 1 55vw;overflow:hidden;gap:4px}
  .topbar-actions .topbar-icon{flex:0 0 30px}
  .topbar-actions .language-button,.topbar-actions .avatar-menu{flex:0 0 auto}
  #screen .table-wrap{max-width:100%;overflow-x:auto}
  #screen .filter-strip{min-width:0;max-width:100%}
  #screen .filter-strip label{min-width:0!important;max-width:100%}
}

/* Child contract routes contain intentionally wide import previews. Keep the
   page shell bounded and put the wide table's scroll inside its own wrapper. */
@media(min-width:901px){.body-layout{grid-template-columns:112px minmax(0,1fr)}}
/* The compact rail is desktop-only. This final override keeps narrow screens
   on one content column after the shared rail rule above. */
@media(max-width:900px){.body-layout{grid-template-columns:1fr}}
/* Keep confirmation/forms usable inside short mobile viewports. */
@media(max-width:600px){
  .modal{max-height:calc(100vh - 32px);overflow:auto;padding:18px}
  .modal .form-actions{flex-wrap:wrap}
}
.content{min-width:0}
#screen .w6-table-card{min-width:0;max-width:100%;overflow:hidden}
#screen .w6-table-card .table-wrap{max-width:100%;overflow-x:auto}
#screen:has(.finance-contract-upload-screen){min-width:0;max-width:100%;overflow:hidden}
.finance-contract-upload-screen{min-width:0;max-width:100%;overflow:hidden}
.finance-contract-upload-screen .upload-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;max-width:100%}
.finance-contract-upload-screen .table-wrap{max-width:100%;overflow-x:auto}
.finance-contract-upload-screen .finance-contract-upload-table{min-width:1500px}

/* Reference layout: address correction saves after the empty table. */
.upload-address-save {
  display: flex;
  justify-content: flex-end;
  padding: 14px 0 0;
}
.upload-address-save .w6-action { min-width: 80px; }
.upload-address-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0 0; color:#1f2430; font-size:13px; }
.upload-address-footer label { margin-left:auto; display:flex; align-items:center; gap:8px; }
.upload-address-footer select { min-width:76px; height:30px; }
.upload-address-pagination { display:flex; gap:8px; }
.upload-address-pagination button { width:30px; height:30px; border:0; border-radius:50%; color:#b9bec8; background:#f0f1f6; font-size:20px; line-height:1; }
.upload-address-save { padding-top:14px; }
.upload-address-save .upload-save { min-width:80px; background:#6ed4c1; color:#fff; border-color:#6ed4c1; }
.upload-address-customer-screen .w6-table-card table { min-width:1105px; table-layout:fixed; }
.upload-address-customer-screen .w6-table-card{margin-top:45px!important}
.upload-address-customer-screen .w6-table-card .table-wrap{width:calc(100% - 62px);max-width:calc(100% - 62px);margin:0 39px 0 23px}
#screen.upload-address-customer-screen .w6-table-card th{height:100px}
#screen.upload-address-customer-screen .w6-table-card .empty-row td{height:40px;padding-top:7px;padding-bottom:7px}
#screen.upload-address-customer-screen .upload-address-footer{padding-top:37px}
.upload-address-customer-screen .w6-table-card th:nth-child(1),.upload-address-customer-screen .w6-table-card td:nth-child(1){width:62px}
.upload-address-customer-screen .w6-table-card th:nth-child(2),.upload-address-customer-screen .w6-table-card td:nth-child(2){width:84px}
.upload-address-customer-screen .w6-table-card th:nth-child(3),.upload-address-customer-screen .w6-table-card td:nth-child(3){width:64px}
.upload-address-customer-screen .w6-table-card th:nth-child(4),.upload-address-customer-screen .w6-table-card td:nth-child(4){width:101px}
.upload-address-customer-screen .w6-table-card th:nth-child(5),.upload-address-customer-screen .w6-table-card td:nth-child(5){width:81px}
.upload-address-customer-screen .w6-table-card th:nth-child(6),.upload-address-customer-screen .w6-table-card td:nth-child(6){width:82px}
.upload-address-customer-screen .w6-table-card th:nth-child(7),.upload-address-customer-screen .w6-table-card td:nth-child(7){width:67px}
.upload-address-customer-screen .w6-table-card th:nth-child(8),.upload-address-customer-screen .w6-table-card td:nth-child(8){width:75px}
.upload-address-customer-screen .w6-table-card th:nth-child(9),.upload-address-customer-screen .w6-table-card td:nth-child(9){width:78px}
.upload-address-customer-screen .w6-table-card th:nth-child(10),.upload-address-customer-screen .w6-table-card td:nth-child(10){width:73px}
.upload-address-customer-screen .w6-table-card th:nth-child(11),.upload-address-customer-screen .w6-table-card td:nth-child(11){width:80px}
.upload-address-customer-screen .w6-table-card th:nth-child(12),.upload-address-customer-screen .w6-table-card td:nth-child(12){width:76px}
.upload-address-customer-screen .w6-table-card th:nth-child(13),.upload-address-customer-screen .w6-table-card td:nth-child(13){width:73px}
.upload-address-customer-screen .w6-table-card th:nth-child(14),.upload-address-customer-screen .w6-table-card td:nth-child(14){width:109px}
@media(min-width:901px){
  #screen.upload-address-screen{min-height:0;height:415px;padding-top:28px;}
  #screen.upload-address-customer-screen{height:452px;}
  #screen.upload-address-screen .w6-table-card{margin-top:30px;}
  #screen.upload-address-screen th{white-space:normal;line-height:1.25;padding:14px 9px;font-size:11px;}
  #screen.upload-address-screen td{padding:14px 9px;height:40px;}
  #screen.upload-address-screen .upload-address-footer{padding-top:20px;}
  #screen.upload-address-customer-screen .upload-address-footer{padding-top:37px;}
  #screen.upload-address-screen .upload-address-save{padding-top:14px;}
  #screen.upload-address-screen .upload-save{height:38px;padding:8px 18px;}
}
.crm-target-heading{display:flex;align-items:center;min-height:48px;padding:0 14px;border-bottom:1px solid #edf0f5}
.crm-target-heading h1{margin:0;font-size:17px;font-weight:600;color:#171b25}
.crm-target-heading h1 span{color:#8894b5;font-size:17px;margin-right:8px}
.crm-target-filters{margin:48px 14px 16px;align-items:center}
.crm-target-select{position:relative;display:block;min-width:124px;flex:0 0 auto!important}
.crm-target-select-button{display:flex;align-items:center;justify-content:space-between;width:100%;height:36px;padding:0 12px;border:1px solid #dfe5ee;border-radius:4px;background:#fff;color:#52627c;font-size:13px;text-align:left}
.crm-target-select-button span{color:#8894b5;margin-left:12px}
.crm-target-select select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.crm-target-table-card{overflow:hidden}
.crm-target-table-card th,.crm-target-table-card td{padding:12px 14px;white-space:nowrap}
.crm-target-table-card th{font-size:13px;text-transform:none;letter-spacing:0;color:#172033;background:#fff}
.crm-target-aux-header,.crm-target-aux-cell{display:none}
@media(max-width:900px){.crm-target-filters{margin:24px 0 14px}.crm-target-select{min-width:0;flex:1 1 160px!important}.crm-target-heading{padding:0}}
/* Shell containment: dashboard trend cards must shrink inside the mobile work card. */
.home-trends{min-width:0;width:100%}
.home-trends>*{min-width:0;max-width:100%}
.modal .primary.danger{background:#dc3545;color:#fff}.modal .primary.danger:hover{background:#b42318}

/* Report-owned boundaries: wide tables scroll inside their own card on both
   desktop and mobile. Intrinsic table width must never size the outer card. */
#screen:has(.report-table-container)>section.card{min-width:0;max-width:100%;overflow:hidden}
#screen .report-table-container{min-width:0;width:100%;max-width:100%}
#screen .report-table-scroll{min-width:0;width:100%;max-width:100%;overflow-x:auto}
#screen .report-table-scroll table{min-width:100%;width:max-content}
#screen .report-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;font-size:12px}
#screen .report-pagination{display:inline-flex;gap:4px;align-items:center}
#screen .report-pagination button{min-width:28px;padding:5px 8px;border-radius:50%}
#screen .report-pagination button.active{background:#7867dc;color:#fff}
#screen:has(.report-table-container) .report-export,
#screen:has(.report-table-container) .report-action[href]{display:inline-flex;align-items:center;padding:9px 16px;border-radius:4px;background:#6260df;color:#fff;text-decoration:none;font-size:12px}
#screen:has(.report-table-container) .page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
#screen:has(.report-table-container) .page-head h1{font-size:16px;font-weight:600;margin:0}
#screen .report-finance-summary{display:grid;gap:7px;margin:14px 0;font-size:12px}
#screen .report-finance-summary div{display:flex;gap:5px}
#screen .report-finance-summary b{font-weight:500}
#screen .report-finance-summary span{color:#ef526a;font-weight:600}
/* These finance headings are observed on their own reference cards. */
#screen:has(.finance-revenue-filters)>.screen-head,
#screen:has([data-finance-contract-filter])>.screen-head{justify-content:space-between}
#screen:has(.finance-revenue-filters)>.screen-head .screen-title,
#screen:has([data-finance-contract-filter])>.screen-head .screen-title{display:block}
#screen:has(.finance-revenue-filters)>.screen-head h1,
#screen:has([data-finance-contract-filter])>.screen-head h1{font-size:16px;font-weight:600;letter-spacing:0;margin:0 0 10px}
#screen:has(.finance-revenue-filters) .table-toolbar{display:none}
#screen:has(.finance-revenue-filters) .table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#screen:has(.finance-revenue-filters) .table-page-size{display:inline-flex;align-items:center;gap:6px;font-size:12px}

/* Shared shell fixed layout (report-owned CSS boundary). Keep report cards
   independent from the rail while preserving the compact mobile flow. */
@media(min-width:901px){
  .topbar{position:fixed;z-index:4;top:0;left:0;right:0;width:auto;height:68px}
  .sidebar{position:fixed;z-index:3;left:0;top:68px;bottom:0;width:112px;overflow-y:auto;overflow-x:hidden}
  .body-layout{display:block;min-height:100vh}
  .content{margin-left:112px;width:calc(100% - 112px);padding:68px 18px 32px;min-height:100vh}
  .nav-flyout{position:fixed;left:112px;top:68px;max-height:calc(100vh - 68px)}
}
/* Shared visual guardrails (UI fine CSS 2026-11-08). */
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 96px;
  box-sizing: border-box;
  resize: vertical;
}

/* Keep filter controls inside their own grid tracks at desktop and tablet widths. */
.filter-strip {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.filter-strip > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.filter-strip > label :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .select2-container, .select2-selection--multiple),
.filter-strip > :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.filter-strip .select2-container {
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
}
.filter-strip button {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.filter-strip input:is([type="checkbox"], [type="radio"]) {
  width: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 901px) and (max-width: 1150px) {
  .filter-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tab rows wrap instead of creating a second scroll area inside the screen. */
.ref-tabs {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  flex-wrap: wrap;
}
.ref-tabs .ref-tab {
  min-width: 0;
  white-space: normal;
}

/* Long tables scroll in their wrapper. Other route surfaces stay bounded. */
.table-wrap,
.table-card .table-wrap,
.w6-table-card .table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden !important;
}

/* Compact multi-select shell; native options remain available to keyboard and AT. */
#screen .filter-strip select[multiple][data-finance-contract-filter] {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  overflow-x: hidden;
  overflow-y: auto;
  resize: none;
}

/* Hidden scrollbars (keep scrolling) */
*{scrollbar-width:none;-ms-overflow-style:none}
*::-webkit-scrollbar{width:0;height:0;display:none}

/* Header popovers share one lifecycle and remain within narrow viewports. */
.topbar-panel{position:fixed;z-index:40;min-width:min(280px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:calc(100dvh - 90px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);padding:12px;font-size:13px}
.topbar-panel.notification-dropdown{width:650px}.header-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);padding:10px 0}.header-tabs button{background:#f7f9fc;color:#53627c;padding:8px;border-radius:4px;font-size:12px}.header-tabs button[aria-selected="true"]{background:#168fcd;color:#fff}.header-tabs button span{font-size:10px;margin-left:4px}.header-list{max-height:360px;overflow:auto}.header-list-item{display:block;width:100%;text-align:left;background:#fff;color:var(--ink);padding:12px 8px;border-bottom:1px solid var(--line)}.header-list-item:hover{background:#f3f8fc}.header-list-item strong,.header-list-item small{display:block}.header-list-item small,.header-source{color:var(--muted);font-size:12px;margin-top:5px}.header-source{display:block}.header-modal .header-list{margin-top:12px}.header-modal input{width:100%}

@media(max-width:700px){.topbar-panel{left:8px;right:8px!important;width:auto!important;min-width:0;max-width:calc(100vw - 16px)}}

/* Weekly Ca học setup surface observed at /setup/session. */
.session-schedule-screen{padding:0!important;min-height:0}
.session-schedule-toolbar{display:flex;justify-content:flex-end;padding:24px 24px 20px;border-bottom:1px dashed #e7ebf2}
.session-schedule-toolbar .primary{height:35px;padding:0 14px;border-radius:4px;background:#2bbf9a}
.session-schedule-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:0;overflow-x:auto;margin:40px 24px 24px;border-top:1px solid #eef0f5;border-left:1px solid #eef0f5}
.session-schedule-day{min-width:120px;border-right:1px solid #eef0f5;border-bottom:1px solid #eef0f5;background:#fff}
.session-day-head{text-align:center;padding:13px 6px;border-bottom:1px solid #eef0f5;font-size:13px;font-weight:600;color:#273348}
.session-day-body{display:grid;align-content:start;gap:12px;min-height:230px;padding:10px}
.session-schedule-item{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:66px;padding:12px 14px;border-radius:5px;background:#ddf5fc;color:#233447;font-size:13px}
.session-slot-modal{position:relative;width:min(800px,100%);padding:0;border-radius:5px;overflow:hidden}
.session-slot-modal-backdrop{z-index:50;align-items:start;padding-top:24px}
.session-slot-modal h2{height:66px;display:flex;align-items:center;padding:0 20px;background:#58c797;color:#fff;font-size:17px;font-weight:500;margin:0}
.session-slot-close{position:absolute;right:20px;top:17px;background:transparent;color:#fff;font-size:22px;line-height:1}
.session-slot-modal form{padding:34px 64px 0}
.session-slot-modal .form-grid{grid-template-columns:1fr;gap:20px}
.session-slot-modal .session-time-field{display:grid;grid-template-columns:200px minmax(0,1fr);align-items:center;gap:16px;font-weight:400;color:#495363}
.session-slot-modal .session-time-field input{height:36px;border-radius:3px;padding:7px 12px;font-size:13px}
.session-schedule-actions{display:flex;gap:5px;flex:none}
.session-schedule-actions button{padding:0 2px;background:transparent;color:#5779de;font-size:16px}
.session-schedule-actions .session-slot-delete{color:#ef5c66}
.session-day-empty{min-height:42px}
.session-slot-modal .session-weekday-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px;border:0;padding:0 0 14px;margin:0}
.session-weekday-fields legend{padding:0 0 10px;font-weight:400}
.session-weekday-fields label{display:flex;align-items:center;gap:7px;font-weight:400}
.session-weekday-fields input{width:15px;height:15px;margin:0}
.session-slot-modal .form-actions{border-top:1px solid #edf0f5;margin:0 -64px;padding:15px 16px 0}
.session-slot-modal .form-actions .primary{background:#2bbf9a;border-radius:4px;padding:10px 22px}
@media(max-width:700px){.session-schedule-grid{grid-template-columns:repeat(7,minmax(145px,1fr));margin:24px 14px;overflow-x:auto}.session-schedule-toolbar{padding:18px 14px}.session-slot-modal .session-weekday-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Dial controls observed on the authenticated reference modal. */
.call-modal-backdrop{z-index:50;overflow:auto}
.dial-modal{width:min(332px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:24px 20px 18px;background:linear-gradient(#00c4bf,#bafff5);border-radius:20px;color:#121d22}
.dial-modal h2{font-size:16px;margin:0 0 12px;text-align:center}
.dial-modal .stack{margin-top:0;gap:16px}
.dial-modal label{font-weight:400}
.dial-modal #call-phone-input{height:57px;border:0;border-radius:3px 3px 12px 3px;font-size:25px;background:#fff;color:#252c35}
.dial-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:18px 14px;justify-items:center;padding:8px 10px}
.dial-modal .dial-key{width:68px;height:68px;padding:0;border-radius:50%;background:#fff;color:#111;font:30px Georgia,serif}
.dial-modal .dial-key:hover,.dial-modal .dial-key:focus-visible{background:#e4fffb;outline:2px solid #168fcd;outline-offset:2px}
.dial-modal .dial-extension{padding:0 26px;text-align:center;font-size:14px}
.dial-modal .dial-extension input{height:32px;min-height:0;padding:5px 10px;border:0;border-radius:3px;font-size:14px}
.dial-modal .muted{font-size:11px;text-align:center;margin:0;color:#235452}
.dial-modal .form-actions{justify-content:center;margin-top:0}
.dial-modal .error{text-align:center}
@media(max-height:750px){.dial-modal .dial-key{width:54px;height:54px}.dial-keypad{gap:10px}.dial-modal .stack{gap:10px}}

.potential-insights-summary>div{display:flex;flex-wrap:wrap;gap:0 3px}.potential-owned-panel .ref-tab{font-size:13px;font-weight:400;color:#000}.potential-owned-panel .ref-tab.active{color:#000}.potential-owned-panel .ref-tab.active:after{background:#7166f9;left:0;right:0}.potential-owned-panel #potential-filter-apply{background:#c4c5d6;color:#fff}.potential-owned-panel #add-potential{background:#34bfa3;color:#fff}.potential-owned-panel .transfer-potential{background:#6364df;color:#fff}.potential-owned-panel .potential-filters{gap:12px 30px}.potential-owned-panel .potential-view-actions{gap:4px}.potential-owned-panel .potential-view-actions button{font-weight:400}.potential-owned-panel #export-potential{margin-left:-30px}.potential-owned-panel th{background:#fff;font-weight:600;color:#555}.potential-owned-panel table{min-width:1150px}.potential-owned-panel .potential-customer-cell{font-weight:400}
@media(max-width:800px){.potential-owned-panel{padding:0 14px 18px!important}.potential-owned-panel .potential-filters{gap:10px}.potential-owned-panel #export-potential{margin-left:0}.potential-owned-panel .potential-view-actions{flex-wrap:wrap;margin-left:0}.potential-owned-panel .potential-filters>label{flex:1 1 130px}.potential-owned-panel>.ref-tabs{gap:12px!important}}

/* CRM reference chart positioning; the combo chart keeps its own top axis. */
@media(min-width:801px){.potential-donut-panel svg{transform:translateY(-18px)}}
#screen .potential-owned-panel>.potential-filters{column-gap:30px}#screen .potential-owned-panel #export-potential{margin-left:-30px}#screen .potential-owned-panel .potential-view-actions{gap:4px}#screen .potential-owned-panel .potential-view-actions button{font-size:13px;font-weight:400}#screen .potential-owned-panel .ref-tab{font-size:13px;font-weight:400;padding-left:0;padding-right:0}#screen .potential-owned-panel .ref-tab.active:after{background:#5867dd;left:0;right:0}
@media(max-width:800px){#screen .potential-owned-panel>.potential-filters{column-gap:10px}#screen .potential-owned-panel #export-potential{margin-left:0}}

/* Measured reference shell tokens (authenticated desktop, 1440px). */
@media(min-width:901px){.sidebar{padding:5.3px 0 0;box-shadow:none}#reference-nav{gap:0}.nav-rail-group:first-child .nav-rail-item{min-height:83.6px}.nav-rail-item.active,.nav-rail-group.open>.nav-rail-item,.nav-rail-item:hover{background:#282a3a;color:#2192c7;font-weight:400}.nav-rail-item.active .nav-rail-icon svg.nav-svg-icon{stroke:#2192c7!important;color:#2192c7!important}.nav-rail-icon svg.nav-svg-icon{stroke:#fff!important;color:#fff!important;stroke-width:1.2}.nav-rail-item.active:after{right:0;top:36px}.nav-rail-label{max-width:110px}.topbar-icon{color:#149acf;width:34px;height:34px}.topbar-icon svg{width:22px;height:22px;stroke-width:1.1}.topbar-actions{gap:22px}.topbar-icon sup{background:#00bcd4}.center-selector{font-size:12px;font-weight:400;border-color:#36a3f7;color:#36a3f7}.breadcrumb{font-size:13px;font-weight:300}.nav-badge{top:14px;right:10px;min-width:21px;height:21px;line-height:21px;font-size:11px}}
.brand-mark img{display:block;width:82px;height:auto}.login-logo img{display:block;width:128px;height:auto;margin:auto}.topbar .brand-mark{margin-right:0;min-width:82px;letter-spacing:0}.login-logo{line-height:normal}

/* Reference login uses the purchased demo background and square logo asset. */
.login-layout{align-items:start;padding-top:171px;background:#d8e2e8 url('/images/reference-login-background.jpg') center/cover no-repeat}
.login-layout:before,.login-layout:after{display:none}
.login-card{min-height:529px;padding:20px 30px 15px;background:rgba(255,255,255,.8);border-radius:0;box-shadow:none}
.login-logo{width:300px;height:200px;margin:27px auto 20px;padding:1px;background:transparent;border:0;border-radius:0}
.login-logo img{width:auto;max-width:22vh;height:auto;max-height:22vh;margin:auto}
.login-copyright{position:absolute;top:100%;left:0;right:0;margin:0;text-align:center;color:#fff;font-size:13px;padding:10px;background:transparent}

@media(max-width:500px){.login-layout{padding-top:60px}.login-logo{width:100%;height:auto;min-height:170px}.login-card{min-height:0}}

.reference-rail-icon{font-size:26px;color:#fff}.nav-rail-item.active .reference-rail-icon{color:#2192c7}.nav-rail-group:first-child .reference-rail-icon{font-size:35px}.topbar-icon>i{font-size:22.75px}.reference-tab-icon{font-size:16px;margin-right:10px;color:#898b96}.ref-tab.active .reference-tab-icon{color:#7877e5}.nav-rail-icon:has(.reference-rail-icon){height:34px;display:grid;place-content:center}

.login-aside{display:none}.login-card{border:0;border-radius:7px;backdrop-filter:none}.login-card .remember-login input{width:18px;height:18px;min-height:18px;appearance:none;border-radius:0;border:0;background:#4c87b9}.login-card .remember-login input:checked:after{content:"✓";color:white;position:relative;left:3px;top:-1px}.login-card .stack{gap:15px}.login-card #login-error:empty{display:none}.login-support{margin-top:47px;padding-top:44px}
@media(min-width:901px){.sidebar{padding-top:0}}

.breadcrumb{display:flex;align-items:center;gap:8px;color:#898b96}.breadcrumb>a{color:#5867dd;text-decoration:none}.breadcrumb>.reference-la{font-size:16px;color:#898b96;margin-right:10px}.breadcrumb-current{color:#36a3f7}
.change-profile-screen{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;min-height:0!important;overflow:visible!important}
.change-profile-screen .profile-layout{display:grid;grid-template-columns:247px minmax(0,1fr);gap:30px;align-items:stretch;width:min(100%,calc(100vw - 166px));margin-left:1px;padding:0 0 30px;background:transparent}
.change-profile-screen .profile-card,.change-profile-screen .profile-form-card{background:#fff;border:1px solid #e7eaf2;min-height:520px}
.change-profile-screen .profile-card{text-align:center;padding:64px 18px 24px;height:100%}
.change-profile-screen .profile-avatar{width:130px;height:125px;margin:0 auto 35px;transform:translateX(-2.5px);border-radius:0;display:grid;place-items:center;color:#d9deed;background:transparent;border:0;font-size:44px}
.change-profile-screen .profile-avatar-default{background:transparent;box-shadow:none}
.change-profile-screen .profile-avatar-silhouette{width:76px;height:76px;fill:#e9f2ff;stroke:#48a6ff;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.change-profile-screen .profile-avatar-image{width:100%;height:100%;object-fit:contain;border-radius:0}
.change-profile-screen .profile-avatar-default .profile-avatar-image{border-radius:100%}
.change-profile-screen .profile-avatar-preview .profile-avatar-image{object-fit:contain;border-radius:0}
.change-profile-screen .profile-card h2{margin:0;font-size:21px;font-weight:500}
.change-profile-screen .profile-card-menu{margin-top:53px;padding:35px 0 0;border-top:1px solid #edf0f5;text-align:left}
.change-profile-screen .profile-card-menu-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 8px;border:0;border-radius:0;background:transparent;color:rgb(111,114,125);text-align:left;cursor:pointer;font-size:13px;font-weight:400;white-space:nowrap}
.change-profile-screen .profile-card-menu-item:hover,.change-profile-screen .profile-card-menu-item.active{background:transparent;color:rgb(111,114,125)}
.change-profile-screen .profile-menu-icon{width:16px;height:16px;fill:none;stroke:#a9b2c6;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round;flex:none}
.change-profile-screen .profile-form-card{padding:0 0 28px}
.change-profile-screen .profile-form-card>.ref-tabs{height:66px;margin:0;padding:0 22px;border-bottom:1px solid #e4e9f1;align-items:end}
.change-profile-screen .profile-form-card>.ref-tabs .ref-tab{height:39px;padding:9px 2px;margin-left:0;color:#525762;font-size:13px;font-weight:400}
.change-profile-screen .profile-form-card>.ref-tabs .ref-tab.active{color:rgb(33,37,41);font-weight:300}
.change-profile-screen .profile-form-card>.ref-tabs .ref-tab.active:after{left:0;right:0;background:#5867dd}
.change-profile-screen .profile-form-card>h2{font-size:22.75px;font-weight:500;margin:37px 0 30px 138px;line-height:1.2;transform:translateY(1px)}
.change-profile-screen .profile-form-card .form-grid{display:grid;grid-template-columns:1fr;gap:30px;max-width:none;width:420px;margin-left:28px;align-items:start}
.change-profile-screen .profile-form-card .form-grid>label{display:grid;grid-template-columns:82px 259px;gap:28px;grid-column:1/-1;align-items:center;text-align:right;color:rgb(63,64,71);font-size:13px;font-weight:400;margin:0}
.change-profile-screen .profile-form-card input:not([type=radio]),.change-profile-screen .profile-form-card textarea{width:259px;height:35px;border:1px solid rgb(235,237,242);border-radius:3.25px;padding:7px 10px;font-size:13px}
.change-profile-screen .profile-form-card textarea{height:auto}
.change-profile-screen .profile-gender{grid-column:1/-1;position:relative;box-sizing:border-box;height:35px;border:0;padding:0 0 0 88px;margin:0;display:flex;gap:20px;align-items:center;color:rgb(63,64,71);font-size:13px}
.change-profile-screen .profile-gender legend{position:absolute;left:0;top:9px;width:82px;margin:0;padding:0;text-align:right;font-size:13px}
.change-profile-screen .profile-gender label{display:flex;align-items:center;gap:7px;font-weight:400}
.change-profile-screen .profile-form-card .profile-avatar-field{grid-template-columns:82px 259px;align-items:start;padding-top:14px}
.change-profile-screen .profile-field-label{display:block;padding-top:0;line-height:normal}
.change-profile-screen .profile-avatar-upload{display:grid;justify-items:start;gap:6px;width:259px}
.change-profile-screen .profile-avatar-preview{width:200px;height:150px;margin-left:0;border:0;border-radius:0;display:grid;place-items:center;overflow:hidden;background:transparent}
.change-profile-screen .profile-avatar-preview .profile-avatar-preview-silhouette{width:124px;height:124px;fill:#e9f2ff;stroke:#48a6ff;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.change-profile-screen .profile-avatar-preview .profile-avatar-image{width:200px;height:150px;object-fit:fill}
.change-profile-screen .profile-avatar-trigger{height:35px;padding:0 14px;border-radius:3.25px;background:#2abfa1;color:#fff;font-size:13px;font-weight:400;white-space:nowrap}
.change-profile-screen .profile-avatar-trigger:hover{background:#1eab8d}
.change-profile-screen .profile-avatar-upload input[type=file]{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;padding:0!important;opacity:0;pointer-events:none}
.change-profile-screen .profile-form-card .form-grid>h2{grid-column:1/-1;margin:0}
.change-profile-screen .profile-form-card .account-heading{font-size:22.75px;font-weight:500;line-height:1.2;margin:0 0 -2px 0}
.change-profile-screen .profile-form-card .form-actions.wide{grid-column:1;margin-left:110px;justify-content:flex-start}
.change-profile-screen .profile-form-card .form-actions.wide .primary{width:98px;height:38px;padding:0;border-radius:3.25px;background:rgb(0,197,220);font-size:13px;font-weight:400}
.change-profile-screen .profile-form-card .form-actions.wide .primary:hover{background:rgb(0,181,203)}
.change-profile-screen .profile-form-card .error{grid-column:1;margin-left:110px}
@media(min-width:1201px){.change-profile-screen .profile-layout{grid-template-columns:296px minmax(0,1fr)}.change-profile-screen .profile-card{padding-left:18px;padding-right:18px}.change-profile-screen .profile-form-card>h2{margin-left:178px}.change-profile-screen .profile-form-card .form-grid{width:508px}.change-profile-screen .profile-form-card .form-grid>label{grid-template-columns:122px 358px}.change-profile-screen .profile-form-card input:not([type=radio]),.change-profile-screen .profile-form-card textarea{width:358px}.change-profile-screen .profile-gender{padding-left:128px}.change-profile-screen .profile-gender legend{width:122px}.change-profile-screen .profile-avatar-field{grid-template-columns:122px 358px!important}.change-profile-screen .profile-avatar-upload{width:358px}.change-profile-screen .profile-form-card .form-actions.wide,.change-profile-screen .profile-form-card .error{margin-left:150px}}
@media(max-width:1000px){.change-profile-screen .profile-layout{grid-template-columns:247px minmax(0,1fr);width:100%}.change-profile-screen .profile-form-card .form-grid{width:100%;max-width:420px}}
@media(max-width:1200px){.change-profile-screen .profile-layout{margin-left:-14px;gap:15px}.change-profile-screen .profile-form-card .form-grid{margin-left:8px}.change-profile-screen .profile-form-card .form-grid>label{grid-template-columns:116px 259px;gap:15px}.change-profile-screen .profile-gender{padding-left:122px}.change-profile-screen .profile-gender legend{width:116px}.change-profile-screen .profile-avatar-field{grid-template-columns:116px 259px!important}.change-profile-screen .profile-avatar-upload{width:259px}.change-profile-screen .profile-form-card .form-actions.wide,.change-profile-screen .profile-form-card .error{margin-left:110px}.change-profile-screen .profile-form-card>h2{margin-left:138px}.change-profile-screen .profile-form-card{margin-left:0;padding-left:0}.change-profile-screen .profile-form-card>.ref-tabs{margin-left:0;padding-left:22px}}
@media(max-width:700px){.change-profile-screen .profile-layout{grid-template-columns:1fr;width:100%}.change-profile-screen .profile-card{min-height:0}.change-profile-screen .profile-form-card{min-height:0}.change-profile-screen .profile-form-card .form-grid{grid-template-columns:1fr;width:100%;max-width:none;margin-left:0}.change-profile-screen .profile-form-card .form-grid>label{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px}.change-profile-screen .profile-form-card input:not([type=radio]),.change-profile-screen .profile-form-card textarea{width:100%}.change-profile-screen .profile-form-card .form-actions.wide,.change-profile-screen .profile-form-card .error{margin-left:0}}
.avatar-circle{overflow:hidden}
.avatar-circle .header-avatar-silhouette{width:31px;height:31px;fill:#e9f2ff;stroke:#48a6ff;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.avatar-circle .header-avatar-image{width:100%;height:100%;object-fit:cover;border-radius:50%}
.avatar-circle .header-avatar-default{object-fit:cover}
.language-button{font-size:0}
.language-button::before{content:'★';font-size:12px;color:#ffd34e;line-height:1}

/* FIX-08: wide profile geometry only.  The reference expands the profile
   card/form with the viewport; keep the 1124px contract in the prior media
   rule and scope every override to this screen. */
@media(min-width:1201px){
  .change-profile-screen .profile-layout{grid-template-columns:357px minmax(0,1fr);gap:30px}
  .change-profile-screen .profile-form-card>h2{margin-left:201px}
  .change-profile-screen .profile-form-card .form-grid{grid-template-columns:450px 450px;width:915px;margin-left:7px;column-gap:15px;row-gap:30px}
  .change-profile-screen .profile-form-card .form-grid>label,
  .change-profile-screen .profile-form-card .profile-gender,
  .change-profile-screen .profile-form-card .profile-avatar-field,
  .change-profile-screen .profile-form-card .form-grid>h2,
  .change-profile-screen .profile-form-card .form-actions.wide,
  .change-profile-screen .profile-form-card .error{grid-column:1/-1}
  .change-profile-screen .profile-form-card .form-grid>label.profile-general-field,
  .change-profile-screen .profile-form-card .form-grid>label.profile-account-field,
  .change-profile-screen .profile-form-card .profile-avatar-field{grid-template-columns:186px minmax(0,434px);gap:15px}
  .change-profile-screen .profile-form-card input:not([type=radio]),
  .change-profile-screen .profile-form-card textarea{width:434px}
  .change-profile-screen .profile-form-card .profile-gender{padding-left:201px;transform:translateY(-8px)}
  .change-profile-screen .profile-form-card .profile-gender legend{width:186px;height:34px;display:flex;align-items:center;font-weight:400}
  .change-profile-screen .profile-form-card .profile-avatar-field{grid-template-columns:186px 434px!important;padding-top:0}
  .change-profile-screen .profile-form-card .profile-field-label{height:201px;display:flex;align-items:flex-start}
  .change-profile-screen .profile-form-card .profile-avatar-upload{width:434px}
  .change-profile-screen .profile-form-card .profile-avatar-preview{width:200px;height:150px}
  .change-profile-screen .profile-form-card .profile-account-field{grid-column:span 1!important;grid-template-columns:186px 249px!important;width:450px}
  .change-profile-screen .profile-form-card .profile-account-field input{width:249px}
  .change-profile-screen .profile-form-card .profile-account-note{grid-column:2!important;grid-template-columns:186px 249px!important;width:450px}
  .change-profile-screen .profile-form-card .profile-account-note textarea{width:249px;height:35px;min-height:35px}
  /* FIX-08: align the preview/button column with the demo input column. */
  .change-profile-screen .profile-form-card .profile-avatar-upload{transform:translate(50px,-2px)}
  .change-profile-screen .profile-form-card .account-heading{margin-left:200px;transform:translateY(3px)}
  .change-profile-screen .profile-form-card .profile-account-field{grid-column:span 1!important;min-width:450px}
  .change-profile-screen .profile-form-card .profile-account-note{grid-column:2!important;min-width:450px}
  .change-profile-screen .profile-form-card>.ref-tabs .ref-tab.active{color:rgb(33,37,41)!important}
  .change-profile-screen .profile-form-card>.ref-tabs .ref-tab.active:after{left:0;right:auto;width:94px;background:#353942}
  .change-profile-screen .profile-form-card .form-actions.wide,
  .change-profile-screen .profile-form-card .error{margin-left:201px}
}

/* Header component residuals from the paired capture. */
@media(min-width:901px){
  .sidebar{background:#1f2230}
  .topbar-icon sup{background:#1ec1d3;color:#fff}
  .topbar-icon[title="Lịch"] sup{background:#1ec1d3}
}

/* Shared request feedback for list loads and every API-backed mutation. */
.request-feedback{position:fixed;top:82px;right:24px;z-index:60;display:flex;align-items:center;gap:10px;min-width:196px;max-width:min(360px,calc(100vw - 32px));padding:11px 16px;overflow:hidden;border:1px solid #b9dff9;border-radius:12px;background:#fff;box-shadow:0 14px 36px rgba(23,56,112,.18);color:#174777;font-size:13px;font-weight:650;animation:request-arrive .24s ease-out}
.request-feedback[hidden]{display:none!important}
.request-feedback-bar{position:absolute;top:0;left:0;width:100%;height:3px;background:linear-gradient(90deg,#2484db,#63d5df,#2484db);background-size:200% 100%;animation:request-sweep 1.1s linear infinite}
.request-feedback-spinner{width:18px;height:18px;flex:none;border:2px solid #b9dff9;border-top-color:#1688dc;border-radius:50%;animation:request-spin .7s linear infinite}
.request-feedback-dots{display:inline-flex;align-items:center;gap:3px;margin-left:auto}
.request-feedback-dots i{width:4px;height:4px;border-radius:50%;background:#1688dc;animation:request-pulse .9s ease-in-out infinite}
.request-feedback-dots i:nth-child(2){animation-delay:.15s}.request-feedback-dots i:nth-child(3){animation-delay:.3s}
.request-feedback[data-state="done"]{border-color:#b8e4d0;color:#14734e;animation:request-arrive .24s ease-out,request-finish .36s ease-out}
.request-feedback[data-state="done"] .request-feedback-spinner{border-color:#18a86f;background:#18a86f;animation:none}
.request-feedback[data-state="error"]{border-color:#f5c5c5;color:#a03232}
.request-feedback[data-state="done"] .request-feedback-bar,.request-feedback[data-state="error"] .request-feedback-bar,.request-feedback[data-state="done"] .request-feedback-dots,.request-feedback[data-state="error"] .request-feedback-dots{display:none}
.empty-data-trigger{display:inline-flex;align-items:center;justify-content:center;margin:12px auto 2px;padding:9px 14px;border:1px solid #b8d8f5;border-radius:8px;background:#eef7ff;color:#17609c;font-weight:650;transition:transform .18s ease,box-shadow .18s ease}
.empty-data-trigger:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(23,96,156,.15)}
.empty-data-prompt{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:14px 18px;background:#f7fbff;border-bottom:1px solid #e4edf8;color:#526074;text-align:center}
.empty-data-prompt .empty-data-trigger{margin:0}
.empty-data-guide{max-width:540px}.empty-data-guide p{line-height:1.5}.empty-data-steps{display:grid;gap:8px;margin:18px 0}.empty-data-steps button{text-align:left;padding:11px 13px;border:1px solid #dce8f4;border-radius:8px;background:#f6faff;color:#185586}
.empty-data-steps button:hover{background:#e8f4ff}
#screen>.empty:not(.card),.report-route-status:not(.error){display:flex;align-items:center;gap:10px;min-height:62px;color:#52708d}
#screen>.empty:not(.card):before,.report-route-status:not(.error):before{content:"";width:18px;height:18px;flex:none;border:2px solid #c8e6f8;border-top-color:#2389cf;border-radius:50%;animation:request-spin .7s linear infinite}
.report-route-status.error{padding:14px 18px;color:#a03232}.report-route-status.error button{margin-top:10px}
@keyframes request-arrive{from{opacity:0;transform:translateY(-8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes request-sweep{to{background-position:200% 0}}
@keyframes request-spin{to{transform:rotate(360deg)}}
@keyframes request-pulse{0%,70%,100%{transform:translateY(0);opacity:.45}35%{transform:translateY(-4px);opacity:1}}
@keyframes request-finish{50%{transform:scale(1.04)}}
@media(max-width:640px){.request-feedback{top:72px;right:12px;max-width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:reduce){.request-feedback,.request-feedback-bar,.request-feedback-spinner,.request-feedback-dots i,.empty-data-trigger,#screen>.empty:not(.card):before,.report-route-status:not(.error):before{animation:none!important;transition:none!important}}
.course-wizard-panel{background:#fff;border:1px solid #e5e9f0;border-radius:8px;padding:24px;margin-top:18px}
.course-wizard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.course-wizard-toolbar h2{margin:0;font-size:18px}
.course-wizard-empty{padding:28px;background:#f7f9fc;border:1px dashed #ced7e5;border-radius:8px;color:#526074}
.course-wizard-modal{max-height:calc(100vh - 40px);overflow:auto}
.course-wizard-skills{grid-column:1/-1;border:1px solid #e5e9f0;border-radius:8px;display:flex;flex-wrap:wrap;gap:12px;padding:14px}
.course-wizard-skills label{display:inline-flex;align-items:center;gap:6px;font-weight:400}
.course-wizard-skills input{width:auto}
.course-wizard-panel .table-wrap{overflow:auto}
.course-wizard-panel .small-action{margin-right:7px}
@media(max-width:640px){.course-wizard-panel{padding:16px}.course-wizard-toolbar{align-items:flex-start;flex-direction:column}.course-wizard-modal .form-grid{grid-template-columns:1fr}}
.student-template-link{display:inline-flex;align-items:center;text-decoration:none}
/* Finance bill workflow: keep calculations, schedule and payment methods readable. */
.finance-bill-dialog{width:min(1020px,96vw);max-width:1020px;max-height:92vh;overflow:auto;padding:0;border-radius:4px}
.finance-bill-header{display:flex;align-items:center;justify-content:space-between;background:#54c497;color:#fff;padding:16px 24px}
.finance-bill-header h2{margin:0;font-size:17px;font-weight:500}
.finance-bill-close{background:transparent;color:#fff;font-size:25px;line-height:1;padding:0 4px}
.finance-bill-dialog form{display:grid;gap:18px;padding:24px}
.finance-bill-dialog fieldset,.finance-bill-dialog form>section{border:1px solid var(--line);border-radius:10px;padding:14px}
.finance-bill-dialog fieldset{display:flex;flex-wrap:wrap;gap:12px 20px}
.finance-bill-dialog fieldset>label:not(:last-of-type){display:inline-flex;align-items:center;gap:7px}
.finance-bill-dialog input[type=radio]{width:16px;height:16px;margin:0;accent-color:var(--primary)}
.finance-bill-dialog fieldset>label:last-of-type{flex:1 1 100%}
.finance-bill-dialog fieldset select{display:block;width:100%;padding:8px;border:1px solid #cbd4e2;border-radius:6px;background:#fff}
.finance-bill-dialog h3{font-size:15px;margin:0 0 12px}
.finance-bill-dialog table{width:100%;min-width:800px;border-collapse:collapse}
.finance-bill-dialog th,.finance-bill-dialog td{padding:8px;border-bottom:1px solid var(--line);text-align:left}
.finance-bill-dialog td input,.finance-bill-dialog td select{width:100%;min-width:75px}
.finance-bill-dialog .bill-description{min-width:180px}
.finance-bill-dialog .bill-line-amount{white-space:nowrap}
.finance-bill-payments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.finance-bill-payments label{display:grid;gap:6px}
.finance-bill-summary{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px 28px;padding:12px;border-radius:8px;background:#f4f7ff}
#finance-bill-print{display:none}
@media(max-width:700px){.finance-bill-payments{grid-template-columns:1fr 1fr}.finance-bill-dialog{width:100vw;max-height:100vh}}
@media print{body>*:not(#finance-bill-print){display:none!important}#finance-bill-print{display:block;padding:20px;color:#111;background:#fff}#finance-bill-print table{width:100%;border-collapse:collapse}#finance-bill-print th,#finance-bill-print td{border:1px solid #aaa;padding:8px;text-align:left}}
.teacher-avatar-field{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:12px;margin-bottom:14px;border:1px solid var(--line);border-radius:8px}
.teacher-avatar-field label{display:grid;gap:5px}
.teacher-avatar-field small{color:var(--muted)}
.teacher-avatar-preview{width:72px;height:72px;object-fit:cover;border-radius:50%;border:1px solid var(--line)}
