.ct-auto-1fr-grid{
    display:grid;
    grid-template-columns: auto 1fr;
    grid-gap: .3rem;
}

.ct-auto-auto-grid{
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: .3rem;
}

.ct-1fr-auto-grid{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-gap: .3rem;
}

.ct-auto-1fr-auto-grid{
    display:grid;
    grid-template-columns: auto 1fr auto;
    grid-gap: .3rem;
}

.ct-grid-xalign-right{
  justify-content: end;
}

.ct-grid-xalign-left{
  justify-content: start;
}

.ct-grid-xalign-center{
  justify-content: center!important;
}

.ct-grid-yalign-center{
  align-items: center;
}

.ct-ui-busy{
    position: relative;
}
.ct-ui-busy:after{
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('http://live.campaigntrack.com/CtApp/content/images/dots.gif') #ffffff no-repeat center 1rem;

    opacity: .7;
    cursor: wait;
    z-index: 9999;
}

.ct-width-full{
    width: 100%;
}

.ct-txt-left{
    text-align: left!important;
}
.ct-txt-right{
    text-align: right!important;
}
.ct-txt-xcenter{
    text-align: center!important;
}
.ct-txt-upper{
    text-transform: uppercase;
}
.ct-txt-lower{
    text-transform: lowercase;
}
.ct-txt-capital{
    text-transform: capitalize;
}
.ct-txt-nowrap{
    white-space: nowrap;
}
.ct-txt-ellipsis{
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ct-txt-noselect{
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}


.ct-txt-error{
    color: var(--DangerColor);
    font-size: 0.875rem;
    letter-spacing: .02rem;
}

.ct-txt-black{
    color: #000000;
}
.ct-txt-white{
    color: #ffffff;
}
.ct-txt-gray{
    color: #bbbbbb;
}
.ct-bg-black{
    background-color: #000000;
}
.ct-bg-white{
    background-color: #ffffff;
}

.ct-bg-img-cover{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ct-bg-img-contain{
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

[class*='ct-ratio-s']:before{
    content:'';
    display: block;
}
.ct-ratio-s1-1:before{
    padding-top:100%;
}
.ct-ratio-s16-9:before{
    padding-top:56.25%;
}
.ct-ratio-s4-3:before{
    padding-top:75%;
}
.ct-ratio-s3-2:before{
    padding-top:66.66%;
}
.ct-ratio-s8-5:before{
    padding-top:62.5%;
}

.ct-display-block{
    display: block;
}
.ct-display-iblock{
    display: inline-block;
}
.ct-display-inline{
    display: inline;
}

.ct-hidden,
.ct-display-none{
    display: none!important;
}

.ct-float-left{
    float: left;
}
.ct-float-right{
    float: right;
}
.ct-padding-0{
    padding: 0!important;
}
.ct-margin-0{
    margin: 0;
}

[disabled]{
    pointer-events: none;
    cursor: default;
    box-shadow: none;
    opacity: .4;
}

.ct-shadow-s0{
    box-shadow: none;
}
.ct-shadow-s1{
    box-shadow: 0 1px 10px 0px rgba(0, 0, 0, 0.1);
}
.ct-shadow-s2{
    box-shadow: 0 1px 20px 0px rgba(0, 0, 0, 0.1);
}
.ct-shadow-s3{
    box-shadow: 0 1px 30px 0px rgba(0, 0, 0, 0.1);
}
.ct-shadow-s4{
    box-shadow: 0 1px 40px 0px rgba(0, 0, 0, 0.1);
}
.ct-shadow-s5{
    box-shadow: 0 1px 50px 0px rgba(0, 0, 0, 0.1);
}
.ct-shadow-s6{
    box-shadow: 0 1px 60px 0px rgba(0, 0, 0, 0.1);
}


.ct-app-idle:before{
    content: "";
    display: block;
    position: fixed;
    z-index: 1;
    /* top: 1px; */
    left: -200px;
    width: 200px;
    height: 3px;
    /* border-radius: 25%; */
    background-color: #02abff;
    /* box-shadow: 0 0 2px 1px #02abff; */
    animation: ct-app-busy-ani 2s linear 2;

    opacity: 0;
    transition: opacity .3s 1s;
}
.ct-app-busy:before{
    opacity: 1;
    animation: ct-app-busy-ani 2s linear infinite;
}
@keyframes ct-app-busy-ani {
    from {left: -200px; width: 30%;}
    50% {width: 30%;}
    70% {width: 70%;}
    80% { left: 50%;}
    95% {left: 120%;}
    to {left: 100%;}
}

.ct-task-container{
    position: relative;
}
.ct-task-container.busy{
    overflow: hidden;
}
.ct-task-container:after{
    content: '';
    display: block;
    position: absolute;
    cursor:wait;
    z-index: 1;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;

    opacity:0;
    visibility: hidden;
    transition: opacity .3s, visibility 0s .3s;
}
.ct-task-container.busy:after{
    opacity:.5;
    visibility: visible;
    transition: opacity .3s, visibility 0s;
}

.ct-task-container:before{
    content: '';
    display: block;
    position: absolute;
    z-index: 1;
    top:1px;
    left: -200px;
    width: 200px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 0 0 100px 50px #ffffff;
    animation: ct-task-container-busy-ani 2s linear 1;

    opacity:0;
    visibility: hidden;
    transition: opacity .3s, visibility 0s .3s;
}
.ct-task-container.busy:before{
    opacity: .3;
    visibility: visible;
    transition: opacity .3s, visibility 0s;

    animation: ct-task-container-busy-ani 2s linear infinite;
}

@keyframes ct-task-container-busy-ani {
    from {left: -200px; width: 30%;}
    50% {width: 30%;}
    70% {width: 70%;}
    80% { left: 50%;}
    95% {left: 120%;}
    to {left: 150%;}
}
@-webkit-keyframes ct-task-container-busy-ani{
    from {left: -200px; width: 30%;}
    50% {width: 30%;}
    70% {width: 70%;}
    80% { left: 50%;}
    95% {left: 120%;}
    to {left: 150%;}
}

.ct-toggle {
    display: inline-grid;
    width: 2rem;
    border-radius: 20px;
    padding: 2px;
    background-color: #aaaaaa;
}

:checked ~ .ct-toggle {
    background-color: #2196F3;
}

.ct-toggle:before {
    content: '';
    display: inline-block;
    width: 50%;
    border-radius: 50%;
    padding-top: 50%;
    background-color: #ffffff;
    transform: translate3d(0, 0, 0);
    transition: transform .2s ease-in-out;
}

:checked ~ .ct-toggle:before {
    transform: translate3d(100%, 0, 0);
}


/* dont use anymore */
.ct-checkbox {
    display: inline-block;
    position: relative;
    overflow: hidden;

    background-color: #ffffff;
    border: 1px solid #cccccc;
    transition: background-color .2s;

    border-radius: 3px;
    outline: 0;
    cursor: pointer;
    width: 1.5rem;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}
:active ~ .ct-checkbox,
:checked ~ .ct-checkbox{
    background-color: var(--MajorColor);
    border: 1px solid var(--MajorColor);
}
.ct-checkbox:before {
    content: '';
    display: block;
    padding-top: 100%;
}
.ct-checkbox:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 51%;
    width: 0;
    height: 0;
    transform: translate(-50%,-50%) rotate(0deg);
    transition: all .2s;
}
:checked ~ .ct-checkbox:after {
    width: 35%;
    height: 70%;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: translate(-50%,-60%) rotate(40deg);
}
/* dont use anymore */


label.ct-tickbox > input{
    display: hidden;
}
label.ct-tickbox > i{
    display: inline-block;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    outline: 0;
    cursor: pointer;
    width: 1.5rem;

    background-color: #ffffff;
    border: 1px solid #cccccc;
    transition: background-color .2s;

    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}
label.ct-tickbox > :active ~ i,
label.ct-tickbox > :checked ~ i {
    background-color: var(--MajorColor);
    border: 1px solid var(--MajorColor);
}

label.ct-tickbox > i:before {
    content: '';
    display: block;
    padding-top: 100%;
}
label.ct-tickbox > i:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 51%;
    width: 0;
    height: 0;
    transform: translate(-50%,-50%) rotate(0deg);
    transition: all .2s;
}
label.ct-tickbox > :checked ~ i:after {
    width: 35%;
    height: 70%;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: translate(-50%,-60%) rotate(40deg);
}

.ct-scrollbar::-webkit-scrollbar {
    width: .7rem;
    height: .7rem;
}
.ct-scrollbar::-webkit-scrollbar-track {
    background-color: #fafafa;
    border-radius: 20px;
}
.ct-scrollbar::-webkit-scrollbar-thumb {
    background-color: #dddddd;
    border-radius: 20px;
}
.ct-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #aaaaaa;
}