.vac-table-wrap{
  overflow: auto;
  border-top: 1px solid rgba(0,0,0,.06);
}

.vac-cal-month-field {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 280px;
}

.vac-legend{
  display:inline-block;
  width: 14px;
  height: 8px;
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: middle;
}
.vac-legend.vac-approved{ background: rgba(40,167,69,.35); border:1px solid rgba(40,167,69,.40); }
.vac-legend.vac-pending{  background: rgba(255,193,7,.35); border:1px solid rgba(255,193,7,.40); }
.vac-legend.vac-rejected{ background: rgba(220,53,69,.30); border:1px solid rgba(220,53,69,.35); }
.vac-legend.vac-overlap{  background: rgba(23,162,184,.23); border:1px dashed rgba(23,162,184,.6); }

.vac-summary{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .5rem;
  margin-bottom: .65rem;
}
.vac-summary-card{
  border: 1px solid #e9ecef;
  border-radius: .45rem;
  background: #fff;
  padding: .4rem .5rem;
}
.vac-summary-label{
  color:#6c757d;
  font-size: .72rem;
  margin-bottom: .1rem;
}
.vac-summary-value{
  font-size: .98rem;
  font-weight: 700;
}

.vac-calendar-layout{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: .65rem;
}
.vac-right-col{
  display:flex;
  flex-direction: column;
  gap: .65rem;
}
.vac-month-title{
  font-size: .96rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.vac-weekdays{
  display:grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: .25rem;
  margin-bottom: .25rem;
}
.vac-weekday{
  text-align:center;
  font-size: .72rem;
  color:#6c757d;
  font-weight: 600;
  padding: .2rem 0;
}
.vac-days{
  display:grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: .25rem;
}
.vac-day{
  min-height: 98px;
  border: 1px solid #e9ecef;
  border-radius: .45rem;
  background: #fff;
  padding: .34rem;
  text-align: left;
}
.vac-day.has-vac{
  border-color: rgba(40,167,69,.45);
  background: rgba(40,167,69,.06);
}
.vac-day.is-filler{
  background:#f8f9fa;
  border-style: dashed;
}
.vac-day.is-today{
  border-color: rgba(0,123,255,.5);
}
.vac-day.is-selected{
  border-color: rgba(0,123,255,.75);
  box-shadow: 0 0 0 .11rem rgba(0,123,255,.16) inset;
}
.vac-day.is-overlap{
  border-color: rgba(23,162,184,.55);
  background: rgba(23,162,184,.05);
}
.vac-day-num{
  display:block;
  font-weight: 700;
  margin-bottom: .2rem;
}
.vac-day-total{
  font-size: .84rem;
  font-weight: 700;
}
.vac-day-names{
  margin-top: .2rem;
  font-size: .68rem;
  line-height: 1.25;
  color: #374151;
  max-height: 3.35rem;
  overflow: hidden;
}
.vac-day-names .name{
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vac-day-panel{
  border: 1px solid #e9ecef;
  border-radius: .45rem;
  background: #fff;
  padding: .5rem;
  max-height: 560px;
  overflow: auto;
}
.vac-day-panel-title{
  font-size: .82rem;
  color:#6c757d;
  margin-bottom: .45rem;
}
.vac-day-item{
  border:1px solid #e9ecef;
  border-radius: .42rem;
  padding: .42rem .5rem;
  margin-bottom: .4rem;
  background:#fff;
}
.vac-day-item:last-child{ margin-bottom:0; }
.vac-day-item-head{
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:.4rem;
}
.vac-day-item-user{ font-size:.83rem; font-weight:700; }
.vac-day-item-meta{ color:#6c757d; font-size:.74rem; margin-top:.15rem; }

.vac-month-panel .vac-month-item{
  border: 1px solid #eef2f7;
  border-radius: .42rem;
  padding: .42rem .5rem;
  margin-bottom: .4rem;
  background:#fff;
}
.vac-month-panel .vac-month-item:last-child{ margin-bottom:0; }
.vac-month-item-user{ font-size:.83rem; font-weight:700; }
.vac-month-item-meta{ color:#6c757d; font-size:.74rem; margin-top:.15rem; }

.vac-year-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}
.vac-year-title{
  font-weight: 800;
  font-size: 1.05rem;
}
.vac-year-wrap{
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  background:#fff;
  overflow: auto;
}
.vac-year-months{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: .5rem;
  align-items: center;
  padding: .35rem .5rem;
  border-bottom: 1px solid #eef2f7;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 3;
}
.vac-year-months-spacer{
  height: 1px;
}
.vac-year-months-track{
  min-width: 840px;
}
.vac-year-months-track-inner{
  position: relative;
  height: 18px;
}
.vac-year-month-line{
  position:absolute;
  top: 1px;
  bottom: 1px;
  width: 1px;
  background: rgba(0,0,0,.08);
}
.vac-year-month-label{
  position:absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: .72rem;
  color:#6c757d;
  font-weight: 800;
  white-space: nowrap;
}
.vac-year-row{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: .5rem;
  align-items: center;
  padding: .35rem .5rem;
  border-bottom: 1px solid #f3f4f6;
}
.vac-year-row:last-child{ border-bottom: 0; }
.vac-year-user{
  font-size: .82rem;
  font-weight: 700;
  color:#111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vac-year-line{ min-width: 840px; }
.vac-year-track{
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.035);
}
.vac-year-seg{
  position:absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 999px;
  background: rgba(40,167,69,.35);
  border: 1px solid rgba(40,167,69,.45);
}
.vac-pill{
  border-radius: 999px;
  padding: .1rem .42rem;
  font-size: .66rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}
.vac-pill.vac-approved{ background: rgba(40,167,69,.2); border-color: rgba(40,167,69,.35); color: #155724; }
.vac-pill.vac-pending{ background: rgba(255,193,7,.22); border-color: rgba(255,193,7,.38); color:#6c5400; }
.vac-pill.vac-rejected{ background: rgba(220,53,69,.16); border-color: rgba(220,53,69,.30); color:#721c24; }

.vac-tooltip{
  position: fixed;
  z-index: 9999;
  max-width: 320px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  padding: 10px 12px;
  font-size: 12px;
  color:#343a40;
}

@media (max-width: 991.98px) {
  .vac-cal-card-header .vac-cal-month-field {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .vac-summary{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .vac-calendar-layout{
    grid-template-columns: 1fr;
  }
  .vac-day-panel{
    max-height: none;
  }
}

@media (max-width: 767.98px) {
  .vac-cal-card-header .vac-cal-btn-row {
    flex-direction: column;
    align-items: stretch !important;
  }
  .vac-cal-card-header .vac-cal-btn-row .btn-group {
    width: 100%;
    margin-right: 0 !important;
    justify-content: center;
  }
  .vac-cal-card-header .vac-cal-btn-row .btn-group > .btn {
    flex: 1 1 auto;
  }
  .vac-cal-month-field {
    width: 100%;
    max-width: none;
  }
  .vac-cal-month-hint {
    font-size: 0.7rem;
    line-height: 1.25;
  }
  .vac-cal-legend-row {
    font-size: 0.72rem;
  }
  .vac-day{
    min-height: 86px;
  }
}
