@font-face {
    font-family:"Ubuntu";
    src: url('font/Ubuntu-Regular.ttf'); 
	font-display: fallback;
}
@font-face {
    font-family: "Segoe UI";
    src: url('font/Segoe UI.ttf');
	font-display: fallback;
}
@font-face {
    font-family: "Roboto";
    src: url('font/Roboto-Regular.ttf'); 
	font-display: fallback;
}

body {
    padding:0px;
    margin:0px;
    font-family: var(--font);
    font-size: 13px;
    background-color: #f8f8f8;
}

.hidden  { display: none !important;}

.w25     { width:25px !important; }
.w50     { width:50px !important; }
.w75     { width:75px !important; }
.w100    { width:100px !important; }
.w150    { width:150px !important; }
.w200    { width:200px !important; }
.w250    { width:250px !important; }
.w300    { width:300px !important; }
.w400    { width:400px !important; }

.h25     { height:25px !important; }
.h50     { height:50px !important; }
.h75     { height:75px !important; }
.h100    { height:100px !important; }
.h120    { height:120px !important; }
.h150    { height:150px !important; }
.h175    { height:175px !important; }
.h200    { height:200px !important; }
.h250    { height:250px !important; }
.h300    { height:300px !important; }

.w20p    { width: 20%; }
.w25p    { width: 25%; }
.w33p    { width: 33.3%; }
.w50p    { width: 50%; }
.w75p    { width: 75%; }
.w100p   { width:100%; }

.p0      { padding: 0px }
.p2      { padding: 2px }
.p5      { padding: 5px }
.p10     { padding: 10px }
.p15     { padding: 15px }
.p20     { padding: 20px }
.p25     { padding: 25px }
.p30     { padding: 30px }

.pl20     { padding-left: 20px !important; }
.pl30     { padding-left: 30px !important; }

.mauto   { margin: auto !important; }
.m0      { margin: 0px; }
.m2      { margin: 2px; }
.m5      { margin: 5px; }
.m10     { margin: 10px; }
.m15     { margin: 15px; }
.m20     { margin: 20px; }
.m25     { margin: 25px; }
.m30     { margin: 30px; }

.mt5      { margin-top: 5px; }
.mt10     { margin-top: 10px; }
.mt15     { margin-top: 15px; }
.mt20     { margin-top: 20px; }
.mt25     { margin-top: 25px; }
.mt30     { margin-top: 30px; }

.f9      { font-size:9px; }
.f10      { font-size:10px; }
.f11      { font-size:11px; }
.f12      { font-size:12px; }
.f13      { font-size:13px; }
.f14      { font-size:14px; }
.f15      { font-size:15px; }
.f16      { font-size:16px; }
.f17      { font-size:17px; }
.f18      { font-size:18px; }
.f19      { font-size:19px; }
.f20      { font-size:20px; }
.f25      { font-size:25px; }
.f30      { font-size:30px; }
.f35      { font-size:35px; }
.f40      { font-size:40px; }
.f45      { font-size:45px; }
.f50      { font-size:50px; }

.round5  { border-radius: 5px;}

.bg-white       { background-color: white;}
.bg-black       { background-color: black !important; color: white !important; }
.bg-green       { background-color: green !important; color:white;}
.bg-red         { background-color: red !important; color:white !important;}
.bg-red-dark    { background-color: darkred !important; color:white !important;}
.bg-orange      { background-color: orange; color:white;}
.bg-gray        { background-color: gray; color:white !important; }
.bg-lightgray   { background-color: lightgray  !important; }
.bg-blue        { background-color: rgba(59,130,246,1) !important; color: white !important; }
.bg-gold        { background-color: gold !important; }

.white          { color: white !important; }
.black          { color:black !important; }
.red            { color:red !important; }
.red-dark       { color:rgb(214, 31, 31) !important; }
.green          { color:green !important; }
.green-dark     { color:darkgreen !important; }
.blue           { color:rgba(59,130,246,1) !important; }
.gray           { color:gray !important; }
.orange         { color:orange !important;}

.top-al     { vertical-align: top;}
.left-al    { text-align: left !important; }
.right-al   { text-align: right !important; }
.right      { float: right !important;}
.center     { text-align: center !important;}
.cursor     { cursor: pointer; }

.bg-main                        { background-color: var(--background-primary) !important; color:var(--background-primary-text) !important; }
.bg-secondary                   { background-color: var(--background-secondary) !important; color:var(--background-primary-text) !important; }
.bg-secondary.hover:hover       { background-color: var(--background-primary) !important; color:var(--background-secondary-text) !important; }
.bg-active                      { background-color:var(--background-secondary); color:var(--background-secondary-text); }
.color-main { color:var(--background-primary); }
.color-secondaty { color:var(--background-secondary); }

.vline { border-bottom: 1px solid var(--sidebar-highlight);}

.hover:hover {
    background-color: var(--background-hover-color);
    color: var(--hover-color);
}

.bold {
    font-weight: bold;
}

.inline { display: inline-block;}

a {  color:var(--background-secondary); text-decoration: none;  }

.mousehover {
    opacity: 0.6;
}
.mousehover:hover {
    opacity: 1;
}

.input {
    width: calc(100% - 20px);
    padding: 10px;
    border:0px;
    border: 1px solid lightgray;
}

.dataTables_wrapper .dt-buttons {
    margin-bottom: 25px; 
}

/* Container per più input (valori multipli) */
.multiple-inputs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.multiple-value-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.data-input.input {
    /* Assicurati che gli input abbiano una larghezza adeguata */
    flex: 1;
}

.remove-multiple-value {
    background-color: #dc3545; /* Rosso */
    border: none;
    color: #fff;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

.remove-multiple-value:hover {
    background-color: #c82333;
}

/* Bottone per aggiungere ulteriori valori in modalità multipla */
.add-multiple-value {
    background-color: #28a745; /* Verde */
    border: none;
    color: #fff;
    padding: 4px 8px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
}

/* Hover per il bottone "aggiungi" */
.add-multiple-value:hover {
    background-color: #218838;
}


.error {
    background-color:#990000; 
    width:calc(100% - 60px); 
    color:white !important; 
    padding: 30px !important; 
    border:0px;
    text-align:center;
    z-index:100;
}
.sys-info-frame {
    position: absolute; 
    top:calc(50% - 200px); 
    background-color:#dddddd; 
    width:calc(100% - 60px); 
    color:rgb(0, 0, 0) !important; 
    padding: 30px !important; 
    border:0px;
    text-align:center;
    z-index:2500;
}
.sys-info-frame input {
    padding:10px 30px; 
    background-color:white; 
    border:0px; 
    cursor:pointer; 
    border-radius:15px;
}
.sys-error-frame {
    position: absolute; 
    top:calc(50% - 200px); 
    background-color:#990000; 
    width:calc(100% - 60px); 
    color:white !important; 
    padding: 30px !important; 
    border:0px;
    text-align:center;
    z-index:2500;
}

.sys-error-frame input {
    padding:10px 30px; 
    background-color:white; 
    border:0px; 
    cursor:pointer; 
    border-radius:15px;
}

.sys-loading-frame {
    color:black; 
    z-index:2200; 
    font-size:2.5em;
    background-color:white;
}

.sys-modal-background {
    background-color: black; 
    position:fixed; 
    top:0px; 
    left:0px; 
    height:100%; 
    width:100%; 
    opacity: 0.6; 
    z-index:2100;
}

.sys-modal-frame {
    position:fixed; 
    top: calc(50% - 150px); 
    left:0px; 
    width:100%; 
    z-index:2200; 
    text-align:center;
    padding: 50px 0px;
}

.header-bar {    
    position:fixed;
    width: 100%;
    z-index: 2100;
    height: 50px;
    overflow: hidden;
}

.dialog {
    display:none; 
    position: fixed; 
    top: 20%; 
    left: 50%; 
    transform: translateX(-50%); 
    background-color: #fff; 
    padding:20px; 
    border:1px solid #ccc; 
    border-radius:5px; 
    z-index:1000;
    min-width: 300px;
}

.frame {
    background-color: var(--frame-color);
    color: var(--frame-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.frame-title {
    background-color: var(--background-primary);
    color: var(--background-primary-text);
    padding: 12px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); 
}

.zebra-table {
    border-spacing: 0px;
    border-collapse: collapse;
}
.zebra-table tr td, th {
    padding: 6px 6px;
}
.zebra-table tr:nth-child(even) {
    background-color: #f2f2f2;
}


.button {
    padding: 6px 10px;    
    border-radius: 5px;
    border:0px;
    cursor: pointer;
}

.button:hover {
    font-weight: bold;
}
.header-button {
    display: inline-block !important;
    padding:18.5px 20px;
    float: left;    
}

.header-logo {
    padding: 0px !important;
    display: inline-block;
    background: url("../theme/images/logo.png");
    width: 200px;
    background-position: left;
    background-repeat: no-repeat;
    background-size:contain;
    height:100%;
 }

.left-sidebar-model {
    margin-top: 10px;
    margin-right:2px;
    display: grid;
    margin-left: 250px;
    column-gap: 0px;
}

.sidebar {
    background-color: var(--sidebar-color) !important;
    color: var(--sidebar-text) !important;
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 50px;
    overflow-y: auto;
}
.sidebar-title {
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--sidebar-highlight);
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar ul li {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
}

.sidebar ul li:hover {
    background-color: var(--sidebar-highlight);
    cursor:pointer;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: var(--switch-color);
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px var(--switch-color);
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(30px);
    -ms-transform: translateX(30px);
    transform: translateX(30px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }


@media only screen and (min-width: 950px) {
    .hide-large { display: none !important; }
}


@media only screen and (min-width: 750px) {
    .hide-medium { display: none !important; }
   
}
@media only screen and (max-width: 750px) {
    .hide-small { display: none !important;}  
    .header-bar {
        margin: 0px;
    }
    .header-logo {
        width: calc(100% - 105px);
        text-align: center;        
        overflow: hidden;
        background-position: center;
        margin:0px;
    }

    .left-sidebar-model {
        margin-top: 10px;
        margin-right:0px;     
        margin-left: 0px;
    }
    
    .sidebar {
        display: none;
        position: relative;
        width: 100%;
        padding-top: 10px;        
    }
}