:root {
    --primary: #79aec8;
    --secondary: #417690;
    --accent: #f5dd5d;
}
@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: "Roboto";
    font-size: 13px;
    background-color: #f8f8f8;
}

h1 { margin:0px; padding:0px; font-size:20px; font-weight: normal; }

.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; }
.h350    { height:350px !important; }
.h400    { height:400px !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; }

.br5       { border-radius: 5px;}
.br10       { border-radius: 10px;}

.bg-highlight { background-color: lightyellow !important; color:black !important; }

.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 !important; color:white !important;}
.bg-warning      { background-color: rgb(219, 152, 27) !important; color:white !important;}
.bg-gray        { background-color: gray; color:white !important; }
.bg-lightgray   { background-color: lightgray  !important; }
.bg-blue        { background-color: cornflowerblue !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:blue !important; }
.gray           { color:gray !important; }
.lightgray      { color: lightgray  !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; }

.border     { border: 1px solid lightgray; }
.shadow     { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }

.bg-main                        { background-color: var(--primary) !important; color:white !important; }
.bg-secondary                   { background-color: var(--secondary) !important; color:white !important; }
.bg-secondary.hover:hover       { background-color: var(--primary) !important; color:white !important; }

.bg-active  { background-color:var(--secondary); color:white; }
.color-main { color:var(--primary); }
.color-secondaty { color:var(--secondary); }

a {  color:var(--secondary); text-decoration: none;  }

.input {
    width: calc(100% - 20px);
    padding: 10px;
    border:0px;
    border: 1px solid lightgray;
}

.uploader {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    position: relative;
    cursor: pointer;
}
.uploader.dragover {
    background-color: lightskyblue;
}
.upload-progress-bar {
    width: 100%;
    height: 20px;
    border-radius: 5px;
    background-color: #f3f3f3;
    margin-top: 20px;
}

.upload-progress-bar-fill {
    height: 100%;
    width: 0;
    background-color: #76c7c0;
    border-radius: 5px;
    transition: width 0.4s ease;
}

.bold { font-weight: bold; }

.tag { 
    background-color: lightskyblue;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 5px;
    margin-right: 10px;
    display: inline-block;
}

.header-bar {    
    background-color: white;
    color:black;
    position:fixed;
    width: calc(100vw);
    height:40px;
    overflow: hidden;
}

.v-line {
    border-bottom:1px solid darkgray;
}

.inline {
    display: inline-block;
}

.map {
    width:100%;
    height:400px;
    z-index:100
}

.dashboard {
    padding:0px;
}

.header-button {
    display: inline-block !important;
    padding:10px 20px;
    float: left;
}

.header-logo {
   padding: 0px !important;
   display: inline-block;
}


.data-input-container h2 {
    margin-bottom: 30px;
}

.data-input-container input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.data-input-container select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.data-input-container button {
    margin-top:15px;
    background-color: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 10px 20px;
    cursor: pointer;
}

.data-input-container .links {
    margin-top: 30px;			
}

.data-input-container.links a {
    text-decoration: none;
    margin-right: 15px; /* Riduci lo spazio tra i link */
    color:var(--secondary);
    font-size: 14px; /* Riduci la dimensione del carattere dei link */
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-container h2 {
    margin-bottom: 30px;
}

.login-container input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.login-container select {
    width: calc(100%);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.login-container button {
    margin-top:15px;
    background-color: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 10px 20px;
    cursor: pointer;
}

.login-container .links {
    margin-top: 30px;			
}

.login-container .links a {
    text-decoration: none;
    margin-right: 15px; /* Riduci lo spazio tra i link */
    color:var(--secondary);
    font-size: 14px; /* Riduci la dimensione del carattere dei link */
}

.splash-frame {
    font-family: Arial, sans-serif;
    background-image: url('../images/splash.jpg');
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.content {
    flex-grow: 1;
}

.inline-input {
    padding: 5px;
}

.login-input {
    border-bottom:1px solid rgb(117, 117, 117);
}

.login-input input {
    border:0px; 
    padding:10px; 
    width:calc(100% - 40px); 
    font-size:15px;
}

.login-input input:focus {
    outline-width: 0;
}

.button {
    display: inline-block !important;
    padding: 10px 25px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}
.zebra-table {
    width: 100%;
    border-collapse: collapse;

}
.zebra-table th, .zebra-table td {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 8px;
}
.zebra-table th {
    background-color: #f2f2f2;
    text-align: left;
}
.zebra-table tr:nth-child(even) {
    background-color: #f9f9f9; /* Light gray for even rows */
}
.zebra-table tr:nth-child(odd) {
    background-color: #ffffff; /* White for odd rows */
}
/* The switch - the container */
.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;
    transition: .4s;
    border-radius: 28px;
  }
  
  /* The slider before */
  .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  /* Checkbox checked - move the slider to the right */
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  /* Move the slider/knob */
  input:checked + .slider:before {
    transform: translateX(32px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 28px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }
.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:500;
}
.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:1002;
}

.sys-error-frame input {
    padding:10px 30px; 
    background-color:white; 
    border:0px; 
    cursor:pointer; 
    border-radius:15px;
}

.sys-loading-frame {
    color:black; 
    z-index:200; 
    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:100;
}

.sys-modal-frame {
    position:fixed; 
    top: calc(50% - 150px); 
    left:0px; 
    width:100%; 
    z-index:200; 
    text-align:center;
    padding: 50px 0px;
}

.user-options span {
    margin-left: 10px;
}

.container {
    display: flex;
    margin-top:0px;
}
.content {    
    margin: 0px 0px 0px 200px;
    width: 100%;    
}
.sidebar {
    width: 200px;
    background-color: #e9e9e9;
    height: calc(100vh - 40px);
    border-right: 1px solid lightgray;
    position: fixed;
    z-index: 1200;
    overflow-y: auto;
}

.sidebar-line {
    border-bottom: 1px solid #ccc;    
}
.sidebar-item {
    display: grid;
    grid-template-columns: 15px auto;    
    grid-column-gap: 10px;
    padding: 10px 0px 10px 10px;
    border-bottom: 1px solid #ccc;    
}

.sidebar-item:hover {
    background-color: var(--primary) !important; 
    color:white !important;
}

.frame {
    padding: 15px;
    background-color: white;
    border-radius: 5px;
}
.home-button {
    padding:15px 15px;
    margin:10px;
    background-color: white;
    border-radius: 5px;
    display: inline-block;
    height:100px;
    width: 200px;
    text-align: center;
    cursor: pointer;
}
.tile {
    padding:15px 15px;
    margin:10px;
    background-color: white;
    border-radius: 5px;
    display: inline-block;
}
.tile-250 {
    width: 250px !important;
    overflow-x: hidden;
}
.tile-home {
    width: 200px !important;
    height: 150px !important;
    overflow: hidden;    
}
.tile-home-add {
    width: 500px !important;
    height: 150px !important;
    overflow: hidden;
}

.info-table tr td {
    padding:15px;
}

.device-info-table {
    display:grid; 
    grid-template-columns: 130px auto; 
    row-gap: 10px; 
    column-gap: 10px;
}

.device-details-btn {
    display: grid;
    grid-template-columns: 30px auto;
    column-gap: 20px;
}

.device-header {
    display: grid;
    grid-template-columns: 50px auto;
}

.org-header {
    display: grid;
    grid-template-columns: auto 100px 100px;
}

.device-table {
    display: grid;
    grid-template-columns: 50px auto 100px 100px;
    padding: 10px 0px;
}
.fade-hover {
    opacity: 50%;
}
.fade-hover:hover {
    opacity: 100%;
}
.hover:hover {
    background-color: rgb(53, 94, 65) !important;
    color:white !important;
}

.bottom-bar {
    position: fixed; 
    bottom: 0; 
    left: 200px; 
    width:calc(100% - 200px);
    background: rgb(68, 68, 68) !important;
    color: white !important;
    padding: 10px; 
    text-align: center;     
}

.tile-data {
    background-color: rgb(243, 243, 243);
    border-radius: 10px;
    overflow: hidden;
    margin-right: 25px;
    margin-bottom: 20px;
    display: inline-block;
    padding:0px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.tile-data-center {
    display: inline-block; 
    text-align: center; 
    position: relative;
}
.tile-data-center .vcenter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.tile-data .grid {
    display: grid; 
    grid-template-columns: 80px auto; 
    grid-column-gap: 10px;
    height: 100%; 
    width: calc(100% - 30px);
}
.tile-data .icon {
    font-size:50px;
    text-align: center;
}
.tile-data .grid div {
    width: 100%;
    margin: auto;
}

.home-tile {
    background-color: rgb(252, 252, 252);
    overflow: hidden;    
    padding:20px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin-right: 25px;
    margin-bottom: 25px;        
    display: inline-block !important;
}

.tile-100 {   
    width: calc(100% - 80px);   
}

.tile-75 {   
    width: calc(75% - 80px);   
}

.tile-60 {   
    width: calc(60% - 80px);   
}

.tile-50 {   
    width: calc(50% - 80px);   
}

.tile-40 {   
    width: calc(40% - 80px);   
}

.tile-25 {   
    width: calc(25% - 80px);   
}

.full-tile-graph {
    display: grid !important; 
    grid-template-columns: 300px 1fr; 
    gap:1rem; 
    height:100%; 
    column-gap: 50px;
}
.tile-gray {
    color: #000 !important;
    background-color: #f1f1f1 !important;
    width: 180px;
    padding: 10px;
    margin: 5px;
    display: inline-block;
}

.tile-gray div {
    padding: 4px;
}

.hidden { display: none !important;}

.photo-container {
    width: 220px;
    height: 220px;
    border: 1px solid #000;
    text-align: center;
    margin: 15px;
    display: inline-block;
}
.photo-container img {
    width: 219px; height: 120px; border: 1px solid black;
}
.photo-preview img {
    width: 100px;
    height: 100px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


.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;
}

.details-info-table {
    width: 100%;
    border-collapse: collapse;
}

.details-info-table td {
    padding: 10px !important;
    vertical-align: middle;
}

/* Prima colonna fissa 25px */
.details-info-table .icon-col {
    width: 25px;
    text-align: center;
}

/* Seconda colonna fissa 300px */
.details-info-table .name-col {
    width: 300px;
    padding-left: 10px;
    white-space: nowrap;
}


.vehicle-info-table {
    width: 100%;
    border-collapse: collapse;
}

.vehicle-info-table td {
    padding: 10px !important;
    vertical-align: middle;
}

/* Prima colonna fissa 25px */
.vehicle-info-table .icon-col {
    width: 25px;
    text-align: center;
}

/* Seconda colonna fissa 300px */
.vehicle-info-table .name-col {
    width: 300px;
    padding-left: 10px;
    white-space: nowrap;
}

/* Regola hover per evidenziare la riga */
.employee-info-table tr:hover {
    background-color: var(--background-hover-color);
    color: var(--hover-color);
}

/* Stili specifici per la tabella dei dettagli del fornitore */
.employee-info-table {
    width: 100%;
    border-collapse: collapse;
}

.employee-info-table td {
    padding: 10px !important;
    vertical-align: middle;
}

/* Prima colonna fissa 25px */
.employee-info-table .icon-col {
    width: 25px;
    text-align: center;
}

/* Seconda colonna fissa 300px */
.employee-info-table .name-col {
    width: 300px;
    padding-left: 10px;
    white-space: nowrap;
}

/* Regola hover per evidenziare la riga */
.employee-info-table tr:hover {
    background-color: var(--background-hover-color);
    color: var(--hover-color);
}

@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
}


@media only screen and (max-width: 850px) {
}


@media (max-width: 768px) {
    .login-container {
        max-width: 90%;
    }
}

@media only screen and (min-width: 550px) {
    .hide-large { display: none !important; }
}
@media only screen and (max-width: 550px) {
    .hide-small { display: none !important;}
    .sidebar { 
        width: 100%;
        display: none;
    }
    .container { margin-left:0px; }
    .content {
        display: block;
        margin: 0px 0px;        
    }

    .home-button {
        display: block;
        width: calc(100% - 50px);
    }
    .device-info-table, .device-header, .org-header {
        display: block;
    }
    .device-header, .org-header div {
        padding-top:5px;
    }
    .device-info-table div {
        padding: 5px 0px 5px 15px;
    }
    
    
    .device-table {
        display: block;     
        border-top:1px solid darkgray;  
        padding: 15px 5px 20px 5px;  
        margin-top:10px;       
    }
    .device-table div {
        padding-top:5px;
    }

    .tile-data {
        display: block;
        margin:15px 10px;
        padding: 0px 15px;
        width: calc(100% - 50px) !important;
    }
    .tile-data .grid {        
        grid-template-columns: 110px auto;
    }

}

@media only screen and (max-width: 400px) {

}