﻿/* Demos specific */
.ctrl-fixed-width-xs,
.ctrl-fixed-width-sm,
.ctrl-fixed-width,
.ctrl-fixed-width-lg {
    width: 100%;
}

@media(min-width: 768px) {
    .ctrl-fixed-width-xs {
        width: 150px;
        min-width: 150px;
    }

    .ctrl-fixed-width-sm {
        width: 200px;
        min-width: 200px;
    }

    .ctrl-fixed-width {
        width: 320px;
        min-width: 320px;
    }

    .ctrl-fixed-width-lg {
        width: 480px;
        min-width: 480px;
    }
}

.ctrl-fixed-height {
    height: 180px;
}

.ctrl-fixed-height-lg {
    height: 350px;
}

.grid-nowrap-row > td {
    white-space: nowrap;
}

.scheduler-borderless,
.grid-borderless > .card {
    border: 0;
    box-shadow: none;
}

.animated-card
{
    position: relative;
}
.animated-card img
{
    display: block;
    margin: auto;
    height: 170px;
}
.animated-card .info
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    background-color: black;
    opacity: 0;
    text-align: center;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
}
.animated-card:hover .info
{
    opacity: 0.8;
}
.info .address
{
    padding-top: 20px;
}
.info p
{
    margin-top: 45px;
}
.animated-card .info p,
.animated-card .info span
{
    font-size: 15pt;
    color: white;
    opacity: 0;
    -webkit-transition:all 0.3s ease-out;
    -moz-transition:all 0.3s ease-out;
    -ms-transition:all 0.3s ease-out;
    -o-transition:all 0.3s ease-out;
    transition: all 0.3s ease-out;
    -moz-transform: scale(0);
    -webkit-transform: scale(0);
    -o-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}
.animated-card .info .address span
{
    font-size: 10pt;
}
.animated-card:hover .info p,
.animated-card:hover .info span
{
    opacity: 1;
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    -o-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.callback-panel {
    margin-bottom: 20px;
}

.scheduler-apt-template-bg {
    height: 100%; 
    width: 100%; 
    padding: 0.2em;
}
.scheduler-apt-template-bg > div {
    height: 100%; 
    width: 100%; 
    opacity: 0.8;
    margin-bottom: 0;
}
.dxsc-selected .scheduler-apt-template-bg > div {
    opacity: 1;
}
.scheduler-apt-template-text {
    position: absolute; 
    top: 0.5em; 
    left: 0.5em; 
    height: calc(100% - 1em); 
    width: calc(100% - 1em); 
    overflow: hidden; 
    padding: 0.2em 0.5em;
    cursor: default;

    display: flex;
    flex-direction: column;
}
.scheduler-apt-template-text p {
    margin-bottom: 0;
}
.scheduler-apt-template-text p.images {
    margin-top: auto;
    margin-bottom: 0;
}
.scheduler-apt-template-text.horizontal {
    flex-direction: row;
    justify-content: space-between;
}
.scheduler-apt-template-text.horizontal-all-day {
    flex-direction: row;
    justify-content: space-around;
}
.scheduler-apt-template-text.horizontal > p:not(:last-child) {
    margin-right: 0.4em;
}
.scheduler-apt-template-text.horizontal > p:nth-child(2) {
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.scheduler-apt-template-text.horizontal > p > span.fa {
    margin-right: 0.2em;
}

.scheduler-resource-header {
    font-weight: 500;
}

.scheduler-date-header,
.scheduler-date-header > span {
    width: 100%;
    font-weight: 500;
}
.scheduler-date-header > * {
    padding: 0.5em 1em;
}
.scheduler-date-header > a {
    padding-top: 0.6em;
}

.sparkline-demo {
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 50%;
    height:50px;
}

.fm-folders-demo {
    width: 18rem;
}

.dx-fab-demo-container-width {
    max-width: 500px;
}
.dx-fab-demo-container-height {
    height: 210px;
}
.dx-fab-demo-image {
    max-width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #C4C4C4;
}
.dx-fab-demo-caption {
    height: 1.125em;
    max-width: 140px;
    border-radius: 10px;
    background-color: #C0C0C0;
    margin-bottom: 0.5em
}
.dx-fab-demo-content {
    height: 0.75em;
    border-radius: 10px;
    background-color: gainsboro;
}
.dx-fab-demo-container-height .row {
    margin-left: 1px;
}
.dx-fab-demo-container-height .row:not(:last-child) {
    margin-bottom: 1em
}