body .region .block {
  padding-left: 30px !important;
}

body .region #block-civicv1-promethiaadminmenu-2 {
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 30px !important;
}

body .region #block-civicv1-sitebranding {
  padding-lfet: 30px !important;
}

#project-membership-wrapper {
  display: none;
}

h1 {
  font-size: 35px;
}

th a {
  font-weight: normal;
}

button {
  background: #992FED;
  border: 1px solid #FFFFFF;
  border-radius: 5px !important;
  color: #FFFFFF;;
}

button.active,
button:hover,
button:focus {
  background: #FFFFFF !important;
  border: 1px solid #444444;
  color: #444444 !important;
}

.form-element.form-text {
  border-radius: 8px;
  line-height: 20px;
  font-size: 16px; 
}

.region .block {
  padding-left: 60px;
  padding-right: 60px;
}

header {
  background: none !important;
  border-bottom: 3px solid #D3D3D3;
  padding-top: .9rem !important;
}


header #block-civicv1-sitebranding {
  padding-right: .2rem !important;
}

header #block-civicv1-sitebranding a {
  display: block;
  height: 5.3rem;
  margin-bottom: .9rem;
}

header #block-civicv1-sitebranding img {
  height: 70px;
  padding: 16px 6px;
}

header .region-header #block-civicv1-promethiaadminmenu-2,
header .region-header #block-civicv1-anonusersmenus-2 {
  margin-bottom: 18px;
  padding-left: 10px;
}

header .region-header #block-civicv1-promethiaadminmenu-2.block-menu ul {
  margin-top: 12px !important;
}

#block-civicv1-primary-local-tasks .is-horizontal .tabs__tab a.tabs__link {
  color: #646F79;
  font-size: 16px;
  font-weight: normal;
  padding: 10px 12px;
  min-height: unset;
  margin: 0 14px 0 0;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  header #block-civicv1-sitebranding img {
    height: 55px;
    padding: 10px 3px;
  }

  header #block-civicv1-sitebranding a {
    height: 70px;
  }

  header .region-header #block-civicv1-promethiaadminmenu-2.block-menu ul {
    margin-top: 4px !important;
  }

  header .region-header #block-civicv1-promethiaadminmenu-2.block-menu ul li a {
    padding-right: 10px;
  }

  header .region-header #block-civicv1-promethiaadminmenu-2,
  header .region-header #block-civicv1-anonusersmenus-2 {
    margin-bottom: 5px;
    padding-left: 4px;
  }

  #block-civicv1-primary-local-tasks .is-horizontal .tabs__tab a.tabs__link {
    color: #646F79;
    padding: 8px 12px;
    margin: 0 10px 0 0;
  }
}

header .region-header .block {
  float: left;
}



header .region-header .block-we-megamenu,
header .region-header .block-menu {
  float: right;
}

header .region-header .block-we-megamenu .navbar-we-mega-menu {
  background: none;
}



header .region-header .block-menu ul {
  list-style: none !important;
  margin-top: 12px;
}

header .region-header .block-menu li,
header .region-header .block-we-megamenu li {
  border-left: none;
  list-style: none !important;
}

header .region-header .block-menu li a,
header .region-header .block-we-megamenu li a {
  background: none;
  color: #000000;
  font-size: 15px;
}

header .region-header .block-menu li {
  float: left;
  min-height: 3rem !important;
}

header .region-header .block-menu li a {
  font-weight: 700;
  padding: 1.125rem 17px;
  text-decoration: none;
  text-transform: uppercase;
}

header .region-header .block-menu li a:hover,
header .region-header .block-menu li a:active,
header .region-header .block-menu li a:focus,
header .region-header .block-menu li a:focus-visible {
  background: #e5e5e5;
  color: #666666;
}



.layout-container {
  margin-left: 0 !important;
  margin-right: 0 !important;
}


.pager__link.is-active:focus,
.pager__link.is-active:focus-visible,
.pager__item--current:focus,
.pager__item--current:focus-visible {
  background: #003ecc !important;
  color: #ffffff !important;
}

#block-civicv1-primary-local-tasks {
  border-bottom: 1px solid #DDDDDD;
  padding-bottom: 14px;
  padding-right: 14px;
}

#block-civicv1-primary-local-tasks .is-horizontal .tabs__tab .tabs__link.is-active::before {
  border-bottom: none;
}

#block-civicv1-primary-local-tasks .is-horizontal .tabs__tab a:hover,
#block-civicv1-primary-local-tasks .is-horizontal .tabs__tab a:active,
#block-civicv1-primary-local-tasks .is-horizontal .tabs__tab a.is-active {
  color: #FFFFFF;
  background: #992FED;
  border-radius: 5px;
}

.block-page-title-block {
  border-bottom: 1px solid #DDDDDD;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

form.node-form label {
  font-weight: normal;
  text-transform: uppercase;
}

form.node-form .layout-form {
  grid-template-columns: auto !important;
}

form.node-form .layout-form .layout-region {
  margin-inline: initial;
  width: initial;
}

form.node-form .layout-form .layout-region--main {
  width: 100%;
}

form.node-form .layout-form .layout-region--secondary {
  display: none;
}

form.node-form fieldset {
  border-radius: 10px;
  border: 1rem solid #F1F5F8;
  outline: 1px solid #DDDDDD;
  padding: .85rem .85rem;
}

form.node-form .fieldset__label {
  font-size: 25px;
}

form.node-form #edit-group-color-options .claro-details__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

form.node-form #edit-group-color-options .field--type-color-field-type {
  flex: 1 1 calc(25% - 16px);
  box-sizing: border-box;
  min-width: 200px;
}

form.node-form .vertical-tabs ul.vertical-tabs__menu {
  width: 10rem !important;
}

form.node-form .vertical-tabs .vertical-tabs__panes {
  margin-inline-start: 10rem !important;
}

form.node-form #edit-field-escalation-rules-0-subform-field-escalation-sentiment-trigg,
form.node-form #edit-field-escalation-rules-0-subform-field-escalation-resolution-sent {
  padding-bottom: 16px;
  padding-top: 16px;
}

form.node-form #edit-field-escalation-rules-0-subform-field-escalation-sentiment-trigg .js-form-type-checkbox,
form.node-form #edit-field-escalation-rules-0-subform-field-escalation-resolution-sent .js-form-type-checkbox {
  float: left;
  padding-right: 22px;
}


form.node-form #edit-field-escalation-rules-0-subform-field-escalation-sentiment-trigg--wrapper--description,
form.node-form #edit-field-escalation-rules-0-subform-field-escalation-resolution-sent--wrapper--description {
  clear: both;
  padding-top: 8px;
}


.view-display-id-chat_statistics .views-exposed-form {
    position: absolute;
    top: -15rem;
    right: 4px;
    border: none;
    box-shadow: none;
    zoom: .6;
}

/* Promethia Admin - Stats Summary Grid */
.promethia-stats-grid {
  border-bottom: 1px solid #dddddd;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 2.2rem;
  padding-bottom: 2rem;
}

.promethia-traffic-chart-outer,
.promethia-traffic-hour-bar-heading-outer-2,
.promethia-stats-grid .promethia-stats-item {
  background-color: #F1F5F8; /* Light-grey background for outer container */
  border-radius: 10px;       /* Outer container border radius set to 10px */
  border: 1px solid #d6d6d6;
}

.promethia-traffic-chart-outer,
.promethia-traffic-hour-bar-heading-outer-2 {
  margin-bottom: 3rem;
}

.promethia-traffic-chart-outer .promethia-traffic-chart,
.promethia-traffic-hour-bar-heading-outer-2 .promethia-traffic-hour-bar-heading-outer,
.promethia-stats-grid .promethia-stats-inner {
  margin: 11px;               /* Reduced margin to minimize extra vertical space */
  padding: 12px;             /* Inner padding for spacing */
  background-color: #ffffff;    /* White background for inner content */
  border-radius: 10px;       /* Inner container border radius set to 10px */
  border: 1px solid #d6d6d6;
  min-height: 70px;          /* Ensures inner element is tall enough */
  display: flex;
  flex-direction: column;
  justify-content: left;   /* Center content vertically */
  align-items: left;       /* Center content horizontally */
}

.promethia-traffic-chart-outer .promethia-traffic-chart,
.promethia-traffic-hour-bar-heading-outer-2 .promethia-traffic-hour-bar-heading-outer {
  margin: 16px;
}

.promethia-stats-grid .promethia-stats-label {
  font-size: 8px;            /* Reduced font size for label */
  text-transform: uppercase;
  margin-bottom: 5px;
  white-space: nowrap;       /* Prevents wrapping */
}

.promethia-stats-grid .promethia-stats-value {
  font-size: 30px;
  font-weight: bold;
  white-space: nowrap;       /* Prevents value from stacking */
}

/* BEGIN DAY CHART STYLES */
.promethia-traffic-outer {
  background-color: #F1F5F8;
  border: 1px solid #D6D6D6;
  border-radius: 10px;
  margin-bottom: 4rem;
  padding: 0; /* We'll do actual content padding inside .inner */
}

.promethia-traffic-inner {
  background-color: #fff;
  border-radius: 10px;
  padding: 12px;
  /* The inner container that holds the actual .promethia-traffic-chart */
}

/* The main chart container (the actual .promethia-traffic-chart) */
.promethia-traffic-chart {
  position: relative;
}

/* Title, big %, small % row, etc. */
.promethia-traffic-chart-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.promethia-traffic-chart-header .title {
  font-size: 8px;
  text-transform: uppercase;
  font-weight: bold;
  margin-right: 10px;
}

.chart-percentage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.big-change {
  font-size: 30px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.small-change {
  font-size: 8px;
  border: 1px solid #3F7D6E;
  color: #3F7D6E;
  background-color: #EEFDF9;
  border-radius: 10px;
  padding: 2px 4px;
}

/* The SVG wrapper, tooltip, etc. */
.chart-svg-wrapper {
  width: 100%;
  overflow: hidden;
  /* We'll rely on the code to set up the svg (600x250) with preserveAspectRatio */
}

.traffic-svg {
  width: 100%;
  height: 250px;
}

/* Y-axis lines, day labels, etc. */
.day-label {
  font-size: 8px;
  text-transform: uppercase;
  fill: #000;
  font-weight: normal;
}
.day-label.bold {
  font-weight: bold;
}

/* Horizontal dotted lines for Y-axis */
.dotted-line {
  stroke: #D6D6D6;
  stroke-dasharray: 2,4;
  stroke-width: 1;
}

.graph-line {
  fill: none;
  stroke: #692C90;
  stroke-width: 1;
}

.graph-area {
  fill: #FAF4FF;
}

/* Hollow circles, bigger invisible circle for hover in JS code. */
.tooltip {
  position: absolute;
  background-color: #fff;
  border: 1px solid #692C90;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  display: none;
  pointer-events: none;
}

.pager .pager__items .pager__item--mini {
  padding-top: .4rem !important;
}

/* user page */
body.path-user label,
body.path-user h4 {
  color: #000000 !important;
}

/* Views Admin */
body.path-admin #edit-displays span.label {
  color: #000000 !important;
}
body.cc-night-mode.path-admin #edit-displays span.label {
  color: #d0d0de !important;
}
body.cc-night-mode .views-display-top {
  background-color: #252545 !important;
  color: #e0e0e0 !important;
}
body.cc-night-mode.path-admin #edit-displays a.views-ajax-link {
  background-color: #252545 !important;
  color: #c8d8f0 !important;
}
body.cc-night-mode.path-admin #edit-displays a.views-ajax-link:hover {
  background-color: #333355 !important;
  color: #a8c0e8 !important;
}

/* Chatbot Promo Page Styles */
body.view-chatbot-promo-promo-page header {
  border-bottom: none;
}

body.view-chatbot-promo-promo-page #block-civicv1-primary-local-tasks {
  display: none;
}

body.view-chatbot-promo-promo-page #block-civicv1-page-title {
  background: linear-gradient(50.79deg, rgba(17, 17, 17, 0.97) 26.91%, rgba(153, 47, 237, 0.9) 158.36%);
  height: 386px;
}

body.view-chatbot-promo-promo-page #block-civicv1-page-title h1.page-title {
  background: linear-gradient(90deg, #6FF5FF 0%, #992FED 100%);
  background-clip: text;
  -webkit-background-clip: text; /* Safari/Chrome compatibility */
  color: transparent;
  font-family: Inter, sans-serif;
  font-weight: 900;
  font-size: 76px;
  hyphens: none;
  line-height: 82px;
  letter-spacing: 0px;
  max-width: 632px;
  overflow-wrap: break-word;
  padding-top: 2rem;
  white-space: normal;
  word-break: normal;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

body.view-chatbot-promo-promo-page .region-content .block {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.view-chatbot-promo-promo-page .page-content {
  margin-bottom: 0 !important;
}

body.view-chatbot-promo-promo-page .view-header,
body.view-chatbot-promo-promo-page .view-footer {
  padding-left: 60px;
  padding-right: 60px;
}

body.view-chatbot-promo-promo-page .view-header {
  max-width: 872px;
  margin-bottom: 2rem;
}

body.view-chatbot-promo-promo-page h2 {
  font-size: 50px;
}

body.view-chatbot-promo-promo-page .view-header p,
body.view-chatbot-promo-promo-page .view-footer p,
body.view-chatbot-promo-promo-page .view-header ul li,
body.view-chatbot-promo-promo-page .view-header a {
  font-size: 23px;
}

body.view-chatbot-promo-promo-page .view-header ul {
  list-style: none;
}

body.view-chatbot-promo-promo-page .view-header ul li {
  padding: .75rem;
}

body.view-chatbot-promo-promo-page .view-header ul li:before {
  content: "✓";
  color: #992FED;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1.5em;
  padding-right: 2rem;
}



body.view-chatbot-promo-promo-page .promethia-chatbot.chat-container {
  bottom: 3rem !important;
  position: fixed !important;
  right: 4rem !important;
}

body.view-chatbot-promo-promo-page .view-footer {
  background: #000000;
  border-radius: 10px;
  color: #ffffff;
  padding-bottom: 4rem;
  padding-top: 3rem;
}

body.view-chatbot-promo-promo-page .view-footer a {
  color: #ffffff;
}

body.view-chatbot-promo-promo-page .view-footer h2 {
  background: linear-gradient(90deg, #6FF5FF 0%, #992FED 100%);
  background-clip: text;
  -webkit-background-clip: text; /* Safari/Chrome compatibility */
  color: transparent;
  font-family: Inter, sans-serif;
  font-weight: 900;
  font-size: 52px;
  hyphens: none;
  letter-spacing: 0px;
  margin-bottom: 3rem;
  max-width: 632px;
  overflow-wrap: break-word;
  white-space: normal;
  word-break: normal;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

body.view-chatbot-promo-promo-page .view-footer a.promo-button {
  background: #6FF5FF;
  border-radius: 10px;
  color: #000000;
  font-weight: bold;
  margin-right: 3.5rem;
  padding: 1rem 3rem;
  text-decoration: none;
  text-transform: uppercase; 
}

body .view-display-id-all_conversations_block td.start-ago {
  min-width: 18rem;
}

body .promethia-elastic-search-form .button {
  position: relative;
  top: -.55rem;
}

#block-civicv1-promethiarecentchatbotusage tr.activity-high {
  background-color: #d4edda;
}

#block-civicv1-promethiarecentchatbotusage tr.activity-medium {
  background-color: #eaf0d4;
}

#block-civicv1-promethiarecentchatbotusage tr.activity-low {
  background-color: #fff3cd;
}

/* Night Mode Toggle Button */
header .region-header .block-menu li.cc-night-mode-item {
  display: flex;
  align-items: center;
  min-height: 2rem !important;
}

header .region-header .block-menu li.cc-night-mode-item button#cc-night-mode-toggle {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.cc-night-mode-btn {
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 1.125rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  transition: opacity 0.2s ease;
}

.cc-night-mode-btn:hover,
.cc-night-mode-btn:focus {
  background: #e5e5e5 !important;
  border: none !important;
  color: #000000 !important;
  opacity: 0.8;
}

.cc-night-mode-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cc-night-mode-icon svg {
  display: block;
}

/* Night Mode Theme - html-level rule prevents white flash on page load */
html.cc-night-mode {
  background-color: #1a1a2e !important;
  color: #e0e0e0 !important;
}

body.cc-night-mode {
  background-color: #1a1a2e !important;
  color: #e0e0e0 !important;
}

body.cc-night-mode header {
  background: #1a1a2e !important;
  border-bottom-color: #333355 !important;
}

body.cc-night-mode header .region-header .block-menu li a,
body.cc-night-mode header .region-header .block-we-megamenu li a {
  color: #e0e0e0;
}

body.cc-night-mode header .region-header .block-menu li a:hover,
body.cc-night-mode header .region-header .block-menu li a:active,
body.cc-night-mode header .region-header .block-menu li a:focus {
  background: #2a2a4e;
  color: #ffffff;
}

body.cc-night-mode .cc-night-mode-btn {
  color: #e0e0e0;
}

body.cc-night-mode .cc-night-mode-btn:hover,
body.cc-night-mode .cc-night-mode-btn:focus {
  background: #2a2a4e !important;
  color: #ffffff !important;
}

body.cc-night-mode h1,
body.cc-night-mode h2,
body.cc-night-mode h3,
body.cc-night-mode h4,
body.cc-night-mode h5,
body.cc-night-mode h6 {
  color: #e0e0e0 !important;
}

body.cc-night-mode a {
  color: #8b9dc3;
}

body.cc-night-mode a:hover {
  color: #a8c0e8;
}

body.cc-night-mode .region .block,
body.cc-night-mode .page-content,
body.cc-night-mode .layout-container {
  background-color: #1a1a2e;
}

body.cc-night-mode #block-civicv1-primary-local-tasks {
  border-bottom-color: #333355;
}

body.cc-night-mode #block-civicv1-primary-local-tasks .is-horizontal .tabs__tab a.tabs__link {
  color: #d0d0de;
}

body.cc-night-mode #block-civicv1-primary-local-tasks .is-horizontal .tabs__tab a:hover,
body.cc-night-mode #block-civicv1-primary-local-tasks .is-horizontal .tabs__tab a:active,
body.cc-night-mode #block-civicv1-primary-local-tasks .is-horizontal .tabs__tab a.is-active {
  color: #ffffff;
  background: #992FED;
}

body.cc-night-mode .block-page-title-block {
  border-bottom-color: #333355;
}

body.cc-night-mode .promethia-stats-grid .promethia-stats-item,
body.cc-night-mode .promethia-traffic-chart-outer,
body.cc-night-mode .promethia-traffic-hour-bar-heading-outer-2 {
  background-color: #252545;
  border-color: #333355;
}

body.cc-night-mode .promethia-stats-grid .promethia-stats-inner,
body.cc-night-mode .promethia-traffic-chart-outer .promethia-traffic-chart,
body.cc-night-mode .promethia-traffic-hour-bar-heading-outer-2 .promethia-traffic-hour-bar-heading-outer {
  background-color: #1e1e3a;
  border-color: #333355;
}

body.cc-night-mode .promethia-stats-grid .promethia-stats-label {
  color: #d0d0de;
}

body.cc-night-mode .promethia-stats-grid .promethia-stats-value {
  color: #e0e0e0;
}

body.cc-night-mode .promethia-traffic-outer {
  background-color: #252545;
  border-color: #333355;
}

body.cc-night-mode .promethia-traffic-inner {
  background-color: #1e1e3a;
}

/* Statistics charts: SVG text labels (y-axis fill:#000, x-axis fill:#222) */
body.cc-night-mode .promethia-traffic-chart svg text,
body.cc-night-mode .promethia-traffic-hour-bar svg text {
  fill: #d0d0de !important;
}

/* Statistics charts: SVG grid lines */
body.cc-night-mode .promethia-traffic-chart svg line {
  stroke: #404060 !important;
}

/* Statistics charts: tooltips */
body.cc-night-mode .traffic-tooltip {
  background: #252545 !important;
  color: #d0d0de !important;
  border-color: #992FED !important;
}

/* Statistics charts: heading titles */
body.cc-night-mode .traffic-day-title,
body.cc-night-mode .traffic-title,
body.cc-night-mode .traffic-hour-title {
  color: #d0d0de !important;
}

/* Statistics charts: percent change value */
body.cc-night-mode .traffic-percent {
  color: #e0e0e0 !important;
}

/* Statistics charts: nochange arrow */
body.cc-night-mode .traffic-arrow-equal {
  color: #999 !important;
}

body.cc-night-mode table {
  color: #ffffff !important;
}

body.cc-night-mode table th,
body.cc-night-mode table td {
  border-color: #333355;
  color: #ffffff !important;
}

body.cc-night-mode table thead th {
  background-color: #252545;
  color: #ffffff !important;
}

body.cc-night-mode table td a {
  color: #b8c7e8 !important;
}

body.cc-night-mode table td a:hover {
  color: #ffffff !important;
}

body.cc-night-mode table tbody tr:nth-child(even) {
  background-color: #1e1e3a;
}

body.cc-night-mode table tbody tr:nth-child(odd) {
  background-color: #252545;
}

body.cc-night-mode table tbody tr:hover {
  background-color: #2a2a4e;
}

body.cc-night-mode form.node-form fieldset {
  background-color: #1e1e3a;
  border-color: #252545;
  outline-color: #333355;
}

body.cc-night-mode form.node-form label,
body.cc-night-mode form.node-form .fieldset__label {
  color: #e0e0e0;
}

body.cc-night-mode .form-element,
body.cc-night-mode .form-element.form-text,
body.cc-night-mode input[type="text"],
body.cc-night-mode input[type="email"],
body.cc-night-mode input[type="password"],
body.cc-night-mode textarea,
body.cc-night-mode select {
  background-color: #252545 !important;
  border-color: #555577 !important;
  color: #e0e0e0 !important;
}

body.cc-night-mode textarea {
  border-color: #666688 !important;
}

body.cc-night-mode .form-element:focus,
body.cc-night-mode .form-element.form-text:focus,
body.cc-night-mode input[type="text"]:focus,
body.cc-night-mode input[type="email"]:focus,
body.cc-night-mode input[type="password"]:focus,
body.cc-night-mode textarea:focus,
body.cc-night-mode select:focus {
  border-color: #992FED !important;
}

/* Views exposed filters (e.g. chat history) */
body.cc-night-mode .view-filters,
body.cc-night-mode .views-exposed-form {
  background-color: #1a1a2e !important;
}

body.cc-night-mode .views-exposed-form label {
  color: #e0e0e0 !important;
}

body.cc-night-mode .views-exposed-form input.form-date,
body.cc-night-mode .views-exposed-form input[type="date"] {
  background-color: #252545 !important;
  border-color: #333355 !important;
  color: #e0e0e0 !important;
  color-scheme: dark;
}

body.cc-night-mode .views-exposed-form input.form-date:focus,
body.cc-night-mode .views-exposed-form input[type="date"]:focus {
  border-color: #992FED !important;
}

body.cc-night-mode .views-exposed-form .button,
body.cc-night-mode .views-exposed-form input[type="submit"] {
  background-color: #252545 !important;
  border-color: #333355 !important;
  color: #e0e0e0 !important;
}

body.cc-night-mode .views-exposed-form .button:hover,
body.cc-night-mode .views-exposed-form input[type="submit"]:hover {
  background-color: #2a2a4e !important;
  color: #ffffff !important;
}

/* Sortable table headers */
body.cc-night-mode .sortable-heading > a {
  color: #e0e0e0 !important;
}

body.cc-night-mode .sortable-heading > a:hover,
body.cc-night-mode .sortable-heading > a:focus {
  color: #ffffff !important;
}

body.cc-night-mode .sortable-heading.is-active > a {
  color: #93c5fd !important;
}

body.cc-night-mode .sortable-heading.is-active > a::before {
  border-bottom-color: #93c5fd !important;
}

body.cc-night-mode .sortable-heading > a::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23b8b8c8'/%3e%3c/svg%3e") !important;
}

body.cc-night-mode .tablesort {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23b8b8c8'/%3e%3c/svg%3e") !important;
}

body.cc-night-mode .tablesort--asc {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 10 12'%3e%3cpath d='M5 .44L.719 4.718 1.78 5.78 4.25 3.313v7.937h1.5V3.312l2.469 2.47L9.28 4.718 5 .439z' fill='%2393c5fd'/%3e%3c/svg%3e") !important;
}

body.cc-night-mode .tablesort--desc {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 10 12'%3e%3cpath d='M4.25.75v7.938l-2.469-2.47L.72 7.282 5 11.561l4.281-4.28L8.22 6.22 5.75 8.687V.75h-1.5z' fill='%2393c5fd'/%3e%3c/svg%3e") !important;
}

body.cc-night-mode td.is-active {
  background: none !important;
}

/* Vertical tabs and Claro details */
body.cc-night-mode .claro-details__wrapper,
body.cc-night-mode .claro-details__wrapper--vertical-tabs-item {
  background-color: #1e1e3a !important;
}

body.cc-night-mode .claro-details {
  background-color: #252545 !important;
  border-color: #333355 !important;
}

body.cc-night-mode .claro-details__summary {
  color: #e0e0e0 !important;
  background-color: #252545 !important;
}

body.cc-night-mode .claro-details__summary::after {
  box-shadow: inset 0 0 0 var(--details-summary-focus-border-size, 3px) #992FED !important;
}

body.cc-night-mode [open] > .claro-details__summary--accordion:not(:focus, :active)::after,
body.cc-night-mode [open] > .claro-details__summary--accordion-item:not(:focus, :active)::after,
body.cc-night-mode [open] > .claro-details__summary--vertical-tabs-item:not(:focus, :active)::after {
  border-color: #992FED !important;
}

body.cc-night-mode .claro-details__summary:hover {
  color: #ffffff !important;
  background-color: #2a2a4e !important;
}

body.cc-night-mode .vertical-tabs__menu {
  background-color: #252545 !important;
  border-color: #333355 !important;
}

body.cc-night-mode .vertical-tabs__menu-item {
  background-color: #252545 !important;
  border-color: #333355 !important;
}

body.cc-night-mode .vertical-tabs__menu-item:hover,
body.cc-night-mode .vertical-tabs__menu-item:focus {
  background-color: #2a2a4e !important;
}

body.cc-night-mode .vertical-tabs__menu-item.is-selected {
  background-color: #252545 !important;
  border-color: #333355 !important;
}

body.cc-night-mode .vertical-tabs__menu-item.is-selected a.vertical-tabs__menu-link {
  background-color: #252545 !important;
  border-left: 3px solid #992FED !important;
  color: #ffffff !important;
}

body.cc-night-mode .vertical-tabs__menu-link {
  color: #e0e0e0 !important;
  background-color: transparent !important;
}

body.cc-night-mode .vertical-tabs__menu-link:hover {
  color: #ffffff !important;
  background-color: #2a2a4e !important;
}
body.cc-night-mode .vertical-tabs__menu-link:hover::before {
  background: #2a2a4e !important;
}
body.cc-night-mode .vertical-tabs__menu-item.is-selected .vertical-tabs__menu-link:hover {
  color: #ffffff !important;
  background-color: #252545 !important;
}
body.cc-night-mode .vertical-tabs__menu-item.is-selected .vertical-tabs__menu-link:hover::before {
  background: none !important;
}

body.cc-night-mode .vertical-tabs__menu-link-summary {
  color: #d0d0de !important;
}

body.cc-night-mode .vertical-tabs {
  border-color: #333355 !important;
}

body.cc-night-mode .vertical-tabs__items {
  background-color: #1e1e3a !important;
  border-color: #333355 !important;
}

/* Field descriptions */
body.cc-night-mode .form-item__description {
  color: #d0d0de !important;
}

/* Labels */
body.cc-night-mode label,
body.cc-night-mode .form-item__label {
  color: #e0e0e0 !important;
}

/* Fieldsets */
body.cc-night-mode fieldset {
  background-color: #1e1e3a !important;
  border-color: #333355 !important;
}

body.cc-night-mode .fieldset__label,
body.cc-night-mode legend {
  color: #e0e0e0 !important;
}

body.cc-night-mode .fieldset__wrapper {
  background-color: #1e1e3a !important;
}

/* Buttons (Claro default) */
body.cc-night-mode .button {
  background-color: #333355 !important;
  border-color: #404060 !important;
  color: #e0e0e0 !important;
}

body.cc-night-mode .button:hover {
  background-color: #404060 !important;
  color: #ffffff !important;
}

body.cc-night-mode .button--primary {
  background-color: #992FED !important;
  border-color: #992FED !important;
  color: #ffffff !important;
}

body.cc-night-mode .button--primary:hover {
  background-color: #7b22c4 !important;
  border-color: #7b22c4 !important;
  color: #ffffff !important;
}

/* Checkboxes and radios */
body.cc-night-mode .form-boolean {
  background-color: #252545 !important;
  border-color: #404060 !important;
}

body.cc-night-mode .form-boolean:checked {
  background-color: #992FED !important;
  border-color: #992FED !important;
}

/* File links */
body.cc-night-mode .file a {
  color: #b8c7e8 !important;
}

body.cc-night-mode .file__size {
  color: #d0d0de !important;
}

/* Pager */
body.cc-night-mode .pager__item a {
  color: #b8c7e8 !important;
  background-color: #252545 !important;
  border-color: #333355 !important;
}

body.cc-night-mode .pager__item a:hover {
  color: #ffffff !important;
  background-color: #2a2a4e !important;
}

body.cc-night-mode .pager__item.is-active a {
  color: #ffffff !important;
  background-color: #992FED !important;
  border-color: #992FED !important;
}

/* Status messages */
body.cc-night-mode .messages {
  color: #e0e0e0 !important;
  background-color: #252545 !important;
  border-color: #333355 !important;
}

body.cc-night-mode .messages--status {
  background-color: #1e3a2e !important;
  border-color: #2d5a3e !important;
  color: #a7f3d0 !important;
}

body.cc-night-mode .messages--warning {
  background-color: #3a3a1e !important;
  border-color: #5a5a2e !important;
  color: #fde68a !important;
}

body.cc-night-mode .messages--error {
  background-color: #3a1e1e !important;
  border-color: #5a2e2e !important;
  color: #fca5a5 !important;
}

/* Dropbutton */
body.cc-night-mode .dropbutton-widget {
  background-color: #252545 !important;
  border-color: #333355 !important;
}

body.cc-night-mode .dropbutton-action a,
body.cc-night-mode .dropbutton-action button {
  color: #e0e0e0 !important;
}

body.cc-night-mode .dropbutton-action a:hover,
body.cc-night-mode .dropbutton-action button:hover {
  background-color: #2a2a4e !important;
  color: #ffffff !important;
}

body.cc-night-mode .dropbutton-toggle button {
  background-color: #252545 !important;
  border-color: #333355 !important;
}

body.cc-night-mode .dropbutton__item:first-of-type > a,
body.cc-night-mode .dropbutton__item:first-of-type > button {
  background-color: #252545 !important;
  color: #e0e0e0 !important;
}

body.cc-night-mode .dropbutton__item.secondary-action {
  background-color: #252545 !important;
}

body.cc-night-mode .dropbutton__item.secondary-action a {
  color: #e0e0e0 !important;
}

body.cc-night-mode .dropbutton__item.secondary-action a:hover {
  background-color: #2a2a4e !important;
  color: #ffffff !important;
}

/* Views UI modal dialog */
body.cc-night-mode .ui-dialog {
  background-color: #1e1e3a !important;
  border-color: #333355 !important;
}
body.cc-night-mode .ui-dialog .ui-dialog-titlebar {
  background-color: #252545 !important;
  border-color: #333355 !important;
  color: #e0e0e0 !important;
}
body.cc-night-mode .ui-dialog .ui-dialog-content {
  background-color: #1e1e3a !important;
  color: #e0e0e0 !important;
}
body.cc-night-mode .ui-dialog .ui-dialog-content label,
body.cc-night-mode .ui-dialog .ui-dialog-content .fieldset-legend {
  color: #d0d0de !important;
}
body.cc-night-mode .ui-dialog .ui-dialog-content .description {
  color: #999 !important;
}
body.cc-night-mode .ui-dialog .ui-dialog-buttonpane {
  background-color: #252545 !important;
  border-color: #333355 !important;
}
body.cc-night-mode .views-ui-dialog .views-offset-top:not(:empty) {
  background-color: #252545 !important;
  color: #e0e0e0 !important;
}

/* Select elements */
body.cc-night-mode select {
  background-color: #252545 !important;
  border-color: #333355 !important;
  color: #e0e0e0 !important;
  color-scheme: dark;
}

body.cc-night-mode select:focus {
  border-color: #992FED !important;
}

body.cc-night-mode #block-civicv1-promethiarecentchatbotusage tr.activity-high {
  background-color: #1e3a2e;
}

body.cc-night-mode #block-civicv1-promethiarecentchatbotusage tr.activity-medium {
  background-color: #2a3a1e;
}

body.cc-night-mode #block-civicv1-promethiarecentchatbotusage tr.activity-low {
  background-color: #3a3a1e;
}

/* Admin toolbar tray */
html.cc-night-mode #toolbar-administration .toolbar-tray {
  background-color: #1e1e3a !important;
}

html.cc-night-mode #toolbar-administration .toolbar-tray-vertical {
  background-color: #1e1e3a !important;
  border-right-color: #333355 !important;
  box-shadow: -1px 0 5px 2px rgba(0, 0, 0, 0.5) !important;
}

html.cc-night-mode #toolbar-administration .toolbar-menu {
  background-color: #1e1e3a !important;
}

html.cc-night-mode .toolbar-horizontal #toolbar-administration .toolbar-tray {
  border-bottom-color: #333355 !important;
  box-shadow: -2px 1px 3px 1px rgba(0, 0, 0, 0.5) !important;
}

/* Reset all tray backgrounds */
html.cc-night-mode #toolbar-administration .toolbar-tray li,
html.cc-night-mode #toolbar-administration .toolbar-tray .menu-item,
html.cc-night-mode #toolbar-administration .toolbar-tray .menu-item--expanded,
html.cc-night-mode #toolbar-administration .toolbar-tray .toolbar-box {
  background-color: transparent !important;
}

/* All tray links */
html.cc-night-mode #toolbar-administration .toolbar-tray a,
html.cc-night-mode #toolbar-administration .toolbar-tray a:visited,
html.cc-night-mode #toolbar-administration .toolbar-tray .toolbar-box a,
html.cc-night-mode #toolbar-administration .toolbar-tray .menu-item--active-trail > .toolbar-box a,
html.cc-night-mode #toolbar-administration .toolbar-tray .menu-item--active-trail > a {
  color: #e0e0e0 !important;
  background-color: transparent !important;
}

html.cc-night-mode #toolbar-administration .toolbar-tray a:hover,
html.cc-night-mode #toolbar-administration .toolbar-tray a:active,
html.cc-night-mode #toolbar-administration .toolbar-tray a:focus,
html.cc-night-mode #toolbar-administration .toolbar-tray .toolbar-box a:hover,
html.cc-night-mode #toolbar-administration .toolbar-tray .toolbar-box a:focus {
  color: #ffffff !important;
  background-color: #2a2a4e !important;
}

/* Active trail and active links */
html.cc-night-mode #toolbar-administration .toolbar-tray a.is-active {
  color: #ffffff !important;
  background-color: #2a2a4e !important;
}

/* Nested menu levels */
html.cc-night-mode #toolbar-administration .level-2 > ul,
html.cc-night-mode #toolbar-administration .level-3 > ul,
html.cc-night-mode #toolbar-administration .level-4 > ul,
html.cc-night-mode #toolbar-administration .level-5 > ul,
html.cc-night-mode #toolbar-administration .level-6 > ul,
html.cc-night-mode #toolbar-administration .level-7 > ul,
html.cc-night-mode #toolbar-administration .level-8 > ul {
  background-color: #252545 !important;
  border-top-color: #444466 !important;
  border-bottom-color: #444466 !important;
  border-left-color: #444466 !important;
  border-right-color: #444466 !important;
}

/* Tray borders — blanket override for all menu items and nested uls */
html.cc-night-mode #toolbar-administration .toolbar-tray .menu-item {
  border-top-color: #444466 !important;
  border-bottom-color: #444466 !important;
  border-left-color: #444466 !important;
  border-right-color: #444466 !important;
}

html.cc-night-mode #toolbar-administration .toolbar-tray .toolbar-menu ul {
  border-top-color: #444466 !important;
  border-bottom-color: #444466 !important;
  border-left-color: #444466 !important;
  border-right-color: #444466 !important;
}

/* Active tab on top bar */
html.cc-night-mode #toolbar-administration .toolbar-bar .toolbar-tab > .toolbar-item.is-active {
  color: #ffffff !important;
  background-color: #1e1e3a !important;
  border-bottom-color: #1e1e3a !important;
}

/* Preserve Drupal logo icon — do not invert */
html.cc-night-mode #toolbar-administration .toolbar-bar .toolbar-tab > .toolbar-item.is-active::before {
  filter: none !important;
}

/* Orientation toggle */
html.cc-night-mode #toolbar-administration .toolbar-toggle-orientation {
  background-color: #252545 !important;
}

html.cc-night-mode .toolbar-horizontal #toolbar-administration .toolbar-tray .toolbar-toggle-orientation {
  border-left-color: #333355 !important;
}

/* Focus states */
html.cc-night-mode #toolbar-administration .toolbar-tray-horizontal a:focus,
html.cc-night-mode #toolbar-administration .toolbar-box a:focus,
html.cc-night-mode #toolbar-administration .toolbar-icon.toolbar-handle:focus {
  background-color: #2a2a4e !important;
}

/* Vertical tray background fill */
html.cc-night-mode .toolbar-oriented #toolbar-administration .toolbar-tray-vertical > .toolbar-lining::before {
  background-color: #1e1e3a !important;
}

/* Password suggestions */
body.cc-night-mode .password-suggestions {
  background-color: #252545 !important;
  border-color: #333355 !important;
  color: #d0d0de !important;
  box-shadow: none !important;
}

/* Tabledrag handle icons */
body.cc-night-mode .tabledrag-handle::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 16 16'%3e%3cpath fill='%23d0d0de' d='M14.103 5.476a.5.5 0 00-.701-.053.526.526 0 00-.082.713l1.1 1.346H8.512V1.62l1.32 1.113a.501.501 0 00.732-.054.528.528 0 00-.085-.744L8.328.119a.5.5 0 00-.647 0L5.529 1.935a.527.527 0 00-.085.744.504.504 0 00.732.054l1.32-1.113v5.862H1.588L2.68 6.136a.526.526 0 00-.1-.68.5.5 0 00-.675.02L.117 7.67a.525.525 0 000 .66l1.788 2.194a.5.5 0 00.702.053.526.526 0 00.081-.713l-1.1-1.346h5.908v5.862l-1.32-1.113a.501.501 0 00-.698.082.526.526 0 00.051.716l2.152 1.817v-.001a.5.5 0 00.647 0l2.151-1.816a.526.526 0 00.052-.716.501.501 0 00-.699-.082l-1.32 1.113V8.518h5.908l-1.091 1.346a.527.527 0 00.022.776.504.504 0 00.752-.116l1.78-2.194a.527.527 0 000-.66z'/%3e%3c/svg%3e");
}
body.cc-night-mode .tabledrag-handle.tabledrag-handle-y::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d0d0de' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 8h12'/%3e%3cpath d='M8 2l2 2 -4 0 2 -2'/%3e%3cpath d='M8 14l2 -2 -4 0 2 2'/%3e%3c/svg%3e");
}

/* Followup question button spacing */
.followup-question {
  margin-bottom: 6px;
}

.civic-search-results .search-site-link {
  display: none !important;
}
