html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  /* Home-screen / notch safe areas */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Standalone (Add to Home Screen): fixed chrome respects notch + home indicator */
@media all and (display-mode: standalone) {
  body {
    margin-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .navbar.fixed-top {
    padding-top: env(safe-area-inset-top);
  }

  .footer-container.fixed-bottom,
  footer.fixed-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

a {
  text-decoration: none;
}

a:hover:not(.btn) {
  text-decoration: underline;
}

.footer-copyright { float: right; padding-right: 10px;}
.footer-container { padding-left: 20px; margin-top: 55px; background-color: rgb(240, 238, 238); border-top: 2px solid silver; height: 60px;}

h4 {line-height: 10px;}

.Section-header {float: right; font-size: 1.25em; line-height: 10px;}

.btn { border-radius: 3px;}


.btn-group-xs > .btn, .btn-xs {
    padding: .25rem .4rem;
    font-size: .650rem;
    line-height: .8;
    /*border-radius: .2rem;*/
}

.hidden {
    display: none;

}

/* a { color: black;} */


.fit-page-title {
    font-size: 1.25em;
    font-weight: bold;
    text-transform: uppercase;
    background-color: white;
    z-index: 1;
    border-bottom: solid 1px #eaeaea;
    padding: 60px 20px 0 20px;
}

.fit-fav-btn-red {
    margin: 10px;
    white-space: normal;
    background-color: #741116;
    width: 95px;
    height: 95px;
    font-size: .95em;
    border: solid 1px #8D0107;
    /*border-radius: 5px;*/
    padding-top: 23px;
}

    .fit-fav-btn-red:hover {
        color: #B5B5B5;
    }

.fit-fav-btn-no-padding {
    white-space: normal;
    background-color: #505050;
    width: 95px;
    height: 95px;
    font-size: .95em;
    border: solid 1px #2a2727;
    /*border-radius: 5px;*/
}

.fit-button-text-2-lines {
    padding-top: 32px;
}

.fit-button-text-1-line {
    padding-top: 37px;
}

@font-face {
  font-family: 'hockeyplayers';
  src: url('../fonts/hockey/CFHockeyPlayers-Regular.ttf'),
      url('../fonts/hockey/CFHockeyPlayers-Regular.otf');
}


@font-face {
  font-family: 'nhl';
  src: url('../fonts/nhl/nhl.eot');
  src: url('../fonts/nhl/nhl.eot?#iefix') format('embedded-opentype'),
       /*url('../fonts/nhl/nhl.woff') format('woff'),*/
       url('../fonts/nhl/nhl.ttf') format('truetype'),
       url('../fonts/nhl/nhl.svg#NHL') format('svg');
}


.watermark {
  padding:0;
  margin:0;
  border: solid 0px red;
  top: 40px;
  position: fixed;
  opacity: 0.08;
  font-size: 22.0em;
  text-align: center;
  /* vertical-align: top; */
  width: 100%;
  /* max-width: 100%;
  min-width: 80%; */
  z-index: 0;
  color: black;
  z-index:-1;
  /*float: right;*/
}

.fit-sort-table-title{ font-size: 1.25em; font-weight: bold;  text-transform: uppercase; background-color: white; z-index: 1; padding: 5px 20px 0 0; }
.fit-sort-table-title-mobile{ font-size: 1.25em; font-weight: bold;  text-transform: uppercase; background-color: white; z-index: 1; padding: 0px 20px 0 0; }


/* h4 { font-size: 1.25em; font-weight: bold;  text-transform: uppercase; background-color: white; z-index: 1; border-bottom: solid 1px #eaeaea; padding-top: 60px; } */
.fit-page-title { font-size: 1.25em; font-weight: bold;  text-transform: uppercase; background-color: white; z-index: 1; border-bottom: solid 1px #eaeaea; padding-top: 65px; }
.fit-edit-row { padding-top: 50px;}

/* ALpha Sort */
.alpha-selected {  background-color: rgb(198,	71,	27	); font-weight: bold; xborder: none; }
.fit-plus {  text-decoration: none; font-size: 1.0em; }
/* .fit-alpha { 	border-radius: 0 !important; }
.fit-alpha-span { padding: 0 0.05em; }
.fit-alpha-div { margin-top: -0.20em; } */
.btn-flat { border-radius: 0px; margin: 0px 1px 0px 1px; }
.btn-flat:hover { background-color: rgb(198,	71,	27	); }

/* td { border: solid 1px red; } */

.workout-card-list {
  clear: both;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0 5rem;
}

.workout-card {
  clear: both;
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0;
  border: 1px solid #d0d0d0;
  background-color: #fafafa;
}

.workout-card-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.workout-card-meta {
  color: #555;
  font-size: 0.9em;
  margin-bottom: 0.35rem;
}

.workout-card-description {
  margin-bottom: 0.5rem;
}

.workout-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.workout-card-actions form {
  display: inline;
  margin: 0;
}

.session-entry-completed {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.session-entry-more-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.session-entry-completed label {
  margin: 0;
  line-height: 2.25rem;
  font-weight: 500;
}

.session-entry-completed-check {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  flex-shrink: 0;
  vertical-align: middle;
}

.workout-week-group {
  margin: 0.75rem 0 1rem;
  border: 1px solid #d0d0d0;
  padding: 0 0.75rem 0.25rem;
  background-color: #fafafa;
}

.workout-week-summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.65rem 0.25rem;
}

.workout-week-group > .table {
  margin-bottom: 0.5rem;
}

.health-card-list {
  clear: both;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0 5rem;
}

.health-card {
  clear: both;
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0;
  border: 1px solid #d0d0d0;
  background-color: #fafafa;
}

.health-card-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.health-card-meta {
  color: #555;
  font-size: 0.9em;
  margin-bottom: 0.35rem;
}

.health-card-description {
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
}

.health-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.health-filter {
  clear: both;
  max-width: 36rem;
}

.bp-chart-card {
  clear: both;
  margin: 0.5rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d0d0d0;
  background-color: #fafafa;
}

.bp-chart-card .health-card-title {
  margin-bottom: 0.5rem;
}

.bp-chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 14rem;
}

.bp-chart-wrap {
  position: relative;
}

.bp-chart-tip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #212529;
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.bp-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.85em;
  color: #555;
}

.bp-chart-legend-baselines {
  color: #888;
}

.bp-chart-average {
  margin-top: 0.5rem;
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
}

.bp-chart-legend-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.2rem;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.bp-chart-legend-swatch.systolic {
  background: #0d6efd;
}

.bp-chart-legend-swatch.diastolic {
  background: #6c757d;
}


.health-flag-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 0.75rem;
  margin-top: 0.25rem;
}

.dashboard-quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.dashboard-quick-action {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
  padding: 0.65rem 0.5rem;
}

.calendar-month {
  clear: both;
  padding: 0.5rem 0 5rem;
}

.calendar-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.calendar-month-title {
  font-size: 1.15em;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.calendar-weekdays,
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.calendar-weekdays {
  margin-bottom: 0.25rem;
  font-size: 0.75em;
  font-weight: 600;
  text-align: center;
  color: #555;
}

.calendar-day {
  position: relative;
  display: block;
  min-height: 5.5rem;
  padding: 0.35rem;
  border: 1px solid #d0d0d0;
  background-color: #fafafa;
  color: inherit;
  overflow: hidden;
}

.calendar-day-outside {
  background-color: #f0f0f0;
  color: #888;
}

.calendar-day-number {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 0.2rem;
  color: inherit;
  text-decoration: none;
}

.calendar-more {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7em;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: underline;
}

.calendar-day-open {
  position: absolute;
  inset: 0;
  z-index: 0;
  text-decoration: none;
}

.calendar-day-number,
.calendar-day-events,
.calendar-more {
  position: relative;
  z-index: 1;
}

.calendar-day-events {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.65em;
  line-height: 1.25;
}

.calendar-day-events li {
  margin-bottom: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-scheduled {
  font-style: italic;
  color: #555;
}

main:has(.note-fill) {
  padding-bottom: 0 !important;
}

.note-fill {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 130px);
  height: calc(100dvh - 130px);
  overflow: hidden;
}

.note-fill-card,
.note-fill-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.note-fill-card {
  margin-bottom: 0;
}

.note-fill-content {
  display: grid;
  grid-template-rows: auto minmax(8rem, 1fr) auto;
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
}

.note-fill-content textarea.form-control {
  height: 100%;
  min-height: 0;
  resize: none;
}

@media (min-width: 768px) {
  .note-fill {
    height: calc(100vh - 140px);
    height: calc(100dvh - 140px);
  }

  .dashboard-quick-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-day {
    min-height: 7rem;
  }

  .calendar-day-events {
    font-size: 0.75em;
  }
}
