/* Shared interface styles. Loaded only outside index.php. */
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminShell.adminDesignV705 {gap:8px;padding-top:8px;padding-bottom:20px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminBody .pdAppearanceBar {padding-top:5px;padding-bottom:5px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminMainHeader {min-height:0;padding:14px 20px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminMainHeader .muted {margin-top:5px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminWorkflowDivider {min-height:48px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminWorkflowDivider>div {padding-top:7px;padding-bottom:7px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminShell.adminDesignV705>section,
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminMainCollapsibleBody>section {padding-top:14px;padding-bottom:14px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminShell :is(.adminActionCenterHead,.adminDashboardHead,.adminLiveHead,.adminInquiryHead,.adminStatsHead,.adminAccessManageHead,.adminAccessHead) {margin-bottom:10px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminActionCenterHead .muted {margin-top:6px;margin-bottom:0;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminActionCenterRow {padding-top:8px;padding-bottom:8px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminShell>.adminMainCollapsible>summary {min-height:48px;padding-top:12px;padding-bottom:12px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminShell.adminDesignV705 > :is(header,nav,section,details,.adminWorkflowDivider) {margin-top:0 !important;margin-bottom:0 !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminSectionNav {position:static !important;top:auto !important;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px !important;margin:0 !important;box-shadow:none !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminSectionNav a {display:inline-flex;align-items:center;justify-content:center;min-height:34px !important;padding:6px 10px !important;margin:0;border-radius:8px !important;font-size:12px !important;line-height:1.2;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminSectionNavGroup {padding:4px 6px;margin:0;font-size:9px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminShell :is(section[id],details[id]) {scroll-margin-top:16px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminEditorActions {display:flex;flex-wrap:wrap;align-items:center;gap:12px !important;padding:16px !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminEditorActions :is(.adminStatusLinkActions,.adminTxtExportActions) {display:contents;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminEditorActions :is(button,a) {display:inline-flex;align-items:center;justify-content:center;height:44px;min-height:44px;padding:0 16px;margin:0;width:auto;box-sizing:border-box;line-height:1.2;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminEditorActions .adminDeleteInquiryTrigger {margin-left:auto;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminEditorActions .adminActionFeedback:empty {display:none;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .adminEditorActions .adminActionFeedback:not(:empty) {flex-basis:100%;margin:0;}
.adminEditorActions .adminDeleteInquiryTrigger {margin-left:auto;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.adminDeleteInquiryTrigger,.adminDeleteInquiryButton) {background:var(--ui-error) !important;color:var(--ui-error-text) !important;border:1px solid var(--ui-error-border) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.adminDeleteInquiryDialog,.adminCloseEditorDialog) {box-sizing:border-box;width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-surface);color:var(--ui-text);box-shadow:0 24px 80px #0005;}
.adminDeleteInquiryDialog::backdrop {background:rgba(8,18,26,.65);}
.adminDeleteDialogHead {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
.adminDeleteDialogHead h2 {margin:0;}
.adminDeleteDialogHead button {min-width:44px;font-size:24px;}
.adminDeleteDialogActions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:20px;}
.adminDeleteInquiryDialog .adminDeleteInquiryForm {display:grid;gap:16px;margin:0;padding:0;}
.adminDesignV705 .adminInquiryCard > .adminInquiryNextAction {margin-top:14px;}
.adminDesignV705 .adminInquiryRouteStep {grid-template-columns:minmax(0,1fr); grid-template-rows:15px auto; row-gap:8px;}
.adminDesignV705 .adminInquiryRouteStep>div {padding-top:0;}
html[data-pd-theme][data-pd-theme][data-pd-theme] {
  --ui-bg:#f2f5f6; --ui-surface:#fff; --ui-soft:#edf3f5; --ui-text:#203946;
  --ui-muted:#516773; --ui-border:#cbd8de; --ui-accent:#174b60; --ui-on-accent:#fff;
  --ui-action:#fff6db; --ui-action-text:#684d0b; --ui-action-border:#dbc477;
  --ui-wait:#e9f3fa; --ui-wait-text:#285a70; --ui-wait-border:#b4d2e1;
  --ui-done:#eaf5ed; --ui-done-text:#28603b; --ui-done-border:#b4d5bf;
  --ui-error:#fff0ef; --ui-error-text:#902f2f; --ui-error-border:#e2b5b1;
  color-scheme:light; background:var(--ui-bg);
}
html[data-pd-theme=dark][data-pd-theme][data-pd-theme] {
  --ui-bg:#111b23; --ui-surface:#1b2933; --ui-soft:#22343f; --ui-text:#e3edf2;
  --ui-muted:#b0c3ce; --ui-border:#435a68; --ui-accent:#8cd1e4; --ui-on-accent:#102a35;
  --ui-action:#3d341c; --ui-action-text:#f5d783; --ui-action-border:#806d38;
  --ui-wait:#203c4c; --ui-wait-text:#b5ddf2; --ui-wait-border:#466e86;
  --ui-done:#203c2d; --ui-done-text:#b3e3c2; --ui-done-border:#47765a;
  --ui-error:#46282d; --ui-error-text:#ffc1ba; --ui-error-border:#88535a;
  color-scheme:dark;
}
html[data-pd-theme][data-pd-theme][data-pd-theme] body {
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  background:var(--ui-bg) !important; color:var(--ui-text) !important; line-height:1.55;
  --pd-text:var(--ui-text); --pd-muted:var(--ui-muted); --pd-border:var(--ui-border); --pd-surface:var(--ui-surface);
  --oc-text:var(--ui-text); --oc-muted:var(--ui-muted); --oc-border:var(--ui-border); --oc-surface:var(--ui-surface);
  --lp-text:var(--ui-text); --lp-muted:var(--ui-muted); --lp-border:var(--ui-border); --lp-surface:var(--ui-surface);
}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(h1,h2,h3,h4) {font-family:inherit !important; color:var(--ui-text) !important; letter-spacing:-.02em;}
html[data-pd-theme][data-pd-theme][data-pd-theme] h1 {font-size:32px !important; line-height:1.2 !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] h2 {font-size:23px !important; line-height:1.3 !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] h3 {font-size:19px !important; line-height:1.35 !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(button,input,select,textarea) {font-family:inherit !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {
  color:var(--ui-text) !important; background:var(--ui-surface) !important; border-color:var(--ui-border) !important;
  border-radius:10px !important; font-size:15px; max-width:100%;
}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select) {min-height:44px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] ::placeholder {color:var(--ui-muted) !important; opacity:1;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(button,a.ghost,.primaryButton,.ocPrimary) {
  border-radius:10px !important; font-family:inherit !important; min-height:44px;
  color:var(--ui-text); border-color:var(--ui-border); background:var(--ui-surface); box-shadow:none;
}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.primaryButton,.ocPrimary,.primaryChoice,#cookieSaveSelection,.adminLogin button[type=submit],.ocLogin button,.laborPortalLogin button) {
  background:var(--ui-accent) !important; color:var(--ui-on-accent) !important; border-color:var(--ui-accent) !important;
}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.laborPortalHeader,.ocTop,.adminHeader,.legalTop) {color:var(--ui-text) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .laborPortalHeader :is(p,small,.eyebrow) {color:var(--ui-muted) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .laborPortalHeader :is(button,a.ghost) {background:var(--ui-surface) !important; color:var(--ui-text) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.laborPortalHeader,.ocTop,.adminHeader) {background:var(--ui-surface) !important; border-color:var(--ui-border) !important; border-radius:16px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.adminShell,.ocShell,.laborPortalShell,.legalShell) {min-width:0;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :focus-visible {outline:3px solid var(--ui-accent) !important; outline-offset:3px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :disabled {opacity:.5; cursor:not-allowed;}
.pdAppearanceBar {display:flex; flex:0 0 auto; width:100%; box-sizing:border-box; justify-content:flex-end; padding:10px 24px; background:var(--ui-surface); border-bottom:1px solid var(--ui-border); color:var(--ui-text);}
.pdAppearanceBar label {display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; margin:0;}
.pdAppearanceBar select {width:auto; min-width:112px; padding:6px 30px 6px 12px; border:1px solid var(--ui-border);}
html[data-pd-theme][data-pd-theme][data-pd-theme] #admin-wait {border:1px solid var(--ui-wait-border); border-radius:16px; overflow:hidden;}
html[data-pd-theme][data-pd-theme][data-pd-theme] #admin-wait>.ocSectionHead {background:var(--ui-wait) !important; color:var(--ui-wait-text) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] #admin-wait .ocCard header {display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;}
html[data-pd-theme][data-pd-theme][data-pd-theme] #admin-wait .ocCard code {flex:0 1 auto; width:auto;}
html[data-pd-theme=dark][data-pd-theme][data-pd-theme] :is(div,span,a,code,strong,b,p,small,label,em,time) {background-color:transparent !important; background-image:none !important;}
/* Legacy surfaces are explicitly restyled without touching images or charts. */
html[data-pd-theme=dark][data-pd-theme][data-pd-theme] :is(main,section,article,header,footer,nav,aside,form,details,summary,table,thead,tbody,tr,th,td,fieldset) {
  color:var(--ui-text) !important; border-color:var(--ui-border) !important; background-color:var(--ui-surface) !important; background-image:none !important;
}
html[data-pd-theme=dark][data-pd-theme][data-pd-theme] :is(main,.adminShell,.ocShell,.laborPortalShell,.legalShell) {background:transparent !important;}
html[data-pd-theme=dark][data-pd-theme][data-pd-theme] :is(div,span,p,small,strong,b,label,code,a,li,em,time) {color:var(--ui-text) !important; border-color:var(--ui-border) !important;}
html[data-pd-theme=dark][data-pd-theme][data-pd-theme] :is([class*="Card"],[class*="Panel"],[class*="Box"],[class*="Tile"],[class*="Row"],[class*="Head"],[class*="Summary"],[class*="Notice"],[class*="Info"],[class*="Meta"],[class*="Badge"],[class*="Grid"],.cookieConsentCard,.cookieCategory,.legalArticle,.legalNotice,.payInfoCard,.statusDataItem) {
  background-color:var(--ui-surface) !important; background-image:none !important; border-color:var(--ui-border) !important; box-shadow:none !important;
}
html[data-pd-theme=dark][data-pd-theme][data-pd-theme] :is(button,a.ghost,.footerLinkButton) {background:var(--ui-soft) !important; color:var(--ui-text) !important; border-color:var(--ui-border) !important;}
html[data-pd-theme=dark][data-pd-theme][data-pd-theme] :is(.primaryButton,.ocPrimary,.primaryChoice,#cookieSaveSelection,.adminLogin button[type=submit],.ocLogin button,.laborPortalLogin button) {background:var(--ui-accent) !important; color:var(--ui-on-accent) !important;}
html[data-pd-theme=dark][data-pd-theme][data-pd-theme] :is(.primaryButton,.ocPrimary,.primaryChoice) * {color:inherit !important;}
html[data-pd-theme=dark][data-pd-theme][data-pd-theme] :is(.muted,small,.eyebrow,.ocKicker) {color:var(--ui-muted) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.toneAction,.tone-action,.tone-monitor,.adminActionCenterRow.tone-action) {background:var(--ui-action) !important; color:var(--ui-action-text) !important; border-color:var(--ui-action-border) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.toneWaiting,.tone-waiting,.isWaiting,.adminActionCenterRow.tone-waiting) {background:var(--ui-wait) !important; color:var(--ui-wait-text) !important; border-color:var(--ui-wait-border) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.toneDone,.toneClear,.tone-done,.ocSuccess,.isDone) {background:var(--ui-done) !important; color:var(--ui-done-text) !important; border-color:var(--ui-done-border) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.toneUrgent,.tone-urgent,.ocError,.catalogError,.statusAddressError) {background:var(--ui-error) !important; color:var(--ui-error-text) !important; border-color:var(--ui-error-border) !important;}
html[data-pd-theme=dark][data-pd-theme][data-pd-theme] :is(.toneAction,.tone-action,.tone-monitor,.toneWaiting,.tone-waiting,.toneDone,.toneClear,.tone-done,.toneUrgent,.tone-urgent,.ocError,.ocSuccess) :is(span,small,strong,code,p,b) {color:inherit !important; background:transparent !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .cookieConsentCard {max-height:calc(100dvh - 32px); overflow:auto;}
@media(max-width:700px) {
  .pdAppearanceBar {padding:8px 14px;}
  html[data-pd-theme][data-pd-theme][data-pd-theme] h1 {font-size:26px !important;}
  html[data-pd-theme][data-pd-theme][data-pd-theme] h2 {font-size:21px !important;}
  html[data-pd-theme][data-pd-theme][data-pd-theme] h3 {font-size:18px !important;}
  html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.laborPortalHeader,.ocTop,.adminHeader,.legalTop) {flex-wrap:wrap; gap:14px;}
  html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.ocTopActions,.laborPortalHeaderActions) {flex-wrap:wrap; max-width:100%;}
  html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.ocNav,.adminNav) {display:flex; flex-wrap:wrap;}
  html[data-pd-theme][data-pd-theme][data-pd-theme] #admin-wait .ocCard header {align-items:flex-start; flex-direction:column;}
}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.status-tone-bezahlt,.status-tone-abgeschlossen) {background:var(--ui-done) !important; color:var(--ui-done-text) !important; border-color:var(--ui-done-border) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.status-tone-versendet,.status-tone-warte_auf_zahlungseingang,.status-tone-rueckmeldung_erforderlich) {background:var(--ui-wait) !important; color:var(--ui-wait-text) !important; border-color:var(--ui-wait-border) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] :is(.status-tone-offen,.status-tone-klaerung,.status-tone-kontaktieren) {background:var(--ui-action) !important; color:var(--ui-action-text) !important; border-color:var(--ui-action-border) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] .status-tone-storniert {background:var(--ui-error) !important; color:var(--ui-error-text) !important; border-color:var(--ui-error-border) !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] [class*="status-tone-"] :is(div,span,strong,small) {background:transparent !important; color:inherit !important;}
html[data-pd-theme][data-pd-theme][data-pd-theme] body {background:var(--ui-bg) !important;}
@media print {
  .pdAppearanceBar {display:none !important;}
  html[data-pd-theme][data-pd-theme][data-pd-theme],html[data-pd-theme][data-pd-theme][data-pd-theme] body {background:white !important; color:black !important; color-scheme:light;}
  html[data-pd-theme][data-pd-theme][data-pd-theme] body :is(#pd-print-reset, *) {color:black !important; background-color:transparent !important; background-image:none !important; box-shadow:none !important;}
}
