/* NEXUS — stili base */

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Login classica */
.nexus-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(160deg, #f4f6f9 0%, #e8eef5 100%);
}

.nexus-auth-wrap {
  width: 100%;
  max-width: 400px;
}

.nexus-auth-brand {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1e293b;
}

.app-sidebar .brand-link {
  text-decoration: none;
}

.app-sidebar .brand-text {
  letter-spacing: 0.04em;
}

/* Help Online — tipografia guide Markdown */
.nexus-help-content h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.nexus-help-content h2 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #dee2e6;
}
.nexus-help-content h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
}
.nexus-help-content p,
.nexus-help-content li {
  line-height: 1.65;
}
.nexus-help-content table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}
.nexus-help-content th,
.nexus-help-content td {
  border: 1px solid #dee2e6;
  padding: 0.45rem 0.65rem;
  vertical-align: top;
}
.nexus-help-content th {
  background: #f8f9fa;
}
.nexus-help-content code {
  background: #f1f3f5;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.nexus-help-content blockquote {
  border-left: 4px solid #0d6efd;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  color: #495057;
}

/* Kanban Opportunità */
.kanban-board {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  align-items: flex-start;
}
.kanban-column {
  flex: 0 0 260px;
  max-width: 280px;
  background: #f1f3f5;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 12rem);
}
.kanban-column-header {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  background: #e9ecef;
  border-radius: 0.5rem 0.5rem 0 0;
}
.kanban-column-body {
  padding: 0.5rem;
  overflow-y: auto;
  min-height: 8rem;
  flex: 1;
}
.kanban-column-body.kanban-drop-ok {
  outline: 2px dashed #198754;
  background: #d1e7dd;
}
.kanban-column-body.kanban-drop-no {
  outline: 2px dashed #dc3545;
  background: #f8d7da;
}
.kanban-card {
  position: relative;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.4rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.kanban-card-draggable {
  cursor: grab;
}
.kanban-card.kanban-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

/* Pagine dettaglio/form: usano tutta la larghezza del content (niente colonna stretta) */
.nexus-page-wide,
.nexus-preventivo-details {
  max-width: 100%;
  width: 100%;
}

.nexus-specchietto-table th,
.nexus-specchietto-table td {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  vertical-align: middle;
}

.nexus-specchietto-table th.text-end,
.nexus-specchietto-table td.text-end {
  min-width: 7.5rem;
  padding-left: 1rem;
}

.nexus-specchietto-table td.text-end + td.text-end {
  padding-left: 1.25rem;
}

