@import "bpmn-js/bpmn-js.css";
@import "bpmn-js/diagram-js.css";
@import "bpmn-js/properties-panel.css";
@import "bpmn-js/bpmn-font/css/bpmn-codes.css";
@import "bpmn-js/bpmn-font/css/bpmn-embedded.css";
@import "bpmn-js/bpmn-font/css/bpmn.css";

.assegna-risorse-form-editor .editor-line {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.assegna-risorse-form-editor .editor-label {
  width: 250px; /* O la larghezza che preferisci */
  font-weight: bold;
  text-align: right;
  margin-right: 10px;
}

.assegna-risorse-form-editor .editor-container {
  flex-grow: 1;
}

div.in-attesa {
  height: 100vh;
  background-image: url("/Content/images/registrato-in-attesa.png");
  background-size: cover;
  background-color: #f5f5f5; /* Colore di fallback nel caso l'immagine non si carichi */
  text-align: center;
}

#s2id_Table {
  min-width: 400px !important;
}


.s-DettagliOperazioniEditor {
  min-height: 800px !important;
}

.field .DistintaBase {
  height: calc(100vh - 600px);
}

.s-Form .invisible-field {
  display: none !important;
}

.azioni-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.btn-azione-rossa {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
}

.btn-azione-verde {
  background-color: #5cb85c;
  color: white;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
}

#GraphContainer {
  display: flex;
  justify-content: center; /* Centra orizzontalmente */
  align-items: center; /* Centra verticalmente */
  width: 100%;
  height: 100%;
  text-align: center; /* Centra eventuali contenuti testuali */
}

.login-page {
  background: url('/Content/images/sfondo.png') center/cover no-repeat;
}

.error-container {
  text-align: center;
  padding: 50px;
  margin: 50px auto;
  max-width: 600px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body.error-page {
  background: url('../images/NonDisponibile.webp') no-repeat center center fixed;
  background-size: cover;
}

  .error-container h1 {
    color: #007bff;
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .error-container p {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

.error-actions {
  margin-top: 20px;
}

  .error-actions .btn {
    margin: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
  }

  .error-actions .btn-primary {
    color: #fff;
    background-color: #007bff;
  }

    .error-actions .btn-primary:hover {
      background-color: #0056b3;
    }

  .error-actions .btn-secondary {
    color: #fff;
    background-color: #6c757d;
  }

    .error-actions .btn-secondary:hover {
      background-color: #5a6268;
    }

.s-site-logo-img {
  content: url(../images/logo128.png);
  background-color: var(--s-card-bg);
}

.bg-primo {
  background-color: #138496;
}

.bg-secondo {
  background-color: #784870;
}

.bg-terzo {
  background-color: #026EBF;
}

.bg-quarto {
  background-color: #DC3546;
}

.wd-32 {
  width: 32px;
  height: 32px;
  display: inline-block;
}

  .wd-32 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .prohibition-symbol {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid red;
  border-radius: 50%;
  transform: rotate(-45deg);
}

  .prohibition-symbol::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 2px;
    background-color: red;
  }

.modal-content {
  background-color: var(--bs-modal-bg);
}

:root.theme-mycustomred {
  --s-card-title: #aa2519;
  --s-category-title: #c18e85;
  --s-sidebar-band-bg: #63032f;
  --s-sidebar-band-link: #ffc3b0;
  --s-sidebar-link-active: #d30a0a;
  --s-sidebar-band-link-active: #ff0000;
  //...other variables copied from azure light theme
}

.s-sidebar-pane {
    overflow-y: auto;
}

.s-PermissionCheckEditor {
  min-height: 450px;
}

.s-horizontal-divider {
  margin: 1em 0;
  line-height: 0;
  text-align: center;
}

.s-horizontal-divider span {
  background-color: var(--s-card-bg);
  padding: 1em;
}

.s-horizontal-divider:before {
  content: " ";
  display: block;
  border-top: 1px solid #e3e3e3;
  border-bottom: 1px solid #f7f7f7;
}

.mailbox-folders > .card-body > ul {
  border-bottom: 1px solid rgba(var(--s-bright-rgb), 0.1);
  padding-left: 1rem;
  margin-bottom: 0;
}

.mailbox-folders ul {
  margin-bottom: 4px;
}

  .mailbox-folders ul li {
    display: block;
    padding: 4px 4px;
  }

.mailbox-folders a {
  text-decoration: none;
  color: var(--bs-body-text);
}

  .mailbox-folders a.active {
    font-weight: bold;
  }

.mailbox-messages a {
  text-decoration: none;
}

.s-MailViewer .message-body {
  width: 100%;
  background-color: #fff;
}

tr.unseen .mailbox-name,
tr.unseen .mailbox-subject {
  font-weight: bold;
}

.mia-immagine {
  width: 240px;
  height: auto;
}

@media (min-width: 768px) {
  .s-MailViewer .message-body {
    min-height: 300px;
    height: calc(100vh - 210px);
  }
  .mia-immagine {
    width: 320px;
    height: auto;
  }

}

@media (min-width: 1200px) {
  .s-MailViewer .message-body {
    min-height: 300px;
    height: calc(100vh - 210px);
  }
  .mia-immagine {
    width: 480px;
    height: auto;
  }
}

/* OAuth2 Profile - Disabled IMAP/SMTP fields styling */
.oauth2-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.oauth2-disabled label {
  color: #6c757d;
}

.disabled-by-oauth2 {
  background-color: #e9ecef !important;
  cursor: not-allowed;
}

.oauth2-disabled::after {
  content: " (Disabilitato - OAuth2 attivo)";
  font-size: 0.75em;
  color: #6c757d;
  font-style: italic;
}

