#appScreen .opening-balances-page {background:var(--ui-surface,#fff);border:1px solid var(--ui-border,#dce3ed);border-radius:8px;overflow:hidden;}
#appScreen .opening-balances-page>header {padding:16px;}
#appScreen .opening-balances-page>header h3 {margin:4px 0;font-size:18px!important;}
#appScreen .opening-balances-page>header p {font-size:12px;margin:0;}
#appScreen .opening-import-toolbar {display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px;border-block:1px solid var(--ui-border,#dce3ed);}
#appScreen .opening-import-toolbar label {cursor:pointer;padding:8px 12px;border:1px solid var(--ui-border,#dce3ed);border-radius:6px;}
#appScreen .opening-search {padding:12px 16px;}
#appScreen .opening-search input {width:100%;}
#appScreen .opening-balances-page .accounting-opening-table {max-height:55vh;overflow:auto;}
#appScreen .opening-balances-page table {width:100%;min-width:740px;border-collapse:collapse;}
#appScreen .opening-balances-page th {position:sticky;top:0;background:var(--ui-surface,#fff);z-index:1;}
#appScreen .opening-balances-page :is(th,td) {padding:10px 14px;text-align:left;}
#appScreen .shell-main .opening-balances-page td input[type="number"] {width:120px!important;min-width:0!important;max-width:120px!important;height:32px!important;min-height:32px!important;padding:5px 9px!important;font-size:13px!important;line-height:20px!important;text-align:right;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield;}
#appScreen .shell-main .opening-balances-page td input[type="number"]::-webkit-inner-spin-button,
#appScreen .shell-main .opening-balances-page td input[type="number"]::-webkit-outer-spin-button {-webkit-appearance:none;margin:0;}
#appScreen .shell-main .opening-balances-page tbody td {padding-top:7px!important;padding-bottom:7px!important;}
#appScreen .opening-balances-page .opening-totals {display:flex;flex-wrap:wrap;gap:20px;padding:16px;}
#appScreen .opening-balances-page>footer {display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;padding:16px;border-top:1px solid var(--ui-border,#dce3ed);}
#appScreen .opening-balances-page [data-opening-error] {padding:12px 16px;}

#appScreen .accounting-start-notice {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px;margin-bottom:12px;border:1px solid #efd49a;border-radius:6px;background:#fff9ec;color:#79520b;font-size:13px;}

#appScreen .opening-document-meta {display:flex;gap:40px;padding:12px 16px;border-block:1px solid var(--ui-border,#dce3ed);font-size:12px;}
#appScreen .opening-document-meta b {display:block;margin-top:5px;font-size:14px;}
#appScreen .opening-tree-controls {display:flex;gap:8px;justify-content:flex-end;padding:0 16px 12px;}
#appScreen .opening-statement {padding:0 16px 16px;}
#appScreen .opening-statement h4 {font-size:15px;padding:12px 0;margin:0;}
#appScreen .opening-account-group {border:1px solid var(--ui-border,#dce3ed);border-radius:6px;margin-bottom:8px;overflow:hidden;}
#appScreen .opening-account-group summary {cursor:pointer;padding:12px 14px;background:var(--ui-subtle,#f7f8fa);font-size:13px;}
#appScreen .opening-account-group summary span {font-weight:600;margin-right:16px;}
#appScreen .opening-account-group summary small {color:var(--ui-muted,#6b7f99);}
#appScreen .opening-account-group summary b {float:right;font-variant-numeric:tabular-nums;}
#appScreen .opening-group-table {max-height:48vh;overflow:auto;}
#appScreen .opening-balances-page .opening-totals {position:sticky;bottom:0;background:var(--ui-surface,#fff);border-top:1px solid var(--ui-border,#dce3ed);z-index:2;justify-content:flex-end;}
