html, body { height: 100%; }
app { display: block; height: 100%; }
#blazor-error-ui { background: inherit; bottom: 0; display: none; position: fixed; width: 100%; height: 100%; z-index: 100001; }

/* EmDeeSign-accent (goud) op de standaard Fluent-thema-accentkleur */
:root { --dxbl-accent: #c9a961; --bs-primary: #c9a961; --bs-link-color: #a98a45; }
.dxbl-btn-primary { --dxbl-btn-bg: #c9a961; --dxbl-btn-border-color: #c9a961; --dxbl-btn-hover-bg: #b3944f; --dxbl-btn-hover-border-color: #b3944f; --dxbl-btn-color: #111; }
.xaf-navigation .dxbl-navigation-item.dxbl-active, .dxbl-accordion-item-content.dxbl-active { border-left: 3px solid #c9a961; }

/* Groepsachtergrond detailviews (zoals KISS) */
.dxbl-group-body-content { background-color: rgba(128,128,128,.08); }

/* Splash */
.atelier-splash { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.atelier-splash img { width: 260px; max-width: 70vw; }
[data-bs-theme="light"] .atelier-splash img, html:not([data-bs-theme="dark"]) .atelier-splash img { filter: invert(1) hue-rotate(180deg) brightness(.25); }
.atelier-splash-sub { letter-spacing: .4em; text-transform: uppercase; font-size: .8rem; color: #c9a961; }
.atelier-splash-dot { width: 8px; height: 8px; border-radius: 50%; background: #c9a961; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(.6); opacity: .4 } 50% { transform: scale(1); opacity: 1 } }

/* Kopbalk-logo (gevuld door js/atelier-logo.js) */
.header-logo { width: auto; min-width: 170px; height: 44px; background: none; }
/* Login-kopbalk altijd donker, zoals de EmDeeSign-huisstijl */
div.logon-template-header { background-color: #0b0b0d !important; }
div.logon-template-header * { color: #ececee !important; }

/* ==========================================================
   Live-tegels in de kopbalk (js/atelier-tiles.js), rechts naast de schermtitel.
   Tokens volgen het thema; goud = EmDeeSign-accent.
   ========================================================== */
:root { --alt-bg: #f3f1ea; --alt-bg-hover: #ebe8de; --alt-border: #dcd8cc; --alt-fg: #1b1b1f; --alt-muted: #6b6b72; --alt-accent: #a8873e; --alt-panel-bg: #ffffff; --alt-panel-fg: #1f2937; }
[data-bs-theme='dark'] { --alt-bg: #262626; --alt-bg-hover: #2e2e2e; --alt-border: #333333; --alt-fg: #ffffff; --alt-muted: #9a9a9a; --alt-accent: #e6cf8f; --alt-panel-bg: #262626; --alt-panel-fg: #e6e6e6; }
.alt-wrap { display: flex; align-items: center; gap: 6px; order: 1; margin-left: auto; margin-right: 6px; flex: 0 0 auto; }
div.header .header-right-side > dxbl-toolbar { flex: 0 0 auto !important; margin-left: auto; }
div.header .header-right-side.alt-has-tiles > dxbl-toolbar { order: 2; margin-left: 0; }
.header-right-side.alt-has-tiles > .d-flex.ms-auto { order: 3; margin-left: 0 !important; }
.alt-tile { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; height: 36px; min-width: 64px; padding: 0 10px; border: 1px solid var(--alt-border); border-radius: 8px; background: var(--alt-bg); color: var(--alt-fg); cursor: pointer; line-height: 1; font-family: inherit; transition: border-color .15s, background .15s; }
.alt-tile:hover, .alt-tile:focus-visible { border-color: var(--alt-accent); background: var(--alt-bg-hover); outline: none; }
.alt-tile[hidden] { display: none; }
.alt-value { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--alt-fg) !important; }
.alt-tile[data-key="open"] .alt-value, .alt-tile[data-key="revenue"] .alt-value { color: var(--alt-accent) !important; }
.alt-tile[data-key="inProduction"] .alt-value { color: #0099FF !important; }
.alt-tile[data-key="toShip"] .alt-value { color: #43A047 !important; }
.alt-tile.alt-warn .alt-value, .alt-tile.alt-mail .alt-value { color: #DC2626 !important; }
.alt-label { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--alt-muted) !important; margin-top: 2px; white-space: nowrap; }
.alt-dot { align-self: center; width: 7px; height: 7px; border-radius: 50%; background: #555; margin-left: 2px; }
.alt-dot-ok { background: #43A047; box-shadow: 0 0 0 3px rgba(67,160,71,.18); }
.alt-dot-warn { background: #f4a522; box-shadow: 0 0 0 3px rgba(244,165,34,.2); }
.alt-dot-wait { background: #666; animation: alt-pulse 1.2s ease-in-out infinite; }
@keyframes alt-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (max-width: 1400px) { .alt-label { display: none; } .alt-tile { min-width: 0; height: 30px; } }
@media (max-width: 820px) { .alt-wrap { display: none; } }
.alt-panel { position: fixed; z-index: 2000; width: 400px; max-height: 70vh; overflow: auto; background: var(--alt-panel-bg); color: var(--alt-panel-fg); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); padding: 12px 14px; font-size: 13px; }
.alt-panel a { color: inherit; text-decoration: underline; text-decoration-color: rgba(128,128,128,.5); }
.alt-panel a:hover { color: var(--alt-accent); }
.alt-panel-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.alt-panel-head strong { font-size: 14px; }
.alt-panel-sub { font-size: 12px; opacity: .75; margin-bottom: 8px; }
.alt-close { margin-left: auto; border: 0; background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; opacity: .6; }
.alt-close:hover { opacity: 1; }
.alt-table { width: 100%; border-collapse: collapse; }
.alt-table td { padding: 4px 0; border-bottom: 1px solid rgba(128,128,128,.15); vertical-align: top; }
.alt-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.alt-muted { opacity: .65; font-size: 12px; }
.alt-down { color: #DC2626; opacity: 1; }
.alt-panel-foot { margin-top: 8px; font-size: 12px; opacity: .8; }
