/* HPC PatchBilanz Web-App – Grundlayout (ersetzt die WordPress-Admin-Styles) */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#eef3f1;color:#1f2328;font:14px/1.5 Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif}
a{color:#128171}a:hover{color:#0b3a31}
h1,h2,h3{color:#1f2328;line-height:1.25}
code{font-family:Consolas,Menlo,monospace}
.pb-main{max-width:1440px;margin:0 auto;padding:12px 20px 40px}
.wrap{margin:0}
.wrap h1{font-size:26px;font-weight:700;margin:8px 0 14px}
.description{color:#5f7a70;font-size:13px}
p.submit{margin:16px 0}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=search],input[type=month],input:not([type]),select,textarea{font:inherit;color:#1f2328;background:#fff;border:1px solid #b9c9c2;border-radius:8px;min-height:36px;padding:0 10px;max-width:100%}
textarea{padding:8px 10px}
input:focus,select:focus,textarea:focus{outline:0;border-color:#128171;box-shadow:0 0 0 1px #128171}
input[type=checkbox]{accent-color:#128171;width:18px;height:18px;vertical-align:middle}
.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;font-size:13px;line-height:1;min-height:34px;padding:0 14px;border:1px solid #128171;border-radius:8px;background:#fff;color:#128171;cursor:pointer;text-decoration:none;white-space:nowrap}
.button:hover{background:#f4f8f6;color:#0b3a31;border-color:#0b3a31}
.button-primary{background:#128171;color:#fff;border-color:#128171}
.button-primary:hover{background:#0f6d60;color:#fff;border-color:#0f6d60}
.button-small{min-height:28px;padding:0 10px;font-size:12px}
.button[disabled]{opacity:.5;cursor:default}
.button-link{background:none;border:0;padding:0;color:#128171;cursor:pointer;font:inherit}
.button-link-delete{color:#b32d2e!important;border-color:#d63638!important}
.notice{background:#fff;border:1px solid #dce5e0;border-left:4px solid #72aee6;border-radius:8px;padding:2px 14px;margin:0 0 14px}
.notice p{margin:8px 0}
.notice-success{border-left-color:#3da592}.notice-error{border-left-color:#e63c24}.notice-warning{border-left-color:#dba617}.notice-info{border-left-color:#72aee6}
.notice.inline{margin:6px 0}
table.widefat{width:100%;background:#fff;border:1px solid #dce5e0;border-collapse:collapse}
.widefat th,.widefat td{padding:9px 10px;text-align:left;vertical-align:top}
.widefat thead th{background:#f4f8f6;font-size:12px;color:#5f7a70}
.widefat.striped tbody tr:nth-child(odd){background:#fafcfb}
.form-table{width:100%;border-collapse:collapse}.form-table th{text-align:left;width:220px;padding:12px 10px 12px 0;vertical-align:top}.form-table td{padding:8px 0}
.tablenav{margin:12px 0}.page-numbers{display:inline-block;padding:4px 10px;border:1px solid #dce5e0;border-radius:6px;background:#fff;margin-right:4px;text-decoration:none}.page-numbers.current{background:#0b3a31;color:#fff}
.card{background:#fff;border:1px solid #dce5e0;border-radius:12px;padding:16px 18px;margin:0 0 16px;max-width:none}

/* Kopfleiste */
.hpcb-top{display:flex;align-items:center;gap:22px;flex-wrap:wrap;background:#0b3a31;color:#fff;border-radius:12px;padding:12px 20px;margin:0 0 22px}
.hpcb-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff}
.hpcb-brand:hover{color:#fff}
.hpcb-brand img{width:44px;height:44px}
.hpcb-brand b{display:block;font-size:19px;font-weight:700;line-height:1.1}.hpcb-brand b span{color:#8fd6c4}
.hpcb-brand small{display:block;font-size:12px;color:#b9d8cf}
.hpcb-nav{display:flex;gap:4px;flex-wrap:wrap}
.hpcb-nav a{padding:9px 14px;border-radius:8px;color:#cfe5de;text-decoration:none;font-size:14px;font-weight:500}
.hpcb-nav a:hover,.hpcb-nav a:focus{color:#fff;background:rgba(255,255,255,.08)}
.hpcb-nav a.on{color:#fff;background:rgba(255,255,255,.14)}
.hpcb-user{margin-left:auto;display:flex;align-items:center;gap:12px}
.hpcb-user a{color:#cfe5de;text-decoration:none;display:flex;align-items:center;gap:8px;font-size:13px}
.hpcb-user a:hover{color:#fff}
.hpcb-user .av{width:34px;height:34px;border-radius:50%;background:#3da592;color:#0b3a31;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:15px}
.hpcb-user .nm{display:flex;flex-direction:column;line-height:1.2;color:#fff}.hpcb-user .nm small{color:#b9d8cf;font-size:11px}
.hpcb-user .out{border:1px solid #5f9c8e;border-radius:8px;padding:7px 12px}

/* Login / Einrichtung */
.pb-center{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(160deg,#0b3a31 0%,#128171 60%,#3da592 100%)}
.pb-box{width:100%;max-width:400px;background:#fff;border-radius:16px;padding:30px 28px;box-shadow:0 20px 60px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:12px}
.pb-box .pb-logo{width:64px;height:64px;align-self:center}
.pb-box h1{text-align:center;margin:0;font-size:24px}.pb-box h1 span{color:#128171}
.pb-sub{text-align:center;color:#5f7a70;margin:0 0 6px;font-size:13px}
.pb-box label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:#2c4a40}
.pb-box input{min-height:44px;font-size:16px;width:100%}
.pb-box .pb-check{flex-direction:row;align-items:center;gap:8px;font-weight:400}
.pb-box .pb-check input{min-height:0;width:18px}
.pb-wide{width:100%;min-height:46px;font-size:15px;font-weight:600;background:#e63c24;border-color:#e63c24}
.pb-wide:hover{background:#c52f1a;border-color:#c52f1a}

/* Start, Benutzer, Rollen */
.pb-start{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.pb-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pb-quick a{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid #dce5e0;border-radius:10px;text-decoration:none;color:#1f2328;background:#f4f8f6}
.pb-quick a:hover{border-color:#128171}
.pb-quick a span{color:#5f7a70;font-size:13px}
.pb-users td.acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.pb-users td.acts form{display:inline}
.pb-users tr.off td{opacity:.55}
.b{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600}
.role-admin{background:#fde4e1;color:#9b1c1c}.role-buchhaltung{background:#dcecf7;color:#0b4f78}.role-mitarbeiter{background:#e6f1ed;color:#2c4a40}.role-support{background:#efe6f7;color:#5b2a86}
.pb-roles td,.pb-roles th{text-align:center}.pb-roles td:first-child,.pb-roles th:first-child{text-align:left}
.pb-audit td{font-size:13px}
.pb-2fa{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}
#pb-qr{background:#fff;padding:8px;border:1px solid #dce5e0;border-radius:10px;min-width:196px;min-height:196px}
.pb-more{max-width:1280px}

/* Rechte: Bedienelemente ausblenden (Aktionen sind zusätzlich serverseitig gesperrt) */
.cant-transfer #hpc-go,.cant-transfer .hpc-tk,.cant-transfer label:has(.hpc-asg[data-type=invoice]),.cant-transfer .hpc-asg-res[data-for=invoice],.cant-transfer .hpc-pay{display:none!important}
.cant-amounts .hpc-kpis .k:nth-child(4),.cant-amounts .hpc-bar .sum span:nth-child(2),.cant-amounts .hpcdw-t div:nth-child(3),.cant-amounts .hpc-bar .sum span:nth-child(1){display:none!important}
.cant-refresh .hpc-bar .ghost{display:none!important}
.cant-refresh.cant-transfer .hpc-bar .acts{display:none!important}
.cant-edit .hpc-save,.cant-edit .hpc-reset,.cant-edit label:has(.hpc-asg[data-type=ticket]){display:none!important}
.cant-mail .hpc-mail,.cant-mail #hpc-mail-all,.cant-mail strong:has(+.hpc-mail){display:none!important}
.cant-delete .button-link-delete{display:none!important}

@media (max-width:960px){.pb-start{grid-template-columns:1fr}}
@media (max-width:782px){
  .pb-main{padding:8px 10px 30px}
  .hpcb-top{padding:12px 14px;gap:10px;margin:0 0 16px}
  .hpcb-brand img{width:40px;height:40px}
  .hpcb-nav{order:3;width:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  .hpcb-nav::-webkit-scrollbar{display:none}
  .hpcb-nav a{white-space:nowrap}
  .hpcb-user .nm{display:none}
  .form-table th,.form-table td{display:block;width:auto}
  .pb-quick{grid-template-columns:1fr}
  .pb-users td.acts{grid-column:1/-1}
}

/* Feinschliff */
@media (min-width:783px){
  .hpcb-top{flex-wrap:nowrap}
  .hpcb-nav{flex:1 1 auto;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .hpcb-nav::-webkit-scrollbar{display:none}
  .hpcb-nav a{white-space:nowrap;padding:9px 12px}
}
@media (max-width:1180px) and (min-width:783px){.hpcb-user .nm{display:none}.hpcb-brand small{display:none}}
.hpc-pg .pb-users td:first-child,.hpc-pg .pb-audit td:first-child,.hpc-pg .pb-roles td:first-child{width:auto;text-align:left}
.hpc-pg .pb-users td.acts{justify-content:flex-end}
.hpc-pg .pb-audit td{height:auto;vertical-align:top}
.hpc-pg table.pb-roles td{text-align:center}.hpc-pg table.pb-roles td:first-child{text-align:left}
@media (max-width:782px){
  .hpc-pg .pb-users tr,.hpc-pg .pb-audit tr,.hpc-pg .pb-roles tr{grid-template-columns:1fr 1fr}
  .hpc-pg .pb-users td,.hpc-pg .pb-audit td,.hpc-pg .pb-roles td{grid-column:auto!important}
  .hpc-pg .pb-users td::before,.hpc-pg .pb-audit td::before,.hpc-pg .pb-roles td::before{content:none!important}
  .hpc-pg .pb-users td.nm,.hpc-pg .pb-users td.acts,.hpc-pg .pb-audit td:last-child{grid-column:1/-1!important}
  .hpc-pg table.pb-roles{display:table!important;font-size:12px}.hpc-pg .pb-roles thead{display:table-header-group!important}
  .hpc-pg .pb-roles tbody{display:table-row-group!important}.hpc-pg .pb-roles tr{display:table-row!important}.hpc-pg .pb-roles td,.hpc-pg .pb-roles th{display:table-cell!important;padding:6px 4px!important}
  .hpc-pg .pb-roles th{font-size:10px;white-space:normal}
}
.hpcb-brand b{white-space:nowrap}
@media (max-width:1440px) and (min-width:783px){
  .hpcb-top{gap:14px;padding:10px 16px}
  .hpcb-brand small,.hpcb-user .nm{display:none}
  .hpcb-brand b{font-size:17px}.hpcb-brand img{width:38px;height:38px}
  .hpcb-nav a{padding:8px 10px;font-size:13.5px}
}
.hpc-pg table.pb-roles td:first-child{width:34%}
.cant-transfer .hpc-t tr.main-row>td:nth-child(6),.cant-transfer .hpc-t tr.main-row>td:nth-child(7),.cant-transfer .hpc-t thead th:nth-child(6),.cant-transfer .hpc-t thead th:nth-child(7){display:none!important}

/* Passkeys */
.pb-or{display:flex;align-items:center;gap:10px;margin:16px 0 12px;color:#5f7a70;font-size:13px}
.pb-or:before,.pb-or:after{content:"";flex:1;border-top:1px solid #dce5e0}
.pb-pk-msg{margin:12px 0 0;padding:9px 12px;border-radius:6px;font-size:13px}
.pb-pk-msg.err{background:#fcf0f1;color:#b32d2e}
.pb-pk-msg.ok{background:#edfaef;color:#1e7b34}
.pb-pk-list{margin-top:6px}
.pb-box #pb-pk-login,.pb-box #pb-pk-login:hover{background:#fff;border:1.5px solid #128171;color:#0b3a31}
.pb-box #pb-pk-login:hover{background:#f4f8f6}
.pb-box .pb-pk-msg{margin:0}
.pb-pk-list td b{display:inline;white-space:nowrap}

/* Mobil: Protokoll und Passkey-Liste als saubere Karten */
@media (max-width:782px){
  .hpc-pg table.pb-audit tr,.hpc-pg table.pb-pk-list tr{grid-template-columns:minmax(0,1fr) auto!important;gap:4px 12px!important;align-items:start!important}
  .hpc-pg table.pb-audit td,.hpc-pg table.pb-pk-list td{min-width:0;align-self:start!important;overflow-wrap:anywhere}
  .hpc-pg table.pb-audit td:nth-child(1){grid-column:2!important;grid-row:1;text-align:right!important;font-size:12px;color:#5f7a70;white-space:nowrap}
  .hpc-pg table.pb-audit td:nth-child(2){grid-column:1!important;grid-row:1}
  .hpc-pg table.pb-audit td:nth-child(2) small{display:block;font-size:12px;color:#5f7a70}
  .hpc-pg table.pb-audit td:nth-child(3),.hpc-pg table.pb-audit td:nth-child(4){grid-column:1/-1!important}
  .hpc-pg table.pb-audit td:nth-child(3) code{white-space:normal;display:inline-block}
  .hpc-pg table.pb-audit td:nth-child(4){font-size:13px;color:#3c4f48}
  .hpc-pg table.pb-audit td:empty{display:none}
  .hpc-pg table.pb-pk-list td{grid-column:1!important;font-size:13px;color:#3c4f48}
  .hpc-pg table.pb-pk-list td:nth-child(1){grid-row:1;font-size:15px;color:inherit}
  .hpc-pg table.pb-pk-list td:nth-child(2){grid-row:2}
  .hpc-pg table.pb-pk-list td:nth-child(3){grid-row:3}
  .hpc-pg table.pb-pk-list td.acts{grid-column:2!important;grid-row:1/4;align-self:center!important}
  .hpc-pg table.pb-pk-list td::before{display:inline!important;margin:0 4px 0 0!important;font-size:13px!important}
  .hpc-pg table.pb-pk-list td:nth-child(1)::before,.hpc-pg table.pb-pk-list td.acts::before{content:none!important}
  .hpc-pg table.pb-pk-list td:nth-child(2)::before{content:"Angelegt:"!important}
  .hpc-pg table.pb-pk-list td:nth-child(3)::before{content:"Zuletzt benutzt:"!important}
  .hpc-pg table.pb-pk-list td::before,.hpc-pg table.pb-users td::before{color:#5f7a70!important}
  .hpc-pg table.pb-users tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px 12px!important;align-items:start!important}
  .hpc-pg table.pb-users td{min-width:0;align-self:start!important;font-size:14px}
  .hpc-pg table.pb-users td.nm{grid-column:1/-1!important;grid-row:1}
  .hpc-pg table.pb-users td:nth-child(2){grid-column:1!important;grid-row:2}
  .hpc-pg table.pb-users td:nth-child(3){grid-column:2!important;grid-row:2}
  .hpc-pg table.pb-users td:nth-child(4){grid-column:1!important;grid-row:3}
  .hpc-pg table.pb-users td:nth-child(5){grid-column:2!important;grid-row:3}
  .hpc-pg table.pb-users td.acts{grid-column:1/-1!important;grid-row:4;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start!important}
  .hpc-pg table.pb-users td:nth-child(4)::before,.hpc-pg table.pb-users td:nth-child(5)::before{display:block!important;font-size:12px!important;margin:0 0 2px!important}
  .hpc-pg table.pb-users td:nth-child(4)::before{content:"2FA / Passkey"!important}
  .hpc-pg table.pb-users td:nth-child(5)::before{content:"Letzter Login"!important}
}

/* Symbole */
.pb-ico{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;box-sizing:border-box}
.pb-ico svg{width:100%;height:100%;display:block}
.pb-ico-h1{width:40px;height:40px;padding:8px;border-radius:11px;background:#e3f3ee;color:#128171;margin-right:12px;vertical-align:middle}
.hpc-pg h1:has(.pb-ico-h1),.wrap h1:has(.pb-ico-h1){display:flex;align-items:center}
.pb-ico-h2{width:20px;height:20px;color:#128171;margin-right:8px;vertical-align:-4px}
.hpc-pg .card>h2 .pb-ico-h2{margin-right:0}
.hpcb-nav a{display:inline-flex;align-items:center}
.pb-ico-nav{width:16px;height:16px;margin-right:7px;opacity:.85}
.hpcb-nav a.on .pb-ico-nav{opacity:1}
.pb-ico-tile{width:36px;height:36px;padding:8px;border-radius:10px;background:#fff;color:#128171;border:1px solid #dce5e0;margin-bottom:6px}
.pb-quick a:hover .pb-ico-tile{background:#128171;color:#fff;border-color:#128171}
.hpcb-user a.out{display:inline-flex;align-items:center;gap:7px}
.pb-ico-out{width:16px;height:16px}
.pb-ico-kpi{width:42px;height:42px;padding:10px;border-radius:12px;background:#e3f3ee;color:#128171}
@media (max-width:782px){
  .pb-ico-h1{width:34px;height:34px;padding:7px;margin-right:10px}
  .hpcb-user a.out span:not(.pb-ico){display:none}
  .hpcb-user a.out{padding-left:12px;padding-right:12px}
}

/* Historie */
.pb-hf input[type=search]{flex:1 1 280px}
.pb-hk{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}
.pb-hk>div{background:#fff;border:1px solid #dce5e0;border-radius:12px;padding:14px 16px;display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center}
.pb-hk .pb-ico-kpi{grid-row:1/3}
.pb-hk span{font-size:12px;color:#5f7a70;align-self:end}
.pb-hk b{font-size:22px;font-weight:700;color:#1f2328;line-height:1.2;align-self:start}
.pb-hl{display:flex;flex-direction:column;margin-top:4px}
.pb-hg{display:flex;justify-content:space-between;align-items:baseline;padding:14px 4px 6px;border-bottom:2px solid #e6eeea;color:#0b3a31}
.pb-hg b{font-size:15px}.pb-hg span{font-size:12px;color:#5f7a70}
.pb-hr{display:grid;grid-template-columns:minmax(200px,2fr) minmax(230px,1.5fr) minmax(160px,1.1fr) auto;gap:10px 18px;align-items:center;padding:12px 4px;border-bottom:1px solid #e6eeea}
.pb-hr:hover{background:#f9fbfa}
.pb-hr-nm a{font-weight:600;color:#0b3a31;text-decoration:none;font-size:15px}
.pb-hr-nm a:hover{color:#128171;text-decoration:underline}
.pb-hr-nm small{display:block;color:#5f7a70;font-size:12px;margin-top:2px}
.pb-hs{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.pb-hs span{background:#f4f8f6;border:1px solid #e6eeea;border-radius:999px;padding:3px 10px;font-size:12.5px;color:#3c4f48;white-space:nowrap}
.pb-hs span.lx{background:none;border:0;padding:0}
.pb-hs b{color:#1f2328}
.pb-hr-lx{font-size:13px}.pb-hr-lx small{display:block;margin-top:2px}
.pb-hr-act{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.pb-pager{margin-top:14px;display:flex;gap:6px;flex-wrap:wrap}
@media (max-width:1100px){
  .pb-hr{grid-template-columns:minmax(0,1fr) auto}
  .pb-hr-nm,.pb-hs,.pb-hr-lx{grid-column:1}
  .pb-hr-act{grid-column:2;grid-row:1/4;flex-direction:column;align-items:stretch}
}
@media (max-width:782px){
  .pb-hk{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .pb-hk>div{padding:12px}.pb-hk b{font-size:19px}
  .pb-ico-kpi{width:36px;height:36px;padding:8px}
  .pb-hr{grid-template-columns:1fr;padding:14px 2px}
  .pb-hr-act{grid-column:1;grid-row:auto;flex-direction:row;justify-content:flex-start}
  .pb-hr-act .button{flex:1 1 auto;text-align:center}
  .pb-hf select{flex:1 1 100%}
}
@media (max-width:1440px) and (min-width:783px){
  .hpcb-user a.out span:not(.pb-ico){display:none}
  .hpcb-user a.out{padding-left:11px;padding-right:11px}
  .pb-ico-nav{margin-right:5px}
}

/* ===== Kopfleiste im HPC-Stil: Technik-Hintergrund und Puls ===== */
.hpcb-top{position:relative;overflow:hidden;isolation:isolate;border-radius:16px;padding:14px 20px 18px;border:1px solid rgba(143,214,196,.14);
  background:
    radial-gradient(900px 220px at 88% -60%,rgba(61,165,146,.40),transparent 62%),
    radial-gradient(520px 180px at 8% 140%,rgba(230,60,36,.22),transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='110' viewBox='0 0 220 110'><g fill='none' stroke='rgba(143,214,196,0.13)' stroke-width='1'><path d='M0 20h40l12 12h50l10-10h40'/><path d='M0 70h24l14-14h46l18 18h44l12-12h62'/><path d='M120 0v18l10 10v40l-12 12v30'/><path d='M180 110V86l-14-14V40l10-10V0'/><path d='M60 110V92l12-12h30'/></g><g fill='rgba(143,214,196,0.26)'><circle cx='152' cy='22' r='2.2'/><circle cx='102' cy='32' r='2'/><circle cx='84' cy='56' r='2'/><circle cx='176' cy='30' r='2.2'/><circle cx='102' cy='80' r='2'/><circle cx='118' cy='80' r='2'/></g></svg>"),
    linear-gradient(135deg,#06261f 0%,#0b3a31 48%,#0f4a3f 100%);
  box-shadow:0 10px 30px -18px rgba(11,58,49,.7);transition:padding .2s ease,box-shadow .2s ease}
.hpcb-top>*{position:relative;z-index:1}
.hpcb-pulse{position:absolute!important;z-index:0!important;left:0;right:0;bottom:2px;width:100%;height:22px;pointer-events:none}
.hpcb-pulse path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.hpcb-pulse .b{stroke:rgba(230,60,36,.45);stroke-width:1.6}
.hpcb-pulse .g{stroke:#ff5a3c;stroke-width:2.4;stroke-dasharray:70 930;stroke-dashoffset:1000;filter:drop-shadow(0 0 4px rgba(255,90,60,.9));animation:hpcPulse 4.2s linear infinite}
@keyframes hpcPulse{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.hpcb-pulse .g{animation:none;stroke-dasharray:none;opacity:.6}}
.hpcb-brand img{filter:drop-shadow(0 2px 8px rgba(0,0,0,.35))}
.hpcb-brand b span{color:#ff6a4d}
.hpcb-theme{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;border:1px solid rgba(143,214,196,.35);background:rgba(255,255,255,.04);color:#cfe5de;cursor:pointer;padding:0}
.hpcb-theme:hover{background:rgba(255,255,255,.1);color:#fff}
.hpcb-theme .pb-ico{width:18px;height:18px}
.hpcb-theme .i-sun{display:none}
[data-theme=dark] .hpcb-theme .i-sun{display:inline-flex}[data-theme=dark] .hpcb-theme .i-moon{display:none}
.hpcb-user .av{box-shadow:0 0 0 2px rgba(143,214,196,.35)}
/* fixierte Kopfleiste */
body.pb-sticky .hpcb-top{position:sticky;top:8px;z-index:60}
body.pb-sticky .hpcb-top.stuck{padding-top:8px;padding-bottom:12px;box-shadow:0 14px 34px -14px rgba(0,0,0,.55)}
body.pb-sticky .hpcb-top.stuck .hpcb-brand img{width:36px;height:36px}
@media (max-width:782px){
  body.pb-sticky .hpcb-top{top:0;border-radius:0 0 16px 16px;margin-left:-10px;margin-right:-10px}
  body.pb-sticky .hpcb-top.stuck .hpcb-brand small,body.pb-sticky .hpcb-top.stuck .hpcb-brand b{display:none}
  .hpcb-theme{width:34px;height:34px}
}

/* ===== Fußzeile ===== */
.pb-foot{position:relative;margin:24px auto 0;max-width:1440px;padding:0 20px 28px;color:#5f7a70;font-size:13px}
.pb-foot-pulse{display:block;width:100%;height:22px;margin-bottom:14px}
.pb-foot-pulse path{fill:none;stroke:#e63c24;stroke-width:1.5;opacity:.5}
.pb-foot-in{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:18px;align-items:center}
.pb-foot-brand{display:flex;align-items:center;gap:12px}
.pb-foot-brand img{width:36px;height:36px}
.pb-foot-brand b{display:block;color:#0b3a31;font-size:15px}.pb-foot-brand b span{color:#e63c24}
.pb-foot-brand small{display:block;font-size:12px}
.pb-foot-nav{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center}
.pb-foot-nav a{color:#3c5a51;text-decoration:none}.pb-foot-nav a:hover{color:#128171;text-decoration:underline}
.pb-foot-copy{text-align:right;line-height:1.5}
.pb-foot-copy span{font-style:italic;color:#e63c24;font-weight:600}
@media (max-width:782px){.pb-foot-in{grid-template-columns:1fr;text-align:center}.pb-foot-brand{justify-content:center}.pb-foot-copy{text-align:center}}

/* ===== Nach oben ===== */
.pb-top{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:70;width:46px;height:46px;border-radius:14px;border:0;cursor:pointer;
  background:linear-gradient(135deg,#128171,#0b3a31);color:#fff;box-shadow:0 10px 24px -8px rgba(11,58,49,.7);display:flex;align-items:center;justify-content:center;transition:transform .15s ease}
.pb-top:hover{transform:translateY(-2px)}
.pb-top[hidden]{display:none}
.pb-top .pb-ico{width:20px;height:20px}
.hpc-pg .save~*{}
@media (max-width:782px){.pb-top{right:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px))}}

/* ===== Auswahl-Schalter (Darstellung) ===== */
.pb-seg{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:#f4f8f6;border:1px solid #dce5e0;flex-wrap:wrap}
.pb-seg label{cursor:pointer}
.pb-seg input{position:absolute;opacity:0;pointer-events:none}
.pb-seg span{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:9px;font-weight:600;color:#3c5a51}
.pb-seg .pb-ico{width:16px;height:16px}
.pb-seg input:checked+span{background:#128171;color:#fff;box-shadow:0 4px 12px -6px rgba(18,129,113,.8)}
.pb-seg input:focus-visible+span{outline:2px solid #128171;outline-offset:2px}

/* ===== Dunkles Farbschema ===== */
html[data-theme=dark]{color-scheme:dark}
[data-theme=dark] body{background:#0b1311;color:#d8e4df}
[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3,[data-theme=dark] h4{color:#eef5f2}
[data-theme=dark] a{color:#5fd3bb}[data-theme=dark] a:hover{color:#9be8d6}
[data-theme=dark] .hpc-pg{--ink:#e3ece8;--mut:#93a8a0;--line:#1f2c28;--bd:#263530;--sel:#18241f;color:var(--ink)}
[data-theme=dark] .card,[data-theme=dark] .hpc-pg .card,[data-theme=dark] .notice,[data-theme=dark] table.widefat,[data-theme=dark] .pb-hk>div,
[data-theme=dark] .hpc-pg .pill,[data-theme=dark] .page-numbers,[data-theme=dark] .pb-box{background:#121c19;border-color:#263530;color:#d8e4df}
[data-theme=dark] .page-numbers.current{background:#128171;color:#fff}
[data-theme=dark] input:not([type=checkbox]):not([type=radio]),[data-theme=dark] select,[data-theme=dark] textarea,
[data-theme=dark] .hpc-pg input:not([type=checkbox]):not([type=radio]),[data-theme=dark] .hpc-pg select,[data-theme=dark] .hpc-pg textarea,[data-theme=dark] .hpc-pg .tb input[type=search]{background:#0e1715;color:#e3ece8;border-color:#34463f}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#6f857d}
[data-theme=dark] .button,[data-theme=dark] .hpc-pg .button{background:#121c19;color:#5fd3bb;border-color:#2f6f62}
[data-theme=dark] .button:hover,[data-theme=dark] .hpc-pg .button:hover{background:#18241f;color:#9be8d6;border-color:#5fd3bb}
[data-theme=dark] .button-primary,[data-theme=dark] .hpc-pg .button-primary{background:#128171;color:#fff;border-color:#128171}
[data-theme=dark] .button-primary:hover,[data-theme=dark] .hpc-pg .button-primary:hover{background:#16967f;color:#fff;border-color:#16967f}
[data-theme=dark] .button-link-delete{color:#ff8a7a!important;border-color:#a8433a!important}
[data-theme=dark] .pb-wide{background:#e63c24;border-color:#e63c24;color:#fff}
[data-theme=dark] code,[data-theme=dark] .hpc-pg code{background:#1b2925;color:#cfe5de}
[data-theme=dark] .hpc-pg .hpc-st,[data-theme=dark] .hpc-pg table.hpc-st{border-color:#263530}
[data-theme=dark] .hpc-pg .hpc-st th,[data-theme=dark] .widefat thead th{background:#18241f;color:#93a8a0}
[data-theme=dark] .hpc-pg .hpc-st td,[data-theme=dark] .widefat td{border-color:#1f2c28}
[data-theme=dark] .hpc-pg .hpc-st tr{background:transparent}
[data-theme=dark] .widefat.striped tbody tr:nth-child(odd){background:#141f1c}
[data-theme=dark] .hpc-pg .hpc-st tr.on td,[data-theme=dark] .hpc-pg .hpc-st tr.on{background:#16261f}
[data-theme=dark] .hpc-pg .chip{background:#121c19;border-color:#34463f;color:#d8e4df}
[data-theme=dark] .hpc-pg .chip.on{background:#128171;border-color:#128171;color:#fff}
[data-theme=dark] .hpc-pg .fld>span,[data-theme=dark] .pb-box label{color:#b9cdc6}
[data-theme=dark] .description,[data-theme=dark] .hpc-pg .card>.sub,[data-theme=dark] .pb-sub{color:#93a8a0}
[data-theme=dark] .pb-quick a{background:#16211e;border-color:#263530;color:#e3ece8}
[data-theme=dark] .pb-quick a span{color:#93a8a0}
[data-theme=dark] .pb-ico-tile{background:#121c19;border-color:#2b3b35;color:#5fd3bb}
[data-theme=dark] .pb-ico-h1,[data-theme=dark] .pb-ico-kpi{background:#173029;color:#5fd3bb}
[data-theme=dark] .pb-ico-h2{color:#5fd3bb}
[data-theme=dark] .pb-hk b,[data-theme=dark] .pb-hs b{color:#eef5f2}
[data-theme=dark] .pb-hs span{background:#18241f;border-color:#263530;color:#c3d4ce}
[data-theme=dark] .pb-hg{color:#cfe5de;border-color:#263530}
[data-theme=dark] .pb-hr{border-color:#1f2c28}[data-theme=dark] .pb-hr:hover{background:#141f1c}
[data-theme=dark] .pb-hr-nm a{color:#8fe6d3}
[data-theme=dark] .pb-seg{background:#0e1715;border-color:#263530}[data-theme=dark] .pb-seg span{color:#b9cdc6}
[data-theme=dark] .pb-or{color:#93a8a0}[data-theme=dark] .pb-or:before,[data-theme=dark] .pb-or:after{border-color:#263530}
[data-theme=dark] .pb-pk-msg.err{background:#3a1715;color:#ff9c8f}[data-theme=dark] .pb-pk-msg.ok{background:#12301f;color:#7fe0a0}
[data-theme=dark] .pb-box #pb-pk-login,[data-theme=dark] .pb-box #pb-pk-login:hover{background:#121c19;color:#cfe5de;border-color:#2f6f62}
[data-theme=dark] .pb-foot{color:#8aa098}[data-theme=dark] .pb-foot-brand b{color:#e3ece8}[data-theme=dark] .pb-foot-nav a{color:#a9c0b8}
[data-theme=dark] .notice-success{border-left-color:#3da592}[data-theme=dark] .notice-error{border-left-color:#e63c24}
[data-theme=dark] .hpc-pg .save{background:#0f1d19;border-color:#263530}
[data-theme=dark] .hpcb-top{border-color:rgba(143,214,196,.2);box-shadow:0 10px 30px -18px rgba(0,0,0,.9)}
/* eingebettete Inline-Farben aus älteren Seitenteilen */
[data-theme=dark] [style*="background:#fff"],[data-theme=dark] [style*="background: #fff"],[data-theme=dark] [style*="background:#ffffff"],[data-theme=dark] [style*="background-color:#fff"]{background:#121c19!important}
[data-theme=dark] [style*="background:#f4f8f6"],[data-theme=dark] [style*="background:#f6f7f7"],[data-theme=dark] [style*="background:#f0f0f1"],[data-theme=dark] [style*="background:#f6fbf9"],[data-theme=dark] [style*="background:#fafcfb"]{background:#18241f!important}
[data-theme=dark] [style*="color:#1f2328"],[data-theme=dark] [style*="color:#1d2327"],[data-theme=dark] [style*="color:#222"],[data-theme=dark] [style*="color:#333"],[data-theme=dark] [style*="color:#0b3a31"]{color:#e3ece8!important}
[data-theme=dark] [style*="color:#555"],[data-theme=dark] [style*="color:#777"],[data-theme=dark] [style*="color:#646970"],[data-theme=dark] [style*="color:#5f7a70"]{color:#93a8a0!important}
[data-theme=dark] [style*="border:1px solid #dce5e0"],[data-theme=dark] [style*="border-top:1px solid #e6eeea"]{border-color:#263530!important}
[data-theme=dark] .hpcb-nav a{color:#cfe5de}[data-theme=dark] .hpcb-nav a:hover,[data-theme=dark] .hpcb-nav a.on{color:#fff}
[data-theme=dark] .hpcb-brand,[data-theme=dark] .hpcb-brand:hover{color:#fff}[data-theme=dark] .hpcb-user a{color:#cfe5de}
[data-theme=dark] .hpcb-brand b span{color:#ff6a4d}
[data-theme=dark] .hpcdw-t div{background:#18241f;border-color:#263530}
[data-theme=dark] .hpcdw-t span{color:#93a8a0}[data-theme=dark] .hpcdw-t b{color:#eef5f2}
[data-theme=dark] .hpcdw-l li{border-color:#263530}
[data-theme=dark] #hpc_pb_dw h4,[data-theme=dark] #hpc_pb_dw h3{border-color:#263530!important}
.pb-foot-pulse,.pb-foot-in{max-width:1280px}
/* Abrechnung dunkel */
[data-theme=dark] .hpc-bill{--ink:#e3ece8;--mut:#93a8a0;--line:#1f2c28;--sel:#18241f;--open:#16261f;color:#d8e4df}
[data-theme=dark] .hpc-bill h1,[data-theme=dark] .hpc-bill strong,[data-theme=dark] .hpc-bill b{color:#eef5f2}
[data-theme=dark] .hpc-bill .hpc-bar{background:#0f2a24;border:1px solid #1f3d35}
[data-theme=dark] .hpc-bill .hpc-chip{background:#121c19;border-color:#34463f;color:#d8e4df}
[data-theme=dark] .hpc-bill .hpc-chip.on,[data-theme=dark] .hpc-bill .hpc-open.on{background:#128171;border-color:#128171;color:#fff}
[data-theme=dark] .hpc-bill table.hpc-t{background:#121c19;border-color:#263530}
[data-theme=dark] .hpc-bill .hpc-t th{background:#18241f;color:#93a8a0;border-color:#263530}
[data-theme=dark] .hpc-bill .hpc-t td{border-color:#1f2c28;color:#d8e4df}
[data-theme=dark] .hpc-bill .hpc-t tr.main-row{background:#121c19;border-color:#263530}
[data-theme=dark] .hpc-bill .hpc-t a{color:#7fdcc6}
[data-theme=dark] .hpc-bill .hpc-kpis .k{background:#121c19;border-top-color:#263530;border-right-color:#263530;border-bottom-color:#263530}
[data-theme=dark] .hpc-bill .b-m{background:#1d3a32;color:#bfe3d8}[data-theme=dark] .hpc-bill .b-q{background:#2e2340;color:#d6c2f0}
[data-theme=dark] .hpc-bill .b-nd{background:#1c2623;color:#93a8a0}[data-theme=dark] .hpc-bill .b-pend{background:#3a2e12;color:#f2c76b}
[data-theme=dark] .hpc-bill .hpc-detail pre{background:#0e1715;border-color:#263530;color:#d8e4df}
[data-theme=dark] .hpc-bill .hpc-detail .button{background:#121c19}
[data-theme=dark] .hpc-bill .hpc-month .button{color:#d8e4df;border-color:#34463f;background:#121c19}
[data-theme=dark] .hpc-bill .hpc-tabs{border-bottom-color:#263530}
[data-theme=dark] .hpc-bill .hpc-cnt{color:#7fe0a0}
[data-theme=dark] .hpc-modal .box{background:#121c19;color:#d8e4df}
[data-theme=dark] .hpc-modal .track{background:#263530}[data-theme=dark] .hpc-modal .it,[data-theme=dark] .hpc-modal .dl{border-color:#263530}
[data-theme=dark] .hpc-modal .meta,[data-theme=dark] .hpc-modal .it div span{color:#93a8a0}
[data-theme=dark] .hpc-pdf .menu{background:#121c19;border-color:#34463f}
[data-theme=dark] .hpc-pdf .menu a{color:#d8e4df}[data-theme=dark] .hpc-pdf .menu a:hover{background:#18241f}
/* Auswertung dunkel */
[data-theme=dark] .hpc-stats .k4 div,[data-theme=dark] .hpc-stats .card{background:#121c19;border-color:#263530}
[data-theme=dark] .hpc-stats .k4 div{border-left-color:var(--c)}
[data-theme=dark] .hpc-stats .k4 span,[data-theme=dark] .hpc-stats .nums span,[data-theme=dark] .hpc-stats .lbl{color:#93a8a0}
[data-theme=dark] .hpc-stats .k4 b,[data-theme=dark] .hpc-stats .nums b,[data-theme=dark] .hpc-stats h3{color:#eef5f2}
[data-theme=dark] .hpc-stats .nums div{background:#18241f}
[data-theme=dark] .hpc-stats .bars i.z{background:#22312c}
/* Hilfe dunkel */
[data-theme=dark] .hpc-help .toc a{background:#121c19;border-color:#34463f;color:#d8e4df}
[data-theme=dark] .hpc-help .step p,[data-theme=dark] .hpc-help details.q .a{color:#c3d4ce}
[data-theme=dark] .hpc-help details.q{background:#121c19;border-color:#263530}
[data-theme=dark] .hpc-help details.q summary{color:#e3ece8}
[data-theme=dark] .hpc-help .shot{background:#18241f;border-color:#263530}
[data-theme=dark] .hpc-help .shot figcaption{background:#121c19;color:#93a8a0;border-color:#263530}
[data-theme=dark] .hpc-help .step h3{color:#eef5f2}
.pb-box h1 span{color:#e63c24}
@media (max-width:782px){.pb-top{bottom:calc(16px + env(safe-area-inset-bottom,0px))}}
body:has(.hpc-bar) .pb-top,body:has(.hpc-pg .save) .pb-top{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
@media (max-width:782px){body:has(.hpc-bar) .pb-top,body:has(.hpc-pg .save) .pb-top{bottom:calc(150px + env(safe-area-inset-bottom,0px))}}
/* Mobil mit fixierter Kopfleiste: bündig am oberen Rand, keine Lücke */
@media (max-width:782px){
  body.pb-sticky .pb-main{padding-top:0}
  body.pb-sticky .hpcb-top{border-top:0;margin-top:0}
}
/* Navigation auf mittleren Bildschirmen: Symbole, Beschriftung nur beim aktiven Punkt */
@media (max-width:1360px) and (min-width:783px){.hpcb-brand b,.hpcb-brand small{display:none}}
@media (max-width:1180px) and (min-width:783px){
  .hpcb-nav a:not(.on) .pb-nl{display:none}
  .hpcb-nav a:not(.on) .pb-ico-nav{margin-right:0}
  .hpcb-nav a{padding:9px 10px}
}
/* Kopfleiste bündig oben – keine Lücke über dem Header */
body.pb-sticky .hpcb-top{top:0}
body.pb-sticky .hpcb-top.stuck{border-top-left-radius:0;border-top-right-radius:0;border-top-color:transparent}
@media (max-width:782px){
  .pb-main{padding-top:0}
  .hpcb-top{margin:0 -10px 16px;border-radius:0 0 18px 18px;border-top:0;padding-top:calc(12px + env(safe-area-inset-top,0px))}
}
/* Kopfleiste Desktop: zeigt so viel wie möglich und wird stufenweise kompakter, sobald der Platz nicht reicht (gesteuert von ui.js) */
@media (min-width:783px){
  .hpcb-top.js-fit{column-gap:18px;flex-wrap:nowrap}
  .hpcb-top.js-fit .hpcb-brand{flex:0 0 auto}
  .hpcb-top.js-fit .hpcb-brand b,.hpcb-top.js-fit .hpcb-brand small{display:block}
  .hpcb-top.js-fit .hpcb-nav{gap:2px}
  .hpcb-top.js-fit .hpcb-nav a{padding:9px 12px}
  .hpcb-top.js-fit .hpcb-nav a .pb-nl{display:inline}
  .hpcb-top.js-fit .hpcb-nav a .pb-ico-nav{margin-right:6px}
  .hpcb-top.js-fit .hpcb-user{gap:10px;flex:0 0 auto}
  .hpcb-top.js-fit .hpcb-user .nm{display:flex}
  .hpcb-top.js-fit .hpcb-user a.out{padding:7px 12px}
  .hpcb-top.js-fit .hpcb-user a.out span:not(.pb-ico){display:inline}
  .hpcb-top.js-fit.fit-1 .hpcb-user .nm{display:none}
  .hpcb-top.js-fit.fit-2 .hpcb-user a.out span:not(.pb-ico){display:none}
  .hpcb-top.js-fit.fit-2 .hpcb-user a.out{padding:7px 11px}
  .hpcb-top.js-fit.fit-3{column-gap:12px}
  .hpcb-top.js-fit.fit-3 .hpcb-nav a{padding:8px 9px}
  .hpcb-top.js-fit.fit-4 .hpcb-brand b,.hpcb-top.js-fit.fit-4 .hpcb-brand small{display:none}
  .hpcb-top.js-fit.fit-5 .hpcb-nav a:not(.on) .pb-nl{display:none}
  .hpcb-top.js-fit.fit-5 .hpcb-nav a:not(.on) .pb-ico-nav{margin-right:0}
}
/* Breitere Arbeitsfläche auf großen Bildschirmen – Header, Inhalt und Fußzeile bündig */
.pb-main{max-width:1600px}
.pb-foot{max-width:1600px}
.pb-foot-pulse,.pb-foot-in{max-width:none}
.pb-main .hpc-pg,.pb-main .wrap{max-width:none}
/* Zusatztickets in der Abrechnung */
.hpc-xt-intro{margin:0 0 10px;font-size:12px;color:#50575e}
.hpc-xt-list{display:flex;flex-direction:column;gap:8px}
.hpc-xt .it{display:grid;grid-template-columns:minmax(0,1.4fr) 110px minmax(0,1.6fr) auto;gap:10px;align-items:end;padding:10px 12px;border:1px solid #dce5e0;border-radius:10px;background:#fff}
.hpc-xt .it .t{align-self:center;font-size:13.5px;line-height:1.35;overflow-wrap:anywhere}
.hpc-xt .it .t a{color:#128171;text-decoration:none}
.hpc-xt .it label{display:flex;flex-direction:column;gap:3px;font-size:11.5px;color:#5f7a70}
.hpc-xt .it input{width:100%;min-height:34px}
.hpc-xt .it.done{grid-template-columns:1fr;background:#f4f8f6;gap:2px}
.hpc-xt .it.done .meta{font-size:12px;color:#5f7a70}
.hpc-xt-empty{margin:0;font-size:13px;color:#5f7a70}
.hpc-xt-add{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}
.hpc-xt-manual{display:flex;gap:6px;flex:1 1 260px}.hpc-xt-manual input{flex:1;min-height:34px}
.hpc-xt-cands{margin-top:10px;border:1px dashed #b9cfc7;border-radius:10px;padding:8px 12px}
.hpc-xt-cands p{margin:4px 0 8px;font-size:12.5px;color:#50575e}
.hpc-xt-cands .c{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-top:1px solid #e6eeea}
.hpc-xt-cands .c:first-of-type{border-top:0}
.hpc-xt-cands .c span{font-size:13px;overflow-wrap:anywhere}.hpc-xt-cands .c small{display:block;color:#5f7a70;font-size:11.5px}
.hpc-xt-sep{margin-top:12px;padding:10px 12px;border-radius:10px;background:#fff8e6;border:1px solid #f0d58a}
.hpc-xt-sep p{margin:0 0 8px;font-size:12.5px;color:#6b4f00}
.hpc-xt-msg{display:block;margin-top:8px;font-size:12.5px;color:#5f7a70}
.hpc-xt-msg.err{color:#b32d2e}.hpc-xt-msg.ok{color:#128171}.hpc-xt-msg.warn{color:#996800}
.hpc-xt-badge{color:#128171;font-weight:600}
@media (max-width:782px){
  .hpc-xt .it{grid-template-columns:1fr 1fr}
  .hpc-xt .it .t,.hpc-xt .it label.d{grid-column:1/-1}
  .hpc-xt .it input{min-height:42px;font-size:16px}
  .hpc-xt-manual input{min-height:42px;font-size:16px}
  .hpc-xt-cands .c{flex-direction:column;align-items:stretch}
}
[data-theme=dark] .hpc-xt-intro,[data-theme=dark] .hpc-xt-cands p{color:#93a8a0}
[data-theme=dark] .hpc-xt .it{background:#121c19;border-color:#263530}
[data-theme=dark] .hpc-xt .it.done{background:#16211e}
[data-theme=dark] .hpc-xt .it label,[data-theme=dark] .hpc-xt .it.done .meta,[data-theme=dark] .hpc-xt-cands .c small,[data-theme=dark] .hpc-xt-empty{color:#93a8a0}
[data-theme=dark] .hpc-xt .it .t a,[data-theme=dark] .hpc-xt-badge{color:#5fd3bb}
[data-theme=dark] .hpc-xt-cands{border-color:#34463f}[data-theme=dark] .hpc-xt-cands .c{border-color:#1f2c28}
[data-theme=dark] .hpc-xt-sep{background:#2a2410;border-color:#5a4a1a}[data-theme=dark] .hpc-xt-sep p{color:#f2c76b}
/* Benutzermenü (Avatar oben rechts) */
.hpcb-top{overflow:visible;z-index:50}
.hpcb-menu{position:relative}
.hpcb-menu>summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;padding:3px 8px 3px 3px;border-radius:999px;border:1px solid transparent;color:#fff;font-size:13px;user-select:none}
.hpcb-menu>summary::-webkit-details-marker{display:none}
.hpcb-menu>summary:hover,.hpcb-menu[open]>summary{background:rgba(255,255,255,.08);border-color:rgba(143,214,196,.3)}
.hpcb-menu.on>summary .av{box-shadow:0 0 0 2px #ff6a4d}
.hpcb-menu>summary:focus-visible{outline:2px solid #8fd6c4;outline-offset:2px}
.hpcb-menu .chev{width:14px;height:14px;fill:none;stroke:#cfe5de;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}
.hpcb-menu[open] .chev{transform:rotate(180deg)}
.hpcb-drop{position:absolute;right:0;top:calc(100% + 10px);z-index:90;min-width:250px;max-width:calc(100vw - 24px);background:#fff;color:#1f2328;border:1px solid #dce5e0;border-radius:14px;box-shadow:0 18px 40px -12px rgba(11,58,49,.45);padding:6px;display:flex;flex-direction:column}
.hpcb-drop .who{padding:10px 12px 8px;border-bottom:1px solid #e6eeea;margin-bottom:4px}
.hpcb-drop .who b{display:block;font-size:14px;color:#0b3a31}.hpcb-drop .who small{display:block;font-size:12px;color:#5f7a70;overflow-wrap:anywhere}
.hpcb-user .hpcb-drop a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;color:#1f2328;font-size:14px;text-decoration:none}
.hpcb-user .hpcb-drop a .pb-ico{width:17px;height:17px;color:#128171}
.hpcb-user .hpcb-drop a:hover,.hpcb-user .hpcb-drop a:focus-visible{background:#f0f6f3;color:#0b3a31}
.hpcb-user .hpcb-drop a.on{background:#e3f3ee;font-weight:600;color:#0b3a31}
.hpcb-user .hpcb-drop a.out .pb-ico,.hpcb-user .hpcb-drop a.out{color:#b32d2e}
.hpcb-drop .sep{margin:6px 6px 2px;padding-top:8px;border-top:1px solid #e6eeea;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#5f7a70}
.hpcb-drop .sep:empty{padding-top:0;margin:4px 6px}
@media (max-width:782px){.hpcb-menu>summary .nm,.hpcb-menu>summary .chev{display:none}.hpcb-menu>summary{padding:2px}.hpcb-drop{right:-4px}}
[data-theme=dark] .hpcb-drop{background:#121c19;color:#d8e4df;border-color:#263530;box-shadow:0 18px 40px -12px rgba(0,0,0,.8)}
[data-theme=dark] .hpcb-drop .who{border-color:#263530}[data-theme=dark] .hpcb-drop .who b{color:#eef5f2}[data-theme=dark] .hpcb-drop .who small,[data-theme=dark] .hpcb-drop .sep{color:#93a8a0}
[data-theme=dark] .hpcb-drop .sep{border-color:#263530}
[data-theme=dark] .hpcb-user .hpcb-drop a{color:#d8e4df}[data-theme=dark] .hpcb-user .hpcb-drop a .pb-ico{color:#5fd3bb}
[data-theme=dark] .hpcb-user .hpcb-drop a:hover{background:#18241f;color:#fff}[data-theme=dark] .hpcb-user .hpcb-drop a.on{background:#173029;color:#fff}
[data-theme=dark] .hpcb-user .hpcb-drop a.out,[data-theme=dark] .hpcb-user .hpcb-drop a.out .pb-ico{color:#ff8a7a}
.hpcb-top .hpcb-user .hpcb-drop a.out{border:0;padding:9px 12px;margin-top:2px}
.hpcb-top .hpcb-user .hpcb-drop a.out span{display:inline!important}
.hpcb-top .hpcb-user .hpcb-drop a.out:hover{background:#fdeceb}
[data-theme=dark] .hpcb-top .hpcb-user .hpcb-drop a.out:hover{background:#3a1715}
.hpc-xt-cands .c i.st{font-style:normal;font-size:11px;font-weight:600;padding:1px 8px;border-radius:999px;background:#fff1d6;color:#7a4d00;margin-left:4px;white-space:nowrap}
.hpc-xt-cands .c i.st.done{background:#e3f3ee;color:#0b6b5c}
[data-theme=dark] .hpc-xt-cands .c i.st{background:#3a2e12;color:#f2c76b}[data-theme=dark] .hpc-xt-cands .c i.st.done{background:#173029;color:#7fdcc6}
.hpc-xt .it{grid-template-columns:minmax(0,1fr) 110px auto;align-items:end}
.hpc-xt .it label.d{grid-column:1/-1}
.hpc-xt .it .acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.hpc-xt .it textarea{width:100%;min-height:72px;font-size:13px;line-height:1.45;resize:vertical;font-family:inherit}
@media (max-width:782px){.hpc-xt .it{grid-template-columns:1fr 1fr}.hpc-xt .it .acts{grid-column:1/-1;justify-content:stretch}.hpc-xt .it .acts .button{flex:1}.hpc-xt .it textarea{font-size:16px}}
.hpc-bill .hpc-xt .it textarea.xt-txt{font-family:Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:13.5px}
.hpc-xt .it{grid-template-columns:minmax(0,1fr) minmax(170px,230px) 100px auto}
.hpc-xt .it select.xt-kind{width:100%;min-height:34px}
@media (max-width:782px){.hpc-xt .it{grid-template-columns:1fr 1fr}.hpc-xt .it label.k{grid-column:1/-1}}
.hpc-stats .card .pb-yr{align-self:flex-start;margin-top:4px}
/* Betrieb */
.pb-ops-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.pb-ops-list li{padding:8px 12px;border-radius:9px;font-size:13.5px;background:#f4f8f6;border-left:4px solid #3da592}
.pb-ops-list li.bad{background:#fdeceb;border-left-color:#e63c24;color:#8a2d13}
.pb-ops-alert ul{margin:4px 0 6px 18px}.pb-ops-alert p{margin:4px 0}
.pb-bak{margin-top:8px}
[data-theme=dark] .pb-ops-list li{background:#16211e}[data-theme=dark] .pb-ops-list li.bad{background:#3a1715;color:#ff9c8f}
.pb-bak td:first-child{white-space:nowrap}.pb-bak td.acts{text-align:right}
/* Benutzermenü liegt über der Menüleiste (auch auf dem Handy, wo die Leiste in die zweite Zeile rutscht) */
.hpcb-top>.hpcb-user{z-index:6}
.pb-ops-alert{margin:0 0 16px}
/* Datensicherungen auf dem Handy */
@media (max-width:782px){
  .hpc-pg table.pb-bak tr{grid-template-columns:minmax(0,1fr) auto!important;gap:4px 12px!important;align-items:center!important}
  .hpc-pg table.pb-bak td{grid-column:auto!important;min-width:0;align-self:center!important}
  .hpc-pg table.pb-bak td::before{content:none!important;display:none!important}
  .hpc-pg table.pb-bak td:nth-child(1){grid-column:1!important;grid-row:1;font-weight:600}
  .hpc-pg table.pb-bak td:nth-child(2){grid-column:2!important;grid-row:1;text-align:right!important;color:#5f7a70;font-size:13px}
  .hpc-pg table.pb-bak td.acts{grid-column:1/-1!important;grid-row:2;justify-content:flex-start!important}
}
