/* Adjustment 4: explicit geometry and consistent editor controls. */
.sidebar .brand-lockup .brand{width:144px}
.sidebar .brand-lockup .brand-signature{display:none}
.page-context{flex-direction:row;align-items:center;gap:16px}
.page-title-group{display:flex;flex-direction:column;gap:3px}
.page-context .page-header-logo{width:96px;height:auto;max-height:40px;object-fit:contain;flex:0 0 96px}
#modal{width:min(680px,calc(100vw - 28px));max-height:calc(100dvh - 32px)}
#modal #editor{padding:22px;box-sizing:border-box}
#editor .dialog-head{margin-bottom:20px;align-items:center}
#editor #formFields{gap:14px}
#editor #formFields label:not(.check-row){display:block;min-width:0;margin:0}
#editor #formFields label>span:not(.bank-select):not(.category-select){font-size:12px;line-height:1.3;margin:0 0 6px;font-weight:650}
#editor #formFields input:not([type=checkbox]),#editor #formFields select{display:block;box-sizing:border-box;width:100%;height:44px;min-height:44px;padding:0 12px;border:1px solid #cfdcd5;border-radius:10px;font-family:inherit;font-size:14px;font-weight:550;line-height:1.3;text-align:center;appearance:auto}
#editor #formFields input[name=description]{text-align:left;text-transform:none}
#editor #formFields .category-select,#editor #formFields .bank-select{display:flex;align-items:center;gap:8px;min-height:44px;margin:0}
#editor #formFields .category-preview,#editor #formFields .bank-logo{flex:0 0 36px;width:36px;height:36px;margin:0;display:grid;place-items:center}
#editor #formFields .category-select select,#editor #formFields .bank-select select{flex:1;min-width:0}
#editor #paymentDetails{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#editor #installmentFields{grid-column:1/-1}
#editor #installmentFields[hidden]{display:none}
#editor #formFields .form-grid{gap:14px}
#editor #formFields textarea{box-sizing:border-box;height:64px;min-height:64px;padding:10px 12px;font-size:14px;border-radius:10px}
#editor #formFields .check-row{min-height:44px;padding:10px 12px;gap:9px}
#editor #formFields .check-row input{flex:0 0 16px;width:16px;height:16px}
#editor #formFields .check-row span{font-size:11px;line-height:1.4;margin:0}
#editor .dialog-footer{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;gap:10px;margin:16px -22px 0;padding:14px 22px 18px;background:var(--surface,#fff);border-top:1px solid var(--line,#dfe8e2)}
#editor .dialog-footer button{height:42px;min-width:90px;font-size:13px}
#editor #formError:not(:empty){font-size:12px;line-height:1.4}
.ledger-panel .actions{min-width:210px;white-space:normal}
.ledger-panel .actions button[data-action=duplicate]{display:inline-flex!important;visibility:visible!important}
@media(max-width:760px){.sidebar .brand-lockup .brand{width:126.4px}.page-context{gap:9px}.page-context .page-header-logo{width:66px;flex-basis:66px;max-height:30px}.page-title-group{gap:1px}.page-title-group small{font-size:7px}.page-title-group strong{font-size:12px}#editor #paymentDetails{grid-template-columns:1fr}#editor #formFields .form-grid{gap:12px}#editor .dialog-footer{bottom:0}.ledger-panel .table-mode-cards .actions{min-width:0}}
@media(min-width:761px){
.ledger-panel .table-mode-table th:nth-child(1){width:4%}
.ledger-panel .table-mode-table th:nth-child(2){width:10%}
.ledger-panel .table-mode-table th:nth-child(3){width:18%}
.ledger-panel .table-mode-table th:nth-child(4){width:9%}
.ledger-panel .table-mode-table th:nth-child(5){width:8%}
.ledger-panel .table-mode-table th:nth-child(6){width:12%}
.ledger-panel .table-mode-table th:nth-child(7){width:12%}
.ledger-panel .table-mode-table th:nth-child(8){width:10%}
.ledger-panel .table-mode-table th:nth-child(9){width:17%}
.ledger-panel .table-mode-table td.actions{white-space:normal;min-width:0;text-align:center}
}
