/* Einheitlicher Seitenrahmen nach dem Vorbild Ticket-System (Wunsch des Users 02.11.2026): schmaler Kopf auf grauem Grund,
   Reiter und Sub-Reiter im selben Farbschema, gleiche Seitenränder. Topbar, Dashboard und Fußzeile bleiben unberührt. */
:root{--frame-x:clamp(16px,2.4vw,40px)}
body:has(.page-head,.arc-head,.trade-head){background:#e3e9ec}

/* Kopf wie .arc-head */
body .page-head,body.portfolio-body .page-head,body .trade-head{margin:0;padding:24px var(--frame-x) 14px;border:0;background:transparent}
body .page-head h1,body.portfolio-body .page-head h1,body .trade-head h1{margin:2px 0 4px;color:#12181b;font-size:30px;font-weight:600;line-height:normal;letter-spacing:-.02em}
body .page-head p:not(.eyebrow),body.portfolio-body .page-head p:not(.eyebrow),body .trade-head p:not(.eyebrow){margin:0;color:#5e6d74;font-size:13px}
body .page-head .eyebrow,body.portfolio-body .page-head .eyebrow,body .trade-head .eyebrow{display:block;margin:12px 0;color:var(--cyan)}
body .page-head .back-link,body .trade-head .back-link{color:#087397;font-size:13px;font-weight:400}
/* Zurück-Links überall gleich (User 02.11.2026: „der Dashboard link sollte optisch immer gleich sein“) */
html body a.back-link,html body a.bank-dashboard-link,html body a.trade-dashboard-link,html body a.sftp-back,html body.portfolio-body a.back-link,html body .arc-shell .arc-head a.back-link{padding-bottom:3px;border-bottom:2px solid var(--cyan);color:#087397;font-size:13px;font-weight:400;line-height:normal;text-decoration:none;white-space:nowrap}

/* Seitenränder */
body .release-list,body .hr-shell,body .wt-shell,body .bank-layout,body .logging-layout,body .update-layout,body .global-search-shell,body .tenant-layout,body .sftp-layout,body .sftp-form-layout,body .ssh-server-grid,body .tenant-tabs,body .trade-toolbar,body .trade-meta{padding-left:var(--frame-x);padding-right:var(--frame-x)}
body .company-tabs,body .bank-tabs,body .tenant-form-shell,body .ssh-security,body .trade-table-wrap,body .trade-notice,body .trade-error,body .trade-form,body .trade-documents{margin-left:var(--frame-x);margin-right:var(--frame-x)}
body .release-list{padding-top:0}
body .release-list:not(.timeseries-management-layout)>.page-head{margin-bottom:-14px}
body .release-list>.page-head{padding-left:0;padding-right:0}
body .release-list:not(.timeseries-management-layout)>.timeseries-tabs{margin-bottom:-14px}   /* gleicht den Abstand 14 px aus; .timeseries-management-layout hat gap:0, sonst überlappen sich Reiter und Inhalt */
body .release-list.awattar-layout>.timeseries-tabs{margin-bottom:0}   /* Open-Meteo, aWATTar: gap:0, also nichts auszugleichen, sonst überlappen die Reiter */
body .release-list.awattar-layout>.timeseries-tabs.timeseries-subtabs{margin-bottom:12px}
body .hr-shell{padding-top:0}

/* Reiter wie .arc-tabs */
body .timeseries-tabs,body .company-tabs,body .bank-tabs,body .wt-tabs,body .inbox-tabs,body .alarm-tabs,body .tenant-tabs,body .invoice-section-tabs,body .ts-detail-tabs,body .orchestrade-report-tabs{display:flex;flex-wrap:wrap;align-items:flex-end;gap:3px;padding-top:0;padding-bottom:0;border:0;border-bottom:1px solid #ccd7da;background:transparent}
body .timeseries-tabs a:not(.dvb-state),body .company-tabs a,body .bank-tabs a,body .wt-tabs a,body .inbox-tabs .inbox-tab,body .alarm-tabs a,body .tenant-tabs a,body .invoice-section-tabs a,body .invoice-section-tabs a:visited,body .ts-detail-tabs a,body .orchestrade-report-tabs a{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border:1px solid transparent;border-bottom:0;border-radius:0;background:transparent;color:#435159;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
body .timeseries-tabs a:not(.dvb-state):hover,body .company-tabs a:hover,body .bank-tabs a:hover,body .wt-tabs a:hover,body .inbox-tabs .inbox-tab:hover,body .alarm-tabs a:hover,body .tenant-tabs a:hover,body .invoice-section-tabs a:hover,body .ts-detail-tabs a:hover,body .orchestrade-report-tabs a:hover{background:transparent;color:#087397}
body .timeseries-tabs a.active:not(.dvb-state),body .company-tabs a.active,body .bank-tabs a.active,body .wt-tabs a.active,body .inbox-tabs .inbox-tab.active,body .alarm-tabs a.active,body .tenant-tabs a.active,body .invoice-section-tabs a[aria-current="page"],body .ts-detail-tabs a.active,body .orchestrade-report-tabs a.active{margin-bottom:-1px;border-color:var(--cyan);background:var(--cyan);color:#fff}
body .inbox-tabs .inbox-tab span,body .wt-tabs .wt-tab-count,body .alarm-tabs a span{display:inline-flex;min-width:18px;height:auto;justify-content:center;padding:0 5px;border-radius:0;background:#eef3f5;color:#435159;font-size:11px}
body .inbox-tabs .inbox-tab.active span,body .wt-tabs a.active .wt-tab-count,body .alarm-tabs a.active span,body .ts-subscription-tabs a.active span{background:rgba(255,255,255,.25);color:#fff}

/* Sub-Reiter wie .tk-queues */
body .timeseries-tabs.timeseries-subtabs,body .timeseries-tabs.ts-tree-areas,body .timeseries-tabs.ts-tree-views,body .ts-subscription-tabs,body .arc-shell .arc-subtabs,body .arc-shell.rd2-shell .rd2-subtabs,body .wt-subtabs,body .inbox-subtabs,body .arc-shell.tk-shell .kb-nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;padding:0;border:0;background:transparent}
body .timeseries-tabs.timeseries-subtabs a:not(.dvb-state),body .timeseries-tabs.ts-tree-areas a,body .timeseries-tabs.ts-tree-views a,body .ts-subscription-tabs a,body .arc-shell .arc-subtabs a,body .arc-shell.rd2-shell .rd2-subtabs a,body .wt-subtabs a,body .inbox-subtabs .inbox-subtab,body .arc-shell.tk-shell .kb-nav a{display:inline-flex;align-items:center;gap:6px;margin:0;padding:5px 10px;border:1px solid #d5dfe2;border-radius:0;background:#fff;color:#435159;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}
body .timeseries-tabs.timeseries-subtabs a:not(.dvb-state):hover,body .timeseries-tabs.ts-tree-areas a:hover,body .timeseries-tabs.ts-tree-views a:hover,body .ts-subscription-tabs a:hover,body .arc-shell .arc-subtabs a:hover,body .arc-shell.rd2-shell .rd2-subtabs a:hover,body .wt-subtabs a:hover,body .inbox-subtabs .inbox-subtab:hover,body .arc-shell.tk-shell .kb-nav a:hover{background:#fff;color:#087397}
body .timeseries-tabs.timeseries-subtabs a.active:not(.dvb-state),body .timeseries-tabs.ts-tree-areas a.active,body .timeseries-tabs.ts-tree-views a.active,body .ts-subscription-tabs a.active,body .arc-shell .arc-subtabs a.active,body .arc-shell.rd2-shell .rd2-subtabs a.active,body .wt-subtabs a.active,body .inbox-subtabs .inbox-subtab.active,body .arc-shell.tk-shell .kb-nav a.active{margin:0;border-color:var(--cyan);background:var(--cyan);color:#fff}

body .timeseries-tabs.ts-tree-areas{margin-top:8px}   /* Abstand zur Reiterzeile darüber */

/* Suchleiste wie .tk-filter */
body .hr-toolbar{gap:10px 16px;margin-bottom:10px}
body .hr-toolbar .primary,body .hr-toolbar a.secondary,body .hr-toolbar button.secondary{display:inline-flex;align-items:center;height:32px;min-height:32px;padding:0 12px;font-size:12px;line-height:1}
body .hr-search input,body .hr-search select{box-sizing:border-box;height:32px;padding:0 8px;border:1px solid #cfd7da;background:#fff;font-size:12px}
body .hr-search button{height:32px;padding:0 12px;border:1px solid #cfd7da;background:#fff;color:#172a35;font-size:12px;font-weight:700}
@media(max-width:700px){body .page-head h1,body.portfolio-body .page-head h1,body .trade-head h1{font-size:26px}body .timeseries-tabs a:not(.dvb-state),body .company-tabs a,body .bank-tabs a,body .wt-tabs a,body .inbox-tabs .inbox-tab,body .alarm-tabs a,body .tenant-tabs a,body .invoice-section-tabs a,body .ts-detail-tabs a,body .orchestrade-report-tabs a{padding:8px 10px}}
body .timeseries-tabs.ts-tree-areas,body .timeseries-tabs.ts-tree-views{margin:8px 0 0}

/* Automatische Such- und Filterleiste (core/auto-table-filter.js), Optik wie .tk-filter und .ts-filter-row */
tr[hidden]{display:none!important}
.auto-filter-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}
.auto-filter-bar input{box-sizing:border-box;width:min(320px,70vw);height:32px;padding:0 8px;border:1px solid #cfd7da;background:#fff;color:#141414;font:inherit;font-size:12px}
.auto-filter-bar input:focus,.auto-filter-row input:focus{outline:0;border-color:#13a9d4;box-shadow:0 0 0 2px rgba(20,174,221,.15)}
.auto-filter-bar button{height:32px;padding:0 12px;border:1px solid #cfd7da;background:#fff;color:#172a35;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.auto-filter-bar button[hidden]{display:none}
.auto-filter-count{color:#5e6d74;font-size:12px}
table thead tr.auto-filter-row th{padding:4px 5px 6px;background:#f6f9fa;font-weight:400;text-transform:none;letter-spacing:0}
.auto-filter-row input{box-sizing:border-box;width:100%;min-width:40px;height:26px;padding:0 6px;border:1px solid #cfd7da;background:#fff;color:#141414;font:inherit;font-size:11px}
.auto-filter-row input::placeholder,.auto-filter-bar input::placeholder{color:#9aa7ab}

/* Markt-Info hat einen eigenen Kopf */
body:has(.market-heading,.instrument-chart){background:#e3e9ec}
body .market-info{padding:0 var(--frame-x) 24px}
body .market-heading{margin-bottom:14px;padding:24px 0 0}
body .market-heading h1{margin:2px 0 4px;color:#12181b;font-size:30px;font-weight:600;line-height:normal;letter-spacing:-.02em}
body .market-heading .eyebrow{display:block;margin:12px 0;color:var(--cyan)}
body .market-heading p:not(.eyebrow){margin:0;color:#5e6d74;font-size:13px}
