/* ----- VARIABILI COLORI ------------------------------------------------------------------------- */
:root {
    
    --fontFamily:         unset;
    --bodyBackground:     #f5f5f5;
    --firstColor:         rgb(13, 70, 255);
    --secondColor:        rgb(13, 202, 240);
    --secondColor-transp: rgba(13, 202, 240, 0.3);
    --sidebarBackground:  white;
    --sidebarColor:       #6c757d;
    --sidebarTitle:       rgb(13, 70, 255);
    --footerBackground:   #f5f5f5;

    
    /*
    --fontFamily:         "Roboto";
    --bodyBackground:     #f5f5f5;
    --firstColor:         rgb(130, 2, 126);
    --secondColor:        rgb(255, 102, 0);
    --secondColor-transp: rgba(255, 102, 0, 0.3);
    --sidebarBackground:  #212121;
    --sidebarColor:       white;
    --sidebarTitle:       rgb(255, 102, 0);
    --footerBackground:   #212121;
    */

    
    /* ----- Fixed color ----- */

    --gray:              #6c757d;
    --light-gray:        #f5f5f5;
    --light-gray-transp: rgba(128, 128, 128, 0.5);
    --dark-gray:         #4d4d4d;

    --colorRack:    saddlebrown;
    --colorLocator: green;

    /* ----- Constant color ----- */

    --COLOR_HSLA_RED   : hsla(0,   100%, 50%, 0.5);
    --COLOR_HSLA_YELLOW: hsla(60,  100%, 50%, 0.5);
    --COLOR_HSLA_GREEN : hsla(120, 100%, 50%, 0.5);
    --COLOR_HSLA_CYAN  : hsla(180, 100%, 50%, 0.5);
    --COLOR_HSLA_BLUE  : hsla(240, 100%, 50%, 0.5);
}

/* ----- GENERALI --------------------------------------------------------------------------------- */

* {
    font-family: var(--fontFamily);
}

a {
    color: var(--firstColor);
}

a:hover {
    color: var(--firstColor);
}

.btn-primary {
    background-color: var(--firstColor) !important;
    border-color: var(--firstColor) !important;
}

.btn-info {
    background-color: var(--secondColor) !important;
    border-color: var(--secondColor) !important;
}

/* ----- BODY ------------------------------------------------------------------------------------- */

body {
    background-color: var(--bodyBackground);
}

/* ----- MAIN ------------------------------------------------------------------------------------- */
.main {
    width: calc(100% - 200px); 
    margin-left: 200px;
    margin-top: 20px;
    transition: 0.5s;

    background-color: var(--light-gray);
}

.main-small {
    width: calc(100% - 70px);
    margin-left: 70px;
}

@media screen and (max-width: 1000px) {
    .main {
        width: calc(100% - 70px);
        margin-left: 70px;
    }
}

/* ----- DIV ALERT SIZE --------------------------------------------------------------------------- */
#div-alert-size {
    display: none;
    position: absolute;
    z-index: 999999;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bodyBackground);
}

#div-alert-size span {
    position: absolute;
    left: calc(50% - 160px);
    top: calc(50% - 75px);
    width: 320px;
    background-color: white;
    box-shadow: 1px 1px 10px var(--gray);
    padding: 5px;
    border-radius: 5px;
    color: var(--dark-gray);
    text-align: center;
}

#alert-size {
    display: none;
    margin-bottom: 0;
    border-radius: 0;
    z-index: 100;
}

@media screen and (max-width: 799px) {
    html {
        font-size: 10px;
    }
    #alert-size.show {
        display: block;
    }
}

@media screen and (max-height: 599px) {
    /*html {
        font-size: 10px;
    }*/
    #alert-size.show {
        display: block;
    }
}

/* ----- DEFALUT ---------------------------------------------------------------------------------- */
.default-title {
    color: var(--firstColor);
    font-weight: 400;
    margin: 10px;
}

.default-title-with-action {
    display: flex;
    justify-content: space-between;
}


.default-title-with-action .div-action span {
    font-size: 15px;
    color: var(--dark-gray);
}

.default-title-with-action .div-action input {
    font-size: 15px;
}

.default-title-with-csv {
    display: flex;
    justify-content: space-between;
}

.default-div {
    margin: 20px;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 1px 1px 10px var(--gray);
}

.default-pagination {
    position: sticky;
    top: 0px;
    height: 45px;
    margin-left: 10px;
    z-index: 2;
    background-color: white;
}

.default-pagination nav {
    display: flex;
}

.default-point {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--secondColor);
    border-radius: 50%;
    box-shadow: 1px 1px 10px var(--secondColor);
}

.default-span-input {
    display: flex;
    flex-direction: column;
    padding: 0px;
    margin: 5px;
    width: 200px;
}

.default-span-input span {
    width: 200px;
    padding-left: 10px;
}

.default-span-input input {
    width: 200px;
}

.default-span-input select {
    height: 30px;
}

.default-input-ip-address {
    width: 50px;
}

.default-input-MAC {
    text-transform: uppercase;
}

input, select {
    outline-color: var(--dark-gray);
}

/* ----- Div disabled */
.div-all-disabled {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: var(--light-gray-transp);
    border-radius: 5px;
}

/* ----- Div overflow */
.div-overflow {
    overflow: scroll;
    max-height: 500px;
}

.div-overflow::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.div-overflow::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px var(--light-gray); 
    border-radius: 5px;
}

.div-overflow::-webkit-scrollbar-thumb {
    background: var(--gray); 
    border-radius: 5px;
}

/* ----- Div overflow table */
.div-overflow .table thead {
    position: sticky;
    top: 0px;
    background-color: white;
    box-shadow: inset 0 -1px 0 var(--firstColor);
    z-index: 2;
}

/* ----- Table */
.table {
    color: var(--dark-gray);
    margin: 10px;
    width: calc(100% - 20px);
}

.table .td-icon {
    text-align: center;
}

.table .td-icon i {
    margin: 2px;
}

.table .td-icon i:hover {
    cursor: pointer;
    color: var(--firstColor);
}

/* ----- Export CSV */
.btn-export-csv {
    color: var(--firstColor);
    border: none;
    background-color: transparent;
}

.btn-export-csv:disabled,
.btn-export-csv[disabled] {
    opacity: 0.65;
}

/* ----- FOOTER ----------------------------------------------------------------------------------- */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--footerBackground);
    color: var(--gray) !important;
}