.documentos-area-tabs {
  margin: -0.25rem 0 0 0;
  padding: 0;
  background: #f8f9fa;
  gap: 0;
  border-radius: 4px 4px 0 0;
}

.documentos-area-tab {
  flex: 0 1 auto;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #6c757d;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.documentos-area-tab:hover {
  color: #495057;
  background: rgba(0, 0, 0, 0.03);
}

.documentos-area-tab.is-active {
  color: #1f6fb2;
  border-bottom-color: #1f6fb2;
  background: #fff;
}

.documentos-new-doc-btn {
  margin: 0 0.75rem 0 auto;
  white-space: nowrap;
}

.documentos-type-filter {
  margin-top: 0.15rem;
}

.documentos-type-filter-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem 0.45rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.documentos-type-filter-label {
  flex: 0 0 auto;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1;
}

.documentos-type-chips {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.documentos-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 2px;
  padding: 0.28rem 0.55rem 0.28rem 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.documentos-type-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.documentos-type-chip:hover {
  border-color: #93c5fd;
  background: #f8fbff;
  color: #1e3a5f;
}

.documentos-type-chip.is-active {
  background: #eff6ff;
  border-color: #1f6fb2;
  color: #1f6fb2;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #1f6fb2;
}

.documentos-type-sig {
  flex: 0 0 auto;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 3px;
  padding: 0.05rem 0.28rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.documentos-type-chip.is-active .documentos-type-sig {
  background: #dbeafe;
  color: #1f6fb2;
}

.documentos-type-chip-todos {
  gap: 0.35rem;
}

.documentos-type-expand-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
}

.documentos-type-chip-todos.is-active .documentos-type-expand-count {
  color: #1f6fb2;
}

.documentos-type-chip-chevron {
  font-size: 0.65rem;
  color: #94a3b8;
}

.documentos-type-chip-todos.is-active .documentos-type-chip-chevron {
  color: #1f6fb2;
}

.documentos-type-filter.is-collapsed .documentos-type-chip-text {
  max-width: 14rem;
}
