:root {
  --primary-colour: #261F78; /*#487415;*/
  --primary-frontend-colour:  #261F78;
  --secondary-colour: #665DC6; /*#85A60F;*/
  --secondary-frontend-colour: #665DC6;
  --tertiary-colour: #F8E59A;
  --accent-colour: #665DC6; /*#6FA038;*/
  --accent-frontend-colour: #665DC6;
  --color-variant-1: #ddd;
  --action-button: #ffe599;
  --charcoal: #414142;
  --grey: #939597;
  --lightgrey: rgb(239, 239, 239);
  --main-text-colour: #222222;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

body{
  font-size: 14px;
  font-family: "Open Sans",  sans-serif;
  font-weight: 400;;
}

h6, .form-wrapper.accordion .accordion-item h2, .form-wrapper.accordion .accordion-item .h2, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  font-weight: 400;
}

body:not(.page-node-type-page-without-title) {
  background-color: #f8f9fa;
}

#superfish-main ul:not(.sf-hidden) li{
  background-color: white;
}

.form-item {
  margin-top: 0px;
  margin-bottom: 0px;
}
.form-control, .form-select {
  font-size: 0.9rem;
}

a{
  color: var(--primary-frontend-colour);
  font-weight: 400;
}

nav a,
#block-simple-b5-views-block-medicnet-updates-for-staff-block-1 a,
#block-simple-b5-views-block-medicnet-updates-block-1 a,
table a
{
  text-decoration: none;
}

table th a,
table th{
  font-weight: 600;
}

a:hover{
  text-decoration: underline;
}

th a{
  color: var(--main-text-colour)
}

.btn,
.btn:disabled,
a.button.button-action,
a.button.button-action:disabled{
  background-color: var(--secondary-frontend-colour);
}

.btn:hover,
a.button.button-action:hover{
  background-color: var(--accent-frontend-colour);
  color: white;
}

.btn,
a.button.button-action{
  border: none;
  color: white;
}

article footer {
  padding: 0px;
}

.form-check-input:checked {
  background-color: var(--accent-frontend-colour);
  border-color: var(--accent-frontend-colour);
}

[type="radio"] {
  accent-color: var(--primary-frontend-colour);
}

.three-float-left {
  float: left;
  max-width: 33%;
  padding-right: 0.5rem;
}

@media (min-width: 992px) {
  .node-form {
    margin: 0px;
  }
}

.date-label {
  max-width: 100%;
  margin-bottom: 3px;
}

.table > :not(caption) > * > * {
  padding: 0.4rem 5px;
}

.page-node-type-page-without-title .block-page-title-block {
  display: none;
}


ul li a.nav-link {
  color: var(--primary-frontend-colour);
}

.block-page-title-block {
  color: var(--primary-frontend-colour);
  margin-top: 12px;
}

.title.comment-form__title {
  color: var(--primary-frontend-colour);
  margin-top: 15px;
}

#comment-form .form-wrapper {
  margin-bottom: 19px;
}

#edit-comment-body-wrapper #edit-comment-body-0-format
{
  display: none;
}

/* Menu styling */

header nav{
  background-color: white;
}

.sf-accordion-toggle:has(#superfish-main-toggle) {
  text-align: right;
}
.region-nav-main {
  margin-right: auto;
  margin-left: 20px;
}
.region-nav-additional {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
ul.sf-menu .sf-depth-1 > a > .sf-sub-indicator {
  display: none;
}
ul.sf-menu .sf-with-ul {
  padding-right: 5px;
  padding-left: 14px;
}
@media (max-width: 764px) {
  .region-nav-main {
    margin-right: 0;
  }
}
@media (max-width: 763px) {
  .region-nav-main {
    max-width: 430px;
  }
  .navbar > .container:has(#superfish-main-toggle) {
    align-items: baseline;
  }
  ul.sf-menu a{
    padding-left: 0px;
  }
  #superfish-main-accordion ul li a{
    padding-left: 30px;
  }
  #superfish-main-accordion ul li ul li a{
    padding-left: 60px;
  }
  ul.sf-menu .sf-depth-1 > a > .sf-sub-indicator {
    display: inherit;
  }
  ul.sf-menu .sf-with-ul {
    padding-right: inherit;
  }
}

@media (max-width: 560px) {
  .region-nav-main {
    max-width: min(350px, 80vw);
  }
}

/* Pagination bar styling */
.pagination .active .page-link{
  background-color: var(--accent-frontend-colour);
  border-color: var(--accent-frontend-colour);
}
.pagination .page-item:not(.active) .page-link {
  color: var(--accent-frontend-colour);
}

/* Block Styling */
.region-sidebar-second .block-views a {
  color: var(--main-text-colour);
  font-weight: inherit;
}

.region-sidebar-second .block-views a:hover {
  color: var(--primary-frontend-colour);
}

.region-sidebar-second .block{
  border: solid 1px #5050504a;
  background-color: white;
  border-radius: .375rem;
  margin-top: 13px;
  padding: 0.5em;
  text-align: center;
}

.region-sidebar-second .block ul {
  text-align: left;
}

.region-sidebar-second .block h2{
  font-size: 19px;
  text-align: left;
  padding-left: 4px;
  color: var(--primary-frontend-colour);
}

#block-simple-b5-views-block-medicnet-updates-block-1 .view-content,
#block-simple-b5-views-block-medicnet-updates-for-staff-block-1 .view-content {
  text-align: left;
}

.responsive-enabled > tbody > tr:nth-of-type(2n+1):not(.selected) > td {
  background-color: #43381b05;
}

:not(.page-node-type-page-without-title) h3 {
  color: var(--primary-frontend-colour);
  font-size: 19px;
}

:not(.page-node-type-page-without-title) h1 {
  font-size: 1.9rem;
}

.horizontal-tabs.clearfix {
  background-color: white;
}

.card {
  margin-top: 13px;
}

main {
  margin-bottom: 1em;
}

.navbar-nav .nav-link.active,
.nav-link:hover {
  color: var(--primary-frontend-colour);
}

footer.footer-light {
  background-color: white;
}

table thead {
  border-bottom: solid 1.5px var(--main-text-colour);
}

details > summary.card-header.bg-light
{
  color: var(--primary-colour);
}

.region-sidebar-second .block > h2::after{
  content: "";
  display: block;
  width: 200%;
  height: 1px;
  background-color: #ccc; /* Change to desired color */
  margin: 8px -50%; /* Adjust spacing as needed */
}

.region-sidebar-second .block:has(h2)
{
  overflow: hidden;
}

.btn-default, .btn-primary
{
  font-size: 0.95rem;
  padding: 0.33rem 0.68rem
}

details.card summary.card-header
{
  font-size: 18px;
}

details details.card summary.card-header,
.card .card-body summary.card-header
{
  font-size: 15px;
}

.card-body {
  overflow-x: auto;
}

@media (max-width: 1200px) {
  .container {
    max-width: 99vw;
  }
}

table {
  position: relative;
}

.faderSideTableContainer:has(> .scroll-fade-b5-left):before {
  width: 10em;
}

.faderSideTableContainer:has(> .scroll-fade-b5-right):after {
  width: 10em;
}

.faderSideTableContainer:has(> table):before,
.faderSideTableContainer:has(> table):after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 3px;
  pointer-events: none;
  height: calc(100% - 6px);
  width: 0px;
  max-width: 16vw;
  -webkit-transition: width 200ms;
  transition: width 200ms;
}

.faderSideTableContainer:has(> table):before {
  left: 0;
  background-image: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85) 50%);
  -webkit-transition: width 500ms;
  transition: width 500ms;
}

.faderSideTableContainer:has(> table):after {
  right: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85) 50%);
  -webkit-transition: width 500ms;
  transition: width 500ms;
}

.glyphicon-envelope 
{
  background-image: url("/modules/custom/medicnet_common/images/envelope-check.png");
  height: 31px;
  display: inline-block;
  width: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: top;
}

.ui-widget-content a{
  color: var(--secondary-colour);
}

.ui-menu .ui-menu-item-wrapper {
  padding: 5px 1.3em 5px 17px;
  display: block;
}

.ui-autocomplete .ui-state-active,
.ui-widget-content a:hover {
  background-color: var(--tertiary-colour);
  color: var(--primary-colour);
}

ul.sf-menu :not(.sf-depth-1) a {
  padding: 0.5em 1em;
}

.btn:focus-visible, .node-preview-container .node-preview-backlink:focus-visible, .button:focus-visible, button.link:focus-visible,
.btn:active, .node-preview-container .node-preview-backlink:active, .button:active, button.link:active {
  background-color: var(--primary-colour) !important;
  border-color: var(--primary-colour) !important;
  box-shadow: var(--bs-btn-focus-box-shadow) !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.button {
  margin-bottom: 5px;
}

input[type=number] {
  -moz-appearance: textfield;
}

input[name="DOB_yyyy"] {
  min-width: 70px;
}

input[readonly=readonly],
input[readonly=readonly]:focus {
  background-color: var(--bs-secondary-bg);
}

.notification-icon-exclamation-circle {
  background-image: url("/modules/custom/medicnet_common/images/exclamation-circle.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 14px;
  height: 14px;
  margin-right: 3px;
  margin-bottom: -1px;
  display: inline-block;
}

.notification-icon-bug {
  background-image: url("/modules/custom/medicnet_common/images/bug.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 14px;
  height: 14px;
  margin-right: 3px;
  margin-bottom: -1px;
  display: inline-block;
}

.notification-icon-lightbulb {
  background-image: url("/modules/custom/medicnet_common/images/lightbulb.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 14px;
  height: 14px;
  margin-right: 3px;
  margin-bottom: -1px;
  display: inline-block;
}

.notification-icon-purple-bell {
  background-image: url("/modules/custom/medicnet_common/images/purple-bell.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 14px;
  height: 14px;
  margin-right: 3px;
  margin-bottom: -1px;
  display: inline-block;
}

.notification-icon-send-check {
  background-image: url("/modules/custom/medicnet_common/images/send-check.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 14px;
  height: 14px;
  margin-right: 3px;
  margin-bottom: -1px;
  display: inline-block;
}

.form-actions #edit-preview,
.form-actions a#edit-delete {
  font-size: 0.95rem;
  padding: 0.33rem 0.68rem;
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.form-actions a#edit-delete {
  text-decoration: none;
  background-color: transparent;
  border: 1px solid #dc3545;
  color: #dc3545;
  margin-bottom: 4px;
}

.form-actions a#edit-delete:hover {
  background-color: #dc3545;
  color: #fff;
}

.form-actions #edit-preview {
  color: #fff;
  background-color: #6c757d;
  border: 1px solid #6c757d;
}

.form-actions #edit-preview:hover {
  background-color: #5c636a;
  border-color: #565e64;
}