/* Attendance / Apply Leave / Holidays / Leave Approval — unified tab strip */
html:not([data-attendance-tabs-ready]) .team-tabs-wrapper {
  visibility: hidden;
}
html[data-attendance-manager-only="1"][data-leave-approval-access="0"] .main-content,
html[data-attendance-manager-only="1"][data-leave-approval-access="pending"] .main-content {
  visibility: hidden;
}
html:not([data-leave-approval-tab="1"]) #leaveApprovalTab,
html:not([data-leave-approval-tab="1"]) .team-tab[data-attendance-route="leave-approval"] {
  display: none !important;
}

.team-tabs-wrapper {
  border-bottom: 2px solid #ed2047;
  position: relative;
  overflow: visible;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  background-color: #fff;
}
.team-tabs {
  display: flex;
  position: relative;
}
.team-tab {
  flex: none;
  width: 200px;
  min-width: 200px;
  padding: 16px 40px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 13px;
  color: #6b6b6b;
  background: #e3e3e3;
  border-radius: 2px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  position: relative;
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.team-tab i {
  display: inline-block;
  margin-right: 8px;
}
.team-tab::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  height: 18px;
  background: #f1f3f5;
  z-index: -1;
}

/* Active tab — attribute-driven (pooled navigation) and .active fallback */
.team-tab.active,
html[data-active-attendance-tab="attendance"] .team-tab[data-attendance-route="attendance"],
html[data-active-attendance-tab="apply-leave"] .team-tab[data-attendance-route="apply-leave"],
html[data-active-attendance-tab="view-holidays"] .team-tab[data-attendance-route="view-holidays"],
html[data-active-attendance-tab="leave-approval"] .team-tab[data-attendance-route="leave-approval"] {
  background: linear-gradient(135deg, #ed2047, #f26225) !important;
  color: #fff !important;
  box-shadow: 0 18px 30px rgba(237, 32, 71, 0.45) !important;
  z-index: 1;
  width: auto;
  min-width: 200px;
  max-width: fit-content;
  text-overflow: clip;
}

/* Inactive tabs */
.team-tab:not(.active),
html[data-active-attendance-tab="attendance"] .team-tab:not([data-attendance-route="attendance"]),
html[data-active-attendance-tab="apply-leave"] .team-tab:not([data-attendance-route="apply-leave"]),
html[data-active-attendance-tab="view-holidays"] .team-tab:not([data-attendance-route="view-holidays"]),
html[data-active-attendance-tab="leave-approval"] .team-tab:not([data-attendance-route="leave-approval"]) {
  color: #6b6b6b !important;
  background: #e3e3e3 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}
