﻿/* HURO brand system — Deep Navy #0B1D3A is the structural foundation,
   Warm Gold #D4A23A the honored accent, Soft Ivory #F5F6F7 the calm canvas.
   --c1 (navy) drives the app bar and links; the gold ramp is used sparingly
   for selected states, credentials, and brand ornaments. */
:root {
  /* Navy ramp (--c1 = brand navy; lighter steps for hovers/tints) */
  --c1: #0B1D3A;
  --c1l1: #13315A;
  --c1l2: #1E4675;
  --c1l3: #305F91;
  --c1l4: #5C82AC;
  --c1l5: #90A9C8;
  --c1l6: #C3D1E1;
  --c1l7: #E9EEF4;
  --c1d1: #091730;
  --c1d2: #071228;
  --c1d3: #050D1E;
  --c1d4: #040A18;
  --c1d5: #030711;
  --c1d6: #02050C;
  --c1d7: #010307;
  /* Warm gold accent ramp */
  --gold: #D4A23A;
  --gold-dark: #B4842A;
  --gold-light: #E4BD6A;
  --gold-tint: #F6ECD6;
  --navy-tint: rgba(11, 29, 58, 0.05);
  --navy-tint-strong: rgba(11, 29, 58, 0.1);
  /* Theme variables */
  --bg-main: #F5F6F7;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-sub: #FAFBFC;
  --text-main: #1F2A3D;
  --text-muted: #6B7280;
  --border-main: #E2E5EA;
  --border-light: #EEF0F3;
  --bg-plan-header: #EEF1F5;
  --link: var(--c1);
  --focus: var(--c1);
}

body.dark-theme {
  --bg-main: #0A1526;
  --bg-card: #10203B;
  --bg-header: #0B1D3A;
  --bg-sub: #14294A;
  --text-main: #E6EBF2;
  --text-muted: #9DB0CC;
  --border-main: #1E3355;
  --border-light: #17294699;
  --bg-plan-header: #0E1E38;
  --link: var(--gold-light);
  --navy-tint: rgba(212, 162, 58, 0.08);
  --navy-tint-strong: rgba(212, 162, 58, 0.14);
}

body {
  font-family: "Inter", "Helvetica", "Arial", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.table {
  color: var(--text-main);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
}

/* --- Top nav bar: apphelper's SiteHeader sets `--c1:#1565C0` (plus derived
   shades) via an inline style on #site-header, which shadows our :root navy for
   the whole header subtree. An !important author rule outranks a non-important
   inline custom property, so re-assert the HURO navy ramp here. --- */
#site-header {
  --c1: #0B1D3A !important;
  --c1d1: #091730 !important;
  --c1d2: #071228 !important;
  --c1l2: #1E4675 !important;
}

/* --- Login surface: apphelper bakes hsl(218,85%,50/55%) blue into its login form
   via inline sx. Remap those accents to HURO navy/gold so the brand carries through. --- */
.split-login-page .MuiButton-contained {
  background-color: var(--c1) !important;
  box-shadow: none !important;
}
.split-login-page .MuiButton-contained:hover {
  background-color: var(--c1l1) !important;
}
.split-login-page .MuiButton-text,
.split-login-page a:not(.MuiButton-root) {
  color: var(--c1) !important;
}
.split-login-page .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--c1) !important;
}
.split-login-page .MuiInputLabel-root.Mui-focused {
  color: var(--c1) !important;
}
.split-login-page .MuiCheckbox-root.Mui-checked {
  color: var(--c1) !important;
}

/* apphelper PageHeader: full-width hero with 32px vertical padding (design standards §3).
   Overrides the Container maxWidth="xl" cap until apphelper ships the change. */
#page-header .MuiContainer-root {
  max-width: 100%;
  padding-top: 32px;
  padding-bottom: 32px;
}

#page-header-subtitle {
  font-size: 1.05rem !important;
}

/* Table row actions: revealed on row hover/focus, always visible on touch (design standards §6) */
.rowActions {
  opacity: 0;
  transition: opacity 0.15s;
}

tr:hover .rowActions,
.rowActions:focus-within {
  opacity: 1;
}

@media (hover: none) {
  .rowActions {
    opacity: 1;
  }
}

img {
  max-width: 100%;
}

.capitalize {
  text-transform: capitalize;
}

.note {
  margin-top: 10px;
  border-bottom: 1px solid var(--border-main);
  display: flex;
  width: 100%;
  padding: 0 10px;
}

.note:last-child {
  border-bottom: none;
}

.note .postedBy {
  color: var(--text-muted);
  justify-content: space-between;
  align-items: baseline;
}

.note .postedBy img {
  width: 60px;
  height: 45px;
  margin-right: 15px;
  border-radius: 5px;
}

.note-contents p:first-of-type {
  margin-top: 0;
}

.note-contents p {
  margin-bottom: 0;
}

.w-100 {
  width: 100%;
}

.text-decoration {
  text-decoration: none;
}

.text-decoration:hover {
  text-decoration: underline;
}

.text-grey {
  color: var(--text-muted);
}

.personPhoto {
  width: 60px;
  height: 45px;
  border-radius: 5px;
}

#peopleTable img:not(.MuiAvatar-img) {
  width: 60px;
  height: 45px;
  border-radius: 5px;
}

#peopleTable .MuiAvatar-root {
  width: 45px !important;
  height: 45px !important;
}

#peopleTable td {
  vertical-align: middle;
}

#peopleTable th {
  white-space: nowrap;
}

#peopleTable th span {
  padding-right: 5px;
}

#household img {
  width: 60px;
  height: 45px;
  border-radius: 5px;
}

#householdMemberTable td {
  vertical-align: middle;
}

#householdMemberTable td:last-child {
  text-align: center;
}

#householdMemberTable img {
  width: 60px;
  height: 45px;
  border-radius: 5px;
}

#householdMemberAddTable {
  margin-top: 10px;
}

#householdMemberAddTable td:last-child {
  text-align: center;
}

#householdMemberAddTable img {
  width: 60px;
  height: 45px;
  border-radius: 5px;
}

#groupMemberTable img:not(.MuiAvatar-img),
#roleMemberTable img:not(.MuiAvatar-img) {
  width: 60px;
  height: 45px;
  border-radius: 5px;
}

#groupMemberTable .MuiAvatar-root,
#roleMemberTable .MuiAvatar-root {
  width: 40px !important;
  height: 40px !important;
}

#groupMemberTable td,
#roleMemberTable td {
  vertical-align: middle;
}

.personSideTable {
  margin-top: 10px;
}

.personSideTable td {
  vertical-align: middle;
}

.personSideTable td:last-child {
  text-align: center;
}

.personSideTable img {
  width: 60px;
  height: 45px;
  border-radius: 5px;
}

.profilePic {
  border-radius: 10px;
}

.contactTable {
  width: 100%;
}

.contactTable td {
  vertical-align: top;
}

.contactTable label {
  margin-bottom: 0px;
}

.statusList {
  margin-top: 6px;
}

.statusList li {
  margin-left: 20px;
  margin-bottom: 0px !important;
}

/* .statusList li:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  padding-right: 10px;
}

.statusList li.pending:before {
  content: "\f017";
  color: #999;
}

.statusList li.running:before {
  content: "\f70c";
  color: #ffc107;
}

.statusList li:before,
.statusList li.complete:before {
  content: "\f00c";
  color: #1c7430;
} */

.report .heading1 {
  font-weight: bold;
  font-size: 20px;
}

.report .heading2 {
  font-weight: bold;
  font-size: 18px;
  padding-left: 20px;
}

.report .heading3 {
  font-weight: bold;
  font-size: 16px;
  padding-left: 40px;
}

.report .heading4 {
  font-weight: bold;
  padding-left: 60px;
}

.report .indent2 {
  padding-left: 20px;
}

.report .indent3 {
  padding-left: 40px;
}

.report .indent4 {
  padding-left: 60px;
}

.report .indent5 {
  padding-left: 80px;
}

.card-header {
  padding-top: 5px;
  padding-bottom: 5px;
}

.nav-tabs {
  border-bottom: none;
}

.addableForm {
  padding-left: 12px;
}

.addableForm span {
  color: var(--text-muted);
}

@media (min-width: 1200px) {
  .col-lg-2-5 {
    flex: 0 0 20.8%;
    max-width: 20.8%;
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 425px) {
  .navbar-brand {
    padding-top: 12px;
  }
}

.form-control::placeholder {
  color: var(--text-muted);
}

label .description {
  font-size: 12px;
  padding-left: 10px;
}

#searchResults {
  margin-top: 10px;
}

#searchResults td:last-child {
  text-align: center;
}

#searchResults img {
  width: 60px;
  height: 45px;
  border-radius: 5px;
}

#addCondition .form-control-sm {
  padding-left: 2px;
  padding-right: 2px;
}

.form-check-input {
  position: unset;
  margin-right: 0.5rem;
}

.alert p {
  margin-bottom: 0;
}

.no-default-style {
  border: none;
  background: none;
  cursor: pointer;
}

.danger-text {
  color: #d32f2f;
}

.pointer:hover {
  cursor: pointer;
}

.form-control.is-invalid {
  background-image: none;
}


#fieldsDropdown .dropdown-menu i {
  color: var(--text-muted);
}

#fieldsDropdown .dropdown-menu .checked i {
  color: var(--c1);
}

#smallPeopleTable img {
  max-height: 50px;
}

.comboBox>div>div:first-child {
  padding: 10px
}

.positionsTable TD {
  vertical-align: top;
}

.positionsTable div {
  padding-top: 5px;
  padding-bottom: 5px;
  vertical-align: middle;
}

.positionsTable div>a>span {
  float: left;
  margin-right: 10px;
}

.positionsTable div img {
  height: 25px;
}


.printBackgrounds {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.planItemHeader {
  background-color: var(--bg-plan-header);
  border-bottom: 3px solid var(--c1l2);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 8px 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.planItem {
  border-bottom: 1px solid var(--border-light);
  padding: 10px 8px 10px 0;
  font-size: 0.95rem;
}

.planItemDescription {
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
}

.planItemDescription p:first-child {
  margin-top: 0px;
  margin-bottom: 0px;
}

.planItem .dragHandle, .planItemHeader .dragHandle,
.planItem .actionButton, .planItemHeader .actionButton {
  opacity: 0;
  transition: opacity 0.15s;
}
.planItem:hover .dragHandle, .planItemHeader:hover .dragHandle,
.planItem:hover .actionButton, .planItemHeader:hover .actionButton {
  opacity: 1;
}

/* Clickable row hover */
.clickableRow {
  transition: background-color 0.15s;
}
.clickableRow:hover {
  background-color: rgba(11, 29, 58, 0.04);
}

/* Drag handle cursor and hover effects */
.dragHandle {
  cursor: grab;
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
}
.dragHandle:hover {
  background-color: rgba(11, 29, 58, 0.1);
  color: var(--c1) !important;
}
.dragHandle:active {
  cursor: grabbing;
  background-color: rgba(11, 29, 58, 0.2);
}

/* Row controls (drag handle, edit/add buttons) hover */
.rowControl, .actionButton {
  background: transparent;
  border-radius: 4px;
  padding: 2px;
  transition: background-color 0.15s, opacity 0.15s;
}
.rowControl:hover, .actionButton:hover {
  background-color: rgba(11, 29, 58, 0.15);
}

/* Time Rail */
.timeRailCell {
  width: 72px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  align-self: stretch;
  margin: -10px 0;
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--border-light);
  border-right: 1px solid var(--border-main);
}

.timeRailLabel {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  width: 100%;
  padding-right: 4px;
}

.timeRailDot {
  position: absolute;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-main);
  border: 2px solid var(--border-light);
  z-index: 1;
}

.timeRailLine {
  position: absolute;
  right: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-main);
}

.planItemHeader .timeRailCell {
  margin-bottom: -8px;
  padding-bottom: 8px;
}

.planItemHeader .timeRailDot {
  background: var(--c1l2);
}

.chordPro H3 {
  margin-bottom: 0px;
}

.chordPro .line {
  margin-top: 5px;
  vertical-align: bottom;
}

.chordPro sup {
  vertical-align: top;
  position: absolute;
  margin-top: -12px;
  font-weight: bold;
}


@media print {
  .form-submission-summary {
    margin: 20px;
  }
}

@media (max-width: 740px) {
  #primaryNavButton h2 {
    display: none;
  }

  #primaryNavButton>img {
    margin-right: 0px;
  }

  #primaryNavButton>span {
    margin-left: 0px;
  }

  #appBarSpacer {
    height: 60px;
  }

  #secondaryMenu {
    display: none;
  }
}

@media (min-width: 741px) {
  #secondaryMenuAlt {
    display: none;
    width: 100%;
    text-align: center;
  }

}

/* Website Editor: Disable links in edit mode to prevent navigation when editing elements */
.elementWrapper a {
  pointer-events: none;
  cursor: default;
}

/* Website Editor: Disable native image dragging to prevent interference with react-dnd */
.elementWrapper img,
.sectionWrapper img,
.draggable-container img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===== Website Editor Polish Animations ===== */

/* Fade in animation for new sections and elements */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bounce animation for newly dropped items */
@keyframes dropBounce {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Pulse animation for scroll zones */
@keyframes pulse {

  0%,
  100% {
    opacity: 0.75;
  }

  50% {
    opacity: 1;
  }
}

/* Apply fade-in to sections when in edit mode */
.sectionWrapper {
  animation: fadeIn 0.3s ease-out;
}

/* Apply fade-in to elements when in edit mode */
.elementWrapper {
  animation: fadeIn 0.3s ease-out;
}

/* Class for just-dropped elements (to be added dynamically) */
.element-just-dropped {
  animation: dropBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Streaming Video Component Styles ===== */
/* These styles are required for the stream element to render in the web page editor */

#liveContainer {
  height: 100%;
  width: 100%;
  background-color: #000;
  display: flex;
  flex-direction: column;
}

#liveBody {
  flex: 9;
  display: flex;
  height: 100%;
}

#videoContainer {
  flex: 3;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

#videoContainer iframe {
  width: 100%;
  flex: 1 1 100%;
  align-self: center;
  height: 100%;
}

#noVideoContent {
  color: #fff;
  width: 100%;
  text-align: center;
  align-self: center;
}

#videoContainer.embedded {
  padding-bottom: 56.25%;
  position: relative;
}

#videoContainer.embedded iframe,
#videoContainer.embedded #noVideoContent {
  position: absolute;
  align-self: auto;
}

/* Hide cross-promo app-switcher links (B1.Church / Lessons.church) rendered by the
   vendored @churchapps/apphelper UserMenu app list. No prop disables them, so they
   are hidden here by their stable data-testid (NavItem emits nav-item-<label-slug>). */
[data-testid="nav-item-b1.church"],
[data-testid="nav-item-lessons.church"],
a:has(> [data-testid="nav-item-b1.church"]),
a:has(> [data-testid="nav-item-lessons.church"]) {
  display: none !important;
}
