/* Stesso linguaggio visivo dei pannelli operativi, isolato dal layout dei dati. */
.bd-app-brand { font-size: 22px; }
.bd-header-row { display: flex; align-items: center; justify-content: space-between; }
.bd-header-row, .bd-header-identity { gap: 12px; }
.bd-header-date { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; white-space: nowrap; font: 650 13px/1.4 Inter, system-ui, sans-serif; color: #C8A95B; font-variant-numeric: tabular-nums; }
.bd-header-date > span { color: rgba(255,255,255,.8); }
.bd-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.bd-header-actions .bd-guide-help-button, .bd-header-logout {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px;
  box-sizing: border-box; border: 1px solid rgba(255,255,255,.3); border-radius: 6px;
  padding: 4px 6px; color: #fff; background: rgba(255,255,255,.08); font: 650 12px/1.4 Inter, system-ui, sans-serif; cursor: pointer;
}
.bd-header-actions .bd-guide-help-button { position: relative; }
.bd-header-actions .bd-guide-help-symbol, .bd-header-logout svg { box-sizing: border-box; width: 18px; height: 18px; flex: 0 0 18px; }
.bd-header-actions .bd-guide-help-button:hover, .bd-header-logout:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: #fff; }
.bd-app-header .bd-header-actions :is(button,a):focus-visible { outline: 3px solid #C8A95B; outline-offset: 3px; }
.bd-guide-entry-dot { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #C8A95B; }
.bd-guide-info {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 36px; min-width: 36px; height: 36px; padding: 0; margin: -6px 0 -6px 4px;
  border: 0; background: transparent; color: var(--clr-primary); cursor: pointer;
}
.bd-guide-info > span {
  display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px;
  border: 1.5px solid currentColor; border-radius: 50%; font: 700 13px/1 Georgia, serif;
}
.bd-guide-info:hover > span, .bd-guide-info[aria-expanded="true"] > span { background: var(--clr-primary-light); }
.bd-guide-entry { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.bd-guide-help-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  border: 1px solid var(--clr-border); border-radius: var(--radius-control, 8px); padding: 8px 12px;
  background: var(--clr-surface); color: var(--clr-primary); font: 700 13px/1.4 Inter, system-ui, sans-serif; cursor: pointer;
}
.bd-guide-help-symbol { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; }
.bd-guide-welcome { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 12px; border-radius: 12px; background: var(--clr-primary-light); color: var(--clr-primary); }
.bd-guide-welcome button { padding: 8px 10px; min-height: 44px; border: 0; color: inherit; background: transparent; font: 650 13px/1.4 Inter, system-ui, sans-serif; cursor: pointer; }
.bd-guide-welcome .bd-guide-welcome-close { padding: 6px; min-width: 44px; font-size: 20px; }
.bd-guide-persistence { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--clr-border); color: var(--clr-muted); font: 12px/1.5 Inter, system-ui, sans-serif; }
.bd-guide-backdrop, .bd-guide-popover-backdrop, .bd-guide-tour { position: fixed; inset: 0; box-sizing: border-box; }
.bd-guide-backdrop { z-index: 1100; display: flex; justify-content: center; align-items: center; padding: 16px; background: rgba(15, 42, 40, .38); }
.bd-guide-popover-backdrop { z-index: 1200; background: transparent; }
.bd-guide-dialog { box-sizing: border-box; color: var(--clr-text); background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: 16px; box-shadow: 0 16px 48px rgba(15, 42, 40, .22); padding: 22px; font: 14px/1.6 Inter, system-ui, sans-serif; text-align: left; overflow: auto; overscroll-behavior: contain; }
.bd-guide-dialog:focus { outline: none; }
.bd-guide-dialog h2, .bd-guide-dialog h3 { color: var(--clr-primary); font-family: Inter, system-ui, sans-serif; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.bd-guide-dialog h2 { font-size: 21px; margin: 0 0 12px; }
.bd-guide-dialog h3 { font-size: 16px; margin: 0; }
.bd-guide-dialog p { margin: 10px 0 16px; overflow-wrap: anywhere; }
.bd-guide-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bd-guide-heading > h2 { padding-top: 5px; }
.bd-guide-close { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: -8px -8px 0 0; background: transparent; border: 0; border-radius: 8px; color: var(--clr-primary); font: 26px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.bd-guide-close:hover { background: var(--clr-primary-light); }
.bd-guide-popover { position: fixed; width: 340px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 18px; font-size: 13px; }
.bd-guide-popover .bd-guide-heading { align-items: center; }
.bd-guide-popover .bd-guide-close { margin-top: -3px; }
.bd-guide-tip { padding: 10px 12px; border-left: 3px solid var(--clr-primary); border-radius: 0 8px 8px 0; background: var(--clr-surface-muted); color: var(--clr-muted); font-size: 13px; }
.bd-guide-tip > strong { display: block; margin-bottom: 2px; color: var(--clr-primary); font-weight: 700; }
.bd-guide-link { display: inline-block; color: var(--clr-primary); font-weight: 700; text-underline-offset: 3px; text-decoration-thickness: 1px; padding: 4px 0; }
.bd-guide-center { width: 560px; max-width: 100%; max-height: calc(100dvh - 32px); }
.bd-guide-dialog .bd-guide-subtitle { color: var(--clr-muted); margin-top: 0; }
.bd-guide-current { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 16px; background: var(--clr-surface-muted); border-radius: 12px; margin: 18px 0; }
.bd-guide-eyebrow { color: var(--clr-muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.bd-guide-center-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bd-guide-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--clr-border); border-radius: 8px; background: var(--clr-surface); color: var(--clr-primary); text-decoration: none; text-align: center; font: 650 13px/1.4 Inter, system-ui, sans-serif; cursor: pointer; }
.bd-guide-button:hover, .bd-guide-help-button:hover { border-color: var(--clr-primary); background: var(--clr-primary-light); }
.bd-guide-primary { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.bd-guide-primary:hover { background: var(--clr-primary); color: #fff; filter: brightness(.93); }
.bd-guide-button:disabled, .bd-guide-help-button:disabled { opacity: .5; cursor: default; }
.bd-guide-dialog .bd-guide-footnote { font-size: 12px; color: var(--clr-muted); margin: 18px 0 0; }
.bd-guide-tour { z-index: 950; isolation: isolate; }
.bd-guide-shade { position: fixed; inset: 0; background: rgba(15, 42, 40, .46); pointer-events: none; }
.bd-guide-spotlight { inset: auto; background: transparent; border-radius: 12px; outline: 2px solid var(--clr-primary); box-shadow: 0 0 0 9999px rgba(15, 42, 40, .46), 0 0 0 5px var(--clr-surface); }
.bd-guide-tour-card { position: fixed; width: 390px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
.bd-guide-tour-card .bd-guide-heading { align-items: center; }
.bd-guide-tour-card .bd-guide-eyebrow { font-size: 10px; }
.bd-guide-skip { min-height: 44px; padding: 6px 0 6px 10px; border: 0; background: transparent; color: var(--clr-muted); font: 600 12px/1.4 Inter, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bd-guide-progress { display: flex; align-items: center; gap: 10px; color: var(--clr-muted); font-size: 11px; margin: 2px 0 18px; }
.bd-guide-progress > span { white-space: nowrap; }
.bd-guide-progress-track { height: 4px; flex: 1; border-radius: 4px; background: var(--clr-border); overflow: hidden; }
.bd-guide-progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--clr-primary); transition: width .18s ease; }
.bd-guide-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.bd-guide-arrow { position: fixed; inset: 0; overflow: visible; pointer-events: none; color: var(--clr-surface); filter: drop-shadow(0 1px 1px rgba(15,42,40,.45)); }
.bd-guide-arrow > path { fill: none; stroke: currentColor; stroke-width: 2px; stroke-linecap: round; }
.bd-guide-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bd-guide-entry :is(button,a):focus-visible, .bd-guide-dialog :is(button,a,input):focus-visible, .bd-guide-info:focus-visible { outline: 3px solid var(--clr-primary); outline-offset: 3px; }
@media (max-width: 600px) {
  .bd-app-brand { font-size: 20px; }
  .bd-header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .bd-header-account { display: contents; }
  .bd-header-identity { grid-column: 1; grid-row: 1; }
  .bd-header-actions { grid-column: 2; grid-row: 1; margin-top: 0; }
  .bd-header-date { grid-column: 1 / -1; grid-row: 2; }
  .bd-guide-info { width: 40px; min-width: 40px; height: 40px; margin-top: -8px; margin-bottom: -8px; }
  .bd-guide-dialog { padding: 18px; }
  .bd-guide-dialog h2 { font-size: 19px; }
  .bd-guide-center-actions { flex-direction: column; }
  .bd-guide-center-actions > * { width: 100%; }
  .bd-guide-tour-card p { font-size: 13px; line-height: 1.5; }
  .bd-guide-tour-card .bd-guide-tip { font-size: 12px; }
  .bd-guide-actions { margin-top: 16px; }
  .bd-guide-entry { gap: 6px; }
}
@media (max-width: 360px) {
  .bd-header-row, .bd-header-identity { gap: 8px; }
  .bd-header-mark { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .bd-guide-progress-track > span { transition: none; } }
@media print { .bd-guide-info, .bd-guide-entry, .bd-guide-backdrop, .bd-guide-popover-backdrop, .bd-guide-tour { display: none !important; } }
