/* Global blue-to-green theme overrides */
:root {
    --blue: #15803d;
    --primary: #15803d;
}

html,
body,
button,
input,
select,
textarea,
.btn,
.form-control,
.table,
.navbar,
.sidebar,
.dropdown-menu,
.modal,
[class*="col-"],
[class*="text-"] {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

a,
.text-primary {
    color: #15803d !important;
}

a:hover,
a:focus,
.text-primary:hover,
.text-primary:focus {
    color: #166534 !important;
}

.bg-primary,
.badge-primary,
.alert-primary,
.table-primary,
.list-group-item-primary {
    background-color: #15803d !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}

.border-primary {
    border-color: #15803d !important;
}

.btn-primary,
.btn.btn-primary {
    background-color: #15803d !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
    background-color: #166534 !important;
    border-color: #166534 !important;
    color: #ffffff !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

.page-item.active .page-link,
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: #15803d !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}

.page-link,
.pagination > li > a,
.pagination > li > span {
    color: #15803d !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background-color: #15803d !important;
    color: #ffffff !important;
}

.custom-control-input:checked ~ .custom-control-label::before,
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before,
.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    border-color: #15803d !important;
    background-color: #15803d !important;
}

.form-control:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.2) !important;
}

/* Bootstrap 3 primary variants */
.label-primary,
.panel-primary > .panel-heading,
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background-color: #15803d !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}

.panel-primary {
    border-color: #15803d !important;
}

/* Sidebar full green theme */
nav#sidebar,
#sidebar.sidebar,
#sidebar .sidebar-content,
#sidebar .simplebar-content,
#sidebar .sidebar-nav {
    background: #064e3b !important;
}

#sidebar .sidebar-brand {
    background: #065f46 !important;
    border-bottom: 1px solid #10b981 !important;
}

#sidebar .sidebar-header,
#sidebar .sidebar-link,
#sidebar .sidebar-link i,
#sidebar .sidebar-link svg,
#sidebar .sidebar-dropdown .sidebar-link {
    color: #ecfdf5 !important;
}

#sidebar .branch,
#sidebar .sidebar-nav *,
#sidebar .sidebar-nav a {
    color: #ecfdf5 !important;
}

#sidebar .branch {
    color: #ffffff !important;
}

#sidebar .sidebar-header {
    background: #34d399 !important;
    color: #064e3b !important;
}

#sidebar .sidebar-link:hover,
#sidebar .sidebar-link:focus,
#sidebar .sidebar-item.active > .sidebar-link,
#sidebar .sidebar-link[aria-expanded="true"] {
    background: #059669 !important;
    color: #ffffff !important;
}

#sidebar .sidebar-dropdown,
#sidebar .sidebar-dropdown .sidebar-item,
#sidebar .sidebar-dropdown .sidebar-link {
    background: #065f46 !important;
}

#sidebar [data-toggle="collapse"]::after {
    border-color: #a7f3d0 !important;
}

/* Match top collapsed navbar area to sidebar color */
nav.navbar-theme .navbar-collapse.collapse {
    background: #064e3b !important;
}

nav.navbar-theme .navbar-collapse.collapse .nav-link,
nav.navbar-theme .navbar-collapse.collapse .navbar-nav .nav-link {
    color: #ecfdf5 !important;
}

/* Unify all navbars to one color */
nav.navbar,
.navbar,
.navbar.navbar-theme,
.navbar.navbar-light.bg-white,
.navbar.navbar-expand-md.navbar-light.bg-white {
    background: #064e3b !important;
    border-color: #10b981 !important;
}

nav.navbar.navbar-expand.navbar-theme {
    background: #064e3b !important;
    border-color: #10b981 !important;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-text,
.navbar .dropdown-toggle {
    color: #ecfdf5 !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus {
    color: #6ee7b7 !important;
}

.navbar .navbar-toggler {
    border-color: #34d399 !important;
}

.navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar .dropdown-menu {
    background: #065f46 !important;
    border-color: #10b981 !important;
}

.navbar .dropdown-item {
    color: #ecfdf5 !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: #059669 !important;
    color: #ffffff !important;
}

/* Keep page refresh/loading background white */
.splash,
.splash.active,
.splash .splash-icon {
    background-color: #ffffff !important;
}
