
/* =====================Custom Fonts ================= */
@import url("https://fonts.googleapis.com/css?family=Lemon&display=swap");
/* ==================== Variables ==================== */
:root {
  --topbar-text-color: #0053ad;           /* Dark blue, used for text in the top navigation bar */
  --breadcrumb-text-color: white;         /* White, used for text in breadcrumb links */
  --breadcrumb-active-color: #adb5bd;     /* Gray, used for the active item in breadcrumbs */
  --bg-light-gray: #f1f5fa;               /* Light gray, used as background color for various elements like rows */
  --border-color: #e9ecef;                /* Lighter gray, used for border color */
  --main-bg-color: #0053ad;               /* Dark blue, used as the main background color for elements like the jumbotron */
  --input-text-color: royalblue;          /* Royal blue, used for text inside input fields */
  --button-bg-color: rgba(47, 126, 246, 0.09); /* Light blue with opacity, used as the background color for buttons */
  --button-color: #0053AD;                /* Dark blue, used as the text color for buttons */
  --icon-color: rgb(47, 126, 246);        /* Medium blue, used for icons */
  --dark-blue: #003A79;                   /* Darker blue, used for specific elements like headers in My Work */
  --login-page-welcome-text-color: white; /* LoginPage Welcome text color. */
  --login-bg-color: #0053ad;               /* Dark blue, used as the main background color for elements like the jumbotron */
  --bs-primary:  #0053ad;
  /*================== Public Dashboard Styling ==============*/
  --rock-title-txt-color: #fff;           		          /* The text color of public dashboard rocks header */
  --rock-title-font: system-ui, -apple-system,
   "Segoe UI", Roboto, "Helvetica Neue", Arial; 	      /* The text font of public dashboard rocks header */
  --rock-status-txt-color: #344054;		  	              /* The text color of public dashboard rocks body */
  --rock-status-font: system-ui, -apple-system,
   "Segoe UI", Roboto, "Helvetica Neue", Arial;         /* The text font of public dashboard rocks body */
  --body-txt-color: #000000;				                   /* The text color of public dashboard rocks body */
  --body-font: system-ui, -apple-system,
   "Segoe UI", Roboto, "Helvetica Neue", Arial;        /* The text font of public dashboard rocks body */
  /* ================ Public Dashboard Popup Styling ============ */
  --popup-heading-txt-color: #fff;           		          /* The text color of public dashboard popup rocks header */
  --popup-heading-font: system-ui, -apple-system,
   "Segoe UI", Roboto, "Helvetica Neue", Arial; 	      /* The text font of public dashboard popup rocks header */
  --popup-status-txt-color: #344054;		  	              /* The text color of public dashboard popup rocks status */
  --popup-status-font: system-ui, -apple-system,
   "Segoe UI", Roboto, "Helvetica Neue", Arial;         /* The text font of public dashboard popup rocks status */
  --popup-body-color: #000000;				                   /* The text color of public dashboard popup rocks body */
  --popup-body-font: system-ui, -apple-system,
   "Segoe UI", Roboto, "Helvetica Neue", Arial;        /* The text font of public dashboard popup rocks body */
}
/* ==================== Top Nav Bar ==================== */
.topbar .navbar-nav .nav-link {
  color: var(--topbar-text-color);
  text-transform: uppercase;
  font-size: 0.9em;
}
/* ==================== Breadcrumbs ==================== */
.breadcrumb-item a {
  color: var(--breadcrumb-text-color) !important;
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-item.active {
  color: var(--breadcrumb-active-color);
}
/* ==================== Dashboard ==================== */
.jumbotron h1, .jumbotron .h1 {
  /* Custom styles here */
}
.trix-content * {
  /* Custom styles here */
}
.jumbotron .nav-link, .jumbotron .nav-link {
  /* Custom styles here */
}
.jumbotron .actions {
  border: solid 1px white;
}
.jumbotron .nav-link:hover, .jumbotron .nav-link:focus {
  color: var(--topbar-text-color);
  background-color: var(--bg-light-gray);
}
/* ==================== Rocks & Tasks ==================== */
.expandable_section h2 > a, .expandable_section .h2 > a {
  /* Custom styles here */
}
.main_grid .metric-row td, .main_grid .metric-row th {
  background-color: var(--bg-light-gray);
  border-top: var(--border-color) solid 1px;
  border-bottom: var(--border-color) solid 1px;
}
main > section:nth-of-type(2n), main > form > section:nth-of-type(2n), .main > section:nth-of-type(2n) {
  background: var(--bg-light-gray);
}
/* ==================== Report Page ==================== */
.jumbotron, .rocks_new_template {
  background-color: var(--main-bg-color);
  color: #fff;
}
main > section h2,
main > section .h2,
main > form > section h2,
main > form > section .h2,
.main > section h2,
.main > section .h2 {
  /* Custom styles here */
}
/* ==================== Dashboard Background ==================== */
.bg-primary,
.dashboard_template,
.rocks_new_template {
  background-color: var(--main-bg-color) !important;
}
/* ==================== Dashboard Title ==================== */
.dashboard-title, .rocks-section-title, .schedule-title, .invited-user-title {
  color: var(--main-bg-color) !important;
}
/* ==================== Dashboard Input Field ==================== */
input.form-control {
  color: var(--input-text-color) !important;
  font-weight: bold;
  font-size: 20px;
}
/* ==================== Organization Page ==================== */
h3.card-header a {
  color: var(--main-bg-color) !important;
  text-decoration: underline;
}
/* ==================== Edit Rock Background ==================== */
.rocks_new_template {
  background-color: var(--main-bg-color);
}
/* ==================== MyWork Headers ==================== */
.bg-dark-blue-color {
  background-color: var(--dark-blue);
}
.welcome-head,
.today-task {
  color: white;
}
/* ==================== Buttons and Links ==================== */
.color-btn {
  color: #2F7EF6;
}
.addTaskBtn {
  background: var(--button-bg-color);
}
.customStylesBtn {
  background-color: var(--button-color);
  color: white;
}
/* ==================== Task and Log Headings ==================== */
.font-color-heading {
  color: var(--button-color);
  font-size: 15px;
  font-weight: bold;
}
/* ==================== Icons ==================== */
div.pointer-cursor svg {
  color: var(--icon-color) !important;
}
/* ==================== Toggle Button ==================== */
.form-check-input:checked {
  background-color: var(--main-bg-color);
  border-color: var(--main-bg-color);
}
/* ==================== Due Date Background ==================== */
.bottom-card-list {
  background: #F1F5F9;
}
/* ==================== Public Dashboard ======================= */
.top_level_dashboard .top-level-heading {
  color: 	var(--rock-title-txt-color);
  font-family: var(--rock-title-font);
}
.top_level_dashboard .top-level-subHeading {
  color: 	var(--rock-status-txt-color) !important;
  font-family: var(--rock-status-font) !important;
}
.top_level_dashboard .text-description {
  color: 	var(--body-txt-color) !important;
  font-family: var(--body-font) !important;
}
.top_level_dashboard .modal-dialog.modal-lg .modal-title {
  color: 	var(--popup-heading-txt-color) !important;
  font-family: var(--popup-heading-font) !important;
}
.top_level_dashboard .modal-dialog.modal-lg .top-level-subHeading {
  color: 	var(--popup-status-txt-color) !important;
  font-family: var(--popup-status-font) !important;
}
.top_level_dashboard .modal-dialog.modal-lg .text-description {
  color: 	var(--popup-body-color) !important;
  font-family: var(--popup-body-font) !important;
}
.login-link, .divider, .sign-in-header h2 {
  color: var(--login-page-welcome-text-color) !important;
}
body.page-template-default {
  background: var(--login-bg-color) !important;
}
/* =======================My Worker Headers ==========================*/
.bg-dark-blue-color {
  background-color: var(--dark-blue);
}


/* ==================== Logo Safety Block =================== */
/*
  CRITICAL: Do NOT add content:, display:none, or any override
  that touches the logo image itself. The app renders logos via
  standard <img src="..."> tags. Any content or display override
  will break them. Only safe layout constraints are applied here.
  This block must be preserved verbatim in all future revisions.

  Sizing strategy: constrain by height only — width scales naturally.
  This handles square badges, horizontal lockups, and everything
  in between without distortion.
*/
.navbar-brand,
.topbar .navbar-brand {
  flex-shrink: 0;
  max-width: 300px;
}

.navbar-brand img,
.navbar-brand svg,
.topbar .navbar-brand img,
.topbar .navbar-brand svg {
  /* No content or src overrides — preserve original logo rendering */
  display: block;
  max-height: 48px;
  height: auto;
  width: auto;
  object-fit: contain;
  object-position: left center;
}


/* ==================== Dropdowns & Select Menus ============ */
/*
  Ensures all dropdown and select option rows remain readable
  against white — not inheriting the dark jumbotron background.
*/

/* --- Native <select> elements ----------------------------- */
select,
select.form-control,
select.form-select {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
  border-color: var(--border-color) !important;
}

select:focus,
select.form-control:focus,
select.form-select:focus {
  border-color: var(--main-bg-color) !important;
  box-shadow: 0 0 0 3px rgba(0, 83, 173, 0.15) !important;
  outline: none !important;
}

select option,
select optgroup {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
}

select option:checked,
select option:hover {
  background-color: var(--main-bg-color) !important;
  color: #ffffff !important;
}

/* --- Bootstrap dropdown-menu ------------------------------ */
.dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  z-index: 9999 !important;
}

.dropdown-menu li,
.dropdown-menu li a,
.dropdown-item,
.dropdown-item span {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
  font-size: 0.875em !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-menu li:hover,
.dropdown-menu li:hover a {
  background-color: var(--bg-light-gray) !important;
  color: var(--main-bg-color) !important;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--main-bg-color) !important;
  color: #ffffff !important;
}

.dropdown-divider {
  border-color: var(--border-color) !important;
}

/* --- Custom list-based dropdowns -------------------------- */
ul.dropdown-menu,
ul[class$="-menu"],
ul[class$="-options"],
ul[class$="-list"],
ul[class$="-dropdown"],
div[class$="-menu"],
div[class$="-options"],
div[class$="-dropdown"],
.choices__list--dropdown,
.vs__dropdown-menu {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  z-index: 9999 !important;
}

ul.dropdown-menu li,
ul[class$="-menu"] li,
ul[class$="-options"] li,
ul[class$="-list"] li,
div[class$="-menu"] li,
div[class$="-options"] li,
div[class$="-dropdown"] li,
.choices__item,
.vs__dropdown-option {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
}

ul.dropdown-menu li:hover,
ul[class$="-menu"] li:hover,
ul[class$="-menu"] li.active,
ul[class$="-menu"] li.selected,
ul[class$="-options"] li:hover,
ul[class$="-options"] li.active,
ul[class$="-list"] li:hover,
div[class$="-menu"] li:hover,
div[class$="-options"] li:hover,
div[class$="-dropdown"] li:hover,
.choices__item--highlighted,
.vs__dropdown-option--highlight {
  background-color: var(--main-bg-color) !important;
  color: #ffffff !important;
}

/* --- Select2 ---------------------------------------------- */
.select2-dropdown,
.select2-container--open .select2-dropdown,
.select2-results,
.select2-results__options {
  background-color: #ffffff !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  z-index: 9999 !important;
}

.select2-results__option {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
}

.select2-results__option--highlighted[aria-selected],
.select2-results__option:hover {
  background-color: var(--main-bg-color) !important;
  color: #ffffff !important;
}

.select2-results__option[aria-selected="true"] {
  background-color: var(--bg-light-gray) !important;
  color: var(--main-bg-color) !important;
  font-weight: 600 !important;
}

/* --- Tom Select / Choices.js ------------------------------ */
.ts-dropdown,
.ts-dropdown-content,
.choices__list--dropdown {
  background-color: #ffffff !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  z-index: 9999 !important;
}

.ts-option,
.choices__item--choice {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
}

.ts-option:hover,
.ts-option.active,
.ts-option.selected,
.choices__item--choice.is-highlighted {
  background-color: var(--main-bg-color) !important;
  color: #ffffff !important;
}

/* --- Catch-all: ARIA listbox / menu overlays -------------- */
body > ul[role="listbox"],
body > div[role="listbox"],
body > ul[role="menu"],
body > div[role="menu"],
[role="listbox"],
[role="menu"] {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  z-index: 9999 !important;
}

[role="listbox"] [role="option"],
[role="menu"] [role="menuitem"],
[role="option"] {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
}

[role="option"]:hover,
[role="option"][aria-selected="true"],
[role="option"].focused,
[role="menuitem"]:hover {
  background-color: var(--main-bg-color) !important;
  color: #ffffff !important;
}

/* --- Scoped parent overrides: selects inside dark sections - */
.jumbotron select,
.jumbotron .form-select,
.jumbotron [class*="select"],
.rocks_new_template select,
.rocks_new_template .form-select,
.rocks_new_template [class*="select"],
.bg-primary select,
.bg-primary .form-select,
.dashboard_template select,
.dashboard_template .form-select {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
}

/* --- List group items ------------------------------------- */
.list-group-item,
.list-group-item-action {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
  border-color: var(--border-color) !important;
}

.list-group-item:hover,
.list-group-item-action:hover,
.list-group-item.active,
.list-group-item-action.active {
  background-color: var(--main-bg-color) !important;
  color: #ffffff !important;
}

[role="listbox"] > li,
[role="listbox"] > div,
[role="listbox"] > li *,
[role="listbox"] > div * {
  background-color: #ffffff !important;
  color: #1c1d1f !important;
}

[role="listbox"] > li:hover,
[role="listbox"] > div:hover,
[role="listbox"] > li.focused,
[role="listbox"] > div.focused,
[role="listbox"] > li[aria-selected="true"],
[role="listbox"] > div[aria-selected="true"] {
  background-color: var(--main-bg-color) !important;
  color: #ffffff !important;
}

[role="listbox"] > li[aria-selected="true"] *,
[role="listbox"] > div[aria-selected="true"] * {
  color: #ffffff !important;
}


/* ==================== Form Labels & Checkboxes ============ */
/*
  Prevents checkbox/radio labels from inheriting the white text
  color from the dark jumbotron wrapper when they sit inside
  a white card panel.
*/
.card label,
.card .form-check-label,
.card .form-label,
.form-group label,
.form-group .form-check-label,
.form-check label,
.form-check .form-check-label {
  color: #1c1d1f !important;
}

input[type="checkbox"] ~ label,
input[type="checkbox"] + label,
input[type="radio"] ~ label,
input[type="radio"] + label {
  color: #1c1d1f !important;
  font-size: 0.9em;
}

.jumbotron .card label,
.jumbotron .card .form-check-label,
.rocks_new_template .card label,
.rocks_new_template .card .form-check-label,
.bg-primary .card label,
.bg-primary .card .form-check-label,
.dashboard_template .card label,
.dashboard_template .card .form-check-label {
  color: #1c1d1f !important;
}

.bg-white label,
.bg-white .form-check-label,
.bg-light label,
.bg-light .form-check-label,
.card-body label,
.card-body .form-check-label,
.form-panel label,
.form-panel .form-check-label {
  color: #1c1d1f !important;
}

/* ==================== Checkbox Label on Dark Background (.text-white override) ====================
   The platform marks some checkbox/radio labels ".text-white" on purpose when they sit
   on a dark section (e.g. the Rock edit page's jumbotron/dark background, such as a
   "Treat it as a currency" checkbox in Status Reporting). The darkening rules above are
   more specific than the platform's plain ".text-white" class, so they were winning and
   rendering these labels dark-on-dark (#1c1d1f on a dark background), making them
   unreadable. This restores white text specifically for labels the platform already
   marked .text-white, without touching the darkening rules' intended white-card behavior.
   Confirmed live on the Chicago Youth Programs branding profile before being added here.
*/
.form-check .form-check-label.text-white,
.card .form-check-label.text-white,
.form-group .form-check-label.text-white,
label.form-check-label.text-white {
  color: #ffffff !important;
}
input[type="checkbox"] ~ label.text-white,
input[type="checkbox"] + label.text-white,
input[type="radio"] ~ label.text-white,
input[type="radio"] + label.text-white {
  color: #ffffff !important;
}


/* ==================== Status Cell Text Overflow ============ */
/*
  Status-type metrics ("Flying High", "Wings Adjusting",
  "Perching for Assistance") render as text inside .result-box.
  The columns are narrow and the app sets font-size inline, so
  long labels overflow the box without explicit wrapping rules.

  Fix: contain overflow, force word-wrap, and reduce font size
  on the link text so multi-word labels fit cleanly.
  The font-size override on .edit-result-link uses !important
  because the parent .result-box carries an inline font-size
  that would otherwise win the cascade.
*/
.result-box {
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-align: center;
}

.result-box .edit-result-link {
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
  font-size: 0.78em !important;
}


/* ==================== Rock/Tracker Footer Overhang ============ */
/*
  .metric-custom-field-footer lays out the reaction icons
  (.metric-custom-field-footer__left) and the "Add a comment"
  control (.metric-custom-field-footer__right) as two flex
  children with justify-content: space-between and flex-wrap: nowrap.

  Confirmed live on a narrow Rock card (question-card, ~269px wide):
  the two children's combined natural width (reactions ~117px plus
  the comment control ~130px) exceeds the footer's available inner
  width (~201px). Row-flex items don't shrink below their own
  content's minimum width by default, so instead of wrapping, the
  comment control overflows past the footer's own right edge and
  past the card's right border, which reads as the control
  "overhanging" the box it sits in.

  Fix: let the footer wrap onto a second line when the two halves
  don't both fit, and keep the comment control pinned to the right
  whether it's sharing the first row or has dropped to its own row.
  Verified before/after against the live page: without this rule the
  comment control's right edge sits ~21px past the card's border and
  ~43px past the footer's own border; with it, the control stays
  fully inside both.
*/
.metric-custom-field-footer {
  flex-wrap: wrap;
  row-gap: 6px;
}

.metric-custom-field-footer__left,
.metric-custom-field-footer__right {
  min-width: 0;
  max-width: 100%;
}

.metric-custom-field-footer__right {
  margin-left: auto;
}
