@import '_content/Z.Blazor.Diagrams/Z.Blazor.Diagrams.ezdqu7jd9f.bundle.scp.css';

/* /Components/Account/ExternalLogin.razor.rz.scp.css */
/* Stato di attesa: l'utente arriva qui subito dopo il rimbalzo da Microsoft e la pagina
   fa lavoro asincrono (sign-in, eventuale provisioning) prima di decidere cosa mostrare. */
.ext-login-progress[b-75wano17gl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 0;
    color: var(--bs-secondary-color, #6c757d);
}

.ext-login-progress p[b-75wano17gl] {
    margin: 0;
    font-size: 0.95rem;
}

/* Riquadro d'errore: volutamente sobrio, non un alert rosso a tutta larghezza — questa
   è la pagina di atterraggio dopo il login, non una notifica dentro un form. */
.ext-login-error[b-75wano17gl] {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

.ext-login-error-icon[b-75wano17gl] {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    font-size: 1.6rem;
}

.ext-login-error h4[b-75wano17gl] {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.ext-login-error-detail[b-75wano17gl] {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.ext-login-error-admin[b-75wano17gl] {
    background: rgba(255, 193, 7, 0.12);
    border-left: 3px solid #ffc107;
    border-radius: 0.375rem;
    padding: 0.75rem 0.9rem;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Codice e riferimento vanno copiati e incollati in una segnalazione: monospace,
   selezionabili, e a capo automatico perché il traceparent è lungo. */
.ext-login-error-meta[b-75wano17gl] {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.75rem;
    text-align: left;
    font-size: 0.8rem;
    margin: 0 0 1.5rem;
    padding: 0.75rem 0.9rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 0.375rem;
}

.ext-login-error-meta dt[b-75wano17gl] {
    font-weight: 600;
    color: var(--bs-secondary-color, #6c757d);
}

.ext-login-error-meta dd[b-75wano17gl] {
    margin: 0;
    overflow-wrap: anywhere;
}

.ext-login-error-meta code[b-75wano17gl] {
    color: inherit;
    user-select: all;
}

.ext-login-error-actions .btn[b-75wano17gl] {
    min-width: 12rem;
}
/* /Components/App.razor.rz.scp.css */
/* Blazor CSS isolation root - ensures styles.css bundle is generated */
/* /Components/Pages/Admin/StampDefinitionEditor.razor.rz.scp.css */
/* #247: anteprima d'insieme del timbro nell'editor admin.
   Composizione live dei blocchi attivi (Label / Bitmap / Grid) nell'ordine dichiarato
   da blockOrder, aggiornata mentre l'utente modifica configurazione. */

.stamp-composite-preview[b-y02jdx6q1i] {
    background: repeating-conic-gradient(#f0f0f0 0 25%, white 0 50%) 50% / 16px 16px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 24px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stamp-editor-page[b-y02jdx6q1i] {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.stamp-system-grid[b-y02jdx6q1i] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

.stamp-composite-canvas[b-y02jdx6q1i] {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    padding: 12px 16px;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    max-width: 480px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Label rotata replica il look del rendering reale dei timbri Predefined */
.stamp-composite-label[b-y02jdx6q1i] {
    display: inline-block;
    padding: 6px 14px;
    border: 2px solid currentColor;
    font-weight: 700;
    border-radius: 4px;
    transform: rotate(-3deg);
    align-self: flex-start;
}

.stamp-composite-bitmap[b-y02jdx6q1i] {
    align-self: flex-start;
}
.stamp-composite-bitmap img[b-y02jdx6q1i] {
    max-width: 200px;
    max-height: 100px;
    display: block;
}

.stamp-composite-grid[b-y02jdx6q1i] {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 16px;
    row-gap: 2px;
    align-self: stretch;
}
.stamp-composite-grid-row[b-y02jdx6q1i] {
    display: contents;
}
.stamp-composite-grid-label[b-y02jdx6q1i] {
    font-weight: 600;
    opacity: 0.85;
}
.stamp-composite-grid-value[b-y02jdx6q1i] {
    font-style: italic;
    opacity: 0.7;
}

@media (max-width: 767px) {
    .stamp-editor-page[b-y02jdx6q1i] { padding: 0; }
    .stamp-system-grid[b-y02jdx6q1i] { grid-template-columns: minmax(0, 1fr); }
    .stamp-composite-preview[b-y02jdx6q1i] { padding: 12px; }
    .stamp-composite-canvas[b-y02jdx6q1i] {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .stamp-composite-grid[b-y02jdx6q1i] {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
    .stamp-composite-grid-row[b-y02jdx6q1i] { display: grid; }
}
/* /Components/Pages/Workflows/WorkflowImport.razor.rz.scp.css */
/* ============================================================
   #59 — Import di workflow.

   Sta qui e NON in accessibility.css: quello è la rete di sicurezza
   globale sul costruito, caricata per ultima. Il markup nuovo si scrive
   accessibile, non si corregge dopo.

   Regole non negoziabili applicate qui:
   · nessuno stato è veicolato dal solo colore — ogni `.wf-imp-state`
     porta un'icona E un'etichetta testuale;
   · i colori del testo vengono dai token `--o365-*-text`, non dalla
     palette base: il terracotta di marca su bianco sta a 3.12:1;
   · niente `opacity` sui testi colorati — nella #162 un colore corretto
     è stato riportato sotto soglia proprio da un `opacity: 0.85`.
   ============================================================ */

.wf-imp[b-xriz97xi1d] {
    max-width: 980px;
}

/* Misura di riga leggibile: oltre le ~70 battute l'occhio perde il rigo. */
.wf-imp-lead[b-xriz97xi1d] {
    max-width: 70ch;
}

.wf-imp-file[b-xriz97xi1d] {
    max-width: 480px;
}

.wf-imp-summary[b-xriz97xi1d] {
    padding: .75rem 1rem;
    border-radius: .5rem;
    background: var(--bs-secondary-bg, #f1f3f5);
    font-weight: 500;
}

.wf-imp-row[b-xriz97xi1d] {
    padding: .75rem 1rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .5rem;
    margin-bottom: .5rem;
}

/* Il bordo colorato è ridondante e deve restarlo: l'etichetta testuale
   dice già lo stato a chi non distingue i colori. */
.wf-imp-missing .wf-imp-row[b-xriz97xi1d] {
    border-left: 4px solid var(--o365-yellow-text);
}

.wf-imp-state[b-xriz97xi1d] {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .25rem;
}

.wf-imp-state-exact[b-xriz97xi1d]      { color: var(--o365-green-text); }
.wf-imp-state-normalized[b-xriz97xi1d] { color: var(--o365-yellow-text); }
.wf-imp-state-missing[b-xriz97xi1d]    { color: var(--o365-yellow-text); }
.wf-imp-state-ambiguous[b-xriz97xi1d]  { color: var(--o365-primary-text); }
.wf-imp-state-notfound[b-xriz97xi1d]   { color: var(--o365-primary-text); }
.wf-imp-state-chosen[b-xriz97xi1d]     { color: var(--o365-teal-text); }

.wf-imp-select[b-xriz97xi1d] {
    max-width: 520px;
}

.wf-imp-details > summary[b-xriz97xi1d] {
    cursor: pointer;
    padding: .5rem 0;
}

/* La barra delle azioni resta a portata anche con quindici riferimenti
   da scorrere: senza, il pulsante di conferma sta in fondo a una pagina
   che nessuno raggiunge. */
.wf-imp-actions[b-xriz97xi1d] {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    padding: 1rem 0;
    background: var(--bs-body-bg, #fff);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* A 320px la barra appiccicata mangia lo schermo: torna in linea. */
@media (max-width: 576px) {
    .wf-imp-actions[b-xriz97xi1d] {
        position: static;
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .wf-imp-actions > *[b-xriz97xi1d] {
        flex: 1 1 auto;
    }
}

/* Valori d'ambiente copiati così come sono: né un successo né un problema,
   una cosa da guardare. Grigio-blu, distinto dal verde dell'agganciato e
   dal giallo del prerequisito mancante. */
.wf-imp-state-review[b-xriz97xi1d] { color: var(--o365-teal-text); }
/* /Components/Workflow/WorkflowNodeWidget.razor.rz.scp.css */
.wf-node[b-ahdjovvn6w] {
  background: #fff;
  border: 2px solid var(--wf-color, #6c757d);
  border-radius: 10px;
  min-width: 180px;
  max-width: 240px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: grab;
  transition: box-shadow 0.15s, border-color 0.15s;
  position: relative;
  user-select: none;
  will-change: transform;
}

.wf-node:hover[b-ahdjovvn6w] {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
}

.wf-node-selected[b-ahdjovvn6w] {
  border-color: var(--wf-color, #6c757d);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wf-color) 25%, transparent);
}

.wf-node-header[b-ahdjovvn6w] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--wf-color, #6c757d);
  color: #fff;
  border-radius: 8px 8px 0 0;
}

.wf-node-header-left[b-ahdjovvn6w] {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wf-node-icon[b-ahdjovvn6w] {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.wf-node-type[b-ahdjovvn6w] {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.9;
}

.wf-node-body[b-ahdjovvn6w] {
  padding: 10px 12px;
}

.wf-node-label[b-ahdjovvn6w] {
  font-size: 13px;
  font-weight: 600;
  color: #212529;
  display: block;
}

.wf-node-config[b-ahdjovvn6w] {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wf-node-config-item[b-ahdjovvn6w] {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6c757d;
}

.wf-config-key[b-ahdjovvn6w] { font-weight: 500; }

.wf-config-val[b-ahdjovvn6w] {
  color: #495057;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Execution states */
.wf-node-running[b-ahdjovvn6w] {
  border-color: #ffc107;
  animation: wf-pulse-b-ahdjovvn6w 1.2s ease-in-out infinite;
}

.wf-node-completed[b-ahdjovvn6w] {
  border-color: #198754;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
}

.wf-node-failed[b-ahdjovvn6w] {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.wf-node-skipped[b-ahdjovvn6w] {
  border-color: #adb5bd;
  opacity: 0.5;
  box-shadow: 0 0 0 3px rgba(173, 181, 189, 0.2);
}

.wf-node-waiting .wf-node-header[b-ahdjovvn6w] {
  background: color-mix(in srgb, var(--wf-color, #6c757d) 45%, #adb5bd);
}

.wf-node-waiting[b-ahdjovvn6w] { opacity: 0.6; }

@keyframes wf-pulse-b-ahdjovvn6w {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.4); }
}

/* Ports */
[b-ahdjovvn6w] .diagram-port {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wf-color, #6c757d);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--wf-color, #6c757d);
  transition: transform 0.15s, background 0.15s;
  cursor: crosshair;
  z-index: 10;
}

[b-ahdjovvn6w] .diagram-port.left {
  left: -9px;
  top: 50%;
  margin-top: -7px;
}

[b-ahdjovvn6w] .diagram-port.right {
  right: -9px;
  top: 50%;
  margin-top: -7px;
}

[b-ahdjovvn6w] .diagram-port.bottomleft,
[b-ahdjovvn6w] .diagram-port.bottom-left {
  bottom: -7px !important;
  left: 24px !important;
  top: auto !important;
  right: auto !important;
}

[b-ahdjovvn6w] .diagram-port.bottomright,
[b-ahdjovvn6w] .diagram-port.bottom-right {
  bottom: -7px !important;
  right: 24px !important;
  top: auto !important;
  left: auto !important;
}

[b-ahdjovvn6w] .diagram-port:hover,
[b-ahdjovvn6w] .diagram-port.has-links {
  transform: scale(1.35);
  background: #212529;
  box-shadow: 0 0 0 2px #212529;
}

/* Spinner */
.wf-node-spinner[b-ahdjovvn6w] {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wf-spinner[b-ahdjovvn6w] {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wf-spin-b-ahdjovvn6w 0.7s linear infinite;
}

@keyframes wf-spin-b-ahdjovvn6w {
  to { transform: rotate(360deg); }
}

/* Conditional branches */
.wf-node-cond-expr[b-ahdjovvn6w] {
  font-size: 10px;
  color: #6c757d;
  margin-top: 5px;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf-node-cond-branches[b-ahdjovvn6w] {
  display: flex;
  gap: 4px;
  margin-top: 7px;
}

.wf-node-cond-true[b-ahdjovvn6w],
.wf-node-cond-false[b-ahdjovvn6w] {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.wf-node-cond-true[b-ahdjovvn6w] {
  background: rgba(25, 135, 84, 0.10);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.22);
}

.wf-node-cond-false[b-ahdjovvn6w] {
  background: rgba(220, 53, 69, 0.10);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.22);
}

.wf-node-cond-true.wf-node-cond-active[b-ahdjovvn6w] {
  background: rgba(25, 135, 84, 0.22);
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.35);
}

.wf-node-cond-false.wf-node-cond-active[b-ahdjovvn6w] {
  background: rgba(220, 53, 69, 0.22);
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.35);
}

/* Disabled */
.wf-node-disabled[b-ahdjovvn6w] {
  opacity: 0.45;
  filter: grayscale(0.6);
}

.wf-node-disabled .wf-node-header[b-ahdjovvn6w] {
  background: #6c757d !important;
}

.wf-node-disabled-badge[b-ahdjovvn6w] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 5px;
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}
