:root{--navy:#183e27;--teal:#267349;--mint:#edf4e7;--text:#243c2c;--muted:#788571;--bg:#f5f7f1;--line:#e1e7d9;--white:#fff;--shadow:0 8px 26px #183e2708}*{box-sizing:border-box}body{margin:0;font-family:Arial,'Helvetica Neue',sans-serif;color:var(--text);background:var(--bg);font-size:14px;line-height:1.55}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:var(--teal)}button{border:0;background:none;color:inherit}svg{vertical-align:middle;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:27px;line-height:1.3;letter-spacing:-.5px}h2{font-size:18px}h3{font-size:15px}small,.muted{color:var(--muted)}.loading{padding:15vh 24px;text-align:center}.layout{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:var(--navy);color:#d6e5ce;position:fixed;inset:0 auto 0 0;width:250px;padding:27px 16px 16px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;gap:12px;align-items:center;padding:0 9px 26px;color:#fff}.brand img{width:44px}.brand b{font-size:13px;line-height:1.35;display:block;letter-spacing:.3px}.brand small{color:#b4c8ac;font-size:11px}.nav{overflow:auto;scrollbar-width:thin;flex:1}.nav-label{font-size:9px;font-weight:700;letter-spacing:1.8px;padding:19px 14px 8px;color:#9fb790}.nav button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;border-radius:9px;text-align:left;font-size:12px;margin:2px 0}.nav button:hover{background:#ffffff09;color:#fff}.nav button.active{background:#2d623c;color:#fff2c9;box-shadow:inset 3px 0 #d2b25d}.nav .dot{margin-left:auto;min-width:19px;height:19px;line-height:19px;background:#386674;border-radius:5px;text-align:center;font-size:10px}.sidefoot{border-top:1px solid #ffffff12;padding:18px 10px 0;display:flex;gap:9px;align-items:center}.avatar{width:35px;height:35px;border-radius:50%;background:#eff3e3;color:#35713f;display:inline-flex;align-items:center;justify-content:center;font-weight:bold;flex-shrink:0}.sidefoot strong{display:block;color:#eef9ff;font-size:12px}.sidefoot small{font-size:10px}.main{grid-column:2;min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;gap:15px;align-items:center;padding:0 34px;position:sticky;top:0;z-index:20}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb strong{color:var(--text);margin-left:9px}.top-actions{margin-left:auto;display:flex;gap:14px;align-items:center}.searchbox{display:flex;align-items:center;background:#f5f7fa;border:1px solid var(--line);border-radius:9px;padding:8px 12px;gap:8px}.searchbox input{border:0;background:none;outline:none;width:185px;font-size:12px}.icon-btn{border:1px solid var(--line);border-radius:9px;background:#fff;min-width:39px;height:39px;display:inline-flex;justify-content:center;align-items:center;position:relative}.count{position:absolute;top:-6px;right:-6px;background:#d75c55;color:white;font-size:10px;border:2px solid white;min-width:19px;line-height:15px;border-radius:20px}.menu-btn{display:none}.content{padding:30px 34px 50px;max-width:1680px;margin:auto}.pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:25px}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:1.6px;font-weight:700;color:var(--teal);margin-bottom:8px}.subtitle{margin-top:7px;font-size:12px;color:var(--muted)}.btn{border:1px solid var(--line);border-radius:8px;padding:10px 15px;background:#fff;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-size:12px;font-weight:600;white-space:nowrap;min-height:40px}.btn.primary{background:var(--teal);border-color:var(--teal);color:#fff;box-shadow:0 4px 12px #26734918}.btn.danger{color:#c14141;border-color:#f2d8d8}.btn.small{padding:6px 10px;min-height:32px;font-size:11px}.btn.ghost{background:transparent}.btn:hover{filter:brightness(.97)}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spacer{flex:1}.hero{border-radius:16px;background:linear-gradient(110deg,#195736,#2c7746);color:white;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px;overflow:hidden;position:relative}.hero:after{content:'';border:45px solid #ffffff04;width:190px;height:190px;position:absolute;right:-80px;top:-90px;border-radius:50%;pointer-events:none}.hero .eyebrow{color:#e6ce83}.hero h2{font-size:23px}.hero p{font-size:12px;color:#d7e5cd;margin-top:7px;max-width:540px}.hero .btn{color:white;border-color:#ffffff40;background:#ffffff10}.hero-icon{color:#e1c568;opacity:.7;padding-right:30px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0}.stat{border:1px solid var(--line);background:white;border-radius:12px;padding:18px;cursor:pointer;box-shadow:var(--shadow)}.stat-top{display:flex;align-items:center;gap:10px;justify-content:space-between;font-size:11px;color:var(--muted)}.icon-tile{border-radius:10px;background:#edf3e7;color:var(--teal);width:37px;height:37px;display:flex;align-items:center;justify-content:center}.stat strong{font-size:29px;line-height:1.2;display:block;margin:12px 0 7px}.stat small{font-size:10px}.stat .inline{display:flex;align-items:end;gap:7px}.stat .inline em{font-size:11px;font-style:normal;color:#c15d4e;margin-bottom:11px}.grid2{display:grid;grid-template-columns:1.7fr 1fr;gap:20px;margin-bottom:20px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}.panelhead{padding:18px 20px;border-bottom:1px solid #edf1f4;display:flex;gap:10px;align-items:center;justify-content:space-between}.panelhead h2{font-size:14px}.panelhead .link{font-size:11px;color:var(--teal)}.panelbody{padding:20px}.urgent-head{border-left:4px solid #d99d37}.pill{display:inline-flex;align-items:center;padding:3px 8px;border-radius:5px;font-size:10px;font-weight:600;white-space:nowrap}.pill.green{background:#e5f5ed;color:#218557}.pill.red{background:#fceeed;color:#bd5149}.pill.amber{background:#fff5dd;color:#a57922}.pill.blue{background:#eaf2fa;color:#417aa4}.empty{text-align:center;padding:32px 20px;color:var(--muted)}.empty .circle{display:flex;justify-content:center;align-items:center;border-radius:50%;width:49px;height:49px;background:#f0f6f7;margin:0 auto 12px;color:#89a2ab}.empty strong{display:block;font-size:13px;color:#506b7b;margin-bottom:5px}.empty p{font-size:11px;max-width:330px;margin:auto}.empty .btn{margin-top:17px}.list-row{padding:14px 20px;border-bottom:1px solid #eef2f5;display:flex;align-items:center;gap:12px;cursor:pointer}.list-row:hover{background:#f8fbfc}.list-row:last-child{border-bottom:0}.list-row .item-main{flex:1;min-width:0}.item-main strong{display:block;font-size:12px}.item-main small{font-size:10px}.check-circle{width:21px;height:21px;border:1.5px solid #d7e1e6;border-radius:6px}.quickgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.quick{border:1px solid var(--line);border-radius:10px;text-align:left;padding:14px;background:white;display:flex;align-items:center;gap:10px}.quick b{display:block;font-size:11px}.quick small{font-size:10px}.timeline-date{width:40px;text-align:center;color:var(--teal);border-radius:8px;background:#f5efdf;font-size:17px;font-weight:bold;padding:4px}.timeline-date small{display:block;font-size:9px}.chart{display:flex;align-items:end;gap:18px;height:145px;border-bottom:1px solid var(--line);padding:20px 8px 0}.chart-col{flex:1;text-align:center;height:100%;display:flex;align-items:center;flex-direction:column;justify-content:end}.chart-bar{width:22px;border-radius:4px 4px 0 0;background:#428f50;min-height:2px}.chart-col small{font-size:9px;margin-bottom:-24px;margin-top:6px}.chart-note{margin-top:33px;font-size:10px;color:var(--muted)}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#fff;padding:14px 16px;border:1px solid var(--line);border-radius:10px;margin-bottom:16px}.toolbar input,.toolbar select{padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:white;min-width:0;font-size:12px}.toolbar input{flex:1;min-width:160px}.view-switch{display:inline-flex;background:#f0f4f7;padding:3px;border-radius:7px;gap:3px}.view-switch button{padding:6px 11px;font-size:11px;border-radius:5px}.view-switch .active{background:#fff;box-shadow:0 2px 5px #183e2710;color:var(--teal);font-weight:bold}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;letter-spacing:.3px;font-weight:600;color:#7e8d99;background:#f9fbfc;white-space:nowrap;padding:12px 16px}td{padding:16px;border-bottom:1px solid #edf1f4;vertical-align:middle}tbody tr{cursor:pointer}tbody tr:hover{background:#fafcfd}td.title-cell{min-width:230px;font-weight:600}td .sub{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:4px}.progress{height:5px;border-radius:5px;background:#edf1f5;min-width:75px;margin-top:6px}.progress i{display:block;height:100%;border-radius:5px;background:#3c8d50}.footerline{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px 17px;font-size:10px;color:var(--muted)}.kanban{display:grid;grid-template-columns:repeat(4,minmax(215px,1fr));gap:15px;overflow:auto}.kanban-col{background:#eaf0f3;padding:13px;border-radius:10px;min-height:250px}.kanban-col h3{font-size:11px;margin-bottom:13px}.taskcard{background:white;border:1px solid var(--line);padding:15px;border-radius:8px;margin-bottom:10px;cursor:pointer}.taskcard strong{font-size:12px;display:block;margin-bottom:9px}.taskcard small{font-size:10px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.dayname{padding:12px;text-align:center;font-size:10px;color:var(--muted);background:#f7fafb;border-bottom:1px solid var(--line)}.calday{min-height:105px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:8px;font-size:11px}.calday.today{background:#eff9f6}.calday.today b{background:var(--teal);color:#fff;border-radius:50%;padding:3px 6px}.event{display:block;background:#eef3e5;border-left:2px solid var(--teal);border-radius:3px;padding:4px;font-size:9px;text-align:left;width:100%;margin-top:6px;word-break:break-word}.notice{padding:12px 15px;background:#fff8e8;border:1px solid #f0e2bf;border-radius:8px;font-size:11px;color:#8d713a;margin:15px 0}.notice.info{background:#edf5fa;border-color:#dce9f2;color:#526f84}.modalback{position:fixed;inset:0;background:#0c263a78;z-index:80;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(3px)}.modal{background:#fff;width:min(880px,100%);max-height:92vh;overflow:auto;border-radius:14px;box-shadow:0 25px 100px #071b3460}.modal.small{width:min(500px,100%)}.modalhead{padding:22px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fff;z-index:2}.modalhead h2{font-size:18px}.modalbody{padding:24px 26px}.modalfoot{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;border-top:1px solid var(--line);position:sticky;bottom:0;background:#fff;z-index:2}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:11px;font-weight:600;color:#4e6676}.field input,.field select,.field textarea{width:100%;border:1px solid #dce4d6;border-radius:7px;padding:10px 12px;background:#fff;min-height:42px;color:var(--text);font-size:12px}.field textarea{min-height:95px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--teal);outline:2px solid #26734910}.field input[type=checkbox]{width:17px;min-height:17px}.error{color:#ba4545;font-size:12px;background:#fff0ef;border-radius:7px;padding:10px;margin-top:12px}.detail-title{font-size:23px;line-height:1.4;margin-bottom:14px}.details{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:23px 0}.detail-item small{font-size:10px;display:block;margin-bottom:5px}.detail-item p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.detail-item.full{grid-column:1/-1}.tabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin:26px 0 18px}.tabs button{font-size:12px;padding:9px 0}.tabs button.active{color:var(--teal);border-bottom:2px solid var(--teal);font-weight:bold}.comment{background:#f5f8fa;border-radius:8px;padding:12px;margin-bottom:10px;font-size:12px;white-space:pre-wrap}.comment strong{font-size:11px}.comment small{font-size:9px}.comment.request{border-left:3px solid #d99d37;background:#fff9ec}.fileline{display:flex;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:11px}.fileline a{overflow-wrap:anywhere}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:white}.loginleft{background:radial-gradient(ellipse at 0 100%,#357c4a,transparent 70%),var(--navy);color:white;display:flex;flex-direction:column;justify-content:space-between;padding:45px 65px;position:relative;overflow:hidden}.loginleft:after{content:'';position:absolute;width:600px;height:600px;border:1px solid #ffffff12;border-radius:50%;right:-200px;top:100px;box-shadow:0 0 0 80px #ffffff03,0 0 0 160px #ffffff02;pointer-events:none}.loginleft .brand{padding:0}.loginleft h1{font-size:43px;line-height:1.2;max-width:480px;font-weight:700}.loginleft h1 span{color:#e8c66c}.loginleft p{margin-top:20px;color:#d6e4ce;font-size:14px;max-width:360px;line-height:1.8}.loginfeatures{display:flex;gap:20px;font-size:11px;color:#d5e5c7;margin-top:30px;flex-wrap:wrap}.loginright{display:flex;align-items:center;justify-content:center;padding:40px}.loginform{width:100%;max-width:380px}.loginform h2{font-size:25px}.loginform .field{margin-top:18px}.loginform .btn{width:100%;margin-top:22px;min-height:46px}.loginform .foot{text-align:center;font-size:10px;color:var(--muted);margin-top:25px}.loginleft footer{font-size:10px;color:#b8caa8;position:relative}.loginleft .eyebrow{color:#e7cf8f}.loginform .notice{line-height:1.7}.session-info{padding:13px 0;font-size:10px;color:var(--muted);display:flex;gap:8px;align-items:center}.session-info i{width:6px;height:6px;border-radius:50%;background:#28a17e}.reporttext{min-height:350px!important;font-family:inherit;line-height:1.8}.reports-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.reportcard{padding:25px;border:1px solid var(--line);background:white;border-radius:12px}.reportcard h3{margin:15px 0 7px}.reportcard p{font-size:11px;color:var(--muted);margin-bottom:20px}.ganttrow{display:grid;grid-template-columns:220px 1fr;border-bottom:1px solid var(--line);font-size:11px;padding:15px;gap:15px}.ganttbar{background:#e6f5f0;border-radius:5px;height:23px;position:relative}.ganttbar span{background:#39854d;min-width:4px;position:absolute;height:23px;border-radius:5px;color:white;font-size:9px;text-align:center}.ranknumber{width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#edf5f6;border-radius:8px;color:var(--teal);font-weight:700}.searchresults button{width:100%;text-align:left;padding:14px;border-bottom:1px solid var(--line);font-size:12px}.searchresults small{display:block;font-size:10px;margin-top:4px}.toastshow{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;padding:13px 21px;box-shadow:0 8px 40px #0003;border-radius:9px;z-index:200;font-size:12px;max-width:90vw}.backdrop{display:none}.mobilebottom{display:none}.usercards{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.usercard{border:1px solid var(--line);padding:18px;border-radius:10px;background:white}.code{font-family:monospace;background:#edf4f7;padding:10px;overflow-wrap:anywhere;font-size:13px}.module-empty{padding:55px 20px}.switch-note{font-size:10px;color:var(--muted);margin-top:8px}.chartselect{border:1px solid var(--line);border-radius:5px;font-size:10px;padding:5px;background:#fff}
@media(min-width:1500px){.layout{grid-template-columns:270px 1fr}.sidebar{width:270px}.content{padding:35px 42px}.nav button{font-size:13px}.grid2{grid-template-columns:1.8fr 1fr}}
@media(max-width:1100px){.layout{grid-template-columns:220px 1fr}.sidebar{width:220px;padding:22px 10px}.brand{gap:9px}.brand b{font-size:11px}.content{padding:24px}.topbar{padding:0 24px}.stats{gap:10px}.stat{padding:13px}.grid2{grid-template-columns:1.3fr 1fr}.quickgrid{grid-template-columns:1fr 1fr}.hero-icon{display:none}.searchbox input{width:135px}.loginleft{padding:40px}.loginleft h1{font-size:35px}.reports-grid{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.layout{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;width:260px}.sidebar.open{transform:translateX(0)}.backdrop.open{display:block;position:fixed;inset:0;background:#0a253765;z-index:29}.main{width:100%}.topbar{height:64px;padding:0 18px;gap:10px}.breadcrumb{font-size:10px}.breadcrumb strong{margin-left:4px}.menu-btn{display:inline-flex}.searchbox{display:none}.top-actions{gap:8px}.top-actions .top-date{display:none}.content{padding:22px 18px 95px}.pagehead{gap:10px}.pagehead h1{font-size:24px}.pagehead .row{justify-content:flex-end}.stats{grid-template-columns:1fr 1fr}.stat strong{font-size:27px}.grid2{grid-template-columns:1fr}.hero{padding:23px;align-items:start}.hero h2{font-size:20px}.hero>.row{display:none}.quickgrid{grid-template-columns:1fr 1fr}.mobilebottom{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:#fff;border-top:1px solid var(--line);padding:7px 4px max(8px,env(safe-area-inset-bottom));z-index:25}.mobilebottom button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9px;min-width:50px;min-height:42px;color:#7a8e9c}.mobilebottom button.active{color:var(--teal)}.tablewrap table{min-width:650px}.modalback{padding:10px}.modal{max-height:95vh}.modalhead{padding:17px 18px}.modalbody{padding:20px 18px}.modalfoot{padding:15px 18px}.formgrid{gap:13px}.login{display:block}.loginleft{padding:25px 27px 35px;min-height:240px}.loginleft h1{font-size:27px;margin-top:30px;max-width:400px}.loginleft h1 br{display:none}.loginleft p,.loginfeatures,.loginleft footer{display:none}.loginleft .brand img{width:37px}.loginright{padding:30px 25px}.loginform h2{font-size:24px}.loginleft .eyebrow{display:none}.reports-grid{grid-template-columns:1fr}.usercards{grid-template-columns:1fr}.calday{padding:5px;min-height:87px}.event{font-size:8px;padding:2px}.dayname{padding:9px 1px}.detail-title{font-size:20px}.toolbar{padding:12px}.toolbar input{min-width:130px}.toolbar .view-switch{overflow:auto;max-width:100%}.ganttrow{grid-template-columns:150px 1fr}.panelhead{padding:16px}.quick{padding:12px}.subtitle{font-size:11px}.footerline{flex-wrap:wrap}}
@media(max-width:390px){.content{padding:18px 12px 90px}.formgrid,.details{grid-template-columns:1fr}.field.full,.detail-item.full{grid-column:auto}.hero{padding:20px}.quickgrid{gap:8px}.quick{gap:7px;padding:10px}.quick .icon-tile{width:31px;height:31px}.topbar{padding:0 12px}.breadcrumb>span{display:none}.top-actions .avatar{display:none}.stat-top{font-size:10px}.stat{padding:12px}.btn{padding:9px 11px}.pagehead{flex-wrap:wrap}.pagehead>.row{width:100%;justify-content:flex-start}.hero h2{font-size:19px}}
@media print{.sidebar,.topbar,.toolbar,.mobilebottom,.btn,.modalhead button,.modalfoot{display:none!important}.layout{display:block}.content{padding:0}.modalback{position:static;display:block;background:white;padding:0}.modal{max-height:none;overflow:visible;box-shadow:none;width:100%}.modalbody{padding:0}.main{display:none}.panel{box-shadow:none}}

/* Bộ môn: xanh lá – trắng – vàng gold */
:root{--gold:#b28b2e;--gold-light:#f8f1dc;--green:#267349}
.brand img{width:62px;height:62px;border-radius:50%;background:#fff;border:2px solid #dcc77f;object-fit:contain;box-shadow:0 4px 12px #102b1c20}
.brand{gap:11px;padding-left:3px;padding-right:3px}.brand b{font-size:12px}.brand small{font-size:10px}.sidebar{background:linear-gradient(180deg,#19462c,#153c25)}
.nav-label{color:#bbc697}.nav button.active{box-shadow:inset 3px 0 #d7b756;background:#2d623c;color:#fff2c9}.nav button.active svg{color:#dfc579}.sidefoot{border-top-color:#d4b86235}
.hero{background:linear-gradient(105deg,#195736,#337d48);border-bottom:3px solid #c4a14b;min-height:160px}.hero-icon{padding-right:5px;opacity:1}.hero-logo{width:116px;height:116px;object-fit:contain;background:white;border:3px solid #d8bc6a;border-radius:50%;box-shadow:0 5px 18px #08281733}
.loginleft{background:radial-gradient(ellipse at 0 100%,#49824a,transparent 75%),#194d2e;border-right:5px solid #c6a348}.loginleft .brand img{width:84px;height:84px}.loginleft .brand b{font-size:15px}.loginleft .brand small{font-size:12px}.loginleft h1 span{color:#ebcc76}.loginleft footer{color:#d4d9b0}.loginform .eyebrow{color:#9a7726}
.btn.primary{background:#267349;border-color:#267349;box-shadow:0 4px 12px #26734920}.btn.primary:hover{background:#1e633d}.btn:focus-visible{outline:3px solid #ceb05d}.eyebrow{color:#7e823f}.stat:nth-child(2n) .icon-tile,.gold{background:#f7efd7;color:#a27b24}.stat{border-top:2px solid #e5e7d6}.stat strong{color:#1b633c}.panelhead h2 svg{color:#a58636}.urgent-head{border-left-color:#b9983d}.topbar{border-top:3px solid #c3a44e}.avatar{background:#edf3e5;color:#397043}.icon-btn:hover{background:#f6f2e4}.searchbox{background:#f7f8f2}.period-label{padding:7px 12px;background:#f8f1dd;color:#8a712d;border-radius:7px;font-size:11px;font-weight:600}
.report-filters label{display:flex;gap:6px;flex-direction:column;font-size:10px;font-weight:600;color:#6d7d64}.report-filters select,.report-filters input{min-height:38px;font-weight:400;min-width:128px}.report-filters select{max-width:240px}.report-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.report-metrics>div{background:#fff;border:1px solid #e0e7d8;border-radius:11px;padding:18px 20px;border-bottom:3px solid #bca353}.report-metrics strong{font-size:27px;color:#23613c;display:block;line-height:1.4}.report-metrics span{font-size:11px;color:#7a866f;display:block;margin-top:3px}.report-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.report-chart .panelbody{padding:14px 14px 17px;overflow:auto}.report-chart svg{display:block;width:100%;height:auto}.report-chart .panelhead{background:#fdfefb}.report-chart .panelhead h2:before{content:'';display:inline-block;width:4px;height:15px;background:#bb9b41;vertical-align:middle;margin-right:9px;border-radius:2px}.chart-caption{font-size:10px;color:#7c876f;margin:5px 5px 0;max-width:520px}.section-heading{margin:26px 0 18px}.section-heading h2{font-size:19px}.modal .report-metrics{gap:9px}.modal .report-metrics>div{padding:12px}.modal .report-metrics strong{font-size:23px}.modal .report-chart-grid{gap:12px;margin-bottom:24px}.modal .report-chart .panelhead{padding:12px}.modal .report-chart .panelhead h2{font-size:12px}.permission-guide{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}.permission-guide section{background:#fff;border:1px solid #e0e7d8;border-radius:11px;padding:22px;display:flex;gap:15px}.permission-guide p{font-size:12px;color:#75826d;margin-top:7px}.permission-guide .icon-tile{width:45px;height:45px}.account-role{display:inline-flex;align-items:center;gap:6px;background:#edf3e7;color:#4d7247;border-radius:6px;padding:5px 9px;font-weight:600;font-size:11px;margin-top:16px}.account-role.admin{background:#1d613b;color:#fff}.account-role.readonly{background:#fbf3dc;color:#8b7028}.account-actions{margin-top:17px}.permission-target{display:flex;align-items:center;gap:12px;background:#f4f7ed;padding:15px;border-radius:8px;margin-bottom:20px}.permission-target small{display:block;color:#7b866f;font-size:11px}.role-help{font-size:11px;line-height:1.6;color:#78876f;margin-top:3px}#permission-reauth .field{margin-bottom:12px}.reportchart-data{font-size:11px;color:#537047;margin:8px 5px 0}.reportchart-data summary{cursor:pointer}.reportchart-data dl{display:grid;grid-template-columns:1fr auto;gap:5px 12px;margin:10px 0}.reportchart-data dd{margin:0;font-weight:600}
@media(max-width:1100px){.brand img{width:52px;height:52px}.brand b{font-size:11px}.brand small{font-size:9px}.hero-logo{width:90px;height:90px}}
@media(max-width:800px){.report-metrics{grid-template-columns:1fr 1fr;gap:10px}.report-chart-grid{grid-template-columns:1fr}.permission-guide{grid-template-columns:1fr}.modal .report-chart-grid{grid-template-columns:1fr}.hero-logo{width:80px;height:80px}.hero-icon{display:block}.hero{gap:12px}.hero p{font-size:11px}.hero h2{font-size:18px}.loginleft .brand img{width:65px;height:65px}.loginleft .brand b{font-size:13px}.loginleft .brand small{font-size:10px}.report-filters{align-items:stretch}.report-filters label{flex:1;min-width:125px}.report-filters select,.report-filters input{width:100%;max-width:none}.period-label{align-self:flex-end}.reportchart-data{font-size:12px}}
@media(max-width:560px){.hero-icon{display:none}.report-chart svg{min-width:480px}.report-chart .panelbody{overflow:auto}.chart-caption{font-size:11px;min-width:250px}.report-metrics>div{padding:15px}.report-metrics strong{font-size:25px}.modal .report-metrics>div{padding:10px}.report-filters .spacer{display:none}.period-label{font-size:10px}.account-actions{gap:7px}.account-actions .btn{white-space:normal;text-align:left}}
.install-login-link{display:block;margin-top:20px;text-align:center;font-size:14px;font-weight:600;padding:12px 14px;background:#eef3e6;border:1px solid #d8e4ce;border-bottom:2px solid #c3a14e;border-radius:8px;text-decoration:none;color:#246b40}.install-setting-description{font-size:16px;line-height:1.7;color:#58704e}.pwa-update,.pwa-network{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 24px);background:#17462b;color:#fff;border:1px solid #d3b66a;border-radius:9px;padding:12px 16px;display:flex;align-items:center;gap:16px;font-size:14px;z-index:210;box-shadow:0 8px 30px #0002}.pwa-update[hidden],.pwa-network[hidden]{display:none}.pwa-update button{font:inherit;font-weight:600;border:0;border-radius:7px;padding:8px 12px;background:#e3c36e;color:#244c2d;white-space:nowrap}.pwa-network{bottom:auto;top:8px;background:#fff4d8;color:#7b5d22;border-color:#d8b96b;font-size:14px;max-width:min(700px,calc(100vw - 24px))}@media(max-width:800px){.pwa-update{bottom:82px;max-width:calc(100vw - 24px);width:calc(100vw - 24px)}.pwa-network{font-size:13px}.install-login-link{font-size:14px}}
/* Cây danh mục và ngân hàng tài liệu */
.directory-tree{font-size:14px;color:#34533a}.directory-branch{margin:4px 0}.directory-branch>summary,.library-root>summary,.library-branch>summary{list-style:none;display:flex;align-items:center;gap:9px;cursor:pointer;padding:11px 12px;border-radius:8px;min-height:44px}.directory-branch>summary::-webkit-details-marker,.library-root>summary::-webkit-details-marker,.library-branch>summary::-webkit-details-marker{display:none}.directory-branch>summary:before,.library-root>summary:before,.library-branch>summary:before{content:'';width:6px;height:6px;border-right:1.7px solid #84956e;border-bottom:1.7px solid #84956e;transform:rotate(-45deg);flex-shrink:0;margin-right:3px}.directory-branch[open]>summary:before,.library-root[open]>summary:before,.library-branch[open]>summary:before{transform:rotate(45deg)}.directory-branch>summary:hover,.library-root>summary:hover,.library-branch>summary:hover{background:#f2f6ed}.directory-branch>summary strong{font-size:14px;font-weight:600;flex:1;min-width:0}.directory-tree .tree-children{margin-left:19px;padding-left:12px;border-left:1px solid #dce6d3}.tree-link{display:flex;align-items:center;gap:9px;min-height:43px;text-align:left;width:100%;padding:10px 11px;border-radius:7px;font-size:14px;line-height:1.4}.tree-link span:not(.tree-count){flex:1;min-width:0;overflow-wrap:anywhere}.tree-link strong{font-weight:600;flex:1;min-width:0}.tree-link svg,.directory-branch summary>svg{color:#af913c}.tree-link:hover{background:#f3f7ee}.tree-link.selected{background:#eaf2e0;color:#1a653a;box-shadow:inset 3px 0 #bd9c41;font-weight:600}.tree-count{min-width:23px;padding:2px 6px;background:#eff4e9;border-radius:5px;color:#7b886d;font-size:12px;font-weight:500;margin-left:auto;text-align:center;flex-shrink:0}.directory-tree .tree-children .directory-branch summary{padding:9px 7px}.directory-tree .library-entry .tree-children{margin-left:14px;padding-left:8px}.sidebar .directory-branch{margin:4px 0}.sidebar .directory-branch>summary{padding:11px 9px;color:#e1ebd7;gap:9px}.sidebar .directory-branch>summary strong{font-size:13px}.sidebar .directory-branch>summary:hover{background:#ffffff09}.sidebar .directory-branch>summary:before{border-color:#c1cdb0}.sidebar .tree-children{margin-left:9px;padding-left:8px;border-left-color:#ffffff22}.sidebar .tree-link{font-size:13px;padding:10px 8px;min-height:41px;gap:8px}.sidebar .tree-count{background:#ffffff0d;color:#c4d5b9;font-size:11px;min-width:18px;padding:2px 4px}.sidebar .tree-link.selected{background:#2d623c;color:#fff2c9}.sidebar .tree-link svg{width:16px;height:16px;color:#b6c69d}.sidebar .library-entry>summary{font-size:13px}.sidebar .library-entry>summary strong{font-size:13px}.sidebar .library-entry .tree-children{padding-left:6px;margin-left:10px}.sidebar .library-entry .tree-link{font-size:12px;line-height:1.5}.dashboard-directory{margin:0 0 23px}.dashboard-directory-body{display:grid;grid-template-columns:1.1fr 1.3fr;gap:0}.dashboard-directory .directory-tree{padding:15px;max-height:370px;overflow:auto;border-right:1px solid #e3e9da}.dashboard-library{padding:24px}.dashboard-library h3{font-size:17px;color:#2c5e37;margin-bottom:18px}.library-section-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:20px 0 24px}.library-section-card{border:1px solid #dfe6d5;background:#fff;border-radius:11px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:18px 14px;text-align:left;min-height:126px;box-shadow:0 5px 20px #1f472b04}.library-section-card .icon-tile{width:38px;height:38px;background:#edf4e4;color:#417844}.library-section-card:nth-child(2n) .icon-tile{background:#fbf3dd;color:#a68633}.library-section-card strong{font-size:14px;line-height:1.5;display:block;color:#2e5c37}.library-section-card small{font-size:12px;line-height:1.5;display:block;color:#829074;margin-top:5px}.section-total{font-size:24px;color:#4b7f48;font-weight:700;align-self:start;line-height:1.5}.library-section-card.selected{border-color:#a5bf8e;box-shadow:inset 0 -3px #c2a553;background:#fbfdf7}.library-section-card:hover{border-color:#b2c29d;background:#fbfdf8}.library-section-cards.compact{grid-template-columns:1fr 1fr;margin:0;gap:10px}.compact .library-section-card{min-height:102px;padding:13px;grid-template-columns:30px minmax(0,1fr) auto;gap:9px}.compact .library-section-card .icon-tile{width:30px;height:30px}.compact .library-section-card .icon-tile svg{width:21px;height:21px}.compact .section-total{font-size:22px}.compact .library-section-card small{display:none}.directory-workspace{display:grid;grid-template-columns:minmax(280px,1fr) minmax(0,1.4fr);gap:22px;align-items:start}.directory-workspace .library-section-cards{grid-template-columns:1fr 1fr;margin:0}.directory-search{padding:18px 20px 8px}.directory-search label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}.directory-search input{width:100%;border:1px solid #dbe4d1;border-radius:8px;padding:11px;font-size:14px}.full-directory{padding:10px 18px 22px;max-height:75vh;overflow:auto}.directory-note{font-size:13px;color:#7c8a6f;line-height:1.7;margin:18px 0 0}.directory-help{margin-top:20px}.directory-help .quickgrid{grid-template-columns:1fr 1fr}.library-workspace{display:grid;grid-template-columns:285px minmax(0,1fr);gap:20px;align-items:start}.library-folder-panel{position:sticky;top:96px;min-width:0}.library-folder-panel .panelhead{padding:15px 14px}.library-folder-panel .panelhead h2{font-size:14px}.library-folder-panel .icon-btn{min-width:29px;height:29px}.library-tree{padding:11px 8px 18px;max-height:70vh;overflow:auto}.library-root{margin-top:5px}.library-root>summary,.library-branch>summary{padding:2px 3px;gap:2px}.library-root>summary .tree-link,.library-branch>summary .tree-link{padding-left:7px;font-size:13px}.library-root .tree-children{margin-left:13px;padding-left:8px}.library-leaf>.tree-link{font-size:13px;padding:9px 7px;line-height:1.5}.library-all{font-size:14px;margin-bottom:8px}.library-tree .tree-count{font-size:11px}.library-main{min-width:0}.folder-breadcrumb{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:2px 0 17px;font-size:13px}.folder-breadcrumb button{color:#547447;padding:4px 0;max-width:100%;overflow-wrap:anywhere;text-align:left}.folder-breadcrumb button:last-child{font-weight:700;color:#2d6738}.folder-breadcrumb span{color:#afbd9d}.library-toolbar{padding:12px;gap:8px}.library-toolbar input,.library-toolbar select{font-size:14px;min-height:40px}.library-toolbar input{min-width:150px}.library-toolbar select{max-width:190px}.library-results-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:20px 0 15px}.library-results-head h2{font-size:19px;overflow-wrap:anywhere}.library-results-head>span{font-size:13px;color:#7c8a6d;white-space:nowrap}.material-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.material-card{background:white;border:1px solid #dfe7d4;border-radius:11px;padding:20px;cursor:pointer;box-shadow:0 5px 20px #2d4e2004;min-width:0}.material-card:hover{border-color:#a8bd8f;box-shadow:0 7px 22px #2d4e2008}.material-file-icon{width:48px;height:51px;background:#f5f1e4;color:#b39748;border-radius:9px;display:flex;align-items:center;justify-content:center}.material-card h3{font-size:16px;margin:16px 0 8px;line-height:1.55;overflow-wrap:anywhere}.material-card>p{font-size:13px;color:#7d896f}.material-path{font-size:12px;line-height:1.7;color:#8a947d;overflow-wrap:anywhere;margin-top:12px}.material-card footer{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #edf0e7;margin-top:16px;padding-top:12px;font-size:12px;color:#6f8661}.library-empty{padding:35px 10px}.directory-workspace .panelhead small{font-size:12px}.directory-workspace .panelhead h2{font-size:16px}
@media(min-width:1550px){.material-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.library-workspace{grid-template-columns:305px minmax(0,1fr)}}
@media(max-width:1150px){.library-section-cards{grid-template-columns:1fr 1fr}.library-section-card{min-height:100px}.library-workspace{grid-template-columns:245px minmax(0,1fr)}.library-root>summary .tree-link{font-size:12px}.dashboard-directory-body{grid-template-columns:1fr 1.15fr}.dashboard-library{padding:18px}.compact .library-section-card{grid-template-columns:28px 1fr}.compact .section-total{display:none}.directory-workspace{grid-template-columns:1fr}.full-directory{max-height:520px}}
@media(max-width:800px){.dashboard-directory-body{grid-template-columns:1fr}.dashboard-directory .directory-tree{max-height:300px;border-right:0;border-bottom:1px solid #e3e9da}.dashboard-library{padding:20px}.compact .library-section-card{grid-template-columns:30px 1fr auto}.compact .section-total{display:block}.library-workspace{grid-template-columns:1fr}.library-folder-panel{position:static}.library-tree{max-height:320px}.library-root>summary .tree-link,.library-leaf>.tree-link{font-size:14px}.library-tree .tree-count{font-size:12px}.library-folder-panel .panelhead h2{font-size:16px}.library-results-head{margin-top:5px}.directory-workspace .panelhead{flex-wrap:wrap}.directory-workspace .library-section-cards{grid-template-columns:1fr 1fr}.directory-help .quickgrid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.library-section-card{grid-template-columns:1fr auto;padding:14px;gap:7px;min-height:112px}.library-section-card .icon-tile{width:32px;height:32px}.library-section-card>div{grid-column:1/-1;grid-row:2}.library-section-card .section-total{grid-column:2;grid-row:1}.library-section-card small{display:none}.library-section-card strong{font-size:14px}.library-section-cards.compact{grid-template-columns:1fr 1fr}.compact .library-section-card{grid-template-columns:1fr auto;min-height:105px}.compact .section-total{grid-column:2}.material-cards{grid-template-columns:1fr}.library-results-head{align-items:flex-start}.library-results-head>span{font-size:12px}.library-results-head h2{font-size:18px}.directory-workspace .panelbody{padding:16px}.directory-branch>summary{padding:10px 6px}.directory-tree .tree-children{margin-left:10px;padding-left:8px}.directory-help .quickgrid{grid-template-columns:1fr}.folder-breadcrumb{font-size:12px}.library-toolbar select{flex:1;max-width:100%}.library-toolbar input{flex-basis:100%}.material-card{padding:18px}.directory-workspace .library-section-cards{gap:10px}.dashboard-directory .panelhead{flex-wrap:wrap}.dashboard-directory .panelhead h2{font-size:16px}}
.nav .directory-branch>summary{padding:10px 7px;color:#dbe8d0}.nav .directory-branch>summary strong{font-size:14px;color:#e7efd9}.nav .directory-branch>summary:hover{background:#ffffff0b}.nav .directory-branch>summary:before{border-color:#c6b773}.nav .tree-children{margin-left:10px;padding-left:8px;border-left-color:#d6c38a38}.nav .tree-link{font-size:13px;padding:9px 7px;gap:8px;margin:0}.nav .tree-link.selected{background:#2d623c;color:#fff2c9}.nav .tree-count{background:#315a3a;color:#d8e6c8;padding:2px 5px;border-radius:5px;min-width:20px;text-align:center;font-size:11px;font-weight:500}.directory-tree:not(.nav) .tree-count{background:#f0f4e8;color:#7c8b68;padding:2px 6px;border-radius:5px;min-width:22px;text-align:center;font-size:12px}.nav summary .tree-count{margin-left:auto}.nav .directory-branch summary>svg{color:#d2bb72}

/* Employee portal */
.auth-secondary{width:100%;justify-content:center;margin-top:12px;background:#edf5ee;color:#245f3b;border-color:#b6cfba;font-size:15px}
.registration-success{text-align:center;padding:32px 0;color:#225d38}.registration-success>svg{margin-bottom:16px}.registration-success p{font-size:16px;line-height:1.7;margin:18px 0 26px}
.employee-home{padding:24px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.employee-home h2{font-size:20px}.employee-home p{font-size:14px;color:#52645a;margin-top:8px}.employee-home .row{flex-wrap:wrap}
.employee-profile-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:24px}.employee-profile-grid .btn{margin-bottom:8px}.employee-profile-grid .panelbody>p{margin-bottom:12px}.employee-profile-grid input,.employee-profile-grid textarea{font-size:16px}.employee-profile-grid .field label{font-size:14px}
.employee-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.employee-summary section{padding:20px;display:flex;flex-direction:column;gap:10px}.employee-summary strong{font-size:30px;color:#245f3b}.employee-summary span{font-size:14px;line-height:1.5}
.employee-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:28px}.employee-work-card{background:white;border:1px solid #dce6dc;border-radius:14px;padding:24px;min-width:0}.employee-work-card h3{margin:18px 0 12px}.work-title{border:0;padding:0;text-align:left;background:none;color:#1b4a30;font:inherit;cursor:pointer;line-height:1.5}.work-title:hover{text-decoration:underline}.employee-work-card p{font-size:14px;line-height:1.65;margin:12px 0;overflow-wrap:anywhere}.employee-work-card .row{flex-wrap:wrap}.employee-work-card .progress{height:8px;margin-top:20px}.employee-work-card .btn{font-size:14px}
.kpi-result-pair{display:grid;grid-template-columns:1fr 1fr;background:#f0f6f0;border-radius:10px;padding:16px;margin:14px 0;gap:16px}.kpi-result-pair small{display:block;font-size:13px;margin-bottom:8px}.kpi-result-pair strong{font-size:24px;color:#276940}
.pending-registrations{margin:24px 0}.pending-row{padding:20px 24px;border-top:1px solid #e2e9e2;display:flex;align-items:center;justify-content:space-between;gap:20px}.pending-row p{font-size:14px;margin:8px 0}.pending-row small{font-size:13px}.registration-details{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;margin:20px 0;font-size:14px}.registration-details dt{color:#56685b}.registration-details dd{margin:0;overflow-wrap:anywhere}
#progressform,#feedbackresponse{margin-top:22px}#progressform .field label,#feedbackresponse .field label{font-size:14px}#progressform input,#progressform select,#progressform textarea,#feedbackresponse textarea,#feedbackresponse select{font-size:16px}#confirmprogressform>button{margin-top:20px}#confirmprogressform label{display:block;font-size:15px;line-height:1.6}
@media(max-width:800px){.employee-profile-grid{grid-template-columns:1fr}.employee-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-work-grid{grid-template-columns:1fr}.employee-home{padding:20px}.employee-home .row{width:100%}.employee-home .btn{flex:1 1 100%;justify-content:center}.pending-row{flex-direction:column;align-items:stretch}.employee-work-card{padding:20px}.employee-summary section{padding:16px}.employee-summary span{font-size:14px}.registration-details{grid-template-columns:1fr;gap:6px}.registration-details dd{margin-bottom:10px}}
.loginform .field input{font-size:16px}.loginform .field label{font-size:14px}.employee-profile-grid .panelhead h2,.employee-work-grid .empty strong{font-size:17px}.employee-profile-grid .directory-note,.employee-work-grid .empty p,#progressform .directory-note{font-size:14px}.employee-profile-grid .panelbody>p{font-size:16px}.employee-work-card .pill,.pending-row .btn{font-size:13px}.employee-work-card .eyebrow{font-size:12px}.employee-profile-grid .subtitle{font-size:14px}#authform .subtitle{font-size:14px}
