.navbar {
  padding: 0px !important;
  --bs-navbar-padding-y: 0px !important;
}
.navbar-nav>li>a {
  padding: 0px !important;
}
.table>:not(caption)>*>* {
  padding: 0px !important;
}
.footer-bottom {
  padding: 22px !important;
}
footer .footer-bottom p {
  font-size: small !important;
}
footer .footer-bottom {
  min-height: 0px !important;
}
.static-top.navbar .menu-bar > .navbar-nav > li > a {
  font-size: 16px !important;
}
.wrapper-body {
  min-height: calc(100% - 108px) !important;
}
.footer-bottom.d-print-none {
  height: 50px !important;
}
.customstyle-standard, p.customstyle {
  font-family: 'Libre Baskerville' !important;
  font-size: 10px !important;
}
h1.customstyle {
  font-size: 14pt !important;
}
h1.customstyle-black {
  font-size: 14pt !important;
}
h2.customstyle {
  font-size: 12pt !important;
}
h3.customstyle {
  font-size: 16px !important;
}
a.customstyle:hover {
  text-decoration: none !important;
}
table.customstyle {
  font-size: 10pt !important;
  margin-top: 10px !important;
}
table th.customstyle {
  font-weight: 500 !important;
}
table td.customstyle {
  font-size: 9pt !important;
}
.form-control.customstyle.td {
  max-width: 100px !important;
}
.container.customstyle {
  margin: 0 !important;
  max-width: 100% !important;
  height: 80vh !important;
  border-radius: 8px !important;
}
.container.customstyle.rightpane {
  width: 70% !important;
  overflow-y: auto !important;
  max-height: 80vh !important;
}
.container.customstyle.leftpane {
  width: 5% !important;
  min-width: 140px !important;
}
.container.customstyle.centerpane {
  width: 15% !important;
  overflow-y: auto !important;
  max-height: 80vh !important;
  max-width: 200px !important;
}
.container.customstyle.leftpane,
.container.customstyle.centerpane {
  padding-left: 10px !important;
  padding-top: 10px !important;
  position: relative !important;
}
.container.customstyle.leftpane::after,
.container.customstyle.centerpane::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 1px !important;
  height: 100% !important;
  background: linear-gradient(to bottom, transparent 0%, #222222 20%, #222222 80%, transparent 100%) !important;
  z-index: 1 !important;
}
.static-top.navbar-dark {
  position: relative !important; 
  background-color: #ffffff !important;
  box-shadow: none !important;
}
.static-top.navbar-dark::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 1px !important;
  background: linear-gradient(to right, transparent 0%, #222222 20%, #222222 80%, transparent 100%) !important;
  z-index: 1 !important;
}
.footer-bottom {
  background-color: #222222 !important;
}
.wrapper-body.customstyle {
  min-height: calc(100% - 150px) !important;
}
.btn.button1.customstyle.menubtn,
.btn.button2.customstyle.menubtn {
  width: 120px !important;
  margin-top: 1px !important;
  display: flex !important;
  border-radius: 8px !important;
  margin-bottom: 1px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border: 2px solid #ccc !important;
  padding: 5px !important;
  height: 50px !important;
  min-width: 100px !important;
}
.btn.button1.customstyle.menubtn:hover,
.btn.button2.customstyle.menubtn:hover {
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1) !important;
  background-color: #777777 !important;
}
.footer-bottom.customstyle {
  padding: 0px !important;
}
.btn span[data-icon] {
  margin-right: 10px !important;
  font-size: 1.3em !important;
  vertical-align: middle !important;
}
#filtersContainer {
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 0.5rem !important;
  background-color: #f9f9f9 !important;
}
.filters-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-gap: 0.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#InteractionContainer.filters-grid {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  grid-gap: 0.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.structure-item{
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  margin-bottom: 3px;
}
.structure-item label {
  font-weight: 500 !important;
  font-size: small !important;
  margin-bottom: 0rem !important;
}
.structure-item input {
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-size: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/*
.structure-item td input[type="number"]{
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  width: 100% !important;
}*/
.group-container {
  grid-column: span 5 !important;
}
.group-container .filters-grid {
  display: grid !important;
  /*grid-template-columns: repeat(5, minmax(0, 1fr)) !important;*/
  grid-gap: 0.25rem !important;
  margin-top: 0rem !important;
}
.container.customstyle {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
}

.container.customstyle.leftpane {
  flex: 0 1 auto !important;
  min-width: 140px !important;
}

.container.customstyle.centerpane {
  flex: 0 1 auto !important;
  min-width: 80px !important;
}

.container.customstyle.rightpane {
  flex: 1 !important;
  overflow-y: auto !important;
}

@media screen and (max-width: 768px) {
  .container.customstyle.leftpane,
  .container.customstyle.centerpane {
    min-width: 120px !important;
  }
}
.select2-container {
  width: 100% !important;
}
.form-control {
  width: 100%;
  margin-bottom: 1px;
}

.form-control.customstyle {
  padding: .175rem .75rem;
  height: 28px;
  font-size: smaller !important;
}

input.form-control.customstyle.td{
  padding: .175rem .75rem;
  height: 20px;
  margin-top: 5px;
  width: 70px !important;
  font-size: smaller;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay-content {
  background-color: white;
  padding: 20px;
  text-align: center;
  max-width: 600px;
  width: 90%;
  border-radius: 10px;
}

.overlay-content img {
  max-width: 100%;
}

.overlay-content button {
  margin-top: 20px;
  padding: 10px 20px;
  cursor: pointer;
}

.overlay-content {
  padding: 20px;
  max-width: 450px;
  max-height: 500px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin: 0 auto;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.label {
  font-weight: bold;
  text-align: right;
  padding-right: 5px;
}

.value {
  width: 100%;
  padding: 4px;
  text-align: left;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 22px;
}

img {
  display: block;
  margin: 0 auto 15px;
}

button {
  display: block;
  /*margin: 20px auto 0;
  padding: 10px 20px;*/
  border-radius: 4px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  cursor: pointer;
}

a {
  text-align: center;
  display: block;
  margin-top: 10px;
  text-decoration: none;
}

.result-item {
  position: relative;
}

.file-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
}

.result-item.selected {
  border: 2px solid blue;
}

.file-preview-img {
  display: block;
  margin: 0 auto;
}

.result-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.result-item {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 200px;
  text-align: center;
}
  
.result-item.selected {
  border: 2px solid blue;
  box-shadow: 0 0 10px rgba(0, 0, 255, 0.5); 
}
 
.editoverlay-content img {
  max-width: 100%;
}

.editoverlay-content button {
  margin-top: 20px;
  padding: 10px 20px;
  cursor: pointer;
}

.editoverlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 66%;
  height: 83%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  margin-top: 97px;
}

.editoverlay-content {
  position: relative;
  background-color: white;
  padding: 20px;
  height: 100%;
  overflow-y: auto; 
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2); 
}

.spinner-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(99, 78, 78, 0.5);
}

.custom-modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 0.25rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-modal-header .close {
  padding: 0.25rem;
  margin: 0;
}

.custom-modal-title {
    margin: 0;
}

.custom-modal-body {
  padding: 1rem;
}

.custom-modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 0.5rem 1rem;
}

.custom-modal-footer .btn-secondary {
  background-color: #A4262C;
  color: #fff;
  border-color: #A4262C;
}

.custom-modal-footer .btn-secondary:hover {
  background-color: #A4262C;
  border-color: #A4262C;
}

input:read-only
{
  background-color: #efefef !important;
}

table.dataTable {
  width: 100% !important;
  table-layout: auto;
}

table.dataTable tbody tr:nth-child(odd) {
  background-color: #d9d9d9;
}

table.dataTable tbody tr:nth-child(even) {
  background-color: #ffffff;
}

table.dataTable thead th {
  padding-right: 30px;
  position: relative;
  font-size: smaller;
  vertical-align: middle;
}

table.dataTable td {
  font-size: smaller;
  vertical-align: middle;
}

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
  position: absolute;
  right: 10px;
}

button#Inserisci\ Riga {
  height: 25px;
  font-size: smaller;
  margin: 2px;
}

#rdaRowsTable_length,
#rdaRowsTable_filter,
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-results__option {
  font-size: smaller;
}

.filter-label {
  font-weight: bold;
  font-size: smaller;
  margin-right: 10px;
}

.filter-select {
  padding: 5px;
  padding-top: 1px;
  font-size: smaller;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 28px;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 0.5rem !important;
  background-color: #f9f9f9 !important;
  gap: 15px; 
}

#rdaRowsTable_filter {
  flex: 1;
  text-align: right;
}

.left-container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.right-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dataTables_wrapper .dataTables_filter input {
  font-size: smaller;
  height: 28px;
}

.btn-column-toggle {
  cursor: pointer;
  font-size: 12px;
}

.column-menu {
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 4px;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 200px;
  position: absolute;
  z-index: 1000;
  display: none;
  font-size: smaller;
}

.column-menu.hidden {
  display: none;
}

.column-menu-item {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.column-menu-item input[type="checkbox"] {
  margin-right: 8px;
  width: auto !important;
}

#rdaRowsTable_wrapper {
  overflow-x: auto;
  /*overflow-y: auto;*/
}

.select2-container .select2-selection__clear {
  margin: 0;
}

/*######################*/


.container_acc {
  display: flex;
  align-items: flex-start;
  height: calc(100vh - 108px);
}
  
.accordion {
  writing-mode: vertical-rl;
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 10px;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
  height: calc(100vh - 108px);
  pointer-events: none;
}

.accordion.active, .accordion:first-child {
  pointer-events: auto;
}
.active, .accordion:hover {
  background-color: #fff;
}

.panel_acc {
  padding: 10px;
  background-color: white;
  overflow: hidden;
  width: 100%;
  display: none;
  height: calc(100vh - 108px);
  overflow-y: auto;
  box-sizing: border-box;
  transition: 0.4s;
}
  
.hidden {
  display: none;
}
.hidden_imp {
  display: none !important;
}
button {
  height: fit-content;
}
input.accordion.acc_1 {
  background-color: #eee !important;
}
input.accordion.acc_2 {
  background-color: #ddd !important;
}
input.accordion.acc_3 {
  background-color: #ccc !important;
}
input.accordion.acc_4 {
  background-color: #bbb !important;
}

.context-item button {
  width: 125px;
  margin-bottom: 10px;
}
.structure-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-gap: 0.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.buttons-grid
{
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-gap: 0.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.buttons-grid button
{
  min-width: 100px;
}
.filter-label {
  font-weight: bold;
  font-size: smaller;
  margin-right: 10px;
}

.filter-select {
  padding: 5px;
  padding-top: 1px;
  font-size: smaller;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 28px;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 0.5rem !important;
  background-color: #f9f9f9 !important;
  gap: 15px; 
}

.category-item {
    max-width: 300px;
    padding: 10px;
    border: 1px;
    border-radius: 5px;
    background: linear-gradient(135deg, #cdcdcd, #eaeaea);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    margin: 10px;
  }
  
  .category-item:hover {
    background: linear-gradient(135deg, #e0e0e0, #cfcfcf);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }
  
  .category-item span {
    font-weight: bold;
    font-size: 14px;
    color: #444;
    display: inline-block;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  }
  
  .category-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .btn.customstyle {
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    margin: 1px;
  }
  
  .btn.customstyle:hover {
    background: linear-gradient(135deg, #e0e0e0, #cfcfcf);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }

  .btn.customstyle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  #ViewRigheDocumentoTable th {
    background-color: #f2f2f2;
}

#ViewRigheDocumentoTable tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

#FiltriTestataOrdForn,
#Filtri\ Testata\ Documento {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-gap: 0.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
}

#FiltriTestataDocumentoWIP{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-gap: 0.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
}

#RDADocument > .structure-item.group:first-of-type {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 10pt !important;
  padding: 10px;
  text-align: left;
}

#RDADocument > .structure-item.group:first-of-type > .structure-item {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

#RDADocumentExtra > .structure-item.group:first-of-type {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 10pt !important;
  padding: 10px;
  text-align: left;
}

#RDADocumentExtra > .structure-item.group:first-of-type > .structure-item {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.grid-element.label {
  font-weight: bold;
  text-align: left;
}

.grid-element.value
{
  border: 0px;
}

#ListaRDATable tbody tr:hover {
  background-color: #50010198 !important;
  cursor: pointer;
}

table.customstyle tr:hover {
  background-color: #50010198 !important;
}

#ListaRDATable tbody tr{
  height: 25px;
  border-color: #ddd;
}

#ListaRDATable tbody tr td{
  padding: 3px;
}

#ListaRDAExtraTable tbody tr:hover {
  background-color: #50010198 !important;
  cursor: pointer;
}

#ListaRDAExtraTable tbody tr{
  height: 25px;
  border-color: #ddd;
}

#ListaRDAExtraTable tbody tr td{
  padding: 3px;
}

#ViewRigheDocumento td
{
  font-size: 10px;
}

#ViewRigheDocumentoExtra td
{
  font-size: 10px;
}

#InteractionContainer.structure-item {
  height: calc(100vh - 350px);
  overflow-y: auto;
}

#BudgetTable {
    font-size: 0.8rem;
    width: 50% !important;
    margin: 10px 0;
}

#BudgetTable th,
#BudgetTable td {
    padding: 4px 6px !important;
    vertical-align: middle;
    text-align: right;
}

#BudgetTable th:first-child,
#BudgetTable td:first-child {
    text-align: left;
}

input[type="checkbox"] {
  all: unset;                
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;

  width: 16px;
  height: 16px !important;

  vertical-align: middle;
  margin: 0 !important;
}
