/* Common stylesheet - Used in every templates */
html {
    font-family: "source_sans_proregular";
}
h1, h2, h3, h4, h5 {
    font-family: "lato";
}
h3 {
    border-bottom: 3px solid #EEE;
}
header.header .header-block:first-child {
    margin-left: 0;
}
#main_menu_btn {
    vertical-align: top;
}
header.header .header-button-block {
    padding: 0;
}
header.header .header-button-block button {
    width: 96px;
    height: 65px;
    border-radius: 0;
}
header.header .header-button-block button i {
    display: block;
    margin: auto;
}
header.header .header-block-right {
    display: inline-block;
}
header.header .header-block .account-name {
    display: inline-block;
    max-width: 150px;
    margin-left: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
header.header .header-block .account-dropdown-btn {
    line-height: 1.6;
}
header.header #more_uploads_dropdown {
    font-size: 1.2em;
    min-width: 120px;
}
header.header #more_uploads_dropdown li a {
    display: block;
    padding: 3px;
}
header.header #more_uploads_dropdown li a:hover {
    cursor: pointer;
}
header.header #auto_username {
    width: 170px;
}
#container {
    background-color: #FFF;
}
#global {
    position: relative;
}
#global .main-title {
    background-color: #FFF;
    position: relative;
    border-bottom: 1px solid #DDD;
    vertical-align: middle;
    z-index: 3;
}
#global .main-title h1 {
    margin: 0;
    text-align: center;
}
#global .main-title .commands-place {
    max-width: 20%;
}
#global .main-title .commands-place .button {
    margin-bottom: 5px;
}
#global .main-title.media h1 {
    max-width: 100%;
}
#global .main-title h1 .item-entry-preview img {
    max-width: 100px;
    max-height: 100px;
}
#global .main-title .commands-place {
    display: inline-block;
}
#ubicast_logo {
    max-width: 100px;
}
.loading {
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 28px;
    min-height: 28px;
    padding-left: 48px;
    color: #000;
    border-color: #aaa;
    background: #eee url("../images/loading_32.gif") 6px 50% no-repeat;
}

.tab-window .tab-buttons {
    text-align: center;
}
.tab-window .tab-buttons h2 {
    margin: 5px;
    font-size: 1em;
}
/* auto form */
.auto-form .auto-field {
    margin-bottom: 15px;
}
.auto-form .auto-field > .label-place {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.2em;
    line-height: 1.6em;
    width: 400px;
    text-align: right;
}
.odm-element .auto-form .auto-field > .label-place {
    width: 200px;
}
.auto-form .auto-field > .input-place {
    margin-left: 15px;
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 420px);
}
.odm-element .auto-form .auto-field > .input-place {
    width: calc(100% - 220px);
}
.auto-form .auto-field .default-value {
    margin-top: 10px;
}
.auto-form .auto-field .btn-bar {
    display: inline-block;
}
/* inline categories */
.auto-form ul#id_categories {
    padding: 0;
    list-style-type: none;
    display: inline-block;
    vertical-align: middle;
}
.auto-form ul#id_categories li {
    margin-right: 10px;
    display: inline-block;
}

/* tooltips */
.fa.tooltip {
    display: inline-block;
    cursor: help;
    vertical-align: middle;
}
div.tooltip {
    margin-top: 4px;
}
table td.tooltip {
    padding-top: 0;
    padding-left: 24px;
}
table th + td.tooltip,
table td + td.tooltip {
    padding-left: 6px;
}


/* Django form errors */
ul.errorlist {
    margin-top: 6px;
    padding: 0;
}
ul.errorlist li:before {
    padding-right: 5px;
    font: normal normal normal 14px/1 FontAwesome;
    content: "\f178";
}
ul.errorlist li {
    margin: 0;
    list-style-type: none;
}


/* progress bar */
.progress-bar {
    height: 20px;
    position: relative;
    overflow: hidden;
    background: #666;
    border: 1px solid #888;
    border-radius: 3px;
}
.progress-level {
    width: 0%;
    height: 20px;
    background: #008750;
}
.red .progress-level {
    background: #DB263D;
}
.progress-label {
    color: white;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    text-align: center;
    font-size: 16px;
    line-height: 20px;
}
/* media thumbs */
.media-thumbnail-list {
    text-align: center;
}
.media-thumbnail {
    display: inline-block;
    width: 200px;
    margin: 10px;
    padding: 10px;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    text-align: center;
    background: #fff;
    box-shadow: 2px 2px 1px 0px #ddd;
}
.media-thumbnail span,
.media-thumbnail a {
    display: block;
}
.media-thumbnail .media-thumbnail-title {
    display: block;
    white-space: nowrap;
    overflow-x: hidden;
    font-size: 1.3em;
    text-overflow: ellipsis;
}
.media-thumbnail .media-thumbnail-top span {
    padding: 0 2px;
    display: inline;
}
.media-thumbnail .media-thumbnail-preview {
    padding: 5px 0;
    position: relative;
    min-height: 101px;
}
.media-thumbnail .media-thumbnail-preview img {
    display: inline;
    max-width: 180px;
    max-height: 101px;
}
.media-thumbnail .media-thumbnail-top,
.media-thumbnail .media-thumbnail-bottom {
    position: absolute;
    background: white;
    color: inherit;
    padding: 2px 5px;
}
.media-thumbnail .media-thumbnail-top {
    top: 0;
    left: 0;
    border-bottom-right-radius: 3px;
}
.media-thumbnail .media-thumbnail-bottom {
    bottom: 0;
    right: 0;
    border-top-left-radius: 3px;
}
/* ajax blocks switch */
.ajax-blocks .ajax-block { display: none; }
.ajax-blocks .ajax-block.displayed { display: block; }


/* login form */
.login-form { text-align: left; }
.login-form label { font-weight: bold; }
.login-form p { margin: 0; padding: 8px; }
.login-form .errorlist { margin: 0; padding: 0 0 8px 32px; }
.login-form .login-links .button { margin: 0 10px 10px 0; }

/* live button */
#overlay_notification {
    font-size: 1.2em;
}
#overlay_notification .notifications-content {
    min-width: 150px;
}
#overlay_notification .notifications-content .live-list {
    padding-left: 20px;
}
@keyframes live-glow {
    0% {color: red;}
    50% {color: transparent;}
    100% {color: red;}
}
.live-animation {
    color: red;
    vertical-align: baseline!important;
    animation-name: live-glow;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}
/* cookies message */
.cookies-msg {
    width: 100%;
    line-height: 30px;
    font-weight: bold;
}
.cookies-msg-content {
    position: relative;
}
.cookies-msg-content a {
    text-decoration: underline;
}
.cookies-msg .cookies-msg-content .messages {
    margin: 0;
}
.cookies-msg .cookies-msg-content .messages .message {
    padding-right: 35px;
}
.cookies-msg .cookies-msg-close {
    text-align: center;
    float: right;
    padding: 0;
}
.iframe .global > #messages_place {
    position: fixed;
    bottom: 65px;
    z-index: 45;
}
.iframe #message_box_button {
    display: none!important;
}

/* jquery ui */
.ui-datepicker { z-index: 100 !important; }

/* css for timepicker */
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 45%; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }

.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; }
.ui-timepicker-rtl dl dt{ float: right; clear: right; }
.ui-timepicker-rtl dl dd { margin: 0 45% 10px 10px; }


#account_dropdown {
    margin: 0;
    width: auto;
}
#account_dropdown > div {
    margin: 8px;
}
#account_dropdown label {
    margin-bottom: 4px;
}
#account_dropdown .lang-select {
    margin-left: 5px;
}
.log-block {
    margin: 8px 0;
    overflow: auto;
    max-width: 100%;
    padding: 5px;
    background: #222;
    color: white;
}
header.header .small-upload-button,
header.header .small-login-button {
    display: none;
}

aside.aside .list .list-entry {
    float: right;
    padding: 0;
}

/* iframes */
html.iframe,
html.iframe body {
    margin: 0;
    padding: 0;
    background: transparent;
    width: 100%;
    height: 100%;
}

#maintenance_button {
    margin: 6px 6px 0 6px;
}

@media (max-width: 10000px) {

}
@media (max-width: 1920px) {
    nav.navbar .buttons-left,
    nav.navbar .buttons-right {
        width: 20%;
    }
    nav.navbar .links {
        width: 60%;
    }
}
@media (max-width: 1600px) {
    header.header .search-block {
        max-width: 400px;
    }
    header.header .header-block .account-name {
        max-width: 125px;
    }
}
@media (max-width: 1280px) {
    header.header .search-block {
        width: 24%;
    }
    .auto-form .auto-field > .label-place {
        width: 300px;
    }
    .auto-form .auto-field > .input-place {
        width: calc(100% - 320px);
    }
    #top_search_form #top_search_input {
        width: 85%!important;
    }
    #top_search_form #top_search_input + button {
        width: 15%!important;
    }
    #global .main-title .commands-place {
        max-width: 100%;
    }
    header.header .header-block .login-button .account-name {
        display: none;
    }
}
@media (max-width: 960px) {
    header.header .header-block .account-name {
        display: none;
    }
}
@media (max-width: 800px) {
    #header, header.header .header-button-block button {
        height: 55px!important;
    }
    header.header .header-logo-small {
        display: inline-block;
        max-height: 40px;

    }
    header.header .header-logo {
        display: none;
    }
    header.header .header-block,
    header.header .header-block-right {
        margin-right: 0;
        margin-left: 0;
        line-height: 55px!important;
    }
    header.header .header-block:first-child {
        float: left;
    }
    header.header .header-button-block button {
        font-size: 0.8em;
        width: 85px;
        height: 55px;
    }
    header.header .small-upload-button,
    header.header .small-login-button {
        display: inline-block;
        font-size: 1.4em;
        margin-right: 10px;
    }
    header.header .publish-button,
    header.header .login-button {
        display: none;
    }
    aside.aside {
        left: 0;
    }
    .auto-form .auto-field > .label-place,
    .auto-form .auto-field > .input-place {
        width: auto;
        display: block;
        text-align: left;
    }
    #top_search_form #top_search_input {
        width: 78%!important;
    }
    #top_search_form #top_search_input + button {
        width: 22%!important;
    }
}
@media (max-width: 600px) {
    #overlay_notification {
        display: none;
    }
    header.header .search-block {
        width: 22%;
    }
    aside.aside.aside-left {
        max-width: 100%;
        width: 100%;
        border-right: none;
    }
    .paragraph-block {
        padding: 2px;
    }
    .tab-window .tab-button {
        margin: 2px;
    }
    #global .main-title .commands-place {
        display: block;
        text-align: left;
        padding: 0;
        float: inherit;
        text-align: center;
        margin: 8px 0;
    }
    #global .drag-handle {
        display: none;
    }
    #global .main-title h1 {
        font-size: 2em;
    }
    #global .main-title.media h1 {
        font-size: 1.5em;
    }
    #top_search_form #top_search_input {
        width: 72%!important;
    }
    #top_search_form #top_search_input + button {
        width: 28%!important;
    }
    /* responsive tinymce panels */
    .mce-container,
    .mce-container .mce-container-body.mce-abs-layout {
        max-width: 100%!important;
        overflow-x: auto;
    }
    .mce-container .mce-container-body.mce-abs-layout label,
    .mce-container .mce-container-body.mce-abs-layout input {
        width: 100px!important;
    }
    .mce-container .mce-container-body.mce-abs-layout textarea {
        width: 280px!important;
    }
    .mce-container .mce-widget.mce-btn.mce-primary.mce-abs-layout-item.mce-first.mce-btn-has-text {
        left: 5px!important;
    }
    .mce-container .mce-widget.mce-btn.mce-abs-layout-item.mce-last.mce-btn-has-text {
        left: 65px!important;
    }
}
@media (max-width: 440px) {
    header.header .search-block {
        width: 27%;
    }
    header.header .header-block {
        padding: 0;
    }
    #top_search_form #top_search_input {
        width: 100%!important;
        border: 1px solid;
        border-radius: 4px;
    }
    #top_search_form #top_search_input + button {
        display: none;
    }
    #top_search_box {
        right: -65px!important;
    }
    nav.navbar {
        padding: 0 5px;
    }
    nav.navbar .buttons-left {
        width: 7%;
    }
    nav.navbar .buttons-right {
        width: 28%;
    }
    nav.navbar .links {
        width: 65%;
    }
    nav.navbar .buttons-left .back {
        padding: 4px 0;
    }
}