/* Kloepfel Handelsgeschäft – light, pragmatic workspace; no external assets. */
:root {
  --canvas: #f6f8fb;
  --paper: #fff;
  --ink: #17263f;
  --ink-soft: #34455e;
  --muted: #75839a;
  --line: #e5eaf1;
  --line-soft: #edf0f4;
  --accent: #1763dc;
  --accent-dark: #0c51bd;
  --accent-bg: #edf4ff;
  --green: #198468;
  --green-bg: #e9f8f0;
  --radius: 12px;
  --shadow: 0 3px 16px rgba(20, 44, 79, .035);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { font: 13.5px/1.5 "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; color: var(--ink); background: var(--canvas); }
body { margin: 0; }
/* Leiste mit dem Leitsatz ganz oben, auf allen Seiten und der Anmeldeseite; ui_v10.css rechnet mit ihren 32px. */
.leitsatz { position: sticky; top: 0; z-index: 6; height: 32px; display: flex; align-items: center; justify-content: center; background: #0c1e40; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .2px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #9bc2ff; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Application frame */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 223px; flex: 0 0 223px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 0 12px 22px; position: sticky; top: 0; height: 100vh; z-index: 5; }
.brand { display: flex; align-items: center; min-height: 92px; padding: 10px 17px; color: var(--ink); border-bottom: 1px solid var(--line-soft); margin: 0 4px 27px; }
.brand-copy { display: flex; flex-direction: column; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.menu-link { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 14px; color: #596a81; font-size: 13px; font-weight: 620; border-radius: 9px; }
.menu-link:hover { color: #1759cb; background: #f5f8fd; }
.menu-link.active { color: #165bc7; background: #edf4ff; font-weight: 760; }
.menu-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.side-spacer { flex: 1; }
.sidebar-context { border: 1px solid #e8ecf3; border-radius: 9px; padding: 14px 15px; margin: 0 3px 15px; display: flex; flex-direction: column; }
.sidebar-context span { color: #96a2b2; letter-spacing: 1.15px; font-size: 10px; font-weight: 760; }
.sidebar-context strong { font-size: 15px; color: #26374f; margin-top: 5px; }
.sidebar-context small { font-size: 11px; color: #8692a5; margin-top: 1px; }
.side-version { font-size: 11px; line-height: 1.9; color: #5b6e84; padding: 0 10px; }
.main-shell { min-width: 0; flex: 1; }
.topbar { height: 67px; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); padding: 0 31px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.customer-chip { display: inline-flex; align-items: center; gap: 8px; color: #4a5a71; font-size: 12px; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #6385b2; }
.main-content { max-width: 1700px; margin: 0 auto; padding: 31px 32px 65px; }
/* Collapsible main menu (static/menue.js): the button sits in the top bar; collapsed, the sidebar
   keeps only the icons and the names stay for screen readers (as .sr-only). */
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.menu-toggle { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: #5c7090; }
.menu-toggle:hover { background: #f0f6fe; border-color: #dce5f1; color: var(--accent); }
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 721px) {
  html.menue-zu .sidebar { width: 72px; flex-basis: 72px; padding-left: 10px; padding-right: 10px; }
  html.menue-zu .sidebar .brand-copy, html.menue-zu .sidebar .menu-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  html.menue-zu .sidebar .side-version { display: none; }
  html.menue-zu .sidebar .menu-link { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
}
@media (max-width: 720px) { .menu-toggle { display: none; } }

/* Common typography and actions */
.eyebrow { color: #6b82a8; font-size: 10px; letter-spacing: 1.55px; font-weight: 770; margin-bottom: 6px; }
h1 { font-size: 27px; letter-spacing: -.65px; color: #152741; line-height: 1.2; font-weight: 760; margin: 0 0 8px; }
h2 { font-size: 16px; letter-spacing: -.15px; font-weight: 720; margin: 0; }
h3 { font-size: 13px; font-weight: 720; margin: 0; }
.subtitle { color: #7d8ba0; line-height: 1.6; font-size: 12.5px; margin: 0; }
.heading-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 23px; }
.buttonbar, .heading-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 38px; padding: 9px 15px; white-space: nowrap; font-size: 12px; line-height: 1.2; font-weight: 680; border-radius: 8px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.button.primary { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 2px 6px rgba(17,86,192,.12); }
.button.primary:hover { color: white; background: var(--accent-dark); }
.button.outline { color: #40546e; background: #fff; border: 1px solid #dfe5ed; }
.button.outline:hover { color: var(--accent); background: #f7faff; border-color: #cbdaf2; }
.button.subtle { color: #255fbb; background: #edf4ff; }
.button.text { color: #6d7e95; }
.button.dashed { width: 100%; border: 1px dashed #b6c8e2; background: #f9fbff; color: #215eae; padding: 13px; }
.button.dashed:hover { background: #edf4ff; }
.button.large { min-height: 43px; padding: 12px 21px; font-size: 13px; }
.button.block { display: flex; width: 100%; margin: 9px 0; }
.button:disabled { opacity: .5; cursor: wait; }
.button-plus { font-size: 20px; line-height: 11px; font-weight: 400; padding-bottom: 3px; }
.link { font-size: 12px; color: var(--accent); font-weight: 700; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-variant-numeric: tabular-nums; }
.blue { color: var(--accent); font-weight: 760; }
.muted { color: #8996a8 !important; }
.pill { display: inline-flex; font-size: 10px; font-weight: 720; padding: 4px 9px; border-radius: 30px; white-space: nowrap; line-height: 1.4; }
.pill.success { color: #187959; background: #e8f7ef; }
.pill.slate { color: #566d88; background: #eff2f6; }
.subchip { font-size: 11px; color: #73839b; border-left: 1px solid #dee4ec; padding-left: 9px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Register home: overview KPIs and split-view like the approved direction */
.list-heading { margin-bottom: 23px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 11px; padding: 17px 16px; display: flex; align-items: center; gap: 13px; min-width: 0; }
.stat-icon { width: 41px; height: 41px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 620; flex: 0 0 41px; }
.blue-icon { color: #1763dc; background: #edf4ff; }
.green-icon { color: #168968; background: #eaf8f0; }
.purple-icon { color: #7057bd; background: #f1edfe; }
.slate-icon { color: #60738f; background: #eff3f8; }
.stat-label { display: block; font-size: 11.5px; font-weight: 590; color: #738199; line-height: 1.5; }
.stat strong { display: block; margin-top: 1px; font-size: 24px; line-height: 1.2; letter-spacing: -.7px; font-variant-numeric: tabular-nums; color: #182b45; }
.workspace-panel { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(290px,.86fr); background: #fff; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; min-height: 790px; }
.workspace-list { min-width: 0; display: flex; flex-direction: column; }
.register-header { padding: 24px 24px 10px; }
.register-header h2 { font-size: 17px; }
.register-header p { font-size: 11px; margin: 4px 0 0; color: var(--muted); }
.filter-tabs { display: flex; align-items: center; gap: 19px; margin: 0 24px; border-bottom: 1px solid var(--line); }
.filter-tab { display: inline-flex; align-items: center; gap: 6px; padding: 13px 1px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: #77839a; font-size: 12px; font-weight: 650; white-space: nowrap; }
.filter-tab span { color: #8a9bb1; background: #f2f4f7; font-size: 10px; padding: 2px 6px; border-radius: 6px; }
.filter-tab.active { border-bottom-color: var(--accent); color: var(--accent); }
.filter-tab.active span { background: #eaf2ff; color: var(--accent); }
.filters { display: flex; gap: 8px; padding: 18px 24px 20px; align-items: stretch; }
.search-wrap { border: 1px solid #dfe5ee; border-radius: 8px; display: flex; align-items: center; flex: 1; gap: 9px; min-width: 100px; padding: 0 11px; color: #9caabc; background: #fff; }
.search-wrap:focus-within { border-color: #9fc1f7; box-shadow: 0 0 0 3px #eef4ff; }
.search-wrap svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search-wrap input { border: 0; width: 100%; min-width: 0; padding: 10px 0; background: transparent; color: var(--ink); font-size: 12px; outline: 0; }
.search-wrap input::placeholder { color: #9ba6b8; }
.filters select { min-height: 38px; max-width: 155px; border: 1px solid #dfe5ee; border-radius: 8px; background: #fff; color: #596a82; font-size: 11.5px; padding: 0 9px; }
.table-scroll { width: 100%; overflow: auto; }
.data-table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
.data-table thead { background: #f8fafc; }
.data-table th { font-size: 10px; font-weight: 750; color: #79869a; padding: 12px 15px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); white-space: nowrap; letter-spacing: .25px; }
.data-table td { padding: 12px 15px; border-bottom: 1px solid #eef1f5; vertical-align: middle; color: #52637a; }
.data-table tbody tr:hover { background: #fafcff; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .item-col { min-width: 140px; max-width: 275px; }
.item-col a, .item-col strong { display: block; color: #2f415a; font-size: 11.5px; font-weight: 640; line-height: 1.5; overflow-wrap: anywhere; }
.item-col a:hover { color: var(--accent); }
.item-col small { display: block; color: #8997a9; font-size: 10px; margin-top: 4px; }
.ellipsis { display: block; max-width: 480px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.registry-table { font-size: 11.5px; }
.registry-table th, .registry-table td { padding: 13px 11px; }
.registry-table th:first-child, .registry-table td:first-child { padding-left: 23px; }
.registry-table th:last-child, .registry-table td:last-child { padding-right: 17px; }
.registry-table tbody .selected-row { background: #edf5ff; box-shadow: inset 3px 0 var(--accent); }
.registry-table tbody .selected-row:hover { background: #eaf3ff; }
.registry-table .ref-small { color: #64758c; display: block; font-size: 10.5px; margin-bottom: 6px; }
.registry-table .pill { font-size: 9px; padding: 3px 7px; }
.registry-table .date-col { white-space: nowrap; font-size: 10.5px; }
.row-open { width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid #e5eaf1; color: #5b708b; font-size: 15px; }
.row-open:hover { background: #eff5ff; color: var(--accent); }
.table-footer { display: flex; justify-content: space-between; gap: 13px; align-items: center; padding: 17px 22px; margin-top: auto; border-top: 1px solid var(--line-soft); font-size: 11px; color: #7f8da0; }
.pagination { display: flex; gap: 18px; }
.pagination a { color: var(--accent); font-weight: 700; }
.empty { text-align: center; padding: 38px !important; color: #8491a1; }

/* Preview panel – only actual workbook fields, no speculative statuses */
.workspace-preview { min-width: 0; padding: 23px; border-left: 1px solid var(--line); background: #fcfdff; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.preview-label { color: #7b8ba4; letter-spacing: .85px; font-size: 10px; font-weight: 770; }
.preview-number { font-size: 24px; font-weight: 740; margin-top: 9px; letter-spacing: -.4px; overflow-wrap: anywhere; }
.preview-meta { font-size: 11px; margin: 5px 0 22px; color: #8390a1; }
.preview-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 24px; }
.preview-actions .button { flex: 1; }
.preview-section { border-top: 1px solid #e7ecf2; padding: 20px 0 17px; }
.preview-section h3 { margin-bottom: 15px; font-size: 13px; }
.preview-definition { display: grid; gap: 11px; margin: 0; }
.preview-definition > div { display: grid; grid-template-columns: 1fr minmax(0,1.2fr); gap: 8px; font-size: 11.5px; }
.preview-definition dt { color: #8290a4; }
.preview-definition dd { margin: 0; font-weight: 590; color: #334861; overflow-wrap: anywhere; }
.preview-section-title { display: flex; align-items: center; gap: 8px; }
.count-label { color: #6c829c; background: #eaf0f8; border-radius: 8px; padding: 2px 7px; font-size: 10px; font-weight: 730; }
.preview-item { display: flex; justify-content: space-between; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f0f2f6; }
.preview-item-title { display: block; font-weight: 620; font-size: 11.3px; line-height: 1.45; overflow-wrap: anywhere; }
.preview-item small { display: block; margin-top: 5px; font-size: 10px; color: #8b97a8; }
.preview-item > strong { white-space: nowrap; font-size: 11px; color: #304a67; font-variant-numeric: tabular-nums; font-weight: 700; }
.preview-item > strong small { display: inline; font-weight: 400; }
.preview-extra { font-size: 11px; color: #788da7; }
.preview-total { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 17px; }
.preview-total span { font-size: 11px; color: #76869c; }
.preview-total strong { font-size: 16px; color: #1e3b62; font-variant-numeric: tabular-nums; white-space: nowrap; }
.preview-pdf { width: 100%; margin-top: 8px; }
.preview-footnote { color: #8794a7; font-size: 10.5px; margin: 12px 0 0; }
.inline-link { color: var(--accent); font-weight: 700; }
.empty-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 0; color: var(--muted); }

/* Forms: both Excel workflows, same clear visual language */
.form-main { max-width: 1150px; }
.form-panel { padding: 27px 29px; margin-bottom: 18px; }
.section-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 25px; }
.section-head p { margin: 4px 0 0; font-size: 11.5px; color: #8492a5; }
.step { flex: 0 0 30px; height: 30px; width: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #2362c4; background: #edf4ff; font-weight: 800; }
.type-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.type-choice { cursor: pointer; position: relative; display: block; }
.type-choice input { position: absolute; opacity: 0; pointer-events: none; }
.type-choice span { display: flex; flex-direction: column; gap: 9px; min-height: 96px; padding: 16px; border: 1px solid #e0e6f0; border-radius: 9px; background: white; }
.type-choice input:checked + span { padding: 15px; background: #f2f7ff; border: 2px solid #397cdb; }
.type-choice input:focus-visible + span { outline: 3px solid #9bc2ff; }
.type-choice b { font-size: 12px; color: #31445f; line-height: 1.4; }
.type-choice small { color: #8a97a9; font-size: 10.5px; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 21px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field.wide { grid-column: span 2; }
.form-field span { font-weight: 650; color: #526781; font-size: 11.5px; }
.form-field em { font-style: normal; color: #c25754; }
.form-field input, .form-field textarea { background: #fff; border: 1px solid #dce4ee; border-radius: 8px; width: 100%; padding: 10px 12px; min-height: 40px; font-size: 12.5px; color: #293d57; outline: 0; }
.form-field input:focus, .form-field textarea:focus { border-color: #8db3f2; box-shadow: 0 0 0 3px #eef4ff; }
.form-field textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.form-field.readonly div { display: flex; align-items: center; padding: 10px 12px; min-height: 40px; border: 1px solid #e5e9f0; border-radius: 8px; background: #f9fafc; color: #7b8ba0; }
.helpbox { padding: 13px 16px; margin-top: 20px; border-left: 3px solid #83b0f8; background: #f4f8ff; border-radius: 4px 8px 8px 4px; color: #587294; font-size: 11.5px; line-height: 1.65; }
.position-list { display: grid; gap: 15px; }
.edit-position { background: #fcfdff; border: 1px solid #e5eaf1; border-radius: 10px; padding: 24px; margin-bottom: 13px; }
.position-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.position-header h3 { font-size: 13px; }
.position-total { display: flex; align-items: center; justify-content: flex-end; gap: 17px; padding-top: 16px; margin-top: 23px; border-top: 1px solid #e8ecf2; font-size: 12px; color: #7b89a0; }
.position-total strong { color: #234566; font-size: 14px; }
.form-actions { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 5px 0 30px; display: flex; align-items: center; justify-content: flex-end; gap: 17px; flex-wrap: wrap; }
.form-error { color: #a54448; border: 1px solid #f2c7c7; background: #fff0f1; padding: 10px 14px; border-radius: 7px; font-size: 11px; max-width: 420px; }
.operator-label { font-size: 11px; color: #6d7f97; display: flex; align-items: center; gap: 11px; }
.operator-label input { border: 1px solid #dce4ee; border-radius: 7px; padding: 10px 12px; font-size: 12px; max-width: 185px; }
.form-subheading { color: #58779f; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin: 29px 0 16px; }
.mini-label { font-size: 10.5px; color: #96a1b1; }
.additional { margin-top: 24px; padding-top: 19px; border-top: 1px solid #e7ecf2; }
.additional summary { color: #3364a4; font-size: 12px; font-weight: 720; cursor: pointer; }
.additional .field-grid { margin-top: 20px; }

/* Full case detail */
.case-heading { margin-bottom: 24px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 17px; margin-bottom: 19px; }
.info-panel, .action-panel { padding: 25px 27px; }
.info-grid, .book-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 20px; margin-top: 23px; }
.info-grid small, .book-grid small { display: block; color: #8493a5; font-size: 10.5px; margin-bottom: 6px; }
.info-grid strong, .book-grid b, .book-grid span { display: block; color: #30455e; font-size: 12px; overflow-wrap: anywhere; line-height: 1.55; }
.action-panel { background: #fff; border-color: var(--line); }
.action-panel p { font-size: 11.5px; line-height: 1.7; color: #75869a; }
.action-panel > small { display: block; color: #96a2b3; font-size: 10px; line-height: 1.55; margin-top: 10px; }
.action-symbol { background: #eaf7ef; color: #19826a; height: 37px; width: 37px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 23px; margin: 14px 0; }
.action-symbol.neutral { background: #eff3f7; color: #75849c; }
.relations { border-top: 1px solid var(--line-soft); margin-top: 23px; padding-top: 16px; }
.relations h3 { margin-bottom: 9px; }
.relations p { font-size: 11.5px; color: #718298; line-height: 1.7; margin: 6px 0; }
.total-line { display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 19px 25px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: #76869a; }
.total-line strong { font-size: 17px; color: #213e61; }
.table-panel { overflow: hidden; margin-bottom: 19px; }
.table-title { padding: 23px 26px 19px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.table-title p { margin: 4px 0 0; color: #8492a4; font-size: 11.5px; }
.bookkeeping-row { padding: 19px 0; border-top: 1px solid #e9edf3; }
.book-grid { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 18px; }
.subtext { color: #8b98aa; font-size: 11.5px; }

/* Responsiveness */
@media (max-width: 1440px) {
  .main-content { padding: 27px 24px 58px; }
  .workspace-panel { grid-template-columns: minmax(0,1.5fr) minmax(284px,.84fr); }
  .stat { gap: 10px; padding: 13px 11px; }
  .stat-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .stat strong { font-size: 22px; }
  .filters { padding-left: 18px; padding-right: 18px; }
  .register-header { padding-left: 19px; }
  .filter-tabs { margin-left: 19px; margin-right: 19px; gap: 12px; }
  .workspace-preview { padding: 19px; }
}
@media (max-width: 1180px) {
  .sidebar { width: 200px; flex-basis: 200px; }
  .workspace-panel { display: flex; flex-direction: column; }
  .workspace-preview { border-left: 0; border-top: 1px solid var(--line); }
  .preview-definition { grid-template-columns: 1fr 1fr; gap: 12px 25px; }
  .preview-item { max-width: 680px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; height: auto; position: static; padding: 0 12px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 10px 8px; min-height: 63px; margin: 0; }
  .sidebar-nav { flex-direction: row; align-items: center; gap: 6px; margin-top: 7px; }
  .side-spacer, .sidebar-context, .side-version { display: none; }
  .menu-link { min-height: 36px; font-size: 11.5px; padding: 7px 10px; }
  .menu-icon { width: 16px; }
  .topbar { height: 49px; padding: 0 17px; }
  .customer-chip { display: none; }
  .main-content { padding: 23px 14px 46px; }
  .heading-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  h1 { font-size: 24px; }
  .stat-grid { gap: 8px; }
  .stat { padding: 10px; }
  .stat-icon { display: none; }
  .stat-label { font-size: 10px; }
  .stat strong { font-size: 20px; }
  .filters { flex-wrap: wrap; }
  .search-wrap { flex: 1 1 100%; }
  .filters select { flex: 1; }
  .filter-tabs { gap: 13px; overflow: auto; }
  .filter-tab { font-size: 11px; }
  .registry-table { min-width: 680px; }
  .table-footer { padding: 13px; }
  .preview-definition { grid-template-columns: 1fr; }
  .type-grid, .field-grid, .info-grid, .book-grid { grid-template-columns: 1fr; }
  .form-field.wide { grid-column: span 1; }
  .form-panel { padding: 20px 16px; }
  .edit-position { padding: 17px; }
  .buttonbar { width: 100%; }
  .operator-label { width: 100%; justify-content: space-between; }
}

.registry-table th:last-child { position: relative; }
/* Password field with eye button (static/password_toggle.js). */
.password-input { position: relative; display: block; }
.form-field .password-input input { padding-right: 44px; }
.password-toggle { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #6d7e95; cursor: pointer; }
.password-toggle:hover { background: #f0f6fe; color: var(--accent); }
.password-toggle:focus-visible { outline: 2px solid #8db3f2; outline-offset: 1px; }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-input:has(input:disabled) .password-toggle { display: none; }
