/* varela-regular - latin */
@font-face {
    font-family: 'Varela';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/varela-v9-latin-regular.eot'); /* IE9 Compat Modes */
    src: local('Varela'),
    url('../fonts/varela-v9-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/varela-v9-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ url('../fonts/varela-v9-latin-regular.woff') format('woff'), /* Modern Browsers */ url('../fonts/varela-v9-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/varela-v9-latin-regular.svg#Varela') format('svg'); /* Legacy iOS */
}

/* oxygen-regular - latin */
@font-face {
    font-family: 'Oxygen';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/oxygen-v8-latin-regular.eot'); /* IE9 Compat Modes */
    src: local('Oxygen Regular'), local('Oxygen-Regular'),
    url('../fonts/oxygen-v8-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/oxygen-v8-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ url('../fonts/oxygen-v8-latin-regular.woff') format('woff'), /* Modern Browsers */ url('../fonts/oxygen-v8-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/oxygen-v8-latin-regular.svg#Oxygen') format('svg'); /* Legacy iOS */
}

html, body {
    margin: 0 auto;
    padding: 0;
    font-family: Oxygen, Varela, 'Open Sans', sans-serif;
    font-size: 1em;
    height: 100% !important;
}


.wrapper {
    margin: 0 auto;
    position: relative;
    min-height: calc(100vh - 5em);
}

.wrapper.login {
    background-color: #1e272c;
    height: 100vh;
    width: 100vw;
    position: fixed;
    margin: 0;
}

.wrapper > .content {
    position: relative;
    overflow: auto;
    margin-left: 240px;
    margin-top: 3.5em;
    padding: 1em 1.2em;
    transition: all 0.5s linear;
    min-height: calc(100vh - 5em) !important;
}

.wrapper > nav.sidebar {
    background-color: #354052;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 5;
    outline: none;
    width: 240px;
    color: #dadada;
    -webkit-box-shadow: 5px 0px 15px 0px rgba(191, 191, 191, 1);
    -moz-box-shadow: 5px 0px 15px 0px rgba(191, 191, 191, 1);
    box-shadow: 5px 0px 15px 0px rgba(191, 191, 191, 1);
    transition: all 0.5s linear;
    background: linear-gradient(rgba(53, 64, 82, .9), rgba(53, 64, 82, .9)), url('../img/sidebar.png');
    background-size: cover;
    background-repeat: no-repeat;
    /*overflow-y: auto;*/
}

.wrapper nav.sidebar > .close.sidebar {
    padding: 0.5em;
    display: none;
    text-align: right;
}

.wrapper nav.sidebar > .close.sidebar a {
    color: #fafafa;
}

.wrapper nav.sidebar .vertical.menu {
    margin: 0 0 1em 0 !important;
}

.avatar {
    margin: 0 auto;
    padding: 2em 1em 0.5em 1em;
    text-align: center;
    transition: all 0.5s linear;
}

.avatar img {
    max-width: 110px;
    max-height: 150px;
    border-radius: 50%;
    border: 4px solid #1599ec;
    padding: 0.5em;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    transition: all 0.5s linear;
    object-position: 50% 50%;
}

.avatar h2 {
    font-size: 1em;
    font-weight: normal;
    margin-top: 1em;
    margin-bottom: 0;
    transition: all 0.5s linear;
}

.avatar h3 {
    font-size: 0.9em;
    margin-top: 0;
    transition: all 0.5s linear;
}


nav.sidebar .vertical.menu .inverted.header.item {
    color: #999999;
    font-weight: bold;
    font-size: 0.6em;
    margin: 0 !important;
    padding: 0.5em 1.5em !important;
    transition: all 0.3s linear;
}

nav.sidebar .vertical.menu .item {
    font-size: 0.95em;
    margin: 0 !important;
    padding: 0.5em 1em 0.5em 1em !important;
    transition: all 0.3s linear;
}

nav.sidebar .vertical.inverted.text.menu > .item:hover {
    background-color: #2d3645 !important;
}

nav.sidebar .vertical.inverted.text.menu > .inverted.header.item:hover {
    background-color: #354052 !important;
}

nav.sidebar .vertical.inverted.text.menu > .active.item {
    background-color: #2d3645 !important;
}

nav.sidebar .scroll {
    overflow-y: auto;
    height: -webkit-calc(100vh - 300px);
    height: -moz-calc(100vh - 300px);
    height: calc(100vh - 300px);
}

nav.sidebar .scroll:before {
    content: '';
    width: 100%;
    height: 10%;
    position: absolute;
    left: 0;
    bottom: 0;
    background: linear-gradient(transparent 30px, black);
}

nav.sidebar .scroll .accordion .content {

    padding-top: 0 !important;
    transition: background-color 0.3s linear
}

nav.sidebar .scroll .accordion .content .menu .item {
    padding-left: 40px !important;
}

nav.sidebar .scroll .accordion .content .menu .item:hover {
    background-color: #3d4655 !important;
}

nav.sidebar .scroll .accordion .title.item.active, nav.sidebar .scroll .accordion .content.active {
    background-color: #2d3645 !important;

}

nav.sidebar .scroll .accordion .content {
    padding-bottom: 0 !important;
}

.wrapper > .fixed.top.menu {
    margin-left: 240px;
    width: calc(100% - 240px) !important;
    background: #ffffff;
    border-bottom: 1px solid #efefef;
    -webkit-box-shadow: 0px 10px 8px -5px rgba(217, 217, 217, 1);
    -moz-box-shadow: 0px 10px 8px -5px rgba(217, 217, 217, 1);
    box-shadow: 0px 10px 8px -5px rgba(217, 217, 217, 1);
    padding-left: 1em;
    transition: all 0.5s linear;
}

.wrapper > .fixed.top.menu > .item, .wrapper > .fixed.top.menu .right.menu .dropdown.item {
    font-size: 0.95em !important;
}

/* sidebar tablet */
.wrapper.tablet > .content, .wrapper.tablet > .fixed.top.menu {
    margin-left: 90px;
}

.wrapper.tablet > .fixed.top.menu {
    width: calc(100% - 90px) !important;
}

.wrapper.tablet > nav.sidebar {
    width: 90px;
}

.wrapper.tablet .avatar img {
    max-width: 50px;
    border: 2px solid #1599ec;
}

.wrapper.tablet nav.sidebar .vertical.menu .item {
    text-align: center;
}

.wrapper.tablet nav.sidebar .vertical.menu .item > i {
    font-size: 1.2em;
    height: 1em;
}

.wrapper.tablet .avatar h2, .wrapper.tablet .avatar h3, .wrapper.tablet nav.sidebar .vertical.menu .item > span, nav.sidebar .vertical.menu i.dropdown.icon, .wrapper.tablet nav.sidebar .vertical.menu .inverted.header.item {
    display: none;
}

.hide {
    display: none;
}

/* end sidebar tablet */

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .wrapper > .content, .wrapper > .fixed.top.menu {
        margin-left: 90px;
    }

    .wrapper > .fixed.top.menu {
        width: calc(100% - 90px) !important;
    }

    .wrapper > nav.sidebar {
        width: 90px;
    }

    .avatar img {
        max-width: 50px;
        border: 2px solid #1599ec;
    }

    nav.sidebar .vertical.menu .item {
        text-align: center;
    }

    nav.sidebar .vertical.menu .item > i {
        font-size: 1.2em;
        height: 1em;
    }

    .avatar h2, .avatar h3, nav.sidebar .vertical.menu .item > span, nav.sidebar .vertical.menu i.dropdown.icon, nav.sidebar .vertical.menu .inverted.header.item {
        display: none;
    }

    .field {
        margin-bottom: 1em !important;
    }

    .ui.sub-main.segment img {
        width: 350px !important;
    }
}

.rounded {
    -webkit-border-radius: 24px !important;
    -moz-border-radius: 24px !important;
    border-radius: 24px !important;
}

@media screen and (max-width: 767px) {
    .wrapper > .content, .wrapper > .fixed.top.menu {
        margin-left: 0px;
    }

    .wrapper > .fixed.top.menu {
        width: 100% !important;
    }

    .wrapper > nav.sidebar {
        width: 100%;
        z-index: 1000;
        display: none;
    }

    .avatar img {
        max-width: 100px;
        border: 4px solid #1599ec;
    }

    .wrapper nav.sidebar .vertical.menu .item > i {
        font-size: 1.2em;
        height: 1em;
    }

    .wrapper nav.sidebar > .close.sidebar {
        display: block;
    }

    .wrapper.login .segment .stackable.divided.grid .column {
        padding: 1rem !important;
    }

    .wrapper.login .segment .fields {
        margin-bottom: 1em !important;
    }

    .field {
        margin-bottom: 1em !important;
    }

    .swiper-description {
        margin-bottom: 0 !important;
    }

    .swiper-description .ui.header {
        font-size: 0.8em;
    }

    .swiper-description .ui.header .sub.header {
        font-size: 0.7em;
    }

    .ui.vertical.menu .dropdown.item .menu {
        left: 30% !important;
    }

    .ui.sub-main.segment img {
        width: 350px !important;
    }
}

.page-info {
    padding: 1em;
}

td > .action {
    transition: opacity 1s ease-out;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

td:hover > .action {
    opacity: 1;
    height: auto;
}

td > .horizontal.small.label {
    margin-bottom: 0.3em;
    margin-right: 0.2em;
    font-size: 0.75em;
}

h1.ui.header > .right.floated.button {
    margin-top: 1.3em;
}

.ui.login.grid {
    padding-top: 10%;
}

.ui.login.grid .grid .column {
    padding: 2.5em 1.5em 2em 1.5em;
}

.right.aligned.field {
    text-align: right;
}

.ui.fullscreen.modal {
    left: auto !important;
}

.ui.category.list .item > .list {
    padding: 0.25em 0 0 1.5em;
}

.ui.category.checkbox input.hidden + label {
    font-size: 0.8em !important;
}

.full-height {
    height: 100%;
}

.media.modal .ui.tab {
    min-height: 35em;
    max-height: 35em;
    overflow-y: auto;
}

.ui.error.message {
    font-size: 0.8em;
}

#data {
    margin-top: 0.8em;
}

/* Header Section */
header {
    padding: 25px 0 10px 0;
}

.featured .medium.header {
    margin: 5px 0 3px 0;
}

.ui.content.container .ui.secondary.pointing.menu {
    margin-top: 0px;
}

.ui.compact.grid .row:not(:first-child) {
    padding-top: 0.3rem;
}

.ui.compact.grid .row {
    padding-bottom: 0.3rem;
}

.ui.compact.grid .row .column {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
}

.object-fit_fill {
    object-fit: fill;
    object-position: 50% 50%;
}

.object-fit_contain {
    object-fit: contain;
    object-position: 50% 50%;
}

.object-fit_cover {
    object-fit: cover;
    object-position: 50% 50%;
}

.object-fit_none {
    object-fit: none;
    object-position: 50% 50%
}

.object-fit_scale-down {
    object-fit: scale-down;
    object-position: 50% 50%;
}

.ui.main.segment img {
    max-width: 620px;
    max-height: 400px;
    -moz-filter: grayscale(0%);
    -webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */
    filter: grayscale(0%);
    transition: grayscale 0.5s;
}

.ui.sub-main.segment img {
    width: 250px;
    -webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */
    -moz-filter: grayscale(0%);
    filter: grayscale(0%);
    transition: grayscale 0.5s;
}

.ui.main.segment, .ui.sub-main.segment {
    overflow: hidden;
    padding: 0px !important;
    object-fit: cover;
}

.ui.main.segment .title.header {
    background: rgba(0, 0, 0, 0.8);
    bottom: -25%;
    padding: 15px;
    height: 40%;
    left: 0%;
    position: absolute;
    transition: bottom 0.5s ease;
    width: 100%;
}

.ui.sub-main.segment .title.header {
    background: rgba(0, 0, 0, 0.8);
    bottom: -100%;
    padding: 10px;
    left: 0%;
    position: absolute;
    transition: bottom 0.5s ease;
    width: 100%;
}

.ui.main.segment .title.header .sub.header {
    opacity: 0;
    transition: opacity 0.5s ease;
    color: #dedede;
    margin-top: 8px
}

.ui.main.segment:hover .title.header, .ui.sub-main.segment:hover .title.header {
    bottom: 0%;
}

.ui.main.segment:hover .title.header .sub.header {
    opacity: 1;
}

.ui.main.segment:hover img, .ui.sub-main.segment:hover img {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
}

.content.container {
    padding: 15px;
}

.layout-header {
    z-index: 2;
    background-image: url("../img/header-bg.png");
    background-repeat: repeat-x;
}

.layout-header .ui.container {
    padding-top: 1.5em;
}

.layout-swiper {
    position: relative;
    width: 100%;
    height: 100%;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.swiper-description {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-bottom: 30px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 10px 0;
}

.swiper-description a {
    color: #ffffff;
    font-style: italic;
}

.white {
    color: white;
}

.layout-swiper .ui.slogan.grid {
    position: absolute;
    left: 0;
    bottom: 2em;
    right: 0;
    margin: auto;
}

.layout-main {
    margin: 2em auto;
    padding: 1em;
}

.layout-footer {
    /*background: #f9f9f9 !important;*/
    padding: 3em 1em;
    font-size: 0.9em;
    text-align: center;
}

/* Photo Profile */
.photo {
    width: 100%;
    height: 100%;
}

.photo .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.5s ease;
}

.photo:hover .overlay {
    display: block;
    background: rgba(0, 0, 0, .3);
}

.photo .button {
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 8%;
    top: 80%;
    text-align: center;
    opacity: 0;
    transition: opacity .35s ease;
}

.photo:hover .button {
    opacity: 1;
}

/* fullscreen touch */
.touch {
    background-image: url(/static/img/touch-bg.jpg);
    height: 100%;
    width: 100%;
    background-size: cover;
    height: 100vh;
    position: relative;
}

.touch .floating {
    position: absolute;
    top: 40%;
    left: 65%;
    transform: translate(-10%, -30%);
    max-width: 500px;
}

.touch .ui.segment {
    transition-property: background;
    transition-duration: 0.2s;
    transition-timing-function: linear;
}

.touch .ui.segment .ui.header, .touch .ui.segment:active .ui.header .sub.header {
    transition-property: color;
    transition-duration: 0.1s;
    transition-timing-function: linear;
}

.touch .ui.segment:active {
    background-color: #3296e1 !important;
    color: #dfdfdf;
}

.touch .ui.segment:active .ui.header {
    color: #dfdfdf;
}

.touch-header {
    margin-bottom: 200px;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.touch-header h1.ui.header {
    font-size: 1.5em;
}

.touch-header h1.ui.header .sub.header {
    font-size: 0.8em;
}

.display {
    height: 100%;
    width: 100%;
    height: 100vh;
    padding: 1em;
}

.display .counter {
    font-size: 5em !important;
    text-align: center;
    margin: 0.1em !important;
}

.display .ui.segment {
    background-image: url(/static/img/counter-bg.jpg);
    background-size: cover;
}

.display #number {
    font-size: 12em !important;
    font-weight: bold;
    margin: 1em 0.1em;
}

.display #queue-name {
    font-size: 2em !important;
    font-style: italic;
}

.display #service {
    font-size: 3em !important;
    font-weight: bold;
}

.display video {
    width: 100%;
}

#data {
	overflow-x: auto;
	overflow-y: auto;
    padding-bottom: 1em;
    max-height: 90vh;
}

table .sticky.table {
  position: relative;
  border-collapse: collapse;
}

.sticky.table td,
.sticky.table th {
  padding: 0.25em;
}

.sticky.table thead th {
  position: -webkit-sticky; /* for Safari */
  position: sticky;
  top: 0;
  background: #fff;
}

.sticky.table thead th:first-child {
  left: 0;
  z-index: 100;
}

.sticky.table tbody th {
  position: -webkit-sticky; /* for Safari */
  position: sticky;
  left: 0;
  background: #FFF;
    border-top: 1px solid #dcdcdc !important;
}
