:root{--blue:#087bc1;--navy:#104b79;--gold:#d4ac65;--ink:#19344a;--muted:#687d8d;--line:#dce5ec;--surface:#f3f6f9;--white:#fff;font-family:Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--surface);font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button,a,input,select,textarea{outline-offset:4px}button:disabled{opacity:.55;cursor:wait}input,select,textarea{width:100%;border:1px solid #c6d4df;border-radius:9px;background:#fff;padding:11px 12px;color:var(--ink);min-height:44px}input:focus,textarea:focus,select:focus{border-color:var(--blue);outline:2px solid #d7edfa}textarea{resize:vertical;min-height:85px}label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-.8px}h2{font-size:20px}h3{font-size:16px}p{line-height:1.65}.muted{color:var(--muted)}.tiny{font-size:12px}.btn{border:0;border-radius:9px;background:var(--blue);color:#fff;padding:12px 19px;font-weight:650;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{background:var(--navy)}.btn.secondary{background:#fff;color:var(--navy);border:1px solid var(--line)}.btn.gold{background:var(--gold);color:#233c4e}.btn.small{padding:7px 12px;font-size:13px;min-height:36px}.btn.link{background:transparent;color:var(--blue);padding:5px}.danger{color:#b33939}.shell{display:flex;min-height:100vh}.sidebar{width:240px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:30px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.sidebar img{width:185px;margin:0 6px 15px}.brandline{font-size:11px;color:var(--muted);letter-spacing:1.7px;margin:0 8px 29px}.nav{display:grid;gap:8px}.nav button{text-align:left;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:var(--muted);padding:13px;border-radius:9px;font-weight:600}.nav button.active{background:#e8f4fc;color:var(--blue)}.nav button:hover{background:#f2f7fb}.nav .icon{font-size:19px;width:22px;text-align:center}.sidebar-footer{margin-top:auto;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:18px;overflow-wrap:anywhere}.sidebar-footer button{margin-top:10px}.main{flex:1;min-width:0;padding:35px 42px 60px;max-width:1600px}.topline{font-size:12px;letter-spacing:1.5px;color:var(--blue);font-weight:700;margin-bottom:10px}.pagehead{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.pagehead p{margin-top:6px;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:21px}.card .label{font-size:13px;color:var(--muted)}.card .number{font-size:27px;font-weight:700;margin-top:11px;letter-spacing:-1px}.card .unit{font-size:11px;color:var(--muted);margin-top:4px}.card:first-child{border-top:3px solid var(--blue)}.card:nth-child(2){border-top:3px solid var(--gold)}.card:nth-child(3){border-top:3px solid var(--navy)}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px;margin-bottom:22px}.panelhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.field{margin-bottom:18px}.full{grid-column:1/-1}.steps{display:flex;gap:22px;color:var(--muted);font-size:13px;margin:8px 0 28px}.steps strong{color:var(--blue)}.steps span{display:flex;align-items:center;gap:8px}.stepno{display:inline-flex;background:#e9f3fa;border-radius:50%;width:26px;height:26px;align-items:center;justify-content:center;color:var(--blue);font-weight:700}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px}.summary-panel{position:sticky;top:22px;align-self:start;border-top:4px solid var(--gold)}.summary-panel h3{margin-bottom:20px}.sumrow{display:flex;justify-content:space-between;gap:12px;margin:14px 0;font-size:14px}.sumrow.total{font-size:21px;font-weight:700;border-top:1px solid var(--line);padding-top:17px;color:var(--navy)}.summary-panel .btn{width:100%;margin-top:15px}.summary-panel p{margin-top:15px;font-size:12px;color:var(--muted)}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:650;padding:13px 12px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:14px 12px;border-bottom:1px solid #edf1f5;vertical-align:middle}tbody tr:last-child td{border-bottom:0}.right{text-align:right}.nowrap{white-space:nowrap}.items-table input,.items-table select{padding:9px;min-width:70px}.items-table .desc{min-width:170px}.items-table .price{min-width:100px}.items-table th{text-transform:none}.items-table td{padding:8px 5px}.badge{display:inline-flex;padding:5px 9px;border-radius:6px;font-size:11px;font-weight:650;background:#edf5fc;color:#087bc1}.badge.proforma{background:#fcf3e3;color:#85692e}.badge.invoice{background:#e8f5ee;color:#347b55}.badge.due{background:#fff0ef;color:#a5493c}.empty{padding:35px 20px;text-align:center;color:var(--muted)}.empty h3{color:var(--ink);margin-bottom:8px}.empty .btn{margin-top:18px}.toolbar{display:flex;gap:12px;margin-bottom:18px;align-items:center}.toolbar input{max-width:380px}.toolbar select{max-width:180px}.tabs{display:flex;gap:6px;margin-bottom:24px}.tabs button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:11px 20px;color:var(--muted)}.tabs button.active{background:var(--navy);color:#fff;border-color:var(--navy)}.notice{padding:13px 16px;background:#fdf5e6;border-left:3px solid var(--gold);border-radius:7px;font-size:13px;margin-bottom:22px;line-height:1.6}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.auth-brand{background:var(--navy);color:#fff;padding:70px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-brand:after{content:'';position:absolute;width:500px;height:500px;border:70px solid rgba(212,172,101,.16);border-radius:50%;right:-270px;bottom:-180px}.auth-brand img{width:225px;background:#fff;padding:13px;border-radius:12px;margin-bottom:55px}.auth-brand h1{font-size:43px;max-width:460px;line-height:1.18}.auth-brand p{color:#c8deed;max-width:420px;margin-top:22px}.auth-points{display:grid;gap:17px;margin-top:34px;position:relative;z-index:1}.auth-points span{display:flex;gap:12px;font-size:14px}.auth-points b{color:var(--gold)}.auth-form{display:flex;align-items:center;justify-content:center;padding:45px}.auth-inner{max-width:380px;width:100%}.auth-inner h2{font-size:29px;margin-bottom:9px}.auth-inner>p{margin-bottom:30px}.auth-inner .btn{width:100%}.auth-switch{text-align:center;margin-top:20px;font-size:13px}.error{color:#ae3d36;background:#fff0ef;padding:12px;border-radius:7px;margin-bottom:15px;font-size:13px}.loading{padding:40px}.chart{height:200px;display:flex;align-items:flex-end;gap:12px;padding:20px 0 25px}.chart-col{flex:1;text-align:center;position:relative;height:100%;display:flex;justify-content:center;align-items:flex-end;gap:3px}.chart-bar{width:30%;min-height:2px;border-radius:3px 3px 0 0;background:var(--blue)}.chart-bar.gold{background:var(--gold)}.chart-label{position:absolute;bottom:-21px;font-size:10px;color:var(--muted)}.legend{display:flex;gap:20px;font-size:12px;color:var(--muted)}.legend i{width:9px;height:9px;display:inline-block;margin-right:6px;background:var(--blue)}.legend i.gold{background:var(--gold)}.project-totals{display:grid;gap:12px}.project-total{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.modal{position:fixed;inset:0;background:#14334780;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:35px 15px;z-index:10}.modal-content{background:white;border-radius:14px;max-width:650px;width:100%;padding:28px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.modal-head button{border:0;background:transparent;font-size:25px;color:var(--muted)}.document-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:25px}.paper{background:#fff;width:100%;max-width:850px;margin:auto;padding:45px;border:1px solid var(--line);box-shadow:0 9px 35px #2940580c;border-radius:3px}.paper-header{display:flex;justify-content:space-between;gap:20px;border-bottom:3px solid var(--gold);padding-bottom:24px;align-items:flex-start}.paper-header img{width:190px}.paper-title{text-align:right}.paper-title h2{font-size:20px;color:var(--blue);margin-bottom:9px}.paper-title h3{letter-spacing:2px;font-size:15px}.serial{font-size:12px;margin-top:8px}.paper-meta{display:flex;justify-content:space-between;gap:25px;margin:25px 0;font-size:12px;line-height:1.8}.paper-company{font-size:12px;line-height:1.75;margin:20px 0}.paper table th{background:var(--blue);color:white;text-transform:none}.paper td{font-size:12px}.paper-sums{margin:20px 0 20px auto;width:290px}.paper-sums .total{background:#f7eddc;padding:12px}.paper-notes{font-size:12px;line-height:1.7;margin-top:22px;white-space:pre-wrap;overflow-wrap:anywhere}.paper-footer{border-top:1px solid var(--gold);padding-top:16px;text-align:center;margin-top:40px;font-size:11px;color:var(--navy)}#toast{position:fixed;bottom:25px;right:25px;background:var(--navy);color:#fff;border-radius:10px;padding:14px 20px;max-width:420px;z-index:30;box-shadow:0 5px 25px #0002;display:none}#toast.visible{display:block}.mobile-logo{display:none}.split{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.hint{margin-top:6px;color:var(--muted);font-size:12px}.data-list{max-height:320px;overflow:auto}
@media(max-width:1100px){.main{padding:28px 25px}.sidebar{width:210px}.sidebar img{width:160px}.editor-layout{grid-template-columns:1fr}.summary-panel{position:static}.cards{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.auth-brand{padding:40px}.auth-brand h1{font-size:34px}}
@media(max-width:700px){.shell{display:block}.sidebar{width:100%;height:auto;position:static;padding:15px;border-right:0;border-bottom:1px solid var(--line)}.sidebar img{width:125px;margin-bottom:8px}.brandline,.sidebar-footer{display:none}.nav{display:flex;overflow:auto;gap:3px}.nav button{padding:10px;font-size:12px;white-space:nowrap}.nav .icon{display:none}.main{padding:24px 16px}.pagehead{align-items:flex-start}h1{font-size:25px}.cards{gap:10px}.card{padding:16px}.card .number{font-size:22px}.panel{padding:18px}.grid2,.grid3{grid-template-columns:1fr}.auth{display:block}.auth-brand{padding:25px}.auth-brand img{width:145px;margin-bottom:20px}.auth-brand h1{font-size:28px}.auth-brand p,.auth-points{display:none}.auth-form{padding:30px 24px}.paper{padding:22px}.paper-header img{width:135px}.paper-title h2{font-size:15px}.paper-meta{flex-wrap:wrap}.steps{gap:12px;font-size:11px}.toolbar{flex-wrap:wrap}.modal{padding:15px}.document-actions .btn{flex:1}.paper-sums{width:100%}}
@page{size:A4;margin:12mm}@media print{body{background:#fff;font-size:11px}.sidebar,.pagehead,.document-actions,#toast,.modal,.no-print{display:none!important}.main{padding:0;margin:0;max-width:none}.shell{display:block}.paper{padding:0;border:0;box-shadow:none;max-width:none}.paper-header{padding-bottom:14px}.paper-header img{width:150px}.paper-meta,.paper-company{margin:13px 0}.paper table{width:100%;font-size:10px}.paper th,.paper td{padding:8px}.paper tr{break-inside:avoid}.paper thead{display:table-header-group}.paper-sums,.paper-notes,.paper-footer{break-inside:avoid}.paper-footer{margin-top:23px}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

a.btn{text-decoration:none}

.account-actions{display:flex;gap:10px;flex-wrap:wrap;margin:-6px 0 20px}.account-help{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:13px}.account-help span{display:flex;align-items:center;gap:8px}.account-help b{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e9f3fa;color:var(--blue)}.account-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.account-kpis .number{font-size:23px}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.project-card{border:1px solid var(--line);border-radius:12px;padding:20px;background:#fbfdff}.project-card h3{margin-bottom:15px;color:var(--navy)}.project-cash{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:14px}.project-cash strong{white-space:nowrap}.project-balance{border-top:1px solid var(--line);margin-top:4px;padding-top:14px;font-size:17px;color:#1b7651}.project-balance.negative{color:#ae3d36}.project-extra{border-top:1px dashed var(--line);margin-top:12px;padding-top:12px;display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;font-size:12px}.project-extra small{width:100%;color:var(--muted)}.project-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.quick-intro{margin:-12px 0 22px}.tabs{overflow:auto}.tabs button{white-space:nowrap}
@media(max-width:900px){.project-grid{grid-template-columns:1fr}}@media(max-width:700px){.account-actions .btn{flex:1;min-width:150px}.account-kpis{grid-template-columns:1fr}.account-help{gap:9px}.project-cash{font-size:13px}.project-cash strong{white-space:normal;text-align:right}}
.quick-amount{margin:-7px 0 16px;color:var(--navy);font-size:14px}.quick-amount strong{font-size:17px}.optional-fields{border:1px solid var(--line);border-radius:9px;padding:0 14px;margin:14px 0}.optional-fields summary{cursor:pointer;color:var(--blue);font-weight:600;padding:14px 0}.optional-fields .grid2{padding-top:7px}.quick-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.quick-buttons .btn{flex:1;min-width:190px}
.modal-content{max-height:calc(100dvh - 30px);overflow-y:auto;overscroll-behavior:contain}.modal{overscroll-behavior:contain}#quick-expense-form .field{margin-bottom:15px}#quick-expense-form .quick-buttons{position:sticky;bottom:-28px;background:#fff;padding:10px 0 14px;border-top:1px solid var(--line);z-index:1}#quick-expense-form .quick-buttons .btn{min-width:0;flex:1 1 0;padding:9px;font-size:13px}
.report-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(140px,1fr)) auto;gap:14px;align-items:end}.report-filters .btn{margin-bottom:0}.report-heading{display:flex;align-items:center;gap:24px;border-bottom:2px solid var(--gold);padding-bottom:18px;margin-bottom:20px}.report-heading img{width:145px;height:auto}.report-heading h2{font-size:24px}.report-heading p{color:var(--muted);margin-top:5px}.report-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}.report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 28px}.report-summary div{border:1px solid var(--line);border-radius:10px;padding:15px;display:grid;gap:7px}.report-summary span{color:var(--muted);font-size:12px}.report-summary strong{font-size:18px}.report-paper h3{color:var(--navy);margin:26px 0 12px}.report-paper .tablewrap{margin-bottom:14px}.report-paper .hint{margin-top:15px}
@media(max-width:800px){.report-filters{grid-template-columns:1fr 1fr}.report-filters .field:first-child{grid-column:1/-1}.report-filters .btn{grid-column:1/-1}.report-summary{grid-template-columns:1fr}.report-heading{flex-wrap:wrap}.report-heading h2{font-size:20px}}
@media print{.report-paper{border:0;padding:0;margin:0;box-shadow:none}.report-paper .tablewrap{overflow:visible}.report-paper table{width:100%;font-size:9px}.report-paper th,.report-paper td{padding:7px}.report-paper tr{break-inside:avoid}.report-paper thead{display:table-header-group}.report-heading img{width:110px}.report-heading h2{font-size:18px}.report-summary div{padding:10px}.report-summary strong{font-size:13px}.report-paper h3{break-after:avoid}}

