/* Miligram overrides */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
}

.top-nav-links,
.side-nav,
h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: #363637;
}

a {
    color:#2f85ae;
    -webkit-transition:all 0.2s linear;
    transition:all 0.2s linear;
}

a:hover,
a:focus,
a:active  {
    color:#2a6496;
    -webkit-transition:all 0.2s easeout;
    transition:all 0.2s ease-out;
}

.side-nav a,
.top-nav-links a,
th a,
.actions a {
    color: #606c76;
}

.side-nav a:hover,
.side-nav a:focus,
.actions a:hover,
.actions a:focus {
    color:#2f85ae;
}

/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main */
body {
    background: #f5f7fa;
}
.content {
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.4rem;
    /* Thanks Stripe */
    box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
        0 3px 6px 0 rgba(0, 0, 0, 0.07);
}
.actions a {
    font-weight: bold;
    padding: 0 0.4rem;
}
th {
    white-space: nowrap;
}

/* Nav bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 112rem;
    padding: 2rem;
    margin: 0 auto 2rem;
}
.top-nav-title a {
    font-size: 2.4rem;
    color: #d33c43;
}
.top-nav-title span {
    color: #404041;
}
.top-nav-links a {
    margin: 0 0.5rem;
}
.top-nav-title a,
.top-nav-links a {
    font-weight: bold;
}

.side-nav-item {
    display: block;
    padding: 0.5rem 0;
}

/* View action */
.view.content .text {
    margin-top: 1.2rem;
}
.related {
    margin-top: 2rem;
}

/* Flash messages */
.message {
    padding: 1rem;

    background: #eff8ff;
    color: #2779bd;

    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.message.hidden {
    display: none;
}
.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}
.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

/* Forms */
.input.radio,
.input.checkbox {
    margin-bottom: 2.0rem;
}
.input.radio input,
.input.checkbox input {
    margin: 0;
}
.input.radio label,
.input.checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
}
.input.radio label > input,
.input.checkbox label > input {
    margin-right: 1.0rem;
}
.input.radio label:first-of-type {
    margin-bottom: 2.0rem;
}

/* Paginator */
.paginator {
    text-align: right;
}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.pagination li {
    margin: 0 0.5rem;
}
.prev.disabled a,
.next.disabled a {
    cursor: not-allowed;
    color: #606c76;
}
.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}

/* Error */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
}

@media screen and (max-width: 640px) {
    .top-nav {
        margin: 0 auto;
    }
    .side-nav {
        margin-bottom: 1rem;
    }
    .heading {
        margin-bottom: 1rem;
    }
    .side-nav-item {
        display: inline;
        margin: 0 1.5rem 0 0;
    }
    .asc:after {
        content: " \2192";
    }
    .desc:after {
        content: " \2190";
    }
}
select{
    height: auto;
}
.select2 button{
    height: auto;
    line-height: initial;
}
.select2 textarea{
    min-height: initial;
}

.cdn-item{
    background: #efefef;
    border: 1px solid #efefef;
    border-radius: 5px;
    padding: 3px 10px;
    margin-bottom:5px;
    display: block;
}
.cdn-item.round_robin{
    background: #f3f3f3a8;
}
.disabled{
    color:#ccc;
}
.error-message{
    color:red;
}
.brand-embed{
    border: 1px solid #ff5722;
    padding: 15px;
    margin-bottom: 3rem;
}
.brand-embed h3{
    color:#ff5722;
}
.badge{
    background: #eee;
    border-radius: 3px;
    padding: 3px 10px;
    margin-bottom: 5px;
    margin-right: 5px;
}
label{
    font-size: 16px;
}
.canvas-wrap {
    background-image: url(img/bg.jpg);
    background-image: url(data:image/gif;base64,R0lGODlhCgAKAIAAAOLi4v///yH5BAAHAP8ALAAAAAAKAAoAAAIRhB2ZhxoM3GMSykqd1VltzxQAOw==);
    /*            background-size: cover;*/
}

#canvas {
    /*background-color: beige*/
    max-width: 100%;

}

.top-nav-links, .top-nav-links ul{
    margin: 0;
    padding: 0;
}
.top-nav-links li, .top-nav-links li ul li {
    list-style: none;
}
.nav-item {
    display: inline-block;
    transition-duration: 0.5s;
    position: relative;
    margin: 0;
}
.nav-link{
    padding: 10px 5px;
}
.nav-item:hover {
    cursor: pointer;
}
.nav-item:hover > a, .nav-item ul a:hover{
    color: #d33c43;
    display: block;
}
.nav-item ul {
    background: white;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    visibility: hidden;
    opacity: 0;
    position: absolute;
    transition: all 0.5s ease;
    margin-top: 0;
    left: 0;
    display: none;
    z-index: 10;
    min-width: 200px;
}
.nav-item:hover > ul,
.nav-item ul:hover {
    visibility: visible;
    opacity: 1;
    display: block;
}

.nav-item ul li {
    clear: both;
    width: 100%;
    border-bottom: 1px solid #eee;
}
.nav-item ul li a{
    display: block;
    padding: 5px 10px;
}
.text-muted{
    color:#ccc;
}
.text-danger{
    color:red;
}
.text-info{
    color:blue;
}
