/*!
 * Start Bootstrap - SB Admin (http://startbootstrap.com/)
 * Copyright 2013-2016 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
 */

/* Global Styles */
:root {
    --side-nav-width: 165px;
    --top-nav-height: 50px;
    --nav-active-colour: #384459;
    --link-border-colour: #cecef9;
    --link-background-colour: #eeeefd;

    --default: #fafafa;
    --paper: white;
    --text-primary: #151b34;
    --text-contrast: black;
    --primary-main: #0000dc;
    --primary-1: #6666ed;
    --secondary-main: #f76a6a;
    --divider: rgba(0,0,0,0.12);
    --error: #f44336;
    --warning: #ff9800;
    --info: #2196f3;
    --success: #18c971;
    --grey-0: white;
    --grey-50: #f2f2f5;
    --grey-100: #e5e5e9;
    --grey-200: #c7c7cb;
    --grey-300: #aeaeb2;
    --grey-400: #8e8e93;
    --grey-500: #636366;
    --grey-600: #48484a;
    --grey-700: #3a3a3c;
    --grey-800: #2c2c2e;
    --grey-900: #1c1c1e;
    --grey-950: black;
}

.side-nav::-webkit-scrollbar {
    display: none;
}

@font-face {
    font-family: "Red Hat Text";
    src: url("/static/front_end/resources/fonts/RedHatText-Regular.ttf") format("truetype");
    font-weight: normal;
}

@font-face {
    font-family: "Red Hat Text";
    src: url("/static/front_end/resources/fonts/RedHatText-Bold.ttf") format("truetype");
    font-weight: bold;
}

@font-face {
    font-family: "Klarheit Kurrent";
    src: url("/static/front_end/resources/fonts/KlarheitKurrent-Regular.ttf") format("truetype");
    font-weight: normal;
}

@font-face {
    font-family: "Klarheit Kurrent";
    src: url("/static/front_end/resources/fonts/KlarheitKurrent-Bold.ttf") format("truetype");
    font-weight: bold;
}

body {
    margin-top: 100px;
    background-color: #fff;
    font-family: "Red Hat Text", "Helvetica Neue", Helvetica, Arial, sans-serif
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Klarheit Current", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (min-width: 768px) {
    body {
        margin-top: var(--top-nav-height);
    }
}

.loading-animation {
    margin-top: 5%;
}

/* Override bootstrap colours */
.btn-primary {
    background-color: var(--primary-main);
}

.btn-primary:hover {
    background-color: var(--primary-1);
}

/*
  Allow angular.js to be loaded in body, hiding cloaked elements until
  templates compile.  The !important is important given that there may be
  other selectors that are more specific or come later and might alter display.
 */
[ng\:cloak],
[ng-cloak],
.ng-cloak {
    display: none !important;
}

/* Add default padding to the top */
.container,
.container-fluid {
    padding-top: 10px;
}

.no-border {
    border: 0;
}

.no-padding {
    padding: 0 !important;
}

#page-wrapper {
    width: 100%;
    padding: 0;
    background-color: #fff;
}

@media (min-width: 768px) {
    #wrapper {
        padding-left: var(--side-nav-width);
    }

    #page-wrapper {
        border: 10px #404040;
    }
}

/* Top Navigation */
.navbar {
    border: none; /* Remove default border from bootstrap */
    background: var(--paper);
}

.top-nav {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: var(--grey-700);
}

.top-nav > div {
    display: flex;
    align-items: center;
}

.top-nav > a {
    text-decoration: none;
    line-height: var(--top-nav-height);
    color: inherit;
    padding: 0 12px;
}

.top-nav > a:hover {
    color: var(--primary-main);
}

.top-nav > a:focus {
    outline: none;
    text-decoration: none;
}

.top-nav > li > a {
    padding-top: 15px;
    padding-bottom: 15px;
    line-height: 20px;
    color: inherit;
}

/* Breadcrumbs */

.breadcrumbs {
    height: var(--top-nav-height);
    line-height: var(--top-nav-height);
    color: var(--grey-700);
    padding-left: 0.2em;
    border-bottom: 1px solid var(--grey-200);
}

/* Side Navigation */
.navbar-toggle > span {
    background-color: var(--grey-700);
}

.side-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 95vw;
    margin: 0;
    color: var(--grey-700);
}

.side-nav::after, .side-nav::before {
    content: none;
}

.side-nav-link {
    display: flex !important;
    width: 95vw;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 9px 12px 5px !important;
    color: inherit;
    border-left: 3px solid transparent;
}

.side-nav-link > svg {
    margin-right: 12px;
    height: 13px;
    width: 13px;
    fill: currentColor;
}

.side-nav li ul {
    padding: 0;
}

.side-nav li ul li {
    list-style: none;
}

.side-nav li a {
    display: block;
    padding: 7px 10px 7px 20px;
    font-size: 13px;
    text-decoration: none;
    color: var(--grey-700);
}

.side-nav li a:hover {
    color: inherit !important;
    background-color: var(--grey-50);
}

.side-nav li a.active_menu {
    color: var(--primary-main) !important;
    border-right: 4px solid var(--primary-main);
}

.side-nav li a.active_menu:hover {
    background: var(--link-background-colour);
}

.side-nav .input-group-addon {
    background-color: var(--grey-50);
    border-color: #aaa;
    color: #aaa;
    padding: 6px 8px;
}

.side-nav li form {
    display: block;
    padding: 10px 15px 10px 10px;
    text-decoration: none;
    color: #aaa;
}

.side-nav .hijack::-webkit-input-placeholder {
    color: #aaa;
}

.side-nav .hijack:focus {
    outline: none;
    border-color: var(--link-border-colour);
    box-shadow: none;
}

@media (min-width: 768px) {
    .side-nav {
        position: fixed;
        top: var(--top-nav-height);
        border-right: 1px solid var(--grey-200);
        overflow-y: auto;
        background-color: var(--paper);
        bottom: 0;
        overflow-x: hidden;
        padding-bottom: 80px; /* Make space for intercom button */
        margin: 0;
        width: var(--side-nav-width);
        /* Stops menu jumping around while page is loading
         * (no I don't know why this works either) */
        left: var(--side-nav-width);
        margin-left: calc(var(--side-nav-width) * -1);
    }

    .side-nav li a.side-nav-link {
        width: var(--side-nav-width);
    }

    .side-nav li a i {
        font-size: 11px;
    }

    .side-nav li form {
        width: 100%;
    }
    .side-nav .input-group-addon {
        padding: 4px;
    }
    .side-nav .form-control {
        padding: 6px;
    }
}

.accordion-nav .panel-heading,
.accordion-nav .panel-body,
.accordion-nav .panel-default {
    background: var(--paper);
    color: var(--grey-700);
    border: 2px #333;
}

.accordion-nav .panel-group .panel-heading + .panel-collapse > .panel-body,
.accordion-nav .panel-group .panel-heading + .panel-collapse > .list-group {
    border-color: #333;
}

.accordion-nav .panel-title a {
    display: block;
    padding: 10px 15px;
    margin: -10px -15px;
    text-decoration: none;
}

.accordion-nav ul,
.accordion-nav ul li {
    width: 100%;
}

.accordion-nav .panel-body {
    padding: 0;
}

/* Dashboard */
.panel-quicklinks .btn {
    width: var(--side-nav-width);
    margin-bottom: 4px;
}
/* /Dashboard */

/* Modals */
@media (min-width: 768px) {
    .modal-xl {
        width: 80%;
        max-width: 1400px;
        min-height: 70vh;
        max-height: 70vh;
    }
}
/* /Modals */

/* Alerts */
.ps-alert {
    text-align: center;
    position: fixed;
    z-index: 90000;
    left: 20%;
    width: 60%;
}

/* /Alerts */

/* UI grid */
.ui-grid-canvas .btn {
    width: 100%;
}

.modal-wrapper .ui-grid {
    margin-top: 15px;
    margin-bottom: 15px;
}

.ui-grid-header-cell-label {
    display: inline-block;
    white-space: initial;
}

/* /UI grid */

.login-form {
    margin-top: var(--top-nav-height);
    background-color: #ebebeb;
    border-radius: 10px;
}

.backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background-color: transparent;
}

/* Template Selector */
.ts-center {
    width: 100%;
    display: inline-table;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px;
}

.ts-thumbnail-container {
    width: 300px;
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    display: table-cell;
    vertical-align: middle;
}

.ts-thumbnail-container > video {
    height: 290px;
    min-height: 290px;
    max-height: 290px;
    cursor: pointer;
}

.ts-thumbnail {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    cursor: default;
}

.modal-wrapper {
    padding: 10px;
}

.ts-panel-header {
    font-size: 24px;
}

h3.ts-header,
h4.ts-header {
    margin-top: 0;
    margin-bottom: 0;
}

h3.ts-info {
    min-height: 100px;
    max-height: 100px;
    overflow: hidden;
    margin-bottom: 10px;
    word-break: break-word;
}

h4.ts-property {
    min-height: 20px;
    max-height: 20px;
    overflow: hidden;
}

h4.ts-property > small {
    font-weight: 900;
}

.ts-center > hr {
    margin: 0;
    border: 1px solid #ebebeb;
}

h1.ts-header {
    padding-top: 15px;
    padding-bottom: 5px;
    padding-left: 25px;
}

.wrapper {
    position: relative;
}

.bottom {
    position: absolute;
}

.ts-well {
    min-height: 520px;
    max-height: 520px;
}

.ts-well span {
    position: absolute;
    top: 0;
    left: 20px;
    font-size: x-large;
}

/* /Template Selector */

/* Published Template Selector */
.clickable {
    cursor: pointer;
}

/* Distribution Manager */
.loading-overlay {
    position: fixed;
    z-index: 999;
    overflow: visible;
    margin: auto;
    top: 50%;
    left: 0;
    bottom: 0;
    right: 0;
}

.loading-overlay::before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}

div.panel-heading i.fa-times {
    cursor: pointer;
}

/* /Distribution Manager */

/* Django-hijack */
.hijacked-warning-bootstrap {
    padding: 0 10px;
    border: 0;
    background-color: inherit;
    background-image: none;
}

.hijack {
    background-color: var(--grey-50);
    border-color: #aaa;
    color: var(--grey-700);
    font-size: 13px;
}

.navbar.hijacked-navbar {
    background-color: var(--grey-200);
}

.hijacked-warning-controls > form {
    height: var(--top-nav-height);
    display: flex;
    align-items: center;
}

/* Base button color */
.success-green {
    background-color: #5cb85c;
    color: white;
}

.canceled-gray {
    background-color: #aaa;
    color: white;
}

.pending-orange {
    background-color: #f0ad4e;
    color: white;
}

.error-red {
    background-color: #d9534f;
    color: #fff;
}

.created-blue {
    background-color: #7dcbf1;
    color: white;
}

.batch-man-btn {
    padding-right: 30px;
}

.batch-loading-wrapper > .loading-animation {
    height: 360px;
}

.empty-cell {
    width: 100%;
    display: inline-block;
}

.clickable {
    cursor: pointer;
}

.margin-top-md {
    margin-top: 20px;
}

.margin-bottom-md {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .dl-horizontal dt {
        width: 170px;
    }
}

.panel-facebook {
    border-color: #4360b5;
}

.panel-facebook .panel-heading {
    color: #4360b5;
    background-color: #4360b5;
    border-color: #4360b5;
}

.panel-snapchat {
    border-color: #faff00;
}

.panel-snapchat .panel-heading {
    color: #faff00;
    background-color: #faff00;
    border-color: #faff00;
}

.panel-twitter {
    border-color: #000000;
}

.panel-twitter .panel-heading {
    color: #000000;
    background-color: #000000;
    border-color: #000000;
}

.panel-tiktok {
    border-color: rgba(0,0,0, 0.75);
}

.panel-tiktok .panel-heading {
    color: rgba(0,0,0, 0.75);
    background-color: rgba(0,0,0, 0.75);
    border-color: rgba(0,0,0, 0.75);
}

.panel-youtube {
    border-color: #eee;
}

.panel-youtube .panel-heading {
    color: #eee;
    background-color: #eee;
    border-color: #eee;
}

.panel-youtube img {
    height: 16px;
}

.line {
    fill: none;
    stroke-width: 2px;
}

.switch {
    border-radius: 4px;
}
.switch small{
    transform: scale(0.85);
    border-radius: 3px;
}
.switch.checked {
    background: var(--primary-main);
    border-color: var(--primary-main);
}
.switch.checked small {
    /* button when enabled */
}

/* Headway */
#headway {
    visibility: visible;
    transform: scale(1.1);
}
