html {
    font-family: Calibri, sans-serif;
}

.content {
    width: 70%;
    margin: 50px auto 0;
}

.form_input {
    margin-bottom: 10px;
}

.form_input label {
    display: block;
}

.button {
    background-color: #5db85b;
    color: whitesmoke;
    padding: 7px 15px;
    border: 1px solid gray;
    border-radius: 5px;
}


#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    -webkit-transition: margin .25s ease-out;
    -moz-transition: margin .25s ease-out;
    -o-transition: margin .25s ease-out;
    transition: margin .25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#page-content-wrapper {
    min-width: 100vw;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

p, label {
    font-size: 16px;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.markets_list div {
    cursor: pointer;
}

.active_link {
    background-color: rgba(215, 215, 215, 1) !important;
}

#sidebar-wrapper {
    width: 250px;
    background-color: rgba(242, 242, 242, 1);
}

.select_market_block {
    margin: 0 auto;
    width: 180px;
    padding: 20px 0px;
}

.select_market_block select {
    width: 100%;
}

a.sidebar_item {
    padding: 5px 0px 5px 15px;
    display: flex;
    width: 100%;
    font-size: 16px;
    color: #333333 !important;
    text-decoration: none;
}

a.sidebar_item:visited {
    color: #333333 !important;
}

.sidebar_item span.count_block {
    margin-left: auto;
    margin-right: 35px;
    padding: 0 10px;
    border-radius: 15px;
    background-color: rgba(108, 108, 108, 1);
    color: white;
    text-align: center;
    font-size: 12px;
    line-height: 24px;
}

.sidebar_item span.count_block.tickets {
    background-color: #d90700;
}

.sidebar_item .sidebar-image {
    width: 30px;
    text-align: center;
}

.sidebar_item img {
    margin-right: 10px;
    vertical-align: top;
    padding-top: 3px;
}

.sidebar_item:hover {
    background-color: rgba(215, 215, 215, 1);
    cursor: pointer;
    text-decoration: none;
    color: #333333 !important;
}

.sub_item {
    background-color: rgba(234, 233, 233, 1);
    padding-left: 46px !important;
}


.title {
    font-size: 25px;
}

.title span {
    font-size: 15px;
}

.table_buttons img, .proxies_actions img {
    cursor: pointer;
    margin-right: 7px;
    height: 16px;
    width: 16px;
}

.form_block {
    overflow: auto;
    margin-bottom: 30px;
}

.form_block .form_input {
    min-width: 250px;
    float: left;
    margin-right: 30px;
    display: block;
}

.form_block .form_input label {
    margin-bottom: 5px;
}

.form_block .form_input select, .form_block .form_input input:not([type='checkbox']) {
    width: 250px;
    border: 1px solid gray;
    border-radius: 3px;
}

.form-signin {
    width: 100%;
    max-width: 350px;
    padding: 15px;
    margin: 100px auto 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.toast {
    position: fixed;
    top: 50px;
    right: 30px;
    z-index: 10000;
}

.wrap {
    white-space: pre-wrap; /* CSS3 */
    white-space: -moz-pre-wrap; /* Firefox */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* IE */
}

.proxies_block {
    border: 1px solid black;
    padding: 10px;
}

.dataTables_filter {
    display: none !important;
}

.table-wrapper {
    width: 100%;
    /*min-width: 600px;*/
    max-width: 100%;
    overflow: auto;
}

table {
    width: 100%;
}

table thead {
    background-color: rgba(242, 242, 242, 1);
}

table thead th {
    padding: 10px 5px;
    text-align: center;
    font-weight: 400;
}

table tbody td {
    text-align: center;
    padding: 10px 0;
}

table tbody tr.selected {
    background-color: #B0BED9;
}

table.active_tickets tbody td {
    background-color: #ffdfdf;
    cursor: pointer;
}

table.user_awaiting_tickets tbody td {
    background-color: rgba(190, 226, 238, 1);
    cursor: pointer;
}

table.closed_tickets tbody td {
    opacity: .5;
    background-color: transparent;
    cursor: pointer;
}

.dataTables_paginate {
    margin-top: 10px;
}

.dataTables_paginate a {
    color: #333333;
    text-decoration: none;
    cursor: pointer;
    margin: 0 10px;
}

.dataTables_paginate a.current {
    font-weight: 700;
}

.dataTables_wrapper .dataTables_processing {
    position: absolute;
    text-align: center;
    font-size: 25px;
    background: none;
    top: 50%;
    left: 50%;
    /*transform: translate(-50%, -50%);*/
}


.ticket_header .ticket_title {
    margin-right: auto;
    display: inline-block;
    width: 90%;
}

.ticket_header .ticket_header_button {
    min-width: 100px;
    cursor: pointer;
    width: 18%;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    display: flex;
}

.ticket_header .ticket_header_button a {
    color: #333333;
    text-decoration: none;
}

.ticket_header .ticket_header_button button {
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.ticket_header .ticket_header_button img {
    display: inline-block;
    vertical-align: middle;
    /*margin-right: 5px;*/
    cursor: pointer;
}

.ticket_header .ticket_header_button span {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

.messages {
    width: 100%;
    border: 1px solid gray;
    border-radius: 10px;
    padding: 20px;
}

.message_block {
    margin-bottom: 10px;
}

.messages .message {
    padding: 15px 10px;
    border-radius: 10px;
}

.user_message .message {
    background-color: #eae9e9;
}

.admin_message .message {
    background-color: #bee2ee;
}

.admin_message .info {
    text-align: right;
}

.messages .info {
    font-weight: bold;
    margin-bottom: 10px;
}

.ticket_answer {
    margin-top: 10px;
}

.ticket_answer textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border-radius: 10px;
}

.ticket_answer .left, .ticket_answer .right {
    display: inline-block;
    vertical-align: middle;
}

.ticket_answer .left {
    width: 60%;
}

.ticket_answer .left > div {
    display: inline-block;
    cursor: pointer;
    margin-right: 15px;
    padding: 10px;
    border-radius: 5px;
}

.ticket_answer .left > div:hover {
    background-color: rgba(215, 215, 215, 1);
}

.ticket_answer .right {
    width: 25%;
    text-align: center;
    float: right;
    display: flex;
    align-items: center;
}

.ticket_answer .right > div {
    flex: 1 1 0;
}


.answer_ticket img, .answer_ticket span {
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    color: white;
}

.modal-content {
    padding: 10px;
    font-size: 18px;
}

.modal-body, .modal-title {
    text-align: center;
}

.modal-buttons {
    display: flex;
    flex-flow: row;
    margin-top: 20px;
}

.modal-content button {
    min-width: 100px;
    width: 100%;
    padding: 10px;
    text-align: center;
    border: none;
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
}

.modal-content button:first-child {
    margin-right: 5px;
}

.modal-submit:not(.btn-danger) {
    background-color: #555555 !important;
    color: white;
}

div.body {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    /*justify-content: center;*/
    align-items: flex-start;
}

.custom-sidebar {
    width: 250px;
    min-width: 250px;
    order: 1;
    background-color: rgba(242, 242, 242, 1);
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: left .3s;
    z-index: 10;
}

.custom-container {
    order: 2;
    width: 100%;
    max-width: calc(100% - 250px);
    padding-left: 20px;
    margin-right: 20px;
    padding-right: 20px;
}

.proxies_header, .proxies_header_actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.proxies_header p, .proxies_header_actions .left p {
    width: 50%;
    font-size: 20px;
    font-weight: bold;
}

.proxies_header .proxies_count {
    width: 50%;
    font-size: 20px;
    text-align: right;
}

.proxies_header .proxies_count > span {
    padding: 0px 20px;
}

.proxies_header .proxies_count > span:not(:last-child) {
    border-right: 1px solid black;
}

.proxies_header .proxies_count > span > span {
    font-weight: bold;
}

.proxies_header_actions .left {
    width: 50%;

}

.proxies_header_actions span button {
    position: relative;
    margin-bottom: 10px;
}

.proxies_header_actions span button div.proxies_count {
    position: absolute;
    background-color: red;
    top: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    font-size: 10px;
    text-align: center;
    border-radius: 10px;
    color: white;
}

.proxies_header_actions .right {
    width: 50%;
    text-align: right;
}

.proxies_header_actions .right input {
    height: 100%;
    padding-left: 10px;
    max-height: 40px;
    margin-bottom: 10px;
}

.proxies_header_actions button, .modal-content .btn-blue, .btn-blue {
    background-color: #169bd5;
    color: white;
    cursor: pointer;
}

.btn-white {
    border: 1px solid black;
}

.btn-transparent {
    background-color: transparent;
    border-color: gray;
}

.proxies_header_actions button:hover, .modal-content .btn-blue:hover, .btn-blue:hover {
    color: white;
    background-color: #397ab3;
}

.proxy_edit {
    width: 100%;
    max-width: 400px;
}

.proxy_param_block {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.proxy_param_block label {
    width: 150px;
}

.proxy_param_block input, .proxy_param_block select {
    width: 100%;
}

.proxy_param_block .custom_buttons {
    position: absolute;
    right: -65px;
    height: 100%;
}

.proxy_param_block .custom_buttons img {
    margin-right: 10px;
    cursor: pointer;
}

button.white, button.white:hover {
    background-color: #fff;
    color: black;
    border: 1px solid black;
}


button.white:hover {
    background-color: #f2f2f2;
}

.alert {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-bottom: 0 !important;
    border-color: transparent !important;
}

.administrator-field {
    display: flex;
    align-items: center;
}

.administrator-field label {
    min-width: 110px;
    justify-content: left;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0;
    text-align: left;
}

.administrator-field input:not([type='checkbox']) {
    width: 100% !important;
}

.administrator-field input[type='checkbox'] {
    display: inline-block;
    vertical-align: middle;
}

.market-field {
    max-width: 50%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.market-field:first-child {
    padding-right: 50px;
}

.dropdown {
    width: 100%;
}

.dropdown-menu {
    height: auto;
    max-height: 200px;
    overflow-x: hidden;
    width: 100%;
    top: 35px !important;
    left: 0;
    right: 0;
    transform: none !important;
}

.dropdown .dropdown-item {
    padding: 5px 10px;
}

.dropdown .dropdown-item:active {
    background-color: #eaeaea;
}

.dropdown .dropdown-item input {
    margin-right: 20px;
}

.dropdown button::after {
    position: absolute;
    right: 3px;
    top: 45%;
}

.administrator-field .dropdown .btn {
    padding: 0;
    text-align: left;
    width: 100%;
    overflow: hidden;
}

table.price {
    max-width: 900px !important;
}

table.price p {
    margin-bottom: 0 !important;
    padding: 5px 0;
}

table.price tr#duration_headers th {
    width: 130px !important;
}

table.price tbody td {
    padding: 0;
}

table.price tbody td input {
    border: 0;
}

table#deletable_prices tbody tr {
    position: relative;
    pointer-events: fill;
}

table#deletable_prices tbody tr img.price_button {
    cursor: pointer;
    position: absolute;
    right: 0px;
    left: 101%;
    top: 10px;
}

table {
    table-layout: fixed !important;
}

table td {
    word-wrap: break-word;
}

.bg-blue {
    background-color: #169bd5 !important;
    color: white !important;
}

table tr.row-plus {
    color: #5db85b;
}

table tr.row-expired, table tr.row-minus, table tr.row-REJECTED, tr.row-not_active {
    color: #D90000;
}

table tr.row-deleted {
    color: #169BD5;
}

table tr.row-to_give_out {
    color: #a7a7a7;
}

table tr.on_hold td {
    background-color: #bff9bf;
}

div.order > div {
    display: inline-block;
    vertical-align: top;
    width: 240px;
}


.collapse#search > div, .collapsing#search {
    width: 500px;
    max-width: 100%;
}

.opacity-50 {
    opacity: .5 !important;
}

.bootstrap-select .dropdown-toggle {
    color: inherit !important;
    background-color: white;
    border: 1px solid #ced4da;
}

.bootstrap-select .dropdown-menu {
    min-width: 220px;
}

.bootstrap-select .dropdown-menu .dropdown-item {
    white-space: break-spaces;
}

.bootstrap-select .dropdown-toggle:focus {
    outline: none !important;
    background-color: transparent !important;
}

.checker-loader {
    position: fixed;
    top: 50px;
    right: 30px;
    z-index: 10000;
}

.table-wrapper {
    position: relative;
}

.table-wrapper tbody {
    position: relative;
}

.table-wrapper .checker-loader {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1000;
    transition: none !important;
    display: none;
}

.table-wrapper tbody::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 999;
    display: none;
}

.table-wrapper.loading tbody::before {
    display: block;
}

.table-wrapper.loading .checker-loader {
    display: block !important;
}

.download-checked-proxies {
    cursor: pointer;
    text-decoration: underline;
}

.reset-proxy-filters {
    text-decoration: underline;
    font-weight: normal !important;
    font-size: 16px;
    cursor: pointer;
}

.user_emails p {
    cursor: pointer;
    transition: .3s;
}

.user_emails p:hover {
    color: #df4343;
}

input#control-user-email {
    font-size: 14px;
}

span.controlled_user {
    max-width: 195px;
    display: inline-block;
    vertical-align: middle;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 1.2em;
    white-space: nowrap;
}

button.control-user {
    font-size: 15px;
}

div[control-user] {
    display: none;
}

table#notes tbody tr, table#admin_actions tbody tr {
    cursor: pointer;
}

table#notes tbody tr:hover, table#admin_actions tbody tr:hover {
    background-color: #edebeb;
}


span.check_user_balance {
    text-decoration: underline;
    cursor: pointer;
    line-height: 38px;
}

.mobile-nav {
    display: none;
}

.mobile-overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: gray;
    opacity: 50%;
    display: none;
}

@media (max-width: 768px) {
    .custom-sidebar {
        position: absolute;
        left: -250px;
    }

    .custom-container {
        max-width: 100%;
    }

    .mobile-nav {
        display: block;
    }
}

.rating-container .clear-rating, .rating-container .caption {
    display: none !important;
}

.file a img {
    max-width: 100%;
    max-height: 100%;
}

.ticket_answer .buttons {
    display: flex;
    align-items: center;
}


.fixed-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.prices-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.status-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    cursor: pointer;
}

/* Different colors for each status */
.status-paid {
    background-color: #2fd02f;
}

.status-not_paid {
    background-color: gray;
}

.status-payment_failed {
    background-color: red;
}
