/* Month summary (class.month_summary.php): the calendar tools menu's drawer - the month on
   screen counted. msum_ is this drawer's own prefix, shared with nothing */

.msum_drawer
{
  height: 100%;
  min-height: 100%;
  background: #f5f8f8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* the header clears the notch the way every other side window does - the swap and holiday
   drawers pad by calc(10px + env(safe-area-inset-top)), and a header that only pads 14px ends up
   under the status bar in the app */
.msum_header
{
  background: #007A85;
  height: auto;
  flex: none;
  padding: calc(10px + env(safe-area-inset-top)) 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.msum_back
{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #ffffff;
  border-radius: 6px;
  width: 32px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.msum_back .glyphicon { font-size: 12px; }
.msum_header_name { color: #ffffff; font-size: 16px; font-weight: 700; line-height: 1.2; }
.msum_header_sub { color: rgba(255,255,255,0.85); font-size: 12px; line-height: 1.3; margin-top: 2px; }

.msum_body
{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 30px;
}

/* the four numbers at the top */
.msum_tiles
{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.msum_tile
{
  background: #ffffff;
  border: 1px solid #e3eaea;
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
}
.msum_tile_num { font-size: 20px; font-weight: 700; color: #16211f; line-height: 1.1; }
.msum_tile_word { font-size: 11px; color: #6b7c7d; margin-top: 3px; line-height: 1.2; }

.msum_card
{
  background: #ffffff;
  border: 1px solid #e3eaea;
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-bottom: 12px;
}
.msum_card_title { font-size: 14px; font-weight: 700; color: #16211f; }
.msum_card_sub { font-size: 12px; color: #6b7c7d; margin-top: 2px; }

/* days / evenings / nights: one bar, then the names under it */
.msum_mix_bar
{
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef3f3;
  margin: 12px 0 10px;
}
.msum_mix_part { height: 100%; }
.msum_mix_part.is_day   { background: #4fb3a5; }
.msum_mix_part.is_eve   { background: #2f8a94; }
.msum_mix_part.is_night { background: #1d5b6b; }

.msum_mix_row
{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: #16211f;
}
.msum_dot
{
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.msum_dot.is_day   { background: #4fb3a5; }
.msum_dot.is_eve   { background: #2f8a94; }
.msum_dot.is_night { background: #1d5b6b; }
.msum_mix_name { font-weight: 600; }
.msum_mix_when { color: #93a3a4; font-size: 12px; flex: 1; min-width: 0; }
.msum_mix_pct  { font-weight: 700; }
.msum_mix_n    { color: #6b7c7d; font-size: 12px; min-width: 18px; text-align: right; }

/* the week: a row a day, the busiest day the full width */
.msum_week { margin-top: 10px; }
.msum_week_row
{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
}
.msum_week_day { flex: none; width: 32px; font-weight: 700; color: #16211f; }
.msum_week_bar
{
  flex: 1;
  min-width: 0;
  height: 8px;
  border-radius: 5px;
  background: #eef3f3;
  overflow: hidden;
}
.msum_week_fill { display: block; height: 100%; background: #2f8a94; border-radius: 5px; }
/* Saturday and Sunday in the lighter teal, so a weekend-heavy month shows itself without
   bringing a second colour into the drawer */
.msum_week_row.is_weekend .msum_week_fill { background: #4fb3a5; }
.msum_week_pct { flex: none; width: 34px; text-align: right; font-weight: 700; color: #16211f; }
.msum_week_hrs { flex: none; width: 74px; text-align: right; color: #6b7c7d; }
.msum_week_row.is_none .msum_week_pct { color: #b6c2c2; font-weight: 600; }

/* hours by employer */
.msum_emp_row { padding: 10px 0; border-bottom: 1px solid #f0f4f4; }
.msum_emp_row:last-child { border-bottom: none; padding-bottom: 2px; }
.msum_emp_top { display: flex; align-items: baseline; gap: 8px; }
.msum_emp_name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: #16211f; }
.msum_emp_hrs { font-size: 13px; font-weight: 700; color: #16211f; }
.msum_emp_sub { font-size: 12px; color: #6b7c7d; margin-top: 5px; }

.msum_bar
{
  height: 8px;
  border-radius: 5px;
  background: #eef3f3;
  overflow: hidden;
  margin-top: 7px;
}
.msum_bar_fill { height: 100%; background: #2f8a94; border-radius: 5px; }

.msum_foot
{
  font-size: 12px;
  color: #6b7c7d;
  line-height: 1.5;
  padding: 2px 2px 0;
}
.msum_foot i { color: #2f8a94; }

.msum_empty
{
  background: #ffffff;
  border: 1px solid #e3eaea;
  border-radius: 12px;
  padding: 34px 20px;
  text-align: center;
  color: #6b7c7d;
}
.msum_empty i { font-size: 26px; color: #b6c2c2; }
.msum_empty_line { font-size: 14px; font-weight: 600; color: #16211f; margin-top: 10px; }
.msum_empty_sub { font-size: 12px; margin-top: 4px; }
