/* ELTRACON Soft Metallic. Opt-in presentation; no application or permission logic. */
:root {
  --app-action-radius: 9px;
  --app-action-height: calc(36px * var(--hub-ui-scale, 1));
  --app-action-height-compact: calc(30px * var(--hub-ui-scale, 1));
  --app-action-gold: #f4bb4d;
}
@media screen {
  html body details > summary.app-disclosure-trigger::after {
    content: 'Öffnen'; font: inherit; width: auto; height: auto;
    background: transparent; border: 0; transform: none; margin-inline-start: 16px;
  }
  html body details[open] > summary.app-disclosure-trigger::after { content: 'Schließen'; }
  html body input.app-file-input::file-selector-button {
    min-height: var(--app-action-height); padding: 7px 13px; margin-inline-end: 10px;
    border: 1px solid #303d4d; border-radius: var(--app-action-radius);
    background: linear-gradient(180deg, #2a3645, #202b38); color: #edf2f9;
    font: inherit; cursor: pointer;
  }
  html body input.app-file-input { max-width: 100%; min-width: 0; }
  html body:not(.print-mode) .app-action.app-action {
    --action-bg: linear-gradient(180deg, #2a3645, #202b38);
    --action-text: #edf2f9;
    --action-border: #303d4d;
    --action-shadow: inset 0 1px 0 #ffffff12, 0 2px 3px #0000000c;
    box-sizing: border-box;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--app-action-height) !important;
    max-width: 100%;
    padding: 7px 13px !important;
    border: 1px solid var(--action-border) !important;
    border-radius: var(--app-action-radius) !important;
    background: var(--action-bg) !important;
    color: var(--action-text) !important;
    -webkit-text-fill-color: var(--action-text) !important;
    box-shadow: var(--action-shadow) !important;
    font: 600 calc(12px * var(--hub-ui-scale, 1))/1.4 var(--app-font-family, "Segoe UI", sans-serif) !important;
    white-space: normal;
    overflow-wrap: anywhere;
    text-decoration: none;
    text-align: center;
    transform: none !important;
    filter: none !important;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s;
  }
  html body:not(.print-mode) .app-action.app-action[data-variant="primary"] {
    --action-bg: linear-gradient(155deg, #ffda83, var(--app-action-gold) 58%, #e9a22c);
    --action-text: #302005; --action-border: #f6c565;
    --action-shadow: inset 0 1px 0 #fff4ceaa, 0 2px 8px #d699271f;
  }
  html body:not(.print-mode) .app-action.app-action[data-variant="danger"] {
    --action-bg: linear-gradient(145deg, #38232c, #2c2029);
    --action-text: #ffa9b8; --action-border: #754151;
  }
  html body:not(.print-mode) .app-action.app-action[data-variant="ai"] {
    --action-bg: linear-gradient(145deg, #39294e, #29233d);
    --action-text: #e0c8ff; --action-border: #665084;
  }
  html body:not(.print-mode) .app-action.app-action[data-variant="secure"] {
    --action-bg: linear-gradient(145deg, #302a1e, #23241f);
    --action-text: #f4cd7a; --action-border: #76603a;
  }
  html body:not(.print-mode) .app-action.app-action[data-variant="ghost"] {
    --action-bg: transparent; --action-text: #b9c5d5;
    --action-border: transparent; --action-shadow: none;
  }
  html body:not(.print-mode) .app-action.app-action[data-size="compact"] {
    min-height: var(--app-action-height-compact) !important; padding: 4px 10px !important;
  }
  /* Compact table actions: keep number and icon together, never split words. */
  html body:not(.print-mode) .app-action.app-action[data-action-layout="table-edit"] {
    display: inline-flex;
    width: max-content;
    min-width: 52px;
    max-width: none;
    gap: 6px;
    padding: 4px 8px !important;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
  html body:not(.print-mode) .app-action.app-action[data-action-layout="table-edit"] strong { flex: 0 0 auto; }
  /* Explicit filter actions share the neutral surface and retain active state. */
  html body:not(.print-mode) .app-action.app-action:is([data-audit-result-filter],[data-action-filter]).active {
    --action-bg: linear-gradient(155deg, #ffda83, var(--app-action-gold));
    --action-text: #302005;
    --action-border: #f6c565;
  }
  html body:not(.print-mode) .app-action.app-action[data-icon-only] {
    min-width: var(--app-action-height); padding: 7px !important;
  }
  html body:not(.print-mode) .app-action.app-action[data-shape="close"] {
    border-radius: 50% !important; width: var(--app-action-height); height: var(--app-action-height);
  }
  html body:not(.print-mode) .app-action.app-action svg { width: 16px; height: 16px; flex: 0 0 16px; }
  html body:not(.print-mode) .app-action[data-shared-action-icon]:not([aria-busy="true"]):not(.is-loading):not(.loading):not(.busy):not([data-ai-running="true"])::before {
    content: "";
    display: inline-block;
    width: 16px; height: 16px; flex: 0 0 16px;
    vertical-align: -3px;
    margin-inline-end: 0;
    background: currentColor;
    -webkit-mask: var(--app-action-icon) center / contain no-repeat;
    mask: var(--app-action-icon) center / contain no-repeat;
    pointer-events: none;
  }
  html body:not(.print-mode) .app-action[data-shared-action-icon-inline]:not([aria-busy="true"]):not(.is-loading):not(.loading):not(.busy):not([data-ai-running="true"])::before { margin-inline-end: 8px; }
  html body:not(.print-mode) .app-action.app-action:hover:not(:disabled):not([aria-disabled="true"]):not([data-inert]) {
    border-color: #8498b1 !important; box-shadow: inset 0 1px 0 #ffffff22, 0 3px 10px #00000018 !important;
  }
  html body:not(.print-mode) .app-action.app-action[data-variant="primary"]:hover:not(:disabled):not([aria-disabled="true"]):not([data-inert]) {
    border-color: #ffe2a1 !important; box-shadow: inset 0 1px 0 #fff4ce, 0 0 0 3px #e7b75118, 0 4px 15px #d6992730 !important;
  }
  html body:not(.print-mode) .app-action.app-action:active:not(:disabled):not([aria-disabled="true"]) { box-shadow: inset 0 2px 4px #00000025 !important; }
  html body:not(.print-mode) .app-action.app-action:focus-visible { outline: 3px solid #86bcff !important; outline-offset: 3px; }
  html body:not(.print-mode) .app-action.app-action:disabled,
  html body:not(.print-mode) .app-action.app-action[aria-disabled="true"],
  html body:not(.print-mode) .app-action.app-action[data-inert] { opacity: .85 !important; cursor: not-allowed; box-shadow: none !important; }
  html body:not(.print-mode) .app-action.app-action[aria-busy="true"] { cursor: progress; }
  /* Functional choices keep their own dimensions, grid layout and semantic colors. */
  html body:not(.print-mode) .app-button-choice {
    border-radius: var(--app-action-radius) !important;
    transition: border-color .18s, box-shadow .18s;
    transform: none !important;
  }
  html body:not(.print-mode) .app-button-choice:focus-visible { outline: 3px solid #86bcff !important; outline-offset: 3px; }
  html body:not(.print-mode) .app-button-choice.selected,
  html body:not(.print-mode) .app-button-choice[aria-pressed="true"] { box-shadow: inset 0 1px 0 #ffffff25, inset 0 0 0 1px currentColor !important; }
  /* Never resurrect a reader-only or otherwise hidden action. */
  html body .app-action[hidden], html body .app-button-choice[hidden] { display: none !important; }
  @media (pointer: coarse) {
    html body:not(.print-mode) .app-action.app-action { min-height: 44px !important; min-width: 44px; }
    html body:not(.print-mode) .app-action.app-action[data-shape="close"] { width: 44px; height: 44px; }
  }
  @media (prefers-reduced-motion: reduce) { html body:not(.print-mode) .app-action.app-action, html body:not(.print-mode) .app-button-choice { transition: none; } }
}
