
.panel {
  max-width: 800px;
  margin: 0 auto;
}

.etichetta-table {
  text-align: right;
  margin: 0 15px 5px 0; 
  font-size: 1.1em;
  color: #0275d8;
}

.spazio-sezione {
  margin-top: 2rem; /* puoi regolare la distanza a piacere */
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead tr {
  background-color: #4f4f4f;
  color: #ffffff;
}

th, td {
  border: 1px solid #ccc;
  padding: 4px 6px;
  text-align: left;
}

.table-3col th:nth-child(1),
.table-3col td:nth-child(1) {
  width: 30%;
}

.table-3col th:nth-child(2),
.table-3col td:nth-child(2) {
  width: 40%;
}

.table-3col th:nth-child(3),
.table-3col td:nth-child(3) {
  width: 30%;
}

.table-3col input,
.table-3col select {
  width: 100%;
  box-sizing: border-box;
}


/*bottoni per menu*/

.btnH {
  padding: 1.2rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background-color: #0078d4;
  color: white;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s;
}

.btnH:hover {
  background-color: #005ea2;
}

.btnH.active {
  background-color: #d4a017;
  color: white;
}

.btnH[disabled] {
  background-color: #cccccc !important;
  cursor: not-allowed;
}


/*bottoni per sottomenu*/

.btn {
  padding: 0.4rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background-color: #0078d4;
  color: white;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #005ea2;
}

.btn[disabled] {
  background-color: #cccccc !important;
  cursor: not-allowed;
}

/* Intestazione riutilizzabile */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem; /* spazio sotto l'intestazione */
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-header img {
  width: 60px;
  height: auto;
}

.page-header-title {
  font-size: 1.1rem;
  margin: 0;
  margin-left: 10px; /* distacco dal logo */
  color: #333;
  flex: 1;
}

.page-header .back-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #0078d4;
  margin-right: 4px;
  padding: 0;
  line-height: 1;
}

.page-header .back-btn:hover {
  color: #005ea2;
}

.bottom-section {
  margin-top: 1rem;
}

.bottom-bar-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin-bottom: 0.5rem;
}

.password-label {
  font-size: 0.9rem;
  margin: 0;
  margin-left: 8px;
}

.password-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 800px;
}

.password-row {
  display: flex;
  justify-content: flex-start;
  max-width: 800px;
  margin-top: 0.5rem;
}

.password-fixed {
  width: 230px;
  height: 30px;
  padding: 0 1rem;
  font-size: 1rem;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .button-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    margin-left: auto;
    width: 100%; /* facoltativo: puoi limitare se vuoi */
    max-width: 200px; /* larghezza massima dei pulsanti */
  }

  .button-group .btn {
    width: 90px;
  }
}