:root {
    --color-blue: #638BA9;
    --color-blue-transparent: rgba(102, 132, 159, 0.5);
    --color-green: #B4DCB2;
    --color-green-light: #B4DCB2;
    --color-grey: #cfcfcf;
    --color-orange: #FFCC80;
    --color-red: #F47876;
    --color-red-transparent: rgba(244, 120, 118, 0.5);
}

.color-green {
    color: var(--color-green) !important;
}
.color-grey {
    color: var(--color-grey) !important;
}
.color-orange {
    color: var(--color-orange) !important;
}
.color-red {
    color: var(--color-red) !important;
}
.color-blue {
    color: var(--color-blue) !important;
}

.bgcolor-green {
    background-color: var(--color-green) !important;
}
.bgcolor-grey {
    background-color: var(--color-grey) !important;
}
.bgcolor-orange {
    background-color: var(--color-orange) !important;
}
.bgcolor-red {
    background-color: var(--color-red) !important;
}
.bgcolor-blue {
    background-color: var(--color-blue) !important;
}

.font-style-italic {
    font-style: italic !important;
}

html {
    min-height: 100%;
    position: relative;
}


body {
    background-color: #fff;
    color: #002339;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 1.42857143;
    margin-bottom: 60px;
}

body.loading, body.loading * {
    cursor: wait;
}


a {
    /* color: #002339; */
    color: #284B63;
    text-decoration: underline;
}

a.btn {
    text-decoration: none;
}

a:focus, a:hover {
    color: #002339;
    text-decoration: none;
}

.navbar a, .nav a {
    text-decoration: none;
}

.dropdown a {
    text-decoration: none;
}

label {
    display: inline-block;
    font-weight: normal;
    margin-bottom: 5px;
    max-width: 100%;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: #002339;
    font-family: inherit;
    font-weight: normal;
    line-height: 1.1;
}

h1, .h1 {
    font-size: 26px;
}

h2, .h2 {
    font-size: 23px;
}

.vertical-center {
    position: absolute;
    top: 50%;
    left: 50%;
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}


.page-header {
    border-bottom: 1px solid #eee;
    margin: 5px 0 20px;
    padding-bottom: 9px;
}


td.details-control {
    background: url('../img/details_open.png') no-repeat center center;
    cursor: pointer;
}
tr.shown td.details-control {
    background: url('../img/details_close.png') no-repeat center center;
}


.bs-callout {
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 3px;
    margin: 20px 0;
    padding: 20px;
}
.bs-callout h4 {
    margin-bottom: 5px;
    margin-top: 0;
}
.bs-callout p:last-child {
    margin-bottom: 0;
}
.bs-callout code {
    border-radius: 3px;
}
.bs-callout+.bs-callout {
    margin-top: -5px;
}
.bs-callout-default {
    border-left-color: #777;
}
.bs-callout-default h4 {
    color: #777;
}
.bs-callout-primary {
    border-left-color: #428bca;
}
.bs-callout-primary h4 {
    color: #428bca;
}
.bs-callout-success {
    border-left-color: #5cb85c;
}
.bs-callout-success h4 {
    color: #5cb85c;
}
.bs-callout-danger {
    border-left-color: #d9534f;
}
.bs-callout-danger h4 {
    color: #d9534f;
}
.bs-callout-warning {
    border-left-color: #f0ad4e;
}
.bs-callout-warning h4 {
    color: #f0ad4e;
}
.bs-callout-info {
    border-left-color: #5bc0de;
}
.bs-callout-info h4 {
    color: #5bc0de;
}

.status {
    border: 1px solid transparent;
    border-radius: 4px;
    margin-bottom: 2px;
    padding: 5px;
}
.status h4 {
    color: inherit;
    margin-top: 0;
}
.status .status-link {
    font-weight: bold;
}
.status > p,
.status > ul {
    margin-bottom: 0;
}
.status > p + p {
    margin-top: 5px;
}
.status-dismissable,
.status-dismissible {
    padding-right: 35px;
}
.status-dismissable .close,
.status-dismissible .close {
    color: inherit;
    position: relative;
    right: -21px;
    top: -2px;
}
.status-allowed {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}
.status-allowed hr {
    border-top-color: #c9e2b3;
}
.status-allowed .status-link {
    color: #2b542c;
}
.status-canceled {
    background-color: #ddd;
    border-color: #ccc;
    color: #555;
}
.status-canceled hr {
    border-top-color: #a6e1ec;
}
.status-canceled .status-link {
    color: #245269;
}
.status-pending {
    background-color: #fcf8e3;
    border-color: #faebcc;
    color: #8a6d3b;
}
.status-pending hr {
    border-top-color: #f7e1b5;
}
.status-pending .status-link {
    color: #66512c;
}
.status-denied, .status-expired {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}
.status-denied hr {
    border-top-color: #e4b9c0;
}
.status-denied .status-link {
    color: #843534;
}

#link-torrent-modal .row {
    margin-bottom: 10px;
}

.onserver_state_seeding {
    color: var(--color-green);
    font-weight: bold;
}

.onserver_state_noseeding {
    color: var(--color-red);
    font-weight: bold;
}

.torrent-state-seeding {
    background-color: var(--color-green);
    color: white;
}
.torrent-state-downloading {
    background-color: var(--color-orange);
}
.torrent-state-stopped {
    background-color: var(--color-red);
}

.askForMovie {
    cursor: pointer;
}

.fa-2x[data-count]{
    position:relative;
}
.fa-2x[data-count]:after{
    background-color: var(--color-blue-transparent);
    border-radius: 10em;
    color: white;
    content: attr(data-count);
    font: bold 0.4em sans-serif;
    line-height: .9em;
    min-width: 1.5em;
    padding: 0.25em;
    position: absolute;
    right: -0.75em;
    text-align: center;
    top: 1.75em;
}


@media (min-width: 1192px) {
    .modal-xl {
        width:1100px;
    }
}

.modal-xxl {
    width:90%;
}


.modal-header, .modal-header *, .modal-footer, .modal-footer * {
    background-color: #002339;
    color: #fff;
}


#movies-table tbody tr:hover {
    background: #e5e5e5;
    cursor: pointer;
}

#movies_list_form label {
    padding-right: 10px;
}


.btn-primary {
    background-color: #284B63;
    border-color: #284B63;
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: #fff;
}

.btn-info {
    background-color: #284B63;
    border-color: #284B63;
    color: #fff;
}

.btn-info:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: #fff;
}

.btn-danger {
    background-color: var(--color-red);
    border-color: var(--color-red);
    color: #fff;
}

.btn-space {
    /* margin-top: 50px; */
    margin-bottom: 5px;
}

.btn-success {
    color: #fff;
    background-color: var(--color-green);
    border-color: var(--color-green);
}


footer, .footer {
    bottom: 0;
    position: absolute;
    /* Set the fixed height of the footer here
    height: 25px; */
    padding-top: 3px;
    width: 100%;
}

.navbar-inverse, body > footer {
    background-color: #002339;
    border-color: #002339;
    color: #fff;
}


.navbar-inverse .navbar-nav>li>a {
    color: #ffffff;
}

.navbar-inverse .navbar-nav>li>a:focus,
.navbar-inverse .navbar-nav>li>a:hover {
    background-color: #284b63;
    color: #fff;
}

.navbar-inverse .navbar-brand {
    color: #ffffff;
}

.navbar-inverse .navbar-brand .fa-home {
    font-size: 0.85em;
    display: inline-block;
    margin-left: 4px;
}

.navbar-brand img {
    width: 20px;
    display: inline-block;
    top:-3px;
}

.navbar-inverse .navbar-nav>.active>a,
.navbar-inverse .navbar-nav>.active>a:focus,
.navbar-inverse .navbar-nav>.active>a:hover,
.navbar-inverse .active>a,
.navbar-inverse .active>a:focus,
.navbar-inverse .active>a:hover {
    background-color: #284B63;
    color: #fff;
}

.navbar-inverse .navbar-nav>.open>a,
.navbar-inverse .navbar-nav>.open>a:focus,
.navbar-inverse .navbar-nav>.open>a:hover {
    background-color: #284B63;
    color: #fff;
}



.nav-tabs {
    margin-bottom: 10px;
}

.nav-tabs>li>a:hover {
    border-color: #fff #fff #eee;
}

.nav>li>a:focus, .nav>li>a:hover {
    background-color: #55779108;
    text-decoration: none;
}


th {
    font-weight: 500;
}

.table-bordered>tbody>tr>td, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>td, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>thead>tr>th {
    border: none;
    border-top: 1px solid #ddd;
    font-weight: normal;
}

table thead th,
table tfoot th,
table.dataTable thead th,
table.dataTable tfoot th {
    font-weight: normal;
}


.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
    color: #002339;
}

table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
    background-color: #fcfcfc;
}

table.dataTable tbody tr {
    background-color: #ffffff;
}

table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
    background-color: #55779108;
}

table.dataTable.display tbody tr.even > .sorting_1, table.dataTable.order-column.stripe tbody tr.even > .sorting_1 {
    background-color: #ffffff00;
}

table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.order-column.stripe tbody tr.odd > .sorting_1 {
    background-color: #ffffff00;
}



table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.order-column.stripe tbody tr.odd > .sorting_1 {
    background-color: #ffffff00;
}

table.dataTable.display tbody tr.even > .sorting_1, table.dataTable.order-column.stripe tbody tr.even > .sorting_1 {
    background-color: #ffffff00;
}

.panel-default>.panel-heading {
    background-color: #55779108;
    border-color: #ddd;
    color: #333;
}


.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #fcfcfc;
}

#movies-table tbody tr:hover {
    background: #55779108;
    cursor: pointer;
}


.navbar-nav>li>a:active, .nav > a:hover {
    background-color: #284b63 !important;
    outline: 0;
}

.label-default {
    background-color: var(--color-blue);
}

.label {
    border-radius: .25em;
    color: #fff;
    font-size: 75%;
    font-weight: normal;
    line-height: 1;
    padding: .2em .6em .3em;
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
}

.label-primary {
    background-color: var(--color-blue);
}

.label-info {
    background-color: var(--color-green);
}

#distributor-home .panel-movie {
    min-height: 175px;
}

#distributor-home .panel-movie .panel-body {
    padding-bottom: 5px;
}

#distributor-home .panel-movie .contentkind-count {
    display: inline-block;
    width: 60px;
}

#distributor-home .panel-movie .panel-movie-distribute {
    margin-top: 15px;
}

#distributor-home .panel-movie h4 {
    max-height: 40px;
    overflow: hidden;
}

#dcp_edit_form label {
    width:100px;
}

.torrent-has-error {
    background-color: var(--color-red-transparent) !important;
}

.torrent-has-error .torrent-state {
    background-color: transparent !important;
}

.torrent_deleted_pending {
    text-decoration: line-through;
}

.ck-editor__editable {
    min-height: 200px;
}