@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root{--ink:#18243a;--muted:#8490a4;--line:#e8edf4;--blue:#3468ed;--blue2:#234ed0;--bg:#f5f7fb;--teal:#11a89a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Be Vietnam Pro',Inter,'Segoe UI',sans-serif;font-size:13px}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:.2s}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a9c2ff;outline-offset:1px}.hidden{display:none!important}.login-wrap{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr;background:#fff}.login-art{position:relative;overflow:hidden;background:linear-gradient(145deg,#122b56 0%,#1e4e93 50%,#287f9a 100%);color:white;padding:54px 8%;display:flex;flex-direction:column;justify-content:center;min-height:100vh}.brand-mark{width:60px;height:60px;border-radius:19px;background:linear-gradient(140deg,#fff,#bde9ff);color:#164c82;display:grid;place-items:center;font-size:20px;font-weight:800;box-shadow:0 10px 35px #061e4a55;letter-spacing:-1px;margin-bottom:55px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#8b9db8}.login-art .eyebrow{color:#9ddcff}.login-art h1{font-size:clamp(38px,4vw,58px);line-height:1.2;letter-spacing:-2px;margin:18px 0}.login-art p{font-size:16px;color:#d5e8ff}.login-art small{position:absolute;bottom:32px;color:#b6cde8}.art-orb{position:absolute;border:1px solid #ffffff20;border-radius:50%;pointer-events:none}.orb1{width:480px;height:480px;right:-100px;top:6%;box-shadow:0 0 0 40px #ffffff08,0 0 0 90px #ffffff05}.orb2{width:300px;height:300px;right:18%;bottom:-140px;background:#64d8ee12}.art-grid{position:absolute;inset:0;opacity:.1;background-image:linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px);background-size:40px 40px;mask-image:linear-gradient(90deg,transparent,#000)}.login-art>*:not(.art-orb):not(.art-grid){position:relative;z-index:1}.login-card{width:min(400px,82%);margin:auto;display:flex;flex-direction:column;gap:18px}.login-card h2{font-size:27px;letter-spacing:-.8px;margin:0}.muted{color:var(--muted);margin:-9px 0 8px}.login-card label,.form-card label{display:flex;flex-direction:column;gap:8px;font-weight:600;color:#3b4960}.login-card input,.form-card input,.form-card select,.form-card textarea,.filters input,.filters select{border:1px solid #dfe6f0;background:#fff;border-radius:9px;padding:12px 13px;color:var(--ink);min-width:0}.login-card input{padding:14px}.login-card input:focus,.form-card input:focus,.form-card select:focus,.form-card textarea:focus{border-color:#7ba1ff;outline:none;box-shadow:0 0 0 3px #3468ed14}.primary{border:0;border-radius:9px;background:var(--blue);color:white;padding:12px 17px;font-weight:700;box-shadow:0 5px 12px #3468ed20}.primary:hover{background:var(--blue2);transform:translateY(-1px)}.wide{width:100%;padding:14px;display:flex;justify-content:space-between}.login-foot{border-top:1px solid var(--line);padding-top:18px;text-align:center;color:#9ba5b6;font-size:11px}.error{color:#d13c4a;font-size:12px;min-height:0}.app{min-height:100vh}.sidebar{width:245px;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:25px 16px;z-index:3}.side-brand{display:flex;align-items:center;gap:11px;padding:0 8px 35px}.brand-mark.small{width:42px;height:42px;border-radius:13px;font-size:15px;margin:0;flex-shrink:0}.side-brand b{display:block;font-size:11px;letter-spacing:.2px}.side-brand small{display:block;color:#9aa5b6;font-size:9px;letter-spacing:1.4px;margin-top:5px}.side-label{font-size:9px;color:#9aa5b6;font-weight:800;letter-spacing:1.2px;padding:0 12px 13px}.nav{width:100%;border:0;background:transparent;text-align:left;padding:12px 13px;border-radius:9px;color:#78869c;display:flex;align-items:center;gap:13px;margin-bottom:5px;font-weight:600}.nav span{font-size:19px;width:20px;text-align:center}.nav:hover{background:#f5f7fc;color:#315fc9}.nav.active{background:#edf3ff;color:var(--blue);font-weight:700}.side-bottom{margin-top:auto}.server-status{display:flex;align-items:center;gap:10px;padding:14px 10px;border:1px solid var(--line);border-radius:10px;margin-bottom:15px}.server-status i{width:8px;height:8px;background:#21bf8b;border-radius:50%;box-shadow:0 0 0 4px #21bf8b18}.server-status b,.server-status small{display:block;font-size:11px}.server-status small{color:#9ba5b6;margin-top:4px;font-size:10px}.profile{border-top:1px solid var(--line);padding:17px 3px 0;display:flex;align-items:center;gap:10px}.avatar,.top-avatar{width:35px;height:35px;border-radius:11px;background:#e3edff;color:#3564ce;display:grid;place-items:center;font-weight:800}.profile-text{min-width:0;flex:1}.profile-text b,.profile-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-text b{font-size:11px}.profile-text small{font-size:10px;color:#9ba5b6;margin-top:4px}.profile button{border:0;background:transparent;color:#8995a8;font-size:18px}.main{margin-left:245px;padding:0 34px;max-width:1800px}.topbar{height:104px;display:flex;align-items:center;justify-content:space-between}.crumb{font-size:11px;color:#9aa5b6;margin-bottom:9px}.crumb span{padding:0 8px;color:#c4ccd8}.crumb b{color:#617089;font-weight:600}.topbar h1{font-size:22px;letter-spacing:-.5px;margin:0}.top-right{display:flex;align-items:center;gap:17px}.today{color:#718097;font-size:11px}.top-avatar{width:38px;height:38px;border-radius:50%}.view{animation:fadein .3s ease}@keyframes fadein{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.welcome{border-radius:16px;background:linear-gradient(110deg,#214fba,#3875ee 60%,#58a8e8);color:#fff;min-height:168px;padding:28px 34px;display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden}.welcome:after{content:'';position:absolute;width:290px;height:290px;border:1px solid #ffffff22;border-radius:50%;right:5%;top:-90px;box-shadow:0 0 0 28px #ffffff08,0 0 0 60px #ffffff06}.eyebrow.light{color:#c2dcff}.welcome h2{font-size:24px;margin:12px 0 7px;letter-spacing:-.6px}.welcome h2 span{color:#ffda76}.welcome p{margin:0;color:#dbe8ff;font-size:12px}.welcome-symbol{font-size:76px;color:#ffffff55;z-index:1;margin-right:6%}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:20px 0 30px}.stat-card{background:#fff;border:1px solid #edf0f6;border-radius:13px;padding:17px 18px;min-width:0}.stat-icon{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;font-size:19px;margin-bottom:15px}.blue{background:#eaf0ff;color:#416fe5}.amber{background:#fff3d9;color:#dc9b1a}.green{background:#e2f8ef;color:#18a67b}.purple{background:#f0e9ff;color:#8856dc}.stat-card>span{font-size:11px;color:#8290a4;display:block}.stat-card strong{font-size:27px;display:block;margin:6px 0 5px;letter-spacing:-1px}.stat-card small{font-size:10px;color:#a0aaba}.stat-card .role-stat{font-size:17px;letter-spacing:0;margin:12px 0 10px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:27px 0 15px;gap:15px}.section-head h3{font-size:16px;margin:0 0 6px;letter-spacing:-.3px}.section-head p{font-size:11px;color:#8d99ac;margin:0}.text-button{border:0;background:transparent;color:var(--blue);font-weight:700}.table-card{background:white;border:1px solid #e9edf4;border-radius:12px;overflow:hidden}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th{text-align:left;background:#fafbfd;color:#8a96a9;font-size:10px;text-transform:uppercase;letter-spacing:.4px;padding:14px 17px;font-weight:700;white-space:nowrap}td{padding:14px 17px;border-top:1px solid #eff2f7;color:#546279;font-size:11px;vertical-align:middle}td b{color:#293850;font-size:11px}.doc-title{display:flex;align-items:center;gap:10px;min-width:180px}.file-type{width:34px;height:38px;border-radius:7px;background:#edf3ff;color:#3769df;display:grid;place-items:center;font-size:10px;font-weight:800;flex-shrink:0}.file-type.pdf{background:#ffeded;color:#db5555}.file-type.xls{background:#e7f8ef;color:#15976a}.file-type.ppt{background:#fff1e7;color:#d9782e}.subline{display:block;color:#9ba5b6;font-size:10px;margin-top:4px}.status{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:6px 9px;font-size:10px;font-weight:700;white-space:nowrap}.status:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.status.pending{background:#fff4dc;color:#b77c10}.status.waitbgh{background:#eaf1ff;color:#3865d0}.status.done{background:#e4f8ef;color:#14865f}.status.edit{background:#ffeded;color:#c84b53}.actions{display:flex;gap:6px;white-space:nowrap}.small-btn{border:1px solid #e5eaf2;background:#fff;border-radius:7px;padding:7px 9px;color:#52637c;font-size:10px;font-weight:700}.small-btn:hover{border-color:#a9beed;color:#315fcb}.small-btn.approve{background:#e8f8f0;border-color:#d1f0e0;color:#15825c}.empty{padding:40px;text-align:center;color:#98a3b4}.workflow{display:flex;align-items:stretch;gap:12px;margin-bottom:20px}.flow-step{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #e9edf4;border-radius:12px;padding:18px;flex:1;min-width:0}.flow-number{width:34px;height:34px;border-radius:10px;background:#eaf0ff;color:#3868e3;display:grid;place-items:center;font-weight:800;flex-shrink:0}.flow-number.teal{background:#e1f8f3;color:#159e8b}.flow-number.purple-bg{background:#f0e8ff;color:#8854d9}.flow-step b{font-size:11px}.flow-step p{color:#8d99ac;font-size:10px;line-height:1.7;margin:7px 0 0}.flow-arrow{align-self:center;color:#bdc7d7;font-size:19px}.filters{display:flex;gap:10px;margin-bottom:14px}.searchbox{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e0e6ef;border-radius:9px;padding-left:12px;color:#8491a5;flex:1}.searchbox input{border:0!important;outline:0!important;box-shadow:none!important;width:100%;padding:11px 5px!important}.filters select{min-width:170px;padding:10px}.document-head{margin-top:10px}.form-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(230px,.8fr);gap:22px;align-items:start}.form-layout .section-head{margin-top:5px}.form-card{background:#fff;border:1px solid #e7ecf4;border-radius:13px;padding:23px;display:flex;flex-direction:column;gap:18px}.form-card label em{color:#e24e5d;font-style:normal}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-card textarea{resize:vertical;line-height:1.6}.upload-zone{border:1.5px dashed #cbd8ed;background:#f9fbff;border-radius:12px;min-height:155px;display:flex;align-items:center;justify-content:center;gap:10px;text-align:center;flex-direction:column;padding:20px;cursor:pointer}.upload-zone:hover{border-color:#5782eb;background:#f4f7ff}.upload-zone .upload-icon{font-size:25px;color:#3970e8;background:#e7efff;width:43px;height:43px;border-radius:12px;display:grid;place-items:center}.upload-zone b{font-size:12px;color:#455570}.upload-zone span{font-size:10px;color:#9aa6b7}.upload-zone input{display:none}.file-name{font-size:11px;color:#2e69d8}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #edf0f5;padding-top:17px}.secondary{border:1px solid #e0e6ef;background:white;border-radius:9px;padding:11px 16px;color:#69778d;font-weight:700}.guide-card{background:#edf4ff;border:1px solid #dce8fc;border-radius:13px;padding:22px;margin-top:54px}.guide-icon{width:35px;height:35px;border-radius:10px;background:#d7e6ff;color:#3167d9;display:grid;place-items:center;font-size:20px}.guide-card h3{font-size:14px;margin:15px 0}.guide-card ul{padding-left:17px;color:#60728e;font-size:11px;line-height:1.9}.guide-card li{margin-bottom:7px}.guide-note{border-top:1px solid #d9e5f8;padding-top:14px;margin-top:15px;color:#5276b2;font-size:10px;line-height:1.7}.user-form{margin-bottom:18px}.user-form .form-actions{border:0;padding:0}.user-form .two-col{max-width:900px}footer{padding:28px 0 20px;text-align:center;color:#a2acbb;font-size:10px}footer span{padding:0 8px}.toast{position:fixed;right:24px;bottom:24px;background:#1c2c45;color:white;padding:13px 18px;border-radius:10px;box-shadow:0 12px 35px #10213b30;z-index:10;opacity:0;transform:translateY(10px);transition:.25s;pointer-events:none;max-width:350px}.toast.show{opacity:1;transform:translateY(0)}.modal-backdrop{position:fixed;inset:0;background:#13243d66;z-index:9;display:grid;place-items:center;padding:20px}.modal{background:white;border-radius:15px;padding:25px;width:min(430px,100%);box-shadow:0 20px 70px #10213b30}.modal h3{margin:0 0 8px}.modal p{color:#7c8ba0;line-height:1.7}.modal textarea{width:100%;border:1px solid #dfe6f0;border-radius:8px;padding:12px;resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}@media(max-width:1050px){.sidebar{width:210px}.main{margin-left:210px;padding:0 22px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.form-layout{grid-template-columns:1fr}.guide-card{margin-top:0}.workflow{gap:6px}.flow-step{padding:12px}.flow-arrow{font-size:14px}}@media(max-width:720px){.login-wrap{grid-template-columns:1fr}.login-art{min-height:250px;padding:25px 8%}.brand-mark{margin-bottom:24px;width:45px;height:45px}.login-art h1{font-size:31px;margin:10px 0}.login-art p{font-size:13px}.login-art small{display:none}.login-card{padding:40px 0;width:84%}.sidebar{position:relative;width:100%;height:auto;padding:12px;display:block;border-right:0;border-bottom:1px solid var(--line)}.side-brand{padding:0 5px 12px}.side-label,.side-bottom{display:none}.nav{width:auto;display:inline-flex;margin:0 3px 0 0;padding:9px;font-size:11px}.nav span{font-size:15px;width:auto}.main{margin:0;padding:0 14px}.topbar{height:86px}.topbar h1{font-size:19px}.today{display:none}.welcome{padding:22px;min-height:150px}.welcome h2{font-size:21px}.welcome-symbol{font-size:48px;margin-right:0}.stats{gap:9px;margin:13px 0 22px}.stat-card{padding:13px}.stat-card strong{font-size:24px}.section-head{align-items:flex-start}.workflow{flex-direction:column}.flow-arrow{transform:rotate(90deg);align-self:center}.filters{flex-direction:column}.filters select{width:100%}.two-col{grid-template-columns:1fr}.form-card{padding:16px}.form-layout{gap:14px}.guide-card{padding:17px}.top-avatar{display:none}}

/* V3 professional review workspace */
.icon-badge{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#edf3ff;color:#315ee8;font-size:17px;margin-right:9px;flex-shrink:0}.review-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;margin-bottom:18px;border-radius:20px;background:linear-gradient(120deg,#123b68,#176e83);color:#fff;box-shadow:0 12px 28px #123b681c}.review-banner h2{margin:0 0 6px;font-size:22px}.review-banner p{margin:0;color:#d7e9f6}.review-count{font-size:34px;font-weight:800;background:#ffffff20;border:1px solid #ffffff35;border-radius:16px;padding:10px 20px}.signature-preview{min-height:130px;border:1px dashed #b8c7dd;background:#f8fbff;border-radius:14px;padding:18px;display:flex;align-items:center;justify-content:center;position:relative;margin:12px 0}.signature-preview img{max-width:220px;max-height:90px;object-fit:contain}.signature-preview .sig-placeholder{color:#8391a7;font-size:13px}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.signature-tip{background:#fff8e8;color:#805b15;padding:12px 14px;border-radius:12px;font-size:13px;line-height:1.55}.nav .nav-icon{width:24px;display:inline-grid;place-items:center;font-size:18px;margin-right:6px}.stat-card{transition:transform .18s ease,box-shadow .18s ease}.stat-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #16385a12}.status{white-space:nowrap}@media(max-width:760px){.signature-grid{grid-template-columns:1fr}.review-banner{align-items:flex-start}.review-count{font-size:26px}}

/* V4 polish: clear editing actions, audit timeline and Vietnamese typography resilience */
:root{font-family:Inter,"Segoe UI",Roboto,"Noto Sans",Arial,sans-serif}
button,input,select,textarea{font:inherit}
.small-btn.danger,.danger{color:#b42318;border-color:#fecdca;background:#fff5f4}
.small-btn.danger:hover{background:#fee4e2}
.history-modal{max-width:640px}
.timeline{display:flex;flex-direction:column;gap:0;max-height:55vh;overflow:auto;padding:8px 4px}
.timeline-item{display:grid;grid-template-columns:16px 1fr;gap:12px;position:relative;padding:0 0 20px}
.timeline-item:not(:last-child):before{content:"";position:absolute;left:6px;top:13px;bottom:-2px;width:2px;background:#dbe5f2}
.timeline-item i{width:14px;height:14px;border-radius:50%;background:#2d66d5;border:3px solid #e7efff;z-index:1;margin-top:3px}
.timeline-item b{display:block;color:#182b49;margin-bottom:3px}
.timeline-item small{display:block;color:#667085;margin-top:4px}
@media(max-width:700px){.actions{flex-wrap:wrap}.small-btn{margin:2px}.meta{grid-template-columns:1fr}}

/* V6.1 — modern accessible typography and forms */
:root{font-size:17px}body{font-size:16px;line-height:1.65}button,input,select,textarea{font:inherit!important;font-size:16px!important}label,.form-card label{font-size:15px!important}th,td,td b,.nav,.subline,.status,.small-btn,.stat-card>span,.section-head p,.guide-card ul,.flow-step p,.flow-step b,.welcome p,.form-card .file-name{font-size:14px!important}th{font-size:13px!important}h1,h2,h3{line-height:1.35}.section-head h3{font-size:21px!important}.stat-card strong{font-size:32px!important}.form-card,.table-card,.stat-card,.modal{border-radius:18px;box-shadow:0 8px 30px rgba(21,46,85,.055)}input:not([type=checkbox]),select,textarea{min-height:46px;border-radius:11px!important;transition:border-color .18s,box-shadow .18s,background .18s}input:focus,select:focus,textarea:focus{outline:2px solid #96b8fa;outline-offset:1px}button,.nav{transition:transform .15s,background .15s,box-shadow .15s}button:hover{transform:translateY(-1px)}button:active{transform:translateY(0)}.small-btn{padding:10px 13px!important}.form-card{gap:22px}.status{padding:7px 12px}.modal{width:min(540px,96vw)}@media(max-width:720px){:root{font-size:16px}td{font-size:14px!important}.nav{font-size:14px!important}.main{padding:0 16px}}

/* V6.2 readable layout */
body{font-size:17px;line-height:1.6}input,select,textarea,button{font-size:16px;min-height:44px}th,td{font-size:16px;padding:13px 15px}.statistics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:18px}.statistics-grid .form-card{margin:0}.modal label{display:block;margin:12px 0}.modal input,.modal select{width:100%;padding:10px;margin-top:5px}.modal input[type=checkbox]{width:auto;min-height:auto}

/* V6.3: form alignment, dashboard colors and readable typography */
.welcome h2{font-size:clamp(24px,3vw,36px)}.stat-card{border:1px solid transparent;transition:transform .2s ease,box-shadow .2s ease}.stat-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #142c4b18}.stats .stat-card:nth-child(4n+1){background:linear-gradient(145deg,#e5f2ff,#fff);border-color:#b9ddff}.stats .stat-card:nth-child(4n+2){background:linear-gradient(145deg,#fff0d6,#fff);border-color:#ffdb9a}.stats .stat-card:nth-child(4n+3){background:linear-gradient(145deg,#ddfaed,#fff);border-color:#9be5c1}.stats .stat-card:nth-child(4n+4){background:linear-gradient(145deg,#f0e7ff,#fff);border-color:#d4bcff}#submitForm>.two-col:first-of-type{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:18px}#submitForm>.two-col:first-of-type>label{min-width:0}#submitForm>.two-col:first-of-type select{width:100%;min-height:48px;font-size:16px}input,select,textarea,button{font-size:16px} @media(max-width:650px){#submitForm>.two-col:first-of-type{grid-template-columns:1fr}}

/* V6.4 - Lê Quý Đôn forest green design system */
:root{--ink:#17392e;--muted:#637e73;--line:#dbe9e1;--blue:#16744e;--blue2:#105a3b;--bg:#f3f8f5;--teal:#0c9c82}
body{background:var(--bg);color:var(--ink)}
.login-art{background:linear-gradient(140deg,#093d2b 0%,#116a4b 54%,#158c76 100%)}
.brand-mark{color:#105b3d;background:linear-gradient(140deg,#fff,#d9f8e5)}
.sidebar{background:#103e30!important;color:#f2fff7!important;border-color:#275c49!important}
.side-brand,.sidebar .side-label,.sidebar .side-bottom{color:#d5f2e1!important}
.sidebar .nav{color:#e0f3e9!important}.sidebar .nav.active,.sidebar .nav:hover{background:#286a50!important;color:white!important}
.welcome,.review-banner{background:linear-gradient(115deg,#10452f,#137a58 65%,#199c7c)!important;color:white!important}
.primary,button.primary{background:#126a49!important;color:white!important;border-color:#126a49!important}
.primary:hover,button.primary:hover{background:#0b5037!important;box-shadow:0 8px 22px #0b50372b}
.stat-card{border-radius:20px!important;box-shadow:0 10px 28px #104c2b0b!important}
.stats .stat-card:nth-child(4n+1){background:linear-gradient(145deg,#d8f4e4,#f7fffa)!important;border-color:#8bd9ad!important}
.stats .stat-card:nth-child(4n+2){background:linear-gradient(145deg,#fff0c8,#fffaf0)!important;border-color:#f5d17c!important}
.stats .stat-card:nth-child(4n+3){background:linear-gradient(145deg,#dceeff,#f5faff)!important;border-color:#9fcaf1!important}
.stats .stat-card:nth-child(4n+4){background:linear-gradient(145deg,#efe2ff,#fcf8ff)!important;border-color:#ceb3ef!important}
.stat-card strong{color:#164f3a!important}.stat-card:hover{transform:translateY(-5px)!important;box-shadow:0 16px 36px #104c2b1a!important}
.form-card,.table-card,.modal{border-color:#dce9e0!important;box-shadow:0 9px 30px #174d3510!important}
input:focus,select:focus,textarea:focus{outline-color:#6cbb97!important}
.icon-badge,.guide-icon{background:#e1f5e9!important;color:#116b48!important}
.stat-actions{display:flex;gap:10px;flex-wrap:wrap}.stat-actions .secondary{border:1px solid #b5d9c4;color:#145e42;background:#fff}
.stat-actions .secondary:hover{background:#e6f5ec}
@media(max-width:720px){.stat-actions{width:100%}.stat-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* V6.5: aligned form fields, wider statistics, accessible login password control */
#submitForm>.two-col{align-items:start;grid-template-columns:repeat(2,minmax(0,1fr))}
#submitForm>.two-col>label{min-width:0;display:flex;flex-direction:column;justify-content:flex-start;gap:8px}
#submitForm>.two-col>label>select,#submitForm>.two-col>label>input{width:100%;height:52px;min-height:52px;margin-top:0}
#submitForm label em{display:inline;margin-left:3px}
#submitForm>.two-col>label>.two-col{margin-top:0;align-items:center}
#submitForm>.two-col>label>.two-col input{min-width:0;width:100%;height:52px}
#submitForm>.two-col>label:has(>em){display:block}
#submitForm>.two-col>label:has(>em)>select{margin-top:8px}
.statistics-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,450px),1fr));align-items:start}
.statistics-grid .form-card{min-width:0;overflow:visible}
.statistics-grid .table-scroll{overflow-x:auto;max-height:none}
.statistics-grid table{width:100%;table-layout:auto}
.stats{grid-template-columns:repeat(4,minmax(190px,1fr))}
.stat-card{min-width:0;overflow-wrap:anywhere;padding:20px}
.stat-card .role-stat{font-size:clamp(16px,1.6vw,24px);line-height:1.35}
.password-field{display:flex;align-items:center;position:relative}
.password-field input{width:100%;padding-right:82px!important}
.password-field button{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:#e7f5ed;color:#12533e;border-radius:8px;padding:7px 12px;min-height:35px;font-weight:700;cursor:pointer}
@media(max-width:1000px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){#submitForm>.two-col{grid-template-columns:1fr}.statistics-grid{grid-template-columns:1fr}}

/* V6.6: thẻ thống kê vừa khung, nhiều màu và biểu tượng */
#view-statistics .stats{grid-template-columns:minmax(0,1fr)}
#view-statistics .stat-card{width:100%;min-width:0;white-space:normal;overflow:visible}
#view-statistics .stat-card:before{content:'📊';font-size:24px;display:block;margin-bottom:8px}
.statistics-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:18px}
.statistics-grid .form-card{min-width:0;overflow-wrap:anywhere;border-left:5px solid #19875d}
.statistics-grid .form-card:nth-child(4n+2){border-left-color:#d89b22;background:#fffaf0}
.statistics-grid .form-card:nth-child(4n+3){border-left-color:#377ec9;background:#f5faff}
.statistics-grid .form-card:nth-child(4n+4){border-left-color:#9162c8;background:#fcf8ff}
.statistics-grid .form-card:nth-child(4n+1) h3:before{content:'📋 ';}
.statistics-grid .form-card:nth-child(4n+2) h3:before{content:'📚 ';}
.statistics-grid .form-card:nth-child(4n+3) h3:before{content:'🏫 ';}
.statistics-grid .form-card:nth-child(4n+4) h3:before{content:'👩‍🏫 ';}
.statistics-grid td{white-space:normal;overflow-wrap:anywhere}
#view-documents .filters{display:flex;flex-wrap:wrap;gap:10px}#view-documents .filters select{flex:1 1 170px;min-width:0}#view-documents .searchbox{flex:2 1 220px}

.dashboard-banner{height:205px;border-radius:20px;background:linear-gradient(110deg,#123969,#286a9c);background-position:center;background-size:cover;display:flex;align-items:center;padding:32px;color:white;margin-bottom:24px;overflow:hidden}.dashboard-banner.has-image .banner-fallback{display:none}.banner-fallback{font-weight:800;font-size:clamp(20px,3vw,34px);letter-spacing:1px}.stat-rows67{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:14px}.stat-row67{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e1e7ef;border-radius:12px;padding:12px;background:#f8fafc}.stat-row67 span{min-width:0;overflow-wrap:anywhere;font-size:13px;line-height:1.35}.stat-row67 strong{flex-shrink:0;font-size:18px;color:#1c5283}.statistics-grid .form-card{min-width:0;overflow:hidden}@media(max-width:600px){.dashboard-banner{height:150px;padding:18px}.stat-rows67{grid-template-columns:1fr}}

/* V6.8 */
.dashboard-banner{height:369px}.today{font-size:16px;font-weight:800;color:#123e35;background:#e7f5ef;padding:10px 15px;border-radius:12px}.login-art{background-image:linear-gradient(90deg,rgba(7,47,39,.90),rgba(6,55,45,.52)),url('/school-building.svg');background-size:cover;background-position:center}.login-art h1,.login-art p,.login-art .eyebrow{text-shadow:0 2px 10px #09291f}.bulk-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0;padding:12px;background:#eaf4f0;border-radius:10px}.bulk-bar button{padding:9px 13px;border-radius:8px;border:1px solid #cbded6;background:#fff;color:#174f40;font-weight:700}.bulk-bar button:disabled{opacity:.4;cursor:not-allowed}.bulk-bar .danger{color:#ae2c36}.select-doc{width:17px;height:17px;accent-color:#137b60}.modal.edit-modal{width:min(920px,95vw);max-height:90vh;overflow:auto}.edit-modal .form-card{padding:0;border:0}.edit-modal .two-col{margin:0}@media(max-width:720px){.dashboard-banner{height:270px}.today{display:block;font-size:12px;padding:7px}.topbar{height:auto;min-height:95px}.login-art{background-position:center}}

/* V6.9 login refinement */
.login-art{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(4,75,56,.52),rgba(3,78,71,.16)),url('/school-building.svg') center 65%/cover no-repeat,#0d624b;animation:loginReveal 1.1s ease both}
.login-art:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,transparent 15%,rgba(255,255,255,.12) 47%,transparent 76%);animation:schoolShimmer 9s ease-in-out infinite}
.login-art h1,.login-art p,.login-art .eyebrow,.login-art .brand-mark{position:relative;z-index:2;text-shadow:0 2px 12px rgba(0,38,28,.65)}
@keyframes loginReveal{from{opacity:.5;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes schoolShimmer{0%,100%{transform:translateX(-65%)}55%{transform:translateX(65%)}}
@media(prefers-reduced-motion:reduce){.login-art,.login-art:after{animation:none}}
.year-picker{display:flex;align-items:center;gap:8px;font-weight:700;color:#114b3a}.year-picker select{max-width:160px;padding:9px;border:1px solid #d3e5dd;border-radius:9px;background:#fff}

/* V6.10: image-only login panel managed by administrator */
.login-art,.login-art:hover{background-image:url('/school-building.svg')!important;background-color:#eaf7f2!important;background-position:center center!important;background-size:cover!important;transition:background-image .35s ease,filter .45s ease!important;filter:brightness(1.08) saturate(1.08)}
.login-art:after,.login-art:before,.login-art .art-orb,.login-art .art-grid{display:none!important}
.login-art{animation:loginReveal 1s ease-out both}
@media(prefers-reduced-motion:reduce){.login-art{animation:none}}

/* V6.11: hiển thị trọn vẹn ảnh banner theo tỉ lệ ảnh gốc */
.dashboard-banner.has-image{height:auto!important;min-height:0!important;aspect-ratio:var(--banner-ratio, 16 / 5);background-size:100% 100%;background-repeat:no-repeat;padding:0!important;max-width:100%;}
.dashboard-banner.has-image::before{content:"";display:block;width:100%;}
#makeupWarning:not(:empty){padding:12px;background:#fff1e8;border:1px solid #e8a77d;border-radius:8px;}

/* V6.13 */
.identity-top{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:3px}.header-full-name{font-size:20px;font-weight:800;text-transform:uppercase;letter-spacing:.35px;line-height:1.25;color:var(--text,#172b4d)}.header-department{font-size:13px;font-weight:600;opacity:.8}.top-right{align-items:center}@media(max-width:700px){.header-full-name{font-size:16px}.identity-top{max-width:190px}}

.header-full-name{color:#123d82!important}.default-year-control{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:14px 0}.default-year-control.hidden{display:none}.default-year-control label{min-width:240px}.makeup-select{width:18px;height:18px;cursor:pointer}

/* V6.15 */
.my-account-trigger{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;padding:3px 0;cursor:pointer;color:#103b79;text-align:right}.my-account-trigger:hover .header-full-name{text-decoration:underline}.header-full-name{color:#103b79!important}.my-account-info{display:grid;gap:12px;padding:15px 0}.my-account-info div{border-bottom:1px solid #e6ebf1;padding-bottom:8px}.account-password-note{font-size:13px;color:#66758a}.modal #myPasswordForm label{display:block;margin:12px 0}.modal #myPasswordForm input{display:block;width:100%;margin-top:6px}

/* V6.16: Giữ tên tổ/bộ phận hiển thị trọn vẹn, không để banner Tổng quan che khuất. */
.topbar{height:auto;min-height:104px;padding:18px 0 22px;gap:16px;align-items:center}
.topbar>div:first-child{min-width:0;flex-shrink:0}
.top-right{min-width:0;max-width:75%;gap:14px}
.identity-top{min-width:0;max-width:100%;gap:6px}
.header-department{display:block;max-width:100%;font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;opacity:1;padding-bottom:3px}
.my-account-trigger{max-width:100%;white-space:normal;text-align:right}
.header-full-name{overflow-wrap:anywhere}
#view-dashboard .dashboard-banner{margin-top:14px}
@media(max-width:900px){.topbar{flex-wrap:wrap;align-items:flex-start;padding:16px 0 20px}.top-right{max-width:100%;width:100%;justify-content:flex-end}.identity-top{max-width:min(100%,440px)}}
@media(max-width:480px){.top-right{flex-wrap:wrap;gap:10px}.identity-top{max-width:100%}#view-dashboard .dashboard-banner{margin-top:18px}}

/* V6.18 */
.upload-zone.dragging618{border:2px dashed #2563eb!important;background:#dbeafe!important;outline:3px solid #bfdbfe}.pending618{margin:20px 0;padding:18px;border:1px solid #dbe3ef;border-radius:12px}.pending618 h3{margin-top:0}.detail618{width:min(960px,95vw);max-width:960px;max-height:92vh;overflow:auto}.detail-grid618{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detail-grid618>div{padding:10px;background:#f5f7fa;border-radius:7px;overflow-wrap:anywhere}.detail-grid618 strong,.detail-grid618 span{display:block}.detail-grid618 strong{font-size:12px;color:#596579;margin-bottom:4px}.preview618{width:100%;height:480px;border:1px solid #dce2ea;border-radius:8px}@media(max-width:650px){.detail-grid618{grid-template-columns:1fr}.preview618{height:330px}}
