@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";*{box-sizing:border-box;margin:0;padding:0}body{color:#1e293b;background:#f1f5f9;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.5}.app-layout{min-height:100vh;display:flex}.main-content{flex:1;min-height:100vh;margin-left:250px;padding:2rem}.sidebar{color:#e2e8f0;z-index:100;background:#0f172a;flex-direction:column;width:250px;display:flex;position:fixed;top:0;bottom:0;left:0}.sidebar-header{border-bottom:1px solid #1e293b;padding:1.5rem}.sidebar-title{color:#fff;font-size:1.25rem;font-weight:700}.sidebar-nav{flex:1;padding:1rem 0;overflow-y:auto}.sidebar-link{color:#94a3b8;align-items:center;gap:.75rem;padding:.75rem 1.5rem;font-size:.9rem;font-weight:500;text-decoration:none;transition:all .15s;display:flex}.sidebar-link:hover{color:#e2e8f0;background:#1e293b}.sidebar-link.active{color:#fff;background:#2563eb}.sidebar-icon{font-size:1.1rem}.sidebar-divider{background:#ffffff1a;height:1px;margin:.5rem 1rem}.sidebar-footer{border-top:1px solid #1e293b;padding:1rem 1.5rem}.sidebar-user{flex-direction:column;margin-bottom:.5rem;display:flex}.sidebar-user-name{color:#fff;font-size:.9rem;font-weight:600}.sidebar-user-role{color:#64748b;text-transform:uppercase;font-size:.75rem}.sidebar-logout{color:#94a3b8;cursor:pointer;background:0 0;border:1px solid #334155;border-radius:6px;width:100%;padding:.4rem .8rem;font-size:.8rem;transition:all .15s}.sidebar-logout:hover{color:#fff;background:#1e293b}.login-container{background:#f1f5f9;justify-content:center;align-items:center;min-height:100vh;display:flex}.login-card{background:#fff;border-radius:12px;width:100%;max-width:400px;padding:2.5rem;box-shadow:0 1px 3px #0000001a}.login-title{color:#0f172a;text-align:center;margin-bottom:.25rem;font-size:1.5rem;font-weight:700}.login-subtitle{text-align:center;color:#64748b;margin-bottom:1.5rem}.login-toggle{color:#2563eb;cursor:pointer;text-align:center;background:0 0;border:none;width:100%;margin-top:1rem;font-size:.85rem;display:block}.form-group{margin-bottom:1rem}.form-group label{color:#475569;margin-bottom:.25rem;font-size:.85rem;font-weight:500;display:block}.form-group input,.form-group select,.form-group textarea{background:#fff;border:1px solid #d1d5db;border-radius:8px;width:100%;padding:.6rem .75rem;font-family:inherit;font-size:.9rem;transition:border-color .15s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1a}.form-row{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.btn{cursor:pointer;border:none;border-radius:8px;padding:.6rem 1.2rem;font-family:inherit;font-size:.9rem;font-weight:500;transition:all .15s}.btn-primary{color:#fff;background:#2563eb}.btn-primary:hover{background:#1d4ed8}.btn-primary:disabled{cursor:not-allowed;background:#93c5fd}.btn-secondary{color:#475569;background:#fff;border:1px solid #d1d5db}.btn-secondary:hover{background:#f8fafc}.btn-danger{color:#fff;background:#dc2626}.btn-danger:hover{background:#b91c1c}.btn-sm{padding:.35rem .75rem;font-size:.8rem}.btn-full{width:100%}.alert{border-radius:8px;margin-bottom:1rem;padding:.75rem 1rem;font-size:.85rem}.alert-error{color:#dc2626;background:#fef2f2;border:1px solid #fecaca}.alert-success{color:#16a34a;background:#f0fdf4;border:1px solid #bbf7d0}.page{max-width:1400px}.page-header{justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem;display:flex}.page-header h2{color:#0f172a;font-size:1.5rem;font-weight:700}.page-loading,.page-error{text-align:center;color:#64748b;padding:3rem;font-size:1rem}.filters{flex-wrap:wrap;gap:.75rem;margin-bottom:1.5rem;display:flex}.filters select,.search-input{background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:.5rem .75rem;font-family:inherit;font-size:.85rem}.search-input{min-width:220px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:1.5rem;padding:1.5rem;box-shadow:0 1px 3px #0000000f}.card h3{color:#0f172a;margin-bottom:1rem;font-size:1rem;font-weight:600}.card h4{color:#334155;margin-bottom:.5rem;font-size:.9rem;font-weight:600}.chart-card{padding-bottom:1rem}.kpi-grid{grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.5rem;display:grid}.kpi-grid-6{grid-template-columns:repeat(3,1fr)}@media (width>=1200px){.kpi-grid-6{grid-template-columns:repeat(6,1fr)}}.kpi-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.25rem;box-shadow:0 1px 3px #0000000f}.kpi-label{color:#64748b;text-transform:uppercase;letter-spacing:.025em;margin-bottom:.25rem;font-size:.8rem;font-weight:500}.kpi-value{color:#0f172a;font-size:1.35rem;font-weight:700}.kpi-sub{color:#64748b;margin-top:.15rem;font-size:.8rem}.kpi-info-lines{color:#475569;font-size:.8rem;line-height:1.6}.kpi-info-lines strong{color:#334155}.positive{color:#16a34a}.negative{color:#dc2626}.data-table{border-collapse:collapse;width:100%;font-size:.85rem}.data-table thead th{text-align:left;color:#475569;text-transform:uppercase;letter-spacing:.025em;border-bottom:2px solid #e2e8f0;padding:.75rem;font-size:.8rem;font-weight:600}.data-table tbody td{color:#334155;border-bottom:1px solid #f1f5f9;padding:.75rem}.data-table tbody tr:last-child td{border-bottom:none}.clickable-row{cursor:pointer;transition:background .1s}.clickable-row:hover{background:#f8fafc}.td-name{color:#2563eb;font-weight:600}.empty-row{text-align:center;color:#94a3b8;padding:2rem!important}.empty-text{text-align:center;color:#94a3b8;padding:2rem 0}.progress-bar-container{background:#f1f5f9;border-radius:11px;width:100%;min-width:80px;height:22px;position:relative;overflow:hidden}.progress-bar-fill{background:linear-gradient(90deg,#2563eb,#3b82f6);border-radius:11px;height:100%;transition:width .3s}.progress-bar-text{color:#334155;font-size:.7rem;font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.badge{border-radius:9999px;padding:.2rem .6rem;font-size:.75rem;font-weight:600;display:inline-block}.badge-green{color:#16a34a;background:#dcfce7}.badge-gray{color:#64748b;background:#f1f5f9}.badge-yellow{color:#ca8a04;background:#fef9c3}.status-select{cursor:pointer;appearance:auto;border:none;border-radius:6px;padding:.25rem .5rem;font-size:.8rem;font-weight:600}.status-select.badge-green{color:#16a34a;background:#dcfce7}.status-select.badge-gray{color:#64748b;background:#f1f5f9}.status-select.badge-yellow{color:#ca8a04;background:#fef9c3}.warnings-section{margin-bottom:1.5rem}.warnings-section h3{margin-bottom:.75rem;font-size:1rem;font-weight:600}.warnings-grid{flex-direction:column;gap:.5rem;display:flex}.warning-box{border-radius:8px;padding:.75rem 1rem;font-size:.85rem;font-weight:500}.warning-error,.warning-danger{color:#dc2626;background:#fef2f2;border-left:4px solid #dc2626}.warning-warning{color:#d97706;background:#fffbeb;border-left:4px solid #d97706}.warning-info{color:#2563eb;background:#eff6ff;border-left:4px solid #2563eb}.modal-overlay{z-index:200;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:12px;width:100%;max-width:600px;max-height:90vh;padding:1.5rem;overflow-y:auto;box-shadow:0 20px 60px #00000026}.modal-header{justify-content:space-between;align-items:center;margin-bottom:1.25rem;display:flex}.modal-header h3{font-size:1.15rem;font-weight:700}.modal-close{color:#64748b;cursor:pointer;background:0 0;border:none;font-size:1.5rem;line-height:1}.modal-close:hover{color:#0f172a}.modal-form{flex-direction:column;display:flex}.modal-actions{justify-content:flex-end;gap:.75rem;margin-top:1rem;display:flex}.ledger-clickable{cursor:pointer;transition:background .15s}.ledger-clickable:hover{background:#f0f4ff}.table-scroll{overflow-x:auto}.monthly-table{min-width:800px}.monthly-table th,.monthly-table td{text-align:right;white-space:nowrap;padding:.6rem .5rem;font-size:.8rem}.monthly-table .sticky-col{z-index:1;text-align:left;background:#fff;min-width:140px;position:sticky;left:0}.row-label{color:#475569;font-weight:600}.editable-cell{cursor:pointer;min-width:80px;transition:background .1s}.editable-cell:hover{background:#eff6ff}.cell-input{text-align:right;border:1px solid #2563eb;border-radius:4px;width:80px;padding:.25rem .4rem;font-family:inherit;font-size:.8rem}.acc-col{background:#f8fafc;font-weight:700}.geo-countries{flex-direction:column;gap:.5rem;margin-top:1.5rem;display:flex}.geo-country-section{background:#fff;border:1px solid #e2e8f0;border-radius:10px;transition:box-shadow .15s;overflow:hidden}.geo-country-section:hover{box-shadow:0 2px 8px #0000000f}.geo-country-section.expanded{border-color:#2563eb;box-shadow:0 2px 12px #2563eb1a}.geo-country-header{cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.geo-country-left{align-items:center;gap:.75rem;display:flex}.geo-flag{font-size:1.5rem}.geo-country-name{color:#0f172a;font-size:1rem;font-weight:700}.geo-project-count{color:#94a3b8;background:#f1f5f9;border-radius:10px;padding:.15rem .5rem;font-size:.8rem}.geo-country-numbers{align-items:center;gap:1.5rem;display:flex}.geo-stat{text-align:right;flex-direction:column;align-items:flex-end;min-width:110px;display:flex}.geo-stat-label{color:#94a3b8;text-transform:uppercase;letter-spacing:.03em;font-size:.7rem}.geo-stat-value{color:#1e293b;font-variant-numeric:tabular-nums;font-size:.9rem;font-weight:600}.geo-expand-icon{color:#94a3b8;margin-left:.5rem;font-size:.7rem}.geo-project-table-wrap{padding:0 1.25rem 1.25rem}.geo-project-table{font-size:.85rem}.row-finished td{opacity:.6}.row-total td{background:#f8fafc;border-top:2px solid #e2e8f0}.btn-ghost{color:#64748b;cursor:pointer;background:0 0;border:1px solid #d1d5db;border-radius:6px;padding:.2rem .5rem;font-size:.75rem}.btn-ghost:hover{color:#2563eb;background:#f1f5f9;border-color:#2563eb}.status-badge{border-radius:10px;padding:.15rem .5rem;font-size:.75rem;font-weight:500;display:inline-block}.status-active{color:#166534;background:#dcfce7}.status-finished{color:#64748b;background:#f1f5f9}.status-not_started{color:#92400e;background:#fef3c7}.monthly-modal{width:auto;min-width:700px;max-width:95vw!important}.monthly-table-wrap{max-height:70vh;overflow:auto}.monthly-report-table{white-space:nowrap;font-size:.8rem}.monthly-report-table th,.monthly-report-table td{padding:.4rem .6rem}.monthly-report-table thead{z-index:4;position:sticky;top:0}.monthly-report-table thead th{background:#f8fafc}.monthly-cell-clickable{cursor:pointer;border-radius:4px;padding:.15rem .3rem;transition:background .1s}.monthly-cell-clickable:hover{background:#e0e7ff;text-decoration:underline}.monthly-report-table .sticky-col{z-index:2;text-overflow:ellipsis;background:#fff;min-width:160px;max-width:200px;position:sticky;left:0;overflow:hidden}.monthly-report-table .sticky-col-2{z-index:2;color:#64748b;background:#fff;min-width:65px;font-size:.72rem;position:sticky;left:160px}.monthly-report-table thead .sticky-col,.monthly-report-table thead .sticky-col-2{z-index:3;background:#f8fafc}.monthly-report-table .row-total .sticky-col,.monthly-report-table .row-total .sticky-col-2{background:#f8fafc}.monthly-project-name{vertical-align:top;font-size:.8rem;font-weight:600;border-bottom:none!important}.monthly-type-label{color:#64748b;font-size:.72rem}.monthly-row-revenue td,.monthly-row-costs td{border-bottom:none!important}.monthly-row-result td{border-bottom:2px solid #e2e8f0!important}.monthly-totals-border td{border-top:3px solid #0f172a!important}.upload-area{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}@media (width<=1024px){.kpi-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=768px){.sidebar{width:200px}.main-content{margin-left:200px;padding:1rem}.kpi-grid,.form-row{grid-template-columns:1fr}}.fnx-header{color:#fff;background:#0f172a;border-radius:8px 8px 0 0;align-items:center;gap:1rem;padding:.75rem 1.5rem;display:flex}.fnx-header h2{letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:.85rem;font-weight:700}.fnx-search{color:#fff;background:#ffffff1a;border:1px solid #fff3;border-radius:4px;width:300px;padding:.4rem .75rem;font-size:.85rem}.fnx-search::placeholder{color:#ffffff80}.fnx-tabs{border-bottom:2px solid #e2e8f0;gap:2px;margin-bottom:0;padding:0 .5rem;display:flex}.fnx-tab{cursor:pointer;color:#555;background:#f8f8f4;border:1px solid #d4d4c8;border-bottom:none;border-radius:4px 4px 0 0;padding:.5rem 1rem;font-family:inherit;font-size:.8rem;position:relative}.fnx-tab:hover{color:#333;background:#eeeeea}.fnx-tab.active{color:#fff;background:#444;border-color:#444;font-weight:600}.fnx-table{border-collapse:collapse;width:100%;font-size:.8rem}.fnx-table thead th{color:#fff;text-align:left;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;cursor:pointer;background:#1e293b;padding:.5rem .6rem;font-size:.7rem;font-weight:600}.fnx-table thead th.num{text-align:right}.fnx-table tbody td{border-bottom:1px solid #f1f5f9;padding:.4rem .6rem}.fnx-table tbody td.num{text-align:right;font-variant-numeric:tabular-nums}.fnx-table tbody tr:hover{background:#f5f5f0}.fnx-table tbody tr.row-unbooked{background:#fff9db}.fnx-table tbody tr.row-unbooked:hover{background:#fff3bf}.fnx-table tbody tr.row-unpaid{background:#fff}.fnx-table tbody tr.row-unpaid:hover{background:#f5f5f0}.fnx-table tbody tr.row-overdue{background:#ffe0e0}.fnx-table tbody tr.row-overdue:hover{background:#ffc9c9}.fnx-table tbody tr.row-overdue td{color:#b91c1c}.fnx-table tbody tr.row-cancelled{background:#f1f5f9}.fnx-table tbody tr.row-cancelled:hover{background:#e2e8f0}.fnx-table tbody tr.row-cancelled td{color:#94a3b8}.fnx-table tbody tr.row-cancelled .strike{text-decoration:line-through}.fnx-table tbody tr.row-partial{background:#fff4e6}.fnx-table tbody tr.row-partial:hover{background:#ffe8cc}.fnx-table tbody tr.row-paid{background:#e6f9e6}.fnx-table tbody tr.row-paid:hover{background:#ccf2cc}.fnx-pagination{justify-content:center;align-items:center;gap:.5rem;padding:1rem;font-size:.85rem;display:flex}.fnx-pagination button{cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:4px;padding:.3rem .6rem;font-family:inherit}.fnx-pagination button.active{color:#fff;background:#2563eb;border-color:#2563eb}.fnx-pagination button:disabled{opacity:.4;cursor:default}.fnx-summary{background:#f8fafc;border-top:2px solid #1e293b;gap:2rem;padding:.75rem 1rem;font-size:.85rem;font-weight:600;display:flex}.fnx-total-row td{background:#f8f8f4;border-top:2px solid #888;padding:.5rem .6rem;font-size:.8rem}.fnx-badge-count{background:#0000001a;border-radius:99px;margin-left:.3rem;padding:.1rem .4rem;font-size:.7rem}.fnx-tab.active .fnx-badge-count{background:#ffffff4d}.saldo-positive{color:#dc2626;font-weight:500}.saldo-zero{color:#16a34a}.badge-paid{color:#16a34a;background:#dcfce7;border-radius:99px;padding:.1rem .5rem;font-size:.7rem;font-weight:600}.reports-page section{box-shadow:0 1px 2px #0f172a0a;border:1px solid #e2e8f0!important;border-radius:12px!important}.reports-page h2{color:#64748b;text-transform:uppercase;letter-spacing:.05em;margin-bottom:14px;font-weight:700;font-size:.8rem!important}.report-preset-btn{color:#334155;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:7px 16px;font-size:.82rem;font-weight:500;transition:all .15s}.report-preset-btn:hover{color:#1d4ed8;background:#eff6ff;border-color:#2563eb}.reports-page input[type=date],.reports-page input[type=month],.reports-page input[type=email],.reports-page input[type=text]{color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:9px 12px;font-size:.9rem}
