/* Setting elements properties:
- Borders
- Tables
*/

:root{
    --ui-padding-default: 10px;
    --ui-border-default: 1px solid var(--color-borders-light);
    --ui-border-thin: 1px solid var(--color-borders-light);
    --ui-border-radius-size: 5px;
    --ui-shadow-default: 0px 2px 5px rgba(0,0,0,0.1);
    }

.hide{
    opacity: 0 !important;
    pointer-events: none;
    }

/* BOX */
.box{
    background-color: #fff;
    padding: 20px;
    border-radius: var(--ui-border-radius-size);
    box-shadow: var(--ui-shadow-default);
    }

/* SWITCH */
.switch{
    position: relative;
    width: 50px;
    height: 20px;
    cursor: pointer;
    }
.switch > img{
    position: absolute;
    top: 0px;
    left: 0px;
    transition: all 400ms ease;
    pointer-events: none;
    }
.switch[data-status='1']{
    background-image: url(../../img/switch-bg.png);
    background-position: 0px 0px;
    }
.switch[data-status='1'] > img{
    transform: translateX(30px);
    }
.switch[data-status='0']{
    background-image: url(../../img/switch-bg.png);
    background-position: 50px 0px;
    }
.switch[data-status='0'] > img{
    transform: translateX(0px);
    }

/* TABLE */
.table.fluid{
    width: 100%;
    border-radius: var(--ui-border-radius-size);
    outline: var(--ui-border-default);
    outline-offset: -1px;
    overflow: hidden;
    }
.table > thead{
    background-color: #FFF;
    border-bottom: var(--ui-border-default);
    background-color: rgba(0, 0, 0, 0.05);
    }
.table > thead th{
    padding: var(--ui-padding-default);
    font-family: var(--font-ui);
    font-size: var(--font-ui-size-default);
    text-align: left;
    }
.table tr{
    border-bottom: var(--ui-border-thin);
    }
.table tr:last-child{   
    border: none;
    }
.table > tbody td{
    padding: var(--ui-padding-default);
    font-family: var(--font-ui);
    font-size: var(--font-ui-size-default);
    vertical-align: middle;
    }
.table.left th,
.table.left td{
    text-align: left;
    }
.table.center th,
.table.center td{
    text-align: center;
    }
.table.right th,
.table.right td{
    text-align: left;
    }

/* CONTENT POSITION IN CELL */
.table.top th,
.table.top td{
    vertical-align:top;
    }
.table.bottom th,
.table.bottom td{
    vertical-align:bottom;
    }