.dropdown-menu {
  background-color: #3a3f44;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  font-size: 14px;
}

a#logged_in_as + .dropdown-menu {
  width: 100%;
}

.dropdown-toggle:hover {
  background-color: black;
  background-image: none;
}

.dropdown-item {
  color: #c8c8c8;
}

.dropdown-item:hover {
  color: white;
  background-color: #272b30;
}


.popover { max-width: 100%; }
.m4btn-buy { color: #0000E6 }
.m4btn-buy:hover { color: #0000AC }
.m4btn-sell { color: #E60000 }
.m4btn-sell:hover { color: #AC0000 }
.m4btn-call { background: #FFFFFF }
.m4btn-put { background: #FFFF94 }
.m4btn-put:hover { background: #C0C06F }
.m4btn-fut { background: #FFFFFF }

.transparent {
  opacity: 0;
}

.grabbable {
  cursor: move; /* fallback if grab cursor is unsupported */
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
}

.no-padding-right {
  padding-right: 0px;
}

.no-padding-left {
  padding-left: 0px;
}

.padding-right-5 {
  padding-right: 5px;
}

.no-padding-left {
  padding-left: 0;
}

.no-border-radius {
  border-radius:0;
}

.no-top-margin{
  margin-top: 0;
}

.row.no-gutters {
  margin-left: 0;
  margin-right: 0;
}
.row.no-gutters > [class ^="col-"], .row.no-gutters > [class *="col-"] {
  padding-right: 0;
  padding-left: 0;
}

.top-padding-5 {
  padding-top: 5px;
}

.vcenter {
  display: inline-block;
  vertical-align: middle;
  float: none;
}

textarea, select, input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
  background-color: #333333 !important;
  border-color:black !important;
  color:white;
}
.select2 {
  color:white !important;
}

.select-muted.input-group-addon, .select-muted.select2-selection__rendered {
  color: #7a8288 !important;
}

html {
  position: relative;
  min-height: 100%;
}
body {
  margin-bottom: 30px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 30px;
  padding: 5px;
  background-color: black;
}
.footer p{
  margin-bottom: 0;
}
.panel-default .panel-heading-put {
  background: #FFFF94 !important;
}
.panel-default .panel-heading-call {
  background: #FFFFFF !important;
}
.panel-default .panel-heading-future {
  background: #FFFFFF !important;
}
.card-title-buy {
  color:#004CC0;
  font-family:monospace;
  white-space: pre-wrap;
  font-weight: bold;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.card-title-sell {
  color:#992600;
  font-family:monospace;
  white-space: pre-wrap;
  font-weight: bold;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

#save_changes_popup_text > .card-title-buy,
#save_as_popup_text > .card-title-buy,
#submit_ticket_popup_text > .card-title-buy {
  color:rgb(61, 144, 252);
}
#save_changes_popup_text > .card-title-sell,
#save_as_popup_text > .card-title-sell,
#submit_ticket_popup_text > .card-title-sell {
  color:rgb(244, 51, 54);
}

.modal-body .form-horizontal .col-sm-2,
.modal-body .form-horizontal .col-sm-10 {
  width: 100%
}
.modal-body .form-horizontal .control-label {
  text-align: left;
}
.modal-body .form-horizontal .col-sm-offset-2 {
  margin-left: 15px;
}

.select2-search__field {
  color: lightblue;
}
.select2-container--bootstrap .select2-results > .select2-results__options {
  max-height: 300px;
  overflow-y: auto;
}
.navbar{
  border-radius: 0;
}

.navbar-inverse .navbar-nav>li>a.nav-success {
  background: #4E5356;
}

.navbar-inverse .navbar-nav>li>a.nav-success {
  background-image: linear-gradient(#757B7F, #565D61 60%, #4E5356);
  background-repeat: no-repeat;
}

.navbar-inverse .navbar-nav>li>a.nav-success:hover {
  background: #000000;
}

.nav>li>a.nav-bar-item {
  outline: none;
}

.dropdown-menu.right-justified{
  left: auto;
  right: 0;
  margin-top: 0;
}

.dropdown-menu > li > a:hover{
  cursor: pointer;
}

.dropdown-menu > li > a[disabled = 'disabled']:hover{
  cursor: not-allowed;
}

li.btn-group:hover .dropdown-menu{
  display: block;
}

.card-div .panel{
  margin-bottom: 10px;
}

.card-lock{
  width: 100%;
  position: relative;
}

.card-lock-inner {
  display: inline-block;
  margin-bottom: 10px;
  margin-left: 125px;
}

.card-lock .glyphicon-unlock{
  display: none;
}

.card-lock.unlocked .glyphicon-unlock{
  display: block;
  height: 16px;
  width: 14px;
  margin-left: 5px;
  color: orange;
  background: url(../../static/img/unlocked-glyphicon.png);
  background-repeat: no-repeat;
}

.card-lock.unlocked:before {
  width: 100%;
  border-top: 1px solid orange;
  margin-top: 8px;
  content: '';
  position: absolute;
}

.card-lock-span-background-container {
  background-color: #2e3338;
  display: inline-block;
  height: 16px;
  width: 24px;
  z-index: 1000;
}

.card-lock.unlocked .glyphicon-lock{
  display: none;
}

.card-lock .glyphicon-lock{
  margin-left: 5px;
}

.card-lock .glyphicon:hover{
  cursor: pointer;
}

.custom-chevron{
  color: #5bc0de;
}

.table > tbody > tr > td.first-col, .table > thead > tr > th.first-col, .table > thead > tr > td.first-col{
  color: gray;
  font-size: .85em;
  vertical-align: middle;
}

th.header, th.headerSortDown, th.headerSortUp  { cursor: pointer; }

th.headerSortUp {
color: #5bc0de;
}

th.headerSortDown {
color: #5bc0de;
}

#loadingTicketTable{
  max-width:100%;
  padding-top: 10px;
}

#mainForm[data-quick-confirmation-enabled="false"] #btn_quick_confirm{
  display: none;
}

#mainFormCardContainer .card-div:last-child .card-lock{
  display: none;
}

#mainFormCardContainer .panel-heading{
  position: relative;
}

#mainFormCardContainer .panel-title{
  position: relative;
  z-index: 98;
}

#mainFormCardContainer .x-btn{
  z-index: 101;
}

#mainFormCardContainer [id*='cardQuantityWarning']{
  display: none;
}

#mainFormCardContainer [id*='cardDiv'][data-has-quantity-warning='true'] [id*='cardQuantityWarning']{
  display: block;
}

#mainFormCardContainer [id*='cardDiv'][data-has-other-warning='true'] [id*='cardQuantityWarning']{
  display: block;
}

#mainFormCardContainer .panel-heading .glyphicon-exclamation-sign, #mainFormCardContainer .panel-heading .glyphicon-exclamation-sign{
  position: absolute;
  top: 6px;
  left: 400px;
  color: #3e444c;
  font-size: 1.75em;
}

#summary_count_div_outer {
  min-height: 42px;
}

#ticketSearchBar {
  height: 38px;
  width: 150px;
  border-radius: 4px;
}

#searchButtonContainer {
  line-height:40px;
}

#searchButton {
  vertical-align: middle;
}

#multi_report_button_div {
  line-height:40px;
}

#multi_report_button {
  vertical-align: middle;
}

#multi_report_button.multi_report_button_active,
#multi_report_button.multi_report_button_active:hover,
#multi_report_button.multi_report_button_active:focus {
  border-color: #3687CC;
  border-width: 2px;
}

.no-space-container {
    font-size: 0;     // whitespaces go away
}
.no-space-container span {
    font-size: 16px;  // spans text please stay
}

.no-js {
  display:none;
}

.not-displayed {
  display:none;
}

.inline {
  display: inline;
}

#noResults > td {
  width:50px;
  text-align:center;
  vertical-align:middle;
}

.table>tbody>tr>td.ticketTableButtonColumn {
  text-align: right;
}

.table>tbody>tr>td.ticketTableButtonColumn>div.pull-right>.btn {
  width: 105px;
  height: 35px;
}

#ticketTable tr.removableTableBodyContents:hover {
  outline: 1px solid #31b0d5;
}

#ticketTable {
  margin-bottom: 0px;
}

.glyphicon-search-bar {
  font-size: 1.2em;
  color: grey;
  line-height: 40px;
}

.glyphicon-search-bar:hover {
  cursor: pointer
}


.glyphicon-search-bar-active {
  color: #5bc0de;
}

#customer-breakdown-chart-wrap {
  position: relative;
  padding-bottom: 100%;
  height: 0;
  overflow:hidden;
}

#customer-breakdown-chart {
  position: absolute;
  top: 0;
  left: 0;
  width:100%;
  height:100%;

}

.glyphicon-flipped{
  transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
}

.swap-traders-action{
  display: none;
}

#mainFormCardContainer.edit [id*='cardDiv'][data-is-primary="1"] .swap-traders-action{
  display: inline-block;
}

.trader-action-wrapper{
  margin-left: 50px;
}

.bootstrap-datetimepicker-widget.dropdown-menu.bottom:after{
  border-bottom: 6px solid #3a3f44;
}

/* custom pricepicker widget CSS */
.bootstrap-datetimepicker-widget.pricepicker{
  left: auto;
  right: 0;
}

.bootstrap-datetimepicker-widget.pricepicker.dropdown-menu{
  width: 160px;
}

.bootstrap-datetimepicker-widget.pricepicker table td span, .bootstrap-datetimepicker-widget.pricepicker table td{
  height: 10px;
  line-height: 10px;
  width: 34px;
}

.bootstrap-datetimepicker-widget table td span:hover{
  background: none;
}

.bootstrap-datetimepicker-widget.pricepicker table tr td:first-child{
  padding-right: 0;
}

.bootstrap-datetimepicker-widget.pricepicker table tr td:last-child{
  padding-left: 0;
}

.bootstrap-datetimepicker-widget.pricepicker.dropdown-menu.bottom:before{
  right: 7px;
  left: auto;
}

.bootstrap-datetimepicker-widget.pricepicker.dropdown-menu.bottom:after{
  right: 8px;
  left: auto;
}

.pricepicker-content {
  width: 20px;
}

.bootstrap-datetimepicker-widget.pricepicker .separator, .pricepicker-content{
  padding: 0px;
  font-size: 20px;
  text-align: center;
}

.full-width{
  width: 100%;
}

.collapsing{
  -webkit-transition-duration: 0.1s;
  -o-transition-duration: 0.1s;
  transition-duration: 0.1s;
}

/* ticket warning styles */
a.user-edited[data-is-confirmed="false"]{
  color: orange;
}

a.user-edited{
  text-decoration: none !important;
}

.popover{
  border: 1px solid black;
  background: #6b6f75;
}

.popover.bottom > .arrow{
  border-bottom-color: black;
}

.popover.bottom .arrow:after {
  border-bottom-color: #6b6f75;
}

.btn-block-width-50 {
  width: 50%;
  display: block;
}

.btn-group-2 {
  width: 48%;
  display: block;
}

.btn-toolbar-flex {
  display: flex;
}

.btn-defined-struct {
  padding-right: 3px;
  padding-left: 3px;
}

.second-struct-row {
  display: inline;
  padding-top: 0px;
}

@media screen and (max-width: 1199px) {
  .responsiveContainer {
    /*this gives it the precise width to match
    the Bootstrap container-fluid*/
    width: 97.5%;
  }
  .second-struct-row {
    display: block;
    padding-top: 5px;
  }
  .second-card-input-row {
    padding-top: 10px;
  }
  .responsive-input-padding {
    padding-right: 5px;
    padding-left: 5px;
  }
  .responsive-no-padding-left {
    padding-left: 0px;
  }
  .responsive-no-padding-right {
    padding-right: 0px;
  }
  .responsive-panel-title > p {
    font-size: .9em;
  }
}

.bootstrap-switch-wrapper {
  margin-left: 5px;
}

#panel_action_container{
  margin-top: 10px;
}

#panel_action_container .btn-group{
  margin-bottom: 20px;
}

#quick-actions[data-product-category] #futures-only-actions{
  display: none;
}

#quick-actions[data-product-category="SPF"] #options-actions{
  display: none;
}

#quick-actions[data-product-category="SPF"] #futures-only-actions{
  display: inline-block;
}

#quick-actions .bootstrap-switch{
  display: none;
  /*margin: 0 50px;*/
}

#multi_csv_option_btn_group .btn-group{
  margin-bottom: 20px;
}

#file_output_preview {
  margin-top: -5px;
  margin-bottom: 15px;
}

td.opposite-trader-cell .glyphicon{
  display: none;
}

#mainFormContents td.opposite-trader-cell .select2-container{
  float: right;
}

#mainFormContents td.opposite-trader-cell .glyphicon{
  display: inline-block;
  margin-top: 11px;
}

#mainFormCardContainer[data-show-roll='false'] .roll-actions{
  display: none;
}

#customer_order_capacity[data-customer-parent-type="1"] option[data-customer-parent-type="4"], #customer_order_capacity[data-customer-parent-type="1"] option[data-customer-parent-type="2"]{
  display: none;
}

#customer_order_capacity[data-customer-parent-type="4"] option[data-customer-parent-type="1"], #customer_order_capacity[data-customer-parent-type="4"] option[data-customer-parent-type="2"]{
  display: none;
}

 #customer_order_capacity[data-customer-parent-type="2"] option[data-customer-parent-type="1"], #customer_order_capacity[data-customer-parent-type="2"] option[data-customer-parent-type="4"]{
  display: none;
}

#confirm_popup_btn_ok{
  width: 25%;
}

#autoSortButton.btn-default:hover{
    color: #ffffff;
    background-color: #3a3f44;
    background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539);
    background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#484e55), color-stop(60%, #3a3f44), to(#313539));
    background-image: linear-gradient(#484e55, #3a3f44 60%, #313539);
    background-repeat: no-repeat;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0);
    -webkit-filter: none;
    filter: none;
}

.highlight-blue{
  color: #5bc0de;
}

.hidden-on-load{
  display: none;
}

.min-height-50{
  min-height: 50px;
}

.min-height-20{
  min-height: 20px;
}

input[type="text"].qc-warning-text, p.qc-warning-text {
  font-size: 1.5em;
  font-weight: bold;
  color: #f0ad4e !important;
}

span.qc-warning-ticket-number-text {
  font-size: 1.5em;
  font-weight: bold;
  color: #f0ad4e !important;
}

i.qc-warning-text {
  font-size: 1.3em;
  font-weight: bold;
  color: #f0ad4e !important;
}

span.save-as-new-ticket-number-text {
  font-size: 1.5em;
  font-weight: bold;
}

span.bold-ticket-number-text {
  font-weight: bold;
}

#mainFormContents[data-is-futures-only="true"] .bk-action{
  display: none;
} 

.padded-checkbox-container{
  padding-bottom: 10px;
}
#csv_export_panel {
  padding-top: 0px;
  margin-top: -10px;
}

.removableTableBodyContents[data-trade-message-enabled="false"] .trade-message-action{
  display: none !important;
}

ul.user-permissions-col1, ul.user-permissions-col2{
  display: none;
  padding-left: 15px;
  list-style-type: none;
  margin-bottom: 6px;
}

a.disclaimer-button:hover{
  cursor: pointer;
}

#privacy-policy, #fee-schedule, #disclaimer {
  overflow-y: auto;
}

#discalimer {
  max-width: 90%;
}

div.disclaimer div.disclaimer-in-modal {
  background-color: #383d44;
  text-align: left;
  overflow: scroll;
  color: lightgray;
  border: 2px solid #383d44;
  height: 200px;
}
#is_bo {
  display: none;
}
#futures-only-actions {
  display: none;
}
#loadSpinner {
  position: relative;
  height: 50px;
}

#ticket_search_expand_button:hover {
  cursor: pointer;
}

#MQ_connections_expand_button:hover {
  cursor: pointer;
}

table#position-table.hide-body {
  display: none;
}
#toggle-position-table span.glyphicon-chevron-up{
  display:none;
}

#toggle-position-table span.glyphicon-chevron-down.hide-body{
  display: none;
}
#toggle-position-table span.glyphicon-chevron-up.hide-body{
  display: inline;
}

#position-table-well{
  min-height: 34px;
  margin-bottom: 20px;
  margin-left: 15px;
  width: calc(100% - 30px);
  border: 2px solid black;
}

#toggle-position-table > strong {
  color: #5bc0de;
}

#toggle-position-table > strong.hide-body {
  color: #c8c8c8;
}

#toggle-position-table, #toggle-position-table:hover, #toggle-position-table:visited {
  display: block;
  text-decoration: none;
}
#toggle-position-table:hover {
  cursor: pointer;
}
#toggle-position-table {
  background: #3e444c;
  position: absolute;
  width: calc(100% - 64px);
  height: 30px;
}

#toggle-position-table > strong:hover {
  color: #5bc0de;
  text-decoration: none;
}

#toggle-position-table a span.glyphicon, #toggle-position-table a:hover span.glyphicon, #toggle-position-table a:visited span.glyphicon{
  margin-top: 3px;
}
#toggle-position-table a span {
  color: #5bc0de;
}
#position-table-div {
  /*width: 100%;*/
  overflow-x: scroll;
}
#searchFilterLabel:hover {
  color: #5bc0de;
  text-decoration: none;
}
div#ticket_search_expand_button[data-state="open"] {
  color: #5bc0de;
}
div#ticket_search_expand_button[data-state="closed"] {
  color: #c8c8c8;
}

select.form-control{
  color: white;
}
#position-table {
  margin-top: 30px;
  margin-bottom: 0px;
  width: auto !important;
}
#position-table td {
  padding-left: 0px;
  padding-right: 0px;
  padding-bottom: 8px;
  padding-top: 8px;
}
#toggle-position-table span.glyphicon {
  color: #5bc0de;;
}
#qc_message {
  color: white;
}
div.arrow.position-breakdown-arrow {
  border-color: transparent !important;
}
div.arrow.position-breakdown-arrow::after {
  border-top-color: #3a3f44 !important;
}
::-webkit-scrollbar {
  background: transparent;
}
::-webkit-scrollbar-corner {
  background: rgba(0,0,0,0);
  border: none;
}
::-webkit-scrollbar-thumb { 
  background-color: gray;
  -webkit-border-radius: 1ex;
}
::-webkit-scrollbar-corner {
  background: rgba(0,0,0,0);
}
#punch_message_button {
  outline: none;
}

.well{
  overflow-x: scroll;
}

.well.table-overflow{
  height: 400px;
  overflow: auto;
}

.well.table-overflow.csv_table {
  min-height: 110px;
  height: 400px;
}

.well.table-overflow.seven{
  height: 243px;
}

.well.table-overflow.five{
  height: 144px;
}

.well.terminal{
  min-height: 60px;
  height: 144px;
  background: rgb(12, 13, 14);
  padding: 10px;
}

table.output-table{
  font-size: 11px;
  margin-bottom: 0;
}

.output-table>thead>tr>th, .output-table>tbody>tr>th, .output-table>tfoot>tr>th, .output-table>thead>tr>td, .output-table>tbody>tr>td, .output-table>tfoot>tr>td {
  padding: 6px;
}

table.terminal, div.terminal{
  background: none;
  font: 11px 'Andale Mono', Consolas, 'Courier New';
}


table.terminal td{
  padding: 4px;
  line-height: 1.5;
}

table.terminal td.success{
  color: #45D40C;
}

table.terminal td.error{
  color: #d4870c;
}

table.terminal td.canceled{
  color: #ff0000;
}

.center{
  text-align: center;
}

#allocator > .heading{
  padding-bottom: 6px;
  border-bottom: 2px solid #1c1e22;
}

#allocator > .allocation{
  padding: 10px 0;
  border-top: 1px solid #1c1e22;
}

#allocator > .allocation:hover{
  outline: 1px solid #31b0d5;
}

#allocator .allocation:nth-child(odd){
  background: #2e3338;
}

#allocator .allocation:nth-child(even){
  background: #353a41;
}

#allocator .allocation.success {
  box-shadow: inset 2px 2px #62c462, inset -2px -2px #62c462;
}
#account-selector-dropdown.dropdown-menu > li > a.selected-account-setting, a.selected-firm-setting {
  background-color: gray;
}
#fb_message {
  color: white;
}
#accountNumConfirmed[value = 'false'] + button > #account-selector-button-label {
  color: orange;
}

#accountNumConfirmed[value = 'true'] + button > #account-selector-button-label {
  color: white;
}

#keypunch_output_error {
  color: #f89406;
  text-align: center;
}

tr[data-has-trader-warning = 'true'] {
  outline: 1px solid red;
}

div[id^="cardDivHeading"][hasTail="true"] {
  border-top: 5px solid #ffa500;
}

#multi_report_loader {
  margin-top: 5px;
}

.tooltip {
  font-size: 13px;
}

span[id^="cardNetPremiumLabel"] {
  margin-top: -2px;
  position: relative;
  z-index: 5;
  color: gray;
  background-color: #2f3339;
  padding-left: 5px;
}
span[id^="cardNetPremiumLabel"] h4 {
  margin: 0px;
  font-size: 12px;
}
span[id^="cardNetPremiumLabel"] h4 strong.x-large {
  font-size: 16px;
}
strong.x-large {
  font-size: x-large;
}
div.delta-container {
  margin-left: 20px;
}
.icon-flipped {
  transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
}
[id^=cardPriceLabel]:hover {
  cursor: pointer;
  background-color: black;
  background-image: unset;
}
label[id^="cardFutureSpreadType1Option"] {
  font-size: 11px;
}
label[id^="cardFutureSpreadType1Option"] .expiration-text {
  font-size: 14px;
}
.prevent-user-selection {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.qc-file-selector {
  width: 25%;
}
