:root {--font-size: 95%;}

* {font-size: var(--font-size) !important;}

*
{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

html,body
{
    display: inline-block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 4rem !important;
}

body
{
    background-image: url(/LoadFlow/RESOURCES/background.jpg);
    background-position: center;
    background-size: cover;
    padding: 1rem;
}

table
{
    thead>tr:first-child>th
    {
        font-size: 150%;
        text-align: left;
        padding: 1rem;
        
        input
        {
            float: right;
        }
    }    
}

table>tbody>tr>td.Actions>button
{
    font-size: 150% !important;
    padding: 1rem;
}

body.HIDE_PARCELS
{
    & tr>*.Parcels {display: none;}
}

tr>td.Parcels {cursor: pointer;}

.Block
{
    display: inline-block;
    position: absolute;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 1rem;
    border-radius: .5rem;
}

.BlockTable
{
    position: relative;
    width: calc(100% - 2rem);
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 1rem;
    border-radius: .5rem;
    
    & tbody>tr:hover
    {
        background-color: lightgrey;
    }
}

.AppVersion
{
    font-size: 50%;
}

tr.PULSE td.Id 
{
    animation: pulse 1s infinite;
    cursor: pointer;
}

table
{
    background-color: transparent !important;
    & tr>*
    {
        background-color: white;
    }
}

tbody>tr.Separator
{
    background-color: transparent;
    
    &>*
    {
        padding: .25rem;
        background-color: transparent;
        border: none;
    }

    &:hover {background-color: transparent !important;}
}

tbody>tr.SeparatorTitle
{
    font-size: 200% !important;
}

#summary
{
    display: inline-block;
    position: fixed;
    bottom: .5rem;
    right: .5rem;
    background-color: white;
    box-shadow: var(--shadow5);
    font-size: 125% !important;
    padding: .5rem;
    border-radius: .25rem;
}

#connectionInfo
{
    bottom: 2.125rem;
}

#connectionInfo_TP25
{
    bottom: .25rem;
}

.ConnectionInfo
{
    display: inline-block;
    position: fixed;
    left: .25rem;
    background-color: white;
    box-shadow: var(--shadow5);
    font-size: 90% !important;
    padding: .25rem;
    border-radius: .25rem;
    
    & .Badge
    {
        display: none;
        color: white;
        border-radius: .25rem;
        padding: .125rem;
    }

    & .Badge.Online {background-color: green;}
    & .Badge.Offline {background-color: red;}
    & .Badge.Connecting {background-color: orange;}
    
    &[status=ONLINE] .Online,
    &[status=OFFLINE] .Offline,
    &[status=CONNECTING] .Connecting
    {
        display: inline-block;
    }
    
}

@keyframes pulse
{
    0% {background-color: green;}
    50% {background-color: red;}
    100% {background-color: green;}
}


/* ---------------- PICTURES GRID (shared) ---------------- */

#picturesViewerContainer
{
    width: 65rem;
    max-width: calc(100vw - 4rem);
    max-height: 75vh;
    overflow-y: auto;
    padding: .5rem 0;
}

.PictureContainer
{
    display: inline-block;
    position: relative;
    width: 20rem;
    height: 15rem;
    margin: .5rem;
    background-color: #1a1a1a;
    box-shadow: var(--shadow5, 0 2px 6px rgba(0,0,0,.25));
    border-radius: .25rem;
    vertical-align: top;
    overflow: hidden;
}

.PictureContainer .ImageWrap
{
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.PictureContainer .ImageWrap>img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.PictureContainer.ZOOM
{
    width: 60rem;
    height: auto;
    max-width: calc(100vw - 5rem);
    max-height: calc(100vh - 10rem);
    background-color: #000;
    overflow: hidden;
}

.PictureContainer.ZOOM .ImageWrap
{
    width: 100%;
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.PictureContainer.ZOOM .ImageWrap>img
{
    width: 100%;
    height: auto;
    object-fit: initial;
}

.PictureContainer.HIDDEN
{
    display: none;
}

.PictureContainer button.ZOOM
{
    position: absolute;
    top: .5rem;
    left: .5rem;
    font-size: 150% !important;
}

.PictureContainer button.DELETE
{
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    font-size: 150% !important;
}

.PictureContainer a.DOWNLOAD
{
    position: absolute;
    bottom: .5rem;
    left: .5rem;
    display: inline-block;
    font-size: 150% !important;
    text-decoration: none;
    color: white;
    background-color: blue;
    border: 1px solid blue;
    padding: .125rem .25rem;
    border-radius: .125rem;
    box-shadow: var(--shadow2);
    cursor: pointer;
}

.PictureContainer a.DOWNLOAD:hover
{
    color: blue;
    background-color: white;
}

@media screen and (max-width: 450px)
{
    .PictureContainer a.DOWNLOAD:hover
    {
        color: white;
        background-color: blue;
    }
}

.PictureContainer .WarehouseBadge
{
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.2rem 0.6rem;
    font-size: 95%;
    font-weight: bold;
    border-radius: 0.25rem;
    z-index: 1;
}

#picturesViewer .Title
{
    font-weight: bold;
    font-size: 120%;
    display: block;
    padding: .25rem 0 .75rem 0;
}
