@media (prefers-color-scheme: dark) {

/* black background #FFF -> rgb(30, 30, 30) */

html, body {
  background-color: rgb(30, 30, 30) !important;
  color: #ccc !important;
}

iframe {
  background: rgb(30, 30, 30) !important;
  background-color: rgb(30, 30, 30) !important;
}

div.ba-site-container {
  background-color: rgb(30, 30, 30) !important;
}

div.loader {
  background-color: rgb(30, 30, 30) !important;
}

div.ba-notes-topic-title div.ba-topic-title, div.ba-notes-opportunity-title div.ba-opportunity-title {
	background: rgb(30, 30, 30) !important;
}

div.ba-notes-topic-title i, div.ba-notes-opportunity-title i {
	background: rgb(30, 30, 30) !important;
}

div.ba-actions-group-title div.ba-group-title {
	background: rgb(30, 30, 30) !important;
}

div.ba-actions-group-title div.ba-group-from {
	background: rgb(30, 30, 30) !important;
}

div.ba-actions-group-title i {
	background: rgb(30, 30, 30) !important;
}

nav.note-selector, nav.note-selector ul, nav.note-selector ul li, nav.note-selector ul li a {
  background-color: rgb(30, 30, 30) !important;
}

div.ba-content-sidebar-activable {
  background-color: rgb(30, 30, 30) !important;
}

div.ba-notes-topic-title div.ba-topic-title, div.ba-notes-opportunity-title div.ba-opportunity-title {
  background: rgb(30, 30, 30) !important;
}

div.ba-notes-topic-title i, div.ba-notes-opportunity-title i {
  background: rgb(30, 30, 30) !important;
}

td.action-large-header {
  background-color: rgb(30, 30, 30) !important;
}

div.action-large-header-flex {
	background-color: rgb(25, 25, 25) !important;
}

#button-signup-ms, #signin-ms-adal, #signin-ms-adal-full, #ms-login, #ms-logued  {
  background-color: rgb(32, 33, 36) !important;
  color: #ffffff !important;
  border: none !important;
}

#button-signup-ms:hover {
  background-color: rgb(84,85,88) !important;
}

#button-signup-ms img {
  width: 35px;
  height: 35px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  background-color: rgb(255,255,255) !important;
}

#button-signup-google div {
  background-color: rgb(32, 33, 36) !important;
  color: #ffffff !important;
}

#button-signin-google div {
  background-color: rgb(32, 33, 36) !important;
  color: #ffffff !important;
}

#signin-ms-adal:hover {
  background-color: rgb(84,85,88) !important;
}

#login-beesy, #login-ms {
  background-color: rgb(30, 30, 30) !important;
}

#DIV_1 {
  background-color: rgb(30, 30, 30) !important;
}

div.beesy-logo-login {
  background-image: url(/images/site/logo-beesy-white.png) !important;
}

div.signup-welcome {
  background-color: rgb(30, 30, 30) !important;
}

div.signup-client .carousel-control {
  color: white !important;
}

table.ba-actions-subtasks-table {
	background-color: rgb(30, 30, 30) !important;
}

.form-control {
  color: #aaa !important;
  background-color: rgb(50, 50, 50) !important;
  border-top-color: rgb(20, 20, 20) !important;
  border-bottom-color: rgb(20, 20, 20) !important;
  border-left-color: rgb(20, 20, 20) !important;
  border-right-color: rgb(20, 20, 20) !important; 
}

.panel {
  background-color: rgb(30, 30, 30) !important;
}

.panel-default {
  border-color: rgb(90 90 90) !important;
}

.input-group-addon {
  color: #aaa !important;
}

input {
  background-color: rgb(40, 40, 40) !important;
}

legend {
  color: #ccc !important;
  border-bottom: 1px solid rgb(70, 70, 70) !important; 
}


.well {
  background-color: rgb(60, 60, 60) !important;
  border: 1px solid rgb(70, 70, 70) !important;
}

.table-striped>tbody>tr:nth-of-type(odd) {
  background-color: rgb(60, 60, 60) !important; 
}

/* buttons */

.btn-default {
  background-color: rgb(40, 40, 40) !important;
  color: #ccc !important;
  border-top-color: rgb(20, 20, 20) !important;
  border-bottom-color: rgb(20, 20, 20) !important;
  border-left-color: rgb(20, 20, 20) !important;
  border-right-color: rgb(20, 20, 20) !important; 
}

.ba-textcolor-button-transparent {
  color: #ccc !important;
}

a.download-ics {
  color: #ccc !important;
}

.close {
  color: #ccc !important;
}

.btn-beesy-toogle:hover span {
  color: white !important;
  border-bottom: solid 4px rgb(140,140,140) !important;
}

.btn-default:hover, .btn-default:active, .btn-default:visited, .btn-default:focus, .btn-default:not(:focus) {
  background-color: rgb(40, 40, 40) !important;
}

.btn-beesy-lightgray:hover, .btn-beesy-lightgray:active, .btn-beesy-lightgray:visited, .btn-beesy-lightgray:focus, .btn-beesy-lightgray:not(:focus) {
  background-color: rgb(40, 40, 40) !important;
}

.btn-beesy-transparent.dropdown-toggle span.text {
  border-bottom: solid 1px white !important;
}

.btn-primary {
  border: none !important;
  background-color: rgb(65, 65, 65) !important;
  border-top-color: rgb(20, 20, 20) !important;
  border-bottom-color: rgb(20, 20, 20) !important;
  border-left-color: rgb(20, 20, 20) !important;
  border-right-color: rgb(20, 20, 20) !important; 
}

.btn-primary-withborder {
  color: white;
  background-color: rgb(65, 65, 65) !important;
}

.btn-disabled {
  color: black !important; 
}

.bootstrap-switch {
  border: 1px solid #333 !important;
}

.bootstrap-switch .bootstrap-switch-label {
    background: #aaa !important;
}

.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary, .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary {
  background: rgb(40, 40, 40) !important;
}

.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default, .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default {
  color: #aaa !important;
  background: #111 !important;
}

.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary, .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary {
  background: #337ab7 !important;
}

/* popups */

div.popup {
  background-color: rgb(42, 42, 42) !important;
}

div.popup .popup-header {
  background-color: rgb(42, 42, 42) !important;
}

div.popup-content {
  background-color: rgb(42, 42, 42) !important;
}

a.popup-list-center-link {
  color: #ccc !important;
}

.popup-arrow.right:after {
    border-color: rgba(42, 42, 42, 0) !important;
    border-right-color: rgb(42, 42, 42) !important;
}

.popup-arrow.right:before {
    border-color: rgba(186, 186, 186, 0) !important;
    border-right-color: rgb(42, 42, 42) !important;
}

.popup-arrow.left:after {
    border-color: rgba(42, 42, 42, 0) !important;
    border-left-color: rgb(42, 42, 42) !important;
}
.popup-arrow.left:before {
    border-color: rgba(186, 186, 186, 0) !important;
    border-left-color: rgb(42, 42, 42) !important;
}

.popup-arrow.bottom:after {
    border-color: rgba(42, 42, 42, 0) !important;
    border-bottom-color: rgb(42, 42, 42) !important;
}

.popup-arrow.bottom:before {
    border-color: rgba(186, 186, 186, 0) !important;
    border-bottom-color: rgb(42, 42, 42) !important;
}

.popup-arrow.top:after {
    border-color: rgba(42, 42, 42, 0) !important;
    border-top-color: rgb(42, 42, 42) !important;
}

.popup-arrow.top {
    border-color: rgba(186, 186, 186, 0) !important;
    border-top-color: rgb(42, 42, 42) !important;
}

.modal-content {
  background-color: rgb(42, 42, 42) !important;
}

.modal-header {
  border-bottom-color: rgb(50, 50, 50) !important;
}

.modal-footer {
  border-top: 1px solid rgb(50, 50, 50) !important;
}

div.popup-body-list div.popup-list-item:hover {
  color:#fff !important;
  background:#333 !important;
}

.dropdown-menu {
  background-color: rgb(42, 42, 42) !important;
}

.dropdown-menu>li>a {
  color: #ccc !important;
}

.dropdown-menu>li>a:hover, .dropdown-menu>li>a:focus {
  background-color: rgb(70, 70, 70) !important;
}

.popover {
  background-color: rgb(42, 42, 42) !important;
}

.popover-title {
  background-color: rgb(42, 42, 42) !important;
  border-bottom: 1px solid rgb(70, 70, 70) !important;
}

/* black background rgb(25, 88, 105) -> rgb(40, 40, 40) */

.navbar-collapse {
  background-color: rgb(40, 40, 40) !important;
}

.navbar-inverse {
  background-color: rgb(40, 40, 40) !important;
  border: none !important;
}

.navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:hover, .navbar-inverse .navbar-nav>.active>a:focus {
  background-color: rgb(40, 40, 40) !important;
}

.nav-pills>li.active>a, .nav-pills>li.active>a:hover, .nav-pills>li.active>a:focus {
  color: #fff;
  background-color: rgb(40, 40, 40) !important;
}

.navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-nav>.open>a:hover, .navbar-inverse .navbar-nav>.open>a:focus {
    background-color: rgb(30, 30, 30) !important;
}

.nav>li>a:hover, .nav>li>a:focus {
    background-color: rgb(40, 40, 40) !important;
}

.datepicker .datepicker-switch:hover, .datepicker .next:hover, .datepicker .prev:hover, .datepicker tfoot tr th:hover {
  background: rgb(40, 40, 40) !important;
}

div.sidebar-button {
  background-color: rgb(40, 40, 40) !important;
}

/* right bar back rgb(239, 239, 239) -> rgb(16, 16, 16) */

div.barightbar-main-background {
	background-color: rgb(25, 25, 25) !important;
}

/* right bar back rgb(219, 238, 243) -> rgb(36, 17, 12) */

div.ba-action-medium-showlarge {
	background-color: rgb(36, 17, 12) !important;
}

tr.ba-actions-subtasks-task:hover {
	background-color: rgb(36, 17, 12) !important;
}

tr.ba-actions-subtasks-comment:hover {
	background-color: rgb(36, 17, 12) !important;
}

tr.ba-actions-subtasks-attachment:hover {
	background-color: rgb(36, 17, 12) !important;
}

/* ui lines */

hr {
  border-top: 1px solid rgb(70, 70, 70) !important;
}

div.ba-action-mini {
  background: rgb(40, 40, 40) !important;
}

div.ba-action-medium, div.ba-action-mini {
  border-top-color: rgb(70, 70, 70) !important;
}

div.ba-action-medium:last-child, div.ba-action-mini:last-child {
		border-bottom: solid 1px rgb(70, 70, 70) !important;
}

div.ba-content-sidebar-activable {
  background-color: rgb(30, 30, 30) !important;
  border-top: 1px solid rgb(70, 70, 70) !important;
  border-bottom: 1px solid rgb(70, 70, 70) !important;
  border-right: 1px solid rgb(70, 70, 70) !important;
  border-left: 1px solid rgb(70, 70, 70) !important;
}

.border-bottom-group {
  background-color: rgb(70, 70, 70) !important;
}

div.search-transparent .input-group-addon {
    border-bottom: 1px solid rgb(70,70,70) !important;
}

div.search-transparent .form-control {
    border-bottom: 1px solid rgb(70,70,70) !important;
}

div.ba-content-sidebar-border {
  border-right: 1px solid rgb(70,70,70);
}

div.popup-body-list div.popup-list-item {
  border-bottom: dotted 1px rgb(70, 70, 70) !important;
}

/* action bar */

.action-bar-icon.yellow {
  background-image: url(/images/action/bar-icons-yellow-dark.png) !important;
}

.action-bar-icon.blue {
  background-image: url(/images/action/bar-icons-blue-dark.png) !important;
}

.action-bar-icon.green {
  background-image: url(/images/action/bar-icons-green-dark.png) !important;
}

.action-bar-icon.grey {
  background-image: url(/images/action/bar-icons-grey-dark.png) !important;
}

.action-bar-icon.red {
  background-image: url(/images/action/bar-icons-red-dark.png) !important;
}

.action-bar-icon.violet {
  background-image: url(/images/action/bar-icons-violet-dark.png) !important;
}

.action-bar-icon:hover {
  -webkit-filter: brightness(50%);
  filter: brightness(50%);
}

/* tweaks */

.no-color {
  color: #ccc !important;
}

div.ba-action-medium-date-day {
  color: white !important;
  border-bottom: solid 2px white !important;
}

div.ba-action-mini-date-day {
  color: white !important;
  border-bottom: solid 2px white !important;
}

.badate-day-micro {
	color: white !important;
}

div.ba-person-icon-circle-big-nonuser {
  background-color: rgb(90, 90, 90) !important;
}

div.ba-person-icon-circle-big-nonuser span {
  color: white !important;
}

div.ba-person-icon-circle-big-user {
  background-color: rgb(102,135,24) !important;
}

td.ba-action-medium-assigncolor div.ba-person-icon-circle-big {
  background-color: rgb(102,135,24) !important;
}

div.ba-person-icon-circle-small {
    background-color: rgb(25,25,25) !important;
}

.action-status {
  background-image: url(/images/action/status_black.png) !important;
}

div.img-person-single {
  background-image: url(/images/people/person-single-white.png) !important;
}

div.img-project-black {
  background-image: url(/images/projects/projectwhite.png) !important;
}

.ba-toppage-back-arrow {
  color: #333;
}

.ba-toppage-globalback-arrow {
  color: #333;
}

.add-main-beesy-object, i.icon-add-text, td.ba-sidebar-item-right i.fa-trash-alt {
  color: rgb(90, 90, 90) !important;
}

div.basharenote-peoplelist {
  background-color: rgb(50, 50, 50) !important;
  border: solid 1px rgb(50, 50, 50) !important;
}

div.bashareproject-peoplelist {
  background-color: rgb(50, 50, 50) !important;
  border: solid 1px rgb(50, 50, 50) !important;
}

div.basharegoal-peoplelist {
  background-color: rgb(50, 50, 50) !important;
  border: solid 1px rgb(50, 50, 50) !important;
}

div.baduplicateaction-peoplelist {
  background-color: rgb(50, 50, 50) !important;
  border: solid 1px rgb(50, 50, 50) !important;
}

div.bagroup-peoplelist {
  background-color: rgb(50, 50, 50) !important;
  border: solid 1px rgb(50, 50, 50) !important;
}

div.ba-person-icon-circle-big-group {
  box-shadow: 2px 0px rgb(35,35,35), 6px 0px rgb(70,70,70) !important;
}

div.ba-action-medium-container-subtask-progress {
  border: 1px solid rgba(70, 70, 70, 1) !important;
}

.progress {
  background-color: rgb(50, 50, 50) !important;
}

.matrix {
  background-image: url(/images/action/matrix-icons-dark.png) !important;
}

.matrix-small {
  background-image: url(/images/action/matrix-icons-small-dark.png) !important;
}

li.dropdown-header {
  color: white !important;
}

span.chat-link a {
  color: white !important;
}

span.notification-link a {
  color: white !important;
}

.badash-header-celltop {
	background-color: rgb(40, 40, 40) !important;
}

div.goal-image {
  background-image: url(/images/projects/goalgrey.png) !important;
}

div.ba-action-medium-smallwidth .action-status {
	background-image: url(/images/action/status-for-interactivity-white.png) !important;
}

.lds-spinner div:after {
  background: #fff !important;
}

div.ba-editmail table.baeditmail-options .recipient-item {
  background: #596E7B !important;
  color: #E0E0E0 !important;
}

.vis-timeline {
    border: 1px solid rgb(70, 70, 70) !important;
}

.vis-panel.vis-bottom, .vis-panel.vis-center, .vis-panel.vis-left, .vis-panel.vis-right, .vis-panel.vis-top {
    border: 1px rgb(70, 70, 70) !important;
}

.vis-time-axis .vis-grid.vis-odd {
  background: rgb(60, 60, 60) !important;
}

div.actiontype-list tr.actiontype:hover {
    background-color: rgb(60, 60, 60) !important;
    color: white !important;
}

div.note-list tr.note:hover {
    background-color: rgb(60, 60, 60) !important;
    color: white !important;
}

div.companies-list tr.company:hover {
    background-color: rgb(60, 60, 60) !important;
    color: white !important;
}

div.goal-list tr.goal:hover {
    background-color: rgb(60, 60, 60) !important;
    color: white !important;
}

div.opportunities-list tr.opportunity:hover {
    background-color: rgb(60, 60, 60) !important;
    color: white !important;
}

div.opportunities-list tr.opportunity:hover div.ba-opportunity-icon {
    background-color: rgb(60, 60, 60) !important;
}

div.people-list tr.person:hover {
    background-color: rgb(60, 60, 60) !important;
    color: white !important;
}

div.people-list tr.person:hover div.ba-person-icon {
    background-color: rgb(60, 60, 60) !important;
}

div.project-list tr.project:hover {
    background-color: rgb(60, 60, 60) !important;
    color: white !important;
}

div.topic-list tr.topic:hover {
    background-color: rgb(60, 60, 60) !important;
    color: white !important;
}

div.ba-black-waiting-popup {
  background-color: rgb(60, 60, 60) !important;
}

div.outlook-add-action div.newaction-footer {
  background-color: rgb(30, 30, 30) !important;
}

div.outlook-add-action .btn-outlook-attachment {
  background-color: rgb(30, 30, 30) !important;
}

.intl-tel-input .country-list {
	background-color: rgb(60, 60, 60) !important;
}

div.outlook-add .btn-default  {
  background-color: rgb(30, 30, 30) !important;
}

div.note-add-note .btn-default  {
  background-color: rgb(30, 30, 30) !important;
}

div.outlook-add div.ba-header-title {
  color: white !important;
}

div.note-add-note div.ba-header-title {
  color: white !important;
}

label.togglebtn {
  background-color: rgb(205 205 205) !important;
}

input.togglebtn:checked + label.togglebtn:not(.disabled) {
  background-color: rgb(205 205 205) !important;
}
}