/* ═══════════════════════════════════════════════════════════
   DASHBOARD TABS
═══════════════════════════════════════════════════════════ */

/* Override the generic .nav-tabs .nav-link.active (blue, from projects.css)
   for the dashboard's own tab bar specifically. */
[data-testid="dashboard-tabs"] .nav-link.active {
  color: #7C3AED !important;
  border-bottom-color: #7C3AED !important;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD WEEK CALENDAR
═══════════════════════════════════════════════════════════ */

/* ── Filter button ── */
.dwc-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: none;
  border-radius: 8px;
  background: #F2EBFD;
  color: #7C3AED;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.dwc-filter-btn:hover {
  background: #e8d9fb;
}

/* ── Filter dropdown ── */
.dwc-filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #E1E3EA;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  z-index: 100;
}

.dwc-filter-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 13px;
  color: #3F4254;
  cursor: pointer;
}

.dwc-filter-option:hover {
  background: #F2EBFD;
  color: #7C3AED;
}

/* ── Week navigation ── */
.dwc-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.dwc-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F3EFFE;
  border-radius: 12px;
  padding: 12px 16px;
}

.dwc-nav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: #E8D9FB;
  color: #7C3AED;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dwc-nav-btn:hover {
  background: #DCC5F9;
}

.dwc-month-label {
  font-size: 16px;
  font-weight: 700;
  color: #7C3AED;
  white-space: nowrap;
}

/* ── Day strip ── */
.dwc-day-strip {
  display: flex;
  flex: 1;
  gap: 2px;
  justify-content: space-between;
}

.dwc-day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  min-width: 30px;
  height: 44px;
}

.dwc-day-name {
  font-size: 14px;
  line-height: 14px;
  color: #A1A5B7;
  font-weight: 500;
}

.dwc-day-num {
  font-size: 14px;
  line-height: 14px;
  font-weight: 500;
  color: #181C32;
}

.dwc-day-cell--today {
  background: #7C3AED;
}

.dwc-day-cell--today .dwc-day-name,
.dwc-day-cell--today .dwc-day-num {
  color: #fff;
}

/* ── Event list ── */
.dwc-event-list {
  margin-top: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}

.dwc-event-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 13px;
  text-align: left;
}

/* Day section header row */
.dwc-day-header-row {
  background: #fafafa;
}

.dwc-day-header {
  font-size: 13px;
  font-weight: 500;
  line-height: 14px;
  color: #181C32;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  font-style: medium;
}

/* Event data rows */
.dwc-event {
  background: #fff;
  transition: background 0.15s;
}

.dwc-event:hover {
  background: #fafafa;
}

.dwc-event-label {
  font-size: 11px;
  line-height: 12px;
  font-weight: 500;
  color: #181C32;
  white-space: nowrap;
  padding: 12px 16px;
  width: 1%;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  font-style: medium;
}

.dwc-event-dot-cell {
  width: 1%;
  padding: 12px 8px 12px 12px;
  border-bottom: 1px solid #f0f0f0;
  border-left: 1px solid #f0f0f0;
  vertical-align: middle;
}

.dwc-event-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dwc-event-title {
  font-size: 11px;
  line-height: 12px;
  font-weight: 500;
  color: #181C32;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  font-style: medium;
}

.dwc-empty {
  font-size: 13px;
  color: #A1A5B7;
  text-align: center;
  padding: 24px 0;
}
