ol, ul {
    padding-left: 0rem;
}

.rounded-container{
    margin: 80px 30px 30px 30px;
    padding: 30px;
    background-color: white;
    border-radius: 20px;;
}
/*
rt-card {
    margin: 5px;
}
*/
.card-body {
    padding: 10px;
}

.cardsMesi {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.rendered-form .container-fluid {
    padding: 0px 10px; 
    max-width: 1800px;
}

.maincontainer {
    margin-top: 60px; /* Spazio per la navbar */
    display: flex; 
    width: 99vw;
/*    background-color: white; */
}

h2 {
    margin: 30px 0 0px 0;
    font-weight: bold;
    text-align: center;
/*    font-size: 1.5em; */
}

h4 {
    margin: 30px 0 0px 0;
    color: darkred;
    font-weight: bold;
/*    font-size: 1.5em; */
}

label, .formbuilder-text-label {
    vertical-align: middle;
    color: rgb(150,150,150);
}

table.table-striped tbody tr:nth-of-type(odd) {
    background-color: aliceblue; /* Colore di sfondo per le righe pari */
}

table.table-striped tbody tr:nth-of-type(even) {
    background-color: white; /* Colore di sfondo per le righe pari */
}


#txtCap {
    max-width: 120px;
}

datalist {
    display: none;
}

.row {
    margin: 0 20px;
}

.required {
    color:darkred;
}


.productrowheader {
    margin-left: 6px;
}

#infobar{
    display: flex; 
    min-width: 250px; 
    background: darkred; 
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 30px 20px 30px 20px;
}

.GraphsContainer {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    background-color: lightgray;
}

.graph-container{
    margin: 20px 0px 0px 20px;
/*    border: 1px solid darkgrey; */
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2); /* Ombra a destra */
    padding: 15px;
}

.bar, .line {
    min-width: 700px;
    min-height: 400px;
    max-width: 700px;
    max-height: 400px;
}

.pie {
    min-width: 400px;
    min-height: 400px;
    max-width: 400px;
    max-height: 400px;
}


/* POPUP MENU */
/* --------------------------------------- */

.popup-trigger {
    position: relative;
    display: inline-block;
    cursor: pointer;
    background-color: rgba(0,150,255,.5);
    border: 1px solid navy;
    border-radius: 4px;
    color: white;
/*    width: 30px; */
}

.menu-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 255, 0.5);
    margin: 5px 0;
}

.popup-menu {
    position: absolute;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 5px;
    border-radius: 10px;
}

.popup-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popup-menu ul li {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.popup-menu ul li:hover {
    background: rgba(0,100,255,0.5);
    color: white;
}

/* --------------------------------------- */
.card {
    margin-top: 30px;
    font-size: small;
}

.card-header {
    background-color: rgba(0,150,255,0.2);
    color: navy;
    font-weight: bold;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 500;
}

.nav-card {
    padding: 0px;
    margin-right: 10px;
    width: 80px;
    cursor: pointer;
}

.nav-card:hover {
/*    border: 1px solid darkred; */
    box-shadow: 0 0 5px navy;
}

.btn-remove {
    background-color: red;
    color: white;
    border: none;
    padding: 0px 5px;
    border-radius: 10px;
    width: 30px;
    height: 30px;
    margin-top: 7px;
}

.product-form-control {
    margin-top: 7px;
}

.modal-content {
    border-radius: 25px 25px 15px 15px;
}

.modal-header {
    background-color: lightskyblue;
    border-radius: 25px 25px 0px 0px;
}

.modal-footer {
    background-color: lightgray;
    border-radius: 0px 0px 15px 15px;
}

table.dataTable {
    font-size: small;
}
table.dataTable thead>tr {
    background-color: lightblue;
    color: navy;
    font-weight: bold;
}

.dashcard {
    width: 250px;
    height: 150px;
}


/* -----------------------------------------------
   cDbTables  Style
---------------------------------------------------*/
.cdbtable-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.cdbtable-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.cdbtable-field label {
    font-weight: bold;
    margin-bottom: 4px;
    text-transform: capitalize;
    color: #333;
}


/* 🔹 Dimensioni dinamiche */
.cdbtable-field.x-small input,
.cdbtable-field.x-small textarea {
    width: auto;
    max-width: 50px;
    min-width: 20px;
}

/* 🔹 Dimensioni dinamiche */
.cdbtable-field.small input,
.cdbtable-field.small textarea {
    width: auto;
    max-width: 100px;
    min-width: 50px;
}

.cdbtable-field.medium input,
.cdbtable-field.medium textarea {
    width: auto;
    max-width: 180px;
    min-width: 80px;
}

.cdbtable-field.large input,
.cdbtable-field.large textarea {
    width: auto;
    max-width: 250px;
    min-width: 150px;
}

.cdbtable-field.x-large input,
.cdbtable-field.x-large textarea {
    width: auto;
    max-width: 400px;
    min-width: 200px;
}

/* 🔹 Stile base */
.cdbtable-field input,
.cdbtable-field textarea {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
}

.cdbtable-field select {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
}

.cdbtable-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 4px;
}

.cdbtable-field input:focus,
.cdbtable-field textarea:focus {
    outline: 1px solid #007bff;
    box-shadow: 0 0 3px #007bff;
}

.cdbtable-grid td {
    border-left: 1px solid rgba(0,0,0,.1);
    text-align: center;
    max-height: 20px;
}

.cdbtable-grid th {
    padding: 5px;
    text-align: center;
/*    border-bottom: 1px solid rgba(0,0,0,.1);*/
    font-size: smaller;
    max-height: 20px;
}

.cdbtable-grid tr {
    max-height: 20px;
}

.cdbtable-grid td {
    border-left: 1px solid rgba(0,0,0,.1);
    text-align: center;
    max-height: 20px;
}

.smallgrid td {
    padding: 2px 10px;
}

.mediumgrid td {
    padding: 5px 15px;
}

.largegrid td {
    padding: 10px 30px;
}

.chart-container canvas {
    width: 300px !important;
    height: 200px !important;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.chart-container canvas:hover {
    transform: scale(1.05);
}

/* Dialog ingrandito */
#chartDialog {
    width: 70vw;
    height: 70vh;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    padding: 0;
}
#chartDialog::backdrop {
    background: rgba(0,0,0,0.6);
}
#chartDialog canvas {
    width: 100% !important;
    height: 100% !important;
}
#closeDialog {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

/* ----------------------------------------------- */