*{box-sizing:border-box} body{margin:0;font-family:Inter,Arial,sans-serif;background:#f7f8fa;color:#182235;font-size:14px}
.shell{display:grid;grid-template-columns:230px minmax(900px,1fr);min-height:100vh}
.side{background:#101b2d;color:#eef4ff;padding:22px 15px;display:flex;flex-direction:column;gap:22px}
.brand{font-size:18px;font-weight:800;padding:0 10px 16px;border-bottom:1px solid rgba(255,255,255,.1)}
.navlabel{font-size:10px;letter-spacing:.12em;color:#8290a5;text-transform:uppercase;padding:0 10px 6px}
.side button{border:0;background:transparent;width:100%;text-align:left;padding:10px;border-radius:8px;color:#dbe5f5;cursor:pointer}
.side button.active{background:#294a91;color:#fff;font-weight:700}.dot{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:10px;background:#6d7f9a}
.project-subnav{display:none;margin:3px 0 7px 18px;padding-left:10px;border-left:1px solid rgba(255,255,255,.14)}
.project-subnav.open{display:block}.project-subnav button{padding:7px 9px;font-size:12px;color:#9eabc0}.project-subnav button.active{background:rgba(57,115,237,.18);color:#fff}
.main{padding:20px 24px}.top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.title{font-size:22px;font-weight:800}.muted{color:#758198;font-size:12px}
.search,.project-select{background:#fff;border:1px solid #dfe3e9;border-radius:8px;padding:10px 12px;color:#39465b}.search{width:220px}.primary{border:0;background:#2761e8;color:#fff;border-radius:8px;padding:11px 15px;font-weight:700;cursor:pointer}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}.card{background:#fff;border:1px solid #e2e5ea;border-radius:12px;padding:16px;min-width:0}
.statname{font-size:11px;color:#718097;text-transform:uppercase}.statvalue{font-size:26px;font-weight:800;margin:7px 0}.green{color:#13a75c}.red{color:#ed4d55}.blue{color:#3268e8}.purple{color:#7758df}
.middle{display:grid;grid-template-columns:1.35fr .9fr .85fr;gap:14px;margin-bottom:14px} h3{font-size:14px;margin:0 0 12px}
.chart{height:200px;position:relative;border-left:1px solid #e6e9ee;border-bottom:1px solid #e6e9ee;margin:20px 8px 8px 35px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 48px,#eef0f3 49px)}
.line{position:absolute;left:5%;right:3%;height:3px;transform-origin:left center}.line.one{top:48%;background:#19a65b;transform:rotate(-8deg)}.line.two{top:72%;background:#ef555b;transform:rotate(-4deg)}
.task{display:flex;gap:8px;padding:9px 0;border-bottom:1px solid #edf0f3;font-size:12px}.task small{display:block;color:#8a95a7;margin-top:3px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;font-size:10px;text-align:center}.calendar-grid span{padding:5px 0}.calendar-grid .today{background:#2f65e9;color:#fff;border-radius:50%}.event{font-size:11px;padding:8px 0;border-bottom:1px solid #edf0f3}
.bottom{display:grid;grid-template-columns:1.2fr 1fr .85fr;gap:14px}table{width:100%;border-collapse:collapse;font-size:10px}th{text-align:left;color:#768298;padding:7px 5px;border-bottom:1px solid #e7e9ed}td{padding:9px 5px;border-bottom:1px solid #eef0f3}
.doc,.note{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid #edf0f3;font-size:11px}.fileicon{width:28px;height:30px;border-radius:6px;background:#edf2ff;display:grid;place-items:center;color:#3767df;font-size:9px}
.view{display:none}.view.active{display:block}.client-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.filters{display:flex;gap:7px;flex-wrap:wrap}.filter{border:1px solid #dfe4eb;background:#fff;color:#5e6b80;border-radius:8px;padding:8px 12px;cursor:pointer}.filter.active{background:#eaf0ff;border-color:#87a6f3;color:#2457d6;font-weight:700}.clients-layout{display:grid;grid-template-columns:minmax(650px,1.55fr) minmax(330px,.8fr);gap:14px}.clients-table{font-size:12px}.clients-table tbody tr{cursor:pointer}.clients-table tbody tr:hover,.clients-table tbody tr.selected{background:#f3f6ff}.client-name{font-weight:700;color:#243147}.status{display:inline-block;padding:5px 8px;border-radius:99px;font-size:10px;font-weight:700}.status.potential{background:#fff4d7;color:#a66b00}.status.ongoing{background:#e9f0ff;color:#2c5dcc}.status.completed{background:#e3f7ec;color:#18884e}.money{font-weight:700}.detail-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.avatar{width:42px;height:42px;border-radius:11px;background:#2f65e9;color:#fff;display:grid;place-items:center;font-weight:800}.detail-row{padding:8px 0;border-bottom:1px solid #edf0f3}.detail-row span{display:block;color:#7a879a;font-size:10px;margin-bottom:3px}.client-tabs{display:flex;gap:3px;overflow-x:auto;border-bottom:1px solid #e8ebf0;margin:16px -4px 12px;padding:0 4px}.client-tab{border:0;background:transparent;color:#758198;padding:9px 7px;border-bottom:2px solid transparent;cursor:pointer;font-size:11px;white-space:nowrap}.client-tab.active{color:#2d62df;border-bottom-color:#2d62df;font-weight:700}.tab-panel{min-height:170px}.note-card,.mini-item{background:#f7f9fc;border:1px solid #e7ebf1;border-radius:8px;padding:10px;margin-bottom:8px;font-size:11px;line-height:1.45}.note-card small,.mini-item small{display:block;margin-top:4px;color:#8995a7}.note-compose{display:flex;gap:7px;margin-top:10px}.note-compose textarea{flex:1;min-height:62px;resize:vertical;border:1px solid #dfe4eb;border-radius:8px;padding:9px;font:inherit}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.secondary{border:1px solid #dfe4eb;background:#fff;color:#33415a;border-radius:8px;padding:9px;cursor:pointer}.empty-detail{color:#7a879a;text-align:center;padding:70px 15px}.modal{display:none;position:fixed;inset:0;background:rgba(11,20,35,.48);z-index:20;place-items:center}.modal.open{display:grid}.modal-box{width:min(520px,92vw);background:#fff;border-radius:14px;padding:20px;box-shadow:0 18px 55px rgba(0,0,0,.25)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#657188}.field.full{grid-column:1/-1}.field input,.field select{border:1px solid #dfe4eb;border-radius:8px;padding:10px;font:inherit;color:#26334a}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.overview-title{font-size:10px;letter-spacing:.08em;color:#78869b;text-transform:uppercase;margin:12px 0 2px}.overview-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:12px}.billing{margin-top:12px;border:1px solid #e5e9ef;border-radius:9px;overflow:hidden}.billing summary{cursor:pointer;padding:11px;font-weight:700;background:#f7f9fc}.billing-content{padding:0 11px 10px}.edit-client{width:100%;margin-top:12px}.modal-box.wide{width:min(680px,94vw);max-height:86vh;overflow:auto}.task-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.task-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.task-filters{display:flex;gap:7px;flex-wrap:wrap}.task-table{font-size:12px}.task-table td,.task-table th{padding:12px 8px}.task-table tbody tr{cursor:pointer}.task-table tbody tr:hover{background:#f5f7fc}.task-title{font-weight:700}.priority{display:inline-block;padding:4px 8px;border-radius:99px;font-size:10px;font-weight:700}.priority.high{background:#ffe7e9;color:#d63b45}.priority.medium{background:#fff2d8;color:#a86a00}.priority.low{background:#e8f5ed;color:#21824b}.due.overdue{color:#db3e47;font-weight:700}.due.today{color:#df8200;font-weight:700}.task-done .task-title{text-decoration:line-through;color:#8a95a7}.task-done{opacity:.65}.task-check{width:17px;height:17px;cursor:pointer}.task-select{background:#fff;border:1px solid #dfe3e9;border-radius:8px;padding:9px 11px;color:#39465b}.task-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.task-meta{background:#f6f8fc;border-radius:8px;padding:9px}.task-meta span{display:block;color:#8190a4;font-size:10px;margin-bottom:4px}.activity{border-left:2px solid #dbe3f3;margin-left:6px;padding-left:12px}.activity-item{position:relative;margin:0 0 12px;font-size:11px}.activity-item:before{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:#3973ed;left:-16px;top:4px}.activity-item small{display:block;color:#8995a7;margin-top:3px}
.item-actions{display:flex;gap:6px;margin-left:auto}.mini-btn{border:1px solid #dfe4ec;background:#fff;color:#526078;border-radius:7px;padding:5px 8px;font-size:10px;cursor:pointer}.mini-btn:hover{border-color:#9ab3ee;color:#2f63d8}.mini-btn.danger:hover{border-color:#ef9ca2;color:#d83d47}.editable-item{display:flex;align-items:center;gap:10px}.editable-item>div:first-child{min-width:0;flex:1}.inline-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}.inline-form.three{grid-template-columns:1fr 1fr auto}.inline-form input{width:100%;border:1px solid #dfe3e9;border-radius:8px;padding:9px;color:#202a3c}.upload-label{display:inline-flex;align-items:center;cursor:pointer}.upload-label input{display:none}.finance-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.finance-box{background:#f6f8fc;border-radius:9px;padding:10px}.finance-box span{display:block;color:#8190a4;font-size:10px;margin-bottom:4px}
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.month-nav{display:flex;align-items:center;gap:8px}.month-title{min-width:190px;text-align:center;font-size:15px;font-weight:800}.calendar-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.calendar-month-card{border:1px solid #e5e9ef;border-radius:9px;overflow:hidden}.month-label{text-align:center;padding:8px;font-size:12px;font-weight:800;background:#f7f9fc;border-bottom:1px solid #e5e9ef}.month-calendar{display:grid;grid-template-columns:repeat(7,1fr);border-left:1px solid #e5e9ef}.weekday{padding:5px;text-align:center;color:#78869b;font-size:9px;font-weight:700;text-transform:uppercase;background:#fbfcfe;border-right:1px solid #e5e9ef;border-bottom:1px solid #e5e9ef}.day-cell{min-height:48px;padding:3px;border-right:1px solid #e5e9ef;border-bottom:1px solid #e5e9ef;background:#fff;cursor:pointer}.day-cell:hover{background:#f8faff}.day-cell.selected{background:#edf3ff;box-shadow:inset 0 0 0 2px #3973ed}.day-cell.outside{background:#fafbfc;color:#b1bac8}.day-number{font-size:10px;font-weight:700;margin-bottom:2px}.day-number.today{display:grid;place-items:center;width:18px;height:18px;background:#3268e8;color:#fff;border-radius:50%}.cal-entry{display:block;width:100%;height:4px;border:0;border-radius:4px;background:#3973ed;margin:2px 0;font-size:0;pointer-events:none}.cal-entry.event-entry{background:#22a968}.calendar-legend{display:flex;gap:16px;color:#748196;font-size:10px;margin-top:9px}.legend-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:5px}.calendar-results{margin-top:14px}.calendar-results-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.calendar-cards{display:flex;flex-direction:column;gap:8px}.calendar-card{width:100%;border:1px solid #e4e8ef;border-left:4px solid #3973ed;border-radius:9px;background:#fff;padding:11px;cursor:pointer}.calendar-card:hover{box-shadow:0 5px 16px rgba(32,54,91,.08)}.calendar-card.event-card{border-left-color:#22a968}.calendar-card small{display:block;color:#8491a5;margin-top:5px}.calendar-card p{color:#647187;font-size:10px;margin:6px 0 0}
.finance-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.finance-filters{display:flex;gap:8px;flex-wrap:wrap}.financial-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.finance-table{font-size:12px}.finance-table th,.finance-table td{padding:11px 8px}.finance-table tbody tr{cursor:pointer}.finance-table tbody tr:hover{background:#f6f8fc}.type-pill,.payment-pill{display:inline-block;padding:4px 8px;border-radius:99px;font-size:10px;font-weight:700}.type-pill.income{background:#e5f7ed;color:#16864b}.type-pill.expense{background:#ffe9eb;color:#d33c47}.payment-pill.paid{background:#e8f2ff;color:#2b60d6}.payment-pill.pending{background:#fff2d8;color:#a76a00}.finance-amount{font-weight:800}.finance-amount.expense{color:#db414c}.finance-amount.income{color:#129354}
.global-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.global-filters{display:flex;gap:8px;flex-wrap:wrap}.global-search{min-width:230px;border:1px solid #dfe3e9;border-radius:8px;padding:9px 11px;color:#2e3a50}.document-table,.global-notes-table{font-size:12px}.document-table th,.document-table td,.global-notes-table th,.global-notes-table td{padding:11px 8px}.document-table tbody tr,.global-notes-table tbody tr{cursor:pointer}.document-table tbody tr:hover,.global-notes-table tbody tr:hover{background:#f6f8fc}.doc-type{display:inline-block;background:#edf2ff;color:#3462cf;border-radius:6px;padding:5px 7px;font-size:10px;font-weight:700}.notes-count{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.note-preview{max-width:520px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.module-tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:14px;padding-bottom:2px}.module-tab{border:1px solid #dfe4eb;background:#fff;color:#657188;border-radius:8px;padding:9px 12px;cursor:pointer;white-space:nowrap}.module-tab.active{background:#eaf0ff;border-color:#87a6f3;color:#2457d6;font-weight:700}.module-panel{min-height:360px}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.account-card{background:linear-gradient(135deg,#172945,#294a91);color:#fff;border-radius:12px;padding:16px;min-height:126px}.account-card .muted{color:#b9c8e2}.account-balance{font-size:24px;font-weight:800;margin:18px 0 5px}.module-table{font-size:12px}.module-table th,.module-table td{padding:11px 8px}.module-table tbody tr{cursor:pointer}.module-table tbody tr:hover{background:#f6f8fc}.module-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.status-pill{display:inline-block;padding:4px 8px;border-radius:99px;font-size:10px;font-weight:700;background:#eef2f7;color:#55657d}.status-pill.good{background:#e5f7ed;color:#16864b}.status-pill.warn{background:#fff2d8;color:#a76a00}.status-pill.bad{background:#ffe9eb;color:#d33c47}.report-list{display:grid;gap:9px}.report-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #edf0f3}.report-row:last-child{border-bottom:0}.section-note{background:#f6f8fc;border:1px solid #e4e9f1;border-radius:9px;padding:11px;color:#66748a;font-size:12px;margin-bottom:12px}
@media(max-width:1000px){body{overflow-x:auto}}
