.text-link{display:inline-block;margin-top:18px;color:var(--teal);font-weight:700;text-decoration:none}
.field-help{color:var(--muted);font-weight:400}
.tenant-search{max-width:430px;margin-bottom:20px}
.topbar form{margin:0}
.logout{border:0;background:transparent;cursor:pointer}
.logout:hover{background:rgba(255,255,255,.1);color:#fff}
.settings-wide{grid-column:1/-1}
.inline-form{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr)) auto;column-gap:16px;row-gap:18px;align-items:end;margin:0 0 30px}
.inline-form.compact-form{grid-template-columns:200px minmax(220px,1fr) auto;max-width:720px}
.inline-form+.tenant-search,.inline-form+.table-wrap{margin-top:4px}
.inline-form input,.inline-form select,.dashboard-filters input,.dashboard-filters select{height:46px}
.inline-form .primary{min-height:46px;white-space:nowrap}
.category-groups{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:8px}
.category-groups h3{margin:8px 0 12px}
.category-group{min-width:0}.category-editor{display:flex;align-items:center;gap:8px;margin-bottom:10px}.category-update{display:flex;align-items:center;gap:8px;flex:1}.category-update input{height:42px;min-width:0}.category-update .small-button{height:42px}
.row-form select{min-width:180px;padding:7px 9px}
.dashboard-filters{display:grid;grid-template-columns:minmax(190px,1fr) 110px 150px auto;gap:10px;align-items:end;min-width:min(100%,620px)}
.dashboard-filters input,.dashboard-filters select{padding:9px 10px}
.finance-chart-panel{margin-top:22px}
.panel-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.chart-legend{display:flex;gap:18px;color:var(--muted);font-size:12px}.chart-legend span:before{content:"";display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px}.legend-income:before{background:var(--teal)}.legend-expense:before{background:var(--gold)}.legend-tax:before{background:#a167c8}
.legend-profit:before{background:#159ed0}.finance-chart{width:100%;overflow-x:auto;margin-top:8px}.finance-chart svg{display:block;width:100%;min-width:760px;height:340px;overflow:visible}.grid-line{stroke:#d5dddc;stroke-width:1;stroke-dasharray:5 5}.zero-line{stroke:#7c8b92;stroke-width:1.3}.axis-label,.axis-value{fill:#63747d;font:12px Inter,ui-sans-serif,system-ui}.chart-line{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.line-income{stroke:#176887}.line-expense{stroke:#e16d35}.line-tax{stroke:#297a37}.line-profit{stroke:#159ed0}.chart-point{stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}.point-income{fill:#176887}.point-expense{fill:#e16d35}.point-tax{fill:#297a37}.point-profit{fill:#159ed0}
.settings-intro{margin:-8px 0 18px}.compact-property-form{grid-template-columns:1fr 1fr 1fr auto}
.editable-table td,.editable-row td{vertical-align:middle}.editable-table input,.editable-row input,.editable-row select{height:42px;min-width:150px}.contact-fields{display:grid;gap:7px}.row-actions{display:flex;align-items:center;gap:8px}.row-actions form{margin:0}.small-button{border:0;border-radius:8px;padding:9px 12px;background:#e5f3f1;color:var(--teal2);font-weight:750;cursor:pointer;white-space:nowrap}.small-button:hover{background:#cfe9e6}.row-actions .icon-btn,.category-editor>.icon-btn{flex:0 0 auto}
[data-edit-input][readonly],[data-edit-input]:disabled{border-color:transparent;background:transparent;padding-left:0;padding-right:0;color:var(--ink);opacity:1;cursor:default;-webkit-text-fill-color:var(--ink)}[data-edit-row].is-editing [data-edit-input]{border-color:#cddad7;background:#fff;padding-left:12px;padding-right:12px;cursor:text}.save-button{background:var(--teal);color:#fff}.save-button:hover{background:var(--teal2)}
@media(max-width:900px){.inline-form,.compact-property-form{grid-template-columns:1fr 1fr}.category-groups{grid-template-columns:1fr}.dashboard-filters{grid-template-columns:1fr 1fr}.finance-chart{min-width:650px}}
@media(max-width:560px){.inline-form,.inline-form.compact-form{grid-template-columns:1fr}}

/* Vienoda valdiklių dydžių sistema visoje programoje */
:root{--control-height:48px;--control-radius:10px}
input:not([type="hidden"]),select{height:var(--control-height)!important;min-height:var(--control-height)!important;padding:0 14px!important;border-radius:var(--control-radius)!important;line-height:1.2!important}
textarea{min-height:116px;padding:13px 14px!important;border-radius:var(--control-radius)!important;line-height:1.45;resize:vertical}
.primary,.secondary,.small-button{height:var(--control-height);min-height:var(--control-height);display:inline-flex;align-items:center;justify-content:center;padding:0 18px;line-height:1;white-space:nowrap}
.form-grid{column-gap:24px;row-gap:20px}.form-grid label,.inline-form label,.dashboard-filters label,.stack label{gap:8px}
.modal{padding:30px}.modal-head{align-items:flex-start;margin-bottom:24px}.modal-head h2{margin-bottom:0}.modal-head .icon-btn{width:48px;height:48px;display:grid;place-items:center;border-radius:10px}.modal-actions{margin-top:28px}
.inline-form{align-items:end}.inline-form .primary,.dashboard-filters .primary{width:auto}
.tenant-search input{height:var(--control-height)!important}
.editable-table input,.editable-row input,.editable-row select,.category-update input{height:var(--control-height)!important;min-height:var(--control-height)!important}.contact-fields{gap:9px}
[data-edit-input][readonly],[data-edit-input]:disabled{padding-left:0!important;padding-right:0!important}
[data-edit-row].is-editing [data-edit-input]{padding-left:14px!important;padding-right:14px!important}
@media(max-width:640px){.modal{padding:24px}.form-grid{row-gap:18px}.primary,.secondary,.small-button{min-width:0}}

/* Vienoda finansinių reikšmių spalvų kalba */
:root{--income-color:#147d78;--utility-color:#4776c5;--expense-color:#d46b2c;--tax-color:#2f7d44;--deposit-color:#d69b32;--profit-color:#159ed0}
.kpis .kpi-income{border-top-color:var(--income-color)}.kpis .kpi-expense{border-top-color:var(--expense-color)}.kpis .kpi-tax{border-top-color:var(--tax-color)}.kpis .profit{border-top-color:var(--profit-color);background:#eaf7fc}.kpis .profit strong{color:var(--profit-color)}.kpis .deposit{border-top-color:var(--deposit-color)}
.kpis article:has(.kpi-utility-label){border-top-color:var(--utility-color)}.legend-income:before{background:var(--income-color)}.legend-utility:before{background:var(--utility-color)}.legend-expense:before{background:var(--expense-color)}.legend-tax:before{background:var(--tax-color)}.legend-profit:before{background:var(--profit-color)}
.line-income{stroke:var(--income-color)}.line-utility{stroke:var(--utility-color)}.line-expense{stroke:var(--expense-color)}.line-tax{stroke:var(--tax-color)}.line-profit{stroke:var(--profit-color)}.point-income{fill:var(--income-color)}.point-utility{fill:var(--utility-color)}.point-expense{fill:var(--expense-color)}.point-tax{fill:var(--tax-color)}.point-profit{fill:var(--profit-color)}
.chart-hit{fill:transparent;stroke:none;pointer-events:all;cursor:pointer}.chart-point{pointer-events:all;cursor:pointer}.chart-tooltip{position:fixed;z-index:1000;left:0;top:0;max-width:280px;padding:9px 12px;border-radius:8px;background:#172c3d;color:#fff;font-size:13px;font-weight:700;line-height:1.35;box-shadow:0 8px 28px rgba(23,44,61,.24);pointer-events:none;opacity:0;transform:translateY(3px);transition:opacity .12s ease,transform .12s ease}.chart-tooltip.visible{opacity:1;transform:translateY(0)}
.tag-income{background:#e5f3f1;color:#0d615d}.tag-utility{background:#eaf0fb;color:#315b9e}.tag-expense{background:#fff0e7;color:#a5481f}.tag-tax{background:#e9f5ec;color:#246336}.tag-deposit{background:#fff3d4;color:#8a5c08}
.category-group:nth-child(1){border-top:4px solid var(--income-color)}.category-group:nth-child(2){border-top:4px solid var(--utility-color)}.category-group:nth-child(3){border-top:4px solid var(--expense-color)}.category-group:nth-child(4){border-top:4px solid var(--tax-color)}.category-group{padding:12px;border-radius:10px;background:#fafcfb}.category-group:nth-child(1) h3{color:var(--income-color)}.category-group:nth-child(2) h3{color:var(--utility-color)}.category-group:nth-child(3) h3{color:var(--expense-color)}.category-group:nth-child(4) h3{color:var(--tax-color)}
.export-button{text-decoration:none}.lease-form{grid-template-columns:repeat(3,minmax(150px,1fr))}.report-controls{margin-bottom:22px}.report-filters{grid-template-columns:minmax(260px,1fr) 110px 150px auto}.report-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}.report-actions{display:flex;align-items:center;gap:10px}.report-actions form{margin:0}.report-actions .secondary{text-decoration:none}.report-actions button:disabled{opacity:.5;cursor:not-allowed}.report-totals{width:min(100%,430px);margin:24px 0 0 auto}.report-totals>div{display:flex;justify-content:space-between;padding:10px 4px;border-bottom:1px solid var(--line)}.report-totals span{color:var(--muted)}.report-totals .report-received{color:var(--green)}.report-totals .report-received span{color:var(--green);font-weight:700}.report-totals .report-grand{font-size:18px;border-top:2px solid var(--income-color);border-bottom:0;color:var(--income-color);margin-top:4px}.report-totals .report-grand span{color:var(--income-color);font-weight:700}@media(max-width:900px){.lease-form{grid-template-columns:1fr 1fr}.report-heading{display:block}.report-actions{margin-top:18px;flex-wrap:wrap}}@media(max-width:560px){.lease-form,.report-filters{grid-template-columns:1fr}.report-actions>*{width:100%}.report-actions .primary,.report-actions .secondary{width:100%}}
.lease-table{min-width:1120px}.lease-table select,.lease-table input{min-width:130px}.lease-table td:nth-child(1) select,.lease-table td:nth-child(2) select{min-width:180px}.lease-table td:nth-child(6) input{min-width:180px}.allocation-note{display:block;margin-top:3px;color:var(--muted);font-size:12px;white-space:normal}
.invite-link-field{display:block;max-width:900px;margin:16px 0 24px}.invite-link-field input{margin-top:8px;width:100%;font-size:13px}.status-pill{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:750}.status-active{background:#e8f5ec;color:#23683a}.status-disabled{background:#f5e9e9;color:#963c3c}#users .compact-form{max-width:760px;grid-template-columns:minmax(280px,1fr) auto}#users td form{margin:0}
.report-share-box{margin:-6px 0 24px;padding:18px;border:1px solid #a8d4ce;border-radius:14px;background:#eef9f7}.report-share-box label{display:block}.report-share-box input{margin-top:8px;width:100%;font-size:13px;background:#fff}.report-share-box>div{display:flex;gap:10px;margin-top:12px}.report-share-box a{text-decoration:none}.report-share-box small{display:block;margin-top:12px;color:var(--muted)}@media(max-width:560px){.report-share-box>div{display:grid}.report-share-box>div>*{width:100%;text-align:center}}
.invoice-upload input[type=file]{padding:9px 12px!important;line-height:28px!important}.attachment-cell{min-width:96px}.attachment-row{display:flex;align-items:center;gap:8px;margin:3px 0}.attachment-row form{margin:0}.pdf-icon-link{display:inline-flex;text-decoration:none}.pdf-icon{display:flex;align-items:center;justify-content:center;gap:5px;width:58px;height:34px;border:1px solid #efb8b8;border-radius:7px;background:#fff1f1;color:#a83232;font-size:11px;font-weight:850;letter-spacing:.04em}.pdf-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.pdf-icon-link:hover .pdf-icon{background:#ffe3e3;border-color:#dc8e8e}.attachment-delete{font-size:20px}.compact-link{margin:0;font-size:13px;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tenant-portal{background:#eef3f2;min-height:100vh;padding:34px 18px}.tenant-report{width:min(1100px,100%);margin:0 auto}.tenant-report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}.tenant-report-head h1{margin:3px 0 6px;font-size:38px}.tenant-report-head p:last-child{color:var(--muted);margin:0}.tenant-total{display:grid;gap:6px;background:linear-gradient(135deg,#147d78,#0c5d59);color:#fff;border-radius:18px;padding:28px 30px;margin-bottom:22px;box-shadow:0 12px 30px rgba(20,125,120,.18)}.tenant-total span{font-size:15px;opacity:.88}.tenant-total strong{font-size:38px}.tenant-total small{font-size:14px;opacity:.86}.tenant-report .panel{overflow:hidden}.tenant-report table{min-width:820px}.invoice-link{display:block;color:var(--teal);font-weight:750;text-decoration:none;margin:4px 0}.invoice-link:hover{text-decoration:underline}.tenant-expiry{text-align:center;color:var(--muted);font-size:13px;margin:18px 0}@media(max-width:700px){.tenant-portal{padding:20px 10px}.tenant-report-head{display:block}.tenant-report-head .secondary{margin-top:16px}.tenant-total{padding:22px}.tenant-total strong{font-size:30px}}

/* Mobilus išdėstymas */
@media(max-width:760px){
  body{font-size:14px}.shell{padding:22px 12px 48px}.topbar{padding:12px;gap:10px}.brand{min-width:0}.brand>span,.brand-mark{width:36px;height:36px}.brand strong{font-size:14px}.brand small{font-size:11px}.topbar nav{gap:4px;padding-bottom:3px;scrollbar-width:none}.topbar nav::-webkit-scrollbar{display:none}.topbar nav a{padding:9px 11px;white-space:nowrap}.logout{font-size:12px}.page-head{margin-bottom:18px}.page-head .primary{width:100%}h1{font-size:28px}.panel{border-radius:12px}.pad{padding:18px}.kpis{gap:10px}.kpis article{padding:16px}.kpis strong{font-size:22px}.panel-head-row{display:block}.chart-legend{flex-wrap:wrap;gap:8px 14px;margin-top:12px}.dashboard-filters{grid-template-columns:1fr}.finance-chart{min-width:0}.finance-chart svg{min-width:680px}.modal{padding:20px}.modal-head{margin-bottom:18px}.modal-actions{display:grid;grid-template-columns:1fr 1fr}.modal-actions>*{width:100%}.settings-grid{display:block}.settings-grid>.panel{margin-bottom:14px}.inline-form,.compact-property-form,.lease-form,#users .compact-form{grid-template-columns:1fr}.category-editor{align-items:stretch;flex-wrap:wrap}.category-update{min-width:100%}.category-editor>.small-button{flex:1}.report-totals{width:100%}
  .operations-table{display:block;white-space:normal}.operations-table thead{display:none}.operations-table tbody,.operations-table tr,.operations-table td{display:block;width:100%}.operations-table tbody{padding:8px}.operations-table tr{margin:8px 0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.operations-table tr:hover{background:#fff}.operations-table td{display:grid;grid-template-columns:minmax(105px,38%) 1fr;gap:12px;align-items:center;padding:10px 12px;border-top:1px solid #edf2f1;white-space:normal;overflow-wrap:anywhere}.operations-table td:first-child{border-top:0}.operations-table td:before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.operations-table .attachment-cell{min-width:0}.operations-table .row-actions{display:grid;grid-template-columns:minmax(105px,38%) 1fr}.operations-table .row-actions:before{grid-column:1}.operations-table .row-actions>button,.operations-table .row-actions>form{grid-column:2}.operations-table .row-actions>form{justify-self:start}.operations-table .empty{display:block;text-align:center}.operations-table .empty:before{display:none}.attachment-row{justify-content:flex-start}
  .table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}.editable-table,.editable-row{min-width:780px}.tenant-report table{min-width:720px}.report-heading{margin-bottom:18px}.tenant-report-head h1{font-size:30px}
}
@media(max-width:420px){.shell{padding-left:10px;padding-right:10px}.modal{padding:18px 14px}.modal-actions{grid-template-columns:1fr}.auth-card{padding:26px 18px}.tenant-total{padding:20px 18px}.tenant-total strong{font-size:27px}}

/* Kompaktiški veiksmai ir vienodas skaičių lygiavimas */
.amount,.amount-heading,.numeric{text-align:right!important;font-variant-numeric:tabular-nums}
input[type="number"]{text-align:right;font-variant-numeric:tabular-nums}
.edit-icon-button,.small-button[data-edit-toggle]{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border-radius:9px;font-size:0}
.small-button[data-edit-toggle]::before{content:"✎";font-size:20px;line-height:1;font-weight:700}
.edit-icon-button span{font-size:20px;line-height:1}
.row-actions{white-space:nowrap}
.report-preview .pdf-icon-link,.tenant-report .pdf-icon-link{margin:2px 5px 2px 0}
.report-download{display:inline-flex;align-items:center;gap:8px;text-decoration:none}.report-download svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
@media(max-width:760px){.operations-table .amount{text-align:left!important}.operations-table .amount:before{text-align:left}.operations-table .edit-icon-button{justify-self:start}}

/* Kompaktiškesnė pajamų lentelė */
.operations-table .period-cell{min-width:132px;white-space:normal}
.period-line{line-height:1.35;font-variant-numeric:tabular-nums}
.period-line+.period-line{margin-top:3px}
@media(min-width:761px){.operations-table th,.operations-table td{padding-left:12px;padding-right:12px}.operations-table .period-cell{width:146px}}
@media(max-width:760px){.operations-table .period-cell{min-width:0;align-items:start}.operations-table .period-cell:before{grid-column:1;grid-row:1}.operations-table .period-cell .period-line{grid-column:2;justify-content:flex-start;text-align:left}.operations-table .period-cell .period-line:first-of-type{grid-row:1}.operations-table .period-cell .period-line:nth-of-type(2){grid-row:2;margin-top:0}}
@media(min-width:761px){
  .operations-table .row-actions{display:table-cell;width:94px;min-width:94px;white-space:nowrap}
  .operations-table .row-actions>button,.operations-table .row-actions>form{display:inline-block;vertical-align:middle;margin:0 5px 0 0}
  .operations-table.has-attachments{table-layout:fixed}
  .operations-table.has-attachments th:nth-child(1){width:105px}
  .operations-table.has-attachments th:nth-child(2){width:105px}
  .operations-table.has-attachments th:nth-child(3){width:130px}
  .operations-table.has-attachments th:nth-child(4){width:220px}
  .operations-table.has-attachments th:nth-child(5){width:105px}
  .operations-table.has-attachments th:nth-child(6){width:100px}
  .operations-table.has-attachments th:nth-child(8){width:105px}
  .operations-table.has-attachments th:nth-child(9){width:94px}
  .operations-table.has-attachments td:nth-child(4),.operations-table.has-attachments td:nth-child(7){white-space:normal;overflow-wrap:anywhere}
}
