body {
  background: #fafafa;
  color: #333333;
  /* margin-top: 5rem; */
}

h1, h2, h3, h4, h5, h6 {
  color: #444444;
}

a {
  color: #5f788a;
  text-decoration: none;
}

/*
td, th {
  font-size: 0.9rem; 
}*/

legend {
  font-size: 1.1rem; 
} 


.bg-steel {
  background-color: #5f788a;
}

.site-header .navbar-nav .nav-link {
  color: #cbd5db;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffffff;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 500;
}

.content-section {
  background: #ffffff;
  padding: 10px 20px;
  border: 1px solid #dddddd;
  border-radius: 3px;
  margin-bottom: 20px;
}

/*Calendar - scoped to .calendar: modern light theme, condensed spacing, increased contrast */
.calendar {
  --cal-bg: #ffffff;
  --cal-border: #d7e6ef; /* stronger border */
  --cal-accent: #2b7bd6; /* darker accent */
  --cal-muted: #3b4b52; /* darker muted text */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #162023; /* darker base text */
  background: var(--cal-bg);
  border-radius: 8px;
  border: 1px solid var(--cal-border);
  overflow: hidden;
}

.calendar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem; /* condensed */
  table-layout: fixed;
}

.calendar th {
  background: #f3f8fb;
  color: var(--cal-muted);
  font-weight: 700;
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calendar td {
  padding: 4px 6px; /* condensed spacing */
  height: 40px;
  vertical-align: top;
  border-right: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: transparent;
}

.calendar td .day-number {
  display: inline-block;
  font-size: 0.78rem;
  color: #0f2930; /* darker day number */
  padding: 2px 6px;
  border-radius: 6px;
}

.calendar td.today {
  background: linear-gradient(180deg, #ffffff, #eef7ff);
  box-shadow: inset 0 0 0 1px rgba(43,123,214,0.12), 0 1px 0 rgba(0,0,0,0.04);
}

.calendar td:hover {
  background: #eef7fb;
}

.calendar td.vacation {
  background-color: #fff6dc !important; /* slightly richer */
}

.calendar td.holiday {
  background-color: #fff3f3 !important; /* slightly richer */
}

.calendar a.approved_3 {
  background-color: #dff3df !important;
  color: #054d28;
  padding-inline: 4px;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(5,77,40,0.06) inset;
}

.calendar a.approved_2 {
  background-color: #d7efff !important;
  color: #043b55;
  padding-inline: 4px;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(4,59,85,0.06) inset;
}

.calendar a.approved_1 {
  background-color: #fff3d1 !important;
  color: #6b4e00;
  padding-inline: 4px;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(107,78,0,0.04) inset;
}

.calendar a.approved_0 {
  background-color: #ffe6df !important;
  color: #7a1f00;
  padding-inline: 4px;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(122,31,0,0.04) inset;
}

.calendar .rest_time {
  border-bottom: 3px solid #b30000 !important; /* stronger red */
  padding-bottom: 0;
}
/* end of .calendar */

/* Tooltip container */
.f_tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.f_tooltip .f_tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.f_tooltip .f_tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.f_tooltip:hover .f_tooltiptext {
  visibility: visible;
  opacity: .9;
}
