:root{--ink:#18212d;--muted:#7c8797;--line:#e9edf2;--bg:#f5f7fa;--nav:#17222e;--green:#20a779;--green-soft:#e6f6f0;--blue:#4c78e8;--blue-soft:#edf2ff;--orange:#ee8b48;--orange-soft:#fff1e8;--violet:#8c6ee6;--violet-soft:#f1edff;--red:#df6a68;--red-soft:#fff0ef;--shadow:0 12px 36px rgba(39,51,66,.07)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"DM Sans","Noto Sans SC",sans-serif;font-size:14px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--nav);color:#d8e0e7;padding:24px 16px;display:flex;flex-direction:column;z-index:4}.brand{display:flex;align-items:center;gap:10px;font-size:19px;padding:0 10px 22px}.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:linear-gradient(145deg,#28b985,#148a6a);color:white;font-weight:700}.org-switcher{border:1px solid #30404e;background:#202e3a;border-radius:11px;padding:10px;display:flex;align-items:center;gap:9px;margin-bottom:24px}.org-avatar,.user-avatar{width:30px;height:30px;border-radius:8px;background:#35576c;display:grid;place-items:center;color:white;font-weight:600}.org-switcher div,.user-card div{display:flex;flex-direction:column;gap:2px;flex:1}.org-switcher strong,.user-card strong{font-size:13px}.org-switcher small,.user-card small{font-size:10px;color:#8696a5}.chevron{color:#91a2af}.nav-label{font-size:10px;color:#6f8291;letter-spacing:1.2px;margin:19px 10px 8px}.nav-item{width:100%;border:0;background:transparent;color:#9eacb7;border-radius:8px;padding:10px 11px;display:flex;align-items:center;gap:12px;text-align:left;font:inherit;cursor:pointer;margin:2px 0}.nav-item span{font-size:17px;width:18px;text-align:center}.nav-item em{margin-left:auto;background:#314250;color:#b4c0c9;border-radius:20px;padding:2px 7px;font-size:10px;font-style:normal}.nav-item:hover,.nav-item.active{background:#253743;color:white}.nav-item.active{box-shadow:inset 3px 0 var(--green)}.sidebar-footer{margin-top:auto}.user-card{border-top:1px solid #2b3a46;margin-top:10px;padding:18px 5px 0;display:flex;align-items:center;gap:9px}.user-card button{border:0;background:none;color:#80909d;cursor:pointer}main{margin-left:238px;min-height:100vh;padding:0 34px 40px}header{height:92px;display:flex;align-items:center;justify-content:space-between}header h1{font-size:23px;margin:0 0 5px}header p{margin:0;color:var(--muted);font-size:12px}.header-actions{display:flex;gap:10px;align-items:center}.search{display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--line);padding:9px 10px;border-radius:9px;color:#a3aebb}.search input{width:190px;border:0;outline:0;font:inherit;font-size:12px}.search kbd{background:#f3f5f7;border:1px solid #e4e8ed;border-radius:4px;color:#9ba6b2;padding:2px 5px;font-size:9px}.icon-btn{position:relative;width:38px;height:38px;border:1px solid var(--line);background:white;border-radius:9px;color:#667483;cursor:pointer}.icon-btn i{position:absolute;right:8px;top:7px;width:5px;height:5px;border-radius:50%;background:#f06c65}.primary,.secondary,.light-btn,.text-btn{border:0;border-radius:8px;padding:10px 15px;font:inherit;font-weight:600;cursor:pointer}.primary{background:var(--green);color:white;box-shadow:0 5px 14px rgba(32,167,121,.18)}.secondary{background:#f2f4f6;color:#53606e}.page{display:none}.page.active{display:block}.hero{min-height:213px;border-radius:17px;padding:30px 36px;color:white;background:radial-gradient(circle at 80% -20%,#3c766a 0,transparent 38%),linear-gradient(125deg,#1c3537,#173d36 65%,#28594d);display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative}.hero:after{content:"";position:absolute;width:190px;height:190px;border:1px solid rgba(255,255,255,.06);border-radius:50%;right:-45px;bottom:-120px}.eyebrow{text-transform:uppercase;letter-spacing:1.3px;font-size:9px;color:#8de0bf;font-weight:700}.hero h2{font-size:25px;line-height:1.45;margin:12px 0 8px}.hero h2 b{color:#72d4ad}.hero p{color:#a9c3bb;font-size:11px;margin-bottom:18px}.light-btn{padding:8px 12px;background:rgba(255,255,255,.12);color:#e9f5f1;font-size:11px}.hero-chart{display:flex;align-items:center;gap:22px;margin-right:42px}.ring{width:133px;height:133px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#6dd2a9 78%,rgba(255,255,255,.12) 0);position:relative}.ring:after{content:"";position:absolute;inset:11px;background:#20483f;border-radius:50%}.ring div{z-index:1;text-align:center}.ring strong{font-size:25px;display:block}.ring span{font-size:9px;color:#a7c5bb}.ring-note{display:flex;flex-direction:column;gap:12px;color:#bdd1cb;font-size:10px}.ring-note i,.legend i{display:inline-block;width:7px;height:7px;border-radius:2px;background:#789389;margin-right:6px}.ring-note i.green,.legend i.green{background:#62cba1}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:18px 0}.metrics article{background:white;border:1px solid var(--line);border-radius:13px;padding:18px;display:flex;gap:13px;align-items:center;box-shadow:0 3px 15px rgba(30,44,58,.025)}.metric-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;font-weight:700;font-size:17px;flex:none}.blue{background:var(--blue-soft);color:var(--blue)}.orange{background:var(--orange-soft);color:var(--orange)}.violet{background:var(--violet-soft);color:var(--violet)}.green{background:var(--green-soft);color:var(--green)}.metrics article div:last-child{display:flex;flex-direction:column}.metrics span{font-size:10px;color:var(--muted)}.metrics strong{font-size:20px;margin:4px 0}.metrics small{font-size:9px}.metrics small b{color:#9ba4ae;font-weight:400}.up{color:var(--green)}.down{color:var(--red)}.plain{color:#9ba4ae}.grid-main{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.grid-bottom{display:grid;grid-template-columns:1.35fr .65fr;gap:16px;margin-top:16px}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:19px;box-shadow:0 3px 16px rgba(30,44,58,.025)}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.panel h3{font-size:14px;margin:0 0 4px}.panel p{font-size:10px;color:var(--muted);margin:0}.text-btn{background:none;color:var(--green);font-size:10px;padding:4px}.project-row{display:grid;grid-template-columns:35px 1fr 83px 58px;gap:10px;align-items:center;padding:12px 0;border-top:1px solid #f0f2f5}.project-symbol{width:33px;height:33px;border-radius:8px;display:grid;place-items:center;font-size:15px}.project-info strong{display:block;font-size:11px;margin-bottom:4px}.project-info small{font-size:9px;color:#9ca6b0}.progress{height:5px;border-radius:5px;background:#edf0f2;overflow:hidden;margin-bottom:4px}.progress i{display:block;height:100%;border-radius:5px;background:var(--green)}.progress-wrap small{font-size:9px;color:#8d98a3}.status{font-size:9px;border-radius:20px;padding:4px 7px;text-align:center}.status.good{color:var(--green);background:var(--green-soft)}.status.risk{color:var(--red);background:var(--red-soft)}.status.wait{color:var(--orange);background:var(--orange-soft)}.approval-item{display:grid;grid-template-columns:33px 1fr auto;gap:9px;align-items:center;padding:12px 0;border-top:1px solid #f0f2f5}.avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#eef2f5;color:#546574;font-size:10px;font-weight:600}.approval-info strong{display:block;font-size:10px}.approval-info small{font-size:9px;color:#9ca6b0}.approval-amount{text-align:right}.approval-amount strong{display:block;font-size:11px}.approval-amount button{border:0;background:none;color:var(--green);font-size:9px;cursor:pointer;padding:3px 0}.bar-chart{height:175px;display:flex;gap:10px}.chart-axis{display:flex;flex-direction:column;justify-content:space-between;color:#aab2bc;font-size:8px;padding:3px 0 20px}.bars{position:relative;flex:1;display:flex;justify-content:space-around;align-items:flex-end;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to bottom,#fff 0,#fff 34px,#f2f4f6 35px);padding:0 12px 20px}.bars>div{height:100%;width:38px;display:flex;align-items:flex-end;justify-content:center;gap:4px;position:relative}.bars i,.bars b{width:9px;border-radius:4px 4px 0 0}.bars i{background:#45b993}.bars b{background:#f1a36e}.bars span{position:absolute;bottom:-17px;font-size:8px;color:#9ca6b0}.legend{display:flex;gap:12px;font-size:9px;color:#84909d}.legend .orange-dot{background:#f1a36e}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-grid button{background:#fafbfc;border:1px solid #edf0f3;border-radius:10px;padding:10px;text-align:left;cursor:pointer}.quick-grid span{width:27px;height:27px;border-radius:7px;display:grid;place-items:center;margin-bottom:8px}.quick-grid b{display:block;font-size:10px}.quick-grid small{font-size:8px;color:#9da7b1}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.tabs{background:white;padding:4px;border:1px solid var(--line);border-radius:9px}.tabs button{border:0;background:transparent;padding:8px 13px;border-radius:6px;color:#7f8995;font:inherit;font-size:11px;cursor:pointer}.tabs button.active{background:var(--nav);color:white}.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.project-card{background:white;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow)}.project-card-head{display:flex;justify-content:space-between}.project-card h3{font-size:14px;margin:16px 0 5px}.project-card p{font-size:10px;color:var(--muted);height:30px}.project-card .meta{display:flex;justify-content:space-between;color:#8e99a5;font-size:9px;margin:16px 0 8px}.project-card .footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:16px;padding-top:13px;font-size:9px;color:#8e99a5}.compact{grid-template-columns:repeat(3,1fr);margin-top:0}.table-panel{padding:0;overflow:hidden}.table-panel .panel-head{padding:19px 20px 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th{background:#fafbfc;text-align:left;color:#8b96a2;font-size:9px;font-weight:500;padding:12px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{font-size:10px;padding:14px 20px;border-bottom:1px solid #f0f2f4}td strong{font-size:11px}td small{display:block;color:#9ca6b0;margin-top:3px}.amount-income{color:var(--green);font-weight:600}.amount-expense{color:var(--ink);font-weight:600}.action-btn{border:0;background:var(--green-soft);color:var(--green);font-size:9px;border-radius:6px;padding:5px 7px;cursor:pointer;margin-right:4px}.action-btn.reject{background:var(--red-soft);color:var(--red)}.empty-state{height:65vh;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted)}.empty-state>span{font-size:38px;color:var(--green)}.empty-state h2{color:var(--ink);margin-bottom:4px}.empty-state p{margin:0 0 20px}.modal-backdrop{position:fixed;inset:0;background:rgba(13,24,33,.52);z-index:10;display:none;align-items:center;justify-content:center;backdrop-filter:blur(3px)}.modal-backdrop.show{display:flex}.modal{width:480px;background:white;border-radius:16px;padding:24px;box-shadow:0 30px 80px rgba(0,0,0,.2)}.modal-head{display:flex;justify-content:space-between}.modal-head h2{margin:5px 0 20px;font-size:20px}.modal-head button{border:0;background:#f1f3f5;border-radius:50%;width:28px;height:28px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:10px;font-weight:600}.field input,.field select,.field textarea{width:100%;border:1px solid #e1e6eb;border-radius:8px;padding:10px;font:inherit;font-size:11px;outline:0;background:white}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px var(--green-soft)}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;right:28px;bottom:28px;background:#162a27;color:white;padding:12px 17px;border-radius:9px;font-size:11px;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);transition:.25s;z-index:20}.toast.show{opacity:1;transform:none}
.login-screen{position:fixed;inset:0;z-index:100;background:radial-gradient(circle at 75% 20%,#2e6659 0,transparent 35%),linear-gradient(135deg,#15232d,#183c35);display:grid;place-items:center}.login-screen.hidden{display:none}.login-card{width:min(390px,calc(100% - 32px));background:white;border-radius:18px;padding:34px;box-shadow:0 30px 90px rgba(0,0,0,.28);display:flex;flex-direction:column;gap:13px}.login-card .brand-mark{width:42px;height:42px}.login-card h1{margin:5px 0 0;font-size:24px}.login-card p{margin:-5px 0 8px;color:var(--muted);font-size:11px}.login-card label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600}.login-card input{border:1px solid #dfe5e9;border-radius:9px;padding:12px;font:inherit;outline:0}.login-card input:focus{border-color:var(--green);box-shadow:0 0 0 3px var(--green-soft)}.login-card small{color:#98a2ac;text-align:center;font-size:9px}
.card-actions{display:flex;gap:5px}.mini-btn{border:1px solid var(--line);background:white;color:#6e7a87;border-radius:6px;padding:4px 7px;font-size:9px;cursor:pointer}.mini-btn.danger{color:var(--red);background:var(--red-soft);border-color:#f6d9d8}.expense-items{grid-column:1/-1;display:flex;flex-direction:column;gap:8px}.expense-item{display:grid;grid-template-columns:1fr 120px 105px 28px;gap:7px;align-items:end;padding:9px;background:#f7f9fa;border-radius:9px}.expense-item input,.expense-item select{width:100%;border:1px solid #e1e6eb;border-radius:7px;padding:9px;font:inherit;font-size:10px}.remove-item{border:0;background:var(--red-soft);color:var(--red);height:32px;border-radius:7px;cursor:pointer}.add-item{align-self:flex-start;border:1px dashed #a9dcca;background:var(--green-soft);color:var(--green);padding:7px 10px;border-radius:7px;font-size:10px;cursor:pointer}.expense-total{text-align:right;font-weight:700;color:var(--green);font-size:12px}.details{font-size:9px;color:#8d98a3;margin-top:3px}.modal.wide{width:620px}
.project-subitems{display:flex;flex-direction:column;gap:8px;margin-top:14px}.project-subitem{background:#f8fafb;border:1px solid #edf0f3;border-radius:10px;padding:9px}.project-subitem>div:first-child{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}.project-subitem strong{font-size:10px}.project-subitem span{float:right;color:var(--green);font-size:10px;font-weight:700}.project-subitem .progress{clear:both;margin:6px 0 0}.project-items-editor{grid-column:1/-1;background:#f8fafb;border:1px solid #edf0f3;border-radius:10px;padding:10px}.editor-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.project-item-row{display:grid;grid-template-columns:92px 1fr 82px 92px 1fr 28px;gap:7px;align-items:center;margin-bottom:7px}.project-item-row input,.project-item-row select{width:100%;border:1px solid #e1e6eb;border-radius:7px;padding:9px;font:inherit;font-size:10px;background:white}.remove-project-item{border:0;background:var(--red-soft);color:var(--red);height:32px;border-radius:7px;cursor:pointer}
.month-input{border:1px solid var(--line);border-radius:8px;padding:9px 10px;font:inherit;font-size:11px;color:#53606e;background:white}
.export-btn{background:white;border:1px solid var(--line);color:#53606e;box-shadow:0 3px 12px rgba(30,44,58,.03)}
.export-btn:hover{color:var(--green);border-color:#bfe7d7;background:#f4fbf8}
.expense-detail-list{display:flex;flex-direction:column;gap:6px;margin-top:7px}.expense-detail-list div{display:flex;justify-content:space-between;gap:12px;background:#f8fafb;border:1px solid #edf0f3;border-radius:8px;padding:7px 9px}.expense-detail-list b{font-size:13px}.expense-detail-list span{color:#60707f;font-size:12px}.detail-title{font-size:13px;color:#53606e;margin-bottom:2px}
body{font-size:16px}.brand{font-size:21px}.nav-item{font-size:15px}.nav-label{font-size:12px}.nav-item span{font-size:19px}header h1{font-size:27px}header p{font-size:14px}.search input{font-size:14px}.primary,.secondary,.light-btn,.text-btn{font-size:15px}.hero h2{font-size:29px}.hero p{font-size:14px}.metrics span{font-size:13px}.metrics strong{font-size:24px}.metrics small{font-size:12px}.panel h3{font-size:18px}.panel p{font-size:13px}.project-info strong,.approval-info strong,td strong{font-size:14px}.project-info small,.approval-info small,.progress-wrap small,.project-card .footer,.project-card .meta,.details,td small{font-size:12px}.project-card h3{font-size:18px}.project-card p{font-size:13px;height:auto;min-height:36px}.project-subitem strong{font-size:14px}.project-subitem span{font-size:13px}.status{font-size:12px}.tabs button{font-size:14px}.quick-grid b{font-size:14px}.quick-grid small{font-size:12px}th{font-size:13px}td{font-size:14px}.action-btn,.mini-btn{font-size:12px}.field label{font-size:13px}.field input,.field select,.field textarea,.project-item-row input,.project-item-row select,.expense-item input,.expense-item select,.month-input{font-size:14px}.toast{font-size:14px}.modal{width:540px}.modal.wide{width:760px}
body{font-size:18px}.brand{font-size:24px}.nav-item{font-size:17px;padding:13px 13px}.nav-label{font-size:13px}header h1{font-size:31px}header p{font-size:16px}.primary,.secondary,.light-btn,.text-btn{font-size:17px;padding:12px 18px}.panel h3{font-size:22px}.panel p{font-size:15px}.metrics span{font-size:15px}.metrics strong{font-size:28px}.metrics small{font-size:14px}th{font-size:15px;padding:15px 22px}td{font-size:16px;padding:17px 22px}td strong{font-size:17px}td small,.details{font-size:14px}.status{font-size:14px;padding:6px 10px}.action-btn,.mini-btn{font-size:14px;padding:7px 10px}.cards-grid{grid-template-columns:repeat(2,1fr);gap:22px}.project-card{padding:28px;border-radius:18px}.project-card h3{font-size:26px;margin:22px 0 10px;line-height:1.25}.project-card p{font-size:18px;line-height:1.6;min-height:48px}.project-card .meta{font-size:16px;margin:22px 0 12px}.project-card .footer{font-size:15px;margin-top:22px;padding-top:16px}.project-subitems{gap:13px;margin-top:22px}.detail-title{font-size:17px}.project-subitem{padding:15px;border-radius:13px}.project-subitem>div:first-child{margin-bottom:10px}.project-subitem strong{font-size:18px}.project-subitem small{font-size:15px}.project-subitem span{font-size:18px}.progress{height:8px}.project-symbol{width:42px;height:42px;font-size:20px}.field label{font-size:15px}.field input,.field select,.field textarea,.project-item-row input,.project-item-row select,.expense-item input,.expense-item select,.month-input{font-size:16px}.modal{width:620px}.modal.wide{width:860px}
@media(max-width:1050px){.sidebar{width:190px}main{margin-left:190px;padding:0 20px 30px}.grid-main,.grid-bottom{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}.hero-chart{margin-right:0}.cards-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.sidebar{position:static;width:100%;height:auto}.sidebar nav,.sidebar-footer,.org-switcher{display:none}main{margin:0;padding:0 12px 30px}header{height:auto;padding:18px 0}.search,.icon-btn{display:none}.hero{padding:24px}.hero-chart{display:none}.metrics,.compact,.cards-grid{grid-template-columns:1fr}.grid-main,.grid-bottom{grid-template-columns:1fr}.modal{width:calc(100% - 24px)}}
.finance-period-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 16px}.finance-stat{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.finance-stat div{background:#f8fafb;border:1px solid #edf0f3;border-radius:12px;padding:12px}.finance-stat span{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}.finance-stat strong{font-size:18px}@media(max-width:1050px){.finance-period-grid{grid-template-columns:1fr}.finance-stat{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.finance-stat{grid-template-columns:1fr}}
.project-summary-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:0 0 16px}.project-summary-strip article{background:white;border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:0 3px 16px rgba(30,44,58,.025)}.project-summary-strip span{display:block;color:var(--muted);font-size:13px;margin-bottom:7px}.project-summary-strip strong{font-size:20px}.project-summary-strip small{display:block;color:#7c8797;margin-top:4px}.finance-stat{grid-template-columns:repeat(2,1fr)}.task-progress-edit{display:flex;align-items:center;justify-content:flex-end;gap:6px}.task-progress-edit input{width:72px;border:1px solid #e1e6eb;border-radius:8px;padding:7px 8px;font:inherit}@media(max-width:1050px){.project-summary-strip{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.project-summary-strip{grid-template-columns:1fr}.task-progress-edit{justify-content:flex-start}}
.attendance-calendar-card{margin-bottom:16px}.attendance-calendar-week,.attendance-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.attendance-calendar-week{margin-bottom:8px;color:var(--muted);font-weight:700;text-align:center}.calendar-day{min-height:92px;border:1px solid #edf0f3;background:#fbfcfd;border-radius:12px;padding:10px;text-align:left;cursor:pointer;color:var(--ink);display:flex;flex-direction:column;gap:6px}.calendar-day.muted{visibility:hidden}.calendar-day strong{font-size:20px}.calendar-day span{font-size:13px;color:var(--muted)}.calendar-day em{font-style:normal;color:var(--orange);font-size:12px}.calendar-day.today{border-color:#9bdcbe;background:#f3fbf7}.calendar-day.active{background:var(--green);border-color:var(--green);color:white;box-shadow:0 8px 18px rgba(32,167,121,.18)}.calendar-day.active span,.calendar-day.active em{color:white}@media(max-width:760px){.attendance-calendar-week,.attendance-calendar{gap:5px}.calendar-day{min-height:70px;padding:7px}.calendar-day strong{font-size:16px}.calendar-day span,.calendar-day em{font-size:11px}}
.weekly-panel{padding:0;overflow:hidden}.weekly-panel>.panel-head{padding:24px 26px 0}.weekly-filter{display:flex;align-items:end;gap:12px;margin:0 26px 22px;padding:14px;background:#f8fafb;border:1px solid #edf0f3;border-radius:12px}.weekly-filter .field{width:190px}.weekly-filter small{color:var(--muted);font-size:13px;margin-left:auto;padding-bottom:10px}.weekly-list{display:flex;flex-direction:column;gap:22px;padding:0 26px 26px}.weekly-sheet{background:#fff;border:1px solid #1f2933;border-radius:4px;overflow:hidden}.weekly-title{position:relative;text-align:center;border-bottom:1px solid #1f2933;padding:18px 150px 14px}.weekly-title h2{font-family:"Noto Sans SC",serif;font-size:26px;letter-spacing:1px;margin:0 0 18px}.weekly-title h3{font-family:"Noto Sans SC",serif;font-size:24px;margin:0}.weekly-title p{font-size:14px;color:#647080;margin:10px 0 0}.weekly-title .card-actions{position:absolute;right:14px;top:14px}.weekly-template{display:grid;grid-template-columns:80px 1fr .68fr;border-bottom:1px solid #1f2933}.weekly-cell{border-right:1px solid #1f2933;border-bottom:1px solid #1f2933;min-height:52px;padding:12px 14px;background:#fff}.weekly-cell:nth-child(3n){border-right:0}.weekly-cell.label,.weekly-cell.heading{text-align:center;font-weight:700;font-size:20px;min-height:auto}.weekly-cell.categories{font-weight:700;line-height:1.4;font-size:20px}.weekly-cell.multiline{white-space:normal;line-height:1.65;font-size:18px;min-height:185px}.weekly-section{grid-column:1/-1;text-align:center;font-size:25px;font-weight:700;letter-spacing:2px;padding:18px;border-bottom:1px solid #1f2933}.weekly-projects-wrap{border-top:0}.weekly-projects-table th,.weekly-projects-table td{border-color:#1f2933;color:#111;text-align:center;vertical-align:top}.weekly-projects-table th{background:#fff;font-size:18px;font-weight:700}.weekly-projects-table td{font-size:17px;min-height:88px}.weekly-projects-table td:nth-child(3),.weekly-projects-table td:nth-child(4){text-align:left;line-height:1.6}.weekly-project-row{display:grid;grid-template-columns:140px 1fr 1fr 34px;gap:8px;margin-bottom:8px}.weekly-project-row input,.weekly-project-row textarea{width:100%;border:1px solid #e1e6eb;border-radius:7px;padding:9px;font:inherit;font-size:14px;background:white}.remove-weekly-project{border:0;background:var(--red-soft);color:var(--red);border-radius:7px;cursor:pointer}.weekly-project-editor{grid-column:1/-1;background:#f8fafb;border:1px solid #edf0f3;border-radius:10px;padding:10px}.weekly-form textarea{line-height:1.6}@media(max-width:760px){.weekly-filter{flex-direction:column;align-items:stretch}.weekly-filter .field{width:100%}.weekly-filter small{margin-left:0;padding-bottom:0}.weekly-title{padding:16px}.weekly-title .card-actions{position:static;justify-content:center;margin-top:12px}.weekly-template{grid-template-columns:60px 1fr}.weekly-cell:nth-child(3n){border-right:1px solid #1f2933}.weekly-cell.heading:nth-child(3),.weekly-cell.multiline:nth-child(6),.weekly-cell.heading:nth-child(9),.weekly-cell.multiline:nth-child(12){grid-column:1/-1}.weekly-project-row{grid-template-columns:1fr}.weekly-projects-table{min-width:760px}}
.modal-backdrop.show{padding:18px}.modal{max-height:calc(100vh - 36px);display:flex;flex-direction:column;overflow:hidden;padding:0}.modal-head{flex:none;padding:22px 24px 0}.modal-head h2{margin-bottom:14px}#modal-form{display:flex;flex:1;flex-direction:column;min-height:0}#modal-fields{flex:1;min-height:0;overflow-y:auto;padding:0 24px 10px}.modal-actions{flex:none;position:sticky;bottom:0;margin-top:0;padding:14px 24px 18px;background:white;border-top:1px solid var(--line);box-shadow:0 -8px 18px rgba(24,33,45,.05)}.modal.wide{width:min(860px,calc(100vw - 36px))}@media(max-width:760px){.modal-backdrop.show{align-items:flex-start;padding:10px}.modal,.modal.wide{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.modal-head{padding:18px 16px 0}#modal-fields{padding:0 16px 8px}.modal-actions{padding:12px 16px 16px}.weekly-project-row{grid-template-columns:1fr 34px}.weekly-project-row input,.weekly-project-row textarea{grid-column:1}.remove-weekly-project{grid-column:2;grid-row:1 / span 3}}
.exhibit-editor{gap:12px}.exhibit-item-row{display:block;background:#fff;border:1px solid #e6ebef;border-radius:12px;padding:12px;margin-bottom:12px}.exhibit-item-head{display:grid;grid-template-columns:1.1fr .8fr 1.3fr 34px;gap:8px;align-items:center;margin-bottom:10px}.exhibit-item-head input,.discipline-row input,.discipline-row select{width:100%;border:1px solid #e1e6eb;border-radius:8px;padding:9px;font:inherit;font-size:14px;background:white}.discipline-editor{display:flex;flex-direction:column;gap:7px}.discipline-row{display:grid;grid-template-columns:58px .8fr 82px 104px 1.1fr;gap:8px;align-items:center;background:#f8fafb;border:1px solid #edf0f3;border-radius:10px;padding:8px}.discipline-row strong{color:#203040;font-size:15px}.exhibit-progress-note{margin-top:9px;color:#6f7d8a;font-size:13px}.exhibit-progress-note b{color:var(--green)}.discipline-summary{clear:both;display:flex;flex-direction:column;gap:6px;margin-top:10px}.discipline-summary>div{display:grid;grid-template-columns:46px 1fr;gap:8px;background:#fff;border:1px solid #edf0f3;border-radius:9px;padding:7px 9px}.discipline-summary b{font-size:13px;color:#273545}.discipline-summary span{font-size:13px;color:#5e6b78}.discipline-summary small{grid-column:2;color:#8895a3;font-size:12px}.exhibit-subitem .details{display:block;margin:0 0 2px}@media(max-width:760px){.exhibit-item-head,.discipline-row{grid-template-columns:1fr}.discipline-row strong{font-size:16px}.exhibit-item-head .remove-project-item{height:36px}.discipline-summary>div{grid-template-columns:1fr}}
.discipline-row{grid-template-columns:110px .85fr 82px 104px 1fr 34px}.remove-discipline-item{border:0;background:var(--red-soft);color:var(--red);height:36px;border-radius:8px;cursor:pointer}.add-discipline-item{margin-top:8px;border:1px dashed #a9dcca;background:var(--green-soft);color:var(--green);padding:8px 11px;border-radius:8px;font-size:13px;cursor:pointer}.discipline-summary>div{grid-template-columns:72px 1fr}@media(max-width:760px){.discipline-row{grid-template-columns:1fr}.remove-discipline-item{height:38px}.discipline-summary>div{grid-template-columns:1fr}}
.exhibit-subitem{position:relative;padding:14px 16px 22px}.exhibit-subitem .progress{margin-top:10px;margin-right:0}.exhibit-subitem>span{position:absolute;right:14px;bottom:4px;color:var(--green);font-weight:800}.exhibit-compact-head{display:grid!important;grid-template-columns:minmax(220px,1.1fr) minmax(260px,1.4fr) auto;gap:12px;align-items:center;margin-bottom:6px!important}.exhibit-compact-head strong{font-size:18px!important;line-height:1.35}.exhibit-compact-head small{white-space:nowrap;color:#334155}.discipline-summary.compact{display:flex;flex-wrap:wrap;gap:6px;margin:0}.task-chip{display:inline-flex;align-items:center;border:1px solid #dcefe8;background:#f3fbf7;color:#15845e;border-radius:999px;padding:4px 9px;font-size:13px;font-weight:700;white-space:nowrap}.task-chip.risk{border-color:#f4cecc;background:var(--red-soft);color:var(--red)}.task-chip.good{border-color:#bfe8d8;background:var(--green-soft);color:var(--green)}.task-chip.wait,.task-chip.muted{border-color:#e4e8ed;background:#fff;color:#7c8797}@media(max-width:1050px){.exhibit-compact-head{grid-template-columns:1fr}.exhibit-compact-head small{white-space:normal}.discipline-summary.compact{margin-top:4px}}
.task-center-list{display:flex;flex-direction:column}.task-center-row{display:grid;grid-template-columns:1fr 92px 160px;gap:12px;align-items:center;padding:15px 20px;border-top:1px solid #edf0f3}.task-center-row strong{display:block;font-size:17px;color:#102033}.task-center-row small{display:block;color:#7c8797;margin-top:5px;line-height:1.5}.task-center-row .priority{text-align:center}.task-center-row .task-progress-edit{justify-content:flex-end}@media(max-width:760px){.task-center-row{grid-template-columns:1fr}.task-center-row .priority{text-align:left}.task-center-row .task-progress-edit{justify-content:flex-start}}
.voucher-links,.voucher-existing{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.voucher-links a,.voucher-existing a{border:1px solid #dcefe8;background:#f3fbf7;color:#15845e;border-radius:999px;padding:4px 9px;text-decoration:none;font-size:13px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.voucher-existing{margin-top:8px}.voucher-existing strong{font-size:13px;color:#53606e}.voucher-existing small{flex-basis:100%;color:#8d98a3}
.finance-rule-note{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 16px;margin:0 0 14px;color:#667485;box-shadow:0 3px 16px rgba(30,44,58,.02)}.finance-rule-note strong{color:#102033}.finance-rule-note span{font-size:14px}.voucher-summary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0;margin:0 0 16px;background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 3px 16px rgba(30,44,58,.025)}.voucher-summary-grid article{padding:14px 18px;border-right:1px solid #edf0f3}.voucher-summary-grid article:last-child{border-right:0}.voucher-summary-grid span{display:block;color:#7c8797;font-size:13px;margin-bottom:6px}.voucher-summary-grid strong{display:inline-block;font-size:22px;margin-right:8px}.voucher-summary-grid small{color:#53606e;font-size:13px}@media(max-width:760px){.finance-rule-note{align-items:flex-start;flex-direction:column}.voucher-summary-grid{grid-template-columns:1fr}.voucher-summary-grid article{border-right:0;border-bottom:1px solid #edf0f3}.voucher-summary-grid article:last-child{border-bottom:0}}
.ledger-title-line{display:flex;align-items:center;gap:16px}.ledger-title-line h3{margin:0}.ledger-filter-tabs{display:inline-flex;gap:6px;background:#f4f7f9;border:1px solid #e4e9ee;border-radius:10px;padding:4px}.ledger-filter-tabs button{border:0;background:transparent;color:#667485;border-radius:7px;padding:7px 13px;font:inherit;font-size:14px;font-weight:800;cursor:pointer}.ledger-filter-tabs button.active{background:var(--nav);color:white;box-shadow:0 4px 10px rgba(23,34,46,.12)}@media(max-width:760px){.ledger-title-line{align-items:flex-start;flex-direction:column;gap:8px}.ledger-filter-tabs{width:100%}.ledger-filter-tabs button{flex:1}}
.exhibit-compact-head{grid-template-columns:minmax(230px,1.05fr) minmax(280px,1.45fr) 80px!important}.discipline-summary.compact{display:flex;flex-direction:column;gap:6px}.task-chip{width:100%;justify-content:flex-start;padding:5px 12px;border-radius:12px;background:white;color:#526070;border-color:#e0e6eb}.task-chip.good{background:#f4fbf8;color:#15845e}.task-chip.wait,.task-chip.muted{background:white;color:#667485}.task-chip.risk{background:#fff6f5;color:var(--red)}.exhibit-status{display:inline-flex;align-items:center;justify-content:center;justify-self:end;border-radius:10px;padding:6px 10px;font-size:15px!important;font-weight:800}.exhibit-status.good{background:var(--green-soft);color:var(--green)}.exhibit-status.wait{background:#fff;color:#667485;border:1px solid #e0e6eb}.exhibit-status.risk{background:var(--red-soft);color:var(--red)}@media(max-width:1050px){.exhibit-compact-head{grid-template-columns:1fr!important}.exhibit-status{justify-self:start}}
.exhibit-compact-head{grid-template-columns:minmax(230px,1.05fr) minmax(360px,1.9fr)!important}.discipline-summary.compact{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center}.task-chip{width:auto;min-width:96px;justify-content:center;padding:5px 12px}.exhibit-status{display:none!important}@media(max-width:1050px){.discipline-summary.compact{justify-content:flex-start}.task-chip{min-width:auto}}
.task-owner{border:0;background:transparent;color:var(--green);font:inherit;font-weight:900;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:0 2px}.task-owner:hover{color:#127f5d}.task-summary{display:flex;flex-direction:column;gap:14px}.task-project-group{border:1px solid #e6ebef;border-radius:14px;background:#fbfcfd;overflow:hidden}.task-project-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 15px;background:white;border-bottom:1px solid #edf0f3}.task-project-head strong{font-size:18px}.task-project-head span{color:#6d7986;font-size:13px}.task-summary-row{display:grid;grid-template-columns:1fr 70px 58px;gap:12px;align-items:center;padding:12px 15px;border-bottom:1px solid #edf0f3}.task-summary-row:last-child{border-bottom:0}.task-summary-row b{font-size:16px}.task-summary-row small{display:block;color:#7c8797;margin-top:4px}.task-summary-row>strong{text-align:right;color:var(--green)}.priority{justify-self:end;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800}.priority.risk{background:var(--red-soft);color:var(--red)}.priority.warn{background:var(--orange-soft);color:var(--orange)}.priority.normal{background:#eef2f5;color:#667485}.priority.done{background:var(--green-soft);color:var(--green)}@media(max-width:760px){.task-project-head,.task-summary-row{grid-template-columns:1fr}.task-project-head{align-items:flex-start;flex-direction:column}.priority{justify-self:start}.task-summary-row>strong{text-align:left}}
.project-title-btn{border:0;background:transparent;color:var(--ink);font:inherit;font-weight:900;text-align:left;padding:0;cursor:pointer}.project-title-btn:hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}.project-overview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0 12px}.project-overview-grid div,.project-detail-top div{background:#f8fafb;border:1px solid #edf0f3;border-radius:12px;padding:12px}.project-overview-grid span,.project-detail-top span{display:block;color:#7d8996;font-size:12px;margin-bottom:6px}.project-overview-grid strong,.project-detail-top strong{font-size:17px}.project-overview-line{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;color:#6f7c88;font-size:13px}.project-overview-line span{background:#fff;border:1px solid #edf0f3;border-radius:999px;padding:5px 9px}.project-detail-view{display:flex;flex-direction:column;gap:14px}.project-detail-top{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.project-detail-meta{display:flex;flex-wrap:wrap;gap:8px}.project-detail-meta span{background:#f8fafb;border:1px solid #edf0f3;border-radius:999px;padding:7px 10px;color:#53606e}.project-detail-desc{margin:0;color:#53606e;line-height:1.7}.detail-subitems{margin-top:4px}@media(max-width:1050px){.project-overview-grid,.project-detail-top{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.project-overview-grid,.project-detail-top{grid-template-columns:1fr}}
.bar-chart,.bars{overflow:hidden}.bars i,.bars b{max-height:96%}
.monthly-report-panel{padding:0;overflow:hidden;margin-bottom:16px}.monthly-report-panel>.panel-head{padding:20px 22px 0}.report-head-actions{display:flex;align-items:center;gap:10px}.monthly-report-panel #monthly-ledger-report{padding:0 0 18px}.monthly-report-section{margin:16px 0 0}.monthly-report-section h3{text-align:center;font-size:22px;margin:0;padding:12px 0;border-top:1px solid #1f2933;border-bottom:1px solid #1f2933;background:#fff}.monthly-report-actions{display:flex;justify-content:flex-end;padding:8px 12px;background:#fff}.monthly-report-table{width:100%;border-collapse:collapse;background:#fff}.monthly-report-table th,.monthly-report-table td{border:1px solid #1f2933;padding:8px 10px;font-size:15px;color:#111}.monthly-report-table th{color:#e11d24;background:#fff;text-align:left;font-weight:700}.monthly-report-table .report-total td{background:#bdd7ee;font-weight:800}.monthly-report-table td:nth-child(2),.monthly-report-table td:nth-child(3){white-space:nowrap}.monthly-report-table input{width:100%;border:0;background:transparent;padding:4px 0;font:inherit;color:#111;outline:none}.monthly-report-table input:focus{background:#fffbe6;box-shadow:inset 0 -1px 0 #10b981}.monthly-report-table td:last-child{width:86px;min-width:86px}@media(max-width:760px){.monthly-report-panel>.panel-head,.report-head-actions{flex-direction:column;align-items:stretch;gap:10px}.monthly-report-table{min-width:760px}.monthly-report-section{overflow:auto}.monthly-report-section h3{font-size:18px}}

/* Polished finance ledger */
#ledger .metrics.compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:18px}
#ledger .metrics.compact article{position:relative;overflow:hidden;border:0;border-radius:20px;padding:22px 24px;background:linear-gradient(145deg,#fff,#f8fbfa);box-shadow:0 16px 38px rgba(26,40,54,.08)}
#ledger .metrics.compact article:after{content:"";position:absolute;right:-34px;top:-38px;width:120px;height:120px;border-radius:50%;background:rgba(32,167,121,.08)}
#ledger .metrics.compact .metric-icon{width:44px;height:44px;border-radius:14px}
#ledger .metrics.compact span{font-size:14px;font-weight:800;color:#7c8797}
#ledger .metrics.compact strong{font-size:30px;letter-spacing:-.6px}
#ledger .metrics.compact small{font-size:13px;color:#8b96a2}
#ledger .finance-rule-note{border:0;border-radius:18px;padding:16px 20px;background:linear-gradient(135deg,#edf8f3,#fff);box-shadow:0 12px 28px rgba(24,51,42,.06)}
#ledger .finance-rule-note strong{display:inline-flex;align-items:center;gap:8px;color:#11845f}
#ledger .finance-rule-note strong:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(32,167,121,.12)}
#ledger .monthly-report-panel{border:0;border-radius:22px;background:#f7faf9;box-shadow:0 18px 45px rgba(29,43,57,.08)}
#ledger .monthly-report-panel>.panel-head{padding:26px 28px 18px;background:linear-gradient(135deg,#17352f,#246653);color:white;margin:0;align-items:center}
#ledger .monthly-report-panel>.panel-head h3{font-size:28px;color:white;margin-bottom:6px}
#ledger .monthly-report-panel>.panel-head p{color:#bfe6d7;font-size:15px}
#ledger .report-head-actions .month-input{height:46px;border:0;border-radius:12px;padding:0 14px;font-weight:800;color:#243443;background:white}
#ledger .report-head-actions .primary{height:46px;border-radius:12px;background:#33b983;box-shadow:0 10px 24px rgba(0,0,0,.18)}
#ledger .monthly-report-panel #monthly-ledger-report{display:flex;flex-direction:column;gap:18px;padding:22px 24px 28px}
#ledger .monthly-report-section{margin:0;border:1px solid #e4ede9;border-radius:18px;background:white;overflow:hidden;box-shadow:0 10px 24px rgba(27,41,53,.04)}
#ledger .monthly-report-section h3{position:relative;text-align:left;border:0;background:#fff;padding:18px 22px 14px 48px;font-size:22px;color:#142334}
#ledger .monthly-report-section h3:before{content:"";position:absolute;left:22px;top:24px;width:12px;height:12px;border-radius:4px;background:var(--green)}
#ledger .monthly-report-actions{justify-content:flex-end;padding:0 18px 14px;background:white}
#ledger .monthly-report-actions .mini-btn{border:1px dashed #9ddbc2;background:#f3fbf7;color:#12835e;border-radius:999px;padding:8px 14px;font-weight:800}
#ledger .monthly-report-table{border-collapse:separate;border-spacing:0;width:calc(100% - 28px);margin:0 14px 18px;border:1px solid #e6ecef;border-radius:14px;overflow:hidden;background:white}
#ledger .monthly-report-table th{border:0;border-bottom:1px solid #e8edf0;background:#f7faf9;color:#19805f;font-size:15px;font-weight:900;padding:13px 16px}
#ledger .monthly-report-table td{border:0;border-bottom:1px solid #eef2f4;padding:12px 16px;font-size:16px;color:#18212d}
#ledger .monthly-report-table tr:last-child td{border-bottom:0}
#ledger .monthly-report-table .report-total td{background:#eaf6f1;color:#102033;font-weight:900;border-top:1px solid #d4ece2}
#ledger .monthly-report-table input{height:36px;border-radius:9px;padding:0 9px;background:#fbfcfd;color:#142334}
#ledger .monthly-report-table input:focus{background:white;box-shadow:0 0 0 3px rgba(32,167,121,.13),inset 0 0 0 1px var(--green)}
#ledger .monthly-report-table td:last-child{width:96px;min-width:96px;text-align:center}
#ledger .monthly-report-table .mini-btn.danger{border:0;border-radius:999px;background:#fff0ef;color:#d65b58}
@media(max-width:1050px){#ledger .metrics.compact{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){#ledger .metrics.compact{grid-template-columns:1fr}#ledger .monthly-report-panel>.panel-head{align-items:flex-start;flex-direction:column}#ledger .monthly-report-panel #monthly-ledger-report{padding:14px}#ledger .monthly-report-table{min-width:760px}}

/* Compact project center and finance ledger */
#projects .toolbar{margin-bottom:12px}
#projects .cards-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#projects .project-card{position:relative;padding:16px 16px 14px;border-radius:16px;box-shadow:0 8px 22px rgba(29,43,57,.055)}
#projects .project-card-head{align-items:center;margin-bottom:8px}
#projects .project-card .project-symbol{width:34px;height:34px;font-size:17px;border-radius:10px}
#projects .project-card .card-actions{gap:5px}
#projects .project-card .status{font-size:12px;padding:5px 8px}
#projects .project-card h3{font-size:20px;line-height:1.25;margin:8px 0 6px;min-height:auto}
#projects .project-title-btn{line-height:1.25}
#projects .project-card p{font-size:14px;line-height:1.45;min-height:0;height:auto;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#projects .project-card .meta{font-size:13px;margin:8px 0 6px}
#projects .project-card .progress{height:6px;margin-bottom:8px}
#projects .project-overview-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:8px 0}
#projects .project-overview-grid div{padding:9px 8px;border-radius:10px;background:#fbfcfd}
#projects .project-overview-grid span{font-size:11px;margin-bottom:4px;white-space:nowrap}
#projects .project-overview-grid strong{font-size:15px;line-height:1.25}
#projects .project-overview-line{gap:6px;margin-top:8px}
#projects .project-overview-line span{font-size:12px;padding:4px 8px}
#projects .project-card .footer{font-size:12px;margin-top:10px;padding-top:10px}
#projects .mini-btn{font-size:12px;padding:5px 7px}

#ledger .metrics.compact{gap:12px;margin:12px 0}
#ledger .metrics.compact article{border-radius:16px;padding:16px 18px}
#ledger .metrics.compact .metric-icon{width:38px;height:38px;border-radius:12px}
#ledger .metrics.compact span{font-size:13px}
#ledger .metrics.compact strong{font-size:25px;margin:2px 0}
#ledger .metrics.compact small{font-size:12px}
#ledger .finance-rule-note{padding:12px 16px;margin-bottom:12px;border-radius:15px}
#ledger .monthly-report-panel{border-radius:18px}
#ledger .monthly-report-panel>.panel-head{padding:18px 20px 14px}
#ledger .monthly-report-panel>.panel-head h3{font-size:24px;margin-bottom:2px}
#ledger .monthly-report-panel>.panel-head p{font-size:13px}
#ledger .report-head-actions .month-input,#ledger .report-head-actions .primary{height:40px}
#ledger .monthly-report-panel #monthly-ledger-report{gap:12px;padding:14px 16px 18px}
#ledger .monthly-report-section{border-radius:15px}
#ledger .monthly-report-section h3{font-size:19px;padding:14px 18px 10px 42px}
#ledger .monthly-report-section h3:before{left:20px;top:20px;width:10px;height:10px}
#ledger .monthly-report-actions{padding:0 14px 10px}
#ledger .monthly-report-actions .mini-btn{padding:6px 11px;font-size:12px}
#ledger .monthly-report-table{width:calc(100% - 20px);margin:0 10px 12px;border-radius:12px}
#ledger .monthly-report-table th{font-size:13px;padding:10px 12px}
#ledger .monthly-report-table td{font-size:14px;padding:9px 12px}
#ledger .monthly-report-table input{height:30px;padding:0 7px}

@media(max-width:1300px){#projects .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#projects .cards-grid{grid-template-columns:1fr}#projects .project-overview-grid{grid-template-columns:repeat(2,1fr)}}

/* Dense two-column finance report layout */
#ledger .monthly-report-panel #monthly-ledger-report{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  align-items:stretch;
}
#ledger .monthly-report-section{
  min-width:0;
  display:flex;
  flex-direction:column;
}
#ledger .monthly-report-section[data-report-section="income"]{
  grid-column:1/-1;
}
#ledger .monthly-report-section h3{
  font-size:21px;
  padding:14px 18px 11px 42px;
}
#ledger .monthly-report-section h3:before{
  left:20px;
  top:21px;
  width:10px;
  height:10px;
}
#ledger .monthly-report-actions{
  padding:0 10px 8px;
}
#ledger .monthly-report-table{
  width:calc(100% - 16px);
  margin:0 8px 10px;
  table-layout:fixed;
  flex:1;
}
#ledger .monthly-report-table th{
  padding:10px 12px;
  font-size:14px;
}
#ledger .monthly-report-table td{
  padding:9px 12px;
  font-size:16px;
}
#ledger .monthly-report-table input{
  height:32px;
  border-radius:7px;
  padding:0 8px;
  font-size:16px;
}
#ledger .monthly-report-table td:last-child{
  width:72px;
  min-width:72px;
}
#ledger .monthly-report-section[data-report-section="salary"] .monthly-report-table th:nth-child(1),
#ledger .monthly-report-section[data-report-section="salary"] .monthly-report-table td:nth-child(1),
#ledger .monthly-report-section[data-report-section="expense"] .monthly-report-table th:nth-child(1),
#ledger .monthly-report-section[data-report-section="expense"] .monthly-report-table td:nth-child(1),
#ledger .monthly-report-section[data-report-section="income"] .monthly-report-table th:nth-child(1),
#ledger .monthly-report-section[data-report-section="income"] .monthly-report-table td:nth-child(1){width:22%}
#ledger .monthly-report-section[data-report-section="salary"] .monthly-report-table th:nth-child(2),
#ledger .monthly-report-section[data-report-section="salary"] .monthly-report-table td:nth-child(2),
#ledger .monthly-report-section[data-report-section="salary"] .monthly-report-table th:nth-child(3),
#ledger .monthly-report-section[data-report-section="salary"] .monthly-report-table td:nth-child(3),
#ledger .monthly-report-section[data-report-section="expense"] .monthly-report-table th:nth-child(2),
#ledger .monthly-report-section[data-report-section="expense"] .monthly-report-table td:nth-child(2),
#ledger .monthly-report-section[data-report-section="income"] .monthly-report-table th:nth-child(2),
#ledger .monthly-report-section[data-report-section="income"] .monthly-report-table td:nth-child(2){width:18%}
#ledger .monthly-report-section[data-report-section="expense"] .monthly-report-table th:nth-child(3),
#ledger .monthly-report-section[data-report-section="expense"] .monthly-report-table td:nth-child(3),
#ledger .monthly-report-section[data-report-section="income"] .monthly-report-table th:nth-child(3),
#ledger .monthly-report-section[data-report-section="income"] .monthly-report-table td:nth-child(3){width:28%}
#ledger .monthly-report-section[data-report-section="salary"] .monthly-report-table th:nth-child(4),
#ledger .monthly-report-section[data-report-section="salary"] .monthly-report-table td:nth-child(4),
#ledger .monthly-report-section[data-report-section="expense"] .monthly-report-table th:nth-child(4),
#ledger .monthly-report-section[data-report-section="expense"] .monthly-report-table td:nth-child(4),
#ledger .monthly-report-section[data-report-section="income"] .monthly-report-table th:nth-child(4),
#ledger .monthly-report-section[data-report-section="income"] .monthly-report-table td:nth-child(4){width:26%}
#ledger .monthly-report-table .mini-btn.danger{
  padding:5px 8px;
  font-size:13px;
}
@media(max-width:1180px){
  #ledger .monthly-report-panel #monthly-ledger-report{grid-template-columns:1fr}
  #ledger .monthly-report-section[data-report-section="income"]{grid-column:auto}
}
@media(max-width:760px){
  main{padding:0 10px 24px}
  #ledger .metrics.compact{grid-template-columns:1fr;gap:10px}
  #ledger .finance-rule-note{font-size:13px}
  #ledger .monthly-report-panel>.panel-head{padding:16px;gap:12px}
  #ledger .report-head-actions{width:100%}
  #ledger .report-head-actions .month-input,
  #ledger .report-head-actions .primary{width:100%}
  #ledger .monthly-report-panel #monthly-ledger-report{display:flex;flex-direction:column;padding:10px;gap:12px}
  #ledger .monthly-report-section{overflow-x:auto;-webkit-overflow-scrolling:touch}
  #ledger .monthly-report-section h3{position:sticky;left:0;min-width:760px;background:white;z-index:1}
  #ledger .monthly-report-actions{position:sticky;left:0;min-width:760px}
  #ledger .monthly-report-table{min-width:760px;width:760px;margin:0 8px 10px}
  #ledger .monthly-report-table th{font-size:14px}
  #ledger .monthly-report-table td,
  #ledger .monthly-report-table input{font-size:15px}
}

/* Mobile navigation entry */
@media(max-width:760px){
  body{padding-bottom:82px}
  header{
    position:sticky;
    top:0;
    z-index:45;
    background:rgba(245,247,250,.96);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(226,232,240,.85);
    margin:0 -10px 12px;
    padding:14px 12px 10px!important;
  }
  header>div:first-child{
    width:100%;
  }
  header h1{
    font-size:24px;
    margin-bottom:6px;
  }
  header p{
    font-size:13px;
    line-height:1.4;
  }
  .mobile-page-switcher{
    display:block;
    width:100%;
    margin-top:10px;
    height:44px;
    border:1px solid #dce5e9;
    border-radius:12px;
    padding:0 14px;
    background:#fff;
    color:#142334;
    font:inherit;
    font-size:16px;
    font-weight:800;
    box-shadow:0 8px 20px rgba(29,43,57,.06);
  }
  .sidebar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    top:auto;
    width:100%;
    height:auto;
    padding:8px 8px calc(8px + env(safe-area-inset-bottom));
    background:rgba(23,34,46,.97);
    border-top:1px solid rgba(255,255,255,.08);
    z-index:50;
    display:block;
    backdrop-filter:blur(10px);
  }
  .sidebar .brand,
  .sidebar .org-switcher,
  .sidebar .nav-label,
  .sidebar .sidebar-footer{
    display:none!important;
  }
  .sidebar nav{
    display:flex!important;
    gap:6px;
    overflow-x:auto;
    padding:0 2px;
    scrollbar-width:none;
  }
  .sidebar nav::-webkit-scrollbar{display:none}
  .sidebar .nav-item{
    min-width:82px;
    flex:0 0 auto;
    margin:0;
    padding:8px 7px;
    border-radius:12px;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    text-align:center;
    color:#b9c5cf;
    font-size:13px;
    line-height:1.15;
  }
  .sidebar .nav-item span{
    width:auto;
    font-size:18px;
  }
  .sidebar .nav-item em{
    display:none;
  }
  .sidebar .nav-item.active{
    background:#243745;
    color:white;
    box-shadow:inset 0 3px var(--green);
  }
  main{
    margin-left:0!important;
    padding-bottom:96px!important;
  }
}
.mobile-page-switcher{display:none}
@media(max-width:760px){
  header .header-actions{display:none}
  .mobile-page-switcher{display:block}
}
