:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f7f9fc}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:1px solid #d8e0ee;background:#fff;border-radius:7px;padding:9px 12px;display:inline-flex;gap:8px;align-items:center;cursor:pointer;color:#243454;transition:background .12s ease,border-color .12s ease,transform .08s ease}button:active:not(:disabled){transform:translateY(1px);background:#eef4ff;border-color:#adc4fb}button:disabled{opacity:.62;cursor:progress}button.primary{background:#2f66df;color:#fff;border-color:#2f66df}button.ghost{background:#fff}button.danger{color:#b42318;border-color:#f0b8b0;background:#fff8f7}button.danger:hover{background:#ffeceb;border-color:#e49186}button.icon,button.avatar{width:36px;height:36px;justify-content:center;padding:0;border-radius:50%}input,select,textarea{width:100%;border:1px solid #c2cfe3;border-radius:6px;padding:9px 10px;color:#172033;background:#fff;box-shadow:inset 0 0 0 1px #2f66df0a}textarea{min-height:72px;resize:vertical;line-height:1.4}input:hover,select:hover,textarea:hover{border-color:#96abd0;background:#fbfdff}input:focus,select:focus,textarea:focus{outline:2px solid rgba(47,102,223,.22);outline-offset:-1px;border-color:#2f66df;background:#fff}input:disabled,select:disabled,textarea:disabled{color:#56627a;background:#f2f5f9;border-color:#d8e0eb;cursor:not-allowed;opacity:1}.app{display:grid;grid-template-columns:116px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid #e5ebf5;padding:18px 14px;display:flex;flex-direction:column;gap:14px;align-items:center}.logo{color:#6d8cff;font-size:30px;margin:6px 0 12px}.sidebar button{width:86px;height:56px;flex-direction:column;justify-content:center;padding:6px;border-color:transparent;color:#5d6a84;font-size:12px}.sidebar button.active{background:#eef4ff;color:#2f66df}main{min-width:0}.topbar{height:62px;background:#fff;border-bottom:1px solid #e5ebf5;display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:3}.topbar h1{font-size:20px;margin:0}.top-actions,.toolbar{display:flex;align-items:center;gap:10px}.login{min-height:100vh;display:grid;place-items:center;background:#f4f7fb}.login-box{width:360px;background:#fff;border:1px solid #e1e8f3;border-radius:8px;padding:28px;display:grid;gap:14px;box-shadow:0 18px 50px #263b6714}.login-box h1{margin:0 0 8px;font-size:22px}.logo-mark{width:38px;height:38px;border-radius:8px;background:#edf4ff;color:#4a74e8;display:grid;place-items:center}.error{color:#b42318;font-size:13px}.hint{margin:18px 24px 12px;border:1px solid #a9c3ff;color:#2454bd;background:#eff5ff;border-radius:6px;padding:13px 16px}.panel,.section{margin:18px 24px;background:#fff;border:1px solid #e1e8f3;border-radius:8px;padding:16px;box-shadow:0 8px 26px #263b670a}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}h2{margin:0 0 14px;font-size:18px}.panel h2{margin-bottom:0}.table-wrap{overflow:auto;border:1px solid #e1e8f3;border-radius:8px}.registry-scroll{max-height:calc(100vh - 170px);min-height:260px;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}table{width:100%;border-collapse:collapse;font-size:13px}th,td{border-bottom:1px solid #e8eef7;border-right:1px solid #edf2f8;padding:11px 12px;vertical-align:middle}th{background:#f8fbff;color:#5c6881;font-weight:600;text-align:left}.registry-scroll thead th{position:sticky;top:0;z-index:2;box-shadow:0 1px #dbe3f1,0 4px 10px #263b670f}tr:hover td{background:#fafcff}.link{color:#2f66df;cursor:pointer;font-weight:600}.badge{background:#eef4ff;color:#2d5cc7;border:1px solid #d7e4ff;padding:4px 8px;border-radius:999px}.badge.neutral{background:#f6f8fb;color:#5c6881;border-color:#e1e8f3}.badge.payment-status{display:inline-flex;white-space:nowrap}.badge.payment-status.paid{background:#edf8f1;color:#247042;border-color:#b9dfc6}.badge.payment-status.unpaid{background:#fff7e8;color:#855a12;border-color:#efd5a5}.badge.payment-status.not-applicable{background:#f5f7fa;color:#68748a;border-color:#dce3ee}.project-catalog-head{gap:16px}.project-catalog-head h2{flex:0 0 auto}.project-toolbar{flex:1;flex-wrap:nowrap;justify-content:flex-end;min-width:0}.project-toolbar>select,.project-toolbar>input{width:auto;min-width:0}.project-toolbar .project-filter-service{flex:0 1 150px;min-width:120px}.project-toolbar .project-filter-rest{flex:0 1 145px;min-width:125px}.project-toolbar .project-filter-status{flex:0 1 195px;min-width:170px}.project-toolbar .project-filter-search{flex:0 1 220px;min-width:150px}.project-toolbar button{flex:0 0 auto;white-space:nowrap}.row-num{width:52px;color:#7a8498;text-align:right}.num-cell,.num-input{text-align:right;font-variant-numeric:tabular-nums}.field input.num-input{padding-right:14px}.card-page{padding-bottom:80px}.permission-scope{border:0;padding:0;margin:0;min-width:0}.card-toolbar{margin:18px 24px -6px;display:flex;justify-content:flex-start}.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-grid{display:grid;grid-template-columns:1fr;border:1px solid #e1e8f3;border-radius:8px;overflow:hidden}.field{display:grid;grid-template-columns:210px 1fr;align-items:center;min-height:44px;border-bottom:1px solid #edf2f8}.field:last-child{border-bottom:0}.field span{color:#5c6881;padding:0 13px;font-size:12px}.field input,.field select,.field textarea{border:0;border-left:1px solid #cfd9ea;border-radius:0;min-height:43px;background:#fbfcff}.field textarea{min-height:64px}.field input:hover,.field select:hover,.field textarea:hover{background:#f4f8ff}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid rgba(47,102,223,.26);outline-offset:-2px;background:#fff}.field.readonly strong{min-height:43px;border-left:1px solid #cfd9ea;background:#f6f8fb;display:flex;align-items:center;justify-content:flex-end;padding:9px 12px;color:#172033;font-variant-numeric:tabular-nums}.metrics-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(280px,1fr));gap:10px 14px;align-items:stretch}.grid-spacer{min-height:44px}.wide-field{margin-top:14px;width:100%}.wide-field .field{grid-template-columns:210px 1fr;align-items:stretch}.wide-field textarea{min-height:118px}.compact input{border:1px solid #c2cfe3;padding:6px 8px;min-width:110px;background:#fbfcff}.subsection-head{margin:14px 0 8px;color:#405174;font-weight:700}.section-action-row{display:flex;justify-content:flex-end;margin:-28px 0 12px;min-height:28px}.button-link{border:1px solid #d8e0ee;background:#fff;border-radius:7px;padding:8px 11px;display:inline-flex;gap:8px;align-items:center;color:#2f66df;font-weight:600;text-decoration:none}.button-link:hover{background:#f4f8ff;border-color:#bcd0ff}.small-action{margin-top:10px}.roles-table{max-width:760px}.total-row td{background:#f6fbf0;font-weight:700}.descriptions{margin-top:10px}.kpi-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:14px}.kpi{border:1px solid #e1e8f3;border-radius:8px;padding:12px;background:#fbfdff}.kpi span{display:block;color:#66728a;font-size:12px;margin-bottom:6px}.kpi strong{font-size:17px}.note{margin-top:14px;border:1px solid #f3d48a;background:#fff8e8;color:#77520f;border-radius:7px;padding:12px 14px;font-size:13px}.note.success{border-color:#a8d8b5;background:#f0fbf3;color:#176331}.note.error{border-color:#f0b8b0;background:#fff3f2;color:#b42318}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.status-strip{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:10px;margin-bottom:14px}.status-pill{border:1px solid #dbe3f1;border-radius:8px;padding:11px 12px;display:flex;align-items:center;gap:10px;background:#fbfdff}.status-pill strong{min-width:38px;text-align:center;border-radius:999px;padding:4px 8px}.status-pill.ok{border-color:#b7dfc1;background:#f1fbf4;color:#176331}.status-pill.ok strong{background:#c9f0d3}.status-pill.wait{border-color:#f0d391;background:#fff8e7;color:#75520d}.status-pill.wait strong{background:#ffe6a7}.payout-table{min-width:1840px;table-layout:fixed}.payout-table th,.payout-table td{white-space:normal}.payout-table th:nth-child(1),.payout-table td:nth-child(1){width:220px}.payout-table th:nth-child(2),.payout-table td:nth-child(2){width:260px}.payout-table th:nth-child(3),.payout-table td:nth-child(3){width:90px}.payout-table th:nth-child(4),.payout-table td:nth-child(4),.payout-table th:nth-child(5),.payout-table td:nth-child(5),.payout-table th:nth-child(7),.payout-table td:nth-child(7),.payout-table th:nth-child(9),.payout-table td:nth-child(9),.payout-table th:nth-child(11),.payout-table td:nth-child(11),.payout-table th:nth-child(13),.payout-table td:nth-child(13){width:145px}.payout-table th:nth-child(6),.payout-table td:nth-child(6),.payout-table th:nth-child(8),.payout-table td:nth-child(8),.payout-table th:nth-child(10),.payout-table td:nth-child(10),.payout-table th:nth-child(12),.payout-table td:nth-child(12){width:135px}.payout-table input{min-width:0}.payout-table td:nth-child(1) input,.payout-table td:nth-child(2) input{text-align:left}.sticky-save{position:fixed;right:28px;bottom:24px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}.admin-wide{grid-column:1 / -1}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.chips span{border:1px solid #dbe3f1;background:#f8fbff;padding:6px 9px;border-radius:999px;font-size:13px}.tabs{display:flex;gap:8px}.tabs button.active{background:#eef4ff;border-color:#bcd0ff;color:#2f66df}.report-actions{display:flex;justify-content:flex-end;gap:10px;margin-bottom:10px}.audit-list{display:grid;gap:10px}.audit-entry{border:1px solid #e1e8f3;border-radius:7px;background:#fbfcff;padding:12px 14px}.audit-meta{display:flex;justify-content:space-between;gap:16px;color:#66728a;font-size:13px}.audit-meta strong{color:#243454}.audit-entry ul{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:7px}.audit-entry li{display:grid;grid-template-columns:minmax(210px,1fr) minmax(180px,1fr) minmax(180px,1fr);gap:12px;border-top:1px solid #edf2f8;padding-top:7px;font-size:13px}.audit-entry li span{color:#5c6881;overflow-wrap:anywhere}.muted{color:#66728a}@media print{.sidebar,.top-actions,.card-toolbar,.sticky-save,.hint,.tabs,.toolbar,.report-actions{display:none!important}.app{display:block}.topbar{position:static;height:auto;padding:0 0 12px}.panel,.section{margin:0 0 12px;box-shadow:none;break-inside:avoid}.table-wrap,.registry-scroll{max-height:none;overflow:visible}body{background:#fff}}@media(max-width:980px){.app{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:4;flex-direction:row;width:100%;justify-content:center}.grid.two,.metrics-grid,.plan-grid,.kpi-strip,.admin-grid,.status-strip{grid-template-columns:1fr}.field{grid-template-columns:150px 1fr}.audit-entry li{grid-template-columns:1fr;gap:4px}}@media(max-width:1180px){.project-catalog-head{align-items:stretch;flex-direction:column}.project-toolbar{width:100%;justify-content:flex-start}.project-toolbar .project-filter-service,.project-toolbar .project-filter-rest,.project-toolbar .project-filter-status,.project-toolbar .project-filter-search{flex:1 1 0}}@media(max-width:760px){.project-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.project-toolbar>select,.project-toolbar>input,.project-toolbar>button{width:100%;min-width:0}.project-toolbar .project-filter-search{grid-column:1 / -1}.project-toolbar button{justify-content:center}}
